diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220401\345\210\227\350\241\250\345\210\244\346\226\255/goodslist.html" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220401\345\210\227\350\241\250\345\210\244\346\226\255/goodslist.html" new file mode 100644 index 0000000000000000000000000000000000000000..b47b0ebb15b27a34e3221329756d468359b9a3cf --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220401\345\210\227\350\241\250\345\210\244\346\226\255/goodslist.html" @@ -0,0 +1,129 @@ + + + + + + + + + 商品列表页 + + + + +
+ + + + + +
+ + + + \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220401\345\210\227\350\241\250\345\210\244\346\226\255/images/1.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220401\345\210\227\350\241\250\345\210\244\346\226\255/images/1.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..8f1815206a5dca2ca841d20fc61ca774766bd309 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220401\345\210\227\350\241\250\345\210\244\346\226\255/images/1.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220401\345\210\227\350\241\250\345\210\244\346\226\255/images/2.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220401\345\210\227\350\241\250\345\210\244\346\226\255/images/2.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..e3b56684d5eab883a698efa436aa3bcb4c2e753d Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220401\345\210\227\350\241\250\345\210\244\346\226\255/images/2.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220401\345\210\227\350\241\250\345\210\244\346\226\255/listdeal.html" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220401\345\210\227\350\241\250\345\210\244\346\226\255/listdeal.html" new file mode 100644 index 0000000000000000000000000000000000000000..bbaaf4ba27e0b5604c059d8bafb0291640b63212 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220401\345\210\227\350\241\250\345\210\244\346\226\255/listdeal.html" @@ -0,0 +1,74 @@ + + + + + + + + 列表处理 + + + + +
+ +
+ + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220405\345\225\206\345\223\201\345\210\227\350\241\250/demo.html" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220405\345\225\206\345\223\201\345\210\227\350\241\250/demo.html" new file mode 100644 index 0000000000000000000000000000000000000000..df12bd3117968ba37c75fe2da072ec8d9259c3fa --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220405\345\225\206\345\223\201\345\210\227\350\241\250/demo.html" @@ -0,0 +1,132 @@ + + + + + + Document + + + + + +
+ + +
+ + + \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220405\345\225\206\345\223\201\345\210\227\350\241\250/imgs/1.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220405\345\225\206\345\223\201\345\210\227\350\241\250/imgs/1.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..4cfdfb9770d52d408d7d95aeb96face1c63ace82 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220405\345\225\206\345\223\201\345\210\227\350\241\250/imgs/1.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/countdown.html" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/countdown.html" new file mode 100644 index 0000000000000000000000000000000000000000..ae2569709061b967edd8d528661958999fa46f48 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/countdown.html" @@ -0,0 +1,276 @@ + + + + + + + + + + + + + +
+
+
+ +
+
+ +

倒计时{{leftdate}}

+

+
+
¥1万
+
购买
+
+
+
+
+
+
+ + + + \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/countdown1.html" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/countdown1.html" new file mode 100644 index 0000000000000000000000000000000000000000..f78f92b33035b94afe728e25857d265b1c5c6ee7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/countdown1.html" @@ -0,0 +1,359 @@ + + + + + + + + + Document + + + + + + + +
+ +
+ + + + + + \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/img/1.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/img/1.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..a2619abb127456d0298062c002118c35d878a5ce Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/img/1.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/img/2.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/img/2.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..2a3d696aefe9ea037ad926861f3eff170432fa77 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/img/2.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/img/3.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/img/3.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..a300891e285ee6e782a331888b573ef8dc816df3 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/img/3.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/img/4.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/img/4.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..8b5de3c1fc316bb9fcf60056564176dcaf753a6b Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/img/4.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/img/5.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/img/5.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..5b94e0377220b9ae5509e54c576b267ac4dc41aa Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/img/5.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/img/6.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/img/6.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..26f0ffbabf1dd06a366bd7d39fc6d410dac5bae5 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/img/6.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/productdetail.html" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/productdetail.html" new file mode 100644 index 0000000000000000000000000000000000000000..b1fcafcfbfcf4c4e8bae19962d1e0900a06f0919 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220406\350\256\241\347\256\227\345\261\236\346\200\247\345\225\206\345\223\201\346\212\242\350\264\255\346\211\223\346\212\230\345\200\222\350\256\241\346\227\266/productdetail.html" @@ -0,0 +1,114 @@ + + + + +详情页面 + + + + + + + + + +
+ +
+
+ + +
+
+

+ < + > +

+ +
+ + +
+

2022主新款高端定制婚纱礼服明星同款


+

抢购倒计时:{{count}}


+

价格:¥{{cost}}

+

促销价:¥{{price}}{{countdown}}

+

店铺优惠:当前商品打{{discount}}折

+
+
+

尺码:均码

+

立即购买加入购物车

+
+
+

服务承诺:

+

支付方式:

+

+ +
+ +
+ + + \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220407\347\233\221\345\220\254\345\231\250\344\270\216\350\241\250\345\215\225 \346\263\250\345\206\214\351\241\265\345\256\214\345\226\204/register.html" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220407\347\233\221\345\220\254\345\231\250\344\270\216\350\241\250\345\215\225 \346\263\250\345\206\214\351\241\265\345\256\214\345\226\204/register.html" new file mode 100644 index 0000000000000000000000000000000000000000..268e95c22eeddc50905451e39eab6da652ad3837 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220407\347\233\221\345\220\254\345\231\250\344\270\216\350\241\250\345\215\225 \346\263\250\345\206\214\351\241\265\345\256\214\345\226\204/register.html" @@ -0,0 +1,106 @@ + + + + + + + + + 登陆注册页面 + + + + + + +
+
+
+ Register
+

+

+ +

+ +    + 女 +

+
+
+
+ + + + \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220408\350\207\252\345\256\232\344\271\211vue\346\214\207\344\273\244\345\256\236\347\216\260\350\203\214\346\231\257\351\242\234\350\211\262\345\210\207\346\215\242/demo.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220408\350\207\252\345\256\232\344\271\211vue\346\214\207\344\273\244\345\256\236\347\216\260\350\203\214\346\231\257\351\242\234\350\211\262\345\210\207\346\215\242/demo.js" new file mode 100644 index 0000000000000000000000000000000000000000..44a0ad71669f5a4168eef4ec4bdbd0539a726848 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220408\350\207\252\345\256\232\344\271\211vue\346\214\207\344\273\244\345\256\236\347\216\260\350\203\214\346\231\257\351\242\234\350\211\262\345\210\207\346\215\242/demo.js" @@ -0,0 +1 @@ +// 先把el添加class搞定 自建一个vue的指令,实现指定的背景色 \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220408\350\207\252\345\256\232\344\271\211vue\346\214\207\344\273\244\345\256\236\347\216\260\350\203\214\346\231\257\351\242\234\350\211\262\345\210\207\346\215\242/homework.html" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220408\350\207\252\345\256\232\344\271\211vue\346\214\207\344\273\244\345\256\236\347\216\260\350\203\214\346\231\257\351\242\234\350\211\262\345\210\207\346\215\242/homework.html" new file mode 100644 index 0000000000000000000000000000000000000000..3fa0ec31ac2c8384f53b465b0e734b9ac75b8ff6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220408\350\207\252\345\256\232\344\271\211vue\346\214\207\344\273\244\345\256\236\347\216\260\350\203\214\346\231\257\351\242\234\350\211\262\345\210\207\346\215\242/homework.html" @@ -0,0 +1,48 @@ + + + + + + + 自定义vue指令实现背景颜色切换 + + + +
+ +
+ + + + \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220408\350\207\252\345\256\232\344\271\211vue\346\214\207\344\273\244\345\256\236\347\216\260\350\203\214\346\231\257\351\242\234\350\211\262\345\210\207\346\215\242/\350\207\252\345\256\232\344\271\211\346\214\207\344\273\244.html" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220408\350\207\252\345\256\232\344\271\211vue\346\214\207\344\273\244\345\256\236\347\216\260\350\203\214\346\231\257\351\242\234\350\211\262\345\210\207\346\215\242/\350\207\252\345\256\232\344\271\211\346\214\207\344\273\244.html" new file mode 100644 index 0000000000000000000000000000000000000000..37d344e310a9da34d6b48cee95b889968d7183c8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220408\350\207\252\345\256\232\344\271\211vue\346\214\207\344\273\244\345\256\236\347\216\260\350\203\214\346\231\257\351\242\234\350\211\262\345\210\207\346\215\242/\350\207\252\345\256\232\344\271\211\346\214\207\344\273\244.html" @@ -0,0 +1,93 @@ + + + + + + + + + 自定义指令2 + + + +
+ +
+
我是子元素
+
+
+ + + + + \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220412\351\232\220\350\227\217\346\230\276\347\244\272/demo.html" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220412\351\232\220\350\227\217\346\230\276\347\244\272/demo.html" new file mode 100644 index 0000000000000000000000000000000000000000..7013df22b859ca4b473983dab7b9cd572873e2d3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220412\351\232\220\350\227\217\346\230\276\347\244\272/demo.html" @@ -0,0 +1,45 @@ + + + + + + + + 动态指令作业 + + +
+ +
+ + + + \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220413\345\261\200\351\203\250\347\273\204\344\273\266\345\225\206\345\223\201\351\201\215\345\216\206/demo.html" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220413\345\261\200\351\203\250\347\273\204\344\273\266\345\225\206\345\223\201\351\201\215\345\216\206/demo.html" new file mode 100644 index 0000000000000000000000000000000000000000..79bef3e5ce1a7458fe5aa6bb3dfc68613d3fe282 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220413\345\261\200\351\203\250\347\273\204\344\273\266\345\225\206\345\223\201\351\201\215\345\216\206/demo.html" @@ -0,0 +1,103 @@ + + + + + + + + + 作业定义一个局部组件,实现商品遍历,数据在普通实例 + + + +
+ + + + + + + + + + + +
+ + + + + \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220413\345\261\200\351\203\250\347\273\204\344\273\266\345\225\206\345\223\201\351\201\215\345\216\206/product.html" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220413\345\261\200\351\203\250\347\273\204\344\273\266\345\225\206\345\223\201\351\201\215\345\216\206/product.html" new file mode 100644 index 0000000000000000000000000000000000000000..8eaa704adc9a17f861392e4bc373f977fae1c3b7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220413\345\261\200\351\203\250\347\273\204\344\273\266\345\225\206\345\223\201\351\201\215\345\216\206/product.html" @@ -0,0 +1,36 @@ + + + + + + + + + 作业定义一个局部组件,实现商品遍历,数据在普通实例 + + + +
+
    + +
+
+ + + + \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/demo.html" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/demo.html" new file mode 100644 index 0000000000000000000000000000000000000000..bbb44be4c5f7b39d3466fed5dc03e51f7f25e21e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/demo.html" @@ -0,0 +1,227 @@ + + + + + + + + Document + + + + + +
+ + + +
+ + + + \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/1.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/1.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..5ab6df9c6ac9f7b9ce6314082fee5372b5bd4123 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/1.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/10.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/10.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..ecdaad8c90c60e5191f049be9e4d5873c3bb7ca4 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/10.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/11.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/11.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..e08db4a5546f882645f4bb77d81f2812579b67bd Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/11.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/12.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/12.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..b62a884fd8c5030c80c97610cd8bafed7c611b27 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/12.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/13.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/13.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..c7786b3a301e2a2ec2049314a6fbda2e2fcb83d2 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/13.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/14.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/14.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..b83f6498adc48067fb35e156f8e41572574327f2 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/14.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/15.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/15.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..e036e6ee81deb34021b3b74d756d5aa9c8f29390 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/15.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/16.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/16.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..7a6f0d9bd2320ad412b641759f224209dcdd6868 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/16.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/17.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/17.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..8cc096d3224a37cb668c6ecfc01625da71e56957 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/17.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/18.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/18.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..4dd996af05e5c385b2b101851b1ef1bcb797b871 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/18.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/19.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/19.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..35c3eeb8ad36fe466e77f0938647e953194db22b Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/19.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/2.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/2.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..25b8238ab5c57429dd5722db69a4a20ac33c7671 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/2.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/20.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/20.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..cc3fe632690bdc629f2b8fbbfb0577b08b8631fa Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/20.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/21.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/21.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..5ab83f5c8984ac215d290ecd6c0f96f3ca31c217 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/21.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/3.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/3.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..a4d83b0602cdc2565db31a3d3173179fa5f1ed3b Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/3.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/4.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/4.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..8e68dc96d7691a07af15ffd4d7fbd9a4351ed115 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/4.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/5.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/5.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..a16fd9a37e5771dcffdbc3e7860e9e9236510930 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/5.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/6.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/6.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..f039eb846d648242084a9dc4f35cb1680b5e73c5 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/6.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/7.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/7.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..85ab378895779d7c7bed4f230dc83982ae1678cf Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/7.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/8.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/8.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..66e0029b1faf98ecb2f454dcb9046f9f2c62f0d9 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/8.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/9.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/9.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..cabbb11491a0a3438126865045b8fe2f63d23952 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220414\347\273\204\344\273\266\345\265\214\345\245\227\357\274\210\345\225\206\345\223\201\350\217\234\345\215\225\357\274\211/img/9.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/demo.html" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/demo.html" new file mode 100644 index 0000000000000000000000000000000000000000..6e1f797d22061b7e3a4d6c1d0dafac816b44a571 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/demo.html" @@ -0,0 +1,223 @@ + + + + + + + + Document + + + + +
+ + + +
+ + + + + \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/1.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/1.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..5ab6df9c6ac9f7b9ce6314082fee5372b5bd4123 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/1.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/10.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/10.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..ecdaad8c90c60e5191f049be9e4d5873c3bb7ca4 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/10.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/11.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/11.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..e08db4a5546f882645f4bb77d81f2812579b67bd Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/11.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/12.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/12.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..b62a884fd8c5030c80c97610cd8bafed7c611b27 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/12.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/13.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/13.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..c7786b3a301e2a2ec2049314a6fbda2e2fcb83d2 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/13.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/14.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/14.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..b83f6498adc48067fb35e156f8e41572574327f2 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/14.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/15.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/15.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..e036e6ee81deb34021b3b74d756d5aa9c8f29390 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/15.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/16.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/16.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..7a6f0d9bd2320ad412b641759f224209dcdd6868 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/16.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/17.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/17.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..8cc096d3224a37cb668c6ecfc01625da71e56957 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/17.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/18.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/18.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..4dd996af05e5c385b2b101851b1ef1bcb797b871 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/18.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/19.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/19.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..35c3eeb8ad36fe466e77f0938647e953194db22b Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/19.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/2.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/2.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..25b8238ab5c57429dd5722db69a4a20ac33c7671 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/2.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/20.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/20.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..cc3fe632690bdc629f2b8fbbfb0577b08b8631fa Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/20.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/21.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/21.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..5ab83f5c8984ac215d290ecd6c0f96f3ca31c217 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/21.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/3.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/3.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..a4d83b0602cdc2565db31a3d3173179fa5f1ed3b Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/3.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/4.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/4.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..8e68dc96d7691a07af15ffd4d7fbd9a4351ed115 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/4.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/5.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/5.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..a16fd9a37e5771dcffdbc3e7860e9e9236510930 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/5.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/6.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/6.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..f039eb846d648242084a9dc4f35cb1680b5e73c5 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/6.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/7.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/7.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..85ab378895779d7c7bed4f230dc83982ae1678cf Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/7.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/8.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/8.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..66e0029b1faf98ecb2f454dcb9046f9f2c62f0d9 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/8.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/9.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/9.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..cabbb11491a0a3438126865045b8fe2f63d23952 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220415\346\217\222\346\247\275\344\270\216\345\215\225\346\226\207\344\273\266\347\273\204\344\273\266\357\274\210\346\267\273\345\212\240\345\233\276\347\211\207)/img/9.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/demo.html" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/demo.html" new file mode 100644 index 0000000000000000000000000000000000000000..6e1f797d22061b7e3a4d6c1d0dafac816b44a571 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/demo.html" @@ -0,0 +1,223 @@ + + + + + + + + Document + + + + +
+ + + +
+ + + + + \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/1.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/1.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..5ab6df9c6ac9f7b9ce6314082fee5372b5bd4123 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/1.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/10.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/10.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..ecdaad8c90c60e5191f049be9e4d5873c3bb7ca4 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/10.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/11.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/11.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..e08db4a5546f882645f4bb77d81f2812579b67bd Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/11.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/12.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/12.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..b62a884fd8c5030c80c97610cd8bafed7c611b27 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/12.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/13.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/13.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..c7786b3a301e2a2ec2049314a6fbda2e2fcb83d2 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/13.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/14.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/14.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..b83f6498adc48067fb35e156f8e41572574327f2 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/14.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/15.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/15.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..e036e6ee81deb34021b3b74d756d5aa9c8f29390 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/15.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/16.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/16.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..7a6f0d9bd2320ad412b641759f224209dcdd6868 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/16.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/17.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/17.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..8cc096d3224a37cb668c6ecfc01625da71e56957 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/17.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/18.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/18.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..4dd996af05e5c385b2b101851b1ef1bcb797b871 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/18.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/19.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/19.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..35c3eeb8ad36fe466e77f0938647e953194db22b Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/19.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/2.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/2.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..25b8238ab5c57429dd5722db69a4a20ac33c7671 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/2.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/20.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/20.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..cc3fe632690bdc629f2b8fbbfb0577b08b8631fa Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/20.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/21.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/21.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..5ab83f5c8984ac215d290ecd6c0f96f3ca31c217 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/21.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/3.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/3.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..a4d83b0602cdc2565db31a3d3173179fa5f1ed3b Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/3.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/4.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/4.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..8e68dc96d7691a07af15ffd4d7fbd9a4351ed115 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/4.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/5.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/5.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..a16fd9a37e5771dcffdbc3e7860e9e9236510930 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/5.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/6.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/6.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..f039eb846d648242084a9dc4f35cb1680b5e73c5 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/6.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/7.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/7.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..85ab378895779d7c7bed4f230dc83982ae1678cf Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/7.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/8.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/8.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..66e0029b1faf98ecb2f454dcb9046f9f2c62f0d9 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/8.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/9.jpg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/9.jpg" new file mode 100644 index 0000000000000000000000000000000000000000..cabbb11491a0a3438126865045b8fe2f63d23952 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220419\346\217\222\346\247\275\350\204\232\346\211\213\346\236\266/img/9.jpg" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220420 \350\204\232\346\211\213\346\236\266\345\224\257\345\223\201\344\274\232\351\241\265\351\235\242/1.txt" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220420 \350\204\232\346\211\213\346\236\266\345\224\257\345\223\201\344\274\232\351\241\265\351\235\242/1.txt" new file mode 100644 index 0000000000000000000000000000000000000000..c20953205b0793fad697e4bca77f6c60224d0cca --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220420 \350\204\232\346\211\213\346\236\266\345\224\257\345\223\201\344\274\232\351\241\265\351\235\242/1.txt" @@ -0,0 +1 @@ +4.21·ļ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js" new file mode 100644 index 0000000000000000000000000000000000000000..919aab8758760f1b75b480d823bd5c97f611d879 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/AsyncGenerator.js" @@ -0,0 +1,95 @@ +import AwaitValue from "./AwaitValue.js"; +export default function AsyncGenerator(gen) { + var front, back; + + function send(key, arg) { + return new Promise(function (resolve, reject) { + var request = { + key: key, + arg: arg, + resolve: resolve, + reject: reject, + next: null + }; + + if (back) { + back = back.next = request; + } else { + front = back = request; + resume(key, arg); + } + }); + } + + function resume(key, arg) { + try { + var result = gen[key](arg); + var value = result.value; + var wrappedAwait = value instanceof AwaitValue; + Promise.resolve(wrappedAwait ? value.wrapped : value).then(function (arg) { + if (wrappedAwait) { + resume(key === "return" ? "return" : "next", arg); + return; + } + + settle(result.done ? "return" : "normal", arg); + }, function (err) { + resume("throw", err); + }); + } catch (err) { + settle("throw", err); + } + } + + function settle(type, value) { + switch (type) { + case "return": + front.resolve({ + value: value, + done: true + }); + break; + + case "throw": + front.reject(value); + break; + + default: + front.resolve({ + value: value, + done: false + }); + break; + } + + front = front.next; + + if (front) { + resume(front.key, front.arg); + } else { + back = null; + } + } + + this._invoke = send; + + if (typeof gen["return"] !== "function") { + this["return"] = undefined; + } +} + +AsyncGenerator.prototype[typeof Symbol === "function" && Symbol.asyncIterator || "@@asyncIterator"] = function () { + return this; +}; + +AsyncGenerator.prototype.next = function (arg) { + return this._invoke("next", arg); +}; + +AsyncGenerator.prototype["throw"] = function (arg) { + return this._invoke("throw", arg); +}; + +AsyncGenerator.prototype["return"] = function (arg) { + return this._invoke("return", arg); +}; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/AwaitValue.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/AwaitValue.js" new file mode 100644 index 0000000000000000000000000000000000000000..5237e18fdc8aa344a56444b5e423065befe2bcf0 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/AwaitValue.js" @@ -0,0 +1,3 @@ +export default function _AwaitValue(value) { + this.wrapped = value; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js" new file mode 100644 index 0000000000000000000000000000000000000000..84b59617c0764fae8a92d7ccf88adfc6e68a9fff --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/applyDecoratedDescriptor.js" @@ -0,0 +1,28 @@ +export default function _applyDecoratedDescriptor(target, property, decorators, descriptor, context) { + var desc = {}; + Object.keys(descriptor).forEach(function (key) { + desc[key] = descriptor[key]; + }); + desc.enumerable = !!desc.enumerable; + desc.configurable = !!desc.configurable; + + if ('value' in desc || desc.initializer) { + desc.writable = true; + } + + desc = decorators.slice().reverse().reduce(function (desc, decorator) { + return decorator(target, property, desc) || desc; + }, desc); + + if (context && desc.initializer !== void 0) { + desc.value = desc.initializer ? desc.initializer.call(context) : void 0; + desc.initializer = undefined; + } + + if (desc.initializer === void 0) { + Object.defineProperty(target, property, desc); + desc = null; + } + + return desc; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/applyDecs.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/applyDecs.js" new file mode 100644 index 0000000000000000000000000000000000000000..a6187c02b6c1b756a80e520d4d51a18a2fbbaa3d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/applyDecs.js" @@ -0,0 +1,282 @@ +import _typeof from "./typeof.js"; + +function createMetadataMethodsForProperty(metadataMap, kind, property, decoratorFinishedRef) { + return { + getMetadata: function getMetadata(key) { + assertNotFinished(decoratorFinishedRef, "getMetadata"), assertMetadataKey(key); + var metadataForKey = metadataMap[key]; + if (void 0 !== metadataForKey) if (1 === kind) { + var pub = metadataForKey["public"]; + if (void 0 !== pub) return pub[property]; + } else if (2 === kind) { + var priv = metadataForKey["private"]; + if (void 0 !== priv) return priv.get(property); + } else if (Object.hasOwnProperty.call(metadataForKey, "constructor")) return metadataForKey.constructor; + }, + setMetadata: function setMetadata(key, value) { + assertNotFinished(decoratorFinishedRef, "setMetadata"), assertMetadataKey(key); + var metadataForKey = metadataMap[key]; + + if (void 0 === metadataForKey && (metadataForKey = metadataMap[key] = {}), 1 === kind) { + var pub = metadataForKey["public"]; + void 0 === pub && (pub = metadataForKey["public"] = {}), pub[property] = value; + } else if (2 === kind) { + var priv = metadataForKey.priv; + void 0 === priv && (priv = metadataForKey["private"] = new Map()), priv.set(property, value); + } else metadataForKey.constructor = value; + } + }; +} + +function convertMetadataMapToFinal(obj, metadataMap) { + var parentMetadataMap = obj[Symbol.metadata || Symbol["for"]("Symbol.metadata")], + metadataKeys = Object.getOwnPropertySymbols(metadataMap); + + if (0 !== metadataKeys.length) { + for (var i = 0; i < metadataKeys.length; i++) { + var key = metadataKeys[i], + metaForKey = metadataMap[key], + parentMetaForKey = parentMetadataMap ? parentMetadataMap[key] : null, + pub = metaForKey["public"], + parentPub = parentMetaForKey ? parentMetaForKey["public"] : null; + pub && parentPub && Object.setPrototypeOf(pub, parentPub); + var priv = metaForKey["private"]; + + if (priv) { + var privArr = Array.from(priv.values()), + parentPriv = parentMetaForKey ? parentMetaForKey["private"] : null; + parentPriv && (privArr = privArr.concat(parentPriv)), metaForKey["private"] = privArr; + } + + parentMetaForKey && Object.setPrototypeOf(metaForKey, parentMetaForKey); + } + + parentMetadataMap && Object.setPrototypeOf(metadataMap, parentMetadataMap), obj[Symbol.metadata || Symbol["for"]("Symbol.metadata")] = metadataMap; + } +} + +function createAddInitializerMethod(initializers, decoratorFinishedRef) { + return function (initializer) { + assertNotFinished(decoratorFinishedRef, "addInitializer"), assertCallable(initializer, "An initializer"), initializers.push(initializer); + }; +} + +function memberDec(dec, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value) { + var kindStr; + + switch (kind) { + case 1: + kindStr = "accessor"; + break; + + case 2: + kindStr = "method"; + break; + + case 3: + kindStr = "getter"; + break; + + case 4: + kindStr = "setter"; + break; + + default: + kindStr = "field"; + } + + var metadataKind, + metadataName, + ctx = { + kind: kindStr, + name: isPrivate ? "#" + name : name, + isStatic: isStatic, + isPrivate: isPrivate + }, + decoratorFinishedRef = { + v: !1 + }; + + if (0 !== kind && (ctx.addInitializer = createAddInitializerMethod(initializers, decoratorFinishedRef)), isPrivate) { + metadataKind = 2, metadataName = Symbol(name); + var access = {}; + 0 === kind ? (access.get = desc.get, access.set = desc.set) : 2 === kind ? access.get = function () { + return desc.value; + } : (1 !== kind && 3 !== kind || (access.get = function () { + return desc.get.call(this); + }), 1 !== kind && 4 !== kind || (access.set = function (v) { + desc.set.call(this, v); + })), ctx.access = access; + } else metadataKind = 1, metadataName = name; + + try { + return dec(value, Object.assign(ctx, createMetadataMethodsForProperty(metadataMap, metadataKind, metadataName, decoratorFinishedRef))); + } finally { + decoratorFinishedRef.v = !0; + } +} + +function assertNotFinished(decoratorFinishedRef, fnName) { + if (decoratorFinishedRef.v) throw new Error("attempted to call " + fnName + " after decoration was finished"); +} + +function assertMetadataKey(key) { + if ("symbol" != _typeof(key)) throw new TypeError("Metadata keys must be symbols, received: " + key); +} + +function assertCallable(fn, hint) { + if ("function" != typeof fn) throw new TypeError(hint + " must be a function"); +} + +function assertValidReturnValue(kind, value) { + var type = _typeof(value); + + if (1 === kind) { + if ("object" !== type || null === value) throw new TypeError("accessor decorators must return an object with get, set, or init properties or void 0"); + void 0 !== value.get && assertCallable(value.get, "accessor.get"), void 0 !== value.set && assertCallable(value.set, "accessor.set"), void 0 !== value.init && assertCallable(value.init, "accessor.init"), void 0 !== value.initializer && assertCallable(value.initializer, "accessor.initializer"); + } else if ("function" !== type) { + var hint; + throw hint = 0 === kind ? "field" : 10 === kind ? "class" : "method", new TypeError(hint + " decorators must return a function or void 0"); + } +} + +function getInit(desc) { + var initializer; + return null == (initializer = desc.init) && (initializer = desc.initializer) && "undefined" != typeof console && console.warn(".initializer has been renamed to .init as of March 2022"), initializer; +} + +function applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers) { + var desc, + initializer, + value, + newValue, + get, + set, + decs = decInfo[0]; + if (isPrivate ? desc = 0 === kind || 1 === kind ? { + get: decInfo[3], + set: decInfo[4] + } : 3 === kind ? { + get: decInfo[3] + } : 4 === kind ? { + set: decInfo[3] + } : { + value: decInfo[3] + } : 0 !== kind && (desc = Object.getOwnPropertyDescriptor(base, name)), 1 === kind ? value = { + get: desc.get, + set: desc.set + } : 2 === kind ? value = desc.value : 3 === kind ? value = desc.get : 4 === kind && (value = desc.set), "function" == typeof decs) void 0 !== (newValue = memberDec(decs, name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value)) && (assertValidReturnValue(kind, newValue), 0 === kind ? initializer = newValue : 1 === kind ? (initializer = getInit(newValue), get = newValue.get || value.get, set = newValue.set || value.set, value = { + get: get, + set: set + }) : value = newValue);else for (var i = decs.length - 1; i >= 0; i--) { + var newInit; + if (void 0 !== (newValue = memberDec(decs[i], name, desc, metadataMap, initializers, kind, isStatic, isPrivate, value))) assertValidReturnValue(kind, newValue), 0 === kind ? newInit = newValue : 1 === kind ? (newInit = getInit(newValue), get = newValue.get || value.get, set = newValue.set || value.set, value = { + get: get, + set: set + }) : value = newValue, void 0 !== newInit && (void 0 === initializer ? initializer = newInit : "function" == typeof initializer ? initializer = [initializer, newInit] : initializer.push(newInit)); + } + + if (0 === kind || 1 === kind) { + if (void 0 === initializer) initializer = function initializer(instance, init) { + return init; + };else if ("function" != typeof initializer) { + var ownInitializers = initializer; + + initializer = function initializer(instance, init) { + for (var value = init, i = 0; i < ownInitializers.length; i++) { + value = ownInitializers[i].call(instance, value); + } + + return value; + }; + } else { + var originalInitializer = initializer; + + initializer = function initializer(instance, init) { + return originalInitializer.call(instance, init); + }; + } + ret.push(initializer); + } + + 0 !== kind && (1 === kind ? (desc.get = value.get, desc.set = value.set) : 2 === kind ? desc.value = value : 3 === kind ? desc.get = value : 4 === kind && (desc.set = value), isPrivate ? 1 === kind ? (ret.push(function (instance, args) { + return value.get.call(instance, args); + }), ret.push(function (instance, args) { + return value.set.call(instance, args); + })) : 2 === kind ? ret.push(value) : ret.push(function (instance, args) { + return value.call(instance, args); + }) : Object.defineProperty(base, name, desc)); +} + +function applyMemberDecs(ret, Class, protoMetadataMap, staticMetadataMap, decInfos) { + for (var protoInitializers, staticInitializers, existingProtoNonFields = new Map(), existingStaticNonFields = new Map(), i = 0; i < decInfos.length; i++) { + var decInfo = decInfos[i]; + + if (Array.isArray(decInfo)) { + var base, + metadataMap, + initializers, + kind = decInfo[1], + name = decInfo[2], + isPrivate = decInfo.length > 3, + isStatic = kind >= 5; + + if (isStatic ? (base = Class, metadataMap = staticMetadataMap, 0 !== (kind -= 5) && (initializers = staticInitializers = staticInitializers || [])) : (base = Class.prototype, metadataMap = protoMetadataMap, 0 !== kind && (initializers = protoInitializers = protoInitializers || [])), 0 !== kind && !isPrivate) { + var existingNonFields = isStatic ? existingStaticNonFields : existingProtoNonFields, + existingKind = existingNonFields.get(name) || 0; + if (!0 === existingKind || 3 === existingKind && 4 !== kind || 4 === existingKind && 3 !== kind) throw new Error("Attempted to decorate a public method/accessor that has the same name as a previously decorated public method/accessor. This is not currently supported by the decorators plugin. Property name was: " + name); + !existingKind && kind > 2 ? existingNonFields.set(name, kind) : existingNonFields.set(name, !0); + } + + applyMemberDec(ret, base, decInfo, name, kind, isStatic, isPrivate, metadataMap, initializers); + } + } + + pushInitializers(ret, protoInitializers), pushInitializers(ret, staticInitializers); +} + +function pushInitializers(ret, initializers) { + initializers && ret.push(function (instance) { + for (var i = 0; i < initializers.length; i++) { + initializers[i].call(instance); + } + + return instance; + }); +} + +function applyClassDecs(ret, targetClass, metadataMap, classDecs) { + if (classDecs.length > 0) { + for (var initializers = [], newClass = targetClass, name = targetClass.name, i = classDecs.length - 1; i >= 0; i--) { + var decoratorFinishedRef = { + v: !1 + }; + + try { + var ctx = Object.assign({ + kind: "class", + name: name, + addInitializer: createAddInitializerMethod(initializers, decoratorFinishedRef) + }, createMetadataMethodsForProperty(metadataMap, 0, name, decoratorFinishedRef)), + nextNewClass = classDecs[i](newClass, ctx); + } finally { + decoratorFinishedRef.v = !0; + } + + void 0 !== nextNewClass && (assertValidReturnValue(10, nextNewClass), newClass = nextNewClass); + } + + ret.push(newClass, function () { + for (var i = 0; i < initializers.length; i++) { + initializers[i].call(newClass); + } + }); + } +} + +export default function applyDecs(targetClass, memberDecs, classDecs) { + var ret = [], + staticMetadataMap = {}, + protoMetadataMap = {}; + return applyMemberDecs(ret, targetClass, protoMetadataMap, staticMetadataMap, memberDecs), convertMetadataMapToFinal(targetClass.prototype, protoMetadataMap), applyClassDecs(ret, targetClass, staticMetadataMap, classDecs), convertMetadataMapToFinal(targetClass, staticMetadataMap), ret; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js" new file mode 100644 index 0000000000000000000000000000000000000000..edbeb8ee38416977887fbf8801008a1b9f1d232b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js" @@ -0,0 +1,9 @@ +export default function _arrayLikeToArray(arr, len) { + if (len == null || len > arr.length) len = arr.length; + + for (var i = 0, arr2 = new Array(len); i < len; i++) { + arr2[i] = arr[i]; + } + + return arr2; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js" new file mode 100644 index 0000000000000000000000000000000000000000..be734fc38621e44fc547619a85ee1fba97d01fae --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js" @@ -0,0 +1,3 @@ +export default function _arrayWithHoles(arr) { + if (Array.isArray(arr)) return arr; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js" new file mode 100644 index 0000000000000000000000000000000000000000..f7d8dc781419d04a594e5e98e87107680ae0f414 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js" @@ -0,0 +1,4 @@ +import arrayLikeToArray from "./arrayLikeToArray.js"; +export default function _arrayWithoutHoles(arr) { + if (Array.isArray(arr)) return arrayLikeToArray(arr); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js" new file mode 100644 index 0000000000000000000000000000000000000000..bbf849ca50e66f60bb95da3091fbc944e73f1669 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js" @@ -0,0 +1,7 @@ +export default function _assertThisInitialized(self) { + if (self === void 0) { + throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); + } + + return self; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js" new file mode 100644 index 0000000000000000000000000000000000000000..a7ccd67547d801f4d48bf7887765ba9657d5107b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/asyncGeneratorDelegate.js" @@ -0,0 +1,54 @@ +export default function _asyncGeneratorDelegate(inner, awaitWrap) { + var iter = {}, + waiting = false; + + function pump(key, value) { + waiting = true; + value = new Promise(function (resolve) { + resolve(inner[key](value)); + }); + return { + done: false, + value: awaitWrap(value) + }; + } + + ; + + iter[typeof Symbol !== "undefined" && Symbol.iterator || "@@iterator"] = function () { + return this; + }; + + iter.next = function (value) { + if (waiting) { + waiting = false; + return value; + } + + return pump("next", value); + }; + + if (typeof inner["throw"] === "function") { + iter["throw"] = function (value) { + if (waiting) { + waiting = false; + throw value; + } + + return pump("throw", value); + }; + } + + if (typeof inner["return"] === "function") { + iter["return"] = function (value) { + if (waiting) { + waiting = false; + return value; + } + + return pump("return", value); + }; + } + + return iter; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/asyncIterator.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/asyncIterator.js" new file mode 100644 index 0000000000000000000000000000000000000000..030c44e09699401f6643b76fdbf44603f616da13 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/asyncIterator.js" @@ -0,0 +1,48 @@ +export default function _asyncIterator(iterable) { + var method, + async, + sync, + retry = 2; + + for ("undefined" != typeof Symbol && (async = Symbol.asyncIterator, sync = Symbol.iterator); retry--;) { + if (async && null != (method = iterable[async])) return method.call(iterable); + if (sync && null != (method = iterable[sync])) return new AsyncFromSyncIterator(method.call(iterable)); + async = "@@asyncIterator", sync = "@@iterator"; + } + + throw new TypeError("Object is not async iterable"); +} + +function AsyncFromSyncIterator(s) { + function AsyncFromSyncIteratorContinuation(r) { + if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); + var done = r.done; + return Promise.resolve(r.value).then(function (value) { + return { + value: value, + done: done + }; + }); + } + + return AsyncFromSyncIterator = function AsyncFromSyncIterator(s) { + this.s = s, this.n = s.next; + }, AsyncFromSyncIterator.prototype = { + s: null, + n: null, + next: function next() { + return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); + }, + "return": function _return(value) { + var ret = this.s["return"]; + return void 0 === ret ? Promise.resolve({ + value: value, + done: !0 + }) : AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments)); + }, + "throw": function _throw(value) { + var thr = this.s["return"]; + return void 0 === thr ? Promise.reject(value) : AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments)); + } + }, new AsyncFromSyncIterator(s); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js" new file mode 100644 index 0000000000000000000000000000000000000000..2a25f543bfedbe7d725387c64fb66b8155ace549 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js" @@ -0,0 +1,35 @@ +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { + try { + var info = gen[key](arg); + var value = info.value; + } catch (error) { + reject(error); + return; + } + + if (info.done) { + resolve(value); + } else { + Promise.resolve(value).then(_next, _throw); + } +} + +export default function _asyncToGenerator(fn) { + return function () { + var self = this, + args = arguments; + return new Promise(function (resolve, reject) { + var gen = fn.apply(self, args); + + function _next(value) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); + } + + function _throw(err) { + asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); + } + + _next(undefined); + }); + }; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js" new file mode 100644 index 0000000000000000000000000000000000000000..ccca65e53c84c34fb18f991f4ddbef18074849a2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/awaitAsyncGenerator.js" @@ -0,0 +1,4 @@ +import AwaitValue from "./AwaitValue.js"; +export default function _awaitAsyncGenerator(value) { + return new AwaitValue(value); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js" new file mode 100644 index 0000000000000000000000000000000000000000..990140366625c949a8ffee1da66ee3112d7fc711 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/checkPrivateRedeclaration.js" @@ -0,0 +1,5 @@ +export default function _checkPrivateRedeclaration(obj, privateCollection) { + if (privateCollection.has(obj)) { + throw new TypeError("Cannot initialize the same private elements twice on an object"); + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js" new file mode 100644 index 0000000000000000000000000000000000000000..4472adc640f6b1238c072b29aff968dc27611a09 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorDestructureSet.js" @@ -0,0 +1,20 @@ +export default function _classApplyDescriptorDestructureSet(receiver, descriptor) { + if (descriptor.set) { + if (!("__destrObj" in descriptor)) { + descriptor.__destrObj = { + set value(v) { + descriptor.set.call(receiver, v); + } + + }; + } + + return descriptor.__destrObj; + } else { + if (!descriptor.writable) { + throw new TypeError("attempted to set read only private field"); + } + + return descriptor; + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js" new file mode 100644 index 0000000000000000000000000000000000000000..0fad169d50c0fe76d35b167c10bd68c20975015c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorGet.js" @@ -0,0 +1,7 @@ +export default function _classApplyDescriptorGet(receiver, descriptor) { + if (descriptor.get) { + return descriptor.get.call(receiver); + } + + return descriptor.value; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js" new file mode 100644 index 0000000000000000000000000000000000000000..f295f3e364d1f0079c0fb8f6e823ee4e49b5c355 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classApplyDescriptorSet.js" @@ -0,0 +1,11 @@ +export default function _classApplyDescriptorSet(receiver, descriptor, value) { + if (descriptor.set) { + descriptor.set.call(receiver, value); + } else { + if (!descriptor.writable) { + throw new TypeError("attempted to set read only private field"); + } + + descriptor.value = value; + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classCallCheck.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classCallCheck.js" new file mode 100644 index 0000000000000000000000000000000000000000..2f1738a3d6f611d10e63321e785bb07aa4dbf239 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classCallCheck.js" @@ -0,0 +1,5 @@ +export default function _classCallCheck(instance, Constructor) { + if (!(instance instanceof Constructor)) { + throw new TypeError("Cannot call a class as a function"); + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js" new file mode 100644 index 0000000000000000000000000000000000000000..098ed30900ec1e1caf5ceacc9869913bca3adc66 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticAccess.js" @@ -0,0 +1,5 @@ +export default function _classCheckPrivateStaticAccess(receiver, classConstructor) { + if (receiver !== classConstructor) { + throw new TypeError("Private static access of wrong provenance"); + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js" new file mode 100644 index 0000000000000000000000000000000000000000..0ef34b8d7147c9b9cfceea506ba3859da52e708e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classCheckPrivateStaticFieldDescriptor.js" @@ -0,0 +1,5 @@ +export default function _classCheckPrivateStaticFieldDescriptor(descriptor, action) { + if (descriptor === undefined) { + throw new TypeError("attempted to " + action + " private static field before its declaration"); + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js" new file mode 100644 index 0000000000000000000000000000000000000000..8dabe9a32c42fc7cbf2115d7a4f78518f1db261c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classExtractFieldDescriptor.js" @@ -0,0 +1,7 @@ +export default function _classExtractFieldDescriptor(receiver, privateMap, action) { + if (!privateMap.has(receiver)) { + throw new TypeError("attempted to " + action + " private field on non-instance"); + } + + return privateMap.get(receiver); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js" new file mode 100644 index 0000000000000000000000000000000000000000..f7b6dd5787e9fd5ec7bea083e8644ee3e5714a68 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classNameTDZError.js" @@ -0,0 +1,3 @@ +export default function _classNameTDZError(name) { + throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys."); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js" new file mode 100644 index 0000000000000000000000000000000000000000..fb5883369bbc9fec742e08bdb0bc4a4b68343bdb --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateFieldDestructureSet.js" @@ -0,0 +1,6 @@ +import classApplyDescriptorDestructureSet from "./classApplyDescriptorDestructureSet.js"; +import classExtractFieldDescriptor from "./classExtractFieldDescriptor.js"; +export default function _classPrivateFieldDestructureSet(receiver, privateMap) { + var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set"); + return classApplyDescriptorDestructureSet(receiver, descriptor); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js" new file mode 100644 index 0000000000000000000000000000000000000000..53cd1379cbbf203dcfc218415288df1bee8b1ab1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateFieldGet.js" @@ -0,0 +1,6 @@ +import classApplyDescriptorGet from "./classApplyDescriptorGet.js"; +import classExtractFieldDescriptor from "./classExtractFieldDescriptor.js"; +export default function _classPrivateFieldGet(receiver, privateMap) { + var descriptor = classExtractFieldDescriptor(receiver, privateMap, "get"); + return classApplyDescriptorGet(receiver, descriptor); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js" new file mode 100644 index 0000000000000000000000000000000000000000..2253dd84f0f58867dba2455e2e3622c2db3be23a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateFieldInitSpec.js" @@ -0,0 +1,5 @@ +import checkPrivateRedeclaration from "./checkPrivateRedeclaration.js"; +export default function _classPrivateFieldInitSpec(obj, privateMap, value) { + checkPrivateRedeclaration(obj, privateMap); + privateMap.set(obj, value); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js" new file mode 100644 index 0000000000000000000000000000000000000000..5b10916f478af5c7a2372d8899cdfc0853ed38a9 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseBase.js" @@ -0,0 +1,7 @@ +export default function _classPrivateFieldBase(receiver, privateKey) { + if (!Object.prototype.hasOwnProperty.call(receiver, privateKey)) { + throw new TypeError("attempted to use private field on non-instance"); + } + + return receiver; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js" new file mode 100644 index 0000000000000000000000000000000000000000..5b7e5ac020eef518463f1072b7d180b5f7d97691 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateFieldLooseKey.js" @@ -0,0 +1,4 @@ +var id = 0; +export default function _classPrivateFieldKey(name) { + return "__private_" + id++ + "_" + name; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js" new file mode 100644 index 0000000000000000000000000000000000000000..ad91be4408dfd66d93b82fc3facdc836b0d8c003 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateFieldSet.js" @@ -0,0 +1,7 @@ +import classApplyDescriptorSet from "./classApplyDescriptorSet.js"; +import classExtractFieldDescriptor from "./classExtractFieldDescriptor.js"; +export default function _classPrivateFieldSet(receiver, privateMap, value) { + var descriptor = classExtractFieldDescriptor(receiver, privateMap, "set"); + classApplyDescriptorSet(receiver, descriptor, value); + return value; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js" new file mode 100644 index 0000000000000000000000000000000000000000..38b9d584dea1eacbee42b2812455d9b4c8633a47 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateMethodGet.js" @@ -0,0 +1,7 @@ +export default function _classPrivateMethodGet(receiver, privateSet, fn) { + if (!privateSet.has(receiver)) { + throw new TypeError("attempted to get private field on non-instance"); + } + + return fn; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js" new file mode 100644 index 0000000000000000000000000000000000000000..18d129159cfd253ef957e2c92d6351aae409cd7f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateMethodInitSpec.js" @@ -0,0 +1,5 @@ +import checkPrivateRedeclaration from "./checkPrivateRedeclaration.js"; +export default function _classPrivateMethodInitSpec(obj, privateSet) { + checkPrivateRedeclaration(obj, privateSet); + privateSet.add(obj); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js" new file mode 100644 index 0000000000000000000000000000000000000000..2bbaf3a7a46949b610f8060ea2f3573054b7727e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classPrivateMethodSet.js" @@ -0,0 +1,3 @@ +export default function _classPrivateMethodSet() { + throw new TypeError("attempted to reassign private method"); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js" new file mode 100644 index 0000000000000000000000000000000000000000..77afcfb1876921dcf9eb5385e4a2e83ce7d7892a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldDestructureSet.js" @@ -0,0 +1,8 @@ +import classApplyDescriptorDestructureSet from "./classApplyDescriptorDestructureSet.js"; +import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js"; +import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js"; +export default function _classStaticPrivateFieldDestructureSet(receiver, classConstructor, descriptor) { + classCheckPrivateStaticAccess(receiver, classConstructor); + classCheckPrivateStaticFieldDescriptor(descriptor, "set"); + return classApplyDescriptorDestructureSet(receiver, descriptor); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js" new file mode 100644 index 0000000000000000000000000000000000000000..d253d31198ae6b71fb35ca8a9650b797fdafed14 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecGet.js" @@ -0,0 +1,8 @@ +import classApplyDescriptorGet from "./classApplyDescriptorGet.js"; +import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js"; +import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js"; +export default function _classStaticPrivateFieldSpecGet(receiver, classConstructor, descriptor) { + classCheckPrivateStaticAccess(receiver, classConstructor); + classCheckPrivateStaticFieldDescriptor(descriptor, "get"); + return classApplyDescriptorGet(receiver, descriptor); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js" new file mode 100644 index 0000000000000000000000000000000000000000..b0b0cc64443d4887084baedada8a4cb2e5b62b1e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classStaticPrivateFieldSpecSet.js" @@ -0,0 +1,9 @@ +import classApplyDescriptorSet from "./classApplyDescriptorSet.js"; +import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js"; +import classCheckPrivateStaticFieldDescriptor from "./classCheckPrivateStaticFieldDescriptor.js"; +export default function _classStaticPrivateFieldSpecSet(receiver, classConstructor, descriptor, value) { + classCheckPrivateStaticAccess(receiver, classConstructor); + classCheckPrivateStaticFieldDescriptor(descriptor, "set"); + classApplyDescriptorSet(receiver, descriptor, value); + return value; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js" new file mode 100644 index 0000000000000000000000000000000000000000..fddc7b2d8ce6e925f958f507acdfd1e0d9911f8f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodGet.js" @@ -0,0 +1,5 @@ +import classCheckPrivateStaticAccess from "./classCheckPrivateStaticAccess.js"; +export default function _classStaticPrivateMethodGet(receiver, classConstructor, method) { + classCheckPrivateStaticAccess(receiver, classConstructor); + return method; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js" new file mode 100644 index 0000000000000000000000000000000000000000..d5ab60a970b8bc3bcf5af92f726477451053710c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/classStaticPrivateMethodSet.js" @@ -0,0 +1,3 @@ +export default function _classStaticPrivateMethodSet() { + throw new TypeError("attempted to set read only static private field"); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/construct.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/construct.js" new file mode 100644 index 0000000000000000000000000000000000000000..0c39835d2dc479c238f0fd617be1c32f7670b16a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/construct.js" @@ -0,0 +1,18 @@ +import setPrototypeOf from "./setPrototypeOf.js"; +import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; +export default function _construct(Parent, args, Class) { + if (isNativeReflectConstruct()) { + _construct = Reflect.construct; + } else { + _construct = function _construct(Parent, args, Class) { + var a = [null]; + a.push.apply(a, args); + var Constructor = Function.bind.apply(Parent, a); + var instance = new Constructor(); + if (Class) setPrototypeOf(instance, Class.prototype); + return instance; + }; + } + + return _construct.apply(null, arguments); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/createClass.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/createClass.js" new file mode 100644 index 0000000000000000000000000000000000000000..b320731589099cb0abc8fdd215f42e4778aae9ce --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/createClass.js" @@ -0,0 +1,18 @@ +function _defineProperties(target, props) { + for (var i = 0; i < props.length; i++) { + var descriptor = props[i]; + descriptor.enumerable = descriptor.enumerable || false; + descriptor.configurable = true; + if ("value" in descriptor) descriptor.writable = true; + Object.defineProperty(target, descriptor.key, descriptor); + } +} + +export default function _createClass(Constructor, protoProps, staticProps) { + if (protoProps) _defineProperties(Constructor.prototype, protoProps); + if (staticProps) _defineProperties(Constructor, staticProps); + Object.defineProperty(Constructor, "prototype", { + writable: false + }); + return Constructor; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js" new file mode 100644 index 0000000000000000000000000000000000000000..a7a2a50adc0acd4c75a48b16b2fb15a9bdcc0f9d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js" @@ -0,0 +1,57 @@ +import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; +export default function _createForOfIteratorHelper(o, allowArrayLike) { + var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; + + if (!it) { + if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { + if (it) o = it; + var i = 0; + + var F = function F() {}; + + return { + s: F, + n: function n() { + if (i >= o.length) return { + done: true + }; + return { + done: false, + value: o[i++] + }; + }, + e: function e(_e) { + throw _e; + }, + f: F + }; + } + + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); + } + + var normalCompletion = true, + didErr = false, + err; + return { + s: function s() { + it = it.call(o); + }, + n: function n() { + var step = it.next(); + normalCompletion = step.done; + return step; + }, + e: function e(_e2) { + didErr = true; + err = _e2; + }, + f: function f() { + try { + if (!normalCompletion && it["return"] != null) it["return"](); + } finally { + if (didErr) throw err; + } + } + }; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js" new file mode 100644 index 0000000000000000000000000000000000000000..640ec68310cf638e629b84b84b6986fb32e6c33e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelperLoose.js" @@ -0,0 +1,21 @@ +import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; +export default function _createForOfIteratorHelperLoose(o, allowArrayLike) { + var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; + if (it) return (it = it.call(o)).next.bind(it); + + if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { + if (it) o = it; + var i = 0; + return function () { + if (i >= o.length) return { + done: true + }; + return { + done: false, + value: o[i++] + }; + }; + } + + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/createSuper.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/createSuper.js" new file mode 100644 index 0000000000000000000000000000000000000000..ea5ea99552a53591c288cbb1c2dd5e45810466cb --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/createSuper.js" @@ -0,0 +1,19 @@ +import getPrototypeOf from "./getPrototypeOf.js"; +import isNativeReflectConstruct from "./isNativeReflectConstruct.js"; +import possibleConstructorReturn from "./possibleConstructorReturn.js"; +export default function _createSuper(Derived) { + var hasNativeReflectConstruct = isNativeReflectConstruct(); + return function _createSuperInternal() { + var Super = getPrototypeOf(Derived), + result; + + if (hasNativeReflectConstruct) { + var NewTarget = getPrototypeOf(this).constructor; + result = Reflect.construct(Super, arguments, NewTarget); + } else { + result = Super.apply(this, arguments); + } + + return possibleConstructorReturn(this, result); + }; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/decorate.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/decorate.js" new file mode 100644 index 0000000000000000000000000000000000000000..daf56da209aea2b282a29f3a3e5b4a498ac60d76 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/decorate.js" @@ -0,0 +1,396 @@ +import toArray from "./toArray.js"; +import toPropertyKey from "./toPropertyKey.js"; +export default function _decorate(decorators, factory, superClass, mixins) { + var api = _getDecoratorsApi(); + + if (mixins) { + for (var i = 0; i < mixins.length; i++) { + api = mixins[i](api); + } + } + + var r = factory(function initialize(O) { + api.initializeInstanceElements(O, decorated.elements); + }, superClass); + var decorated = api.decorateClass(_coalesceClassElements(r.d.map(_createElementDescriptor)), decorators); + api.initializeClassElements(r.F, decorated.elements); + return api.runClassFinishers(r.F, decorated.finishers); +} + +function _getDecoratorsApi() { + _getDecoratorsApi = function _getDecoratorsApi() { + return api; + }; + + var api = { + elementsDefinitionOrder: [["method"], ["field"]], + initializeInstanceElements: function initializeInstanceElements(O, elements) { + ["method", "field"].forEach(function (kind) { + elements.forEach(function (element) { + if (element.kind === kind && element.placement === "own") { + this.defineClassElement(O, element); + } + }, this); + }, this); + }, + initializeClassElements: function initializeClassElements(F, elements) { + var proto = F.prototype; + ["method", "field"].forEach(function (kind) { + elements.forEach(function (element) { + var placement = element.placement; + + if (element.kind === kind && (placement === "static" || placement === "prototype")) { + var receiver = placement === "static" ? F : proto; + this.defineClassElement(receiver, element); + } + }, this); + }, this); + }, + defineClassElement: function defineClassElement(receiver, element) { + var descriptor = element.descriptor; + + if (element.kind === "field") { + var initializer = element.initializer; + descriptor = { + enumerable: descriptor.enumerable, + writable: descriptor.writable, + configurable: descriptor.configurable, + value: initializer === void 0 ? void 0 : initializer.call(receiver) + }; + } + + Object.defineProperty(receiver, element.key, descriptor); + }, + decorateClass: function decorateClass(elements, decorators) { + var newElements = []; + var finishers = []; + var placements = { + "static": [], + prototype: [], + own: [] + }; + elements.forEach(function (element) { + this.addElementPlacement(element, placements); + }, this); + elements.forEach(function (element) { + if (!_hasDecorators(element)) return newElements.push(element); + var elementFinishersExtras = this.decorateElement(element, placements); + newElements.push(elementFinishersExtras.element); + newElements.push.apply(newElements, elementFinishersExtras.extras); + finishers.push.apply(finishers, elementFinishersExtras.finishers); + }, this); + + if (!decorators) { + return { + elements: newElements, + finishers: finishers + }; + } + + var result = this.decorateConstructor(newElements, decorators); + finishers.push.apply(finishers, result.finishers); + result.finishers = finishers; + return result; + }, + addElementPlacement: function addElementPlacement(element, placements, silent) { + var keys = placements[element.placement]; + + if (!silent && keys.indexOf(element.key) !== -1) { + throw new TypeError("Duplicated element (" + element.key + ")"); + } + + keys.push(element.key); + }, + decorateElement: function decorateElement(element, placements) { + var extras = []; + var finishers = []; + + for (var decorators = element.decorators, i = decorators.length - 1; i >= 0; i--) { + var keys = placements[element.placement]; + keys.splice(keys.indexOf(element.key), 1); + var elementObject = this.fromElementDescriptor(element); + var elementFinisherExtras = this.toElementFinisherExtras((0, decorators[i])(elementObject) || elementObject); + element = elementFinisherExtras.element; + this.addElementPlacement(element, placements); + + if (elementFinisherExtras.finisher) { + finishers.push(elementFinisherExtras.finisher); + } + + var newExtras = elementFinisherExtras.extras; + + if (newExtras) { + for (var j = 0; j < newExtras.length; j++) { + this.addElementPlacement(newExtras[j], placements); + } + + extras.push.apply(extras, newExtras); + } + } + + return { + element: element, + finishers: finishers, + extras: extras + }; + }, + decorateConstructor: function decorateConstructor(elements, decorators) { + var finishers = []; + + for (var i = decorators.length - 1; i >= 0; i--) { + var obj = this.fromClassDescriptor(elements); + var elementsAndFinisher = this.toClassDescriptor((0, decorators[i])(obj) || obj); + + if (elementsAndFinisher.finisher !== undefined) { + finishers.push(elementsAndFinisher.finisher); + } + + if (elementsAndFinisher.elements !== undefined) { + elements = elementsAndFinisher.elements; + + for (var j = 0; j < elements.length - 1; j++) { + for (var k = j + 1; k < elements.length; k++) { + if (elements[j].key === elements[k].key && elements[j].placement === elements[k].placement) { + throw new TypeError("Duplicated element (" + elements[j].key + ")"); + } + } + } + } + } + + return { + elements: elements, + finishers: finishers + }; + }, + fromElementDescriptor: function fromElementDescriptor(element) { + var obj = { + kind: element.kind, + key: element.key, + placement: element.placement, + descriptor: element.descriptor + }; + var desc = { + value: "Descriptor", + configurable: true + }; + Object.defineProperty(obj, Symbol.toStringTag, desc); + if (element.kind === "field") obj.initializer = element.initializer; + return obj; + }, + toElementDescriptors: function toElementDescriptors(elementObjects) { + if (elementObjects === undefined) return; + return toArray(elementObjects).map(function (elementObject) { + var element = this.toElementDescriptor(elementObject); + this.disallowProperty(elementObject, "finisher", "An element descriptor"); + this.disallowProperty(elementObject, "extras", "An element descriptor"); + return element; + }, this); + }, + toElementDescriptor: function toElementDescriptor(elementObject) { + var kind = String(elementObject.kind); + + if (kind !== "method" && kind !== "field") { + throw new TypeError('An element descriptor\'s .kind property must be either "method" or' + ' "field", but a decorator created an element descriptor with' + ' .kind "' + kind + '"'); + } + + var key = toPropertyKey(elementObject.key); + var placement = String(elementObject.placement); + + if (placement !== "static" && placement !== "prototype" && placement !== "own") { + throw new TypeError('An element descriptor\'s .placement property must be one of "static",' + ' "prototype" or "own", but a decorator created an element descriptor' + ' with .placement "' + placement + '"'); + } + + var descriptor = elementObject.descriptor; + this.disallowProperty(elementObject, "elements", "An element descriptor"); + var element = { + kind: kind, + key: key, + placement: placement, + descriptor: Object.assign({}, descriptor) + }; + + if (kind !== "field") { + this.disallowProperty(elementObject, "initializer", "A method descriptor"); + } else { + this.disallowProperty(descriptor, "get", "The property descriptor of a field descriptor"); + this.disallowProperty(descriptor, "set", "The property descriptor of a field descriptor"); + this.disallowProperty(descriptor, "value", "The property descriptor of a field descriptor"); + element.initializer = elementObject.initializer; + } + + return element; + }, + toElementFinisherExtras: function toElementFinisherExtras(elementObject) { + var element = this.toElementDescriptor(elementObject); + + var finisher = _optionalCallableProperty(elementObject, "finisher"); + + var extras = this.toElementDescriptors(elementObject.extras); + return { + element: element, + finisher: finisher, + extras: extras + }; + }, + fromClassDescriptor: function fromClassDescriptor(elements) { + var obj = { + kind: "class", + elements: elements.map(this.fromElementDescriptor, this) + }; + var desc = { + value: "Descriptor", + configurable: true + }; + Object.defineProperty(obj, Symbol.toStringTag, desc); + return obj; + }, + toClassDescriptor: function toClassDescriptor(obj) { + var kind = String(obj.kind); + + if (kind !== "class") { + throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator' + ' created a class descriptor with .kind "' + kind + '"'); + } + + this.disallowProperty(obj, "key", "A class descriptor"); + this.disallowProperty(obj, "placement", "A class descriptor"); + this.disallowProperty(obj, "descriptor", "A class descriptor"); + this.disallowProperty(obj, "initializer", "A class descriptor"); + this.disallowProperty(obj, "extras", "A class descriptor"); + + var finisher = _optionalCallableProperty(obj, "finisher"); + + var elements = this.toElementDescriptors(obj.elements); + return { + elements: elements, + finisher: finisher + }; + }, + runClassFinishers: function runClassFinishers(constructor, finishers) { + for (var i = 0; i < finishers.length; i++) { + var newConstructor = (0, finishers[i])(constructor); + + if (newConstructor !== undefined) { + if (typeof newConstructor !== "function") { + throw new TypeError("Finishers must return a constructor."); + } + + constructor = newConstructor; + } + } + + return constructor; + }, + disallowProperty: function disallowProperty(obj, name, objectType) { + if (obj[name] !== undefined) { + throw new TypeError(objectType + " can't have a ." + name + " property."); + } + } + }; + return api; +} + +function _createElementDescriptor(def) { + var key = toPropertyKey(def.key); + var descriptor; + + if (def.kind === "method") { + descriptor = { + value: def.value, + writable: true, + configurable: true, + enumerable: false + }; + } else if (def.kind === "get") { + descriptor = { + get: def.value, + configurable: true, + enumerable: false + }; + } else if (def.kind === "set") { + descriptor = { + set: def.value, + configurable: true, + enumerable: false + }; + } else if (def.kind === "field") { + descriptor = { + configurable: true, + writable: true, + enumerable: true + }; + } + + var element = { + kind: def.kind === "field" ? "field" : "method", + key: key, + placement: def["static"] ? "static" : def.kind === "field" ? "own" : "prototype", + descriptor: descriptor + }; + if (def.decorators) element.decorators = def.decorators; + if (def.kind === "field") element.initializer = def.value; + return element; +} + +function _coalesceGetterSetter(element, other) { + if (element.descriptor.get !== undefined) { + other.descriptor.get = element.descriptor.get; + } else { + other.descriptor.set = element.descriptor.set; + } +} + +function _coalesceClassElements(elements) { + var newElements = []; + + var isSameElement = function isSameElement(other) { + return other.kind === "method" && other.key === element.key && other.placement === element.placement; + }; + + for (var i = 0; i < elements.length; i++) { + var element = elements[i]; + var other; + + if (element.kind === "method" && (other = newElements.find(isSameElement))) { + if (_isDataDescriptor(element.descriptor) || _isDataDescriptor(other.descriptor)) { + if (_hasDecorators(element) || _hasDecorators(other)) { + throw new ReferenceError("Duplicated methods (" + element.key + ") can't be decorated."); + } + + other.descriptor = element.descriptor; + } else { + if (_hasDecorators(element)) { + if (_hasDecorators(other)) { + throw new ReferenceError("Decorators can't be placed on different accessors with for " + "the same property (" + element.key + ")."); + } + + other.decorators = element.decorators; + } + + _coalesceGetterSetter(element, other); + } + } else { + newElements.push(element); + } + } + + return newElements; +} + +function _hasDecorators(element) { + return element.decorators && element.decorators.length; +} + +function _isDataDescriptor(desc) { + return desc !== undefined && !(desc.value === undefined && desc.writable === undefined); +} + +function _optionalCallableProperty(obj, name) { + var value = obj[name]; + + if (value !== undefined && typeof value !== "function") { + throw new TypeError("Expected '" + name + "' to be a function"); + } + + return value; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/defaults.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/defaults.js" new file mode 100644 index 0000000000000000000000000000000000000000..3de1d8ecfeced34752d48cf629ac650021e5edda --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/defaults.js" @@ -0,0 +1,14 @@ +export default function _defaults(obj, defaults) { + var keys = Object.getOwnPropertyNames(defaults); + + for (var i = 0; i < keys.length; i++) { + var key = keys[i]; + var value = Object.getOwnPropertyDescriptor(defaults, key); + + if (value && value.configurable && obj[key] === undefined) { + Object.defineProperty(obj, key, value); + } + } + + return obj; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js" new file mode 100644 index 0000000000000000000000000000000000000000..7981acd48ff5f44ee8f8cf68280ffbed87116f28 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/defineEnumerableProperties.js" @@ -0,0 +1,22 @@ +export default function _defineEnumerableProperties(obj, descs) { + for (var key in descs) { + var desc = descs[key]; + desc.configurable = desc.enumerable = true; + if ("value" in desc) desc.writable = true; + Object.defineProperty(obj, key, desc); + } + + if (Object.getOwnPropertySymbols) { + var objectSymbols = Object.getOwnPropertySymbols(descs); + + for (var i = 0; i < objectSymbols.length; i++) { + var sym = objectSymbols[i]; + var desc = descs[sym]; + desc.configurable = desc.enumerable = true; + if ("value" in desc) desc.writable = true; + Object.defineProperty(obj, sym, desc); + } + } + + return obj; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/defineProperty.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/defineProperty.js" new file mode 100644 index 0000000000000000000000000000000000000000..7cf6e59fdf648766f66e7653c92ad173dec27b04 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/defineProperty.js" @@ -0,0 +1,14 @@ +export default function _defineProperty(obj, key, value) { + if (key in obj) { + Object.defineProperty(obj, key, { + value: value, + enumerable: true, + configurable: true, + writable: true + }); + } else { + obj[key] = value; + } + + return obj; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/extends.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/extends.js" new file mode 100644 index 0000000000000000000000000000000000000000..b9b138d82975866c9dd786562d98851c79a591d0 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/extends.js" @@ -0,0 +1,17 @@ +export default function _extends() { + _extends = Object.assign || function (target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i]; + + for (var key in source) { + if (Object.prototype.hasOwnProperty.call(source, key)) { + target[key] = source[key]; + } + } + } + + return target; + }; + + return _extends.apply(this, arguments); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/get.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/get.js" new file mode 100644 index 0000000000000000000000000000000000000000..92038bd13216f7c8db84659ab8d29e6f8a340933 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/get.js" @@ -0,0 +1,20 @@ +import superPropBase from "./superPropBase.js"; +export default function _get() { + if (typeof Reflect !== "undefined" && Reflect.get) { + _get = Reflect.get; + } else { + _get = function _get(target, property, receiver) { + var base = superPropBase(target, property); + if (!base) return; + var desc = Object.getOwnPropertyDescriptor(base, property); + + if (desc.get) { + return desc.get.call(arguments.length < 3 ? target : receiver); + } + + return desc.value; + }; + } + + return _get.apply(this, arguments); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js" new file mode 100644 index 0000000000000000000000000000000000000000..5abafe381f4a42d0fc96cbf8ee92127d4c609d21 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js" @@ -0,0 +1,6 @@ +export default function _getPrototypeOf(o) { + _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { + return o.__proto__ || Object.getPrototypeOf(o); + }; + return _getPrototypeOf(o); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/identity.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/identity.js" new file mode 100644 index 0000000000000000000000000000000000000000..a1e7e4cda8d8db38b0552e597c62e112d65bad04 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/identity.js" @@ -0,0 +1,3 @@ +export default function _identity(x) { + return x; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/inherits.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/inherits.js" new file mode 100644 index 0000000000000000000000000000000000000000..e099909fd0f8ca7e6c7e11d9d2504aac7dd1be54 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/inherits.js" @@ -0,0 +1,18 @@ +import setPrototypeOf from "./setPrototypeOf.js"; +export default function _inherits(subClass, superClass) { + if (typeof superClass !== "function" && superClass !== null) { + throw new TypeError("Super expression must either be null or a function"); + } + + subClass.prototype = Object.create(superClass && superClass.prototype, { + constructor: { + value: subClass, + writable: true, + configurable: true + } + }); + Object.defineProperty(subClass, "prototype", { + writable: false + }); + if (superClass) setPrototypeOf(subClass, superClass); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js" new file mode 100644 index 0000000000000000000000000000000000000000..90bb796576136241daf0141505a34ab96100ed90 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/inheritsLoose.js" @@ -0,0 +1,6 @@ +import setPrototypeOf from "./setPrototypeOf.js"; +export default function _inheritsLoose(subClass, superClass) { + subClass.prototype = Object.create(superClass.prototype); + subClass.prototype.constructor = subClass; + setPrototypeOf(subClass, superClass); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js" new file mode 100644 index 0000000000000000000000000000000000000000..26fdea084dc5c11bb39cc51feebc391bd04a9e8e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/initializerDefineProperty.js" @@ -0,0 +1,9 @@ +export default function _initializerDefineProperty(target, property, descriptor, context) { + if (!descriptor) return; + Object.defineProperty(target, property, { + enumerable: descriptor.enumerable, + configurable: descriptor.configurable, + writable: descriptor.writable, + value: descriptor.initializer ? descriptor.initializer.call(context) : void 0 + }); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js" new file mode 100644 index 0000000000000000000000000000000000000000..30d518cfd60c1335d2cf625188d93d81a12fe021 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/initializerWarningHelper.js" @@ -0,0 +1,3 @@ +export default function _initializerWarningHelper(descriptor, context) { + throw new Error('Decorating class property failed. Please ensure that ' + 'proposal-class-properties is enabled and runs after the decorators transform.'); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/instanceof.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/instanceof.js" new file mode 100644 index 0000000000000000000000000000000000000000..8c43b71787f5af926ae98cb50c9be3a0f5e8151c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/instanceof.js" @@ -0,0 +1,7 @@ +export default function _instanceof(left, right) { + if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) { + return !!right[Symbol.hasInstance](left); + } else { + return left instanceof right; + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js" new file mode 100644 index 0000000000000000000000000000000000000000..c2df7b64147f94e368f31fc8879e140ad1fc0fa4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/interopRequireDefault.js" @@ -0,0 +1,5 @@ +export default function _interopRequireDefault(obj) { + return obj && obj.__esModule ? obj : { + "default": obj + }; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js" new file mode 100644 index 0000000000000000000000000000000000000000..01ee6b3fec6c796fe57e048186a7c645be774bb4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/interopRequireWildcard.js" @@ -0,0 +1,51 @@ +import _typeof from "./typeof.js"; + +function _getRequireWildcardCache(nodeInterop) { + if (typeof WeakMap !== "function") return null; + var cacheBabelInterop = new WeakMap(); + var cacheNodeInterop = new WeakMap(); + return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { + return nodeInterop ? cacheNodeInterop : cacheBabelInterop; + })(nodeInterop); +} + +export default function _interopRequireWildcard(obj, nodeInterop) { + if (!nodeInterop && obj && obj.__esModule) { + return obj; + } + + if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { + return { + "default": obj + }; + } + + var cache = _getRequireWildcardCache(nodeInterop); + + if (cache && cache.has(obj)) { + return cache.get(obj); + } + + var newObj = {}; + var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; + + for (var key in obj) { + if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { + var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; + + if (desc && (desc.get || desc.set)) { + Object.defineProperty(newObj, key, desc); + } else { + newObj[key] = obj[key]; + } + } + } + + newObj["default"] = obj; + + if (cache) { + cache.set(obj, newObj); + } + + return newObj; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js" new file mode 100644 index 0000000000000000000000000000000000000000..7b1bc821f760d145c90cc8c7c91f9303dea72646 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/isNativeFunction.js" @@ -0,0 +1,3 @@ +export default function _isNativeFunction(fn) { + return Function.toString.call(fn).indexOf("[native code]") !== -1; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js" new file mode 100644 index 0000000000000000000000000000000000000000..0da1624ecf0f24c726541815bb1f44eca69f1e22 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/isNativeReflectConstruct.js" @@ -0,0 +1,12 @@ +export default function _isNativeReflectConstruct() { + if (typeof Reflect === "undefined" || !Reflect.construct) return false; + if (Reflect.construct.sham) return false; + if (typeof Proxy === "function") return true; + + try { + Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); + return true; + } catch (e) { + return false; + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/iterableToArray.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/iterableToArray.js" new file mode 100644 index 0000000000000000000000000000000000000000..cfe9fbd3bf9e1f28b371aacf88c5e1e8eedf0626 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/iterableToArray.js" @@ -0,0 +1,3 @@ +export default function _iterableToArray(iter) { + if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js" new file mode 100644 index 0000000000000000000000000000000000000000..c72ca94b7b9a6bcd10c29fbb6797042d5c2f13ed --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js" @@ -0,0 +1,29 @@ +export default function _iterableToArrayLimit(arr, i) { + var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; + + if (_i == null) return; + var _arr = []; + var _n = true; + var _d = false; + + var _s, _e; + + try { + for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { + _arr.push(_s.value); + + if (i && _arr.length === i) break; + } + } catch (err) { + _d = true; + _e = err; + } finally { + try { + if (!_n && _i["return"] != null) _i["return"](); + } finally { + if (_d) throw _e; + } + } + + return _arr; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js" new file mode 100644 index 0000000000000000000000000000000000000000..27c15e0986a4091c609361df33c01e6743d916fb --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimitLoose.js" @@ -0,0 +1,14 @@ +export default function _iterableToArrayLimitLoose(arr, i) { + var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); + + if (_i == null) return; + var _arr = []; + + for (_i = _i.call(arr), _step; !(_step = _i.next()).done;) { + _arr.push(_step.value); + + if (i && _arr.length === i) break; + } + + return _arr; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/jsx.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/jsx.js" new file mode 100644 index 0000000000000000000000000000000000000000..9a6a94caff18d87fa4af336773586aaca65ecc10 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/jsx.js" @@ -0,0 +1,26 @@ +var REACT_ELEMENT_TYPE; +export default function _createRawReactElement(type, props, key, children) { + REACT_ELEMENT_TYPE || (REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol["for"] && Symbol["for"]("react.element") || 60103); + var defaultProps = type && type.defaultProps, + childrenLength = arguments.length - 3; + if (props || 0 === childrenLength || (props = { + children: void 0 + }), 1 === childrenLength) props.children = children;else if (childrenLength > 1) { + for (var childArray = new Array(childrenLength), i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 3]; + } + + props.children = childArray; + } + if (props && defaultProps) for (var propName in defaultProps) { + void 0 === props[propName] && (props[propName] = defaultProps[propName]); + } else props || (props = defaultProps || {}); + return { + $$typeof: REACT_ELEMENT_TYPE, + type: type, + key: void 0 === key ? null : "" + key, + ref: null, + props: props, + _owner: null + }; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js" new file mode 100644 index 0000000000000000000000000000000000000000..f6879592679de7305029d984ab966d31e1ad0b10 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js" @@ -0,0 +1,9 @@ +import arrayLikeToArray from "./arrayLikeToArray.js"; +export default function _maybeArrayLike(next, arr, i) { + if (arr && !Array.isArray(arr) && typeof arr.length === "number") { + var len = arr.length; + return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len); + } + + return next(arr, i); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js" new file mode 100644 index 0000000000000000000000000000000000000000..d6cd8643775c1111581cfe3b9cc7cc0ac234fe1f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/newArrowCheck.js" @@ -0,0 +1,5 @@ +export default function _newArrowCheck(innerThis, boundThis) { + if (innerThis !== boundThis) { + throw new TypeError("Cannot instantiate an arrow function"); + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js" new file mode 100644 index 0000000000000000000000000000000000000000..b349d006cd22422127fe12e4ae9f0501b7a3045b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/nonIterableRest.js" @@ -0,0 +1,3 @@ +export default function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js" new file mode 100644 index 0000000000000000000000000000000000000000..82d829614248b566782e2b59f01bf2870de1d054 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js" @@ -0,0 +1,3 @@ +export default function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js" new file mode 100644 index 0000000000000000000000000000000000000000..82b67d2cba7064db9a5b70548834989785c24962 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js" @@ -0,0 +1,3 @@ +export default function _objectDestructuringEmpty(obj) { + if (obj == null) throw new TypeError("Cannot destructure undefined"); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/objectSpread.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/objectSpread.js" new file mode 100644 index 0000000000000000000000000000000000000000..889a5f0e4a617b1ef1dc213d3f7db89fd7661825 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/objectSpread.js" @@ -0,0 +1,19 @@ +import defineProperty from "./defineProperty.js"; +export default function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? Object(arguments[i]) : {}; + var ownKeys = Object.keys(source); + + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + + ownKeys.forEach(function (key) { + defineProperty(target, key, source[key]); + }); + } + + return target; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/objectSpread2.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/objectSpread2.js" new file mode 100644 index 0000000000000000000000000000000000000000..76f29688740b6495fd04a73b32ba96fbe020e6fa --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/objectSpread2.js" @@ -0,0 +1,27 @@ +import defineProperty from "./defineProperty.js"; + +function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && (symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), keys.push.apply(keys, symbols); + } + + return keys; +} + +export default function _objectSpread2(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { + defineProperty(target, key, source[key]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + + return target; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js" new file mode 100644 index 0000000000000000000000000000000000000000..0fef321925bfdae1501ed0a7484015181b1dc5d6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js" @@ -0,0 +1,19 @@ +import objectWithoutPropertiesLoose from "./objectWithoutPropertiesLoose.js"; +export default function _objectWithoutProperties(source, excluded) { + if (source == null) return {}; + var target = objectWithoutPropertiesLoose(source, excluded); + var key, i; + + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + + for (i = 0; i < sourceSymbolKeys.length; i++) { + key = sourceSymbolKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; + target[key] = source[key]; + } + } + + return target; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js" new file mode 100644 index 0000000000000000000000000000000000000000..c36815cebe83598bcc83a16fe578925085e08094 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js" @@ -0,0 +1,14 @@ +export default function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..aead43de364cd1cc107d5fc3a4ea6fea7d7bd01c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/package.json" @@ -0,0 +1,3 @@ +{ + "type": "module" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js" new file mode 100644 index 0000000000000000000000000000000000000000..56d554457e8dc5cb1473ccc2c883db1130cb81f2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js" @@ -0,0 +1,11 @@ +import _typeof from "./typeof.js"; +import assertThisInitialized from "./assertThisInitialized.js"; +export default function _possibleConstructorReturn(self, call) { + if (call && (_typeof(call) === "object" || typeof call === "function")) { + return call; + } else if (call !== void 0) { + throw new TypeError("Derived constructors may only return object or undefined"); + } + + return assertThisInitialized(self); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/readOnlyError.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/readOnlyError.js" new file mode 100644 index 0000000000000000000000000000000000000000..166e40e5e76ae3565fc3e75eb4f5c502febf61f3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/readOnlyError.js" @@ -0,0 +1,3 @@ +export default function _readOnlyError(name) { + throw new TypeError("\"" + name + "\" is read-only"); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/set.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/set.js" new file mode 100644 index 0000000000000000000000000000000000000000..9c54773906dfef717ef8e9318622a990ba2acaa7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/set.js" @@ -0,0 +1,51 @@ +import superPropBase from "./superPropBase.js"; +import defineProperty from "./defineProperty.js"; + +function set(target, property, value, receiver) { + if (typeof Reflect !== "undefined" && Reflect.set) { + set = Reflect.set; + } else { + set = function set(target, property, value, receiver) { + var base = superPropBase(target, property); + var desc; + + if (base) { + desc = Object.getOwnPropertyDescriptor(base, property); + + if (desc.set) { + desc.set.call(receiver, value); + return true; + } else if (!desc.writable) { + return false; + } + } + + desc = Object.getOwnPropertyDescriptor(receiver, property); + + if (desc) { + if (!desc.writable) { + return false; + } + + desc.value = value; + Object.defineProperty(receiver, property, desc); + } else { + defineProperty(receiver, property, value); + } + + return true; + }; + } + + return set(target, property, value, receiver); +} + +export default function _set(target, property, value, receiver, isStrict) { + var s = set(target, property, value, receiver || target); + + if (!s && isStrict) { + throw new Error('failed to set property'); + } + + return value; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js" new file mode 100644 index 0000000000000000000000000000000000000000..e6ef03e5983d64d8a93c0f5eed6a57c7ab66d67a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js" @@ -0,0 +1,8 @@ +export default function _setPrototypeOf(o, p) { + _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }; + + return _setPrototypeOf(o, p); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js" new file mode 100644 index 0000000000000000000000000000000000000000..cadd9bb5bf0c3d8c6da76f807866dd6bfee93f91 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/skipFirstGeneratorNext.js" @@ -0,0 +1,7 @@ +export default function _skipFirstGeneratorNext(fn) { + return function () { + var it = fn.apply(this, arguments); + it.next(); + return it; + }; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/slicedToArray.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/slicedToArray.js" new file mode 100644 index 0000000000000000000000000000000000000000..618200b92bffe3fdf4346f7529b809ed2a19f4b9 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/slicedToArray.js" @@ -0,0 +1,7 @@ +import arrayWithHoles from "./arrayWithHoles.js"; +import iterableToArrayLimit from "./iterableToArrayLimit.js"; +import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; +import nonIterableRest from "./nonIterableRest.js"; +export default function _slicedToArray(arr, i) { + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js" new file mode 100644 index 0000000000000000000000000000000000000000..efc7429ef613ab1d5619c32e18d060cbb462187e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/slicedToArrayLoose.js" @@ -0,0 +1,7 @@ +import arrayWithHoles from "./arrayWithHoles.js"; +import iterableToArrayLimitLoose from "./iterableToArrayLimitLoose.js"; +import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; +import nonIterableRest from "./nonIterableRest.js"; +export default function _slicedToArrayLoose(arr, i) { + return arrayWithHoles(arr) || iterableToArrayLimitLoose(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/superPropBase.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/superPropBase.js" new file mode 100644 index 0000000000000000000000000000000000000000..feffe6f7e912295d977bd723c3dc57809eaeda48 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/superPropBase.js" @@ -0,0 +1,9 @@ +import getPrototypeOf from "./getPrototypeOf.js"; +export default function _superPropBase(object, property) { + while (!Object.prototype.hasOwnProperty.call(object, property)) { + object = getPrototypeOf(object); + if (object === null) break; + } + + return object; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js" new file mode 100644 index 0000000000000000000000000000000000000000..421f18abde7330843c04af86a3a174e5e6bd215e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js" @@ -0,0 +1,11 @@ +export default function _taggedTemplateLiteral(strings, raw) { + if (!raw) { + raw = strings.slice(0); + } + + return Object.freeze(Object.defineProperties(strings, { + raw: { + value: Object.freeze(raw) + } + })); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js" new file mode 100644 index 0000000000000000000000000000000000000000..c8f081e9ee40a512e4e2d77d20ec7b489ce28acf --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteralLoose.js" @@ -0,0 +1,8 @@ +export default function _taggedTemplateLiteralLoose(strings, raw) { + if (!raw) { + raw = strings.slice(0); + } + + strings.raw = raw; + return strings; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/tdz.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/tdz.js" new file mode 100644 index 0000000000000000000000000000000000000000..d5d0adc8a613cefdf76706f94b805e6fa38076fe --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/tdz.js" @@ -0,0 +1,3 @@ +export default function _tdzError(name) { + throw new ReferenceError(name + " is not defined - temporal dead zone"); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/temporalRef.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/temporalRef.js" new file mode 100644 index 0000000000000000000000000000000000000000..b25f7c44f4df5cf1018fea4525503760872b28af --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/temporalRef.js" @@ -0,0 +1,5 @@ +import undef from "./temporalUndefined.js"; +import err from "./tdz.js"; +export default function _temporalRef(val, name) { + return val === undef ? err(name) : val; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js" new file mode 100644 index 0000000000000000000000000000000000000000..1a3571734241ddfddf9d40b14d65a408f312563e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/temporalUndefined.js" @@ -0,0 +1 @@ +export default function _temporalUndefined() {} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/toArray.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/toArray.js" new file mode 100644 index 0000000000000000000000000000000000000000..ad7c871a54b0a68526a0508fd898507a89ac47e7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/toArray.js" @@ -0,0 +1,7 @@ +import arrayWithHoles from "./arrayWithHoles.js"; +import iterableToArray from "./iterableToArray.js"; +import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; +import nonIterableRest from "./nonIterableRest.js"; +export default function _toArray(arr) { + return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest(); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js" new file mode 100644 index 0000000000000000000000000000000000000000..bd912855927dcf7490ae2432ed866a04d9b8ff73 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js" @@ -0,0 +1,7 @@ +import arrayWithoutHoles from "./arrayWithoutHoles.js"; +import iterableToArray from "./iterableToArray.js"; +import unsupportedIterableToArray from "./unsupportedIterableToArray.js"; +import nonIterableSpread from "./nonIterableSpread.js"; +export default function _toConsumableArray(arr) { + return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread(); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/toPrimitive.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/toPrimitive.js" new file mode 100644 index 0000000000000000000000000000000000000000..fa32ddacb20a94687598ca629a65fecb1228a7cb --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/toPrimitive.js" @@ -0,0 +1,13 @@ +import _typeof from "./typeof.js"; +export default function _toPrimitive(input, hint) { + if (_typeof(input) !== "object" || input === null) return input; + var prim = input[Symbol.toPrimitive]; + + if (prim !== undefined) { + var res = prim.call(input, hint || "default"); + if (_typeof(res) !== "object") return res; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + + return (hint === "string" ? String : Number)(input); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js" new file mode 100644 index 0000000000000000000000000000000000000000..0fcc93b3ee6b4d36a77562599f7b7988d3701faf --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/toPropertyKey.js" @@ -0,0 +1,6 @@ +import _typeof from "./typeof.js"; +import toPrimitive from "./toPrimitive.js"; +export default function _toPropertyKey(arg) { + var key = toPrimitive(arg, "string"); + return _typeof(key) === "symbol" ? key : String(key); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/typeof.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/typeof.js" new file mode 100644 index 0000000000000000000000000000000000000000..92100c66f9418844238199d1abed885b3154915d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/typeof.js" @@ -0,0 +1,9 @@ +export default function _typeof(obj) { + "@babel/helpers - typeof"; + + return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { + return typeof obj; + } : function (obj) { + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }, _typeof(obj); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js" new file mode 100644 index 0000000000000000000000000000000000000000..c0f63bd5a84420beee7d9019ffe56f6142703822 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js" @@ -0,0 +1,9 @@ +import arrayLikeToArray from "./arrayLikeToArray.js"; +export default function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js" new file mode 100644 index 0000000000000000000000000000000000000000..723b2ddacdf4bf8d2fa54bc1d0a639e41c2741ec --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/wrapAsyncGenerator.js" @@ -0,0 +1,6 @@ +import AsyncGenerator from "./AsyncGenerator.js"; +export default function _wrapAsyncGenerator(fn) { + return function () { + return new AsyncGenerator(fn.apply(this, arguments)); + }; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js" new file mode 100644 index 0000000000000000000000000000000000000000..512630d0ea7b568d1402881dd35e04402979cedb --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js" @@ -0,0 +1,37 @@ +import getPrototypeOf from "./getPrototypeOf.js"; +import setPrototypeOf from "./setPrototypeOf.js"; +import isNativeFunction from "./isNativeFunction.js"; +import construct from "./construct.js"; +export default function _wrapNativeSuper(Class) { + var _cache = typeof Map === "function" ? new Map() : undefined; + + _wrapNativeSuper = function _wrapNativeSuper(Class) { + if (Class === null || !isNativeFunction(Class)) return Class; + + if (typeof Class !== "function") { + throw new TypeError("Super expression must either be null or a function"); + } + + if (typeof _cache !== "undefined") { + if (_cache.has(Class)) return _cache.get(Class); + + _cache.set(Class, Wrapper); + } + + function Wrapper() { + return construct(Class, arguments, getPrototypeOf(this).constructor); + } + + Wrapper.prototype = Object.create(Class.prototype, { + constructor: { + value: Wrapper, + enumerable: false, + writable: true, + configurable: true + } + }); + return setPrototypeOf(Wrapper, Class); + }; + + return _wrapNativeSuper(Class); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js" new file mode 100644 index 0000000000000000000000000000000000000000..beac1e1356d9c2b2993cc23b05e3183ec37f321c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/wrapRegExp.js" @@ -0,0 +1,50 @@ +import _typeof from "./typeof.js"; +import setPrototypeOf from "./setPrototypeOf.js"; +import inherits from "./inherits.js"; +export default function _wrapRegExp() { + _wrapRegExp = function _wrapRegExp(re, groups) { + return new BabelRegExp(re, void 0, groups); + }; + + var _super = RegExp.prototype, + _groups = new WeakMap(); + + function BabelRegExp(re, flags, groups) { + var _this = new RegExp(re, flags); + + return _groups.set(_this, groups || _groups.get(re)), setPrototypeOf(_this, BabelRegExp.prototype); + } + + function buildGroups(result, re) { + var g = _groups.get(re); + + return Object.keys(g).reduce(function (groups, name) { + return groups[name] = result[g[name]], groups; + }, Object.create(null)); + } + + return inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) { + var result = _super.exec.call(this, str); + + return result && (result.groups = buildGroups(result, this)), result; + }, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) { + if ("string" == typeof substitution) { + var groups = _groups.get(this); + + return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) { + return "$" + groups[name]; + })); + } + + if ("function" == typeof substitution) { + var _this = this; + + return _super[Symbol.replace].call(this, str, function () { + var args = arguments; + return "object" != _typeof(args[args.length - 1]) && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args); + }); + } + + return _super[Symbol.replace].call(this, str, substitution); + }, _wrapRegExp.apply(this, arguments); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js" new file mode 100644 index 0000000000000000000000000000000000000000..9170bd45d8a5a0e73481f61362258a5defcbb231 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/esm/writeOnlyError.js" @@ -0,0 +1,3 @@ +export default function _writeOnlyError(name) { + throw new TypeError("\"" + name + "\" is write-only"); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js" new file mode 100644 index 0000000000000000000000000000000000000000..bca5452140bb7faf51d83d5ec35b27be47d9469f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/iterableToArrayLimitLoose.js" @@ -0,0 +1,16 @@ +function _iterableToArrayLimitLoose(arr, i) { + var _i = arr && (typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]); + + if (_i == null) return; + var _arr = []; + + for (_i = _i.call(arr), _step; !(_step = _i.next()).done;) { + _arr.push(_step.value); + + if (i && _arr.length === i) break; + } + + return _arr; +} + +module.exports = _iterableToArrayLimitLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/jsx.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/jsx.js" new file mode 100644 index 0000000000000000000000000000000000000000..bc19ec4befd5e955fb902d21d728c66dc9da25a7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/jsx.js" @@ -0,0 +1,29 @@ +var REACT_ELEMENT_TYPE; + +function _createRawReactElement(type, props, key, children) { + REACT_ELEMENT_TYPE || (REACT_ELEMENT_TYPE = "function" == typeof Symbol && Symbol["for"] && Symbol["for"]("react.element") || 60103); + var defaultProps = type && type.defaultProps, + childrenLength = arguments.length - 3; + if (props || 0 === childrenLength || (props = { + children: void 0 + }), 1 === childrenLength) props.children = children;else if (childrenLength > 1) { + for (var childArray = new Array(childrenLength), i = 0; i < childrenLength; i++) { + childArray[i] = arguments[i + 3]; + } + + props.children = childArray; + } + if (props && defaultProps) for (var propName in defaultProps) { + void 0 === props[propName] && (props[propName] = defaultProps[propName]); + } else props || (props = defaultProps || {}); + return { + $$typeof: REACT_ELEMENT_TYPE, + type: type, + key: void 0 === key ? null : "" + key, + ref: null, + props: props, + _owner: null + }; +} + +module.exports = _createRawReactElement, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/maybeArrayLike.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/maybeArrayLike.js" new file mode 100644 index 0000000000000000000000000000000000000000..212d68c7304ffa9bb7ecbe85f733d0f544fee3b2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/maybeArrayLike.js" @@ -0,0 +1,12 @@ +var arrayLikeToArray = require("./arrayLikeToArray.js"); + +function _maybeArrayLike(next, arr, i) { + if (arr && !Array.isArray(arr) && typeof arr.length === "number") { + var len = arr.length; + return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len); + } + + return next(arr, i); +} + +module.exports = _maybeArrayLike, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/newArrowCheck.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/newArrowCheck.js" new file mode 100644 index 0000000000000000000000000000000000000000..86a91f2bc794c6d3584d1b5e22520c2a221438d7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/newArrowCheck.js" @@ -0,0 +1,7 @@ +function _newArrowCheck(innerThis, boundThis) { + if (innerThis !== boundThis) { + throw new TypeError("Cannot instantiate an arrow function"); + } +} + +module.exports = _newArrowCheck, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/nonIterableRest.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/nonIterableRest.js" new file mode 100644 index 0000000000000000000000000000000000000000..e7911087d219b8d7deb05e05202a11cb7cc94029 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/nonIterableRest.js" @@ -0,0 +1,5 @@ +function _nonIterableRest() { + throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} + +module.exports = _nonIterableRest, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/nonIterableSpread.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/nonIterableSpread.js" new file mode 100644 index 0000000000000000000000000000000000000000..64379ea2ca4e9c37131d885791d437a1aee31306 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/nonIterableSpread.js" @@ -0,0 +1,5 @@ +function _nonIterableSpread() { + throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); +} + +module.exports = _nonIterableSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js" new file mode 100644 index 0000000000000000000000000000000000000000..cb0866e7db3ed62582d479873c19167f08a703f4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/objectDestructuringEmpty.js" @@ -0,0 +1,5 @@ +function _objectDestructuringEmpty(obj) { + if (obj == null) throw new TypeError("Cannot destructure undefined"); +} + +module.exports = _objectDestructuringEmpty, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/objectSpread.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/objectSpread.js" new file mode 100644 index 0000000000000000000000000000000000000000..cfb430978c1054f16a77922f827ef635a1c6bb87 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/objectSpread.js" @@ -0,0 +1,22 @@ +var defineProperty = require("./defineProperty.js"); + +function _objectSpread(target) { + for (var i = 1; i < arguments.length; i++) { + var source = arguments[i] != null ? Object(arguments[i]) : {}; + var ownKeys = Object.keys(source); + + if (typeof Object.getOwnPropertySymbols === 'function') { + ownKeys.push.apply(ownKeys, Object.getOwnPropertySymbols(source).filter(function (sym) { + return Object.getOwnPropertyDescriptor(source, sym).enumerable; + })); + } + + ownKeys.forEach(function (key) { + defineProperty(target, key, source[key]); + }); + } + + return target; +} + +module.exports = _objectSpread, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/objectSpread2.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/objectSpread2.js" new file mode 100644 index 0000000000000000000000000000000000000000..7e5db07d03986f112176ea88913f12de6324c06d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/objectSpread2.js" @@ -0,0 +1,29 @@ +var defineProperty = require("./defineProperty.js"); + +function ownKeys(object, enumerableOnly) { + var keys = Object.keys(object); + + if (Object.getOwnPropertySymbols) { + var symbols = Object.getOwnPropertySymbols(object); + enumerableOnly && (symbols = symbols.filter(function (sym) { + return Object.getOwnPropertyDescriptor(object, sym).enumerable; + })), keys.push.apply(keys, symbols); + } + + return keys; +} + +function _objectSpread2(target) { + for (var i = 1; i < arguments.length; i++) { + var source = null != arguments[i] ? arguments[i] : {}; + i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { + defineProperty(target, key, source[key]); + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { + Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); + }); + } + + return target; +} + +module.exports = _objectSpread2, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/objectWithoutProperties.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/objectWithoutProperties.js" new file mode 100644 index 0000000000000000000000000000000000000000..8cf3ab8d58e7bd4ae8e3f6b6c2083d61ae6a9e81 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/objectWithoutProperties.js" @@ -0,0 +1,22 @@ +var objectWithoutPropertiesLoose = require("./objectWithoutPropertiesLoose.js"); + +function _objectWithoutProperties(source, excluded) { + if (source == null) return {}; + var target = objectWithoutPropertiesLoose(source, excluded); + var key, i; + + if (Object.getOwnPropertySymbols) { + var sourceSymbolKeys = Object.getOwnPropertySymbols(source); + + for (i = 0; i < sourceSymbolKeys.length; i++) { + key = sourceSymbolKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; + target[key] = source[key]; + } + } + + return target; +} + +module.exports = _objectWithoutProperties, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js" new file mode 100644 index 0000000000000000000000000000000000000000..44d5771e313303f749e26d22fe3ba02acd5f3e91 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/objectWithoutPropertiesLoose.js" @@ -0,0 +1,16 @@ +function _objectWithoutPropertiesLoose(source, excluded) { + if (source == null) return {}; + var target = {}; + var sourceKeys = Object.keys(source); + var key, i; + + for (i = 0; i < sourceKeys.length; i++) { + key = sourceKeys[i]; + if (excluded.indexOf(key) >= 0) continue; + target[key] = source[key]; + } + + return target; +} + +module.exports = _objectWithoutPropertiesLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js" new file mode 100644 index 0000000000000000000000000000000000000000..e1997be41941ee0937fc202882849fbffc364a4c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/possibleConstructorReturn.js" @@ -0,0 +1,15 @@ +var _typeof = require("./typeof.js")["default"]; + +var assertThisInitialized = require("./assertThisInitialized.js"); + +function _possibleConstructorReturn(self, call) { + if (call && (_typeof(call) === "object" || typeof call === "function")) { + return call; + } else if (call !== void 0) { + throw new TypeError("Derived constructors may only return object or undefined"); + } + + return assertThisInitialized(self); +} + +module.exports = _possibleConstructorReturn, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/readOnlyError.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/readOnlyError.js" new file mode 100644 index 0000000000000000000000000000000000000000..93cb90c6ceac64725f4c8a361f2729783c5a9d5a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/readOnlyError.js" @@ -0,0 +1,5 @@ +function _readOnlyError(name) { + throw new TypeError("\"" + name + "\" is read-only"); +} + +module.exports = _readOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/set.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/set.js" new file mode 100644 index 0000000000000000000000000000000000000000..6438def234abe8599465db37e1adaec93ae501ef --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/set.js" @@ -0,0 +1,54 @@ +var superPropBase = require("./superPropBase.js"); + +var defineProperty = require("./defineProperty.js"); + +function set(target, property, value, receiver) { + if (typeof Reflect !== "undefined" && Reflect.set) { + set = Reflect.set; + } else { + set = function set(target, property, value, receiver) { + var base = superPropBase(target, property); + var desc; + + if (base) { + desc = Object.getOwnPropertyDescriptor(base, property); + + if (desc.set) { + desc.set.call(receiver, value); + return true; + } else if (!desc.writable) { + return false; + } + } + + desc = Object.getOwnPropertyDescriptor(receiver, property); + + if (desc) { + if (!desc.writable) { + return false; + } + + desc.value = value; + Object.defineProperty(receiver, property, desc); + } else { + defineProperty(receiver, property, value); + } + + return true; + }; + } + + return set(target, property, value, receiver); +} + +function _set(target, property, value, receiver, isStrict) { + var s = set(target, property, value, receiver || target); + + if (!s && isStrict) { + throw new Error('failed to set property'); + } + + return value; +} + +module.exports = _set, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/setPrototypeOf.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/setPrototypeOf.js" new file mode 100644 index 0000000000000000000000000000000000000000..7efecade947d16e09b5b525e89362f8916cb6461 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/setPrototypeOf.js" @@ -0,0 +1,9 @@ +function _setPrototypeOf(o, p) { + module.exports = _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { + o.__proto__ = p; + return o; + }, module.exports.__esModule = true, module.exports["default"] = module.exports; + return _setPrototypeOf(o, p); +} + +module.exports = _setPrototypeOf, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js" new file mode 100644 index 0000000000000000000000000000000000000000..88908962dd74fb13b8dc08424bc9532ec466c655 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/skipFirstGeneratorNext.js" @@ -0,0 +1,9 @@ +function _skipFirstGeneratorNext(fn) { + return function () { + var it = fn.apply(this, arguments); + it.next(); + return it; + }; +} + +module.exports = _skipFirstGeneratorNext, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/slicedToArray.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/slicedToArray.js" new file mode 100644 index 0000000000000000000000000000000000000000..bce5fc0be217286f6c6fb1e2b85d8507223ff281 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/slicedToArray.js" @@ -0,0 +1,13 @@ +var arrayWithHoles = require("./arrayWithHoles.js"); + +var iterableToArrayLimit = require("./iterableToArrayLimit.js"); + +var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); + +var nonIterableRest = require("./nonIterableRest.js"); + +function _slicedToArray(arr, i) { + return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); +} + +module.exports = _slicedToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js" new file mode 100644 index 0000000000000000000000000000000000000000..cc9ace2feb98c97a407a3f1f295168dc2b67a48f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/slicedToArrayLoose.js" @@ -0,0 +1,13 @@ +var arrayWithHoles = require("./arrayWithHoles.js"); + +var iterableToArrayLimitLoose = require("./iterableToArrayLimitLoose.js"); + +var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); + +var nonIterableRest = require("./nonIterableRest.js"); + +function _slicedToArrayLoose(arr, i) { + return arrayWithHoles(arr) || iterableToArrayLimitLoose(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest(); +} + +module.exports = _slicedToArrayLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/superPropBase.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/superPropBase.js" new file mode 100644 index 0000000000000000000000000000000000000000..dd47fff77718d6f5bd3b735e1020dfded6cac00d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/superPropBase.js" @@ -0,0 +1,12 @@ +var getPrototypeOf = require("./getPrototypeOf.js"); + +function _superPropBase(object, property) { + while (!Object.prototype.hasOwnProperty.call(object, property)) { + object = getPrototypeOf(object); + if (object === null) break; + } + + return object; +} + +module.exports = _superPropBase, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js" new file mode 100644 index 0000000000000000000000000000000000000000..6d9738ca5eb40d4583f21a35b8270c8cbdc5169d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/taggedTemplateLiteral.js" @@ -0,0 +1,13 @@ +function _taggedTemplateLiteral(strings, raw) { + if (!raw) { + raw = strings.slice(0); + } + + return Object.freeze(Object.defineProperties(strings, { + raw: { + value: Object.freeze(raw) + } + })); +} + +module.exports = _taggedTemplateLiteral, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js" new file mode 100644 index 0000000000000000000000000000000000000000..4f151ca7cef3452636c3b12e07528abd3fb2ed8a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/taggedTemplateLiteralLoose.js" @@ -0,0 +1,10 @@ +function _taggedTemplateLiteralLoose(strings, raw) { + if (!raw) { + raw = strings.slice(0); + } + + strings.raw = raw; + return strings; +} + +module.exports = _taggedTemplateLiteralLoose, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/tdz.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/tdz.js" new file mode 100644 index 0000000000000000000000000000000000000000..91ec2b227c2b1bc2d3de6952bedd7f99c214bc96 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/tdz.js" @@ -0,0 +1,5 @@ +function _tdzError(name) { + throw new ReferenceError(name + " is not defined - temporal dead zone"); +} + +module.exports = _tdzError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/temporalRef.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/temporalRef.js" new file mode 100644 index 0000000000000000000000000000000000000000..6afd9323c7f7ff9b5dbe3428761f96510d1124f4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/temporalRef.js" @@ -0,0 +1,9 @@ +var temporalUndefined = require("./temporalUndefined.js"); + +var tdz = require("./tdz.js"); + +function _temporalRef(val, name) { + return val === temporalUndefined ? tdz(name) : val; +} + +module.exports = _temporalRef, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/temporalUndefined.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/temporalUndefined.js" new file mode 100644 index 0000000000000000000000000000000000000000..7aca810f850e4eefcde642521f8a5610d7ad38f8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/temporalUndefined.js" @@ -0,0 +1,3 @@ +function _temporalUndefined() {} + +module.exports = _temporalUndefined, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/toArray.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/toArray.js" new file mode 100644 index 0000000000000000000000000000000000000000..d0af0e932928d8a6234233550154249932bce3aa --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/toArray.js" @@ -0,0 +1,13 @@ +var arrayWithHoles = require("./arrayWithHoles.js"); + +var iterableToArray = require("./iterableToArray.js"); + +var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); + +var nonIterableRest = require("./nonIterableRest.js"); + +function _toArray(arr) { + return arrayWithHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableRest(); +} + +module.exports = _toArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/toConsumableArray.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/toConsumableArray.js" new file mode 100644 index 0000000000000000000000000000000000000000..9c69072cbca7ef02a4b1f45ade33ce57e3bcc424 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/toConsumableArray.js" @@ -0,0 +1,13 @@ +var arrayWithoutHoles = require("./arrayWithoutHoles.js"); + +var iterableToArray = require("./iterableToArray.js"); + +var unsupportedIterableToArray = require("./unsupportedIterableToArray.js"); + +var nonIterableSpread = require("./nonIterableSpread.js"); + +function _toConsumableArray(arr) { + return arrayWithoutHoles(arr) || iterableToArray(arr) || unsupportedIterableToArray(arr) || nonIterableSpread(); +} + +module.exports = _toConsumableArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/toPrimitive.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/toPrimitive.js" new file mode 100644 index 0000000000000000000000000000000000000000..dc4da81a41b21e458906f6be9ed63174447e287d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/toPrimitive.js" @@ -0,0 +1,16 @@ +var _typeof = require("./typeof.js")["default"]; + +function _toPrimitive(input, hint) { + if (_typeof(input) !== "object" || input === null) return input; + var prim = input[Symbol.toPrimitive]; + + if (prim !== undefined) { + var res = prim.call(input, hint || "default"); + if (_typeof(res) !== "object") return res; + throw new TypeError("@@toPrimitive must return a primitive value."); + } + + return (hint === "string" ? String : Number)(input); +} + +module.exports = _toPrimitive, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/toPropertyKey.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/toPropertyKey.js" new file mode 100644 index 0000000000000000000000000000000000000000..61367cf3af7df65a17ceae5d4686975e5a833a91 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/toPropertyKey.js" @@ -0,0 +1,10 @@ +var _typeof = require("./typeof.js")["default"]; + +var toPrimitive = require("./toPrimitive.js"); + +function _toPropertyKey(arg) { + var key = toPrimitive(arg, "string"); + return _typeof(key) === "symbol" ? key : String(key); +} + +module.exports = _toPropertyKey, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/typeof.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/typeof.js" new file mode 100644 index 0000000000000000000000000000000000000000..6c7860ff7fb5901b7c5a87630a6bc521cddecaba --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/typeof.js" @@ -0,0 +1,11 @@ +function _typeof(obj) { + "@babel/helpers - typeof"; + + return (module.exports = _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { + return typeof obj; + } : function (obj) { + return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; + }, module.exports.__esModule = true, module.exports["default"] = module.exports), _typeof(obj); +} + +module.exports = _typeof, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js" new file mode 100644 index 0000000000000000000000000000000000000000..bfe65e4033685fbe9722a3b15b6156434bd327fd --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/unsupportedIterableToArray.js" @@ -0,0 +1,12 @@ +var arrayLikeToArray = require("./arrayLikeToArray.js"); + +function _unsupportedIterableToArray(o, minLen) { + if (!o) return; + if (typeof o === "string") return arrayLikeToArray(o, minLen); + var n = Object.prototype.toString.call(o).slice(8, -1); + if (n === "Object" && o.constructor) n = o.constructor.name; + if (n === "Map" || n === "Set") return Array.from(o); + if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen); +} + +module.exports = _unsupportedIterableToArray, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js" new file mode 100644 index 0000000000000000000000000000000000000000..1fb4fd76e16490c1917c406ab3499ba74df3579c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/wrapAsyncGenerator.js" @@ -0,0 +1,9 @@ +var AsyncGenerator = require("./AsyncGenerator.js"); + +function _wrapAsyncGenerator(fn) { + return function () { + return new AsyncGenerator(fn.apply(this, arguments)); + }; +} + +module.exports = _wrapAsyncGenerator, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/wrapNativeSuper.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/wrapNativeSuper.js" new file mode 100644 index 0000000000000000000000000000000000000000..516220bffd67afe53c7fea3e4c3714a6e1307ca3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/wrapNativeSuper.js" @@ -0,0 +1,42 @@ +var getPrototypeOf = require("./getPrototypeOf.js"); + +var setPrototypeOf = require("./setPrototypeOf.js"); + +var isNativeFunction = require("./isNativeFunction.js"); + +var construct = require("./construct.js"); + +function _wrapNativeSuper(Class) { + var _cache = typeof Map === "function" ? new Map() : undefined; + + module.exports = _wrapNativeSuper = function _wrapNativeSuper(Class) { + if (Class === null || !isNativeFunction(Class)) return Class; + + if (typeof Class !== "function") { + throw new TypeError("Super expression must either be null or a function"); + } + + if (typeof _cache !== "undefined") { + if (_cache.has(Class)) return _cache.get(Class); + + _cache.set(Class, Wrapper); + } + + function Wrapper() { + return construct(Class, arguments, getPrototypeOf(this).constructor); + } + + Wrapper.prototype = Object.create(Class.prototype, { + constructor: { + value: Wrapper, + enumerable: false, + writable: true, + configurable: true + } + }); + return setPrototypeOf(Wrapper, Class); + }, module.exports.__esModule = true, module.exports["default"] = module.exports; + return _wrapNativeSuper(Class); +} + +module.exports = _wrapNativeSuper, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/wrapRegExp.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/wrapRegExp.js" new file mode 100644 index 0000000000000000000000000000000000000000..5b8342bd33db0696eb0b6d503317db3274498ee2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/wrapRegExp.js" @@ -0,0 +1,55 @@ +var _typeof = require("./typeof.js")["default"]; + +var setPrototypeOf = require("./setPrototypeOf.js"); + +var inherits = require("./inherits.js"); + +function _wrapRegExp() { + module.exports = _wrapRegExp = function _wrapRegExp(re, groups) { + return new BabelRegExp(re, void 0, groups); + }, module.exports.__esModule = true, module.exports["default"] = module.exports; + + var _super = RegExp.prototype, + _groups = new WeakMap(); + + function BabelRegExp(re, flags, groups) { + var _this = new RegExp(re, flags); + + return _groups.set(_this, groups || _groups.get(re)), setPrototypeOf(_this, BabelRegExp.prototype); + } + + function buildGroups(result, re) { + var g = _groups.get(re); + + return Object.keys(g).reduce(function (groups, name) { + return groups[name] = result[g[name]], groups; + }, Object.create(null)); + } + + return inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) { + var result = _super.exec.call(this, str); + + return result && (result.groups = buildGroups(result, this)), result; + }, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) { + if ("string" == typeof substitution) { + var groups = _groups.get(this); + + return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) { + return "$" + groups[name]; + })); + } + + if ("function" == typeof substitution) { + var _this = this; + + return _super[Symbol.replace].call(this, str, function () { + var args = arguments; + return "object" != _typeof(args[args.length - 1]) && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args); + }); + } + + return _super[Symbol.replace].call(this, str, substitution); + }, _wrapRegExp.apply(this, arguments); +} + +module.exports = _wrapRegExp, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/writeOnlyError.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/writeOnlyError.js" new file mode 100644 index 0000000000000000000000000000000000000000..132948733d944ec52eeb12a71939b4921a8adbbc --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/helpers/writeOnlyError.js" @@ -0,0 +1,5 @@ +function _writeOnlyError(name) { + throw new TypeError("\"" + name + "\" is write-only"); +} + +module.exports = _writeOnlyError, module.exports.__esModule = true, module.exports["default"] = module.exports; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/regenerator/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/regenerator/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..9fd4158a6d8517f613e4ef2df4e1587d7e7b6b19 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/runtime/regenerator/index.js" @@ -0,0 +1 @@ +module.exports = require("regenerator-runtime"); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/LICENSE" @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..759c65aa6b1bce0b6373176f0c2a39a74284c61f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/README.md" @@ -0,0 +1,19 @@ +# @babel/template + +> Generate an AST from a string template. + +See our website [@babel/template](https://babeljs.io/docs/en/babel-template) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20template%22+is%3Aopen) associated with this package. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/template +``` + +or using yarn: + +```sh +yarn add @babel/template --dev +``` diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/builder.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/builder.js" new file mode 100644 index 0000000000000000000000000000000000000000..e65b27d77c737c49de143a93c5c8139d1fd0a669 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/builder.js" @@ -0,0 +1,81 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = createTemplateBuilder; + +var _options = require("./options"); + +var _string = require("./string"); + +var _literal = require("./literal"); + +const NO_PLACEHOLDER = (0, _options.validate)({ + placeholderPattern: false +}); + +function createTemplateBuilder(formatter, defaultOpts) { + const templateFnCache = new WeakMap(); + const templateAstCache = new WeakMap(); + const cachedOpts = defaultOpts || (0, _options.validate)(null); + return Object.assign((tpl, ...args) => { + if (typeof tpl === "string") { + if (args.length > 1) throw new Error("Unexpected extra params."); + return extendedTrace((0, _string.default)(formatter, tpl, (0, _options.merge)(cachedOpts, (0, _options.validate)(args[0])))); + } else if (Array.isArray(tpl)) { + let builder = templateFnCache.get(tpl); + + if (!builder) { + builder = (0, _literal.default)(formatter, tpl, cachedOpts); + templateFnCache.set(tpl, builder); + } + + return extendedTrace(builder(args)); + } else if (typeof tpl === "object" && tpl) { + if (args.length > 0) throw new Error("Unexpected extra params."); + return createTemplateBuilder(formatter, (0, _options.merge)(cachedOpts, (0, _options.validate)(tpl))); + } + + throw new Error(`Unexpected template param ${typeof tpl}`); + }, { + ast: (tpl, ...args) => { + if (typeof tpl === "string") { + if (args.length > 1) throw new Error("Unexpected extra params."); + return (0, _string.default)(formatter, tpl, (0, _options.merge)((0, _options.merge)(cachedOpts, (0, _options.validate)(args[0])), NO_PLACEHOLDER))(); + } else if (Array.isArray(tpl)) { + let builder = templateAstCache.get(tpl); + + if (!builder) { + builder = (0, _literal.default)(formatter, tpl, (0, _options.merge)(cachedOpts, NO_PLACEHOLDER)); + templateAstCache.set(tpl, builder); + } + + return builder(args)(); + } + + throw new Error(`Unexpected template param ${typeof tpl}`); + } + }); +} + +function extendedTrace(fn) { + let rootStack = ""; + + try { + throw new Error(); + } catch (error) { + if (error.stack) { + rootStack = error.stack.split("\n").slice(3).join("\n"); + } + } + + return arg => { + try { + return fn(arg); + } catch (err) { + err.stack += `\n =============\n${rootStack}`; + throw err; + } + }; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/formatters.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/formatters.js" new file mode 100644 index 0000000000000000000000000000000000000000..ab9168b60517b9929aa5c301c1ff40ee78038deb --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/formatters.js" @@ -0,0 +1,71 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.statements = exports.statement = exports.smart = exports.program = exports.expression = void 0; + +var _t = require("@babel/types"); + +const { + assertExpressionStatement +} = _t; + +function makeStatementFormatter(fn) { + return { + code: str => `/* @babel/template */;\n${str}`, + validate: () => {}, + unwrap: ast => { + return fn(ast.program.body.slice(1)); + } + }; +} + +const smart = makeStatementFormatter(body => { + if (body.length > 1) { + return body; + } else { + return body[0]; + } +}); +exports.smart = smart; +const statements = makeStatementFormatter(body => body); +exports.statements = statements; +const statement = makeStatementFormatter(body => { + if (body.length === 0) { + throw new Error("Found nothing to return."); + } + + if (body.length > 1) { + throw new Error("Found multiple statements but wanted one"); + } + + return body[0]; +}); +exports.statement = statement; +const expression = { + code: str => `(\n${str}\n)`, + validate: ast => { + if (ast.program.body.length > 1) { + throw new Error("Found multiple statements but wanted one"); + } + + if (expression.unwrap(ast).start === 0) { + throw new Error("Parse result included parens."); + } + }, + unwrap: ({ + program + }) => { + const [stmt] = program.body; + assertExpressionStatement(stmt); + return stmt.expression; + } +}; +exports.expression = expression; +const program = { + code: str => str, + validate: () => {}, + unwrap: ast => ast.program +}; +exports.program = program; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..b75aacdcc222581adcd1c2ed5d9411f8db853d48 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/index.js" @@ -0,0 +1,32 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.statements = exports.statement = exports.smart = exports.program = exports.expression = exports.default = void 0; + +var formatters = require("./formatters"); + +var _builder = require("./builder"); + +const smart = (0, _builder.default)(formatters.smart); +exports.smart = smart; +const statement = (0, _builder.default)(formatters.statement); +exports.statement = statement; +const statements = (0, _builder.default)(formatters.statements); +exports.statements = statements; +const expression = (0, _builder.default)(formatters.expression); +exports.expression = expression; +const program = (0, _builder.default)(formatters.program); +exports.program = program; + +var _default = Object.assign(smart.bind(undefined), { + smart, + statement, + statements, + expression, + program, + ast: smart.ast +}); + +exports.default = _default; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/literal.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/literal.js" new file mode 100644 index 0000000000000000000000000000000000000000..fd194c6abb0ab298b29760e9b5f92c614d03d0b4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/literal.js" @@ -0,0 +1,80 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = literalTemplate; + +var _options = require("./options"); + +var _parse = require("./parse"); + +var _populate = require("./populate"); + +function literalTemplate(formatter, tpl, opts) { + const { + metadata, + names + } = buildLiteralData(formatter, tpl, opts); + return arg => { + const defaultReplacements = {}; + arg.forEach((replacement, i) => { + defaultReplacements[names[i]] = replacement; + }); + return arg => { + const replacements = (0, _options.normalizeReplacements)(arg); + + if (replacements) { + Object.keys(replacements).forEach(key => { + if (Object.prototype.hasOwnProperty.call(defaultReplacements, key)) { + throw new Error("Unexpected replacement overlap."); + } + }); + } + + return formatter.unwrap((0, _populate.default)(metadata, replacements ? Object.assign(replacements, defaultReplacements) : defaultReplacements)); + }; + }; +} + +function buildLiteralData(formatter, tpl, opts) { + let names; + let nameSet; + let metadata; + let prefix = ""; + + do { + prefix += "$"; + const result = buildTemplateCode(tpl, prefix); + names = result.names; + nameSet = new Set(names); + metadata = (0, _parse.default)(formatter, formatter.code(result.code), { + parser: opts.parser, + placeholderWhitelist: new Set(result.names.concat(opts.placeholderWhitelist ? Array.from(opts.placeholderWhitelist) : [])), + placeholderPattern: opts.placeholderPattern, + preserveComments: opts.preserveComments, + syntacticPlaceholders: opts.syntacticPlaceholders + }); + } while (metadata.placeholders.some(placeholder => placeholder.isDuplicate && nameSet.has(placeholder.name))); + + return { + metadata, + names + }; +} + +function buildTemplateCode(tpl, prefix) { + const names = []; + let code = tpl[0]; + + for (let i = 1; i < tpl.length; i++) { + const value = `${prefix}${i - 1}`; + names.push(value); + code += value + tpl[i]; + } + + return { + names, + code + }; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/options.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/options.js" new file mode 100644 index 0000000000000000000000000000000000000000..95c31e74b3990751d2985d76e5467320ea810d05 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/options.js" @@ -0,0 +1,83 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.merge = merge; +exports.normalizeReplacements = normalizeReplacements; +exports.validate = validate; +const _excluded = ["placeholderWhitelist", "placeholderPattern", "preserveComments", "syntacticPlaceholders"]; + +function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } + +function merge(a, b) { + const { + placeholderWhitelist = a.placeholderWhitelist, + placeholderPattern = a.placeholderPattern, + preserveComments = a.preserveComments, + syntacticPlaceholders = a.syntacticPlaceholders + } = b; + return { + parser: Object.assign({}, a.parser, b.parser), + placeholderWhitelist, + placeholderPattern, + preserveComments, + syntacticPlaceholders + }; +} + +function validate(opts) { + if (opts != null && typeof opts !== "object") { + throw new Error("Unknown template options."); + } + + const _ref = opts || {}, + { + placeholderWhitelist, + placeholderPattern, + preserveComments, + syntacticPlaceholders + } = _ref, + parser = _objectWithoutPropertiesLoose(_ref, _excluded); + + if (placeholderWhitelist != null && !(placeholderWhitelist instanceof Set)) { + throw new Error("'.placeholderWhitelist' must be a Set, null, or undefined"); + } + + if (placeholderPattern != null && !(placeholderPattern instanceof RegExp) && placeholderPattern !== false) { + throw new Error("'.placeholderPattern' must be a RegExp, false, null, or undefined"); + } + + if (preserveComments != null && typeof preserveComments !== "boolean") { + throw new Error("'.preserveComments' must be a boolean, null, or undefined"); + } + + if (syntacticPlaceholders != null && typeof syntacticPlaceholders !== "boolean") { + throw new Error("'.syntacticPlaceholders' must be a boolean, null, or undefined"); + } + + if (syntacticPlaceholders === true && (placeholderWhitelist != null || placeholderPattern != null)) { + throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible" + " with '.syntacticPlaceholders: true'"); + } + + return { + parser, + placeholderWhitelist: placeholderWhitelist || undefined, + placeholderPattern: placeholderPattern == null ? undefined : placeholderPattern, + preserveComments: preserveComments == null ? undefined : preserveComments, + syntacticPlaceholders: syntacticPlaceholders == null ? undefined : syntacticPlaceholders + }; +} + +function normalizeReplacements(replacements) { + if (Array.isArray(replacements)) { + return replacements.reduce((acc, replacement, i) => { + acc["$" + i] = replacement; + return acc; + }, {}); + } else if (typeof replacements === "object" || replacements == null) { + return replacements || undefined; + } + + throw new Error("Template replacements must be an array, object, null, or undefined"); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/parse.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/parse.js" new file mode 100644 index 0000000000000000000000000000000000000000..0d42ed435b3277e89bb60855a8d5591f285d6343 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/parse.js" @@ -0,0 +1,188 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = parseAndBuildMetadata; + +var _t = require("@babel/types"); + +var _parser = require("@babel/parser"); + +var _codeFrame = require("@babel/code-frame"); + +const { + isCallExpression, + isExpressionStatement, + isFunction, + isIdentifier, + isJSXIdentifier, + isNewExpression, + isPlaceholder, + isStatement, + isStringLiteral, + removePropertiesDeep, + traverse +} = _t; +const PATTERN = /^[_$A-Z0-9]+$/; + +function parseAndBuildMetadata(formatter, code, opts) { + const { + placeholderWhitelist, + placeholderPattern, + preserveComments, + syntacticPlaceholders + } = opts; + const ast = parseWithCodeFrame(code, opts.parser, syntacticPlaceholders); + removePropertiesDeep(ast, { + preserveComments + }); + formatter.validate(ast); + const syntactic = { + placeholders: [], + placeholderNames: new Set() + }; + const legacy = { + placeholders: [], + placeholderNames: new Set() + }; + const isLegacyRef = { + value: undefined + }; + traverse(ast, placeholderVisitorHandler, { + syntactic, + legacy, + isLegacyRef, + placeholderWhitelist, + placeholderPattern, + syntacticPlaceholders + }); + return Object.assign({ + ast + }, isLegacyRef.value ? legacy : syntactic); +} + +function placeholderVisitorHandler(node, ancestors, state) { + var _state$placeholderWhi; + + let name; + + if (isPlaceholder(node)) { + if (state.syntacticPlaceholders === false) { + throw new Error("%%foo%%-style placeholders can't be used when " + "'.syntacticPlaceholders' is false."); + } else { + name = node.name.name; + state.isLegacyRef.value = false; + } + } else if (state.isLegacyRef.value === false || state.syntacticPlaceholders) { + return; + } else if (isIdentifier(node) || isJSXIdentifier(node)) { + name = node.name; + state.isLegacyRef.value = true; + } else if (isStringLiteral(node)) { + name = node.value; + state.isLegacyRef.value = true; + } else { + return; + } + + if (!state.isLegacyRef.value && (state.placeholderPattern != null || state.placeholderWhitelist != null)) { + throw new Error("'.placeholderWhitelist' and '.placeholderPattern' aren't compatible" + " with '.syntacticPlaceholders: true'"); + } + + if (state.isLegacyRef.value && (state.placeholderPattern === false || !(state.placeholderPattern || PATTERN).test(name)) && !((_state$placeholderWhi = state.placeholderWhitelist) != null && _state$placeholderWhi.has(name))) { + return; + } + + ancestors = ancestors.slice(); + const { + node: parent, + key + } = ancestors[ancestors.length - 1]; + let type; + + if (isStringLiteral(node) || isPlaceholder(node, { + expectedNode: "StringLiteral" + })) { + type = "string"; + } else if (isNewExpression(parent) && key === "arguments" || isCallExpression(parent) && key === "arguments" || isFunction(parent) && key === "params") { + type = "param"; + } else if (isExpressionStatement(parent) && !isPlaceholder(node)) { + type = "statement"; + ancestors = ancestors.slice(0, -1); + } else if (isStatement(node) && isPlaceholder(node)) { + type = "statement"; + } else { + type = "other"; + } + + const { + placeholders, + placeholderNames + } = state.isLegacyRef.value ? state.legacy : state.syntactic; + placeholders.push({ + name, + type, + resolve: ast => resolveAncestors(ast, ancestors), + isDuplicate: placeholderNames.has(name) + }); + placeholderNames.add(name); +} + +function resolveAncestors(ast, ancestors) { + let parent = ast; + + for (let i = 0; i < ancestors.length - 1; i++) { + const { + key, + index + } = ancestors[i]; + + if (index === undefined) { + parent = parent[key]; + } else { + parent = parent[key][index]; + } + } + + const { + key, + index + } = ancestors[ancestors.length - 1]; + return { + parent, + key, + index + }; +} + +function parseWithCodeFrame(code, parserOpts, syntacticPlaceholders) { + const plugins = (parserOpts.plugins || []).slice(); + + if (syntacticPlaceholders !== false) { + plugins.push("placeholders"); + } + + parserOpts = Object.assign({ + allowReturnOutsideFunction: true, + allowSuperOutsideMethod: true, + sourceType: "module" + }, parserOpts, { + plugins + }); + + try { + return (0, _parser.parse)(code, parserOpts); + } catch (err) { + const loc = err.loc; + + if (loc) { + err.message += "\n" + (0, _codeFrame.codeFrameColumns)(code, { + start: loc + }); + err.code = "BABEL_TEMPLATE_PARSE_ERROR"; + } + + throw err; + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/populate.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/populate.js" new file mode 100644 index 0000000000000000000000000000000000000000..b9125564b710d00a489faec578a7608587f5b650 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/populate.js" @@ -0,0 +1,135 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = populatePlaceholders; + +var _t = require("@babel/types"); + +const { + blockStatement, + cloneNode, + emptyStatement, + expressionStatement, + identifier, + isStatement, + isStringLiteral, + stringLiteral, + validate +} = _t; + +function populatePlaceholders(metadata, replacements) { + const ast = cloneNode(metadata.ast); + + if (replacements) { + metadata.placeholders.forEach(placeholder => { + if (!Object.prototype.hasOwnProperty.call(replacements, placeholder.name)) { + const placeholderName = placeholder.name; + throw new Error(`Error: No substitution given for "${placeholderName}". If this is not meant to be a + placeholder you may want to consider passing one of the following options to @babel/template: + - { placeholderPattern: false, placeholderWhitelist: new Set(['${placeholderName}'])} + - { placeholderPattern: /^${placeholderName}$/ }`); + } + }); + Object.keys(replacements).forEach(key => { + if (!metadata.placeholderNames.has(key)) { + throw new Error(`Unknown substitution "${key}" given`); + } + }); + } + + metadata.placeholders.slice().reverse().forEach(placeholder => { + try { + applyReplacement(placeholder, ast, replacements && replacements[placeholder.name] || null); + } catch (e) { + e.message = `@babel/template placeholder "${placeholder.name}": ${e.message}`; + throw e; + } + }); + return ast; +} + +function applyReplacement(placeholder, ast, replacement) { + if (placeholder.isDuplicate) { + if (Array.isArray(replacement)) { + replacement = replacement.map(node => cloneNode(node)); + } else if (typeof replacement === "object") { + replacement = cloneNode(replacement); + } + } + + const { + parent, + key, + index + } = placeholder.resolve(ast); + + if (placeholder.type === "string") { + if (typeof replacement === "string") { + replacement = stringLiteral(replacement); + } + + if (!replacement || !isStringLiteral(replacement)) { + throw new Error("Expected string substitution"); + } + } else if (placeholder.type === "statement") { + if (index === undefined) { + if (!replacement) { + replacement = emptyStatement(); + } else if (Array.isArray(replacement)) { + replacement = blockStatement(replacement); + } else if (typeof replacement === "string") { + replacement = expressionStatement(identifier(replacement)); + } else if (!isStatement(replacement)) { + replacement = expressionStatement(replacement); + } + } else { + if (replacement && !Array.isArray(replacement)) { + if (typeof replacement === "string") { + replacement = identifier(replacement); + } + + if (!isStatement(replacement)) { + replacement = expressionStatement(replacement); + } + } + } + } else if (placeholder.type === "param") { + if (typeof replacement === "string") { + replacement = identifier(replacement); + } + + if (index === undefined) throw new Error("Assertion failure."); + } else { + if (typeof replacement === "string") { + replacement = identifier(replacement); + } + + if (Array.isArray(replacement)) { + throw new Error("Cannot replace single expression with an array."); + } + } + + if (index === undefined) { + validate(parent, key, replacement); + parent[key] = replacement; + } else { + const items = parent[key].slice(); + + if (placeholder.type === "statement" || placeholder.type === "param") { + if (replacement == null) { + items.splice(index, 1); + } else if (Array.isArray(replacement)) { + items.splice(index, 1, ...replacement); + } else { + items[index] = replacement; + } + } else { + items[index] = replacement; + } + + validate(parent, key, items); + parent[key] = items; + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/string.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/string.js" new file mode 100644 index 0000000000000000000000000000000000000000..fa8aade5313cd33c74fd165fe7d60d696af83aba --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/lib/string.js" @@ -0,0 +1,22 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = stringTemplate; + +var _options = require("./options"); + +var _parse = require("./parse"); + +var _populate = require("./populate"); + +function stringTemplate(formatter, code, opts) { + code = formatter.code(code); + let metadata; + return arg => { + const replacements = (0, _options.normalizeReplacements)(arg); + if (!metadata) metadata = (0, _parse.default)(formatter, code, opts); + return formatter.unwrap((0, _populate.default)(metadata, replacements)); + }; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..9aca58a5a308dc1060ab5d6b2705a4614b85f0e2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/template/package.json" @@ -0,0 +1,26 @@ +{ + "name": "@babel/template", + "version": "7.16.7", + "description": "Generate an AST from a string template.", + "author": "The Babel Team (https://babel.dev/team)", + "homepage": "https://babel.dev/docs/en/next/babel-template", + "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20template%22+is%3Aopen", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-template" + }, + "main": "./lib/index.js", + "dependencies": { + "@babel/code-frame": "^7.16.7", + "@babel/parser": "^7.16.7", + "@babel/types": "^7.16.7" + }, + "engines": { + "node": ">=6.9.0" + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/LICENSE" @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..e478f16fb1c63023ca8fe70aecbf17cc2688be6b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/README.md" @@ -0,0 +1,19 @@ +# @babel/traverse + +> The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes + +See our website [@babel/traverse](https://babeljs.io/docs/en/babel-traverse) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20traverse%22+is%3Aopen) associated with this package. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/traverse +``` + +or using yarn: + +```sh +yarn add @babel/traverse --dev +``` diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/cache.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/cache.js" new file mode 100644 index 0000000000000000000000000000000000000000..89f200777be2a53ca7edcbe8c6d91b3ee3c4fb9e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/cache.js" @@ -0,0 +1,26 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.clear = clear; +exports.clearPath = clearPath; +exports.clearScope = clearScope; +exports.scope = exports.path = void 0; +let path = new WeakMap(); +exports.path = path; +let scope = new WeakMap(); +exports.scope = scope; + +function clear() { + clearPath(); + clearScope(); +} + +function clearPath() { + exports.path = path = new WeakMap(); +} + +function clearScope() { + exports.scope = scope = new WeakMap(); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/context.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/context.js" new file mode 100644 index 0000000000000000000000000000000000000000..25e2e0a750122ca0295b8fdc32da530f3ecdc697 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/context.js" @@ -0,0 +1,137 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _path = require("./path"); + +var _t = require("@babel/types"); + +const { + VISITOR_KEYS +} = _t; + +class TraversalContext { + constructor(scope, opts, state, parentPath) { + this.queue = null; + this.priorityQueue = null; + this.parentPath = parentPath; + this.scope = scope; + this.state = state; + this.opts = opts; + } + + shouldVisit(node) { + const opts = this.opts; + if (opts.enter || opts.exit) return true; + if (opts[node.type]) return true; + const keys = VISITOR_KEYS[node.type]; + if (!(keys != null && keys.length)) return false; + + for (const key of keys) { + if (node[key]) return true; + } + + return false; + } + + create(node, obj, key, listKey) { + return _path.default.get({ + parentPath: this.parentPath, + parent: node, + container: obj, + key: key, + listKey + }); + } + + maybeQueue(path, notPriority) { + if (this.queue) { + if (notPriority) { + this.queue.push(path); + } else { + this.priorityQueue.push(path); + } + } + } + + visitMultiple(container, parent, listKey) { + if (container.length === 0) return false; + const queue = []; + + for (let key = 0; key < container.length; key++) { + const node = container[key]; + + if (node && this.shouldVisit(node)) { + queue.push(this.create(parent, container, key, listKey)); + } + } + + return this.visitQueue(queue); + } + + visitSingle(node, key) { + if (this.shouldVisit(node[key])) { + return this.visitQueue([this.create(node, node, key)]); + } else { + return false; + } + } + + visitQueue(queue) { + this.queue = queue; + this.priorityQueue = []; + const visited = new WeakSet(); + let stop = false; + + for (const path of queue) { + path.resync(); + + if (path.contexts.length === 0 || path.contexts[path.contexts.length - 1] !== this) { + path.pushContext(this); + } + + if (path.key === null) continue; + const { + node + } = path; + if (visited.has(node)) continue; + if (node) visited.add(node); + + if (path.visit()) { + stop = true; + break; + } + + if (this.priorityQueue.length) { + stop = this.visitQueue(this.priorityQueue); + this.priorityQueue = []; + this.queue = queue; + if (stop) break; + } + } + + for (const path of queue) { + path.popContext(); + } + + this.queue = null; + return stop; + } + + visit(node, key) { + const nodes = node[key]; + if (!nodes) return false; + + if (Array.isArray(nodes)) { + return this.visitMultiple(nodes, node, key); + } else { + return this.visitSingle(node, key); + } + } + +} + +exports.default = TraversalContext; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/hub.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/hub.js" new file mode 100644 index 0000000000000000000000000000000000000000..fe139d2a8f2c34fceab7e0ca382571c9f12fa5a0 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/hub.js" @@ -0,0 +1,23 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +class Hub { + getCode() {} + + getScope() {} + + addHelper() { + throw new Error("Helpers are not supported by the default hub."); + } + + buildError(node, msg, Error = TypeError) { + return new Error(msg); + } + +} + +exports.default = Hub; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..44406786edf6cb68669e4b1ad4708fc9d5f0cf36 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/index.js" @@ -0,0 +1,111 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +Object.defineProperty(exports, "Hub", { + enumerable: true, + get: function () { + return _hub.default; + } +}); +Object.defineProperty(exports, "NodePath", { + enumerable: true, + get: function () { + return _path.default; + } +}); +Object.defineProperty(exports, "Scope", { + enumerable: true, + get: function () { + return _scope.default; + } +}); +exports.visitors = exports.default = void 0; + +var visitors = require("./visitors"); + +exports.visitors = visitors; + +var _t = require("@babel/types"); + +var cache = require("./cache"); + +var _traverseNode = require("./traverse-node"); + +var _path = require("./path"); + +var _scope = require("./scope"); + +var _hub = require("./hub"); + +const { + VISITOR_KEYS, + removeProperties, + traverseFast +} = _t; + +function traverse(parent, opts = {}, scope, state, parentPath) { + if (!parent) return; + + if (!opts.noScope && !scope) { + if (parent.type !== "Program" && parent.type !== "File") { + throw new Error("You must pass a scope and parentPath unless traversing a Program/File. " + `Instead of that you tried to traverse a ${parent.type} node without ` + "passing scope and parentPath."); + } + } + + if (!VISITOR_KEYS[parent.type]) { + return; + } + + visitors.explode(opts); + (0, _traverseNode.traverseNode)(parent, opts, scope, state, parentPath); +} + +var _default = traverse; +exports.default = _default; +traverse.visitors = visitors; +traverse.verify = visitors.verify; +traverse.explode = visitors.explode; + +traverse.cheap = function (node, enter) { + return traverseFast(node, enter); +}; + +traverse.node = function (node, opts, scope, state, path, skipKeys) { + (0, _traverseNode.traverseNode)(node, opts, scope, state, path, skipKeys); +}; + +traverse.clearNode = function (node, opts) { + removeProperties(node, opts); + cache.path.delete(node); +}; + +traverse.removeProperties = function (tree, opts) { + traverseFast(tree, traverse.clearNode, opts); + return tree; +}; + +function hasDenylistedType(path, state) { + if (path.node.type === state.type) { + state.has = true; + path.stop(); + } +} + +traverse.hasType = function (tree, type, denylistTypes) { + if (denylistTypes != null && denylistTypes.includes(tree.type)) return false; + if (tree.type === type) return true; + const state = { + has: false, + type: type + }; + traverse(tree, { + noScope: true, + denylist: denylistTypes, + enter: hasDenylistedType + }, null, state); + return state.has; +}; + +traverse.cache = cache; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/ancestry.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/ancestry.js" new file mode 100644 index 0000000000000000000000000000000000000000..23f6720372fa46de0aea9b0e4da6c223f9d44620 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/ancestry.js" @@ -0,0 +1,180 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.find = find; +exports.findParent = findParent; +exports.getAncestry = getAncestry; +exports.getDeepestCommonAncestorFrom = getDeepestCommonAncestorFrom; +exports.getEarliestCommonAncestorFrom = getEarliestCommonAncestorFrom; +exports.getFunctionParent = getFunctionParent; +exports.getStatementParent = getStatementParent; +exports.inType = inType; +exports.isAncestor = isAncestor; +exports.isDescendant = isDescendant; + +var _t = require("@babel/types"); + +var _index = require("./index"); + +const { + VISITOR_KEYS +} = _t; + +function findParent(callback) { + let path = this; + + while (path = path.parentPath) { + if (callback(path)) return path; + } + + return null; +} + +function find(callback) { + let path = this; + + do { + if (callback(path)) return path; + } while (path = path.parentPath); + + return null; +} + +function getFunctionParent() { + return this.findParent(p => p.isFunction()); +} + +function getStatementParent() { + let path = this; + + do { + if (!path.parentPath || Array.isArray(path.container) && path.isStatement()) { + break; + } else { + path = path.parentPath; + } + } while (path); + + if (path && (path.isProgram() || path.isFile())) { + throw new Error("File/Program node, we can't possibly find a statement parent to this"); + } + + return path; +} + +function getEarliestCommonAncestorFrom(paths) { + return this.getDeepestCommonAncestorFrom(paths, function (deepest, i, ancestries) { + let earliest; + const keys = VISITOR_KEYS[deepest.type]; + + for (const ancestry of ancestries) { + const path = ancestry[i + 1]; + + if (!earliest) { + earliest = path; + continue; + } + + if (path.listKey && earliest.listKey === path.listKey) { + if (path.key < earliest.key) { + earliest = path; + continue; + } + } + + const earliestKeyIndex = keys.indexOf(earliest.parentKey); + const currentKeyIndex = keys.indexOf(path.parentKey); + + if (earliestKeyIndex > currentKeyIndex) { + earliest = path; + } + } + + return earliest; + }); +} + +function getDeepestCommonAncestorFrom(paths, filter) { + if (!paths.length) { + return this; + } + + if (paths.length === 1) { + return paths[0]; + } + + let minDepth = Infinity; + let lastCommonIndex, lastCommon; + const ancestries = paths.map(path => { + const ancestry = []; + + do { + ancestry.unshift(path); + } while ((path = path.parentPath) && path !== this); + + if (ancestry.length < minDepth) { + minDepth = ancestry.length; + } + + return ancestry; + }); + const first = ancestries[0]; + + depthLoop: for (let i = 0; i < minDepth; i++) { + const shouldMatch = first[i]; + + for (const ancestry of ancestries) { + if (ancestry[i] !== shouldMatch) { + break depthLoop; + } + } + + lastCommonIndex = i; + lastCommon = shouldMatch; + } + + if (lastCommon) { + if (filter) { + return filter(lastCommon, lastCommonIndex, ancestries); + } else { + return lastCommon; + } + } else { + throw new Error("Couldn't find intersection"); + } +} + +function getAncestry() { + let path = this; + const paths = []; + + do { + paths.push(path); + } while (path = path.parentPath); + + return paths; +} + +function isAncestor(maybeDescendant) { + return maybeDescendant.isDescendant(this); +} + +function isDescendant(maybeAncestor) { + return !!this.findParent(parent => parent === maybeAncestor); +} + +function inType(...candidateTypes) { + let path = this; + + while (path) { + for (const type of candidateTypes) { + if (path.node.type === type) return true; + } + + path = path.parentPath; + } + + return false; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/comments.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/comments.js" new file mode 100644 index 0000000000000000000000000000000000000000..d42bd29dd842c0f39f0ec83668faf4b2d68793ed --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/comments.js" @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.addComment = addComment; +exports.addComments = addComments; +exports.shareCommentsWithSiblings = shareCommentsWithSiblings; + +var _t = require("@babel/types"); + +const { + addComment: _addComment, + addComments: _addComments +} = _t; + +function shareCommentsWithSiblings() { + if (typeof this.key === "string") return; + const node = this.node; + if (!node) return; + const trailing = node.trailingComments; + const leading = node.leadingComments; + if (!trailing && !leading) return; + const prev = this.getSibling(this.key - 1); + const next = this.getSibling(this.key + 1); + const hasPrev = Boolean(prev.node); + const hasNext = Boolean(next.node); + + if (hasPrev && !hasNext) { + prev.addComments("trailing", trailing); + } else if (hasNext && !hasPrev) { + next.addComments("leading", leading); + } +} + +function addComment(type, content, line) { + _addComment(this.node, type, content, line); +} + +function addComments(type, comments) { + _addComments(this.node, type, comments); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/context.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/context.js" new file mode 100644 index 0000000000000000000000000000000000000000..b11f08dc6046eab684f3079f1a57cb82b6a2738c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/context.js" @@ -0,0 +1,263 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports._call = _call; +exports._getQueueContexts = _getQueueContexts; +exports._resyncKey = _resyncKey; +exports._resyncList = _resyncList; +exports._resyncParent = _resyncParent; +exports._resyncRemoved = _resyncRemoved; +exports.call = call; +exports.isBlacklisted = exports.isDenylisted = isDenylisted; +exports.popContext = popContext; +exports.pushContext = pushContext; +exports.requeue = requeue; +exports.resync = resync; +exports.setContext = setContext; +exports.setKey = setKey; +exports.setScope = setScope; +exports.setup = setup; +exports.skip = skip; +exports.skipKey = skipKey; +exports.stop = stop; +exports.visit = visit; + +var _traverseNode = require("../traverse-node"); + +var _index = require("./index"); + +function call(key) { + const opts = this.opts; + this.debug(key); + + if (this.node) { + if (this._call(opts[key])) return true; + } + + if (this.node) { + return this._call(opts[this.node.type] && opts[this.node.type][key]); + } + + return false; +} + +function _call(fns) { + if (!fns) return false; + + for (const fn of fns) { + if (!fn) continue; + const node = this.node; + if (!node) return true; + const ret = fn.call(this.state, this, this.state); + + if (ret && typeof ret === "object" && typeof ret.then === "function") { + throw new Error(`You appear to be using a plugin with an async traversal visitor, ` + `which your current version of Babel does not support. ` + `If you're using a published plugin, you may need to upgrade ` + `your @babel/core version.`); + } + + if (ret) { + throw new Error(`Unexpected return value from visitor method ${fn}`); + } + + if (this.node !== node) return true; + if (this._traverseFlags > 0) return true; + } + + return false; +} + +function isDenylisted() { + var _this$opts$denylist; + + const denylist = (_this$opts$denylist = this.opts.denylist) != null ? _this$opts$denylist : this.opts.blacklist; + return denylist && denylist.indexOf(this.node.type) > -1; +} + +function restoreContext(path, context) { + if (path.context !== context) { + path.context = context; + path.state = context.state; + path.opts = context.opts; + } +} + +function visit() { + if (!this.node) { + return false; + } + + if (this.isDenylisted()) { + return false; + } + + if (this.opts.shouldSkip && this.opts.shouldSkip(this)) { + return false; + } + + const currentContext = this.context; + + if (this.shouldSkip || this.call("enter")) { + this.debug("Skip..."); + return this.shouldStop; + } + + restoreContext(this, currentContext); + this.debug("Recursing into..."); + this.shouldStop = (0, _traverseNode.traverseNode)(this.node, this.opts, this.scope, this.state, this, this.skipKeys); + restoreContext(this, currentContext); + this.call("exit"); + return this.shouldStop; +} + +function skip() { + this.shouldSkip = true; +} + +function skipKey(key) { + if (this.skipKeys == null) { + this.skipKeys = {}; + } + + this.skipKeys[key] = true; +} + +function stop() { + this._traverseFlags |= _index.SHOULD_SKIP | _index.SHOULD_STOP; +} + +function setScope() { + if (this.opts && this.opts.noScope) return; + let path = this.parentPath; + if (this.key === "key" && path.isMethod()) path = path.parentPath; + let target; + + while (path && !target) { + if (path.opts && path.opts.noScope) return; + target = path.scope; + path = path.parentPath; + } + + this.scope = this.getScope(target); + if (this.scope) this.scope.init(); +} + +function setContext(context) { + if (this.skipKeys != null) { + this.skipKeys = {}; + } + + this._traverseFlags = 0; + + if (context) { + this.context = context; + this.state = context.state; + this.opts = context.opts; + } + + this.setScope(); + return this; +} + +function resync() { + if (this.removed) return; + + this._resyncParent(); + + this._resyncList(); + + this._resyncKey(); +} + +function _resyncParent() { + if (this.parentPath) { + this.parent = this.parentPath.node; + } +} + +function _resyncKey() { + if (!this.container) return; + if (this.node === this.container[this.key]) return; + + if (Array.isArray(this.container)) { + for (let i = 0; i < this.container.length; i++) { + if (this.container[i] === this.node) { + return this.setKey(i); + } + } + } else { + for (const key of Object.keys(this.container)) { + if (this.container[key] === this.node) { + return this.setKey(key); + } + } + } + + this.key = null; +} + +function _resyncList() { + if (!this.parent || !this.inList) return; + const newContainer = this.parent[this.listKey]; + if (this.container === newContainer) return; + this.container = newContainer || null; +} + +function _resyncRemoved() { + if (this.key == null || !this.container || this.container[this.key] !== this.node) { + this._markRemoved(); + } +} + +function popContext() { + this.contexts.pop(); + + if (this.contexts.length > 0) { + this.setContext(this.contexts[this.contexts.length - 1]); + } else { + this.setContext(undefined); + } +} + +function pushContext(context) { + this.contexts.push(context); + this.setContext(context); +} + +function setup(parentPath, container, listKey, key) { + this.listKey = listKey; + this.container = container; + this.parentPath = parentPath || this.parentPath; + this.setKey(key); +} + +function setKey(key) { + var _this$node; + + this.key = key; + this.node = this.container[this.key]; + this.type = (_this$node = this.node) == null ? void 0 : _this$node.type; +} + +function requeue(pathToQueue = this) { + if (pathToQueue.removed) return; + ; + const contexts = this.contexts; + + for (const context of contexts) { + context.maybeQueue(pathToQueue); + } +} + +function _getQueueContexts() { + let path = this; + let contexts = this.contexts; + + while (!contexts.length) { + path = path.parentPath; + if (!path) break; + contexts = path.contexts; + } + + return contexts; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/conversion.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/conversion.js" new file mode 100644 index 0000000000000000000000000000000000000000..a019d221f5cf5a42b2154f782b8b21f1bf8b014b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/conversion.js" @@ -0,0 +1,531 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.arrowFunctionToExpression = arrowFunctionToExpression; +exports.arrowFunctionToShadowed = arrowFunctionToShadowed; +exports.ensureBlock = ensureBlock; +exports.toComputedKey = toComputedKey; +exports.unwrapFunctionEnvironment = unwrapFunctionEnvironment; + +var _t = require("@babel/types"); + +var _helperEnvironmentVisitor = require("@babel/helper-environment-visitor"); + +var _helperFunctionName = require("@babel/helper-function-name"); + +var _visitors = require("../visitors"); + +const { + arrowFunctionExpression, + assignmentExpression, + binaryExpression, + blockStatement, + callExpression, + conditionalExpression, + expressionStatement, + identifier, + isIdentifier, + jsxIdentifier, + logicalExpression, + LOGICAL_OPERATORS, + memberExpression, + metaProperty, + numericLiteral, + objectExpression, + restElement, + returnStatement, + sequenceExpression, + spreadElement, + stringLiteral, + super: _super, + thisExpression, + toExpression, + unaryExpression +} = _t; + +function toComputedKey() { + let key; + + if (this.isMemberExpression()) { + key = this.node.property; + } else if (this.isProperty() || this.isMethod()) { + key = this.node.key; + } else { + throw new ReferenceError("todo"); + } + + if (!this.node.computed) { + if (isIdentifier(key)) key = stringLiteral(key.name); + } + + return key; +} + +function ensureBlock() { + const body = this.get("body"); + const bodyNode = body.node; + + if (Array.isArray(body)) { + throw new Error("Can't convert array path to a block statement"); + } + + if (!bodyNode) { + throw new Error("Can't convert node without a body"); + } + + if (body.isBlockStatement()) { + return bodyNode; + } + + const statements = []; + let stringPath = "body"; + let key; + let listKey; + + if (body.isStatement()) { + listKey = "body"; + key = 0; + statements.push(body.node); + } else { + stringPath += ".body.0"; + + if (this.isFunction()) { + key = "argument"; + statements.push(returnStatement(body.node)); + } else { + key = "expression"; + statements.push(expressionStatement(body.node)); + } + } + + this.node.body = blockStatement(statements); + const parentPath = this.get(stringPath); + body.setup(parentPath, listKey ? parentPath.node[listKey] : parentPath.node, listKey, key); + return this.node; +} + +function arrowFunctionToShadowed() { + if (!this.isArrowFunctionExpression()) return; + this.arrowFunctionToExpression(); +} + +function unwrapFunctionEnvironment() { + if (!this.isArrowFunctionExpression() && !this.isFunctionExpression() && !this.isFunctionDeclaration()) { + throw this.buildCodeFrameError("Can only unwrap the environment of a function."); + } + + hoistFunctionEnvironment(this); +} + +function arrowFunctionToExpression({ + allowInsertArrow = true, + specCompliant = false, + noNewArrows = !specCompliant +} = {}) { + if (!this.isArrowFunctionExpression()) { + throw this.buildCodeFrameError("Cannot convert non-arrow function to a function expression."); + } + + const { + thisBinding, + fnPath: fn + } = hoistFunctionEnvironment(this, noNewArrows, allowInsertArrow); + fn.ensureBlock(); + fn.node.type = "FunctionExpression"; + + if (!noNewArrows) { + const checkBinding = thisBinding ? null : fn.scope.generateUidIdentifier("arrowCheckId"); + + if (checkBinding) { + fn.parentPath.scope.push({ + id: checkBinding, + init: objectExpression([]) + }); + } + + fn.get("body").unshiftContainer("body", expressionStatement(callExpression(this.hub.addHelper("newArrowCheck"), [thisExpression(), checkBinding ? identifier(checkBinding.name) : identifier(thisBinding)]))); + fn.replaceWith(callExpression(memberExpression((0, _helperFunctionName.default)(this, true) || fn.node, identifier("bind")), [checkBinding ? identifier(checkBinding.name) : thisExpression()])); + } +} + +const getSuperCallsVisitor = (0, _visitors.merge)([{ + CallExpression(child, { + allSuperCalls + }) { + if (!child.get("callee").isSuper()) return; + allSuperCalls.push(child); + } + +}, _helperEnvironmentVisitor.default]); + +function hoistFunctionEnvironment(fnPath, noNewArrows = true, allowInsertArrow = true) { + let arrowParent; + let thisEnvFn = fnPath.findParent(p => { + if (p.isArrowFunctionExpression()) { + var _arrowParent; + + (_arrowParent = arrowParent) != null ? _arrowParent : arrowParent = p; + return false; + } + + return p.isFunction() || p.isProgram() || p.isClassProperty({ + static: false + }) || p.isClassPrivateProperty({ + static: false + }); + }); + const inConstructor = thisEnvFn.isClassMethod({ + kind: "constructor" + }); + + if (thisEnvFn.isClassProperty() || thisEnvFn.isClassPrivateProperty()) { + if (arrowParent) { + thisEnvFn = arrowParent; + } else if (allowInsertArrow) { + fnPath.replaceWith(callExpression(arrowFunctionExpression([], toExpression(fnPath.node)), [])); + thisEnvFn = fnPath.get("callee"); + fnPath = thisEnvFn.get("body"); + } else { + throw fnPath.buildCodeFrameError("Unable to transform arrow inside class property"); + } + } + + const { + thisPaths, + argumentsPaths, + newTargetPaths, + superProps, + superCalls + } = getScopeInformation(fnPath); + + if (inConstructor && superCalls.length > 0) { + if (!allowInsertArrow) { + throw superCalls[0].buildCodeFrameError("Unable to handle nested super() usage in arrow"); + } + + const allSuperCalls = []; + thisEnvFn.traverse(getSuperCallsVisitor, { + allSuperCalls + }); + const superBinding = getSuperBinding(thisEnvFn); + allSuperCalls.forEach(superCall => { + const callee = identifier(superBinding); + callee.loc = superCall.node.callee.loc; + superCall.get("callee").replaceWith(callee); + }); + } + + if (argumentsPaths.length > 0) { + const argumentsBinding = getBinding(thisEnvFn, "arguments", () => { + const args = () => identifier("arguments"); + + if (thisEnvFn.scope.path.isProgram()) { + return conditionalExpression(binaryExpression("===", unaryExpression("typeof", args()), stringLiteral("undefined")), thisEnvFn.scope.buildUndefinedNode(), args()); + } else { + return args(); + } + }); + argumentsPaths.forEach(argumentsChild => { + const argsRef = identifier(argumentsBinding); + argsRef.loc = argumentsChild.node.loc; + argumentsChild.replaceWith(argsRef); + }); + } + + if (newTargetPaths.length > 0) { + const newTargetBinding = getBinding(thisEnvFn, "newtarget", () => metaProperty(identifier("new"), identifier("target"))); + newTargetPaths.forEach(targetChild => { + const targetRef = identifier(newTargetBinding); + targetRef.loc = targetChild.node.loc; + targetChild.replaceWith(targetRef); + }); + } + + if (superProps.length > 0) { + if (!allowInsertArrow) { + throw superProps[0].buildCodeFrameError("Unable to handle nested super.prop usage"); + } + + const flatSuperProps = superProps.reduce((acc, superProp) => acc.concat(standardizeSuperProperty(superProp)), []); + flatSuperProps.forEach(superProp => { + const key = superProp.node.computed ? "" : superProp.get("property").node.name; + const isAssignment = superProp.parentPath.isAssignmentExpression({ + left: superProp.node + }); + const isCall = superProp.parentPath.isCallExpression({ + callee: superProp.node + }); + const superBinding = getSuperPropBinding(thisEnvFn, isAssignment, key); + const args = []; + + if (superProp.node.computed) { + args.push(superProp.get("property").node); + } + + if (isAssignment) { + const value = superProp.parentPath.node.right; + args.push(value); + } + + const call = callExpression(identifier(superBinding), args); + + if (isCall) { + superProp.parentPath.unshiftContainer("arguments", thisExpression()); + superProp.replaceWith(memberExpression(call, identifier("call"))); + thisPaths.push(superProp.parentPath.get("arguments.0")); + } else if (isAssignment) { + superProp.parentPath.replaceWith(call); + } else { + superProp.replaceWith(call); + } + }); + } + + let thisBinding; + + if (thisPaths.length > 0 || !noNewArrows) { + thisBinding = getThisBinding(thisEnvFn, inConstructor); + + if (noNewArrows || inConstructor && hasSuperClass(thisEnvFn)) { + thisPaths.forEach(thisChild => { + const thisRef = thisChild.isJSX() ? jsxIdentifier(thisBinding) : identifier(thisBinding); + thisRef.loc = thisChild.node.loc; + thisChild.replaceWith(thisRef); + }); + if (!noNewArrows) thisBinding = null; + } + } + + return { + thisBinding, + fnPath + }; +} + +function isLogicalOp(op) { + return LOGICAL_OPERATORS.includes(op); +} + +function standardizeSuperProperty(superProp) { + if (superProp.parentPath.isAssignmentExpression() && superProp.parentPath.node.operator !== "=") { + const assignmentPath = superProp.parentPath; + const op = assignmentPath.node.operator.slice(0, -1); + const value = assignmentPath.node.right; + const isLogicalAssignment = isLogicalOp(op); + + if (superProp.node.computed) { + const tmp = superProp.scope.generateDeclaredUidIdentifier("tmp"); + const object = superProp.node.object; + const property = superProp.node.property; + assignmentPath.get("left").replaceWith(memberExpression(object, assignmentExpression("=", tmp, property), true)); + assignmentPath.get("right").replaceWith(rightExpression(isLogicalAssignment ? "=" : op, memberExpression(object, identifier(tmp.name), true), value)); + } else { + const object = superProp.node.object; + const property = superProp.node.property; + assignmentPath.get("left").replaceWith(memberExpression(object, property)); + assignmentPath.get("right").replaceWith(rightExpression(isLogicalAssignment ? "=" : op, memberExpression(object, identifier(property.name)), value)); + } + + if (isLogicalAssignment) { + assignmentPath.replaceWith(logicalExpression(op, assignmentPath.node.left, assignmentPath.node.right)); + } else { + assignmentPath.node.operator = "="; + } + + return [assignmentPath.get("left"), assignmentPath.get("right").get("left")]; + } else if (superProp.parentPath.isUpdateExpression()) { + const updateExpr = superProp.parentPath; + const tmp = superProp.scope.generateDeclaredUidIdentifier("tmp"); + const computedKey = superProp.node.computed ? superProp.scope.generateDeclaredUidIdentifier("prop") : null; + const parts = [assignmentExpression("=", tmp, memberExpression(superProp.node.object, computedKey ? assignmentExpression("=", computedKey, superProp.node.property) : superProp.node.property, superProp.node.computed)), assignmentExpression("=", memberExpression(superProp.node.object, computedKey ? identifier(computedKey.name) : superProp.node.property, superProp.node.computed), binaryExpression(superProp.parentPath.node.operator[0], identifier(tmp.name), numericLiteral(1)))]; + + if (!superProp.parentPath.node.prefix) { + parts.push(identifier(tmp.name)); + } + + updateExpr.replaceWith(sequenceExpression(parts)); + const left = updateExpr.get("expressions.0.right"); + const right = updateExpr.get("expressions.1.left"); + return [left, right]; + } + + return [superProp]; + + function rightExpression(op, left, right) { + if (op === "=") { + return assignmentExpression("=", left, right); + } else { + return binaryExpression(op, left, right); + } + } +} + +function hasSuperClass(thisEnvFn) { + return thisEnvFn.isClassMethod() && !!thisEnvFn.parentPath.parentPath.node.superClass; +} + +const assignSuperThisVisitor = (0, _visitors.merge)([{ + CallExpression(child, { + supers, + thisBinding + }) { + if (!child.get("callee").isSuper()) return; + if (supers.has(child.node)) return; + supers.add(child.node); + child.replaceWithMultiple([child.node, assignmentExpression("=", identifier(thisBinding), identifier("this"))]); + } + +}, _helperEnvironmentVisitor.default]); + +function getThisBinding(thisEnvFn, inConstructor) { + return getBinding(thisEnvFn, "this", thisBinding => { + if (!inConstructor || !hasSuperClass(thisEnvFn)) return thisExpression(); + thisEnvFn.traverse(assignSuperThisVisitor, { + supers: new WeakSet(), + thisBinding + }); + }); +} + +function getSuperBinding(thisEnvFn) { + return getBinding(thisEnvFn, "supercall", () => { + const argsBinding = thisEnvFn.scope.generateUidIdentifier("args"); + return arrowFunctionExpression([restElement(argsBinding)], callExpression(_super(), [spreadElement(identifier(argsBinding.name))])); + }); +} + +function getSuperPropBinding(thisEnvFn, isAssignment, propName) { + const op = isAssignment ? "set" : "get"; + return getBinding(thisEnvFn, `superprop_${op}:${propName || ""}`, () => { + const argsList = []; + let fnBody; + + if (propName) { + fnBody = memberExpression(_super(), identifier(propName)); + } else { + const method = thisEnvFn.scope.generateUidIdentifier("prop"); + argsList.unshift(method); + fnBody = memberExpression(_super(), identifier(method.name), true); + } + + if (isAssignment) { + const valueIdent = thisEnvFn.scope.generateUidIdentifier("value"); + argsList.push(valueIdent); + fnBody = assignmentExpression("=", fnBody, identifier(valueIdent.name)); + } + + return arrowFunctionExpression(argsList, fnBody); + }); +} + +function getBinding(thisEnvFn, key, init) { + const cacheKey = "binding:" + key; + let data = thisEnvFn.getData(cacheKey); + + if (!data) { + const id = thisEnvFn.scope.generateUidIdentifier(key); + data = id.name; + thisEnvFn.setData(cacheKey, data); + thisEnvFn.scope.push({ + id: id, + init: init(data) + }); + } + + return data; +} + +const getScopeInformationVisitor = (0, _visitors.merge)([{ + ThisExpression(child, { + thisPaths + }) { + thisPaths.push(child); + }, + + JSXIdentifier(child, { + thisPaths + }) { + if (child.node.name !== "this") return; + + if (!child.parentPath.isJSXMemberExpression({ + object: child.node + }) && !child.parentPath.isJSXOpeningElement({ + name: child.node + })) { + return; + } + + thisPaths.push(child); + }, + + CallExpression(child, { + superCalls + }) { + if (child.get("callee").isSuper()) superCalls.push(child); + }, + + MemberExpression(child, { + superProps + }) { + if (child.get("object").isSuper()) superProps.push(child); + }, + + Identifier(child, { + argumentsPaths + }) { + if (!child.isReferencedIdentifier({ + name: "arguments" + })) return; + let curr = child.scope; + + do { + if (curr.hasOwnBinding("arguments")) { + curr.rename("arguments"); + return; + } + + if (curr.path.isFunction() && !curr.path.isArrowFunctionExpression()) { + break; + } + } while (curr = curr.parent); + + argumentsPaths.push(child); + }, + + MetaProperty(child, { + newTargetPaths + }) { + if (!child.get("meta").isIdentifier({ + name: "new" + })) return; + if (!child.get("property").isIdentifier({ + name: "target" + })) return; + newTargetPaths.push(child); + } + +}, _helperEnvironmentVisitor.default]); + +function getScopeInformation(fnPath) { + const thisPaths = []; + const argumentsPaths = []; + const newTargetPaths = []; + const superProps = []; + const superCalls = []; + fnPath.traverse(getScopeInformationVisitor, { + thisPaths, + argumentsPaths, + newTargetPaths, + superProps, + superCalls + }); + return { + thisPaths, + argumentsPaths, + newTargetPaths, + superProps, + superCalls + }; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/evaluation.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/evaluation.js" new file mode 100644 index 0000000000000000000000000000000000000000..abbbe050f59425518ac82bea6c00791cd0edea40 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/evaluation.js" @@ -0,0 +1,401 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.evaluate = evaluate; +exports.evaluateTruthy = evaluateTruthy; +const VALID_CALLEES = ["String", "Number", "Math"]; +const INVALID_METHODS = ["random"]; + +function evaluateTruthy() { + const res = this.evaluate(); + if (res.confident) return !!res.value; +} + +function deopt(path, state) { + if (!state.confident) return; + state.deoptPath = path; + state.confident = false; +} + +function evaluateCached(path, state) { + const { + node + } = path; + const { + seen + } = state; + + if (seen.has(node)) { + const existing = seen.get(node); + + if (existing.resolved) { + return existing.value; + } else { + deopt(path, state); + return; + } + } else { + const item = { + resolved: false + }; + seen.set(node, item); + + const val = _evaluate(path, state); + + if (state.confident) { + item.resolved = true; + item.value = val; + } + + return val; + } +} + +function _evaluate(path, state) { + if (!state.confident) return; + + if (path.isSequenceExpression()) { + const exprs = path.get("expressions"); + return evaluateCached(exprs[exprs.length - 1], state); + } + + if (path.isStringLiteral() || path.isNumericLiteral() || path.isBooleanLiteral()) { + return path.node.value; + } + + if (path.isNullLiteral()) { + return null; + } + + if (path.isTemplateLiteral()) { + return evaluateQuasis(path, path.node.quasis, state); + } + + if (path.isTaggedTemplateExpression() && path.get("tag").isMemberExpression()) { + const object = path.get("tag.object"); + const { + node: { + name + } + } = object; + const property = path.get("tag.property"); + + if (object.isIdentifier() && name === "String" && !path.scope.getBinding(name) && property.isIdentifier() && property.node.name === "raw") { + return evaluateQuasis(path, path.node.quasi.quasis, state, true); + } + } + + if (path.isConditionalExpression()) { + const testResult = evaluateCached(path.get("test"), state); + if (!state.confident) return; + + if (testResult) { + return evaluateCached(path.get("consequent"), state); + } else { + return evaluateCached(path.get("alternate"), state); + } + } + + if (path.isExpressionWrapper()) { + return evaluateCached(path.get("expression"), state); + } + + if (path.isMemberExpression() && !path.parentPath.isCallExpression({ + callee: path.node + })) { + const property = path.get("property"); + const object = path.get("object"); + + if (object.isLiteral() && property.isIdentifier()) { + const value = object.node.value; + const type = typeof value; + + if (type === "number" || type === "string") { + return value[property.node.name]; + } + } + } + + if (path.isReferencedIdentifier()) { + const binding = path.scope.getBinding(path.node.name); + + if (binding && binding.constantViolations.length > 0) { + return deopt(binding.path, state); + } + + if (binding && path.node.start < binding.path.node.end) { + return deopt(binding.path, state); + } + + if (binding != null && binding.hasValue) { + return binding.value; + } else { + if (path.node.name === "undefined") { + return binding ? deopt(binding.path, state) : undefined; + } else if (path.node.name === "Infinity") { + return binding ? deopt(binding.path, state) : Infinity; + } else if (path.node.name === "NaN") { + return binding ? deopt(binding.path, state) : NaN; + } + + const resolved = path.resolve(); + + if (resolved === path) { + return deopt(path, state); + } else { + return evaluateCached(resolved, state); + } + } + } + + if (path.isUnaryExpression({ + prefix: true + })) { + if (path.node.operator === "void") { + return undefined; + } + + const argument = path.get("argument"); + + if (path.node.operator === "typeof" && (argument.isFunction() || argument.isClass())) { + return "function"; + } + + const arg = evaluateCached(argument, state); + if (!state.confident) return; + + switch (path.node.operator) { + case "!": + return !arg; + + case "+": + return +arg; + + case "-": + return -arg; + + case "~": + return ~arg; + + case "typeof": + return typeof arg; + } + } + + if (path.isArrayExpression()) { + const arr = []; + const elems = path.get("elements"); + + for (const elem of elems) { + const elemValue = elem.evaluate(); + + if (elemValue.confident) { + arr.push(elemValue.value); + } else { + return deopt(elemValue.deopt, state); + } + } + + return arr; + } + + if (path.isObjectExpression()) { + const obj = {}; + const props = path.get("properties"); + + for (const prop of props) { + if (prop.isObjectMethod() || prop.isSpreadElement()) { + return deopt(prop, state); + } + + const keyPath = prop.get("key"); + let key = keyPath; + + if (prop.node.computed) { + key = key.evaluate(); + + if (!key.confident) { + return deopt(key.deopt, state); + } + + key = key.value; + } else if (key.isIdentifier()) { + key = key.node.name; + } else { + key = key.node.value; + } + + const valuePath = prop.get("value"); + let value = valuePath.evaluate(); + + if (!value.confident) { + return deopt(value.deopt, state); + } + + value = value.value; + obj[key] = value; + } + + return obj; + } + + if (path.isLogicalExpression()) { + const wasConfident = state.confident; + const left = evaluateCached(path.get("left"), state); + const leftConfident = state.confident; + state.confident = wasConfident; + const right = evaluateCached(path.get("right"), state); + const rightConfident = state.confident; + + switch (path.node.operator) { + case "||": + state.confident = leftConfident && (!!left || rightConfident); + if (!state.confident) return; + return left || right; + + case "&&": + state.confident = leftConfident && (!left || rightConfident); + if (!state.confident) return; + return left && right; + } + } + + if (path.isBinaryExpression()) { + const left = evaluateCached(path.get("left"), state); + if (!state.confident) return; + const right = evaluateCached(path.get("right"), state); + if (!state.confident) return; + + switch (path.node.operator) { + case "-": + return left - right; + + case "+": + return left + right; + + case "/": + return left / right; + + case "*": + return left * right; + + case "%": + return left % right; + + case "**": + return Math.pow(left, right); + + case "<": + return left < right; + + case ">": + return left > right; + + case "<=": + return left <= right; + + case ">=": + return left >= right; + + case "==": + return left == right; + + case "!=": + return left != right; + + case "===": + return left === right; + + case "!==": + return left !== right; + + case "|": + return left | right; + + case "&": + return left & right; + + case "^": + return left ^ right; + + case "<<": + return left << right; + + case ">>": + return left >> right; + + case ">>>": + return left >>> right; + } + } + + if (path.isCallExpression()) { + const callee = path.get("callee"); + let context; + let func; + + if (callee.isIdentifier() && !path.scope.getBinding(callee.node.name) && VALID_CALLEES.indexOf(callee.node.name) >= 0) { + func = global[callee.node.name]; + } + + if (callee.isMemberExpression()) { + const object = callee.get("object"); + const property = callee.get("property"); + + if (object.isIdentifier() && property.isIdentifier() && VALID_CALLEES.indexOf(object.node.name) >= 0 && INVALID_METHODS.indexOf(property.node.name) < 0) { + context = global[object.node.name]; + func = context[property.node.name]; + } + + if (object.isLiteral() && property.isIdentifier()) { + const type = typeof object.node.value; + + if (type === "string" || type === "number") { + context = object.node.value; + func = context[property.node.name]; + } + } + } + + if (func) { + const args = path.get("arguments").map(arg => evaluateCached(arg, state)); + if (!state.confident) return; + return func.apply(context, args); + } + } + + deopt(path, state); +} + +function evaluateQuasis(path, quasis, state, raw = false) { + let str = ""; + let i = 0; + const exprs = path.get("expressions"); + + for (const elem of quasis) { + if (!state.confident) break; + str += raw ? elem.value.raw : elem.value.cooked; + const expr = exprs[i++]; + if (expr) str += String(evaluateCached(expr, state)); + } + + if (!state.confident) return; + return str; +} + +function evaluate() { + const state = { + confident: true, + deoptPath: null, + seen: new Map() + }; + let value = evaluateCached(this, state); + if (!state.confident) value = undefined; + return { + confident: state.confident, + deopt: state.deoptPath, + value: value + }; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/family.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/family.js" new file mode 100644 index 0000000000000000000000000000000000000000..6a6554bcd83618ec30aadf7363f3fa839d3081c8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/family.js" @@ -0,0 +1,407 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports._getKey = _getKey; +exports._getPattern = _getPattern; +exports.get = get; +exports.getAllNextSiblings = getAllNextSiblings; +exports.getAllPrevSiblings = getAllPrevSiblings; +exports.getBindingIdentifierPaths = getBindingIdentifierPaths; +exports.getBindingIdentifiers = getBindingIdentifiers; +exports.getCompletionRecords = getCompletionRecords; +exports.getNextSibling = getNextSibling; +exports.getOpposite = getOpposite; +exports.getOuterBindingIdentifierPaths = getOuterBindingIdentifierPaths; +exports.getOuterBindingIdentifiers = getOuterBindingIdentifiers; +exports.getPrevSibling = getPrevSibling; +exports.getSibling = getSibling; + +var _index = require("./index"); + +var _t = require("@babel/types"); + +const { + getBindingIdentifiers: _getBindingIdentifiers, + getOuterBindingIdentifiers: _getOuterBindingIdentifiers, + isDeclaration, + numericLiteral, + unaryExpression +} = _t; +const NORMAL_COMPLETION = 0; +const BREAK_COMPLETION = 1; + +function NormalCompletion(path) { + return { + type: NORMAL_COMPLETION, + path + }; +} + +function BreakCompletion(path) { + return { + type: BREAK_COMPLETION, + path + }; +} + +function getOpposite() { + if (this.key === "left") { + return this.getSibling("right"); + } else if (this.key === "right") { + return this.getSibling("left"); + } + + return null; +} + +function addCompletionRecords(path, records, context) { + if (path) { + records.push(..._getCompletionRecords(path, context)); + } + + return records; +} + +function completionRecordForSwitch(cases, records, context) { + let lastNormalCompletions = []; + + for (let i = 0; i < cases.length; i++) { + const casePath = cases[i]; + + const caseCompletions = _getCompletionRecords(casePath, context); + + const normalCompletions = []; + const breakCompletions = []; + + for (const c of caseCompletions) { + if (c.type === NORMAL_COMPLETION) { + normalCompletions.push(c); + } + + if (c.type === BREAK_COMPLETION) { + breakCompletions.push(c); + } + } + + if (normalCompletions.length) { + lastNormalCompletions = normalCompletions; + } + + records.push(...breakCompletions); + } + + records.push(...lastNormalCompletions); + return records; +} + +function normalCompletionToBreak(completions) { + completions.forEach(c => { + c.type = BREAK_COMPLETION; + }); +} + +function replaceBreakStatementInBreakCompletion(completions, reachable) { + completions.forEach(c => { + if (c.path.isBreakStatement({ + label: null + })) { + if (reachable) { + c.path.replaceWith(unaryExpression("void", numericLiteral(0))); + } else { + c.path.remove(); + } + } + }); +} + +function getStatementListCompletion(paths, context) { + const completions = []; + + if (context.canHaveBreak) { + let lastNormalCompletions = []; + + for (let i = 0; i < paths.length; i++) { + const path = paths[i]; + const newContext = Object.assign({}, context, { + inCaseClause: false + }); + + if (path.isBlockStatement() && (context.inCaseClause || context.shouldPopulateBreak)) { + newContext.shouldPopulateBreak = true; + } else { + newContext.shouldPopulateBreak = false; + } + + const statementCompletions = _getCompletionRecords(path, newContext); + + if (statementCompletions.length > 0 && statementCompletions.every(c => c.type === BREAK_COMPLETION)) { + if (lastNormalCompletions.length > 0 && statementCompletions.every(c => c.path.isBreakStatement({ + label: null + }))) { + normalCompletionToBreak(lastNormalCompletions); + completions.push(...lastNormalCompletions); + + if (lastNormalCompletions.some(c => c.path.isDeclaration())) { + completions.push(...statementCompletions); + replaceBreakStatementInBreakCompletion(statementCompletions, true); + } + + replaceBreakStatementInBreakCompletion(statementCompletions, false); + } else { + completions.push(...statementCompletions); + + if (!context.shouldPopulateBreak) { + replaceBreakStatementInBreakCompletion(statementCompletions, true); + } + } + + break; + } + + if (i === paths.length - 1) { + completions.push(...statementCompletions); + } else { + lastNormalCompletions = []; + + for (let i = 0; i < statementCompletions.length; i++) { + const c = statementCompletions[i]; + + if (c.type === BREAK_COMPLETION) { + completions.push(c); + } + + if (c.type === NORMAL_COMPLETION) { + lastNormalCompletions.push(c); + } + } + } + } + } else if (paths.length) { + for (let i = paths.length - 1; i >= 0; i--) { + const pathCompletions = _getCompletionRecords(paths[i], context); + + if (pathCompletions.length > 1 || pathCompletions.length === 1 && !pathCompletions[0].path.isVariableDeclaration()) { + completions.push(...pathCompletions); + break; + } + } + } + + return completions; +} + +function _getCompletionRecords(path, context) { + let records = []; + + if (path.isIfStatement()) { + records = addCompletionRecords(path.get("consequent"), records, context); + records = addCompletionRecords(path.get("alternate"), records, context); + } else if (path.isDoExpression() || path.isFor() || path.isWhile() || path.isLabeledStatement()) { + return addCompletionRecords(path.get("body"), records, context); + } else if (path.isProgram() || path.isBlockStatement()) { + return getStatementListCompletion(path.get("body"), context); + } else if (path.isFunction()) { + return _getCompletionRecords(path.get("body"), context); + } else if (path.isTryStatement()) { + records = addCompletionRecords(path.get("block"), records, context); + records = addCompletionRecords(path.get("handler"), records, context); + } else if (path.isCatchClause()) { + return addCompletionRecords(path.get("body"), records, context); + } else if (path.isSwitchStatement()) { + return completionRecordForSwitch(path.get("cases"), records, context); + } else if (path.isSwitchCase()) { + return getStatementListCompletion(path.get("consequent"), { + canHaveBreak: true, + shouldPopulateBreak: false, + inCaseClause: true + }); + } else if (path.isBreakStatement()) { + records.push(BreakCompletion(path)); + } else { + records.push(NormalCompletion(path)); + } + + return records; +} + +function getCompletionRecords() { + const records = _getCompletionRecords(this, { + canHaveBreak: false, + shouldPopulateBreak: false, + inCaseClause: false + }); + + return records.map(r => r.path); +} + +function getSibling(key) { + return _index.default.get({ + parentPath: this.parentPath, + parent: this.parent, + container: this.container, + listKey: this.listKey, + key: key + }).setContext(this.context); +} + +function getPrevSibling() { + return this.getSibling(this.key - 1); +} + +function getNextSibling() { + return this.getSibling(this.key + 1); +} + +function getAllNextSiblings() { + let _key = this.key; + let sibling = this.getSibling(++_key); + const siblings = []; + + while (sibling.node) { + siblings.push(sibling); + sibling = this.getSibling(++_key); + } + + return siblings; +} + +function getAllPrevSiblings() { + let _key = this.key; + let sibling = this.getSibling(--_key); + const siblings = []; + + while (sibling.node) { + siblings.push(sibling); + sibling = this.getSibling(--_key); + } + + return siblings; +} + +function get(key, context = true) { + if (context === true) context = this.context; + const parts = key.split("."); + + if (parts.length === 1) { + return this._getKey(key, context); + } else { + return this._getPattern(parts, context); + } +} + +function _getKey(key, context) { + const node = this.node; + const container = node[key]; + + if (Array.isArray(container)) { + return container.map((_, i) => { + return _index.default.get({ + listKey: key, + parentPath: this, + parent: node, + container: container, + key: i + }).setContext(context); + }); + } else { + return _index.default.get({ + parentPath: this, + parent: node, + container: node, + key: key + }).setContext(context); + } +} + +function _getPattern(parts, context) { + let path = this; + + for (const part of parts) { + if (part === ".") { + path = path.parentPath; + } else { + if (Array.isArray(path)) { + path = path[part]; + } else { + path = path.get(part, context); + } + } + } + + return path; +} + +function getBindingIdentifiers(duplicates) { + return _getBindingIdentifiers(this.node, duplicates); +} + +function getOuterBindingIdentifiers(duplicates) { + return _getOuterBindingIdentifiers(this.node, duplicates); +} + +function getBindingIdentifierPaths(duplicates = false, outerOnly = false) { + const path = this; + const search = [path]; + const ids = Object.create(null); + + while (search.length) { + const id = search.shift(); + if (!id) continue; + if (!id.node) continue; + const keys = _getBindingIdentifiers.keys[id.node.type]; + + if (id.isIdentifier()) { + if (duplicates) { + const _ids = ids[id.node.name] = ids[id.node.name] || []; + + _ids.push(id); + } else { + ids[id.node.name] = id; + } + + continue; + } + + if (id.isExportDeclaration()) { + const declaration = id.get("declaration"); + + if (isDeclaration(declaration)) { + search.push(declaration); + } + + continue; + } + + if (outerOnly) { + if (id.isFunctionDeclaration()) { + search.push(id.get("id")); + continue; + } + + if (id.isFunctionExpression()) { + continue; + } + } + + if (keys) { + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + const child = id.get(key); + + if (Array.isArray(child)) { + search.push(...child); + } else if (child.node) { + search.push(child); + } + } + } + } + + return ids; +} + +function getOuterBindingIdentifierPaths(duplicates) { + return this.getBindingIdentifierPaths(duplicates, true); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/generated/asserts.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/generated/asserts.js" new file mode 100644 index 0000000000000000000000000000000000000000..bee8a438ea43009d23cedad0b8c221f7cbfe32ab --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/generated/asserts.js" @@ -0,0 +1,5 @@ +"use strict"; + +var t = require("@babel/types"); + +var _index = require("../index"); \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/generated/validators.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/generated/validators.js" new file mode 100644 index 0000000000000000000000000000000000000000..bee8a438ea43009d23cedad0b8c221f7cbfe32ab --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/generated/validators.js" @@ -0,0 +1,5 @@ +"use strict"; + +var t = require("@babel/types"); + +var _index = require("../index"); \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/generated/virtual-types.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/generated/virtual-types.js" new file mode 100644 index 0000000000000000000000000000000000000000..bf37ed9378a22ca849aa3c1b563dfd18f16340da --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/generated/virtual-types.js" @@ -0,0 +1,3 @@ +"use strict"; + +var t = require("@babel/types"); \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..93602608eeecb8d7c7905340b2abda3879f838fe --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/index.js" @@ -0,0 +1,257 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = exports.SHOULD_STOP = exports.SHOULD_SKIP = exports.REMOVED = void 0; + +var virtualTypes = require("./lib/virtual-types"); + +var _debug = require("debug"); + +var _index = require("../index"); + +var _scope = require("../scope"); + +var _t = require("@babel/types"); + +var t = _t; + +var _cache = require("../cache"); + +var _generator = require("@babel/generator"); + +var NodePath_ancestry = require("./ancestry"); + +var NodePath_inference = require("./inference"); + +var NodePath_replacement = require("./replacement"); + +var NodePath_evaluation = require("./evaluation"); + +var NodePath_conversion = require("./conversion"); + +var NodePath_introspection = require("./introspection"); + +var NodePath_context = require("./context"); + +var NodePath_removal = require("./removal"); + +var NodePath_modification = require("./modification"); + +var NodePath_family = require("./family"); + +var NodePath_comments = require("./comments"); + +const { + validate +} = _t; + +const debug = _debug("babel"); + +const REMOVED = 1 << 0; +exports.REMOVED = REMOVED; +const SHOULD_STOP = 1 << 1; +exports.SHOULD_STOP = SHOULD_STOP; +const SHOULD_SKIP = 1 << 2; +exports.SHOULD_SKIP = SHOULD_SKIP; + +class NodePath { + constructor(hub, parent) { + this.contexts = []; + this.state = null; + this.opts = null; + this._traverseFlags = 0; + this.skipKeys = null; + this.parentPath = null; + this.container = null; + this.listKey = null; + this.key = null; + this.node = null; + this.type = null; + this.parent = parent; + this.hub = hub; + this.data = null; + this.context = null; + this.scope = null; + } + + static get({ + hub, + parentPath, + parent, + container, + listKey, + key + }) { + if (!hub && parentPath) { + hub = parentPath.hub; + } + + if (!parent) { + throw new Error("To get a node path the parent needs to exist"); + } + + const targetNode = container[key]; + + let paths = _cache.path.get(parent); + + if (!paths) { + paths = new Map(); + + _cache.path.set(parent, paths); + } + + let path = paths.get(targetNode); + + if (!path) { + path = new NodePath(hub, parent); + if (targetNode) paths.set(targetNode, path); + } + + path.setup(parentPath, container, listKey, key); + return path; + } + + getScope(scope) { + return this.isScope() ? new _scope.default(this) : scope; + } + + setData(key, val) { + if (this.data == null) { + this.data = Object.create(null); + } + + return this.data[key] = val; + } + + getData(key, def) { + if (this.data == null) { + this.data = Object.create(null); + } + + let val = this.data[key]; + if (val === undefined && def !== undefined) val = this.data[key] = def; + return val; + } + + hasNode() { + return this.node != null; + } + + buildCodeFrameError(msg, Error = SyntaxError) { + return this.hub.buildError(this.node, msg, Error); + } + + traverse(visitor, state) { + (0, _index.default)(this.node, visitor, this.scope, state, this); + } + + set(key, node) { + validate(this.node, key, node); + this.node[key] = node; + } + + getPathLocation() { + const parts = []; + let path = this; + + do { + let key = path.key; + if (path.inList) key = `${path.listKey}[${key}]`; + parts.unshift(key); + } while (path = path.parentPath); + + return parts.join("."); + } + + debug(message) { + if (!debug.enabled) return; + debug(`${this.getPathLocation()} ${this.type}: ${message}`); + } + + toString() { + return (0, _generator.default)(this.node).code; + } + + get inList() { + return !!this.listKey; + } + + set inList(inList) { + if (!inList) { + this.listKey = null; + } + } + + get parentKey() { + return this.listKey || this.key; + } + + get shouldSkip() { + return !!(this._traverseFlags & SHOULD_SKIP); + } + + set shouldSkip(v) { + if (v) { + this._traverseFlags |= SHOULD_SKIP; + } else { + this._traverseFlags &= ~SHOULD_SKIP; + } + } + + get shouldStop() { + return !!(this._traverseFlags & SHOULD_STOP); + } + + set shouldStop(v) { + if (v) { + this._traverseFlags |= SHOULD_STOP; + } else { + this._traverseFlags &= ~SHOULD_STOP; + } + } + + get removed() { + return !!(this._traverseFlags & REMOVED); + } + + set removed(v) { + if (v) { + this._traverseFlags |= REMOVED; + } else { + this._traverseFlags &= ~REMOVED; + } + } + +} + +Object.assign(NodePath.prototype, NodePath_ancestry, NodePath_inference, NodePath_replacement, NodePath_evaluation, NodePath_conversion, NodePath_introspection, NodePath_context, NodePath_removal, NodePath_modification, NodePath_family, NodePath_comments); + +for (const type of t.TYPES) { + const typeKey = `is${type}`; + const fn = t[typeKey]; + + NodePath.prototype[typeKey] = function (opts) { + return fn(this.node, opts); + }; + + NodePath.prototype[`assert${type}`] = function (opts) { + if (!fn(this.node, opts)) { + throw new TypeError(`Expected node path of type ${type}`); + } + }; +} + +for (const type of Object.keys(virtualTypes)) { + if (type[0] === "_") continue; + if (t.TYPES.indexOf(type) < 0) t.TYPES.push(type); + const virtualType = virtualTypes[type]; + + NodePath.prototype[`is${type}`] = function (opts) { + return virtualType.checkPath(this, opts); + }; +} + +var _default = NodePath; +exports.default = _default; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/inference/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/inference/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..f7fef255a1591fd9eb9b742930968f39b7b0c44e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/inference/index.js" @@ -0,0 +1,156 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports._getTypeAnnotation = _getTypeAnnotation; +exports.baseTypeStrictlyMatches = baseTypeStrictlyMatches; +exports.couldBeBaseType = couldBeBaseType; +exports.getTypeAnnotation = getTypeAnnotation; +exports.isBaseType = isBaseType; +exports.isGenericType = isGenericType; + +var inferers = require("./inferers"); + +var _t = require("@babel/types"); + +const { + anyTypeAnnotation, + isAnyTypeAnnotation, + isBooleanTypeAnnotation, + isEmptyTypeAnnotation, + isFlowBaseAnnotation, + isGenericTypeAnnotation, + isIdentifier, + isMixedTypeAnnotation, + isNumberTypeAnnotation, + isStringTypeAnnotation, + isTypeAnnotation, + isUnionTypeAnnotation, + isVoidTypeAnnotation, + stringTypeAnnotation, + voidTypeAnnotation +} = _t; + +function getTypeAnnotation() { + if (this.typeAnnotation) return this.typeAnnotation; + let type = this._getTypeAnnotation() || anyTypeAnnotation(); + if (isTypeAnnotation(type)) type = type.typeAnnotation; + return this.typeAnnotation = type; +} + +const typeAnnotationInferringNodes = new WeakSet(); + +function _getTypeAnnotation() { + const node = this.node; + + if (!node) { + if (this.key === "init" && this.parentPath.isVariableDeclarator()) { + const declar = this.parentPath.parentPath; + const declarParent = declar.parentPath; + + if (declar.key === "left" && declarParent.isForInStatement()) { + return stringTypeAnnotation(); + } + + if (declar.key === "left" && declarParent.isForOfStatement()) { + return anyTypeAnnotation(); + } + + return voidTypeAnnotation(); + } else { + return; + } + } + + if (node.typeAnnotation) { + return node.typeAnnotation; + } + + if (typeAnnotationInferringNodes.has(node)) { + return; + } + + typeAnnotationInferringNodes.add(node); + + try { + var _inferer; + + let inferer = inferers[node.type]; + + if (inferer) { + return inferer.call(this, node); + } + + inferer = inferers[this.parentPath.type]; + + if ((_inferer = inferer) != null && _inferer.validParent) { + return this.parentPath.getTypeAnnotation(); + } + } finally { + typeAnnotationInferringNodes.delete(node); + } +} + +function isBaseType(baseName, soft) { + return _isBaseType(baseName, this.getTypeAnnotation(), soft); +} + +function _isBaseType(baseName, type, soft) { + if (baseName === "string") { + return isStringTypeAnnotation(type); + } else if (baseName === "number") { + return isNumberTypeAnnotation(type); + } else if (baseName === "boolean") { + return isBooleanTypeAnnotation(type); + } else if (baseName === "any") { + return isAnyTypeAnnotation(type); + } else if (baseName === "mixed") { + return isMixedTypeAnnotation(type); + } else if (baseName === "empty") { + return isEmptyTypeAnnotation(type); + } else if (baseName === "void") { + return isVoidTypeAnnotation(type); + } else { + if (soft) { + return false; + } else { + throw new Error(`Unknown base type ${baseName}`); + } + } +} + +function couldBeBaseType(name) { + const type = this.getTypeAnnotation(); + if (isAnyTypeAnnotation(type)) return true; + + if (isUnionTypeAnnotation(type)) { + for (const type2 of type.types) { + if (isAnyTypeAnnotation(type2) || _isBaseType(name, type2, true)) { + return true; + } + } + + return false; + } else { + return _isBaseType(name, type, true); + } +} + +function baseTypeStrictlyMatches(rightArg) { + const left = this.getTypeAnnotation(); + const right = rightArg.getTypeAnnotation(); + + if (!isAnyTypeAnnotation(left) && isFlowBaseAnnotation(left)) { + return right.type === left.type; + } + + return false; +} + +function isGenericType(genericName) { + const type = this.getTypeAnnotation(); + return isGenericTypeAnnotation(type) && isIdentifier(type.id, { + name: genericName + }); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js" new file mode 100644 index 0000000000000000000000000000000000000000..c328dc150f425a9e48b697fc4d24d6364cc96ab5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/inference/inferer-reference.js" @@ -0,0 +1,206 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = _default; + +var _t = require("@babel/types"); + +const { + BOOLEAN_NUMBER_BINARY_OPERATORS, + createFlowUnionType, + createTSUnionType, + createTypeAnnotationBasedOnTypeof, + createUnionTypeAnnotation, + isTSTypeAnnotation, + numberTypeAnnotation, + voidTypeAnnotation +} = _t; + +function _default(node) { + if (!this.isReferenced()) return; + const binding = this.scope.getBinding(node.name); + + if (binding) { + if (binding.identifier.typeAnnotation) { + return binding.identifier.typeAnnotation; + } else { + return getTypeAnnotationBindingConstantViolations(binding, this, node.name); + } + } + + if (node.name === "undefined") { + return voidTypeAnnotation(); + } else if (node.name === "NaN" || node.name === "Infinity") { + return numberTypeAnnotation(); + } else if (node.name === "arguments") {} +} + +function getTypeAnnotationBindingConstantViolations(binding, path, name) { + const types = []; + const functionConstantViolations = []; + let constantViolations = getConstantViolationsBefore(binding, path, functionConstantViolations); + const testType = getConditionalAnnotation(binding, path, name); + + if (testType) { + const testConstantViolations = getConstantViolationsBefore(binding, testType.ifStatement); + constantViolations = constantViolations.filter(path => testConstantViolations.indexOf(path) < 0); + types.push(testType.typeAnnotation); + } + + if (constantViolations.length) { + constantViolations.push(...functionConstantViolations); + + for (const violation of constantViolations) { + types.push(violation.getTypeAnnotation()); + } + } + + if (!types.length) { + return; + } + + if (isTSTypeAnnotation(types[0]) && createTSUnionType) { + return createTSUnionType(types); + } + + if (createFlowUnionType) { + return createFlowUnionType(types); + } + + return createUnionTypeAnnotation(types); +} + +function getConstantViolationsBefore(binding, path, functions) { + const violations = binding.constantViolations.slice(); + violations.unshift(binding.path); + return violations.filter(violation => { + violation = violation.resolve(); + + const status = violation._guessExecutionStatusRelativeTo(path); + + if (functions && status === "unknown") functions.push(violation); + return status === "before"; + }); +} + +function inferAnnotationFromBinaryExpression(name, path) { + const operator = path.node.operator; + const right = path.get("right").resolve(); + const left = path.get("left").resolve(); + let target; + + if (left.isIdentifier({ + name + })) { + target = right; + } else if (right.isIdentifier({ + name + })) { + target = left; + } + + if (target) { + if (operator === "===") { + return target.getTypeAnnotation(); + } + + if (BOOLEAN_NUMBER_BINARY_OPERATORS.indexOf(operator) >= 0) { + return numberTypeAnnotation(); + } + + return; + } + + if (operator !== "===" && operator !== "==") return; + let typeofPath; + let typePath; + + if (left.isUnaryExpression({ + operator: "typeof" + })) { + typeofPath = left; + typePath = right; + } else if (right.isUnaryExpression({ + operator: "typeof" + })) { + typeofPath = right; + typePath = left; + } + + if (!typeofPath) return; + if (!typeofPath.get("argument").isIdentifier({ + name + })) return; + typePath = typePath.resolve(); + if (!typePath.isLiteral()) return; + const typeValue = typePath.node.value; + if (typeof typeValue !== "string") return; + return createTypeAnnotationBasedOnTypeof(typeValue); +} + +function getParentConditionalPath(binding, path, name) { + let parentPath; + + while (parentPath = path.parentPath) { + if (parentPath.isIfStatement() || parentPath.isConditionalExpression()) { + if (path.key === "test") { + return; + } + + return parentPath; + } + + if (parentPath.isFunction()) { + if (parentPath.parentPath.scope.getBinding(name) !== binding) return; + } + + path = parentPath; + } +} + +function getConditionalAnnotation(binding, path, name) { + const ifStatement = getParentConditionalPath(binding, path, name); + if (!ifStatement) return; + const test = ifStatement.get("test"); + const paths = [test]; + const types = []; + + for (let i = 0; i < paths.length; i++) { + const path = paths[i]; + + if (path.isLogicalExpression()) { + if (path.node.operator === "&&") { + paths.push(path.get("left")); + paths.push(path.get("right")); + } + } else if (path.isBinaryExpression()) { + const type = inferAnnotationFromBinaryExpression(name, path); + if (type) types.push(type); + } + } + + if (types.length) { + if (isTSTypeAnnotation(types[0]) && createTSUnionType) { + return { + typeAnnotation: createTSUnionType(types), + ifStatement + }; + } + + if (createFlowUnionType) { + return { + typeAnnotation: createFlowUnionType(types), + ifStatement + }; + } + + return { + typeAnnotation: createUnionTypeAnnotation(types), + ifStatement + }; + } + + return getConditionalAnnotation(ifStatement, name); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/inference/inferers.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/inference/inferers.js" new file mode 100644 index 0000000000000000000000000000000000000000..68180ac548bd2a59273e40d69495022443a0681a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/inference/inferers.js" @@ -0,0 +1,261 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.ArrayExpression = ArrayExpression; +exports.AssignmentExpression = AssignmentExpression; +exports.BinaryExpression = BinaryExpression; +exports.BooleanLiteral = BooleanLiteral; +exports.CallExpression = CallExpression; +exports.ConditionalExpression = ConditionalExpression; +exports.ClassDeclaration = exports.ClassExpression = exports.FunctionDeclaration = exports.ArrowFunctionExpression = exports.FunctionExpression = Func; +Object.defineProperty(exports, "Identifier", { + enumerable: true, + get: function () { + return _infererReference.default; + } +}); +exports.LogicalExpression = LogicalExpression; +exports.NewExpression = NewExpression; +exports.NullLiteral = NullLiteral; +exports.NumericLiteral = NumericLiteral; +exports.ObjectExpression = ObjectExpression; +exports.ParenthesizedExpression = ParenthesizedExpression; +exports.RegExpLiteral = RegExpLiteral; +exports.RestElement = RestElement; +exports.SequenceExpression = SequenceExpression; +exports.StringLiteral = StringLiteral; +exports.TaggedTemplateExpression = TaggedTemplateExpression; +exports.TemplateLiteral = TemplateLiteral; +exports.TypeCastExpression = TypeCastExpression; +exports.UnaryExpression = UnaryExpression; +exports.UpdateExpression = UpdateExpression; +exports.VariableDeclarator = VariableDeclarator; + +var _t = require("@babel/types"); + +var _infererReference = require("./inferer-reference"); + +const { + BOOLEAN_BINARY_OPERATORS, + BOOLEAN_UNARY_OPERATORS, + NUMBER_BINARY_OPERATORS, + NUMBER_UNARY_OPERATORS, + STRING_UNARY_OPERATORS, + anyTypeAnnotation, + arrayTypeAnnotation, + booleanTypeAnnotation, + buildMatchMemberExpression, + createFlowUnionType, + createTSUnionType, + createUnionTypeAnnotation, + genericTypeAnnotation, + identifier, + isTSTypeAnnotation, + nullLiteralTypeAnnotation, + numberTypeAnnotation, + stringTypeAnnotation, + tupleTypeAnnotation, + unionTypeAnnotation, + voidTypeAnnotation +} = _t; + +function VariableDeclarator() { + var _type; + + const id = this.get("id"); + if (!id.isIdentifier()) return; + const init = this.get("init"); + let type = init.getTypeAnnotation(); + + if (((_type = type) == null ? void 0 : _type.type) === "AnyTypeAnnotation") { + if (init.isCallExpression() && init.get("callee").isIdentifier({ + name: "Array" + }) && !init.scope.hasBinding("Array", true)) { + type = ArrayExpression(); + } + } + + return type; +} + +function TypeCastExpression(node) { + return node.typeAnnotation; +} + +TypeCastExpression.validParent = true; + +function NewExpression(node) { + if (this.get("callee").isIdentifier()) { + return genericTypeAnnotation(node.callee); + } +} + +function TemplateLiteral() { + return stringTypeAnnotation(); +} + +function UnaryExpression(node) { + const operator = node.operator; + + if (operator === "void") { + return voidTypeAnnotation(); + } else if (NUMBER_UNARY_OPERATORS.indexOf(operator) >= 0) { + return numberTypeAnnotation(); + } else if (STRING_UNARY_OPERATORS.indexOf(operator) >= 0) { + return stringTypeAnnotation(); + } else if (BOOLEAN_UNARY_OPERATORS.indexOf(operator) >= 0) { + return booleanTypeAnnotation(); + } +} + +function BinaryExpression(node) { + const operator = node.operator; + + if (NUMBER_BINARY_OPERATORS.indexOf(operator) >= 0) { + return numberTypeAnnotation(); + } else if (BOOLEAN_BINARY_OPERATORS.indexOf(operator) >= 0) { + return booleanTypeAnnotation(); + } else if (operator === "+") { + const right = this.get("right"); + const left = this.get("left"); + + if (left.isBaseType("number") && right.isBaseType("number")) { + return numberTypeAnnotation(); + } else if (left.isBaseType("string") || right.isBaseType("string")) { + return stringTypeAnnotation(); + } + + return unionTypeAnnotation([stringTypeAnnotation(), numberTypeAnnotation()]); + } +} + +function LogicalExpression() { + const argumentTypes = [this.get("left").getTypeAnnotation(), this.get("right").getTypeAnnotation()]; + + if (isTSTypeAnnotation(argumentTypes[0]) && createTSUnionType) { + return createTSUnionType(argumentTypes); + } + + if (createFlowUnionType) { + return createFlowUnionType(argumentTypes); + } + + return createUnionTypeAnnotation(argumentTypes); +} + +function ConditionalExpression() { + const argumentTypes = [this.get("consequent").getTypeAnnotation(), this.get("alternate").getTypeAnnotation()]; + + if (isTSTypeAnnotation(argumentTypes[0]) && createTSUnionType) { + return createTSUnionType(argumentTypes); + } + + if (createFlowUnionType) { + return createFlowUnionType(argumentTypes); + } + + return createUnionTypeAnnotation(argumentTypes); +} + +function SequenceExpression() { + return this.get("expressions").pop().getTypeAnnotation(); +} + +function ParenthesizedExpression() { + return this.get("expression").getTypeAnnotation(); +} + +function AssignmentExpression() { + return this.get("right").getTypeAnnotation(); +} + +function UpdateExpression(node) { + const operator = node.operator; + + if (operator === "++" || operator === "--") { + return numberTypeAnnotation(); + } +} + +function StringLiteral() { + return stringTypeAnnotation(); +} + +function NumericLiteral() { + return numberTypeAnnotation(); +} + +function BooleanLiteral() { + return booleanTypeAnnotation(); +} + +function NullLiteral() { + return nullLiteralTypeAnnotation(); +} + +function RegExpLiteral() { + return genericTypeAnnotation(identifier("RegExp")); +} + +function ObjectExpression() { + return genericTypeAnnotation(identifier("Object")); +} + +function ArrayExpression() { + return genericTypeAnnotation(identifier("Array")); +} + +function RestElement() { + return ArrayExpression(); +} + +RestElement.validParent = true; + +function Func() { + return genericTypeAnnotation(identifier("Function")); +} + +const isArrayFrom = buildMatchMemberExpression("Array.from"); +const isObjectKeys = buildMatchMemberExpression("Object.keys"); +const isObjectValues = buildMatchMemberExpression("Object.values"); +const isObjectEntries = buildMatchMemberExpression("Object.entries"); + +function CallExpression() { + const { + callee + } = this.node; + + if (isObjectKeys(callee)) { + return arrayTypeAnnotation(stringTypeAnnotation()); + } else if (isArrayFrom(callee) || isObjectValues(callee)) { + return arrayTypeAnnotation(anyTypeAnnotation()); + } else if (isObjectEntries(callee)) { + return arrayTypeAnnotation(tupleTypeAnnotation([stringTypeAnnotation(), anyTypeAnnotation()])); + } + + return resolveCall(this.get("callee")); +} + +function TaggedTemplateExpression() { + return resolveCall(this.get("tag")); +} + +function resolveCall(callee) { + callee = callee.resolve(); + + if (callee.isFunction()) { + if (callee.is("async")) { + if (callee.is("generator")) { + return genericTypeAnnotation(identifier("AsyncIterator")); + } else { + return genericTypeAnnotation(identifier("Promise")); + } + } else { + if (callee.node.returnType) { + return callee.node.returnType; + } else {} + } + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/introspection.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/introspection.js" new file mode 100644 index 0000000000000000000000000000000000000000..175ef2d7713c952a27078e33c5f2ec67f34e0dc1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/introspection.js" @@ -0,0 +1,436 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports._guessExecutionStatusRelativeTo = _guessExecutionStatusRelativeTo; +exports._guessExecutionStatusRelativeToDifferentFunctions = _guessExecutionStatusRelativeToDifferentFunctions; +exports._resolve = _resolve; +exports.canHaveVariableDeclarationOrExpression = canHaveVariableDeclarationOrExpression; +exports.canSwapBetweenExpressionAndStatement = canSwapBetweenExpressionAndStatement; +exports.equals = equals; +exports.getSource = getSource; +exports.has = has; +exports.is = void 0; +exports.isCompletionRecord = isCompletionRecord; +exports.isConstantExpression = isConstantExpression; +exports.isInStrictMode = isInStrictMode; +exports.isNodeType = isNodeType; +exports.isStatementOrBlock = isStatementOrBlock; +exports.isStatic = isStatic; +exports.isnt = isnt; +exports.matchesPattern = matchesPattern; +exports.referencesImport = referencesImport; +exports.resolve = resolve; +exports.willIMaybeExecuteBefore = willIMaybeExecuteBefore; + +var _t = require("@babel/types"); + +const { + STATEMENT_OR_BLOCK_KEYS, + VISITOR_KEYS, + isBlockStatement, + isExpression, + isIdentifier, + isLiteral, + isStringLiteral, + isType, + matchesPattern: _matchesPattern +} = _t; + +function matchesPattern(pattern, allowPartial) { + return _matchesPattern(this.node, pattern, allowPartial); +} + +function has(key) { + const val = this.node && this.node[key]; + + if (val && Array.isArray(val)) { + return !!val.length; + } else { + return !!val; + } +} + +function isStatic() { + return this.scope.isStatic(this.node); +} + +const is = has; +exports.is = is; + +function isnt(key) { + return !this.has(key); +} + +function equals(key, value) { + return this.node[key] === value; +} + +function isNodeType(type) { + return isType(this.type, type); +} + +function canHaveVariableDeclarationOrExpression() { + return (this.key === "init" || this.key === "left") && this.parentPath.isFor(); +} + +function canSwapBetweenExpressionAndStatement(replacement) { + if (this.key !== "body" || !this.parentPath.isArrowFunctionExpression()) { + return false; + } + + if (this.isExpression()) { + return isBlockStatement(replacement); + } else if (this.isBlockStatement()) { + return isExpression(replacement); + } + + return false; +} + +function isCompletionRecord(allowInsideFunction) { + let path = this; + let first = true; + + do { + const container = path.container; + + if (path.isFunction() && !first) { + return !!allowInsideFunction; + } + + first = false; + + if (Array.isArray(container) && path.key !== container.length - 1) { + return false; + } + } while ((path = path.parentPath) && !path.isProgram()); + + return true; +} + +function isStatementOrBlock() { + if (this.parentPath.isLabeledStatement() || isBlockStatement(this.container)) { + return false; + } else { + return STATEMENT_OR_BLOCK_KEYS.includes(this.key); + } +} + +function referencesImport(moduleSource, importName) { + if (!this.isReferencedIdentifier()) { + if (this.isJSXMemberExpression() && this.node.property.name === importName || (this.isMemberExpression() || this.isOptionalMemberExpression()) && (this.node.computed ? isStringLiteral(this.node.property, { + value: importName + }) : this.node.property.name === importName)) { + const object = this.get("object"); + return object.isReferencedIdentifier() && object.referencesImport(moduleSource, "*"); + } + + return false; + } + + const binding = this.scope.getBinding(this.node.name); + if (!binding || binding.kind !== "module") return false; + const path = binding.path; + const parent = path.parentPath; + if (!parent.isImportDeclaration()) return false; + + if (parent.node.source.value === moduleSource) { + if (!importName) return true; + } else { + return false; + } + + if (path.isImportDefaultSpecifier() && importName === "default") { + return true; + } + + if (path.isImportNamespaceSpecifier() && importName === "*") { + return true; + } + + if (path.isImportSpecifier() && isIdentifier(path.node.imported, { + name: importName + })) { + return true; + } + + return false; +} + +function getSource() { + const node = this.node; + + if (node.end) { + const code = this.hub.getCode(); + if (code) return code.slice(node.start, node.end); + } + + return ""; +} + +function willIMaybeExecuteBefore(target) { + return this._guessExecutionStatusRelativeTo(target) !== "after"; +} + +function getOuterFunction(path) { + return (path.scope.getFunctionParent() || path.scope.getProgramParent()).path; +} + +function isExecutionUncertain(type, key) { + switch (type) { + case "LogicalExpression": + return key === "right"; + + case "ConditionalExpression": + case "IfStatement": + return key === "consequent" || key === "alternate"; + + case "WhileStatement": + case "DoWhileStatement": + case "ForInStatement": + case "ForOfStatement": + return key === "body"; + + case "ForStatement": + return key === "body" || key === "update"; + + case "SwitchStatement": + return key === "cases"; + + case "TryStatement": + return key === "handler"; + + case "AssignmentPattern": + return key === "right"; + + case "OptionalMemberExpression": + return key === "property"; + + case "OptionalCallExpression": + return key === "arguments"; + + default: + return false; + } +} + +function isExecutionUncertainInList(paths, maxIndex) { + for (let i = 0; i < maxIndex; i++) { + const path = paths[i]; + + if (isExecutionUncertain(path.parent.type, path.parentKey)) { + return true; + } + } + + return false; +} + +function _guessExecutionStatusRelativeTo(target) { + const funcParent = { + this: getOuterFunction(this), + target: getOuterFunction(target) + }; + + if (funcParent.target.node !== funcParent.this.node) { + return this._guessExecutionStatusRelativeToDifferentFunctions(funcParent.target); + } + + const paths = { + target: target.getAncestry(), + this: this.getAncestry() + }; + if (paths.target.indexOf(this) >= 0) return "after"; + if (paths.this.indexOf(target) >= 0) return "before"; + let commonPath; + const commonIndex = { + target: 0, + this: 0 + }; + + while (!commonPath && commonIndex.this < paths.this.length) { + const path = paths.this[commonIndex.this]; + commonIndex.target = paths.target.indexOf(path); + + if (commonIndex.target >= 0) { + commonPath = path; + } else { + commonIndex.this++; + } + } + + if (!commonPath) { + throw new Error("Internal Babel error - The two compared nodes" + " don't appear to belong to the same program."); + } + + if (isExecutionUncertainInList(paths.this, commonIndex.this - 1) || isExecutionUncertainInList(paths.target, commonIndex.target - 1)) { + return "unknown"; + } + + const divergence = { + this: paths.this[commonIndex.this - 1], + target: paths.target[commonIndex.target - 1] + }; + + if (divergence.target.listKey && divergence.this.listKey && divergence.target.container === divergence.this.container) { + return divergence.target.key > divergence.this.key ? "before" : "after"; + } + + const keys = VISITOR_KEYS[commonPath.type]; + const keyPosition = { + this: keys.indexOf(divergence.this.parentKey), + target: keys.indexOf(divergence.target.parentKey) + }; + return keyPosition.target > keyPosition.this ? "before" : "after"; +} + +const executionOrderCheckedNodes = new WeakSet(); + +function _guessExecutionStatusRelativeToDifferentFunctions(target) { + if (!target.isFunctionDeclaration() || target.parentPath.isExportDeclaration()) { + return "unknown"; + } + + const binding = target.scope.getBinding(target.node.id.name); + if (!binding.references) return "before"; + const referencePaths = binding.referencePaths; + let allStatus; + + for (const path of referencePaths) { + const childOfFunction = !!path.find(path => path.node === target.node); + if (childOfFunction) continue; + + if (path.key !== "callee" || !path.parentPath.isCallExpression()) { + return "unknown"; + } + + if (executionOrderCheckedNodes.has(path.node)) continue; + executionOrderCheckedNodes.add(path.node); + + const status = this._guessExecutionStatusRelativeTo(path); + + executionOrderCheckedNodes.delete(path.node); + + if (allStatus && allStatus !== status) { + return "unknown"; + } else { + allStatus = status; + } + } + + return allStatus; +} + +function resolve(dangerous, resolved) { + return this._resolve(dangerous, resolved) || this; +} + +function _resolve(dangerous, resolved) { + if (resolved && resolved.indexOf(this) >= 0) return; + resolved = resolved || []; + resolved.push(this); + + if (this.isVariableDeclarator()) { + if (this.get("id").isIdentifier()) { + return this.get("init").resolve(dangerous, resolved); + } else {} + } else if (this.isReferencedIdentifier()) { + const binding = this.scope.getBinding(this.node.name); + if (!binding) return; + if (!binding.constant) return; + if (binding.kind === "module") return; + + if (binding.path !== this) { + const ret = binding.path.resolve(dangerous, resolved); + if (this.find(parent => parent.node === ret.node)) return; + return ret; + } + } else if (this.isTypeCastExpression()) { + return this.get("expression").resolve(dangerous, resolved); + } else if (dangerous && this.isMemberExpression()) { + const targetKey = this.toComputedKey(); + if (!isLiteral(targetKey)) return; + const targetName = targetKey.value; + const target = this.get("object").resolve(dangerous, resolved); + + if (target.isObjectExpression()) { + const props = target.get("properties"); + + for (const prop of props) { + if (!prop.isProperty()) continue; + const key = prop.get("key"); + let match = prop.isnt("computed") && key.isIdentifier({ + name: targetName + }); + match = match || key.isLiteral({ + value: targetName + }); + if (match) return prop.get("value").resolve(dangerous, resolved); + } + } else if (target.isArrayExpression() && !isNaN(+targetName)) { + const elems = target.get("elements"); + const elem = elems[targetName]; + if (elem) return elem.resolve(dangerous, resolved); + } + } +} + +function isConstantExpression() { + if (this.isIdentifier()) { + const binding = this.scope.getBinding(this.node.name); + if (!binding) return false; + return binding.constant; + } + + if (this.isLiteral()) { + if (this.isRegExpLiteral()) { + return false; + } + + if (this.isTemplateLiteral()) { + return this.get("expressions").every(expression => expression.isConstantExpression()); + } + + return true; + } + + if (this.isUnaryExpression()) { + if (this.node.operator !== "void") { + return false; + } + + return this.get("argument").isConstantExpression(); + } + + if (this.isBinaryExpression()) { + return this.get("left").isConstantExpression() && this.get("right").isConstantExpression(); + } + + return false; +} + +function isInStrictMode() { + const start = this.isProgram() ? this : this.parentPath; + const strictParent = start.find(path => { + if (path.isProgram({ + sourceType: "module" + })) return true; + if (path.isClass()) return true; + if (!path.isProgram() && !path.isFunction()) return false; + + if (path.isArrowFunctionExpression() && !path.get("body").isBlockStatement()) { + return false; + } + + const body = path.isFunction() ? path.node.body : path.node; + + for (const directive of body.directives) { + if (directive.value.value === "use strict") { + return true; + } + } + }); + return !!strictParent; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/lib/hoister.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/lib/hoister.js" new file mode 100644 index 0000000000000000000000000000000000000000..536a3409741b9773fd8cd745b331fb60221b0243 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/lib/hoister.js" @@ -0,0 +1,206 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _t = require("@babel/types"); + +var _t2 = _t; +const { + react +} = _t; +const { + cloneNode, + jsxExpressionContainer, + variableDeclaration, + variableDeclarator +} = _t2; +const referenceVisitor = { + ReferencedIdentifier(path, state) { + if (path.isJSXIdentifier() && react.isCompatTag(path.node.name) && !path.parentPath.isJSXMemberExpression()) { + return; + } + + if (path.node.name === "this") { + let scope = path.scope; + + do { + if (scope.path.isFunction() && !scope.path.isArrowFunctionExpression()) { + break; + } + } while (scope = scope.parent); + + if (scope) state.breakOnScopePaths.push(scope.path); + } + + const binding = path.scope.getBinding(path.node.name); + if (!binding) return; + + for (const violation of binding.constantViolations) { + if (violation.scope !== binding.path.scope) { + state.mutableBinding = true; + path.stop(); + return; + } + } + + if (binding !== state.scope.getBinding(path.node.name)) return; + state.bindings[path.node.name] = binding; + } + +}; + +class PathHoister { + constructor(path, scope) { + this.breakOnScopePaths = void 0; + this.bindings = void 0; + this.mutableBinding = void 0; + this.scopes = void 0; + this.scope = void 0; + this.path = void 0; + this.attachAfter = void 0; + this.breakOnScopePaths = []; + this.bindings = {}; + this.mutableBinding = false; + this.scopes = []; + this.scope = scope; + this.path = path; + this.attachAfter = false; + } + + isCompatibleScope(scope) { + for (const key of Object.keys(this.bindings)) { + const binding = this.bindings[key]; + + if (!scope.bindingIdentifierEquals(key, binding.identifier)) { + return false; + } + } + + return true; + } + + getCompatibleScopes() { + let scope = this.path.scope; + + do { + if (this.isCompatibleScope(scope)) { + this.scopes.push(scope); + } else { + break; + } + + if (this.breakOnScopePaths.indexOf(scope.path) >= 0) { + break; + } + } while (scope = scope.parent); + } + + getAttachmentPath() { + let path = this._getAttachmentPath(); + + if (!path) return; + let targetScope = path.scope; + + if (targetScope.path === path) { + targetScope = path.scope.parent; + } + + if (targetScope.path.isProgram() || targetScope.path.isFunction()) { + for (const name of Object.keys(this.bindings)) { + if (!targetScope.hasOwnBinding(name)) continue; + const binding = this.bindings[name]; + + if (binding.kind === "param" || binding.path.parentKey === "params") { + continue; + } + + const bindingParentPath = this.getAttachmentParentForPath(binding.path); + + if (bindingParentPath.key >= path.key) { + this.attachAfter = true; + path = binding.path; + + for (const violationPath of binding.constantViolations) { + if (this.getAttachmentParentForPath(violationPath).key > path.key) { + path = violationPath; + } + } + } + } + } + + return path; + } + + _getAttachmentPath() { + const scopes = this.scopes; + const scope = scopes.pop(); + if (!scope) return; + + if (scope.path.isFunction()) { + if (this.hasOwnParamBindings(scope)) { + if (this.scope === scope) return; + const bodies = scope.path.get("body").get("body"); + + for (let i = 0; i < bodies.length; i++) { + if (bodies[i].node._blockHoist) continue; + return bodies[i]; + } + } else { + return this.getNextScopeAttachmentParent(); + } + } else if (scope.path.isProgram()) { + return this.getNextScopeAttachmentParent(); + } + } + + getNextScopeAttachmentParent() { + const scope = this.scopes.pop(); + if (scope) return this.getAttachmentParentForPath(scope.path); + } + + getAttachmentParentForPath(path) { + do { + if (!path.parentPath || Array.isArray(path.container) && path.isStatement()) { + return path; + } + } while (path = path.parentPath); + } + + hasOwnParamBindings(scope) { + for (const name of Object.keys(this.bindings)) { + if (!scope.hasOwnBinding(name)) continue; + const binding = this.bindings[name]; + if (binding.kind === "param" && binding.constant) return true; + } + + return false; + } + + run() { + this.path.traverse(referenceVisitor, this); + if (this.mutableBinding) return; + this.getCompatibleScopes(); + const attachTo = this.getAttachmentPath(); + if (!attachTo) return; + if (attachTo.getFunctionParent() === this.path.getFunctionParent()) return; + let uid = attachTo.scope.generateUidIdentifier("ref"); + const declarator = variableDeclarator(uid, this.path.node); + const insertFn = this.attachAfter ? "insertAfter" : "insertBefore"; + const [attached] = attachTo[insertFn]([attachTo.isVariableDeclarator() ? declarator : variableDeclaration("var", [declarator])]); + const parent = this.path.parentPath; + + if (parent.isJSXElement() && this.path.container === parent.node.children) { + uid = jsxExpressionContainer(uid); + } + + this.path.replaceWith(cloneNode(uid)); + return attachTo.isVariableDeclarator() ? attached.get("init") : attached.get("declarations.0.init"); + } + +} + +exports.default = PathHoister; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js" new file mode 100644 index 0000000000000000000000000000000000000000..23ec8fe6d7eb8f505edc65b46ec4225ca8c50390 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/lib/removal-hooks.js" @@ -0,0 +1,38 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.hooks = void 0; +const hooks = [function (self, parent) { + const removeParent = self.key === "test" && (parent.isWhile() || parent.isSwitchCase()) || self.key === "declaration" && parent.isExportDeclaration() || self.key === "body" && parent.isLabeledStatement() || self.listKey === "declarations" && parent.isVariableDeclaration() && parent.node.declarations.length === 1 || self.key === "expression" && parent.isExpressionStatement(); + + if (removeParent) { + parent.remove(); + return true; + } +}, function (self, parent) { + if (parent.isSequenceExpression() && parent.node.expressions.length === 1) { + parent.replaceWith(parent.node.expressions[0]); + return true; + } +}, function (self, parent) { + if (parent.isBinary()) { + if (self.key === "left") { + parent.replaceWith(parent.node.right); + } else { + parent.replaceWith(parent.node.left); + } + + return true; + } +}, function (self, parent) { + if (parent.isIfStatement() && (self.key === "consequent" || self.key === "alternate") || self.key === "body" && (parent.isLoop() || parent.isArrowFunctionExpression())) { + self.replaceWith({ + type: "BlockStatement", + body: [] + }); + return true; + } +}]; +exports.hooks = hooks; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/lib/virtual-types.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/lib/virtual-types.js" new file mode 100644 index 0000000000000000000000000000000000000000..871cb249d37b31638968bfee960998d2d1c40865 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/lib/virtual-types.js" @@ -0,0 +1,230 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.Var = exports.User = exports.Statement = exports.SpreadProperty = exports.Scope = exports.RestProperty = exports.ReferencedMemberExpression = exports.ReferencedIdentifier = exports.Referenced = exports.Pure = exports.NumericLiteralTypeAnnotation = exports.Generated = exports.ForAwaitStatement = exports.Flow = exports.Expression = exports.ExistentialTypeParam = exports.BlockScoped = exports.BindingIdentifier = void 0; + +var _t = require("@babel/types"); + +const { + isBinding, + isBlockScoped, + isExportDeclaration, + isExpression, + isFlow, + isForStatement, + isForXStatement, + isIdentifier, + isImportDeclaration, + isImportSpecifier, + isJSXIdentifier, + isJSXMemberExpression, + isMemberExpression, + isReferenced, + isScope, + isStatement, + isVar, + isVariableDeclaration, + react +} = _t; +const { + isCompatTag +} = react; +const ReferencedIdentifier = { + types: ["Identifier", "JSXIdentifier"], + + checkPath(path, opts) { + const { + node, + parent + } = path; + + if (!isIdentifier(node, opts) && !isJSXMemberExpression(parent, opts)) { + if (isJSXIdentifier(node, opts)) { + if (isCompatTag(node.name)) return false; + } else { + return false; + } + } + + return isReferenced(node, parent, path.parentPath.parent); + } + +}; +exports.ReferencedIdentifier = ReferencedIdentifier; +const ReferencedMemberExpression = { + types: ["MemberExpression"], + + checkPath({ + node, + parent + }) { + return isMemberExpression(node) && isReferenced(node, parent); + } + +}; +exports.ReferencedMemberExpression = ReferencedMemberExpression; +const BindingIdentifier = { + types: ["Identifier"], + + checkPath(path) { + const { + node, + parent + } = path; + const grandparent = path.parentPath.parent; + return isIdentifier(node) && isBinding(node, parent, grandparent); + } + +}; +exports.BindingIdentifier = BindingIdentifier; +const Statement = { + types: ["Statement"], + + checkPath({ + node, + parent + }) { + if (isStatement(node)) { + if (isVariableDeclaration(node)) { + if (isForXStatement(parent, { + left: node + })) return false; + if (isForStatement(parent, { + init: node + })) return false; + } + + return true; + } else { + return false; + } + } + +}; +exports.Statement = Statement; +const Expression = { + types: ["Expression"], + + checkPath(path) { + if (path.isIdentifier()) { + return path.isReferencedIdentifier(); + } else { + return isExpression(path.node); + } + } + +}; +exports.Expression = Expression; +const Scope = { + types: ["Scopable", "Pattern"], + + checkPath(path) { + return isScope(path.node, path.parent); + } + +}; +exports.Scope = Scope; +const Referenced = { + checkPath(path) { + return isReferenced(path.node, path.parent); + } + +}; +exports.Referenced = Referenced; +const BlockScoped = { + checkPath(path) { + return isBlockScoped(path.node); + } + +}; +exports.BlockScoped = BlockScoped; +const Var = { + types: ["VariableDeclaration"], + + checkPath(path) { + return isVar(path.node); + } + +}; +exports.Var = Var; +const User = { + checkPath(path) { + return path.node && !!path.node.loc; + } + +}; +exports.User = User; +const Generated = { + checkPath(path) { + return !path.isUser(); + } + +}; +exports.Generated = Generated; +const Pure = { + checkPath(path, opts) { + return path.scope.isPure(path.node, opts); + } + +}; +exports.Pure = Pure; +const Flow = { + types: ["Flow", "ImportDeclaration", "ExportDeclaration", "ImportSpecifier"], + + checkPath({ + node + }) { + if (isFlow(node)) { + return true; + } else if (isImportDeclaration(node)) { + return node.importKind === "type" || node.importKind === "typeof"; + } else if (isExportDeclaration(node)) { + return node.exportKind === "type"; + } else if (isImportSpecifier(node)) { + return node.importKind === "type" || node.importKind === "typeof"; + } else { + return false; + } + } + +}; +exports.Flow = Flow; +const RestProperty = { + types: ["RestElement"], + + checkPath(path) { + return path.parentPath && path.parentPath.isObjectPattern(); + } + +}; +exports.RestProperty = RestProperty; +const SpreadProperty = { + types: ["RestElement"], + + checkPath(path) { + return path.parentPath && path.parentPath.isObjectExpression(); + } + +}; +exports.SpreadProperty = SpreadProperty; +const ExistentialTypeParam = { + types: ["ExistsTypeAnnotation"] +}; +exports.ExistentialTypeParam = ExistentialTypeParam; +const NumericLiteralTypeAnnotation = { + types: ["NumberLiteralTypeAnnotation"] +}; +exports.NumericLiteralTypeAnnotation = NumericLiteralTypeAnnotation; +const ForAwaitStatement = { + types: ["ForOfStatement"], + + checkPath({ + node + }) { + return node.await === true; + } + +}; +exports.ForAwaitStatement = ForAwaitStatement; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/modification.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/modification.js" new file mode 100644 index 0000000000000000000000000000000000000000..c5de87b1c3c939eff726f1adf4c1d5a02d309d36 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/modification.js" @@ -0,0 +1,269 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports._containerInsert = _containerInsert; +exports._containerInsertAfter = _containerInsertAfter; +exports._containerInsertBefore = _containerInsertBefore; +exports._verifyNodeList = _verifyNodeList; +exports.hoist = hoist; +exports.insertAfter = insertAfter; +exports.insertBefore = insertBefore; +exports.pushContainer = pushContainer; +exports.unshiftContainer = unshiftContainer; +exports.updateSiblingKeys = updateSiblingKeys; + +var _cache = require("../cache"); + +var _hoister = require("./lib/hoister"); + +var _index = require("./index"); + +var _t = require("@babel/types"); + +const { + arrowFunctionExpression, + assertExpression, + assignmentExpression, + blockStatement, + callExpression, + cloneNode, + expressionStatement, + isAssignmentExpression, + isCallExpression, + isExpression, + isIdentifier, + isSequenceExpression, + isSuper, + thisExpression +} = _t; + +function insertBefore(nodes_) { + this._assertUnremoved(); + + const nodes = this._verifyNodeList(nodes_); + + const { + parentPath + } = this; + + if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || parentPath.isExportNamedDeclaration() || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) { + return parentPath.insertBefore(nodes); + } else if (this.isNodeType("Expression") && !this.isJSXElement() || parentPath.isForStatement() && this.key === "init") { + if (this.node) nodes.push(this.node); + return this.replaceExpressionWithStatements(nodes); + } else if (Array.isArray(this.container)) { + return this._containerInsertBefore(nodes); + } else if (this.isStatementOrBlock()) { + const node = this.node; + const shouldInsertCurrentNode = node && (!this.isExpressionStatement() || node.expression != null); + this.replaceWith(blockStatement(shouldInsertCurrentNode ? [node] : [])); + return this.unshiftContainer("body", nodes); + } else { + throw new Error("We don't know what to do with this node type. " + "We were previously a Statement but we can't fit in here?"); + } +} + +function _containerInsert(from, nodes) { + this.updateSiblingKeys(from, nodes.length); + const paths = []; + this.container.splice(from, 0, ...nodes); + + for (let i = 0; i < nodes.length; i++) { + const to = from + i; + const path = this.getSibling(to); + paths.push(path); + + if (this.context && this.context.queue) { + path.pushContext(this.context); + } + } + + const contexts = this._getQueueContexts(); + + for (const path of paths) { + path.setScope(); + path.debug("Inserted."); + + for (const context of contexts) { + context.maybeQueue(path, true); + } + } + + return paths; +} + +function _containerInsertBefore(nodes) { + return this._containerInsert(this.key, nodes); +} + +function _containerInsertAfter(nodes) { + return this._containerInsert(this.key + 1, nodes); +} + +const last = arr => arr[arr.length - 1]; + +function isHiddenInSequenceExpression(path) { + return isSequenceExpression(path.parent) && (last(path.parent.expressions) !== path.node || isHiddenInSequenceExpression(path.parentPath)); +} + +function isAlmostConstantAssignment(node, scope) { + if (!isAssignmentExpression(node) || !isIdentifier(node.left)) { + return false; + } + + const blockScope = scope.getBlockParent(); + return blockScope.hasOwnBinding(node.left.name) && blockScope.getOwnBinding(node.left.name).constantViolations.length <= 1; +} + +function insertAfter(nodes_) { + this._assertUnremoved(); + + if (this.isSequenceExpression()) { + return last(this.get("expressions")).insertAfter(nodes_); + } + + const nodes = this._verifyNodeList(nodes_); + + const { + parentPath + } = this; + + if (parentPath.isExpressionStatement() || parentPath.isLabeledStatement() || parentPath.isExportNamedDeclaration() || parentPath.isExportDefaultDeclaration() && this.isDeclaration()) { + return parentPath.insertAfter(nodes.map(node => { + return isExpression(node) ? expressionStatement(node) : node; + })); + } else if (this.isNodeType("Expression") && !this.isJSXElement() && !parentPath.isJSXElement() || parentPath.isForStatement() && this.key === "init") { + if (this.node) { + const node = this.node; + let { + scope + } = this; + + if (scope.path.isPattern()) { + assertExpression(node); + this.replaceWith(callExpression(arrowFunctionExpression([], node), [])); + this.get("callee.body").insertAfter(nodes); + return [this]; + } + + if (isHiddenInSequenceExpression(this)) { + nodes.unshift(node); + } else if (isCallExpression(node) && isSuper(node.callee)) { + nodes.unshift(node); + nodes.push(thisExpression()); + } else if (isAlmostConstantAssignment(node, scope)) { + nodes.unshift(node); + nodes.push(cloneNode(node.left)); + } else if (scope.isPure(node, true)) { + nodes.push(node); + } else { + if (parentPath.isMethod({ + computed: true, + key: node + })) { + scope = scope.parent; + } + + const temp = scope.generateDeclaredUidIdentifier(); + nodes.unshift(expressionStatement(assignmentExpression("=", cloneNode(temp), node))); + nodes.push(expressionStatement(cloneNode(temp))); + } + } + + return this.replaceExpressionWithStatements(nodes); + } else if (Array.isArray(this.container)) { + return this._containerInsertAfter(nodes); + } else if (this.isStatementOrBlock()) { + const node = this.node; + const shouldInsertCurrentNode = node && (!this.isExpressionStatement() || node.expression != null); + this.replaceWith(blockStatement(shouldInsertCurrentNode ? [node] : [])); + return this.pushContainer("body", nodes); + } else { + throw new Error("We don't know what to do with this node type. " + "We were previously a Statement but we can't fit in here?"); + } +} + +function updateSiblingKeys(fromIndex, incrementBy) { + if (!this.parent) return; + + const paths = _cache.path.get(this.parent); + + for (const [, path] of paths) { + if (path.key >= fromIndex) { + path.key += incrementBy; + } + } +} + +function _verifyNodeList(nodes) { + if (!nodes) { + return []; + } + + if (!Array.isArray(nodes)) { + nodes = [nodes]; + } + + for (let i = 0; i < nodes.length; i++) { + const node = nodes[i]; + let msg; + + if (!node) { + msg = "has falsy node"; + } else if (typeof node !== "object") { + msg = "contains a non-object node"; + } else if (!node.type) { + msg = "without a type"; + } else if (node instanceof _index.default) { + msg = "has a NodePath when it expected a raw object"; + } + + if (msg) { + const type = Array.isArray(node) ? "array" : typeof node; + throw new Error(`Node list ${msg} with the index of ${i} and type of ${type}`); + } + } + + return nodes; +} + +function unshiftContainer(listKey, nodes) { + this._assertUnremoved(); + + nodes = this._verifyNodeList(nodes); + + const path = _index.default.get({ + parentPath: this, + parent: this.node, + container: this.node[listKey], + listKey, + key: 0 + }).setContext(this.context); + + return path._containerInsertBefore(nodes); +} + +function pushContainer(listKey, nodes) { + this._assertUnremoved(); + + const verifiedNodes = this._verifyNodeList(nodes); + + const container = this.node[listKey]; + + const path = _index.default.get({ + parentPath: this, + parent: this.node, + container: container, + listKey, + key: container.length + }).setContext(this.context); + + return path.replaceWithMultiple(verifiedNodes); +} + +function hoist(scope = this.scope) { + const hoister = new _hoister.default(this, scope); + return hoister.run(); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/removal.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/removal.js" new file mode 100644 index 0000000000000000000000000000000000000000..3e5d4fff094537233ce2a27e598811a2a2bc9738 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/removal.js" @@ -0,0 +1,73 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports._assertUnremoved = _assertUnremoved; +exports._callRemovalHooks = _callRemovalHooks; +exports._markRemoved = _markRemoved; +exports._remove = _remove; +exports._removeFromScope = _removeFromScope; +exports.remove = remove; + +var _removalHooks = require("./lib/removal-hooks"); + +var _cache = require("../cache"); + +var _index = require("./index"); + +function remove() { + var _this$opts; + + this._assertUnremoved(); + + this.resync(); + + if (!((_this$opts = this.opts) != null && _this$opts.noScope)) { + this._removeFromScope(); + } + + if (this._callRemovalHooks()) { + this._markRemoved(); + + return; + } + + this.shareCommentsWithSiblings(); + + this._remove(); + + this._markRemoved(); +} + +function _removeFromScope() { + const bindings = this.getBindingIdentifiers(); + Object.keys(bindings).forEach(name => this.scope.removeBinding(name)); +} + +function _callRemovalHooks() { + for (const fn of _removalHooks.hooks) { + if (fn(this, this.parentPath)) return true; + } +} + +function _remove() { + if (Array.isArray(this.container)) { + this.container.splice(this.key, 1); + this.updateSiblingKeys(this.key, -1); + } else { + this._replaceWith(null); + } +} + +function _markRemoved() { + this._traverseFlags |= _index.SHOULD_SKIP | _index.REMOVED; + if (this.parent) _cache.path.get(this.parent).delete(this.node); + this.node = null; +} + +function _assertUnremoved() { + if (this.removed) { + throw this.buildCodeFrameError("NodePath has been removed so is read-only."); + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/replacement.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/replacement.js" new file mode 100644 index 0000000000000000000000000000000000000000..ee5cdce8e196058ab8ec901f016d47754d8a4ed8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/path/replacement.js" @@ -0,0 +1,260 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports._replaceWith = _replaceWith; +exports.replaceExpressionWithStatements = replaceExpressionWithStatements; +exports.replaceInline = replaceInline; +exports.replaceWith = replaceWith; +exports.replaceWithMultiple = replaceWithMultiple; +exports.replaceWithSourceString = replaceWithSourceString; + +var _codeFrame = require("@babel/code-frame"); + +var _index = require("../index"); + +var _index2 = require("./index"); + +var _cache = require("../cache"); + +var _parser = require("@babel/parser"); + +var _t = require("@babel/types"); + +var _helperHoistVariables = require("@babel/helper-hoist-variables"); + +const { + FUNCTION_TYPES, + arrowFunctionExpression, + assignmentExpression, + awaitExpression, + blockStatement, + callExpression, + cloneNode, + expressionStatement, + identifier, + inheritLeadingComments, + inheritTrailingComments, + inheritsComments, + isExpression, + isProgram, + isStatement, + removeComments, + returnStatement, + toSequenceExpression, + validate, + yieldExpression +} = _t; + +function replaceWithMultiple(nodes) { + var _pathCache$get; + + this.resync(); + nodes = this._verifyNodeList(nodes); + inheritLeadingComments(nodes[0], this.node); + inheritTrailingComments(nodes[nodes.length - 1], this.node); + (_pathCache$get = _cache.path.get(this.parent)) == null ? void 0 : _pathCache$get.delete(this.node); + this.node = this.container[this.key] = null; + const paths = this.insertAfter(nodes); + + if (this.node) { + this.requeue(); + } else { + this.remove(); + } + + return paths; +} + +function replaceWithSourceString(replacement) { + this.resync(); + + try { + replacement = `(${replacement})`; + replacement = (0, _parser.parse)(replacement); + } catch (err) { + const loc = err.loc; + + if (loc) { + err.message += " - make sure this is an expression.\n" + (0, _codeFrame.codeFrameColumns)(replacement, { + start: { + line: loc.line, + column: loc.column + 1 + } + }); + err.code = "BABEL_REPLACE_SOURCE_ERROR"; + } + + throw err; + } + + replacement = replacement.program.body[0].expression; + + _index.default.removeProperties(replacement); + + return this.replaceWith(replacement); +} + +function replaceWith(replacement) { + this.resync(); + + if (this.removed) { + throw new Error("You can't replace this node, we've already removed it"); + } + + if (replacement instanceof _index2.default) { + replacement = replacement.node; + } + + if (!replacement) { + throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead"); + } + + if (this.node === replacement) { + return [this]; + } + + if (this.isProgram() && !isProgram(replacement)) { + throw new Error("You can only replace a Program root node with another Program node"); + } + + if (Array.isArray(replacement)) { + throw new Error("Don't use `path.replaceWith()` with an array of nodes, use `path.replaceWithMultiple()`"); + } + + if (typeof replacement === "string") { + throw new Error("Don't use `path.replaceWith()` with a source string, use `path.replaceWithSourceString()`"); + } + + let nodePath = ""; + + if (this.isNodeType("Statement") && isExpression(replacement)) { + if (!this.canHaveVariableDeclarationOrExpression() && !this.canSwapBetweenExpressionAndStatement(replacement) && !this.parentPath.isExportDefaultDeclaration()) { + replacement = expressionStatement(replacement); + nodePath = "expression"; + } + } + + if (this.isNodeType("Expression") && isStatement(replacement)) { + if (!this.canHaveVariableDeclarationOrExpression() && !this.canSwapBetweenExpressionAndStatement(replacement)) { + return this.replaceExpressionWithStatements([replacement]); + } + } + + const oldNode = this.node; + + if (oldNode) { + inheritsComments(replacement, oldNode); + removeComments(oldNode); + } + + this._replaceWith(replacement); + + this.type = replacement.type; + this.setScope(); + this.requeue(); + return [nodePath ? this.get(nodePath) : this]; +} + +function _replaceWith(node) { + var _pathCache$get2; + + if (!this.container) { + throw new ReferenceError("Container is falsy"); + } + + if (this.inList) { + validate(this.parent, this.key, [node]); + } else { + validate(this.parent, this.key, node); + } + + this.debug(`Replace with ${node == null ? void 0 : node.type}`); + (_pathCache$get2 = _cache.path.get(this.parent)) == null ? void 0 : _pathCache$get2.set(node, this).delete(this.node); + this.node = this.container[this.key] = node; +} + +function replaceExpressionWithStatements(nodes) { + this.resync(); + const nodesAsSequenceExpression = toSequenceExpression(nodes, this.scope); + + if (nodesAsSequenceExpression) { + return this.replaceWith(nodesAsSequenceExpression)[0].get("expressions"); + } + + const functionParent = this.getFunctionParent(); + const isParentAsync = functionParent == null ? void 0 : functionParent.is("async"); + const isParentGenerator = functionParent == null ? void 0 : functionParent.is("generator"); + const container = arrowFunctionExpression([], blockStatement(nodes)); + this.replaceWith(callExpression(container, [])); + const callee = this.get("callee"); + (0, _helperHoistVariables.default)(callee.get("body"), id => { + this.scope.push({ + id + }); + }, "var"); + const completionRecords = this.get("callee").getCompletionRecords(); + + for (const path of completionRecords) { + if (!path.isExpressionStatement()) continue; + const loop = path.findParent(path => path.isLoop()); + + if (loop) { + let uid = loop.getData("expressionReplacementReturnUid"); + + if (!uid) { + uid = callee.scope.generateDeclaredUidIdentifier("ret"); + callee.get("body").pushContainer("body", returnStatement(cloneNode(uid))); + loop.setData("expressionReplacementReturnUid", uid); + } else { + uid = identifier(uid.name); + } + + path.get("expression").replaceWith(assignmentExpression("=", cloneNode(uid), path.node.expression)); + } else { + path.replaceWith(returnStatement(path.node.expression)); + } + } + + callee.arrowFunctionToExpression(); + const newCallee = callee; + + const needToAwaitFunction = isParentAsync && _index.default.hasType(this.get("callee.body").node, "AwaitExpression", FUNCTION_TYPES); + + const needToYieldFunction = isParentGenerator && _index.default.hasType(this.get("callee.body").node, "YieldExpression", FUNCTION_TYPES); + + if (needToAwaitFunction) { + newCallee.set("async", true); + + if (!needToYieldFunction) { + this.replaceWith(awaitExpression(this.node)); + } + } + + if (needToYieldFunction) { + newCallee.set("generator", true); + this.replaceWith(yieldExpression(this.node, true)); + } + + return newCallee.get("body.body"); +} + +function replaceInline(nodes) { + this.resync(); + + if (Array.isArray(nodes)) { + if (Array.isArray(this.container)) { + nodes = this._verifyNodeList(nodes); + + const paths = this._containerInsertAfter(nodes); + + this.remove(); + return paths; + } else { + return this.replaceWithMultiple(nodes); + } + } else { + return this.replaceWith(nodes); + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/scope/binding.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/scope/binding.js" new file mode 100644 index 0000000000000000000000000000000000000000..16911ef21c03db9d69ff7d2295e61c4e911ad050 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/scope/binding.js" @@ -0,0 +1,75 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +class Binding { + constructor({ + identifier, + scope, + path, + kind + }) { + this.identifier = void 0; + this.scope = void 0; + this.path = void 0; + this.kind = void 0; + this.constantViolations = []; + this.constant = true; + this.referencePaths = []; + this.referenced = false; + this.references = 0; + this.identifier = identifier; + this.scope = scope; + this.path = path; + this.kind = kind; + this.clearValue(); + } + + deoptValue() { + this.clearValue(); + this.hasDeoptedValue = true; + } + + setValue(value) { + if (this.hasDeoptedValue) return; + this.hasValue = true; + this.value = value; + } + + clearValue() { + this.hasDeoptedValue = false; + this.hasValue = false; + this.value = null; + } + + reassign(path) { + this.constant = false; + + if (this.constantViolations.indexOf(path) !== -1) { + return; + } + + this.constantViolations.push(path); + } + + reference(path) { + if (this.referencePaths.indexOf(path) !== -1) { + return; + } + + this.referenced = true; + this.references++; + this.referencePaths.push(path); + } + + dereference() { + this.references--; + this.referenced = !!this.references; + } + +} + +exports.default = Binding; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/scope/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/scope/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..ee376a88f558e5b96c34b34c9acdb561a8205c07 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/scope/index.js" @@ -0,0 +1,1018 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _renamer = require("./lib/renamer"); + +var _index = require("../index"); + +var _binding = require("./binding"); + +var _globals = require("globals"); + +var _t = require("@babel/types"); + +var _cache = require("../cache"); + +const { + NOT_LOCAL_BINDING, + callExpression, + cloneNode, + getBindingIdentifiers, + identifier, + isArrayExpression, + isBinary, + isClass, + isClassBody, + isClassDeclaration, + isExportAllDeclaration, + isExportDefaultDeclaration, + isExportNamedDeclaration, + isFunctionDeclaration, + isIdentifier, + isImportDeclaration, + isLiteral, + isMethod, + isModuleDeclaration, + isModuleSpecifier, + isObjectExpression, + isProperty, + isPureish, + isSuper, + isTaggedTemplateExpression, + isTemplateLiteral, + isThisExpression, + isUnaryExpression, + isVariableDeclaration, + matchesPattern, + memberExpression, + numericLiteral, + toIdentifier, + unaryExpression, + variableDeclaration, + variableDeclarator +} = _t; + +function gatherNodeParts(node, parts) { + switch (node == null ? void 0 : node.type) { + default: + if (isModuleDeclaration(node)) { + if ((isExportAllDeclaration(node) || isExportNamedDeclaration(node) || isImportDeclaration(node)) && node.source) { + gatherNodeParts(node.source, parts); + } else if ((isExportNamedDeclaration(node) || isImportDeclaration(node)) && node.specifiers && node.specifiers.length) { + for (const e of node.specifiers) gatherNodeParts(e, parts); + } else if ((isExportDefaultDeclaration(node) || isExportNamedDeclaration(node)) && node.declaration) { + gatherNodeParts(node.declaration, parts); + } + } else if (isModuleSpecifier(node)) { + gatherNodeParts(node.local, parts); + } else if (isLiteral(node)) { + parts.push(node.value); + } + + break; + + case "MemberExpression": + case "OptionalMemberExpression": + case "JSXMemberExpression": + gatherNodeParts(node.object, parts); + gatherNodeParts(node.property, parts); + break; + + case "Identifier": + case "JSXIdentifier": + parts.push(node.name); + break; + + case "CallExpression": + case "OptionalCallExpression": + case "NewExpression": + gatherNodeParts(node.callee, parts); + break; + + case "ObjectExpression": + case "ObjectPattern": + for (const e of node.properties) { + gatherNodeParts(e, parts); + } + + break; + + case "SpreadElement": + case "RestElement": + gatherNodeParts(node.argument, parts); + break; + + case "ObjectProperty": + case "ObjectMethod": + case "ClassProperty": + case "ClassMethod": + case "ClassPrivateProperty": + case "ClassPrivateMethod": + gatherNodeParts(node.key, parts); + break; + + case "ThisExpression": + parts.push("this"); + break; + + case "Super": + parts.push("super"); + break; + + case "Import": + parts.push("import"); + break; + + case "DoExpression": + parts.push("do"); + break; + + case "YieldExpression": + parts.push("yield"); + gatherNodeParts(node.argument, parts); + break; + + case "AwaitExpression": + parts.push("await"); + gatherNodeParts(node.argument, parts); + break; + + case "AssignmentExpression": + gatherNodeParts(node.left, parts); + break; + + case "VariableDeclarator": + gatherNodeParts(node.id, parts); + break; + + case "FunctionExpression": + case "FunctionDeclaration": + case "ClassExpression": + case "ClassDeclaration": + gatherNodeParts(node.id, parts); + break; + + case "PrivateName": + gatherNodeParts(node.id, parts); + break; + + case "ParenthesizedExpression": + gatherNodeParts(node.expression, parts); + break; + + case "UnaryExpression": + case "UpdateExpression": + gatherNodeParts(node.argument, parts); + break; + + case "MetaProperty": + gatherNodeParts(node.meta, parts); + gatherNodeParts(node.property, parts); + break; + + case "JSXElement": + gatherNodeParts(node.openingElement, parts); + break; + + case "JSXOpeningElement": + parts.push(node.name); + break; + + case "JSXFragment": + gatherNodeParts(node.openingFragment, parts); + break; + + case "JSXOpeningFragment": + parts.push("Fragment"); + break; + + case "JSXNamespacedName": + gatherNodeParts(node.namespace, parts); + gatherNodeParts(node.name, parts); + break; + } +} + +const collectorVisitor = { + ForStatement(path) { + const declar = path.get("init"); + + if (declar.isVar()) { + const { + scope + } = path; + const parentScope = scope.getFunctionParent() || scope.getProgramParent(); + parentScope.registerBinding("var", declar); + } + }, + + Declaration(path) { + if (path.isBlockScoped()) return; + if (path.isImportDeclaration()) return; + if (path.isExportDeclaration()) return; + const parent = path.scope.getFunctionParent() || path.scope.getProgramParent(); + parent.registerDeclaration(path); + }, + + ImportDeclaration(path) { + const parent = path.scope.getBlockParent(); + parent.registerDeclaration(path); + }, + + ReferencedIdentifier(path, state) { + state.references.push(path); + }, + + ForXStatement(path, state) { + const left = path.get("left"); + + if (left.isPattern() || left.isIdentifier()) { + state.constantViolations.push(path); + } else if (left.isVar()) { + const { + scope + } = path; + const parentScope = scope.getFunctionParent() || scope.getProgramParent(); + parentScope.registerBinding("var", left); + } + }, + + ExportDeclaration: { + exit(path) { + const { + node, + scope + } = path; + if (isExportAllDeclaration(node)) return; + const declar = node.declaration; + + if (isClassDeclaration(declar) || isFunctionDeclaration(declar)) { + const id = declar.id; + if (!id) return; + const binding = scope.getBinding(id.name); + binding == null ? void 0 : binding.reference(path); + } else if (isVariableDeclaration(declar)) { + for (const decl of declar.declarations) { + for (const name of Object.keys(getBindingIdentifiers(decl))) { + const binding = scope.getBinding(name); + binding == null ? void 0 : binding.reference(path); + } + } + } + } + + }, + + LabeledStatement(path) { + path.scope.getBlockParent().registerDeclaration(path); + }, + + AssignmentExpression(path, state) { + state.assignments.push(path); + }, + + UpdateExpression(path, state) { + state.constantViolations.push(path); + }, + + UnaryExpression(path, state) { + if (path.node.operator === "delete") { + state.constantViolations.push(path); + } + }, + + BlockScoped(path) { + let scope = path.scope; + if (scope.path === path) scope = scope.parent; + const parent = scope.getBlockParent(); + parent.registerDeclaration(path); + + if (path.isClassDeclaration() && path.node.id) { + const id = path.node.id; + const name = id.name; + path.scope.bindings[name] = path.scope.parent.getBinding(name); + } + }, + + CatchClause(path) { + path.scope.registerBinding("let", path); + }, + + Function(path) { + const params = path.get("params"); + + for (const param of params) { + path.scope.registerBinding("param", param); + } + + if (path.isFunctionExpression() && path.has("id") && !path.get("id").node[NOT_LOCAL_BINDING]) { + path.scope.registerBinding("local", path.get("id"), path); + } + }, + + ClassExpression(path) { + if (path.has("id") && !path.get("id").node[NOT_LOCAL_BINDING]) { + path.scope.registerBinding("local", path); + } + } + +}; +let uid = 0; + +class Scope { + constructor(path) { + this.uid = void 0; + this.path = void 0; + this.block = void 0; + this.labels = void 0; + this.inited = void 0; + this.bindings = void 0; + this.references = void 0; + this.globals = void 0; + this.uids = void 0; + this.data = void 0; + this.crawling = void 0; + const { + node + } = path; + + const cached = _cache.scope.get(node); + + if ((cached == null ? void 0 : cached.path) === path) { + return cached; + } + + _cache.scope.set(node, this); + + this.uid = uid++; + this.block = node; + this.path = path; + this.labels = new Map(); + this.inited = false; + } + + get parent() { + var _parent; + + let parent, + path = this.path; + + do { + const isKey = path.key === "key"; + path = path.parentPath; + if (isKey && path.isMethod()) path = path.parentPath; + if (path && path.isScope()) parent = path; + } while (path && !parent); + + return (_parent = parent) == null ? void 0 : _parent.scope; + } + + get parentBlock() { + return this.path.parent; + } + + get hub() { + return this.path.hub; + } + + traverse(node, opts, state) { + (0, _index.default)(node, opts, this, state, this.path); + } + + generateDeclaredUidIdentifier(name) { + const id = this.generateUidIdentifier(name); + this.push({ + id + }); + return cloneNode(id); + } + + generateUidIdentifier(name) { + return identifier(this.generateUid(name)); + } + + generateUid(name = "temp") { + name = toIdentifier(name).replace(/^_+/, "").replace(/[0-9]+$/g, ""); + let uid; + let i = 1; + + do { + uid = this._generateUid(name, i); + i++; + } while (this.hasLabel(uid) || this.hasBinding(uid) || this.hasGlobal(uid) || this.hasReference(uid)); + + const program = this.getProgramParent(); + program.references[uid] = true; + program.uids[uid] = true; + return uid; + } + + _generateUid(name, i) { + let id = name; + if (i > 1) id += i; + return `_${id}`; + } + + generateUidBasedOnNode(node, defaultName) { + const parts = []; + gatherNodeParts(node, parts); + let id = parts.join("$"); + id = id.replace(/^_/, "") || defaultName || "ref"; + return this.generateUid(id.slice(0, 20)); + } + + generateUidIdentifierBasedOnNode(node, defaultName) { + return identifier(this.generateUidBasedOnNode(node, defaultName)); + } + + isStatic(node) { + if (isThisExpression(node) || isSuper(node)) { + return true; + } + + if (isIdentifier(node)) { + const binding = this.getBinding(node.name); + + if (binding) { + return binding.constant; + } else { + return this.hasBinding(node.name); + } + } + + return false; + } + + maybeGenerateMemoised(node, dontPush) { + if (this.isStatic(node)) { + return null; + } else { + const id = this.generateUidIdentifierBasedOnNode(node); + + if (!dontPush) { + this.push({ + id + }); + return cloneNode(id); + } + + return id; + } + } + + checkBlockScopedCollisions(local, kind, name, id) { + if (kind === "param") return; + if (local.kind === "local") return; + const duplicate = kind === "let" || local.kind === "let" || local.kind === "const" || local.kind === "module" || local.kind === "param" && kind === "const"; + + if (duplicate) { + throw this.hub.buildError(id, `Duplicate declaration "${name}"`, TypeError); + } + } + + rename(oldName, newName, block) { + const binding = this.getBinding(oldName); + + if (binding) { + newName = newName || this.generateUidIdentifier(oldName).name; + return new _renamer.default(binding, oldName, newName).rename(block); + } + } + + _renameFromMap(map, oldName, newName, value) { + if (map[oldName]) { + map[newName] = value; + map[oldName] = null; + } + } + + dump() { + const sep = "-".repeat(60); + console.log(sep); + let scope = this; + + do { + console.log("#", scope.block.type); + + for (const name of Object.keys(scope.bindings)) { + const binding = scope.bindings[name]; + console.log(" -", name, { + constant: binding.constant, + references: binding.references, + violations: binding.constantViolations.length, + kind: binding.kind + }); + } + } while (scope = scope.parent); + + console.log(sep); + } + + toArray(node, i, arrayLikeIsIterable) { + if (isIdentifier(node)) { + const binding = this.getBinding(node.name); + + if (binding != null && binding.constant && binding.path.isGenericType("Array")) { + return node; + } + } + + if (isArrayExpression(node)) { + return node; + } + + if (isIdentifier(node, { + name: "arguments" + })) { + return callExpression(memberExpression(memberExpression(memberExpression(identifier("Array"), identifier("prototype")), identifier("slice")), identifier("call")), [node]); + } + + let helperName; + const args = [node]; + + if (i === true) { + helperName = "toConsumableArray"; + } else if (i) { + args.push(numericLiteral(i)); + helperName = "slicedToArray"; + } else { + helperName = "toArray"; + } + + if (arrayLikeIsIterable) { + args.unshift(this.hub.addHelper(helperName)); + helperName = "maybeArrayLike"; + } + + return callExpression(this.hub.addHelper(helperName), args); + } + + hasLabel(name) { + return !!this.getLabel(name); + } + + getLabel(name) { + return this.labels.get(name); + } + + registerLabel(path) { + this.labels.set(path.node.label.name, path); + } + + registerDeclaration(path) { + if (path.isLabeledStatement()) { + this.registerLabel(path); + } else if (path.isFunctionDeclaration()) { + this.registerBinding("hoisted", path.get("id"), path); + } else if (path.isVariableDeclaration()) { + const declarations = path.get("declarations"); + + for (const declar of declarations) { + this.registerBinding(path.node.kind, declar); + } + } else if (path.isClassDeclaration()) { + if (path.node.declare) return; + this.registerBinding("let", path); + } else if (path.isImportDeclaration()) { + const specifiers = path.get("specifiers"); + + for (const specifier of specifiers) { + this.registerBinding("module", specifier); + } + } else if (path.isExportDeclaration()) { + const declar = path.get("declaration"); + + if (declar.isClassDeclaration() || declar.isFunctionDeclaration() || declar.isVariableDeclaration()) { + this.registerDeclaration(declar); + } + } else { + this.registerBinding("unknown", path); + } + } + + buildUndefinedNode() { + return unaryExpression("void", numericLiteral(0), true); + } + + registerConstantViolation(path) { + const ids = path.getBindingIdentifiers(); + + for (const name of Object.keys(ids)) { + const binding = this.getBinding(name); + if (binding) binding.reassign(path); + } + } + + registerBinding(kind, path, bindingPath = path) { + if (!kind) throw new ReferenceError("no `kind`"); + + if (path.isVariableDeclaration()) { + const declarators = path.get("declarations"); + + for (const declar of declarators) { + this.registerBinding(kind, declar); + } + + return; + } + + const parent = this.getProgramParent(); + const ids = path.getOuterBindingIdentifiers(true); + + for (const name of Object.keys(ids)) { + parent.references[name] = true; + + for (const id of ids[name]) { + const local = this.getOwnBinding(name); + + if (local) { + if (local.identifier === id) continue; + this.checkBlockScopedCollisions(local, kind, name, id); + } + + if (local) { + this.registerConstantViolation(bindingPath); + } else { + this.bindings[name] = new _binding.default({ + identifier: id, + scope: this, + path: bindingPath, + kind: kind + }); + } + } + } + } + + addGlobal(node) { + this.globals[node.name] = node; + } + + hasUid(name) { + let scope = this; + + do { + if (scope.uids[name]) return true; + } while (scope = scope.parent); + + return false; + } + + hasGlobal(name) { + let scope = this; + + do { + if (scope.globals[name]) return true; + } while (scope = scope.parent); + + return false; + } + + hasReference(name) { + return !!this.getProgramParent().references[name]; + } + + isPure(node, constantsOnly) { + if (isIdentifier(node)) { + const binding = this.getBinding(node.name); + if (!binding) return false; + if (constantsOnly) return binding.constant; + return true; + } else if (isClass(node)) { + if (node.superClass && !this.isPure(node.superClass, constantsOnly)) { + return false; + } + + return this.isPure(node.body, constantsOnly); + } else if (isClassBody(node)) { + for (const method of node.body) { + if (!this.isPure(method, constantsOnly)) return false; + } + + return true; + } else if (isBinary(node)) { + return this.isPure(node.left, constantsOnly) && this.isPure(node.right, constantsOnly); + } else if (isArrayExpression(node)) { + for (const elem of node.elements) { + if (!this.isPure(elem, constantsOnly)) return false; + } + + return true; + } else if (isObjectExpression(node)) { + for (const prop of node.properties) { + if (!this.isPure(prop, constantsOnly)) return false; + } + + return true; + } else if (isMethod(node)) { + if (node.computed && !this.isPure(node.key, constantsOnly)) return false; + if (node.kind === "get" || node.kind === "set") return false; + return true; + } else if (isProperty(node)) { + if (node.computed && !this.isPure(node.key, constantsOnly)) return false; + return this.isPure(node.value, constantsOnly); + } else if (isUnaryExpression(node)) { + return this.isPure(node.argument, constantsOnly); + } else if (isTaggedTemplateExpression(node)) { + return matchesPattern(node.tag, "String.raw") && !this.hasBinding("String", true) && this.isPure(node.quasi, constantsOnly); + } else if (isTemplateLiteral(node)) { + for (const expression of node.expressions) { + if (!this.isPure(expression, constantsOnly)) return false; + } + + return true; + } else { + return isPureish(node); + } + } + + setData(key, val) { + return this.data[key] = val; + } + + getData(key) { + let scope = this; + + do { + const data = scope.data[key]; + if (data != null) return data; + } while (scope = scope.parent); + } + + removeData(key) { + let scope = this; + + do { + const data = scope.data[key]; + if (data != null) scope.data[key] = null; + } while (scope = scope.parent); + } + + init() { + if (!this.inited) { + this.inited = true; + this.crawl(); + } + } + + crawl() { + const path = this.path; + this.references = Object.create(null); + this.bindings = Object.create(null); + this.globals = Object.create(null); + this.uids = Object.create(null); + this.data = Object.create(null); + const programParent = this.getProgramParent(); + if (programParent.crawling) return; + const state = { + references: [], + constantViolations: [], + assignments: [] + }; + this.crawling = true; + + if (path.type !== "Program" && collectorVisitor._exploded) { + for (const visit of collectorVisitor.enter) { + visit(path, state); + } + + const typeVisitors = collectorVisitor[path.type]; + + if (typeVisitors) { + for (const visit of typeVisitors.enter) { + visit(path, state); + } + } + } + + path.traverse(collectorVisitor, state); + this.crawling = false; + + for (const path of state.assignments) { + const ids = path.getBindingIdentifiers(); + + for (const name of Object.keys(ids)) { + if (path.scope.getBinding(name)) continue; + programParent.addGlobal(ids[name]); + } + + path.scope.registerConstantViolation(path); + } + + for (const ref of state.references) { + const binding = ref.scope.getBinding(ref.node.name); + + if (binding) { + binding.reference(ref); + } else { + programParent.addGlobal(ref.node); + } + } + + for (const path of state.constantViolations) { + path.scope.registerConstantViolation(path); + } + } + + push(opts) { + let path = this.path; + + if (!path.isBlockStatement() && !path.isProgram()) { + path = this.getBlockParent().path; + } + + if (path.isSwitchStatement()) { + path = (this.getFunctionParent() || this.getProgramParent()).path; + } + + if (path.isLoop() || path.isCatchClause() || path.isFunction()) { + path.ensureBlock(); + path = path.get("body"); + } + + const unique = opts.unique; + const kind = opts.kind || "var"; + const blockHoist = opts._blockHoist == null ? 2 : opts._blockHoist; + const dataKey = `declaration:${kind}:${blockHoist}`; + let declarPath = !unique && path.getData(dataKey); + + if (!declarPath) { + const declar = variableDeclaration(kind, []); + declar._blockHoist = blockHoist; + [declarPath] = path.unshiftContainer("body", [declar]); + if (!unique) path.setData(dataKey, declarPath); + } + + const declarator = variableDeclarator(opts.id, opts.init); + const len = declarPath.node.declarations.push(declarator); + path.scope.registerBinding(kind, declarPath.get("declarations")[len - 1]); + } + + getProgramParent() { + let scope = this; + + do { + if (scope.path.isProgram()) { + return scope; + } + } while (scope = scope.parent); + + throw new Error("Couldn't find a Program"); + } + + getFunctionParent() { + let scope = this; + + do { + if (scope.path.isFunctionParent()) { + return scope; + } + } while (scope = scope.parent); + + return null; + } + + getBlockParent() { + let scope = this; + + do { + if (scope.path.isBlockParent()) { + return scope; + } + } while (scope = scope.parent); + + throw new Error("We couldn't find a BlockStatement, For, Switch, Function, Loop or Program..."); + } + + getAllBindings() { + const ids = Object.create(null); + let scope = this; + + do { + for (const key of Object.keys(scope.bindings)) { + if (key in ids === false) { + ids[key] = scope.bindings[key]; + } + } + + scope = scope.parent; + } while (scope); + + return ids; + } + + getAllBindingsOfKind(...kinds) { + const ids = Object.create(null); + + for (const kind of kinds) { + let scope = this; + + do { + for (const name of Object.keys(scope.bindings)) { + const binding = scope.bindings[name]; + if (binding.kind === kind) ids[name] = binding; + } + + scope = scope.parent; + } while (scope); + } + + return ids; + } + + bindingIdentifierEquals(name, node) { + return this.getBindingIdentifier(name) === node; + } + + getBinding(name) { + let scope = this; + let previousPath; + + do { + const binding = scope.getOwnBinding(name); + + if (binding) { + var _previousPath; + + if ((_previousPath = previousPath) != null && _previousPath.isPattern() && binding.kind !== "param" && binding.kind !== "local") {} else { + return binding; + } + } else if (!binding && name === "arguments" && scope.path.isFunction() && !scope.path.isArrowFunctionExpression()) { + break; + } + + previousPath = scope.path; + } while (scope = scope.parent); + } + + getOwnBinding(name) { + return this.bindings[name]; + } + + getBindingIdentifier(name) { + var _this$getBinding; + + return (_this$getBinding = this.getBinding(name)) == null ? void 0 : _this$getBinding.identifier; + } + + getOwnBindingIdentifier(name) { + const binding = this.bindings[name]; + return binding == null ? void 0 : binding.identifier; + } + + hasOwnBinding(name) { + return !!this.getOwnBinding(name); + } + + hasBinding(name, noGlobals) { + if (!name) return false; + if (this.hasOwnBinding(name)) return true; + if (this.parentHasBinding(name, noGlobals)) return true; + if (this.hasUid(name)) return true; + if (!noGlobals && Scope.globals.includes(name)) return true; + if (!noGlobals && Scope.contextVariables.includes(name)) return true; + return false; + } + + parentHasBinding(name, noGlobals) { + var _this$parent; + + return (_this$parent = this.parent) == null ? void 0 : _this$parent.hasBinding(name, noGlobals); + } + + moveBindingTo(name, scope) { + const info = this.getBinding(name); + + if (info) { + info.scope.removeOwnBinding(name); + info.scope = scope; + scope.bindings[name] = info; + } + } + + removeOwnBinding(name) { + delete this.bindings[name]; + } + + removeBinding(name) { + var _this$getBinding2; + + (_this$getBinding2 = this.getBinding(name)) == null ? void 0 : _this$getBinding2.scope.removeOwnBinding(name); + let scope = this; + + do { + if (scope.uids[name]) { + scope.uids[name] = false; + } + } while (scope = scope.parent); + } + +} + +exports.default = Scope; +Scope.globals = Object.keys(_globals.builtin); +Scope.contextVariables = ["arguments", "undefined", "Infinity", "NaN"]; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/scope/lib/renamer.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/scope/lib/renamer.js" new file mode 100644 index 0000000000000000000000000000000000000000..f11bbb7006614b14ee4f0ca7884c80712622825d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/scope/lib/renamer.js" @@ -0,0 +1,146 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _binding = require("../binding"); + +var _helperSplitExportDeclaration = require("@babel/helper-split-export-declaration"); + +var _t = require("@babel/types"); + +const { + VISITOR_KEYS, + assignmentExpression, + identifier, + toExpression, + variableDeclaration, + variableDeclarator +} = _t; +const renameVisitor = { + ReferencedIdentifier({ + node + }, state) { + if (node.name === state.oldName) { + node.name = state.newName; + } + }, + + Scope(path, state) { + if (!path.scope.bindingIdentifierEquals(state.oldName, state.binding.identifier)) { + skipAllButComputedMethodKey(path); + } + }, + + "AssignmentExpression|Declaration|VariableDeclarator"(path, state) { + if (path.isVariableDeclaration()) return; + const ids = path.getOuterBindingIdentifiers(); + + for (const name in ids) { + if (name === state.oldName) ids[name].name = state.newName; + } + } + +}; + +class Renamer { + constructor(binding, oldName, newName) { + this.newName = newName; + this.oldName = oldName; + this.binding = binding; + } + + maybeConvertFromExportDeclaration(parentDeclar) { + const maybeExportDeclar = parentDeclar.parentPath; + + if (!maybeExportDeclar.isExportDeclaration()) { + return; + } + + if (maybeExportDeclar.isExportDefaultDeclaration() && !maybeExportDeclar.get("declaration").node.id) { + return; + } + + (0, _helperSplitExportDeclaration.default)(maybeExportDeclar); + } + + maybeConvertFromClassFunctionDeclaration(path) { + return; + if (!path.isFunctionDeclaration() && !path.isClassDeclaration()) return; + if (this.binding.kind !== "hoisted") return; + path.node.id = identifier(this.oldName); + path.node._blockHoist = 3; + path.replaceWith(variableDeclaration("let", [variableDeclarator(identifier(this.newName), toExpression(path.node))])); + } + + maybeConvertFromClassFunctionExpression(path) { + return; + if (!path.isFunctionExpression() && !path.isClassExpression()) return; + if (this.binding.kind !== "local") return; + path.node.id = identifier(this.oldName); + this.binding.scope.parent.push({ + id: identifier(this.newName) + }); + path.replaceWith(assignmentExpression("=", identifier(this.newName), path.node)); + } + + rename(block) { + const { + binding, + oldName, + newName + } = this; + const { + scope, + path + } = binding; + const parentDeclar = path.find(path => path.isDeclaration() || path.isFunctionExpression() || path.isClassExpression()); + + if (parentDeclar) { + const bindingIds = parentDeclar.getOuterBindingIdentifiers(); + + if (bindingIds[oldName] === binding.identifier) { + this.maybeConvertFromExportDeclaration(parentDeclar); + } + } + + const blockToTraverse = block || scope.block; + + if ((blockToTraverse == null ? void 0 : blockToTraverse.type) === "SwitchStatement") { + blockToTraverse.cases.forEach(c => { + scope.traverse(c, renameVisitor, this); + }); + } else { + scope.traverse(blockToTraverse, renameVisitor, this); + } + + if (!block) { + scope.removeOwnBinding(oldName); + scope.bindings[newName] = binding; + this.binding.identifier.name = newName; + } + + if (parentDeclar) { + this.maybeConvertFromClassFunctionDeclaration(parentDeclar); + this.maybeConvertFromClassFunctionExpression(parentDeclar); + } + } + +} + +exports.default = Renamer; + +function skipAllButComputedMethodKey(path) { + if (!path.isMethod() || !path.node.computed) { + path.skip(); + return; + } + + const keys = VISITOR_KEYS[path.type]; + + for (const key of keys) { + if (key !== "key") path.skipKey(key); + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/traverse-node.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/traverse-node.js" new file mode 100644 index 0000000000000000000000000000000000000000..82437b461feb42411ccb7c875c4a491ce62d461c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/traverse-node.js" @@ -0,0 +1,30 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.traverseNode = traverseNode; + +var _context = require("./context"); + +var _t = require("@babel/types"); + +const { + VISITOR_KEYS +} = _t; + +function traverseNode(node, opts, scope, state, path, skipKeys) { + const keys = VISITOR_KEYS[node.type]; + if (!keys) return false; + const context = new _context.default(scope, opts, state, path); + + for (const key of keys) { + if (skipKeys && skipKeys[key]) continue; + + if (context.visit(node, key)) { + return true; + } + } + + return false; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/types.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/types.js" new file mode 100644 index 0000000000000000000000000000000000000000..ec17ee62fc5f16b03bf9173ec29bbc6f5a795b1a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/types.js" @@ -0,0 +1,5 @@ +"use strict"; + +var _index = require("./index"); + +var _virtualTypes = require("./path/generated/virtual-types"); \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/visitors.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/visitors.js" new file mode 100644 index 0000000000000000000000000000000000000000..81d63357718f62d709edef07d75af56900c8bedd --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/lib/visitors.js" @@ -0,0 +1,242 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.explode = explode; +exports.merge = merge; +exports.verify = verify; + +var virtualTypes = require("./path/lib/virtual-types"); + +var _t = require("@babel/types"); + +const { + DEPRECATED_KEYS, + FLIPPED_ALIAS_KEYS, + TYPES +} = _t; + +function explode(visitor) { + if (visitor._exploded) return visitor; + visitor._exploded = true; + + for (const nodeType of Object.keys(visitor)) { + if (shouldIgnoreKey(nodeType)) continue; + const parts = nodeType.split("|"); + if (parts.length === 1) continue; + const fns = visitor[nodeType]; + delete visitor[nodeType]; + + for (const part of parts) { + visitor[part] = fns; + } + } + + verify(visitor); + delete visitor.__esModule; + ensureEntranceObjects(visitor); + ensureCallbackArrays(visitor); + + for (const nodeType of Object.keys(visitor)) { + if (shouldIgnoreKey(nodeType)) continue; + const wrapper = virtualTypes[nodeType]; + if (!wrapper) continue; + const fns = visitor[nodeType]; + + for (const type of Object.keys(fns)) { + fns[type] = wrapCheck(wrapper, fns[type]); + } + + delete visitor[nodeType]; + + if (wrapper.types) { + for (const type of wrapper.types) { + if (visitor[type]) { + mergePair(visitor[type], fns); + } else { + visitor[type] = fns; + } + } + } else { + mergePair(visitor, fns); + } + } + + for (const nodeType of Object.keys(visitor)) { + if (shouldIgnoreKey(nodeType)) continue; + const fns = visitor[nodeType]; + let aliases = FLIPPED_ALIAS_KEYS[nodeType]; + const deprecatedKey = DEPRECATED_KEYS[nodeType]; + + if (deprecatedKey) { + console.trace(`Visitor defined for ${nodeType} but it has been renamed to ${deprecatedKey}`); + aliases = [deprecatedKey]; + } + + if (!aliases) continue; + delete visitor[nodeType]; + + for (const alias of aliases) { + const existing = visitor[alias]; + + if (existing) { + mergePair(existing, fns); + } else { + visitor[alias] = Object.assign({}, fns); + } + } + } + + for (const nodeType of Object.keys(visitor)) { + if (shouldIgnoreKey(nodeType)) continue; + ensureCallbackArrays(visitor[nodeType]); + } + + return visitor; +} + +function verify(visitor) { + if (visitor._verified) return; + + if (typeof visitor === "function") { + throw new Error("You passed `traverse()` a function when it expected a visitor object, " + "are you sure you didn't mean `{ enter: Function }`?"); + } + + for (const nodeType of Object.keys(visitor)) { + if (nodeType === "enter" || nodeType === "exit") { + validateVisitorMethods(nodeType, visitor[nodeType]); + } + + if (shouldIgnoreKey(nodeType)) continue; + + if (TYPES.indexOf(nodeType) < 0) { + throw new Error(`You gave us a visitor for the node type ${nodeType} but it's not a valid type`); + } + + const visitors = visitor[nodeType]; + + if (typeof visitors === "object") { + for (const visitorKey of Object.keys(visitors)) { + if (visitorKey === "enter" || visitorKey === "exit") { + validateVisitorMethods(`${nodeType}.${visitorKey}`, visitors[visitorKey]); + } else { + throw new Error("You passed `traverse()` a visitor object with the property " + `${nodeType} that has the invalid property ${visitorKey}`); + } + } + } + } + + visitor._verified = true; +} + +function validateVisitorMethods(path, val) { + const fns = [].concat(val); + + for (const fn of fns) { + if (typeof fn !== "function") { + throw new TypeError(`Non-function found defined in ${path} with type ${typeof fn}`); + } + } +} + +function merge(visitors, states = [], wrapper) { + const rootVisitor = {}; + + for (let i = 0; i < visitors.length; i++) { + const visitor = visitors[i]; + const state = states[i]; + explode(visitor); + + for (const type of Object.keys(visitor)) { + let visitorType = visitor[type]; + + if (state || wrapper) { + visitorType = wrapWithStateOrWrapper(visitorType, state, wrapper); + } + + const nodeVisitor = rootVisitor[type] = rootVisitor[type] || {}; + mergePair(nodeVisitor, visitorType); + } + } + + return rootVisitor; +} + +function wrapWithStateOrWrapper(oldVisitor, state, wrapper) { + const newVisitor = {}; + + for (const key of Object.keys(oldVisitor)) { + let fns = oldVisitor[key]; + if (!Array.isArray(fns)) continue; + fns = fns.map(function (fn) { + let newFn = fn; + + if (state) { + newFn = function (path) { + return fn.call(state, path, state); + }; + } + + if (wrapper) { + newFn = wrapper(state.key, key, newFn); + } + + if (newFn !== fn) { + newFn.toString = () => fn.toString(); + } + + return newFn; + }); + newVisitor[key] = fns; + } + + return newVisitor; +} + +function ensureEntranceObjects(obj) { + for (const key of Object.keys(obj)) { + if (shouldIgnoreKey(key)) continue; + const fns = obj[key]; + + if (typeof fns === "function") { + obj[key] = { + enter: fns + }; + } + } +} + +function ensureCallbackArrays(obj) { + if (obj.enter && !Array.isArray(obj.enter)) obj.enter = [obj.enter]; + if (obj.exit && !Array.isArray(obj.exit)) obj.exit = [obj.exit]; +} + +function wrapCheck(wrapper, fn) { + const newFn = function (path) { + if (wrapper.checkPath(path)) { + return fn.apply(this, arguments); + } + }; + + newFn.toString = () => fn.toString(); + + return newFn; +} + +function shouldIgnoreKey(key) { + if (key[0] === "_") return true; + if (key === "enter" || key === "exit" || key === "shouldSkip") return true; + + if (key === "denylist" || key === "noScope" || key === "skipKeys" || key === "blacklist") { + return true; + } + + return false; +} + +function mergePair(dest, src) { + for (const key of Object.keys(src)) { + dest[key] = [].concat(dest[key] || [], src[key]); + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..cc858eb579b4bd1beef12d2f83fe6f034a99ad0c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/package.json" @@ -0,0 +1,36 @@ +{ + "name": "@babel/traverse", + "version": "7.17.9", + "description": "The Babel Traverse module maintains the overall tree state, and is responsible for replacing, removing, and adding nodes", + "author": "The Babel Team (https://babel.dev/team)", + "homepage": "https://babel.dev/docs/en/next/babel-traverse", + "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20traverse%22+is%3Aopen", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-traverse" + }, + "main": "./lib/index.js", + "dependencies": { + "@babel/code-frame": "^7.16.7", + "@babel/generator": "^7.17.9", + "@babel/helper-environment-visitor": "^7.16.7", + "@babel/helper-function-name": "^7.17.9", + "@babel/helper-hoist-variables": "^7.16.7", + "@babel/helper-split-export-declaration": "^7.16.7", + "@babel/parser": "^7.17.9", + "@babel/types": "^7.17.0", + "debug": "^4.1.0", + "globals": "^11.1.0" + }, + "devDependencies": { + "@babel/helper-plugin-test-runner": "^7.16.7" + }, + "engines": { + "node": ">=6.9.0" + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/scripts/generators/asserts.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/scripts/generators/asserts.js" new file mode 100644 index 0000000000000000000000000000000000000000..f10b33eede23898b5603066c54ea2bbd124831ff --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/scripts/generators/asserts.js" @@ -0,0 +1,25 @@ +import t from "@babel/types"; + +export default function generateAsserts() { + let output = `/* + * This file is auto-generated! Do not modify it directly. + * To re-generate run 'make build' + */ +import * as t from "@babel/types"; +import NodePath from "../index"; + + +export interface NodePathAssetions {`; + + for (const type of [...t.TYPES].sort()) { + output += ` + assert${type}( + opts?: object, + ): asserts this is NodePath;`; + } + + output += ` +}`; + + return output; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/scripts/generators/validators.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/scripts/generators/validators.js" new file mode 100644 index 0000000000000000000000000000000000000000..f806fc76c724a69f3c90e8cd221b1e74ef5543c5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/scripts/generators/validators.js" @@ -0,0 +1,42 @@ +import t from "@babel/types"; +import virtualTypes from "../../lib/path/lib/virtual-types.js"; + +export default function generateValidators() { + let output = `/* + * This file is auto-generated! Do not modify it directly. + * To re-generate run 'make build' + */ +import * as t from "@babel/types"; +import NodePath from "../index"; +import type { VirtualTypeAliases } from "./virtual-types"; + +export interface NodePathValidators { +`; + + for (const type of [...t.TYPES].sort()) { + output += `is${type}(opts?: object): this is NodePath;`; + } + + for (const type of Object.keys(virtualTypes)) { + const { types } = virtualTypes[type]; + if (type[0] === "_") continue; + if (t.NODE_FIELDS[type] || t.FLIPPED_ALIAS_KEYS[type]) { + output += `is${type}(opts?: object): this is NodePath;`; + } else if (types /* in VirtualTypeAliases */) { + output += `is${type}(opts?: object): this is NodePath;`; + } else { + // if it don't have types, then VirtualTypeAliases[type] is t.Node + // which TS marked as always true + // eg. if (path.isBlockScope()) return; + // path resolved to `never` here + // so we have to return boolean instead of this is NodePath here + output += `is${type}(opts?: object): boolean;`; + } + } + + output += ` +} +`; + + return output; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/scripts/generators/virtual-types.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/scripts/generators/virtual-types.js" new file mode 100644 index 0000000000000000000000000000000000000000..6d55f54caaf90a82d045456bdad3c49547aa324d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/scripts/generators/virtual-types.js" @@ -0,0 +1,24 @@ +import virtualTypes from "../../lib/path/lib/virtual-types.js"; + +export default function generateValidators() { + let output = `/* + * This file is auto-generated! Do not modify it directly. + * To re-generate run 'make build' + */ +import * as t from "@babel/types"; + +export interface VirtualTypeAliases { +`; + + for (const type of Object.keys(virtualTypes)) { + output += ` ${type}: ${(virtualTypes[type].types || ["Node"]) + .map(t => `t.${t}`) + .join(" | ")};`; + } + + output += ` +} +`; + + return output; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/scripts/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/scripts/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..5ffd9800b97cf26f3962c0fcda77cdb56cb946a8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/traverse/scripts/package.json" @@ -0,0 +1 @@ +{ "type": "module" } diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..f31575ec773bb199aeb7c0d0f1612cfe1c7038f1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/LICENSE" @@ -0,0 +1,22 @@ +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..0071bd7a9bc537c20cfb2a0d2be959d3f333db6b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/README.md" @@ -0,0 +1,19 @@ +# @babel/types + +> Babel Types is a Lodash-esque utility library for AST nodes + +See our website [@babel/types](https://babeljs.io/docs/en/babel-types) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20types%22+is%3Aopen) associated with this package. + +## Install + +Using npm: + +```sh +npm install --save-dev @babel/types +``` + +or using yarn: + +```sh +yarn add @babel/types --dev +``` diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/asserts/assertNode.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/asserts/assertNode.js" new file mode 100644 index 0000000000000000000000000000000000000000..e584e3eec60b129e1f320530656ff6e5663166bd --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/asserts/assertNode.js" @@ -0,0 +1,17 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = assertNode; + +var _isNode = require("../validators/isNode"); + +function assertNode(node) { + if (!(0, _isNode.default)(node)) { + var _node$type; + + const type = (_node$type = node == null ? void 0 : node.type) != null ? _node$type : JSON.stringify(node); + throw new TypeError(`Not a valid node of type "${type}"`); + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/asserts/generated/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/asserts/generated/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..53a55168dafaf2dc7a45f93f1a1eee6a54a7b1d5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/asserts/generated/index.js" @@ -0,0 +1,1517 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.assertAccessor = assertAccessor; +exports.assertAnyTypeAnnotation = assertAnyTypeAnnotation; +exports.assertArgumentPlaceholder = assertArgumentPlaceholder; +exports.assertArrayExpression = assertArrayExpression; +exports.assertArrayPattern = assertArrayPattern; +exports.assertArrayTypeAnnotation = assertArrayTypeAnnotation; +exports.assertArrowFunctionExpression = assertArrowFunctionExpression; +exports.assertAssignmentExpression = assertAssignmentExpression; +exports.assertAssignmentPattern = assertAssignmentPattern; +exports.assertAwaitExpression = assertAwaitExpression; +exports.assertBigIntLiteral = assertBigIntLiteral; +exports.assertBinary = assertBinary; +exports.assertBinaryExpression = assertBinaryExpression; +exports.assertBindExpression = assertBindExpression; +exports.assertBlock = assertBlock; +exports.assertBlockParent = assertBlockParent; +exports.assertBlockStatement = assertBlockStatement; +exports.assertBooleanLiteral = assertBooleanLiteral; +exports.assertBooleanLiteralTypeAnnotation = assertBooleanLiteralTypeAnnotation; +exports.assertBooleanTypeAnnotation = assertBooleanTypeAnnotation; +exports.assertBreakStatement = assertBreakStatement; +exports.assertCallExpression = assertCallExpression; +exports.assertCatchClause = assertCatchClause; +exports.assertClass = assertClass; +exports.assertClassAccessorProperty = assertClassAccessorProperty; +exports.assertClassBody = assertClassBody; +exports.assertClassDeclaration = assertClassDeclaration; +exports.assertClassExpression = assertClassExpression; +exports.assertClassImplements = assertClassImplements; +exports.assertClassMethod = assertClassMethod; +exports.assertClassPrivateMethod = assertClassPrivateMethod; +exports.assertClassPrivateProperty = assertClassPrivateProperty; +exports.assertClassProperty = assertClassProperty; +exports.assertCompletionStatement = assertCompletionStatement; +exports.assertConditional = assertConditional; +exports.assertConditionalExpression = assertConditionalExpression; +exports.assertContinueStatement = assertContinueStatement; +exports.assertDebuggerStatement = assertDebuggerStatement; +exports.assertDecimalLiteral = assertDecimalLiteral; +exports.assertDeclaration = assertDeclaration; +exports.assertDeclareClass = assertDeclareClass; +exports.assertDeclareExportAllDeclaration = assertDeclareExportAllDeclaration; +exports.assertDeclareExportDeclaration = assertDeclareExportDeclaration; +exports.assertDeclareFunction = assertDeclareFunction; +exports.assertDeclareInterface = assertDeclareInterface; +exports.assertDeclareModule = assertDeclareModule; +exports.assertDeclareModuleExports = assertDeclareModuleExports; +exports.assertDeclareOpaqueType = assertDeclareOpaqueType; +exports.assertDeclareTypeAlias = assertDeclareTypeAlias; +exports.assertDeclareVariable = assertDeclareVariable; +exports.assertDeclaredPredicate = assertDeclaredPredicate; +exports.assertDecorator = assertDecorator; +exports.assertDirective = assertDirective; +exports.assertDirectiveLiteral = assertDirectiveLiteral; +exports.assertDoExpression = assertDoExpression; +exports.assertDoWhileStatement = assertDoWhileStatement; +exports.assertEmptyStatement = assertEmptyStatement; +exports.assertEmptyTypeAnnotation = assertEmptyTypeAnnotation; +exports.assertEnumBody = assertEnumBody; +exports.assertEnumBooleanBody = assertEnumBooleanBody; +exports.assertEnumBooleanMember = assertEnumBooleanMember; +exports.assertEnumDeclaration = assertEnumDeclaration; +exports.assertEnumDefaultedMember = assertEnumDefaultedMember; +exports.assertEnumMember = assertEnumMember; +exports.assertEnumNumberBody = assertEnumNumberBody; +exports.assertEnumNumberMember = assertEnumNumberMember; +exports.assertEnumStringBody = assertEnumStringBody; +exports.assertEnumStringMember = assertEnumStringMember; +exports.assertEnumSymbolBody = assertEnumSymbolBody; +exports.assertExistsTypeAnnotation = assertExistsTypeAnnotation; +exports.assertExportAllDeclaration = assertExportAllDeclaration; +exports.assertExportDeclaration = assertExportDeclaration; +exports.assertExportDefaultDeclaration = assertExportDefaultDeclaration; +exports.assertExportDefaultSpecifier = assertExportDefaultSpecifier; +exports.assertExportNamedDeclaration = assertExportNamedDeclaration; +exports.assertExportNamespaceSpecifier = assertExportNamespaceSpecifier; +exports.assertExportSpecifier = assertExportSpecifier; +exports.assertExpression = assertExpression; +exports.assertExpressionStatement = assertExpressionStatement; +exports.assertExpressionWrapper = assertExpressionWrapper; +exports.assertFile = assertFile; +exports.assertFlow = assertFlow; +exports.assertFlowBaseAnnotation = assertFlowBaseAnnotation; +exports.assertFlowDeclaration = assertFlowDeclaration; +exports.assertFlowPredicate = assertFlowPredicate; +exports.assertFlowType = assertFlowType; +exports.assertFor = assertFor; +exports.assertForInStatement = assertForInStatement; +exports.assertForOfStatement = assertForOfStatement; +exports.assertForStatement = assertForStatement; +exports.assertForXStatement = assertForXStatement; +exports.assertFunction = assertFunction; +exports.assertFunctionDeclaration = assertFunctionDeclaration; +exports.assertFunctionExpression = assertFunctionExpression; +exports.assertFunctionParent = assertFunctionParent; +exports.assertFunctionTypeAnnotation = assertFunctionTypeAnnotation; +exports.assertFunctionTypeParam = assertFunctionTypeParam; +exports.assertGenericTypeAnnotation = assertGenericTypeAnnotation; +exports.assertIdentifier = assertIdentifier; +exports.assertIfStatement = assertIfStatement; +exports.assertImmutable = assertImmutable; +exports.assertImport = assertImport; +exports.assertImportAttribute = assertImportAttribute; +exports.assertImportDeclaration = assertImportDeclaration; +exports.assertImportDefaultSpecifier = assertImportDefaultSpecifier; +exports.assertImportNamespaceSpecifier = assertImportNamespaceSpecifier; +exports.assertImportSpecifier = assertImportSpecifier; +exports.assertIndexedAccessType = assertIndexedAccessType; +exports.assertInferredPredicate = assertInferredPredicate; +exports.assertInterfaceDeclaration = assertInterfaceDeclaration; +exports.assertInterfaceExtends = assertInterfaceExtends; +exports.assertInterfaceTypeAnnotation = assertInterfaceTypeAnnotation; +exports.assertInterpreterDirective = assertInterpreterDirective; +exports.assertIntersectionTypeAnnotation = assertIntersectionTypeAnnotation; +exports.assertJSX = assertJSX; +exports.assertJSXAttribute = assertJSXAttribute; +exports.assertJSXClosingElement = assertJSXClosingElement; +exports.assertJSXClosingFragment = assertJSXClosingFragment; +exports.assertJSXElement = assertJSXElement; +exports.assertJSXEmptyExpression = assertJSXEmptyExpression; +exports.assertJSXExpressionContainer = assertJSXExpressionContainer; +exports.assertJSXFragment = assertJSXFragment; +exports.assertJSXIdentifier = assertJSXIdentifier; +exports.assertJSXMemberExpression = assertJSXMemberExpression; +exports.assertJSXNamespacedName = assertJSXNamespacedName; +exports.assertJSXOpeningElement = assertJSXOpeningElement; +exports.assertJSXOpeningFragment = assertJSXOpeningFragment; +exports.assertJSXSpreadAttribute = assertJSXSpreadAttribute; +exports.assertJSXSpreadChild = assertJSXSpreadChild; +exports.assertJSXText = assertJSXText; +exports.assertLVal = assertLVal; +exports.assertLabeledStatement = assertLabeledStatement; +exports.assertLiteral = assertLiteral; +exports.assertLogicalExpression = assertLogicalExpression; +exports.assertLoop = assertLoop; +exports.assertMemberExpression = assertMemberExpression; +exports.assertMetaProperty = assertMetaProperty; +exports.assertMethod = assertMethod; +exports.assertMiscellaneous = assertMiscellaneous; +exports.assertMixedTypeAnnotation = assertMixedTypeAnnotation; +exports.assertModuleDeclaration = assertModuleDeclaration; +exports.assertModuleExpression = assertModuleExpression; +exports.assertModuleSpecifier = assertModuleSpecifier; +exports.assertNewExpression = assertNewExpression; +exports.assertNoop = assertNoop; +exports.assertNullLiteral = assertNullLiteral; +exports.assertNullLiteralTypeAnnotation = assertNullLiteralTypeAnnotation; +exports.assertNullableTypeAnnotation = assertNullableTypeAnnotation; +exports.assertNumberLiteral = assertNumberLiteral; +exports.assertNumberLiteralTypeAnnotation = assertNumberLiteralTypeAnnotation; +exports.assertNumberTypeAnnotation = assertNumberTypeAnnotation; +exports.assertNumericLiteral = assertNumericLiteral; +exports.assertObjectExpression = assertObjectExpression; +exports.assertObjectMember = assertObjectMember; +exports.assertObjectMethod = assertObjectMethod; +exports.assertObjectPattern = assertObjectPattern; +exports.assertObjectProperty = assertObjectProperty; +exports.assertObjectTypeAnnotation = assertObjectTypeAnnotation; +exports.assertObjectTypeCallProperty = assertObjectTypeCallProperty; +exports.assertObjectTypeIndexer = assertObjectTypeIndexer; +exports.assertObjectTypeInternalSlot = assertObjectTypeInternalSlot; +exports.assertObjectTypeProperty = assertObjectTypeProperty; +exports.assertObjectTypeSpreadProperty = assertObjectTypeSpreadProperty; +exports.assertOpaqueType = assertOpaqueType; +exports.assertOptionalCallExpression = assertOptionalCallExpression; +exports.assertOptionalIndexedAccessType = assertOptionalIndexedAccessType; +exports.assertOptionalMemberExpression = assertOptionalMemberExpression; +exports.assertParenthesizedExpression = assertParenthesizedExpression; +exports.assertPattern = assertPattern; +exports.assertPatternLike = assertPatternLike; +exports.assertPipelineBareFunction = assertPipelineBareFunction; +exports.assertPipelinePrimaryTopicReference = assertPipelinePrimaryTopicReference; +exports.assertPipelineTopicExpression = assertPipelineTopicExpression; +exports.assertPlaceholder = assertPlaceholder; +exports.assertPrivate = assertPrivate; +exports.assertPrivateName = assertPrivateName; +exports.assertProgram = assertProgram; +exports.assertProperty = assertProperty; +exports.assertPureish = assertPureish; +exports.assertQualifiedTypeIdentifier = assertQualifiedTypeIdentifier; +exports.assertRecordExpression = assertRecordExpression; +exports.assertRegExpLiteral = assertRegExpLiteral; +exports.assertRegexLiteral = assertRegexLiteral; +exports.assertRestElement = assertRestElement; +exports.assertRestProperty = assertRestProperty; +exports.assertReturnStatement = assertReturnStatement; +exports.assertScopable = assertScopable; +exports.assertSequenceExpression = assertSequenceExpression; +exports.assertSpreadElement = assertSpreadElement; +exports.assertSpreadProperty = assertSpreadProperty; +exports.assertStandardized = assertStandardized; +exports.assertStatement = assertStatement; +exports.assertStaticBlock = assertStaticBlock; +exports.assertStringLiteral = assertStringLiteral; +exports.assertStringLiteralTypeAnnotation = assertStringLiteralTypeAnnotation; +exports.assertStringTypeAnnotation = assertStringTypeAnnotation; +exports.assertSuper = assertSuper; +exports.assertSwitchCase = assertSwitchCase; +exports.assertSwitchStatement = assertSwitchStatement; +exports.assertSymbolTypeAnnotation = assertSymbolTypeAnnotation; +exports.assertTSAnyKeyword = assertTSAnyKeyword; +exports.assertTSArrayType = assertTSArrayType; +exports.assertTSAsExpression = assertTSAsExpression; +exports.assertTSBaseType = assertTSBaseType; +exports.assertTSBigIntKeyword = assertTSBigIntKeyword; +exports.assertTSBooleanKeyword = assertTSBooleanKeyword; +exports.assertTSCallSignatureDeclaration = assertTSCallSignatureDeclaration; +exports.assertTSConditionalType = assertTSConditionalType; +exports.assertTSConstructSignatureDeclaration = assertTSConstructSignatureDeclaration; +exports.assertTSConstructorType = assertTSConstructorType; +exports.assertTSDeclareFunction = assertTSDeclareFunction; +exports.assertTSDeclareMethod = assertTSDeclareMethod; +exports.assertTSEntityName = assertTSEntityName; +exports.assertTSEnumDeclaration = assertTSEnumDeclaration; +exports.assertTSEnumMember = assertTSEnumMember; +exports.assertTSExportAssignment = assertTSExportAssignment; +exports.assertTSExpressionWithTypeArguments = assertTSExpressionWithTypeArguments; +exports.assertTSExternalModuleReference = assertTSExternalModuleReference; +exports.assertTSFunctionType = assertTSFunctionType; +exports.assertTSImportEqualsDeclaration = assertTSImportEqualsDeclaration; +exports.assertTSImportType = assertTSImportType; +exports.assertTSIndexSignature = assertTSIndexSignature; +exports.assertTSIndexedAccessType = assertTSIndexedAccessType; +exports.assertTSInferType = assertTSInferType; +exports.assertTSInterfaceBody = assertTSInterfaceBody; +exports.assertTSInterfaceDeclaration = assertTSInterfaceDeclaration; +exports.assertTSIntersectionType = assertTSIntersectionType; +exports.assertTSIntrinsicKeyword = assertTSIntrinsicKeyword; +exports.assertTSLiteralType = assertTSLiteralType; +exports.assertTSMappedType = assertTSMappedType; +exports.assertTSMethodSignature = assertTSMethodSignature; +exports.assertTSModuleBlock = assertTSModuleBlock; +exports.assertTSModuleDeclaration = assertTSModuleDeclaration; +exports.assertTSNamedTupleMember = assertTSNamedTupleMember; +exports.assertTSNamespaceExportDeclaration = assertTSNamespaceExportDeclaration; +exports.assertTSNeverKeyword = assertTSNeverKeyword; +exports.assertTSNonNullExpression = assertTSNonNullExpression; +exports.assertTSNullKeyword = assertTSNullKeyword; +exports.assertTSNumberKeyword = assertTSNumberKeyword; +exports.assertTSObjectKeyword = assertTSObjectKeyword; +exports.assertTSOptionalType = assertTSOptionalType; +exports.assertTSParameterProperty = assertTSParameterProperty; +exports.assertTSParenthesizedType = assertTSParenthesizedType; +exports.assertTSPropertySignature = assertTSPropertySignature; +exports.assertTSQualifiedName = assertTSQualifiedName; +exports.assertTSRestType = assertTSRestType; +exports.assertTSStringKeyword = assertTSStringKeyword; +exports.assertTSSymbolKeyword = assertTSSymbolKeyword; +exports.assertTSThisType = assertTSThisType; +exports.assertTSTupleType = assertTSTupleType; +exports.assertTSType = assertTSType; +exports.assertTSTypeAliasDeclaration = assertTSTypeAliasDeclaration; +exports.assertTSTypeAnnotation = assertTSTypeAnnotation; +exports.assertTSTypeAssertion = assertTSTypeAssertion; +exports.assertTSTypeElement = assertTSTypeElement; +exports.assertTSTypeLiteral = assertTSTypeLiteral; +exports.assertTSTypeOperator = assertTSTypeOperator; +exports.assertTSTypeParameter = assertTSTypeParameter; +exports.assertTSTypeParameterDeclaration = assertTSTypeParameterDeclaration; +exports.assertTSTypeParameterInstantiation = assertTSTypeParameterInstantiation; +exports.assertTSTypePredicate = assertTSTypePredicate; +exports.assertTSTypeQuery = assertTSTypeQuery; +exports.assertTSTypeReference = assertTSTypeReference; +exports.assertTSUndefinedKeyword = assertTSUndefinedKeyword; +exports.assertTSUnionType = assertTSUnionType; +exports.assertTSUnknownKeyword = assertTSUnknownKeyword; +exports.assertTSVoidKeyword = assertTSVoidKeyword; +exports.assertTaggedTemplateExpression = assertTaggedTemplateExpression; +exports.assertTemplateElement = assertTemplateElement; +exports.assertTemplateLiteral = assertTemplateLiteral; +exports.assertTerminatorless = assertTerminatorless; +exports.assertThisExpression = assertThisExpression; +exports.assertThisTypeAnnotation = assertThisTypeAnnotation; +exports.assertThrowStatement = assertThrowStatement; +exports.assertTopicReference = assertTopicReference; +exports.assertTryStatement = assertTryStatement; +exports.assertTupleExpression = assertTupleExpression; +exports.assertTupleTypeAnnotation = assertTupleTypeAnnotation; +exports.assertTypeAlias = assertTypeAlias; +exports.assertTypeAnnotation = assertTypeAnnotation; +exports.assertTypeCastExpression = assertTypeCastExpression; +exports.assertTypeParameter = assertTypeParameter; +exports.assertTypeParameterDeclaration = assertTypeParameterDeclaration; +exports.assertTypeParameterInstantiation = assertTypeParameterInstantiation; +exports.assertTypeScript = assertTypeScript; +exports.assertTypeofTypeAnnotation = assertTypeofTypeAnnotation; +exports.assertUnaryExpression = assertUnaryExpression; +exports.assertUnaryLike = assertUnaryLike; +exports.assertUnionTypeAnnotation = assertUnionTypeAnnotation; +exports.assertUpdateExpression = assertUpdateExpression; +exports.assertUserWhitespacable = assertUserWhitespacable; +exports.assertV8IntrinsicIdentifier = assertV8IntrinsicIdentifier; +exports.assertVariableDeclaration = assertVariableDeclaration; +exports.assertVariableDeclarator = assertVariableDeclarator; +exports.assertVariance = assertVariance; +exports.assertVoidTypeAnnotation = assertVoidTypeAnnotation; +exports.assertWhile = assertWhile; +exports.assertWhileStatement = assertWhileStatement; +exports.assertWithStatement = assertWithStatement; +exports.assertYieldExpression = assertYieldExpression; + +var _is = require("../../validators/is"); + +function assert(type, node, opts) { + if (!(0, _is.default)(type, node, opts)) { + throw new Error(`Expected type "${type}" with option ${JSON.stringify(opts)}, ` + `but instead got "${node.type}".`); + } +} + +function assertArrayExpression(node, opts) { + assert("ArrayExpression", node, opts); +} + +function assertAssignmentExpression(node, opts) { + assert("AssignmentExpression", node, opts); +} + +function assertBinaryExpression(node, opts) { + assert("BinaryExpression", node, opts); +} + +function assertInterpreterDirective(node, opts) { + assert("InterpreterDirective", node, opts); +} + +function assertDirective(node, opts) { + assert("Directive", node, opts); +} + +function assertDirectiveLiteral(node, opts) { + assert("DirectiveLiteral", node, opts); +} + +function assertBlockStatement(node, opts) { + assert("BlockStatement", node, opts); +} + +function assertBreakStatement(node, opts) { + assert("BreakStatement", node, opts); +} + +function assertCallExpression(node, opts) { + assert("CallExpression", node, opts); +} + +function assertCatchClause(node, opts) { + assert("CatchClause", node, opts); +} + +function assertConditionalExpression(node, opts) { + assert("ConditionalExpression", node, opts); +} + +function assertContinueStatement(node, opts) { + assert("ContinueStatement", node, opts); +} + +function assertDebuggerStatement(node, opts) { + assert("DebuggerStatement", node, opts); +} + +function assertDoWhileStatement(node, opts) { + assert("DoWhileStatement", node, opts); +} + +function assertEmptyStatement(node, opts) { + assert("EmptyStatement", node, opts); +} + +function assertExpressionStatement(node, opts) { + assert("ExpressionStatement", node, opts); +} + +function assertFile(node, opts) { + assert("File", node, opts); +} + +function assertForInStatement(node, opts) { + assert("ForInStatement", node, opts); +} + +function assertForStatement(node, opts) { + assert("ForStatement", node, opts); +} + +function assertFunctionDeclaration(node, opts) { + assert("FunctionDeclaration", node, opts); +} + +function assertFunctionExpression(node, opts) { + assert("FunctionExpression", node, opts); +} + +function assertIdentifier(node, opts) { + assert("Identifier", node, opts); +} + +function assertIfStatement(node, opts) { + assert("IfStatement", node, opts); +} + +function assertLabeledStatement(node, opts) { + assert("LabeledStatement", node, opts); +} + +function assertStringLiteral(node, opts) { + assert("StringLiteral", node, opts); +} + +function assertNumericLiteral(node, opts) { + assert("NumericLiteral", node, opts); +} + +function assertNullLiteral(node, opts) { + assert("NullLiteral", node, opts); +} + +function assertBooleanLiteral(node, opts) { + assert("BooleanLiteral", node, opts); +} + +function assertRegExpLiteral(node, opts) { + assert("RegExpLiteral", node, opts); +} + +function assertLogicalExpression(node, opts) { + assert("LogicalExpression", node, opts); +} + +function assertMemberExpression(node, opts) { + assert("MemberExpression", node, opts); +} + +function assertNewExpression(node, opts) { + assert("NewExpression", node, opts); +} + +function assertProgram(node, opts) { + assert("Program", node, opts); +} + +function assertObjectExpression(node, opts) { + assert("ObjectExpression", node, opts); +} + +function assertObjectMethod(node, opts) { + assert("ObjectMethod", node, opts); +} + +function assertObjectProperty(node, opts) { + assert("ObjectProperty", node, opts); +} + +function assertRestElement(node, opts) { + assert("RestElement", node, opts); +} + +function assertReturnStatement(node, opts) { + assert("ReturnStatement", node, opts); +} + +function assertSequenceExpression(node, opts) { + assert("SequenceExpression", node, opts); +} + +function assertParenthesizedExpression(node, opts) { + assert("ParenthesizedExpression", node, opts); +} + +function assertSwitchCase(node, opts) { + assert("SwitchCase", node, opts); +} + +function assertSwitchStatement(node, opts) { + assert("SwitchStatement", node, opts); +} + +function assertThisExpression(node, opts) { + assert("ThisExpression", node, opts); +} + +function assertThrowStatement(node, opts) { + assert("ThrowStatement", node, opts); +} + +function assertTryStatement(node, opts) { + assert("TryStatement", node, opts); +} + +function assertUnaryExpression(node, opts) { + assert("UnaryExpression", node, opts); +} + +function assertUpdateExpression(node, opts) { + assert("UpdateExpression", node, opts); +} + +function assertVariableDeclaration(node, opts) { + assert("VariableDeclaration", node, opts); +} + +function assertVariableDeclarator(node, opts) { + assert("VariableDeclarator", node, opts); +} + +function assertWhileStatement(node, opts) { + assert("WhileStatement", node, opts); +} + +function assertWithStatement(node, opts) { + assert("WithStatement", node, opts); +} + +function assertAssignmentPattern(node, opts) { + assert("AssignmentPattern", node, opts); +} + +function assertArrayPattern(node, opts) { + assert("ArrayPattern", node, opts); +} + +function assertArrowFunctionExpression(node, opts) { + assert("ArrowFunctionExpression", node, opts); +} + +function assertClassBody(node, opts) { + assert("ClassBody", node, opts); +} + +function assertClassExpression(node, opts) { + assert("ClassExpression", node, opts); +} + +function assertClassDeclaration(node, opts) { + assert("ClassDeclaration", node, opts); +} + +function assertExportAllDeclaration(node, opts) { + assert("ExportAllDeclaration", node, opts); +} + +function assertExportDefaultDeclaration(node, opts) { + assert("ExportDefaultDeclaration", node, opts); +} + +function assertExportNamedDeclaration(node, opts) { + assert("ExportNamedDeclaration", node, opts); +} + +function assertExportSpecifier(node, opts) { + assert("ExportSpecifier", node, opts); +} + +function assertForOfStatement(node, opts) { + assert("ForOfStatement", node, opts); +} + +function assertImportDeclaration(node, opts) { + assert("ImportDeclaration", node, opts); +} + +function assertImportDefaultSpecifier(node, opts) { + assert("ImportDefaultSpecifier", node, opts); +} + +function assertImportNamespaceSpecifier(node, opts) { + assert("ImportNamespaceSpecifier", node, opts); +} + +function assertImportSpecifier(node, opts) { + assert("ImportSpecifier", node, opts); +} + +function assertMetaProperty(node, opts) { + assert("MetaProperty", node, opts); +} + +function assertClassMethod(node, opts) { + assert("ClassMethod", node, opts); +} + +function assertObjectPattern(node, opts) { + assert("ObjectPattern", node, opts); +} + +function assertSpreadElement(node, opts) { + assert("SpreadElement", node, opts); +} + +function assertSuper(node, opts) { + assert("Super", node, opts); +} + +function assertTaggedTemplateExpression(node, opts) { + assert("TaggedTemplateExpression", node, opts); +} + +function assertTemplateElement(node, opts) { + assert("TemplateElement", node, opts); +} + +function assertTemplateLiteral(node, opts) { + assert("TemplateLiteral", node, opts); +} + +function assertYieldExpression(node, opts) { + assert("YieldExpression", node, opts); +} + +function assertAwaitExpression(node, opts) { + assert("AwaitExpression", node, opts); +} + +function assertImport(node, opts) { + assert("Import", node, opts); +} + +function assertBigIntLiteral(node, opts) { + assert("BigIntLiteral", node, opts); +} + +function assertExportNamespaceSpecifier(node, opts) { + assert("ExportNamespaceSpecifier", node, opts); +} + +function assertOptionalMemberExpression(node, opts) { + assert("OptionalMemberExpression", node, opts); +} + +function assertOptionalCallExpression(node, opts) { + assert("OptionalCallExpression", node, opts); +} + +function assertClassProperty(node, opts) { + assert("ClassProperty", node, opts); +} + +function assertClassAccessorProperty(node, opts) { + assert("ClassAccessorProperty", node, opts); +} + +function assertClassPrivateProperty(node, opts) { + assert("ClassPrivateProperty", node, opts); +} + +function assertClassPrivateMethod(node, opts) { + assert("ClassPrivateMethod", node, opts); +} + +function assertPrivateName(node, opts) { + assert("PrivateName", node, opts); +} + +function assertStaticBlock(node, opts) { + assert("StaticBlock", node, opts); +} + +function assertAnyTypeAnnotation(node, opts) { + assert("AnyTypeAnnotation", node, opts); +} + +function assertArrayTypeAnnotation(node, opts) { + assert("ArrayTypeAnnotation", node, opts); +} + +function assertBooleanTypeAnnotation(node, opts) { + assert("BooleanTypeAnnotation", node, opts); +} + +function assertBooleanLiteralTypeAnnotation(node, opts) { + assert("BooleanLiteralTypeAnnotation", node, opts); +} + +function assertNullLiteralTypeAnnotation(node, opts) { + assert("NullLiteralTypeAnnotation", node, opts); +} + +function assertClassImplements(node, opts) { + assert("ClassImplements", node, opts); +} + +function assertDeclareClass(node, opts) { + assert("DeclareClass", node, opts); +} + +function assertDeclareFunction(node, opts) { + assert("DeclareFunction", node, opts); +} + +function assertDeclareInterface(node, opts) { + assert("DeclareInterface", node, opts); +} + +function assertDeclareModule(node, opts) { + assert("DeclareModule", node, opts); +} + +function assertDeclareModuleExports(node, opts) { + assert("DeclareModuleExports", node, opts); +} + +function assertDeclareTypeAlias(node, opts) { + assert("DeclareTypeAlias", node, opts); +} + +function assertDeclareOpaqueType(node, opts) { + assert("DeclareOpaqueType", node, opts); +} + +function assertDeclareVariable(node, opts) { + assert("DeclareVariable", node, opts); +} + +function assertDeclareExportDeclaration(node, opts) { + assert("DeclareExportDeclaration", node, opts); +} + +function assertDeclareExportAllDeclaration(node, opts) { + assert("DeclareExportAllDeclaration", node, opts); +} + +function assertDeclaredPredicate(node, opts) { + assert("DeclaredPredicate", node, opts); +} + +function assertExistsTypeAnnotation(node, opts) { + assert("ExistsTypeAnnotation", node, opts); +} + +function assertFunctionTypeAnnotation(node, opts) { + assert("FunctionTypeAnnotation", node, opts); +} + +function assertFunctionTypeParam(node, opts) { + assert("FunctionTypeParam", node, opts); +} + +function assertGenericTypeAnnotation(node, opts) { + assert("GenericTypeAnnotation", node, opts); +} + +function assertInferredPredicate(node, opts) { + assert("InferredPredicate", node, opts); +} + +function assertInterfaceExtends(node, opts) { + assert("InterfaceExtends", node, opts); +} + +function assertInterfaceDeclaration(node, opts) { + assert("InterfaceDeclaration", node, opts); +} + +function assertInterfaceTypeAnnotation(node, opts) { + assert("InterfaceTypeAnnotation", node, opts); +} + +function assertIntersectionTypeAnnotation(node, opts) { + assert("IntersectionTypeAnnotation", node, opts); +} + +function assertMixedTypeAnnotation(node, opts) { + assert("MixedTypeAnnotation", node, opts); +} + +function assertEmptyTypeAnnotation(node, opts) { + assert("EmptyTypeAnnotation", node, opts); +} + +function assertNullableTypeAnnotation(node, opts) { + assert("NullableTypeAnnotation", node, opts); +} + +function assertNumberLiteralTypeAnnotation(node, opts) { + assert("NumberLiteralTypeAnnotation", node, opts); +} + +function assertNumberTypeAnnotation(node, opts) { + assert("NumberTypeAnnotation", node, opts); +} + +function assertObjectTypeAnnotation(node, opts) { + assert("ObjectTypeAnnotation", node, opts); +} + +function assertObjectTypeInternalSlot(node, opts) { + assert("ObjectTypeInternalSlot", node, opts); +} + +function assertObjectTypeCallProperty(node, opts) { + assert("ObjectTypeCallProperty", node, opts); +} + +function assertObjectTypeIndexer(node, opts) { + assert("ObjectTypeIndexer", node, opts); +} + +function assertObjectTypeProperty(node, opts) { + assert("ObjectTypeProperty", node, opts); +} + +function assertObjectTypeSpreadProperty(node, opts) { + assert("ObjectTypeSpreadProperty", node, opts); +} + +function assertOpaqueType(node, opts) { + assert("OpaqueType", node, opts); +} + +function assertQualifiedTypeIdentifier(node, opts) { + assert("QualifiedTypeIdentifier", node, opts); +} + +function assertStringLiteralTypeAnnotation(node, opts) { + assert("StringLiteralTypeAnnotation", node, opts); +} + +function assertStringTypeAnnotation(node, opts) { + assert("StringTypeAnnotation", node, opts); +} + +function assertSymbolTypeAnnotation(node, opts) { + assert("SymbolTypeAnnotation", node, opts); +} + +function assertThisTypeAnnotation(node, opts) { + assert("ThisTypeAnnotation", node, opts); +} + +function assertTupleTypeAnnotation(node, opts) { + assert("TupleTypeAnnotation", node, opts); +} + +function assertTypeofTypeAnnotation(node, opts) { + assert("TypeofTypeAnnotation", node, opts); +} + +function assertTypeAlias(node, opts) { + assert("TypeAlias", node, opts); +} + +function assertTypeAnnotation(node, opts) { + assert("TypeAnnotation", node, opts); +} + +function assertTypeCastExpression(node, opts) { + assert("TypeCastExpression", node, opts); +} + +function assertTypeParameter(node, opts) { + assert("TypeParameter", node, opts); +} + +function assertTypeParameterDeclaration(node, opts) { + assert("TypeParameterDeclaration", node, opts); +} + +function assertTypeParameterInstantiation(node, opts) { + assert("TypeParameterInstantiation", node, opts); +} + +function assertUnionTypeAnnotation(node, opts) { + assert("UnionTypeAnnotation", node, opts); +} + +function assertVariance(node, opts) { + assert("Variance", node, opts); +} + +function assertVoidTypeAnnotation(node, opts) { + assert("VoidTypeAnnotation", node, opts); +} + +function assertEnumDeclaration(node, opts) { + assert("EnumDeclaration", node, opts); +} + +function assertEnumBooleanBody(node, opts) { + assert("EnumBooleanBody", node, opts); +} + +function assertEnumNumberBody(node, opts) { + assert("EnumNumberBody", node, opts); +} + +function assertEnumStringBody(node, opts) { + assert("EnumStringBody", node, opts); +} + +function assertEnumSymbolBody(node, opts) { + assert("EnumSymbolBody", node, opts); +} + +function assertEnumBooleanMember(node, opts) { + assert("EnumBooleanMember", node, opts); +} + +function assertEnumNumberMember(node, opts) { + assert("EnumNumberMember", node, opts); +} + +function assertEnumStringMember(node, opts) { + assert("EnumStringMember", node, opts); +} + +function assertEnumDefaultedMember(node, opts) { + assert("EnumDefaultedMember", node, opts); +} + +function assertIndexedAccessType(node, opts) { + assert("IndexedAccessType", node, opts); +} + +function assertOptionalIndexedAccessType(node, opts) { + assert("OptionalIndexedAccessType", node, opts); +} + +function assertJSXAttribute(node, opts) { + assert("JSXAttribute", node, opts); +} + +function assertJSXClosingElement(node, opts) { + assert("JSXClosingElement", node, opts); +} + +function assertJSXElement(node, opts) { + assert("JSXElement", node, opts); +} + +function assertJSXEmptyExpression(node, opts) { + assert("JSXEmptyExpression", node, opts); +} + +function assertJSXExpressionContainer(node, opts) { + assert("JSXExpressionContainer", node, opts); +} + +function assertJSXSpreadChild(node, opts) { + assert("JSXSpreadChild", node, opts); +} + +function assertJSXIdentifier(node, opts) { + assert("JSXIdentifier", node, opts); +} + +function assertJSXMemberExpression(node, opts) { + assert("JSXMemberExpression", node, opts); +} + +function assertJSXNamespacedName(node, opts) { + assert("JSXNamespacedName", node, opts); +} + +function assertJSXOpeningElement(node, opts) { + assert("JSXOpeningElement", node, opts); +} + +function assertJSXSpreadAttribute(node, opts) { + assert("JSXSpreadAttribute", node, opts); +} + +function assertJSXText(node, opts) { + assert("JSXText", node, opts); +} + +function assertJSXFragment(node, opts) { + assert("JSXFragment", node, opts); +} + +function assertJSXOpeningFragment(node, opts) { + assert("JSXOpeningFragment", node, opts); +} + +function assertJSXClosingFragment(node, opts) { + assert("JSXClosingFragment", node, opts); +} + +function assertNoop(node, opts) { + assert("Noop", node, opts); +} + +function assertPlaceholder(node, opts) { + assert("Placeholder", node, opts); +} + +function assertV8IntrinsicIdentifier(node, opts) { + assert("V8IntrinsicIdentifier", node, opts); +} + +function assertArgumentPlaceholder(node, opts) { + assert("ArgumentPlaceholder", node, opts); +} + +function assertBindExpression(node, opts) { + assert("BindExpression", node, opts); +} + +function assertImportAttribute(node, opts) { + assert("ImportAttribute", node, opts); +} + +function assertDecorator(node, opts) { + assert("Decorator", node, opts); +} + +function assertDoExpression(node, opts) { + assert("DoExpression", node, opts); +} + +function assertExportDefaultSpecifier(node, opts) { + assert("ExportDefaultSpecifier", node, opts); +} + +function assertRecordExpression(node, opts) { + assert("RecordExpression", node, opts); +} + +function assertTupleExpression(node, opts) { + assert("TupleExpression", node, opts); +} + +function assertDecimalLiteral(node, opts) { + assert("DecimalLiteral", node, opts); +} + +function assertModuleExpression(node, opts) { + assert("ModuleExpression", node, opts); +} + +function assertTopicReference(node, opts) { + assert("TopicReference", node, opts); +} + +function assertPipelineTopicExpression(node, opts) { + assert("PipelineTopicExpression", node, opts); +} + +function assertPipelineBareFunction(node, opts) { + assert("PipelineBareFunction", node, opts); +} + +function assertPipelinePrimaryTopicReference(node, opts) { + assert("PipelinePrimaryTopicReference", node, opts); +} + +function assertTSParameterProperty(node, opts) { + assert("TSParameterProperty", node, opts); +} + +function assertTSDeclareFunction(node, opts) { + assert("TSDeclareFunction", node, opts); +} + +function assertTSDeclareMethod(node, opts) { + assert("TSDeclareMethod", node, opts); +} + +function assertTSQualifiedName(node, opts) { + assert("TSQualifiedName", node, opts); +} + +function assertTSCallSignatureDeclaration(node, opts) { + assert("TSCallSignatureDeclaration", node, opts); +} + +function assertTSConstructSignatureDeclaration(node, opts) { + assert("TSConstructSignatureDeclaration", node, opts); +} + +function assertTSPropertySignature(node, opts) { + assert("TSPropertySignature", node, opts); +} + +function assertTSMethodSignature(node, opts) { + assert("TSMethodSignature", node, opts); +} + +function assertTSIndexSignature(node, opts) { + assert("TSIndexSignature", node, opts); +} + +function assertTSAnyKeyword(node, opts) { + assert("TSAnyKeyword", node, opts); +} + +function assertTSBooleanKeyword(node, opts) { + assert("TSBooleanKeyword", node, opts); +} + +function assertTSBigIntKeyword(node, opts) { + assert("TSBigIntKeyword", node, opts); +} + +function assertTSIntrinsicKeyword(node, opts) { + assert("TSIntrinsicKeyword", node, opts); +} + +function assertTSNeverKeyword(node, opts) { + assert("TSNeverKeyword", node, opts); +} + +function assertTSNullKeyword(node, opts) { + assert("TSNullKeyword", node, opts); +} + +function assertTSNumberKeyword(node, opts) { + assert("TSNumberKeyword", node, opts); +} + +function assertTSObjectKeyword(node, opts) { + assert("TSObjectKeyword", node, opts); +} + +function assertTSStringKeyword(node, opts) { + assert("TSStringKeyword", node, opts); +} + +function assertTSSymbolKeyword(node, opts) { + assert("TSSymbolKeyword", node, opts); +} + +function assertTSUndefinedKeyword(node, opts) { + assert("TSUndefinedKeyword", node, opts); +} + +function assertTSUnknownKeyword(node, opts) { + assert("TSUnknownKeyword", node, opts); +} + +function assertTSVoidKeyword(node, opts) { + assert("TSVoidKeyword", node, opts); +} + +function assertTSThisType(node, opts) { + assert("TSThisType", node, opts); +} + +function assertTSFunctionType(node, opts) { + assert("TSFunctionType", node, opts); +} + +function assertTSConstructorType(node, opts) { + assert("TSConstructorType", node, opts); +} + +function assertTSTypeReference(node, opts) { + assert("TSTypeReference", node, opts); +} + +function assertTSTypePredicate(node, opts) { + assert("TSTypePredicate", node, opts); +} + +function assertTSTypeQuery(node, opts) { + assert("TSTypeQuery", node, opts); +} + +function assertTSTypeLiteral(node, opts) { + assert("TSTypeLiteral", node, opts); +} + +function assertTSArrayType(node, opts) { + assert("TSArrayType", node, opts); +} + +function assertTSTupleType(node, opts) { + assert("TSTupleType", node, opts); +} + +function assertTSOptionalType(node, opts) { + assert("TSOptionalType", node, opts); +} + +function assertTSRestType(node, opts) { + assert("TSRestType", node, opts); +} + +function assertTSNamedTupleMember(node, opts) { + assert("TSNamedTupleMember", node, opts); +} + +function assertTSUnionType(node, opts) { + assert("TSUnionType", node, opts); +} + +function assertTSIntersectionType(node, opts) { + assert("TSIntersectionType", node, opts); +} + +function assertTSConditionalType(node, opts) { + assert("TSConditionalType", node, opts); +} + +function assertTSInferType(node, opts) { + assert("TSInferType", node, opts); +} + +function assertTSParenthesizedType(node, opts) { + assert("TSParenthesizedType", node, opts); +} + +function assertTSTypeOperator(node, opts) { + assert("TSTypeOperator", node, opts); +} + +function assertTSIndexedAccessType(node, opts) { + assert("TSIndexedAccessType", node, opts); +} + +function assertTSMappedType(node, opts) { + assert("TSMappedType", node, opts); +} + +function assertTSLiteralType(node, opts) { + assert("TSLiteralType", node, opts); +} + +function assertTSExpressionWithTypeArguments(node, opts) { + assert("TSExpressionWithTypeArguments", node, opts); +} + +function assertTSInterfaceDeclaration(node, opts) { + assert("TSInterfaceDeclaration", node, opts); +} + +function assertTSInterfaceBody(node, opts) { + assert("TSInterfaceBody", node, opts); +} + +function assertTSTypeAliasDeclaration(node, opts) { + assert("TSTypeAliasDeclaration", node, opts); +} + +function assertTSAsExpression(node, opts) { + assert("TSAsExpression", node, opts); +} + +function assertTSTypeAssertion(node, opts) { + assert("TSTypeAssertion", node, opts); +} + +function assertTSEnumDeclaration(node, opts) { + assert("TSEnumDeclaration", node, opts); +} + +function assertTSEnumMember(node, opts) { + assert("TSEnumMember", node, opts); +} + +function assertTSModuleDeclaration(node, opts) { + assert("TSModuleDeclaration", node, opts); +} + +function assertTSModuleBlock(node, opts) { + assert("TSModuleBlock", node, opts); +} + +function assertTSImportType(node, opts) { + assert("TSImportType", node, opts); +} + +function assertTSImportEqualsDeclaration(node, opts) { + assert("TSImportEqualsDeclaration", node, opts); +} + +function assertTSExternalModuleReference(node, opts) { + assert("TSExternalModuleReference", node, opts); +} + +function assertTSNonNullExpression(node, opts) { + assert("TSNonNullExpression", node, opts); +} + +function assertTSExportAssignment(node, opts) { + assert("TSExportAssignment", node, opts); +} + +function assertTSNamespaceExportDeclaration(node, opts) { + assert("TSNamespaceExportDeclaration", node, opts); +} + +function assertTSTypeAnnotation(node, opts) { + assert("TSTypeAnnotation", node, opts); +} + +function assertTSTypeParameterInstantiation(node, opts) { + assert("TSTypeParameterInstantiation", node, opts); +} + +function assertTSTypeParameterDeclaration(node, opts) { + assert("TSTypeParameterDeclaration", node, opts); +} + +function assertTSTypeParameter(node, opts) { + assert("TSTypeParameter", node, opts); +} + +function assertStandardized(node, opts) { + assert("Standardized", node, opts); +} + +function assertExpression(node, opts) { + assert("Expression", node, opts); +} + +function assertBinary(node, opts) { + assert("Binary", node, opts); +} + +function assertScopable(node, opts) { + assert("Scopable", node, opts); +} + +function assertBlockParent(node, opts) { + assert("BlockParent", node, opts); +} + +function assertBlock(node, opts) { + assert("Block", node, opts); +} + +function assertStatement(node, opts) { + assert("Statement", node, opts); +} + +function assertTerminatorless(node, opts) { + assert("Terminatorless", node, opts); +} + +function assertCompletionStatement(node, opts) { + assert("CompletionStatement", node, opts); +} + +function assertConditional(node, opts) { + assert("Conditional", node, opts); +} + +function assertLoop(node, opts) { + assert("Loop", node, opts); +} + +function assertWhile(node, opts) { + assert("While", node, opts); +} + +function assertExpressionWrapper(node, opts) { + assert("ExpressionWrapper", node, opts); +} + +function assertFor(node, opts) { + assert("For", node, opts); +} + +function assertForXStatement(node, opts) { + assert("ForXStatement", node, opts); +} + +function assertFunction(node, opts) { + assert("Function", node, opts); +} + +function assertFunctionParent(node, opts) { + assert("FunctionParent", node, opts); +} + +function assertPureish(node, opts) { + assert("Pureish", node, opts); +} + +function assertDeclaration(node, opts) { + assert("Declaration", node, opts); +} + +function assertPatternLike(node, opts) { + assert("PatternLike", node, opts); +} + +function assertLVal(node, opts) { + assert("LVal", node, opts); +} + +function assertTSEntityName(node, opts) { + assert("TSEntityName", node, opts); +} + +function assertLiteral(node, opts) { + assert("Literal", node, opts); +} + +function assertImmutable(node, opts) { + assert("Immutable", node, opts); +} + +function assertUserWhitespacable(node, opts) { + assert("UserWhitespacable", node, opts); +} + +function assertMethod(node, opts) { + assert("Method", node, opts); +} + +function assertObjectMember(node, opts) { + assert("ObjectMember", node, opts); +} + +function assertProperty(node, opts) { + assert("Property", node, opts); +} + +function assertUnaryLike(node, opts) { + assert("UnaryLike", node, opts); +} + +function assertPattern(node, opts) { + assert("Pattern", node, opts); +} + +function assertClass(node, opts) { + assert("Class", node, opts); +} + +function assertModuleDeclaration(node, opts) { + assert("ModuleDeclaration", node, opts); +} + +function assertExportDeclaration(node, opts) { + assert("ExportDeclaration", node, opts); +} + +function assertModuleSpecifier(node, opts) { + assert("ModuleSpecifier", node, opts); +} + +function assertAccessor(node, opts) { + assert("Accessor", node, opts); +} + +function assertPrivate(node, opts) { + assert("Private", node, opts); +} + +function assertFlow(node, opts) { + assert("Flow", node, opts); +} + +function assertFlowType(node, opts) { + assert("FlowType", node, opts); +} + +function assertFlowBaseAnnotation(node, opts) { + assert("FlowBaseAnnotation", node, opts); +} + +function assertFlowDeclaration(node, opts) { + assert("FlowDeclaration", node, opts); +} + +function assertFlowPredicate(node, opts) { + assert("FlowPredicate", node, opts); +} + +function assertEnumBody(node, opts) { + assert("EnumBody", node, opts); +} + +function assertEnumMember(node, opts) { + assert("EnumMember", node, opts); +} + +function assertJSX(node, opts) { + assert("JSX", node, opts); +} + +function assertMiscellaneous(node, opts) { + assert("Miscellaneous", node, opts); +} + +function assertTypeScript(node, opts) { + assert("TypeScript", node, opts); +} + +function assertTSTypeElement(node, opts) { + assert("TSTypeElement", node, opts); +} + +function assertTSType(node, opts) { + assert("TSType", node, opts); +} + +function assertTSBaseType(node, opts) { + assert("TSBaseType", node, opts); +} + +function assertNumberLiteral(node, opts) { + console.trace("The node type NumberLiteral has been renamed to NumericLiteral"); + assert("NumberLiteral", node, opts); +} + +function assertRegexLiteral(node, opts) { + console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"); + assert("RegexLiteral", node, opts); +} + +function assertRestProperty(node, opts) { + console.trace("The node type RestProperty has been renamed to RestElement"); + assert("RestProperty", node, opts); +} + +function assertSpreadProperty(node, opts) { + console.trace("The node type SpreadProperty has been renamed to SpreadElement"); + assert("SpreadProperty", node, opts); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/ast-types/generated/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/ast-types/generated/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/builder.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/builder.js" new file mode 100644 index 0000000000000000000000000000000000000000..c28edb62506ef84b92192e35aaa783b3b1882860 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/builder.js" @@ -0,0 +1,43 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = builder; + +var _definitions = require("../definitions"); + +var _validate = require("../validators/validate"); + +function builder() { + const type = this; + const keys = _definitions.BUILDER_KEYS[type]; + const countArgs = arguments.length; + + if (countArgs > keys.length) { + throw new Error(`${type}: Too many arguments passed. Received ${countArgs} but can receive no more than ${keys.length}`); + } + + const node = { + type + }; + + for (let i = 0; i < keys.length; ++i) { + const key = keys[i]; + const field = _definitions.NODE_FIELDS[type][key]; + let arg; + if (i < countArgs) arg = arguments[i]; + + if (arg === undefined) { + arg = Array.isArray(field.default) ? [] : field.default; + } + + node[key] = arg; + } + + for (const key in node) { + (0, _validate.default)(node, key, node[key]); + } + + return node; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js" new file mode 100644 index 0000000000000000000000000000000000000000..ddf20fdd3ae62e2a432ec5f077367784afe48e83 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js" @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = createFlowUnionType; + +var _generated = require("../generated"); + +var _removeTypeDuplicates = require("../../modifications/flow/removeTypeDuplicates"); + +function createFlowUnionType(types) { + const flattened = (0, _removeTypeDuplicates.default)(types); + + if (flattened.length === 1) { + return flattened[0]; + } else { + return (0, _generated.unionTypeAnnotation)(flattened); + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js" new file mode 100644 index 0000000000000000000000000000000000000000..11dca055953e3d335f6764981b7c73fb1354d12f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js" @@ -0,0 +1,41 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _generated = require("../generated"); + +var _default = createTypeAnnotationBasedOnTypeof; +exports.default = _default; + +function createTypeAnnotationBasedOnTypeof(type) { + switch (type) { + case "string": + return (0, _generated.stringTypeAnnotation)(); + + case "number": + return (0, _generated.numberTypeAnnotation)(); + + case "undefined": + return (0, _generated.voidTypeAnnotation)(); + + case "boolean": + return (0, _generated.booleanTypeAnnotation)(); + + case "function": + return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Function")); + + case "object": + return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Object")); + + case "symbol": + return (0, _generated.genericTypeAnnotation)((0, _generated.identifier)("Symbol")); + + case "bigint": + return (0, _generated.anyTypeAnnotation)(); + } + + throw new Error("Invalid typeof value: " + type); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/generated/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/generated/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..99851ee0bf9c8ed62c2f811506af175dd819155b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/generated/index.js" @@ -0,0 +1,1266 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.anyTypeAnnotation = anyTypeAnnotation; +exports.argumentPlaceholder = argumentPlaceholder; +exports.arrayExpression = arrayExpression; +exports.arrayPattern = arrayPattern; +exports.arrayTypeAnnotation = arrayTypeAnnotation; +exports.arrowFunctionExpression = arrowFunctionExpression; +exports.assignmentExpression = assignmentExpression; +exports.assignmentPattern = assignmentPattern; +exports.awaitExpression = awaitExpression; +exports.bigIntLiteral = bigIntLiteral; +exports.binaryExpression = binaryExpression; +exports.bindExpression = bindExpression; +exports.blockStatement = blockStatement; +exports.booleanLiteral = booleanLiteral; +exports.booleanLiteralTypeAnnotation = booleanLiteralTypeAnnotation; +exports.booleanTypeAnnotation = booleanTypeAnnotation; +exports.breakStatement = breakStatement; +exports.callExpression = callExpression; +exports.catchClause = catchClause; +exports.classAccessorProperty = classAccessorProperty; +exports.classBody = classBody; +exports.classDeclaration = classDeclaration; +exports.classExpression = classExpression; +exports.classImplements = classImplements; +exports.classMethod = classMethod; +exports.classPrivateMethod = classPrivateMethod; +exports.classPrivateProperty = classPrivateProperty; +exports.classProperty = classProperty; +exports.conditionalExpression = conditionalExpression; +exports.continueStatement = continueStatement; +exports.debuggerStatement = debuggerStatement; +exports.decimalLiteral = decimalLiteral; +exports.declareClass = declareClass; +exports.declareExportAllDeclaration = declareExportAllDeclaration; +exports.declareExportDeclaration = declareExportDeclaration; +exports.declareFunction = declareFunction; +exports.declareInterface = declareInterface; +exports.declareModule = declareModule; +exports.declareModuleExports = declareModuleExports; +exports.declareOpaqueType = declareOpaqueType; +exports.declareTypeAlias = declareTypeAlias; +exports.declareVariable = declareVariable; +exports.declaredPredicate = declaredPredicate; +exports.decorator = decorator; +exports.directive = directive; +exports.directiveLiteral = directiveLiteral; +exports.doExpression = doExpression; +exports.doWhileStatement = doWhileStatement; +exports.emptyStatement = emptyStatement; +exports.emptyTypeAnnotation = emptyTypeAnnotation; +exports.enumBooleanBody = enumBooleanBody; +exports.enumBooleanMember = enumBooleanMember; +exports.enumDeclaration = enumDeclaration; +exports.enumDefaultedMember = enumDefaultedMember; +exports.enumNumberBody = enumNumberBody; +exports.enumNumberMember = enumNumberMember; +exports.enumStringBody = enumStringBody; +exports.enumStringMember = enumStringMember; +exports.enumSymbolBody = enumSymbolBody; +exports.existsTypeAnnotation = existsTypeAnnotation; +exports.exportAllDeclaration = exportAllDeclaration; +exports.exportDefaultDeclaration = exportDefaultDeclaration; +exports.exportDefaultSpecifier = exportDefaultSpecifier; +exports.exportNamedDeclaration = exportNamedDeclaration; +exports.exportNamespaceSpecifier = exportNamespaceSpecifier; +exports.exportSpecifier = exportSpecifier; +exports.expressionStatement = expressionStatement; +exports.file = file; +exports.forInStatement = forInStatement; +exports.forOfStatement = forOfStatement; +exports.forStatement = forStatement; +exports.functionDeclaration = functionDeclaration; +exports.functionExpression = functionExpression; +exports.functionTypeAnnotation = functionTypeAnnotation; +exports.functionTypeParam = functionTypeParam; +exports.genericTypeAnnotation = genericTypeAnnotation; +exports.identifier = identifier; +exports.ifStatement = ifStatement; +exports.import = _import; +exports.importAttribute = importAttribute; +exports.importDeclaration = importDeclaration; +exports.importDefaultSpecifier = importDefaultSpecifier; +exports.importNamespaceSpecifier = importNamespaceSpecifier; +exports.importSpecifier = importSpecifier; +exports.indexedAccessType = indexedAccessType; +exports.inferredPredicate = inferredPredicate; +exports.interfaceDeclaration = interfaceDeclaration; +exports.interfaceExtends = interfaceExtends; +exports.interfaceTypeAnnotation = interfaceTypeAnnotation; +exports.interpreterDirective = interpreterDirective; +exports.intersectionTypeAnnotation = intersectionTypeAnnotation; +exports.jSXAttribute = exports.jsxAttribute = jsxAttribute; +exports.jSXClosingElement = exports.jsxClosingElement = jsxClosingElement; +exports.jSXClosingFragment = exports.jsxClosingFragment = jsxClosingFragment; +exports.jSXElement = exports.jsxElement = jsxElement; +exports.jSXEmptyExpression = exports.jsxEmptyExpression = jsxEmptyExpression; +exports.jSXExpressionContainer = exports.jsxExpressionContainer = jsxExpressionContainer; +exports.jSXFragment = exports.jsxFragment = jsxFragment; +exports.jSXIdentifier = exports.jsxIdentifier = jsxIdentifier; +exports.jSXMemberExpression = exports.jsxMemberExpression = jsxMemberExpression; +exports.jSXNamespacedName = exports.jsxNamespacedName = jsxNamespacedName; +exports.jSXOpeningElement = exports.jsxOpeningElement = jsxOpeningElement; +exports.jSXOpeningFragment = exports.jsxOpeningFragment = jsxOpeningFragment; +exports.jSXSpreadAttribute = exports.jsxSpreadAttribute = jsxSpreadAttribute; +exports.jSXSpreadChild = exports.jsxSpreadChild = jsxSpreadChild; +exports.jSXText = exports.jsxText = jsxText; +exports.labeledStatement = labeledStatement; +exports.logicalExpression = logicalExpression; +exports.memberExpression = memberExpression; +exports.metaProperty = metaProperty; +exports.mixedTypeAnnotation = mixedTypeAnnotation; +exports.moduleExpression = moduleExpression; +exports.newExpression = newExpression; +exports.noop = noop; +exports.nullLiteral = nullLiteral; +exports.nullLiteralTypeAnnotation = nullLiteralTypeAnnotation; +exports.nullableTypeAnnotation = nullableTypeAnnotation; +exports.numberLiteral = NumberLiteral; +exports.numberLiteralTypeAnnotation = numberLiteralTypeAnnotation; +exports.numberTypeAnnotation = numberTypeAnnotation; +exports.numericLiteral = numericLiteral; +exports.objectExpression = objectExpression; +exports.objectMethod = objectMethod; +exports.objectPattern = objectPattern; +exports.objectProperty = objectProperty; +exports.objectTypeAnnotation = objectTypeAnnotation; +exports.objectTypeCallProperty = objectTypeCallProperty; +exports.objectTypeIndexer = objectTypeIndexer; +exports.objectTypeInternalSlot = objectTypeInternalSlot; +exports.objectTypeProperty = objectTypeProperty; +exports.objectTypeSpreadProperty = objectTypeSpreadProperty; +exports.opaqueType = opaqueType; +exports.optionalCallExpression = optionalCallExpression; +exports.optionalIndexedAccessType = optionalIndexedAccessType; +exports.optionalMemberExpression = optionalMemberExpression; +exports.parenthesizedExpression = parenthesizedExpression; +exports.pipelineBareFunction = pipelineBareFunction; +exports.pipelinePrimaryTopicReference = pipelinePrimaryTopicReference; +exports.pipelineTopicExpression = pipelineTopicExpression; +exports.placeholder = placeholder; +exports.privateName = privateName; +exports.program = program; +exports.qualifiedTypeIdentifier = qualifiedTypeIdentifier; +exports.recordExpression = recordExpression; +exports.regExpLiteral = regExpLiteral; +exports.regexLiteral = RegexLiteral; +exports.restElement = restElement; +exports.restProperty = RestProperty; +exports.returnStatement = returnStatement; +exports.sequenceExpression = sequenceExpression; +exports.spreadElement = spreadElement; +exports.spreadProperty = SpreadProperty; +exports.staticBlock = staticBlock; +exports.stringLiteral = stringLiteral; +exports.stringLiteralTypeAnnotation = stringLiteralTypeAnnotation; +exports.stringTypeAnnotation = stringTypeAnnotation; +exports.super = _super; +exports.switchCase = switchCase; +exports.switchStatement = switchStatement; +exports.symbolTypeAnnotation = symbolTypeAnnotation; +exports.taggedTemplateExpression = taggedTemplateExpression; +exports.templateElement = templateElement; +exports.templateLiteral = templateLiteral; +exports.thisExpression = thisExpression; +exports.thisTypeAnnotation = thisTypeAnnotation; +exports.throwStatement = throwStatement; +exports.topicReference = topicReference; +exports.tryStatement = tryStatement; +exports.tSAnyKeyword = exports.tsAnyKeyword = tsAnyKeyword; +exports.tSArrayType = exports.tsArrayType = tsArrayType; +exports.tSAsExpression = exports.tsAsExpression = tsAsExpression; +exports.tSBigIntKeyword = exports.tsBigIntKeyword = tsBigIntKeyword; +exports.tSBooleanKeyword = exports.tsBooleanKeyword = tsBooleanKeyword; +exports.tSCallSignatureDeclaration = exports.tsCallSignatureDeclaration = tsCallSignatureDeclaration; +exports.tSConditionalType = exports.tsConditionalType = tsConditionalType; +exports.tSConstructSignatureDeclaration = exports.tsConstructSignatureDeclaration = tsConstructSignatureDeclaration; +exports.tSConstructorType = exports.tsConstructorType = tsConstructorType; +exports.tSDeclareFunction = exports.tsDeclareFunction = tsDeclareFunction; +exports.tSDeclareMethod = exports.tsDeclareMethod = tsDeclareMethod; +exports.tSEnumDeclaration = exports.tsEnumDeclaration = tsEnumDeclaration; +exports.tSEnumMember = exports.tsEnumMember = tsEnumMember; +exports.tSExportAssignment = exports.tsExportAssignment = tsExportAssignment; +exports.tSExpressionWithTypeArguments = exports.tsExpressionWithTypeArguments = tsExpressionWithTypeArguments; +exports.tSExternalModuleReference = exports.tsExternalModuleReference = tsExternalModuleReference; +exports.tSFunctionType = exports.tsFunctionType = tsFunctionType; +exports.tSImportEqualsDeclaration = exports.tsImportEqualsDeclaration = tsImportEqualsDeclaration; +exports.tSImportType = exports.tsImportType = tsImportType; +exports.tSIndexSignature = exports.tsIndexSignature = tsIndexSignature; +exports.tSIndexedAccessType = exports.tsIndexedAccessType = tsIndexedAccessType; +exports.tSInferType = exports.tsInferType = tsInferType; +exports.tSInterfaceBody = exports.tsInterfaceBody = tsInterfaceBody; +exports.tSInterfaceDeclaration = exports.tsInterfaceDeclaration = tsInterfaceDeclaration; +exports.tSIntersectionType = exports.tsIntersectionType = tsIntersectionType; +exports.tSIntrinsicKeyword = exports.tsIntrinsicKeyword = tsIntrinsicKeyword; +exports.tSLiteralType = exports.tsLiteralType = tsLiteralType; +exports.tSMappedType = exports.tsMappedType = tsMappedType; +exports.tSMethodSignature = exports.tsMethodSignature = tsMethodSignature; +exports.tSModuleBlock = exports.tsModuleBlock = tsModuleBlock; +exports.tSModuleDeclaration = exports.tsModuleDeclaration = tsModuleDeclaration; +exports.tSNamedTupleMember = exports.tsNamedTupleMember = tsNamedTupleMember; +exports.tSNamespaceExportDeclaration = exports.tsNamespaceExportDeclaration = tsNamespaceExportDeclaration; +exports.tSNeverKeyword = exports.tsNeverKeyword = tsNeverKeyword; +exports.tSNonNullExpression = exports.tsNonNullExpression = tsNonNullExpression; +exports.tSNullKeyword = exports.tsNullKeyword = tsNullKeyword; +exports.tSNumberKeyword = exports.tsNumberKeyword = tsNumberKeyword; +exports.tSObjectKeyword = exports.tsObjectKeyword = tsObjectKeyword; +exports.tSOptionalType = exports.tsOptionalType = tsOptionalType; +exports.tSParameterProperty = exports.tsParameterProperty = tsParameterProperty; +exports.tSParenthesizedType = exports.tsParenthesizedType = tsParenthesizedType; +exports.tSPropertySignature = exports.tsPropertySignature = tsPropertySignature; +exports.tSQualifiedName = exports.tsQualifiedName = tsQualifiedName; +exports.tSRestType = exports.tsRestType = tsRestType; +exports.tSStringKeyword = exports.tsStringKeyword = tsStringKeyword; +exports.tSSymbolKeyword = exports.tsSymbolKeyword = tsSymbolKeyword; +exports.tSThisType = exports.tsThisType = tsThisType; +exports.tSTupleType = exports.tsTupleType = tsTupleType; +exports.tSTypeAliasDeclaration = exports.tsTypeAliasDeclaration = tsTypeAliasDeclaration; +exports.tSTypeAnnotation = exports.tsTypeAnnotation = tsTypeAnnotation; +exports.tSTypeAssertion = exports.tsTypeAssertion = tsTypeAssertion; +exports.tSTypeLiteral = exports.tsTypeLiteral = tsTypeLiteral; +exports.tSTypeOperator = exports.tsTypeOperator = tsTypeOperator; +exports.tSTypeParameter = exports.tsTypeParameter = tsTypeParameter; +exports.tSTypeParameterDeclaration = exports.tsTypeParameterDeclaration = tsTypeParameterDeclaration; +exports.tSTypeParameterInstantiation = exports.tsTypeParameterInstantiation = tsTypeParameterInstantiation; +exports.tSTypePredicate = exports.tsTypePredicate = tsTypePredicate; +exports.tSTypeQuery = exports.tsTypeQuery = tsTypeQuery; +exports.tSTypeReference = exports.tsTypeReference = tsTypeReference; +exports.tSUndefinedKeyword = exports.tsUndefinedKeyword = tsUndefinedKeyword; +exports.tSUnionType = exports.tsUnionType = tsUnionType; +exports.tSUnknownKeyword = exports.tsUnknownKeyword = tsUnknownKeyword; +exports.tSVoidKeyword = exports.tsVoidKeyword = tsVoidKeyword; +exports.tupleExpression = tupleExpression; +exports.tupleTypeAnnotation = tupleTypeAnnotation; +exports.typeAlias = typeAlias; +exports.typeAnnotation = typeAnnotation; +exports.typeCastExpression = typeCastExpression; +exports.typeParameter = typeParameter; +exports.typeParameterDeclaration = typeParameterDeclaration; +exports.typeParameterInstantiation = typeParameterInstantiation; +exports.typeofTypeAnnotation = typeofTypeAnnotation; +exports.unaryExpression = unaryExpression; +exports.unionTypeAnnotation = unionTypeAnnotation; +exports.updateExpression = updateExpression; +exports.v8IntrinsicIdentifier = v8IntrinsicIdentifier; +exports.variableDeclaration = variableDeclaration; +exports.variableDeclarator = variableDeclarator; +exports.variance = variance; +exports.voidTypeAnnotation = voidTypeAnnotation; +exports.whileStatement = whileStatement; +exports.withStatement = withStatement; +exports.yieldExpression = yieldExpression; + +var _builder = require("../builder"); + +function arrayExpression(elements) { + return _builder.default.apply("ArrayExpression", arguments); +} + +function assignmentExpression(operator, left, right) { + return _builder.default.apply("AssignmentExpression", arguments); +} + +function binaryExpression(operator, left, right) { + return _builder.default.apply("BinaryExpression", arguments); +} + +function interpreterDirective(value) { + return _builder.default.apply("InterpreterDirective", arguments); +} + +function directive(value) { + return _builder.default.apply("Directive", arguments); +} + +function directiveLiteral(value) { + return _builder.default.apply("DirectiveLiteral", arguments); +} + +function blockStatement(body, directives) { + return _builder.default.apply("BlockStatement", arguments); +} + +function breakStatement(label) { + return _builder.default.apply("BreakStatement", arguments); +} + +function callExpression(callee, _arguments) { + return _builder.default.apply("CallExpression", arguments); +} + +function catchClause(param, body) { + return _builder.default.apply("CatchClause", arguments); +} + +function conditionalExpression(test, consequent, alternate) { + return _builder.default.apply("ConditionalExpression", arguments); +} + +function continueStatement(label) { + return _builder.default.apply("ContinueStatement", arguments); +} + +function debuggerStatement() { + return _builder.default.apply("DebuggerStatement", arguments); +} + +function doWhileStatement(test, body) { + return _builder.default.apply("DoWhileStatement", arguments); +} + +function emptyStatement() { + return _builder.default.apply("EmptyStatement", arguments); +} + +function expressionStatement(expression) { + return _builder.default.apply("ExpressionStatement", arguments); +} + +function file(program, comments, tokens) { + return _builder.default.apply("File", arguments); +} + +function forInStatement(left, right, body) { + return _builder.default.apply("ForInStatement", arguments); +} + +function forStatement(init, test, update, body) { + return _builder.default.apply("ForStatement", arguments); +} + +function functionDeclaration(id, params, body, generator, async) { + return _builder.default.apply("FunctionDeclaration", arguments); +} + +function functionExpression(id, params, body, generator, async) { + return _builder.default.apply("FunctionExpression", arguments); +} + +function identifier(name) { + return _builder.default.apply("Identifier", arguments); +} + +function ifStatement(test, consequent, alternate) { + return _builder.default.apply("IfStatement", arguments); +} + +function labeledStatement(label, body) { + return _builder.default.apply("LabeledStatement", arguments); +} + +function stringLiteral(value) { + return _builder.default.apply("StringLiteral", arguments); +} + +function numericLiteral(value) { + return _builder.default.apply("NumericLiteral", arguments); +} + +function nullLiteral() { + return _builder.default.apply("NullLiteral", arguments); +} + +function booleanLiteral(value) { + return _builder.default.apply("BooleanLiteral", arguments); +} + +function regExpLiteral(pattern, flags) { + return _builder.default.apply("RegExpLiteral", arguments); +} + +function logicalExpression(operator, left, right) { + return _builder.default.apply("LogicalExpression", arguments); +} + +function memberExpression(object, property, computed, optional) { + return _builder.default.apply("MemberExpression", arguments); +} + +function newExpression(callee, _arguments) { + return _builder.default.apply("NewExpression", arguments); +} + +function program(body, directives, sourceType, interpreter) { + return _builder.default.apply("Program", arguments); +} + +function objectExpression(properties) { + return _builder.default.apply("ObjectExpression", arguments); +} + +function objectMethod(kind, key, params, body, computed, generator, async) { + return _builder.default.apply("ObjectMethod", arguments); +} + +function objectProperty(key, value, computed, shorthand, decorators) { + return _builder.default.apply("ObjectProperty", arguments); +} + +function restElement(argument) { + return _builder.default.apply("RestElement", arguments); +} + +function returnStatement(argument) { + return _builder.default.apply("ReturnStatement", arguments); +} + +function sequenceExpression(expressions) { + return _builder.default.apply("SequenceExpression", arguments); +} + +function parenthesizedExpression(expression) { + return _builder.default.apply("ParenthesizedExpression", arguments); +} + +function switchCase(test, consequent) { + return _builder.default.apply("SwitchCase", arguments); +} + +function switchStatement(discriminant, cases) { + return _builder.default.apply("SwitchStatement", arguments); +} + +function thisExpression() { + return _builder.default.apply("ThisExpression", arguments); +} + +function throwStatement(argument) { + return _builder.default.apply("ThrowStatement", arguments); +} + +function tryStatement(block, handler, finalizer) { + return _builder.default.apply("TryStatement", arguments); +} + +function unaryExpression(operator, argument, prefix) { + return _builder.default.apply("UnaryExpression", arguments); +} + +function updateExpression(operator, argument, prefix) { + return _builder.default.apply("UpdateExpression", arguments); +} + +function variableDeclaration(kind, declarations) { + return _builder.default.apply("VariableDeclaration", arguments); +} + +function variableDeclarator(id, init) { + return _builder.default.apply("VariableDeclarator", arguments); +} + +function whileStatement(test, body) { + return _builder.default.apply("WhileStatement", arguments); +} + +function withStatement(object, body) { + return _builder.default.apply("WithStatement", arguments); +} + +function assignmentPattern(left, right) { + return _builder.default.apply("AssignmentPattern", arguments); +} + +function arrayPattern(elements) { + return _builder.default.apply("ArrayPattern", arguments); +} + +function arrowFunctionExpression(params, body, async) { + return _builder.default.apply("ArrowFunctionExpression", arguments); +} + +function classBody(body) { + return _builder.default.apply("ClassBody", arguments); +} + +function classExpression(id, superClass, body, decorators) { + return _builder.default.apply("ClassExpression", arguments); +} + +function classDeclaration(id, superClass, body, decorators) { + return _builder.default.apply("ClassDeclaration", arguments); +} + +function exportAllDeclaration(source) { + return _builder.default.apply("ExportAllDeclaration", arguments); +} + +function exportDefaultDeclaration(declaration) { + return _builder.default.apply("ExportDefaultDeclaration", arguments); +} + +function exportNamedDeclaration(declaration, specifiers, source) { + return _builder.default.apply("ExportNamedDeclaration", arguments); +} + +function exportSpecifier(local, exported) { + return _builder.default.apply("ExportSpecifier", arguments); +} + +function forOfStatement(left, right, body, _await) { + return _builder.default.apply("ForOfStatement", arguments); +} + +function importDeclaration(specifiers, source) { + return _builder.default.apply("ImportDeclaration", arguments); +} + +function importDefaultSpecifier(local) { + return _builder.default.apply("ImportDefaultSpecifier", arguments); +} + +function importNamespaceSpecifier(local) { + return _builder.default.apply("ImportNamespaceSpecifier", arguments); +} + +function importSpecifier(local, imported) { + return _builder.default.apply("ImportSpecifier", arguments); +} + +function metaProperty(meta, property) { + return _builder.default.apply("MetaProperty", arguments); +} + +function classMethod(kind, key, params, body, computed, _static, generator, async) { + return _builder.default.apply("ClassMethod", arguments); +} + +function objectPattern(properties) { + return _builder.default.apply("ObjectPattern", arguments); +} + +function spreadElement(argument) { + return _builder.default.apply("SpreadElement", arguments); +} + +function _super() { + return _builder.default.apply("Super", arguments); +} + +function taggedTemplateExpression(tag, quasi) { + return _builder.default.apply("TaggedTemplateExpression", arguments); +} + +function templateElement(value, tail) { + return _builder.default.apply("TemplateElement", arguments); +} + +function templateLiteral(quasis, expressions) { + return _builder.default.apply("TemplateLiteral", arguments); +} + +function yieldExpression(argument, delegate) { + return _builder.default.apply("YieldExpression", arguments); +} + +function awaitExpression(argument) { + return _builder.default.apply("AwaitExpression", arguments); +} + +function _import() { + return _builder.default.apply("Import", arguments); +} + +function bigIntLiteral(value) { + return _builder.default.apply("BigIntLiteral", arguments); +} + +function exportNamespaceSpecifier(exported) { + return _builder.default.apply("ExportNamespaceSpecifier", arguments); +} + +function optionalMemberExpression(object, property, computed, optional) { + return _builder.default.apply("OptionalMemberExpression", arguments); +} + +function optionalCallExpression(callee, _arguments, optional) { + return _builder.default.apply("OptionalCallExpression", arguments); +} + +function classProperty(key, value, typeAnnotation, decorators, computed, _static) { + return _builder.default.apply("ClassProperty", arguments); +} + +function classAccessorProperty(key, value, typeAnnotation, decorators, computed, _static) { + return _builder.default.apply("ClassAccessorProperty", arguments); +} + +function classPrivateProperty(key, value, decorators, _static) { + return _builder.default.apply("ClassPrivateProperty", arguments); +} + +function classPrivateMethod(kind, key, params, body, _static) { + return _builder.default.apply("ClassPrivateMethod", arguments); +} + +function privateName(id) { + return _builder.default.apply("PrivateName", arguments); +} + +function staticBlock(body) { + return _builder.default.apply("StaticBlock", arguments); +} + +function anyTypeAnnotation() { + return _builder.default.apply("AnyTypeAnnotation", arguments); +} + +function arrayTypeAnnotation(elementType) { + return _builder.default.apply("ArrayTypeAnnotation", arguments); +} + +function booleanTypeAnnotation() { + return _builder.default.apply("BooleanTypeAnnotation", arguments); +} + +function booleanLiteralTypeAnnotation(value) { + return _builder.default.apply("BooleanLiteralTypeAnnotation", arguments); +} + +function nullLiteralTypeAnnotation() { + return _builder.default.apply("NullLiteralTypeAnnotation", arguments); +} + +function classImplements(id, typeParameters) { + return _builder.default.apply("ClassImplements", arguments); +} + +function declareClass(id, typeParameters, _extends, body) { + return _builder.default.apply("DeclareClass", arguments); +} + +function declareFunction(id) { + return _builder.default.apply("DeclareFunction", arguments); +} + +function declareInterface(id, typeParameters, _extends, body) { + return _builder.default.apply("DeclareInterface", arguments); +} + +function declareModule(id, body, kind) { + return _builder.default.apply("DeclareModule", arguments); +} + +function declareModuleExports(typeAnnotation) { + return _builder.default.apply("DeclareModuleExports", arguments); +} + +function declareTypeAlias(id, typeParameters, right) { + return _builder.default.apply("DeclareTypeAlias", arguments); +} + +function declareOpaqueType(id, typeParameters, supertype) { + return _builder.default.apply("DeclareOpaqueType", arguments); +} + +function declareVariable(id) { + return _builder.default.apply("DeclareVariable", arguments); +} + +function declareExportDeclaration(declaration, specifiers, source) { + return _builder.default.apply("DeclareExportDeclaration", arguments); +} + +function declareExportAllDeclaration(source) { + return _builder.default.apply("DeclareExportAllDeclaration", arguments); +} + +function declaredPredicate(value) { + return _builder.default.apply("DeclaredPredicate", arguments); +} + +function existsTypeAnnotation() { + return _builder.default.apply("ExistsTypeAnnotation", arguments); +} + +function functionTypeAnnotation(typeParameters, params, rest, returnType) { + return _builder.default.apply("FunctionTypeAnnotation", arguments); +} + +function functionTypeParam(name, typeAnnotation) { + return _builder.default.apply("FunctionTypeParam", arguments); +} + +function genericTypeAnnotation(id, typeParameters) { + return _builder.default.apply("GenericTypeAnnotation", arguments); +} + +function inferredPredicate() { + return _builder.default.apply("InferredPredicate", arguments); +} + +function interfaceExtends(id, typeParameters) { + return _builder.default.apply("InterfaceExtends", arguments); +} + +function interfaceDeclaration(id, typeParameters, _extends, body) { + return _builder.default.apply("InterfaceDeclaration", arguments); +} + +function interfaceTypeAnnotation(_extends, body) { + return _builder.default.apply("InterfaceTypeAnnotation", arguments); +} + +function intersectionTypeAnnotation(types) { + return _builder.default.apply("IntersectionTypeAnnotation", arguments); +} + +function mixedTypeAnnotation() { + return _builder.default.apply("MixedTypeAnnotation", arguments); +} + +function emptyTypeAnnotation() { + return _builder.default.apply("EmptyTypeAnnotation", arguments); +} + +function nullableTypeAnnotation(typeAnnotation) { + return _builder.default.apply("NullableTypeAnnotation", arguments); +} + +function numberLiteralTypeAnnotation(value) { + return _builder.default.apply("NumberLiteralTypeAnnotation", arguments); +} + +function numberTypeAnnotation() { + return _builder.default.apply("NumberTypeAnnotation", arguments); +} + +function objectTypeAnnotation(properties, indexers, callProperties, internalSlots, exact) { + return _builder.default.apply("ObjectTypeAnnotation", arguments); +} + +function objectTypeInternalSlot(id, value, optional, _static, method) { + return _builder.default.apply("ObjectTypeInternalSlot", arguments); +} + +function objectTypeCallProperty(value) { + return _builder.default.apply("ObjectTypeCallProperty", arguments); +} + +function objectTypeIndexer(id, key, value, variance) { + return _builder.default.apply("ObjectTypeIndexer", arguments); +} + +function objectTypeProperty(key, value, variance) { + return _builder.default.apply("ObjectTypeProperty", arguments); +} + +function objectTypeSpreadProperty(argument) { + return _builder.default.apply("ObjectTypeSpreadProperty", arguments); +} + +function opaqueType(id, typeParameters, supertype, impltype) { + return _builder.default.apply("OpaqueType", arguments); +} + +function qualifiedTypeIdentifier(id, qualification) { + return _builder.default.apply("QualifiedTypeIdentifier", arguments); +} + +function stringLiteralTypeAnnotation(value) { + return _builder.default.apply("StringLiteralTypeAnnotation", arguments); +} + +function stringTypeAnnotation() { + return _builder.default.apply("StringTypeAnnotation", arguments); +} + +function symbolTypeAnnotation() { + return _builder.default.apply("SymbolTypeAnnotation", arguments); +} + +function thisTypeAnnotation() { + return _builder.default.apply("ThisTypeAnnotation", arguments); +} + +function tupleTypeAnnotation(types) { + return _builder.default.apply("TupleTypeAnnotation", arguments); +} + +function typeofTypeAnnotation(argument) { + return _builder.default.apply("TypeofTypeAnnotation", arguments); +} + +function typeAlias(id, typeParameters, right) { + return _builder.default.apply("TypeAlias", arguments); +} + +function typeAnnotation(typeAnnotation) { + return _builder.default.apply("TypeAnnotation", arguments); +} + +function typeCastExpression(expression, typeAnnotation) { + return _builder.default.apply("TypeCastExpression", arguments); +} + +function typeParameter(bound, _default, variance) { + return _builder.default.apply("TypeParameter", arguments); +} + +function typeParameterDeclaration(params) { + return _builder.default.apply("TypeParameterDeclaration", arguments); +} + +function typeParameterInstantiation(params) { + return _builder.default.apply("TypeParameterInstantiation", arguments); +} + +function unionTypeAnnotation(types) { + return _builder.default.apply("UnionTypeAnnotation", arguments); +} + +function variance(kind) { + return _builder.default.apply("Variance", arguments); +} + +function voidTypeAnnotation() { + return _builder.default.apply("VoidTypeAnnotation", arguments); +} + +function enumDeclaration(id, body) { + return _builder.default.apply("EnumDeclaration", arguments); +} + +function enumBooleanBody(members) { + return _builder.default.apply("EnumBooleanBody", arguments); +} + +function enumNumberBody(members) { + return _builder.default.apply("EnumNumberBody", arguments); +} + +function enumStringBody(members) { + return _builder.default.apply("EnumStringBody", arguments); +} + +function enumSymbolBody(members) { + return _builder.default.apply("EnumSymbolBody", arguments); +} + +function enumBooleanMember(id) { + return _builder.default.apply("EnumBooleanMember", arguments); +} + +function enumNumberMember(id, init) { + return _builder.default.apply("EnumNumberMember", arguments); +} + +function enumStringMember(id, init) { + return _builder.default.apply("EnumStringMember", arguments); +} + +function enumDefaultedMember(id) { + return _builder.default.apply("EnumDefaultedMember", arguments); +} + +function indexedAccessType(objectType, indexType) { + return _builder.default.apply("IndexedAccessType", arguments); +} + +function optionalIndexedAccessType(objectType, indexType) { + return _builder.default.apply("OptionalIndexedAccessType", arguments); +} + +function jsxAttribute(name, value) { + return _builder.default.apply("JSXAttribute", arguments); +} + +function jsxClosingElement(name) { + return _builder.default.apply("JSXClosingElement", arguments); +} + +function jsxElement(openingElement, closingElement, children, selfClosing) { + return _builder.default.apply("JSXElement", arguments); +} + +function jsxEmptyExpression() { + return _builder.default.apply("JSXEmptyExpression", arguments); +} + +function jsxExpressionContainer(expression) { + return _builder.default.apply("JSXExpressionContainer", arguments); +} + +function jsxSpreadChild(expression) { + return _builder.default.apply("JSXSpreadChild", arguments); +} + +function jsxIdentifier(name) { + return _builder.default.apply("JSXIdentifier", arguments); +} + +function jsxMemberExpression(object, property) { + return _builder.default.apply("JSXMemberExpression", arguments); +} + +function jsxNamespacedName(namespace, name) { + return _builder.default.apply("JSXNamespacedName", arguments); +} + +function jsxOpeningElement(name, attributes, selfClosing) { + return _builder.default.apply("JSXOpeningElement", arguments); +} + +function jsxSpreadAttribute(argument) { + return _builder.default.apply("JSXSpreadAttribute", arguments); +} + +function jsxText(value) { + return _builder.default.apply("JSXText", arguments); +} + +function jsxFragment(openingFragment, closingFragment, children) { + return _builder.default.apply("JSXFragment", arguments); +} + +function jsxOpeningFragment() { + return _builder.default.apply("JSXOpeningFragment", arguments); +} + +function jsxClosingFragment() { + return _builder.default.apply("JSXClosingFragment", arguments); +} + +function noop() { + return _builder.default.apply("Noop", arguments); +} + +function placeholder(expectedNode, name) { + return _builder.default.apply("Placeholder", arguments); +} + +function v8IntrinsicIdentifier(name) { + return _builder.default.apply("V8IntrinsicIdentifier", arguments); +} + +function argumentPlaceholder() { + return _builder.default.apply("ArgumentPlaceholder", arguments); +} + +function bindExpression(object, callee) { + return _builder.default.apply("BindExpression", arguments); +} + +function importAttribute(key, value) { + return _builder.default.apply("ImportAttribute", arguments); +} + +function decorator(expression) { + return _builder.default.apply("Decorator", arguments); +} + +function doExpression(body, async) { + return _builder.default.apply("DoExpression", arguments); +} + +function exportDefaultSpecifier(exported) { + return _builder.default.apply("ExportDefaultSpecifier", arguments); +} + +function recordExpression(properties) { + return _builder.default.apply("RecordExpression", arguments); +} + +function tupleExpression(elements) { + return _builder.default.apply("TupleExpression", arguments); +} + +function decimalLiteral(value) { + return _builder.default.apply("DecimalLiteral", arguments); +} + +function moduleExpression(body) { + return _builder.default.apply("ModuleExpression", arguments); +} + +function topicReference() { + return _builder.default.apply("TopicReference", arguments); +} + +function pipelineTopicExpression(expression) { + return _builder.default.apply("PipelineTopicExpression", arguments); +} + +function pipelineBareFunction(callee) { + return _builder.default.apply("PipelineBareFunction", arguments); +} + +function pipelinePrimaryTopicReference() { + return _builder.default.apply("PipelinePrimaryTopicReference", arguments); +} + +function tsParameterProperty(parameter) { + return _builder.default.apply("TSParameterProperty", arguments); +} + +function tsDeclareFunction(id, typeParameters, params, returnType) { + return _builder.default.apply("TSDeclareFunction", arguments); +} + +function tsDeclareMethod(decorators, key, typeParameters, params, returnType) { + return _builder.default.apply("TSDeclareMethod", arguments); +} + +function tsQualifiedName(left, right) { + return _builder.default.apply("TSQualifiedName", arguments); +} + +function tsCallSignatureDeclaration(typeParameters, parameters, typeAnnotation) { + return _builder.default.apply("TSCallSignatureDeclaration", arguments); +} + +function tsConstructSignatureDeclaration(typeParameters, parameters, typeAnnotation) { + return _builder.default.apply("TSConstructSignatureDeclaration", arguments); +} + +function tsPropertySignature(key, typeAnnotation, initializer) { + return _builder.default.apply("TSPropertySignature", arguments); +} + +function tsMethodSignature(key, typeParameters, parameters, typeAnnotation) { + return _builder.default.apply("TSMethodSignature", arguments); +} + +function tsIndexSignature(parameters, typeAnnotation) { + return _builder.default.apply("TSIndexSignature", arguments); +} + +function tsAnyKeyword() { + return _builder.default.apply("TSAnyKeyword", arguments); +} + +function tsBooleanKeyword() { + return _builder.default.apply("TSBooleanKeyword", arguments); +} + +function tsBigIntKeyword() { + return _builder.default.apply("TSBigIntKeyword", arguments); +} + +function tsIntrinsicKeyword() { + return _builder.default.apply("TSIntrinsicKeyword", arguments); +} + +function tsNeverKeyword() { + return _builder.default.apply("TSNeverKeyword", arguments); +} + +function tsNullKeyword() { + return _builder.default.apply("TSNullKeyword", arguments); +} + +function tsNumberKeyword() { + return _builder.default.apply("TSNumberKeyword", arguments); +} + +function tsObjectKeyword() { + return _builder.default.apply("TSObjectKeyword", arguments); +} + +function tsStringKeyword() { + return _builder.default.apply("TSStringKeyword", arguments); +} + +function tsSymbolKeyword() { + return _builder.default.apply("TSSymbolKeyword", arguments); +} + +function tsUndefinedKeyword() { + return _builder.default.apply("TSUndefinedKeyword", arguments); +} + +function tsUnknownKeyword() { + return _builder.default.apply("TSUnknownKeyword", arguments); +} + +function tsVoidKeyword() { + return _builder.default.apply("TSVoidKeyword", arguments); +} + +function tsThisType() { + return _builder.default.apply("TSThisType", arguments); +} + +function tsFunctionType(typeParameters, parameters, typeAnnotation) { + return _builder.default.apply("TSFunctionType", arguments); +} + +function tsConstructorType(typeParameters, parameters, typeAnnotation) { + return _builder.default.apply("TSConstructorType", arguments); +} + +function tsTypeReference(typeName, typeParameters) { + return _builder.default.apply("TSTypeReference", arguments); +} + +function tsTypePredicate(parameterName, typeAnnotation, asserts) { + return _builder.default.apply("TSTypePredicate", arguments); +} + +function tsTypeQuery(exprName) { + return _builder.default.apply("TSTypeQuery", arguments); +} + +function tsTypeLiteral(members) { + return _builder.default.apply("TSTypeLiteral", arguments); +} + +function tsArrayType(elementType) { + return _builder.default.apply("TSArrayType", arguments); +} + +function tsTupleType(elementTypes) { + return _builder.default.apply("TSTupleType", arguments); +} + +function tsOptionalType(typeAnnotation) { + return _builder.default.apply("TSOptionalType", arguments); +} + +function tsRestType(typeAnnotation) { + return _builder.default.apply("TSRestType", arguments); +} + +function tsNamedTupleMember(label, elementType, optional) { + return _builder.default.apply("TSNamedTupleMember", arguments); +} + +function tsUnionType(types) { + return _builder.default.apply("TSUnionType", arguments); +} + +function tsIntersectionType(types) { + return _builder.default.apply("TSIntersectionType", arguments); +} + +function tsConditionalType(checkType, extendsType, trueType, falseType) { + return _builder.default.apply("TSConditionalType", arguments); +} + +function tsInferType(typeParameter) { + return _builder.default.apply("TSInferType", arguments); +} + +function tsParenthesizedType(typeAnnotation) { + return _builder.default.apply("TSParenthesizedType", arguments); +} + +function tsTypeOperator(typeAnnotation) { + return _builder.default.apply("TSTypeOperator", arguments); +} + +function tsIndexedAccessType(objectType, indexType) { + return _builder.default.apply("TSIndexedAccessType", arguments); +} + +function tsMappedType(typeParameter, typeAnnotation, nameType) { + return _builder.default.apply("TSMappedType", arguments); +} + +function tsLiteralType(literal) { + return _builder.default.apply("TSLiteralType", arguments); +} + +function tsExpressionWithTypeArguments(expression, typeParameters) { + return _builder.default.apply("TSExpressionWithTypeArguments", arguments); +} + +function tsInterfaceDeclaration(id, typeParameters, _extends, body) { + return _builder.default.apply("TSInterfaceDeclaration", arguments); +} + +function tsInterfaceBody(body) { + return _builder.default.apply("TSInterfaceBody", arguments); +} + +function tsTypeAliasDeclaration(id, typeParameters, typeAnnotation) { + return _builder.default.apply("TSTypeAliasDeclaration", arguments); +} + +function tsAsExpression(expression, typeAnnotation) { + return _builder.default.apply("TSAsExpression", arguments); +} + +function tsTypeAssertion(typeAnnotation, expression) { + return _builder.default.apply("TSTypeAssertion", arguments); +} + +function tsEnumDeclaration(id, members) { + return _builder.default.apply("TSEnumDeclaration", arguments); +} + +function tsEnumMember(id, initializer) { + return _builder.default.apply("TSEnumMember", arguments); +} + +function tsModuleDeclaration(id, body) { + return _builder.default.apply("TSModuleDeclaration", arguments); +} + +function tsModuleBlock(body) { + return _builder.default.apply("TSModuleBlock", arguments); +} + +function tsImportType(argument, qualifier, typeParameters) { + return _builder.default.apply("TSImportType", arguments); +} + +function tsImportEqualsDeclaration(id, moduleReference) { + return _builder.default.apply("TSImportEqualsDeclaration", arguments); +} + +function tsExternalModuleReference(expression) { + return _builder.default.apply("TSExternalModuleReference", arguments); +} + +function tsNonNullExpression(expression) { + return _builder.default.apply("TSNonNullExpression", arguments); +} + +function tsExportAssignment(expression) { + return _builder.default.apply("TSExportAssignment", arguments); +} + +function tsNamespaceExportDeclaration(id) { + return _builder.default.apply("TSNamespaceExportDeclaration", arguments); +} + +function tsTypeAnnotation(typeAnnotation) { + return _builder.default.apply("TSTypeAnnotation", arguments); +} + +function tsTypeParameterInstantiation(params) { + return _builder.default.apply("TSTypeParameterInstantiation", arguments); +} + +function tsTypeParameterDeclaration(params) { + return _builder.default.apply("TSTypeParameterDeclaration", arguments); +} + +function tsTypeParameter(constraint, _default, name) { + return _builder.default.apply("TSTypeParameter", arguments); +} + +function NumberLiteral(value) { + console.trace("The node type NumberLiteral has been renamed to NumericLiteral"); + return _builder.default.apply("NumberLiteral", arguments); +} + +function RegexLiteral(pattern, flags) { + console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"); + return _builder.default.apply("RegexLiteral", arguments); +} + +function RestProperty(argument) { + console.trace("The node type RestProperty has been renamed to RestElement"); + return _builder.default.apply("RestProperty", arguments); +} + +function SpreadProperty(argument) { + console.trace("The node type SpreadProperty has been renamed to SpreadElement"); + return _builder.default.apply("SpreadProperty", arguments); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/generated/uppercase.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/generated/uppercase.js" new file mode 100644 index 0000000000000000000000000000000000000000..95c9a5258a7745d9183d77e72cb0b9bf4fcfa9d6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/generated/uppercase.js" @@ -0,0 +1,1513 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +Object.defineProperty(exports, "AnyTypeAnnotation", { + enumerable: true, + get: function () { + return _index.anyTypeAnnotation; + } +}); +Object.defineProperty(exports, "ArgumentPlaceholder", { + enumerable: true, + get: function () { + return _index.argumentPlaceholder; + } +}); +Object.defineProperty(exports, "ArrayExpression", { + enumerable: true, + get: function () { + return _index.arrayExpression; + } +}); +Object.defineProperty(exports, "ArrayPattern", { + enumerable: true, + get: function () { + return _index.arrayPattern; + } +}); +Object.defineProperty(exports, "ArrayTypeAnnotation", { + enumerable: true, + get: function () { + return _index.arrayTypeAnnotation; + } +}); +Object.defineProperty(exports, "ArrowFunctionExpression", { + enumerable: true, + get: function () { + return _index.arrowFunctionExpression; + } +}); +Object.defineProperty(exports, "AssignmentExpression", { + enumerable: true, + get: function () { + return _index.assignmentExpression; + } +}); +Object.defineProperty(exports, "AssignmentPattern", { + enumerable: true, + get: function () { + return _index.assignmentPattern; + } +}); +Object.defineProperty(exports, "AwaitExpression", { + enumerable: true, + get: function () { + return _index.awaitExpression; + } +}); +Object.defineProperty(exports, "BigIntLiteral", { + enumerable: true, + get: function () { + return _index.bigIntLiteral; + } +}); +Object.defineProperty(exports, "BinaryExpression", { + enumerable: true, + get: function () { + return _index.binaryExpression; + } +}); +Object.defineProperty(exports, "BindExpression", { + enumerable: true, + get: function () { + return _index.bindExpression; + } +}); +Object.defineProperty(exports, "BlockStatement", { + enumerable: true, + get: function () { + return _index.blockStatement; + } +}); +Object.defineProperty(exports, "BooleanLiteral", { + enumerable: true, + get: function () { + return _index.booleanLiteral; + } +}); +Object.defineProperty(exports, "BooleanLiteralTypeAnnotation", { + enumerable: true, + get: function () { + return _index.booleanLiteralTypeAnnotation; + } +}); +Object.defineProperty(exports, "BooleanTypeAnnotation", { + enumerable: true, + get: function () { + return _index.booleanTypeAnnotation; + } +}); +Object.defineProperty(exports, "BreakStatement", { + enumerable: true, + get: function () { + return _index.breakStatement; + } +}); +Object.defineProperty(exports, "CallExpression", { + enumerable: true, + get: function () { + return _index.callExpression; + } +}); +Object.defineProperty(exports, "CatchClause", { + enumerable: true, + get: function () { + return _index.catchClause; + } +}); +Object.defineProperty(exports, "ClassAccessorProperty", { + enumerable: true, + get: function () { + return _index.classAccessorProperty; + } +}); +Object.defineProperty(exports, "ClassBody", { + enumerable: true, + get: function () { + return _index.classBody; + } +}); +Object.defineProperty(exports, "ClassDeclaration", { + enumerable: true, + get: function () { + return _index.classDeclaration; + } +}); +Object.defineProperty(exports, "ClassExpression", { + enumerable: true, + get: function () { + return _index.classExpression; + } +}); +Object.defineProperty(exports, "ClassImplements", { + enumerable: true, + get: function () { + return _index.classImplements; + } +}); +Object.defineProperty(exports, "ClassMethod", { + enumerable: true, + get: function () { + return _index.classMethod; + } +}); +Object.defineProperty(exports, "ClassPrivateMethod", { + enumerable: true, + get: function () { + return _index.classPrivateMethod; + } +}); +Object.defineProperty(exports, "ClassPrivateProperty", { + enumerable: true, + get: function () { + return _index.classPrivateProperty; + } +}); +Object.defineProperty(exports, "ClassProperty", { + enumerable: true, + get: function () { + return _index.classProperty; + } +}); +Object.defineProperty(exports, "ConditionalExpression", { + enumerable: true, + get: function () { + return _index.conditionalExpression; + } +}); +Object.defineProperty(exports, "ContinueStatement", { + enumerable: true, + get: function () { + return _index.continueStatement; + } +}); +Object.defineProperty(exports, "DebuggerStatement", { + enumerable: true, + get: function () { + return _index.debuggerStatement; + } +}); +Object.defineProperty(exports, "DecimalLiteral", { + enumerable: true, + get: function () { + return _index.decimalLiteral; + } +}); +Object.defineProperty(exports, "DeclareClass", { + enumerable: true, + get: function () { + return _index.declareClass; + } +}); +Object.defineProperty(exports, "DeclareExportAllDeclaration", { + enumerable: true, + get: function () { + return _index.declareExportAllDeclaration; + } +}); +Object.defineProperty(exports, "DeclareExportDeclaration", { + enumerable: true, + get: function () { + return _index.declareExportDeclaration; + } +}); +Object.defineProperty(exports, "DeclareFunction", { + enumerable: true, + get: function () { + return _index.declareFunction; + } +}); +Object.defineProperty(exports, "DeclareInterface", { + enumerable: true, + get: function () { + return _index.declareInterface; + } +}); +Object.defineProperty(exports, "DeclareModule", { + enumerable: true, + get: function () { + return _index.declareModule; + } +}); +Object.defineProperty(exports, "DeclareModuleExports", { + enumerable: true, + get: function () { + return _index.declareModuleExports; + } +}); +Object.defineProperty(exports, "DeclareOpaqueType", { + enumerable: true, + get: function () { + return _index.declareOpaqueType; + } +}); +Object.defineProperty(exports, "DeclareTypeAlias", { + enumerable: true, + get: function () { + return _index.declareTypeAlias; + } +}); +Object.defineProperty(exports, "DeclareVariable", { + enumerable: true, + get: function () { + return _index.declareVariable; + } +}); +Object.defineProperty(exports, "DeclaredPredicate", { + enumerable: true, + get: function () { + return _index.declaredPredicate; + } +}); +Object.defineProperty(exports, "Decorator", { + enumerable: true, + get: function () { + return _index.decorator; + } +}); +Object.defineProperty(exports, "Directive", { + enumerable: true, + get: function () { + return _index.directive; + } +}); +Object.defineProperty(exports, "DirectiveLiteral", { + enumerable: true, + get: function () { + return _index.directiveLiteral; + } +}); +Object.defineProperty(exports, "DoExpression", { + enumerable: true, + get: function () { + return _index.doExpression; + } +}); +Object.defineProperty(exports, "DoWhileStatement", { + enumerable: true, + get: function () { + return _index.doWhileStatement; + } +}); +Object.defineProperty(exports, "EmptyStatement", { + enumerable: true, + get: function () { + return _index.emptyStatement; + } +}); +Object.defineProperty(exports, "EmptyTypeAnnotation", { + enumerable: true, + get: function () { + return _index.emptyTypeAnnotation; + } +}); +Object.defineProperty(exports, "EnumBooleanBody", { + enumerable: true, + get: function () { + return _index.enumBooleanBody; + } +}); +Object.defineProperty(exports, "EnumBooleanMember", { + enumerable: true, + get: function () { + return _index.enumBooleanMember; + } +}); +Object.defineProperty(exports, "EnumDeclaration", { + enumerable: true, + get: function () { + return _index.enumDeclaration; + } +}); +Object.defineProperty(exports, "EnumDefaultedMember", { + enumerable: true, + get: function () { + return _index.enumDefaultedMember; + } +}); +Object.defineProperty(exports, "EnumNumberBody", { + enumerable: true, + get: function () { + return _index.enumNumberBody; + } +}); +Object.defineProperty(exports, "EnumNumberMember", { + enumerable: true, + get: function () { + return _index.enumNumberMember; + } +}); +Object.defineProperty(exports, "EnumStringBody", { + enumerable: true, + get: function () { + return _index.enumStringBody; + } +}); +Object.defineProperty(exports, "EnumStringMember", { + enumerable: true, + get: function () { + return _index.enumStringMember; + } +}); +Object.defineProperty(exports, "EnumSymbolBody", { + enumerable: true, + get: function () { + return _index.enumSymbolBody; + } +}); +Object.defineProperty(exports, "ExistsTypeAnnotation", { + enumerable: true, + get: function () { + return _index.existsTypeAnnotation; + } +}); +Object.defineProperty(exports, "ExportAllDeclaration", { + enumerable: true, + get: function () { + return _index.exportAllDeclaration; + } +}); +Object.defineProperty(exports, "ExportDefaultDeclaration", { + enumerable: true, + get: function () { + return _index.exportDefaultDeclaration; + } +}); +Object.defineProperty(exports, "ExportDefaultSpecifier", { + enumerable: true, + get: function () { + return _index.exportDefaultSpecifier; + } +}); +Object.defineProperty(exports, "ExportNamedDeclaration", { + enumerable: true, + get: function () { + return _index.exportNamedDeclaration; + } +}); +Object.defineProperty(exports, "ExportNamespaceSpecifier", { + enumerable: true, + get: function () { + return _index.exportNamespaceSpecifier; + } +}); +Object.defineProperty(exports, "ExportSpecifier", { + enumerable: true, + get: function () { + return _index.exportSpecifier; + } +}); +Object.defineProperty(exports, "ExpressionStatement", { + enumerable: true, + get: function () { + return _index.expressionStatement; + } +}); +Object.defineProperty(exports, "File", { + enumerable: true, + get: function () { + return _index.file; + } +}); +Object.defineProperty(exports, "ForInStatement", { + enumerable: true, + get: function () { + return _index.forInStatement; + } +}); +Object.defineProperty(exports, "ForOfStatement", { + enumerable: true, + get: function () { + return _index.forOfStatement; + } +}); +Object.defineProperty(exports, "ForStatement", { + enumerable: true, + get: function () { + return _index.forStatement; + } +}); +Object.defineProperty(exports, "FunctionDeclaration", { + enumerable: true, + get: function () { + return _index.functionDeclaration; + } +}); +Object.defineProperty(exports, "FunctionExpression", { + enumerable: true, + get: function () { + return _index.functionExpression; + } +}); +Object.defineProperty(exports, "FunctionTypeAnnotation", { + enumerable: true, + get: function () { + return _index.functionTypeAnnotation; + } +}); +Object.defineProperty(exports, "FunctionTypeParam", { + enumerable: true, + get: function () { + return _index.functionTypeParam; + } +}); +Object.defineProperty(exports, "GenericTypeAnnotation", { + enumerable: true, + get: function () { + return _index.genericTypeAnnotation; + } +}); +Object.defineProperty(exports, "Identifier", { + enumerable: true, + get: function () { + return _index.identifier; + } +}); +Object.defineProperty(exports, "IfStatement", { + enumerable: true, + get: function () { + return _index.ifStatement; + } +}); +Object.defineProperty(exports, "Import", { + enumerable: true, + get: function () { + return _index.import; + } +}); +Object.defineProperty(exports, "ImportAttribute", { + enumerable: true, + get: function () { + return _index.importAttribute; + } +}); +Object.defineProperty(exports, "ImportDeclaration", { + enumerable: true, + get: function () { + return _index.importDeclaration; + } +}); +Object.defineProperty(exports, "ImportDefaultSpecifier", { + enumerable: true, + get: function () { + return _index.importDefaultSpecifier; + } +}); +Object.defineProperty(exports, "ImportNamespaceSpecifier", { + enumerable: true, + get: function () { + return _index.importNamespaceSpecifier; + } +}); +Object.defineProperty(exports, "ImportSpecifier", { + enumerable: true, + get: function () { + return _index.importSpecifier; + } +}); +Object.defineProperty(exports, "IndexedAccessType", { + enumerable: true, + get: function () { + return _index.indexedAccessType; + } +}); +Object.defineProperty(exports, "InferredPredicate", { + enumerable: true, + get: function () { + return _index.inferredPredicate; + } +}); +Object.defineProperty(exports, "InterfaceDeclaration", { + enumerable: true, + get: function () { + return _index.interfaceDeclaration; + } +}); +Object.defineProperty(exports, "InterfaceExtends", { + enumerable: true, + get: function () { + return _index.interfaceExtends; + } +}); +Object.defineProperty(exports, "InterfaceTypeAnnotation", { + enumerable: true, + get: function () { + return _index.interfaceTypeAnnotation; + } +}); +Object.defineProperty(exports, "InterpreterDirective", { + enumerable: true, + get: function () { + return _index.interpreterDirective; + } +}); +Object.defineProperty(exports, "IntersectionTypeAnnotation", { + enumerable: true, + get: function () { + return _index.intersectionTypeAnnotation; + } +}); +Object.defineProperty(exports, "JSXAttribute", { + enumerable: true, + get: function () { + return _index.jsxAttribute; + } +}); +Object.defineProperty(exports, "JSXClosingElement", { + enumerable: true, + get: function () { + return _index.jsxClosingElement; + } +}); +Object.defineProperty(exports, "JSXClosingFragment", { + enumerable: true, + get: function () { + return _index.jsxClosingFragment; + } +}); +Object.defineProperty(exports, "JSXElement", { + enumerable: true, + get: function () { + return _index.jsxElement; + } +}); +Object.defineProperty(exports, "JSXEmptyExpression", { + enumerable: true, + get: function () { + return _index.jsxEmptyExpression; + } +}); +Object.defineProperty(exports, "JSXExpressionContainer", { + enumerable: true, + get: function () { + return _index.jsxExpressionContainer; + } +}); +Object.defineProperty(exports, "JSXFragment", { + enumerable: true, + get: function () { + return _index.jsxFragment; + } +}); +Object.defineProperty(exports, "JSXIdentifier", { + enumerable: true, + get: function () { + return _index.jsxIdentifier; + } +}); +Object.defineProperty(exports, "JSXMemberExpression", { + enumerable: true, + get: function () { + return _index.jsxMemberExpression; + } +}); +Object.defineProperty(exports, "JSXNamespacedName", { + enumerable: true, + get: function () { + return _index.jsxNamespacedName; + } +}); +Object.defineProperty(exports, "JSXOpeningElement", { + enumerable: true, + get: function () { + return _index.jsxOpeningElement; + } +}); +Object.defineProperty(exports, "JSXOpeningFragment", { + enumerable: true, + get: function () { + return _index.jsxOpeningFragment; + } +}); +Object.defineProperty(exports, "JSXSpreadAttribute", { + enumerable: true, + get: function () { + return _index.jsxSpreadAttribute; + } +}); +Object.defineProperty(exports, "JSXSpreadChild", { + enumerable: true, + get: function () { + return _index.jsxSpreadChild; + } +}); +Object.defineProperty(exports, "JSXText", { + enumerable: true, + get: function () { + return _index.jsxText; + } +}); +Object.defineProperty(exports, "LabeledStatement", { + enumerable: true, + get: function () { + return _index.labeledStatement; + } +}); +Object.defineProperty(exports, "LogicalExpression", { + enumerable: true, + get: function () { + return _index.logicalExpression; + } +}); +Object.defineProperty(exports, "MemberExpression", { + enumerable: true, + get: function () { + return _index.memberExpression; + } +}); +Object.defineProperty(exports, "MetaProperty", { + enumerable: true, + get: function () { + return _index.metaProperty; + } +}); +Object.defineProperty(exports, "MixedTypeAnnotation", { + enumerable: true, + get: function () { + return _index.mixedTypeAnnotation; + } +}); +Object.defineProperty(exports, "ModuleExpression", { + enumerable: true, + get: function () { + return _index.moduleExpression; + } +}); +Object.defineProperty(exports, "NewExpression", { + enumerable: true, + get: function () { + return _index.newExpression; + } +}); +Object.defineProperty(exports, "Noop", { + enumerable: true, + get: function () { + return _index.noop; + } +}); +Object.defineProperty(exports, "NullLiteral", { + enumerable: true, + get: function () { + return _index.nullLiteral; + } +}); +Object.defineProperty(exports, "NullLiteralTypeAnnotation", { + enumerable: true, + get: function () { + return _index.nullLiteralTypeAnnotation; + } +}); +Object.defineProperty(exports, "NullableTypeAnnotation", { + enumerable: true, + get: function () { + return _index.nullableTypeAnnotation; + } +}); +Object.defineProperty(exports, "NumberLiteral", { + enumerable: true, + get: function () { + return _index.numberLiteral; + } +}); +Object.defineProperty(exports, "NumberLiteralTypeAnnotation", { + enumerable: true, + get: function () { + return _index.numberLiteralTypeAnnotation; + } +}); +Object.defineProperty(exports, "NumberTypeAnnotation", { + enumerable: true, + get: function () { + return _index.numberTypeAnnotation; + } +}); +Object.defineProperty(exports, "NumericLiteral", { + enumerable: true, + get: function () { + return _index.numericLiteral; + } +}); +Object.defineProperty(exports, "ObjectExpression", { + enumerable: true, + get: function () { + return _index.objectExpression; + } +}); +Object.defineProperty(exports, "ObjectMethod", { + enumerable: true, + get: function () { + return _index.objectMethod; + } +}); +Object.defineProperty(exports, "ObjectPattern", { + enumerable: true, + get: function () { + return _index.objectPattern; + } +}); +Object.defineProperty(exports, "ObjectProperty", { + enumerable: true, + get: function () { + return _index.objectProperty; + } +}); +Object.defineProperty(exports, "ObjectTypeAnnotation", { + enumerable: true, + get: function () { + return _index.objectTypeAnnotation; + } +}); +Object.defineProperty(exports, "ObjectTypeCallProperty", { + enumerable: true, + get: function () { + return _index.objectTypeCallProperty; + } +}); +Object.defineProperty(exports, "ObjectTypeIndexer", { + enumerable: true, + get: function () { + return _index.objectTypeIndexer; + } +}); +Object.defineProperty(exports, "ObjectTypeInternalSlot", { + enumerable: true, + get: function () { + return _index.objectTypeInternalSlot; + } +}); +Object.defineProperty(exports, "ObjectTypeProperty", { + enumerable: true, + get: function () { + return _index.objectTypeProperty; + } +}); +Object.defineProperty(exports, "ObjectTypeSpreadProperty", { + enumerable: true, + get: function () { + return _index.objectTypeSpreadProperty; + } +}); +Object.defineProperty(exports, "OpaqueType", { + enumerable: true, + get: function () { + return _index.opaqueType; + } +}); +Object.defineProperty(exports, "OptionalCallExpression", { + enumerable: true, + get: function () { + return _index.optionalCallExpression; + } +}); +Object.defineProperty(exports, "OptionalIndexedAccessType", { + enumerable: true, + get: function () { + return _index.optionalIndexedAccessType; + } +}); +Object.defineProperty(exports, "OptionalMemberExpression", { + enumerable: true, + get: function () { + return _index.optionalMemberExpression; + } +}); +Object.defineProperty(exports, "ParenthesizedExpression", { + enumerable: true, + get: function () { + return _index.parenthesizedExpression; + } +}); +Object.defineProperty(exports, "PipelineBareFunction", { + enumerable: true, + get: function () { + return _index.pipelineBareFunction; + } +}); +Object.defineProperty(exports, "PipelinePrimaryTopicReference", { + enumerable: true, + get: function () { + return _index.pipelinePrimaryTopicReference; + } +}); +Object.defineProperty(exports, "PipelineTopicExpression", { + enumerable: true, + get: function () { + return _index.pipelineTopicExpression; + } +}); +Object.defineProperty(exports, "Placeholder", { + enumerable: true, + get: function () { + return _index.placeholder; + } +}); +Object.defineProperty(exports, "PrivateName", { + enumerable: true, + get: function () { + return _index.privateName; + } +}); +Object.defineProperty(exports, "Program", { + enumerable: true, + get: function () { + return _index.program; + } +}); +Object.defineProperty(exports, "QualifiedTypeIdentifier", { + enumerable: true, + get: function () { + return _index.qualifiedTypeIdentifier; + } +}); +Object.defineProperty(exports, "RecordExpression", { + enumerable: true, + get: function () { + return _index.recordExpression; + } +}); +Object.defineProperty(exports, "RegExpLiteral", { + enumerable: true, + get: function () { + return _index.regExpLiteral; + } +}); +Object.defineProperty(exports, "RegexLiteral", { + enumerable: true, + get: function () { + return _index.regexLiteral; + } +}); +Object.defineProperty(exports, "RestElement", { + enumerable: true, + get: function () { + return _index.restElement; + } +}); +Object.defineProperty(exports, "RestProperty", { + enumerable: true, + get: function () { + return _index.restProperty; + } +}); +Object.defineProperty(exports, "ReturnStatement", { + enumerable: true, + get: function () { + return _index.returnStatement; + } +}); +Object.defineProperty(exports, "SequenceExpression", { + enumerable: true, + get: function () { + return _index.sequenceExpression; + } +}); +Object.defineProperty(exports, "SpreadElement", { + enumerable: true, + get: function () { + return _index.spreadElement; + } +}); +Object.defineProperty(exports, "SpreadProperty", { + enumerable: true, + get: function () { + return _index.spreadProperty; + } +}); +Object.defineProperty(exports, "StaticBlock", { + enumerable: true, + get: function () { + return _index.staticBlock; + } +}); +Object.defineProperty(exports, "StringLiteral", { + enumerable: true, + get: function () { + return _index.stringLiteral; + } +}); +Object.defineProperty(exports, "StringLiteralTypeAnnotation", { + enumerable: true, + get: function () { + return _index.stringLiteralTypeAnnotation; + } +}); +Object.defineProperty(exports, "StringTypeAnnotation", { + enumerable: true, + get: function () { + return _index.stringTypeAnnotation; + } +}); +Object.defineProperty(exports, "Super", { + enumerable: true, + get: function () { + return _index.super; + } +}); +Object.defineProperty(exports, "SwitchCase", { + enumerable: true, + get: function () { + return _index.switchCase; + } +}); +Object.defineProperty(exports, "SwitchStatement", { + enumerable: true, + get: function () { + return _index.switchStatement; + } +}); +Object.defineProperty(exports, "SymbolTypeAnnotation", { + enumerable: true, + get: function () { + return _index.symbolTypeAnnotation; + } +}); +Object.defineProperty(exports, "TSAnyKeyword", { + enumerable: true, + get: function () { + return _index.tsAnyKeyword; + } +}); +Object.defineProperty(exports, "TSArrayType", { + enumerable: true, + get: function () { + return _index.tsArrayType; + } +}); +Object.defineProperty(exports, "TSAsExpression", { + enumerable: true, + get: function () { + return _index.tsAsExpression; + } +}); +Object.defineProperty(exports, "TSBigIntKeyword", { + enumerable: true, + get: function () { + return _index.tsBigIntKeyword; + } +}); +Object.defineProperty(exports, "TSBooleanKeyword", { + enumerable: true, + get: function () { + return _index.tsBooleanKeyword; + } +}); +Object.defineProperty(exports, "TSCallSignatureDeclaration", { + enumerable: true, + get: function () { + return _index.tsCallSignatureDeclaration; + } +}); +Object.defineProperty(exports, "TSConditionalType", { + enumerable: true, + get: function () { + return _index.tsConditionalType; + } +}); +Object.defineProperty(exports, "TSConstructSignatureDeclaration", { + enumerable: true, + get: function () { + return _index.tsConstructSignatureDeclaration; + } +}); +Object.defineProperty(exports, "TSConstructorType", { + enumerable: true, + get: function () { + return _index.tsConstructorType; + } +}); +Object.defineProperty(exports, "TSDeclareFunction", { + enumerable: true, + get: function () { + return _index.tsDeclareFunction; + } +}); +Object.defineProperty(exports, "TSDeclareMethod", { + enumerable: true, + get: function () { + return _index.tsDeclareMethod; + } +}); +Object.defineProperty(exports, "TSEnumDeclaration", { + enumerable: true, + get: function () { + return _index.tsEnumDeclaration; + } +}); +Object.defineProperty(exports, "TSEnumMember", { + enumerable: true, + get: function () { + return _index.tsEnumMember; + } +}); +Object.defineProperty(exports, "TSExportAssignment", { + enumerable: true, + get: function () { + return _index.tsExportAssignment; + } +}); +Object.defineProperty(exports, "TSExpressionWithTypeArguments", { + enumerable: true, + get: function () { + return _index.tsExpressionWithTypeArguments; + } +}); +Object.defineProperty(exports, "TSExternalModuleReference", { + enumerable: true, + get: function () { + return _index.tsExternalModuleReference; + } +}); +Object.defineProperty(exports, "TSFunctionType", { + enumerable: true, + get: function () { + return _index.tsFunctionType; + } +}); +Object.defineProperty(exports, "TSImportEqualsDeclaration", { + enumerable: true, + get: function () { + return _index.tsImportEqualsDeclaration; + } +}); +Object.defineProperty(exports, "TSImportType", { + enumerable: true, + get: function () { + return _index.tsImportType; + } +}); +Object.defineProperty(exports, "TSIndexSignature", { + enumerable: true, + get: function () { + return _index.tsIndexSignature; + } +}); +Object.defineProperty(exports, "TSIndexedAccessType", { + enumerable: true, + get: function () { + return _index.tsIndexedAccessType; + } +}); +Object.defineProperty(exports, "TSInferType", { + enumerable: true, + get: function () { + return _index.tsInferType; + } +}); +Object.defineProperty(exports, "TSInterfaceBody", { + enumerable: true, + get: function () { + return _index.tsInterfaceBody; + } +}); +Object.defineProperty(exports, "TSInterfaceDeclaration", { + enumerable: true, + get: function () { + return _index.tsInterfaceDeclaration; + } +}); +Object.defineProperty(exports, "TSIntersectionType", { + enumerable: true, + get: function () { + return _index.tsIntersectionType; + } +}); +Object.defineProperty(exports, "TSIntrinsicKeyword", { + enumerable: true, + get: function () { + return _index.tsIntrinsicKeyword; + } +}); +Object.defineProperty(exports, "TSLiteralType", { + enumerable: true, + get: function () { + return _index.tsLiteralType; + } +}); +Object.defineProperty(exports, "TSMappedType", { + enumerable: true, + get: function () { + return _index.tsMappedType; + } +}); +Object.defineProperty(exports, "TSMethodSignature", { + enumerable: true, + get: function () { + return _index.tsMethodSignature; + } +}); +Object.defineProperty(exports, "TSModuleBlock", { + enumerable: true, + get: function () { + return _index.tsModuleBlock; + } +}); +Object.defineProperty(exports, "TSModuleDeclaration", { + enumerable: true, + get: function () { + return _index.tsModuleDeclaration; + } +}); +Object.defineProperty(exports, "TSNamedTupleMember", { + enumerable: true, + get: function () { + return _index.tsNamedTupleMember; + } +}); +Object.defineProperty(exports, "TSNamespaceExportDeclaration", { + enumerable: true, + get: function () { + return _index.tsNamespaceExportDeclaration; + } +}); +Object.defineProperty(exports, "TSNeverKeyword", { + enumerable: true, + get: function () { + return _index.tsNeverKeyword; + } +}); +Object.defineProperty(exports, "TSNonNullExpression", { + enumerable: true, + get: function () { + return _index.tsNonNullExpression; + } +}); +Object.defineProperty(exports, "TSNullKeyword", { + enumerable: true, + get: function () { + return _index.tsNullKeyword; + } +}); +Object.defineProperty(exports, "TSNumberKeyword", { + enumerable: true, + get: function () { + return _index.tsNumberKeyword; + } +}); +Object.defineProperty(exports, "TSObjectKeyword", { + enumerable: true, + get: function () { + return _index.tsObjectKeyword; + } +}); +Object.defineProperty(exports, "TSOptionalType", { + enumerable: true, + get: function () { + return _index.tsOptionalType; + } +}); +Object.defineProperty(exports, "TSParameterProperty", { + enumerable: true, + get: function () { + return _index.tsParameterProperty; + } +}); +Object.defineProperty(exports, "TSParenthesizedType", { + enumerable: true, + get: function () { + return _index.tsParenthesizedType; + } +}); +Object.defineProperty(exports, "TSPropertySignature", { + enumerable: true, + get: function () { + return _index.tsPropertySignature; + } +}); +Object.defineProperty(exports, "TSQualifiedName", { + enumerable: true, + get: function () { + return _index.tsQualifiedName; + } +}); +Object.defineProperty(exports, "TSRestType", { + enumerable: true, + get: function () { + return _index.tsRestType; + } +}); +Object.defineProperty(exports, "TSStringKeyword", { + enumerable: true, + get: function () { + return _index.tsStringKeyword; + } +}); +Object.defineProperty(exports, "TSSymbolKeyword", { + enumerable: true, + get: function () { + return _index.tsSymbolKeyword; + } +}); +Object.defineProperty(exports, "TSThisType", { + enumerable: true, + get: function () { + return _index.tsThisType; + } +}); +Object.defineProperty(exports, "TSTupleType", { + enumerable: true, + get: function () { + return _index.tsTupleType; + } +}); +Object.defineProperty(exports, "TSTypeAliasDeclaration", { + enumerable: true, + get: function () { + return _index.tsTypeAliasDeclaration; + } +}); +Object.defineProperty(exports, "TSTypeAnnotation", { + enumerable: true, + get: function () { + return _index.tsTypeAnnotation; + } +}); +Object.defineProperty(exports, "TSTypeAssertion", { + enumerable: true, + get: function () { + return _index.tsTypeAssertion; + } +}); +Object.defineProperty(exports, "TSTypeLiteral", { + enumerable: true, + get: function () { + return _index.tsTypeLiteral; + } +}); +Object.defineProperty(exports, "TSTypeOperator", { + enumerable: true, + get: function () { + return _index.tsTypeOperator; + } +}); +Object.defineProperty(exports, "TSTypeParameter", { + enumerable: true, + get: function () { + return _index.tsTypeParameter; + } +}); +Object.defineProperty(exports, "TSTypeParameterDeclaration", { + enumerable: true, + get: function () { + return _index.tsTypeParameterDeclaration; + } +}); +Object.defineProperty(exports, "TSTypeParameterInstantiation", { + enumerable: true, + get: function () { + return _index.tsTypeParameterInstantiation; + } +}); +Object.defineProperty(exports, "TSTypePredicate", { + enumerable: true, + get: function () { + return _index.tsTypePredicate; + } +}); +Object.defineProperty(exports, "TSTypeQuery", { + enumerable: true, + get: function () { + return _index.tsTypeQuery; + } +}); +Object.defineProperty(exports, "TSTypeReference", { + enumerable: true, + get: function () { + return _index.tsTypeReference; + } +}); +Object.defineProperty(exports, "TSUndefinedKeyword", { + enumerable: true, + get: function () { + return _index.tsUndefinedKeyword; + } +}); +Object.defineProperty(exports, "TSUnionType", { + enumerable: true, + get: function () { + return _index.tsUnionType; + } +}); +Object.defineProperty(exports, "TSUnknownKeyword", { + enumerable: true, + get: function () { + return _index.tsUnknownKeyword; + } +}); +Object.defineProperty(exports, "TSVoidKeyword", { + enumerable: true, + get: function () { + return _index.tsVoidKeyword; + } +}); +Object.defineProperty(exports, "TaggedTemplateExpression", { + enumerable: true, + get: function () { + return _index.taggedTemplateExpression; + } +}); +Object.defineProperty(exports, "TemplateElement", { + enumerable: true, + get: function () { + return _index.templateElement; + } +}); +Object.defineProperty(exports, "TemplateLiteral", { + enumerable: true, + get: function () { + return _index.templateLiteral; + } +}); +Object.defineProperty(exports, "ThisExpression", { + enumerable: true, + get: function () { + return _index.thisExpression; + } +}); +Object.defineProperty(exports, "ThisTypeAnnotation", { + enumerable: true, + get: function () { + return _index.thisTypeAnnotation; + } +}); +Object.defineProperty(exports, "ThrowStatement", { + enumerable: true, + get: function () { + return _index.throwStatement; + } +}); +Object.defineProperty(exports, "TopicReference", { + enumerable: true, + get: function () { + return _index.topicReference; + } +}); +Object.defineProperty(exports, "TryStatement", { + enumerable: true, + get: function () { + return _index.tryStatement; + } +}); +Object.defineProperty(exports, "TupleExpression", { + enumerable: true, + get: function () { + return _index.tupleExpression; + } +}); +Object.defineProperty(exports, "TupleTypeAnnotation", { + enumerable: true, + get: function () { + return _index.tupleTypeAnnotation; + } +}); +Object.defineProperty(exports, "TypeAlias", { + enumerable: true, + get: function () { + return _index.typeAlias; + } +}); +Object.defineProperty(exports, "TypeAnnotation", { + enumerable: true, + get: function () { + return _index.typeAnnotation; + } +}); +Object.defineProperty(exports, "TypeCastExpression", { + enumerable: true, + get: function () { + return _index.typeCastExpression; + } +}); +Object.defineProperty(exports, "TypeParameter", { + enumerable: true, + get: function () { + return _index.typeParameter; + } +}); +Object.defineProperty(exports, "TypeParameterDeclaration", { + enumerable: true, + get: function () { + return _index.typeParameterDeclaration; + } +}); +Object.defineProperty(exports, "TypeParameterInstantiation", { + enumerable: true, + get: function () { + return _index.typeParameterInstantiation; + } +}); +Object.defineProperty(exports, "TypeofTypeAnnotation", { + enumerable: true, + get: function () { + return _index.typeofTypeAnnotation; + } +}); +Object.defineProperty(exports, "UnaryExpression", { + enumerable: true, + get: function () { + return _index.unaryExpression; + } +}); +Object.defineProperty(exports, "UnionTypeAnnotation", { + enumerable: true, + get: function () { + return _index.unionTypeAnnotation; + } +}); +Object.defineProperty(exports, "UpdateExpression", { + enumerable: true, + get: function () { + return _index.updateExpression; + } +}); +Object.defineProperty(exports, "V8IntrinsicIdentifier", { + enumerable: true, + get: function () { + return _index.v8IntrinsicIdentifier; + } +}); +Object.defineProperty(exports, "VariableDeclaration", { + enumerable: true, + get: function () { + return _index.variableDeclaration; + } +}); +Object.defineProperty(exports, "VariableDeclarator", { + enumerable: true, + get: function () { + return _index.variableDeclarator; + } +}); +Object.defineProperty(exports, "Variance", { + enumerable: true, + get: function () { + return _index.variance; + } +}); +Object.defineProperty(exports, "VoidTypeAnnotation", { + enumerable: true, + get: function () { + return _index.voidTypeAnnotation; + } +}); +Object.defineProperty(exports, "WhileStatement", { + enumerable: true, + get: function () { + return _index.whileStatement; + } +}); +Object.defineProperty(exports, "WithStatement", { + enumerable: true, + get: function () { + return _index.withStatement; + } +}); +Object.defineProperty(exports, "YieldExpression", { + enumerable: true, + get: function () { + return _index.yieldExpression; + } +}); + +var _index = require("./index"); \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/react/buildChildren.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/react/buildChildren.js" new file mode 100644 index 0000000000000000000000000000000000000000..20a194b6b9e405759732abe7011e5d6b23db8cb8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/react/buildChildren.js" @@ -0,0 +1,29 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = buildChildren; + +var _generated = require("../../validators/generated"); + +var _cleanJSXElementLiteralChild = require("../../utils/react/cleanJSXElementLiteralChild"); + +function buildChildren(node) { + const elements = []; + + for (let i = 0; i < node.children.length; i++) { + let child = node.children[i]; + + if ((0, _generated.isJSXText)(child)) { + (0, _cleanJSXElementLiteralChild.default)(child, elements); + continue; + } + + if ((0, _generated.isJSXExpressionContainer)(child)) child = child.expression; + if ((0, _generated.isJSXEmptyExpression)(child)) continue; + elements.push(child); + } + + return elements; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js" new file mode 100644 index 0000000000000000000000000000000000000000..9b53be29d327d0baff991a9c466e400e0c2205b2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js" @@ -0,0 +1,21 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = createTSUnionType; + +var _generated = require("../generated"); + +var _removeTypeDuplicates = require("../../modifications/typescript/removeTypeDuplicates"); + +function createTSUnionType(typeAnnotations) { + const types = typeAnnotations.map(type => type.typeAnnotation); + const flattened = (0, _removeTypeDuplicates.default)(types); + + if (flattened.length === 1) { + return flattened[0]; + } else { + return (0, _generated.tsUnionType)(flattened); + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/clone/clone.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/clone/clone.js" new file mode 100644 index 0000000000000000000000000000000000000000..e262c632d8ddf6a595c0b3a34c2eaafa026c27d1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/clone/clone.js" @@ -0,0 +1,12 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = clone; + +var _cloneNode = require("./cloneNode"); + +function clone(node) { + return (0, _cloneNode.default)(node, false); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/clone/cloneDeep.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/clone/cloneDeep.js" new file mode 100644 index 0000000000000000000000000000000000000000..9067e7b73d91abb726a08360b9d7bcee98436dcf --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/clone/cloneDeep.js" @@ -0,0 +1,12 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = cloneDeep; + +var _cloneNode = require("./cloneNode"); + +function cloneDeep(node) { + return (0, _cloneNode.default)(node); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js" new file mode 100644 index 0000000000000000000000000000000000000000..a8c53dd4b1f890a591bc55bcbba777cd01cec39f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js" @@ -0,0 +1,12 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = cloneDeepWithoutLoc; + +var _cloneNode = require("./cloneNode"); + +function cloneDeepWithoutLoc(node) { + return (0, _cloneNode.default)(node, true, true); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/clone/cloneNode.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/clone/cloneNode.js" new file mode 100644 index 0000000000000000000000000000000000000000..5980f2d1ba904e3daf89dba6cd6aadc9ffae3d3d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/clone/cloneNode.js" @@ -0,0 +1,114 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = cloneNode; + +var _definitions = require("../definitions"); + +var _generated = require("../validators/generated"); + +const has = Function.call.bind(Object.prototype.hasOwnProperty); + +function cloneIfNode(obj, deep, withoutLoc) { + if (obj && typeof obj.type === "string") { + return cloneNode(obj, deep, withoutLoc); + } + + return obj; +} + +function cloneIfNodeOrArray(obj, deep, withoutLoc) { + if (Array.isArray(obj)) { + return obj.map(node => cloneIfNode(node, deep, withoutLoc)); + } + + return cloneIfNode(obj, deep, withoutLoc); +} + +function cloneNode(node, deep = true, withoutLoc = false) { + if (!node) return node; + const { + type + } = node; + const newNode = { + type: node.type + }; + + if ((0, _generated.isIdentifier)(node)) { + newNode.name = node.name; + + if (has(node, "optional") && typeof node.optional === "boolean") { + newNode.optional = node.optional; + } + + if (has(node, "typeAnnotation")) { + newNode.typeAnnotation = deep ? cloneIfNodeOrArray(node.typeAnnotation, true, withoutLoc) : node.typeAnnotation; + } + } else if (!has(_definitions.NODE_FIELDS, type)) { + throw new Error(`Unknown node type: "${type}"`); + } else { + for (const field of Object.keys(_definitions.NODE_FIELDS[type])) { + if (has(node, field)) { + if (deep) { + newNode[field] = (0, _generated.isFile)(node) && field === "comments" ? maybeCloneComments(node.comments, deep, withoutLoc) : cloneIfNodeOrArray(node[field], true, withoutLoc); + } else { + newNode[field] = node[field]; + } + } + } + } + + if (has(node, "loc")) { + if (withoutLoc) { + newNode.loc = null; + } else { + newNode.loc = node.loc; + } + } + + if (has(node, "leadingComments")) { + newNode.leadingComments = maybeCloneComments(node.leadingComments, deep, withoutLoc); + } + + if (has(node, "innerComments")) { + newNode.innerComments = maybeCloneComments(node.innerComments, deep, withoutLoc); + } + + if (has(node, "trailingComments")) { + newNode.trailingComments = maybeCloneComments(node.trailingComments, deep, withoutLoc); + } + + if (has(node, "extra")) { + newNode.extra = Object.assign({}, node.extra); + } + + return newNode; +} + +function maybeCloneComments(comments, deep, withoutLoc) { + if (!comments || !deep) { + return comments; + } + + return comments.map(({ + type, + value, + loc + }) => { + if (withoutLoc) { + return { + type, + value, + loc: null + }; + } + + return { + type, + value, + loc + }; + }); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js" new file mode 100644 index 0000000000000000000000000000000000000000..d0420b1c0de2066a56337e63df1c7d55775b1f1e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/clone/cloneWithoutLoc.js" @@ -0,0 +1,12 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = cloneWithoutLoc; + +var _cloneNode = require("./cloneNode"); + +function cloneWithoutLoc(node) { + return (0, _cloneNode.default)(node, false, true); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/addComment.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/addComment.js" new file mode 100644 index 0000000000000000000000000000000000000000..de19ab74e84300e4d4037331679958a379b21be9 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/addComment.js" @@ -0,0 +1,15 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = addComment; + +var _addComments = require("./addComments"); + +function addComment(node, type, content, line) { + return (0, _addComments.default)(node, type, [{ + type: line ? "CommentLine" : "CommentBlock", + value: content + }]); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/addComments.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/addComments.js" new file mode 100644 index 0000000000000000000000000000000000000000..26c456fc3011b8a2d6adae0e32e2a6e366a7b530 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/addComments.js" @@ -0,0 +1,23 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = addComments; + +function addComments(node, type, comments) { + if (!comments || !node) return node; + const key = `${type}Comments`; + + if (node[key]) { + if (type === "leading") { + node[key] = comments.concat(node[key]); + } else { + node[key].push(...comments); + } + } else { + node[key] = comments; + } + + return node; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/inheritInnerComments.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/inheritInnerComments.js" new file mode 100644 index 0000000000000000000000000000000000000000..4b5dc9cac2bdbe2819db4025830401c69da12f66 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/inheritInnerComments.js" @@ -0,0 +1,12 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = inheritInnerComments; + +var _inherit = require("../utils/inherit"); + +function inheritInnerComments(child, parent) { + (0, _inherit.default)("innerComments", child, parent); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/inheritLeadingComments.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/inheritLeadingComments.js" new file mode 100644 index 0000000000000000000000000000000000000000..6aa2b250290592bf65d37f4cb4883f7d8328e130 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/inheritLeadingComments.js" @@ -0,0 +1,12 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = inheritLeadingComments; + +var _inherit = require("../utils/inherit"); + +function inheritLeadingComments(child, parent) { + (0, _inherit.default)("leadingComments", child, parent); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/inheritTrailingComments.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/inheritTrailingComments.js" new file mode 100644 index 0000000000000000000000000000000000000000..934ef0b9cada92a41ec2104b945b3856426cf45b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/inheritTrailingComments.js" @@ -0,0 +1,12 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = inheritTrailingComments; + +var _inherit = require("../utils/inherit"); + +function inheritTrailingComments(child, parent) { + (0, _inherit.default)("trailingComments", child, parent); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/inheritsComments.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/inheritsComments.js" new file mode 100644 index 0000000000000000000000000000000000000000..49476cffd955a053610a686994d8e73c555884e6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/inheritsComments.js" @@ -0,0 +1,19 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = inheritsComments; + +var _inheritTrailingComments = require("./inheritTrailingComments"); + +var _inheritLeadingComments = require("./inheritLeadingComments"); + +var _inheritInnerComments = require("./inheritInnerComments"); + +function inheritsComments(child, parent) { + (0, _inheritTrailingComments.default)(child, parent); + (0, _inheritLeadingComments.default)(child, parent); + (0, _inheritInnerComments.default)(child, parent); + return child; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/removeComments.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/removeComments.js" new file mode 100644 index 0000000000000000000000000000000000000000..fe34f1a8905b31532223b2996bfdc60151f1fed4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/comments/removeComments.js" @@ -0,0 +1,16 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = removeComments; + +var _constants = require("../constants"); + +function removeComments(node) { + _constants.COMMENT_KEYS.forEach(key => { + node[key] = null; + }); + + return node; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/constants/generated/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/constants/generated/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..1e109e6a4aec0f4c69344d31e94132e7ad2c3a15 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/constants/generated/index.js" @@ -0,0 +1,107 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.WHILE_TYPES = exports.USERWHITESPACABLE_TYPES = exports.UNARYLIKE_TYPES = exports.TYPESCRIPT_TYPES = exports.TSTYPE_TYPES = exports.TSTYPEELEMENT_TYPES = exports.TSENTITYNAME_TYPES = exports.TSBASETYPE_TYPES = exports.TERMINATORLESS_TYPES = exports.STATEMENT_TYPES = exports.STANDARDIZED_TYPES = exports.SCOPABLE_TYPES = exports.PUREISH_TYPES = exports.PROPERTY_TYPES = exports.PRIVATE_TYPES = exports.PATTERN_TYPES = exports.PATTERNLIKE_TYPES = exports.OBJECTMEMBER_TYPES = exports.MODULESPECIFIER_TYPES = exports.MODULEDECLARATION_TYPES = exports.MISCELLANEOUS_TYPES = exports.METHOD_TYPES = exports.LVAL_TYPES = exports.LOOP_TYPES = exports.LITERAL_TYPES = exports.JSX_TYPES = exports.IMMUTABLE_TYPES = exports.FUNCTION_TYPES = exports.FUNCTIONPARENT_TYPES = exports.FOR_TYPES = exports.FORXSTATEMENT_TYPES = exports.FLOW_TYPES = exports.FLOWTYPE_TYPES = exports.FLOWPREDICATE_TYPES = exports.FLOWDECLARATION_TYPES = exports.FLOWBASEANNOTATION_TYPES = exports.EXPRESSION_TYPES = exports.EXPRESSIONWRAPPER_TYPES = exports.EXPORTDECLARATION_TYPES = exports.ENUMMEMBER_TYPES = exports.ENUMBODY_TYPES = exports.DECLARATION_TYPES = exports.CONDITIONAL_TYPES = exports.COMPLETIONSTATEMENT_TYPES = exports.CLASS_TYPES = exports.BLOCK_TYPES = exports.BLOCKPARENT_TYPES = exports.BINARY_TYPES = exports.ACCESSOR_TYPES = void 0; + +var _definitions = require("../../definitions"); + +const STANDARDIZED_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Standardized"]; +exports.STANDARDIZED_TYPES = STANDARDIZED_TYPES; +const EXPRESSION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Expression"]; +exports.EXPRESSION_TYPES = EXPRESSION_TYPES; +const BINARY_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Binary"]; +exports.BINARY_TYPES = BINARY_TYPES; +const SCOPABLE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Scopable"]; +exports.SCOPABLE_TYPES = SCOPABLE_TYPES; +const BLOCKPARENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["BlockParent"]; +exports.BLOCKPARENT_TYPES = BLOCKPARENT_TYPES; +const BLOCK_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Block"]; +exports.BLOCK_TYPES = BLOCK_TYPES; +const STATEMENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Statement"]; +exports.STATEMENT_TYPES = STATEMENT_TYPES; +const TERMINATORLESS_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Terminatorless"]; +exports.TERMINATORLESS_TYPES = TERMINATORLESS_TYPES; +const COMPLETIONSTATEMENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["CompletionStatement"]; +exports.COMPLETIONSTATEMENT_TYPES = COMPLETIONSTATEMENT_TYPES; +const CONDITIONAL_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Conditional"]; +exports.CONDITIONAL_TYPES = CONDITIONAL_TYPES; +const LOOP_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Loop"]; +exports.LOOP_TYPES = LOOP_TYPES; +const WHILE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["While"]; +exports.WHILE_TYPES = WHILE_TYPES; +const EXPRESSIONWRAPPER_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ExpressionWrapper"]; +exports.EXPRESSIONWRAPPER_TYPES = EXPRESSIONWRAPPER_TYPES; +const FOR_TYPES = _definitions.FLIPPED_ALIAS_KEYS["For"]; +exports.FOR_TYPES = FOR_TYPES; +const FORXSTATEMENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ForXStatement"]; +exports.FORXSTATEMENT_TYPES = FORXSTATEMENT_TYPES; +const FUNCTION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Function"]; +exports.FUNCTION_TYPES = FUNCTION_TYPES; +const FUNCTIONPARENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FunctionParent"]; +exports.FUNCTIONPARENT_TYPES = FUNCTIONPARENT_TYPES; +const PUREISH_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Pureish"]; +exports.PUREISH_TYPES = PUREISH_TYPES; +const DECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Declaration"]; +exports.DECLARATION_TYPES = DECLARATION_TYPES; +const PATTERNLIKE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["PatternLike"]; +exports.PATTERNLIKE_TYPES = PATTERNLIKE_TYPES; +const LVAL_TYPES = _definitions.FLIPPED_ALIAS_KEYS["LVal"]; +exports.LVAL_TYPES = LVAL_TYPES; +const TSENTITYNAME_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TSEntityName"]; +exports.TSENTITYNAME_TYPES = TSENTITYNAME_TYPES; +const LITERAL_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Literal"]; +exports.LITERAL_TYPES = LITERAL_TYPES; +const IMMUTABLE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Immutable"]; +exports.IMMUTABLE_TYPES = IMMUTABLE_TYPES; +const USERWHITESPACABLE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["UserWhitespacable"]; +exports.USERWHITESPACABLE_TYPES = USERWHITESPACABLE_TYPES; +const METHOD_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Method"]; +exports.METHOD_TYPES = METHOD_TYPES; +const OBJECTMEMBER_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ObjectMember"]; +exports.OBJECTMEMBER_TYPES = OBJECTMEMBER_TYPES; +const PROPERTY_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Property"]; +exports.PROPERTY_TYPES = PROPERTY_TYPES; +const UNARYLIKE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["UnaryLike"]; +exports.UNARYLIKE_TYPES = UNARYLIKE_TYPES; +const PATTERN_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Pattern"]; +exports.PATTERN_TYPES = PATTERN_TYPES; +const CLASS_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Class"]; +exports.CLASS_TYPES = CLASS_TYPES; +const MODULEDECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ModuleDeclaration"]; +exports.MODULEDECLARATION_TYPES = MODULEDECLARATION_TYPES; +const EXPORTDECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ExportDeclaration"]; +exports.EXPORTDECLARATION_TYPES = EXPORTDECLARATION_TYPES; +const MODULESPECIFIER_TYPES = _definitions.FLIPPED_ALIAS_KEYS["ModuleSpecifier"]; +exports.MODULESPECIFIER_TYPES = MODULESPECIFIER_TYPES; +const ACCESSOR_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Accessor"]; +exports.ACCESSOR_TYPES = ACCESSOR_TYPES; +const PRIVATE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Private"]; +exports.PRIVATE_TYPES = PRIVATE_TYPES; +const FLOW_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Flow"]; +exports.FLOW_TYPES = FLOW_TYPES; +const FLOWTYPE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FlowType"]; +exports.FLOWTYPE_TYPES = FLOWTYPE_TYPES; +const FLOWBASEANNOTATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FlowBaseAnnotation"]; +exports.FLOWBASEANNOTATION_TYPES = FLOWBASEANNOTATION_TYPES; +const FLOWDECLARATION_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FlowDeclaration"]; +exports.FLOWDECLARATION_TYPES = FLOWDECLARATION_TYPES; +const FLOWPREDICATE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["FlowPredicate"]; +exports.FLOWPREDICATE_TYPES = FLOWPREDICATE_TYPES; +const ENUMBODY_TYPES = _definitions.FLIPPED_ALIAS_KEYS["EnumBody"]; +exports.ENUMBODY_TYPES = ENUMBODY_TYPES; +const ENUMMEMBER_TYPES = _definitions.FLIPPED_ALIAS_KEYS["EnumMember"]; +exports.ENUMMEMBER_TYPES = ENUMMEMBER_TYPES; +const JSX_TYPES = _definitions.FLIPPED_ALIAS_KEYS["JSX"]; +exports.JSX_TYPES = JSX_TYPES; +const MISCELLANEOUS_TYPES = _definitions.FLIPPED_ALIAS_KEYS["Miscellaneous"]; +exports.MISCELLANEOUS_TYPES = MISCELLANEOUS_TYPES; +const TYPESCRIPT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TypeScript"]; +exports.TYPESCRIPT_TYPES = TYPESCRIPT_TYPES; +const TSTYPEELEMENT_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TSTypeElement"]; +exports.TSTYPEELEMENT_TYPES = TSTYPEELEMENT_TYPES; +const TSTYPE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TSType"]; +exports.TSTYPE_TYPES = TSTYPE_TYPES; +const TSBASETYPE_TYPES = _definitions.FLIPPED_ALIAS_KEYS["TSBaseType"]; +exports.TSBASETYPE_TYPES = TSBASETYPE_TYPES; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/constants/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/constants/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..3caa4387998e60cd052ec97d0c28f3a69ea886ed --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/constants/index.js" @@ -0,0 +1,49 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.UPDATE_OPERATORS = exports.UNARY_OPERATORS = exports.STRING_UNARY_OPERATORS = exports.STATEMENT_OR_BLOCK_KEYS = exports.NUMBER_UNARY_OPERATORS = exports.NUMBER_BINARY_OPERATORS = exports.NOT_LOCAL_BINDING = exports.LOGICAL_OPERATORS = exports.INHERIT_KEYS = exports.FOR_INIT_KEYS = exports.FLATTENABLE_KEYS = exports.EQUALITY_BINARY_OPERATORS = exports.COMPARISON_BINARY_OPERATORS = exports.COMMENT_KEYS = exports.BOOLEAN_UNARY_OPERATORS = exports.BOOLEAN_NUMBER_BINARY_OPERATORS = exports.BOOLEAN_BINARY_OPERATORS = exports.BLOCK_SCOPED_SYMBOL = exports.BINARY_OPERATORS = exports.ASSIGNMENT_OPERATORS = void 0; +const STATEMENT_OR_BLOCK_KEYS = ["consequent", "body", "alternate"]; +exports.STATEMENT_OR_BLOCK_KEYS = STATEMENT_OR_BLOCK_KEYS; +const FLATTENABLE_KEYS = ["body", "expressions"]; +exports.FLATTENABLE_KEYS = FLATTENABLE_KEYS; +const FOR_INIT_KEYS = ["left", "init"]; +exports.FOR_INIT_KEYS = FOR_INIT_KEYS; +const COMMENT_KEYS = ["leadingComments", "trailingComments", "innerComments"]; +exports.COMMENT_KEYS = COMMENT_KEYS; +const LOGICAL_OPERATORS = ["||", "&&", "??"]; +exports.LOGICAL_OPERATORS = LOGICAL_OPERATORS; +const UPDATE_OPERATORS = ["++", "--"]; +exports.UPDATE_OPERATORS = UPDATE_OPERATORS; +const BOOLEAN_NUMBER_BINARY_OPERATORS = [">", "<", ">=", "<="]; +exports.BOOLEAN_NUMBER_BINARY_OPERATORS = BOOLEAN_NUMBER_BINARY_OPERATORS; +const EQUALITY_BINARY_OPERATORS = ["==", "===", "!=", "!=="]; +exports.EQUALITY_BINARY_OPERATORS = EQUALITY_BINARY_OPERATORS; +const COMPARISON_BINARY_OPERATORS = [...EQUALITY_BINARY_OPERATORS, "in", "instanceof"]; +exports.COMPARISON_BINARY_OPERATORS = COMPARISON_BINARY_OPERATORS; +const BOOLEAN_BINARY_OPERATORS = [...COMPARISON_BINARY_OPERATORS, ...BOOLEAN_NUMBER_BINARY_OPERATORS]; +exports.BOOLEAN_BINARY_OPERATORS = BOOLEAN_BINARY_OPERATORS; +const NUMBER_BINARY_OPERATORS = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"]; +exports.NUMBER_BINARY_OPERATORS = NUMBER_BINARY_OPERATORS; +const BINARY_OPERATORS = ["+", ...NUMBER_BINARY_OPERATORS, ...BOOLEAN_BINARY_OPERATORS]; +exports.BINARY_OPERATORS = BINARY_OPERATORS; +const ASSIGNMENT_OPERATORS = ["=", "+=", ...NUMBER_BINARY_OPERATORS.map(op => op + "="), ...LOGICAL_OPERATORS.map(op => op + "=")]; +exports.ASSIGNMENT_OPERATORS = ASSIGNMENT_OPERATORS; +const BOOLEAN_UNARY_OPERATORS = ["delete", "!"]; +exports.BOOLEAN_UNARY_OPERATORS = BOOLEAN_UNARY_OPERATORS; +const NUMBER_UNARY_OPERATORS = ["+", "-", "~"]; +exports.NUMBER_UNARY_OPERATORS = NUMBER_UNARY_OPERATORS; +const STRING_UNARY_OPERATORS = ["typeof"]; +exports.STRING_UNARY_OPERATORS = STRING_UNARY_OPERATORS; +const UNARY_OPERATORS = ["void", "throw", ...BOOLEAN_UNARY_OPERATORS, ...NUMBER_UNARY_OPERATORS, ...STRING_UNARY_OPERATORS]; +exports.UNARY_OPERATORS = UNARY_OPERATORS; +const INHERIT_KEYS = { + optional: ["typeAnnotation", "typeParameters", "returnType"], + force: ["start", "loc", "end"] +}; +exports.INHERIT_KEYS = INHERIT_KEYS; +const BLOCK_SCOPED_SYMBOL = Symbol.for("var used to be block scoped"); +exports.BLOCK_SCOPED_SYMBOL = BLOCK_SCOPED_SYMBOL; +const NOT_LOCAL_BINDING = Symbol.for("should not be considered a local binding"); +exports.NOT_LOCAL_BINDING = NOT_LOCAL_BINDING; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/Scope.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/Scope.js" new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/ensureBlock.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/ensureBlock.js" new file mode 100644 index 0000000000000000000000000000000000000000..56fdf1fdb4367d25c009cf965ae186cbb854a911 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/ensureBlock.js" @@ -0,0 +1,12 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = ensureBlock; + +var _toBlock = require("./toBlock"); + +function ensureBlock(node, key = "body") { + return node[key] = (0, _toBlock.default)(node[key], node); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js" new file mode 100644 index 0000000000000000000000000000000000000000..379e5ffe099853eca43f715d251a8c2a8979d4dc --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js" @@ -0,0 +1,75 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = gatherSequenceExpressions; + +var _getBindingIdentifiers = require("../retrievers/getBindingIdentifiers"); + +var _generated = require("../validators/generated"); + +var _generated2 = require("../builders/generated"); + +var _cloneNode = require("../clone/cloneNode"); + +function gatherSequenceExpressions(nodes, scope, declars) { + const exprs = []; + let ensureLastUndefined = true; + + for (const node of nodes) { + if (!(0, _generated.isEmptyStatement)(node)) { + ensureLastUndefined = false; + } + + if ((0, _generated.isExpression)(node)) { + exprs.push(node); + } else if ((0, _generated.isExpressionStatement)(node)) { + exprs.push(node.expression); + } else if ((0, _generated.isVariableDeclaration)(node)) { + if (node.kind !== "var") return; + + for (const declar of node.declarations) { + const bindings = (0, _getBindingIdentifiers.default)(declar); + + for (const key of Object.keys(bindings)) { + declars.push({ + kind: node.kind, + id: (0, _cloneNode.default)(bindings[key]) + }); + } + + if (declar.init) { + exprs.push((0, _generated2.assignmentExpression)("=", declar.id, declar.init)); + } + } + + ensureLastUndefined = true; + } else if ((0, _generated.isIfStatement)(node)) { + const consequent = node.consequent ? gatherSequenceExpressions([node.consequent], scope, declars) : scope.buildUndefinedNode(); + const alternate = node.alternate ? gatherSequenceExpressions([node.alternate], scope, declars) : scope.buildUndefinedNode(); + if (!consequent || !alternate) return; + exprs.push((0, _generated2.conditionalExpression)(node.test, consequent, alternate)); + } else if ((0, _generated.isBlockStatement)(node)) { + const body = gatherSequenceExpressions(node.body, scope, declars); + if (!body) return; + exprs.push(body); + } else if ((0, _generated.isEmptyStatement)(node)) { + if (nodes.indexOf(node) === 0) { + ensureLastUndefined = true; + } + } else { + return; + } + } + + if (ensureLastUndefined) { + exprs.push(scope.buildUndefinedNode()); + } + + if (exprs.length === 1) { + return exprs[0]; + } else { + return (0, _generated2.sequenceExpression)(exprs); + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js" new file mode 100644 index 0000000000000000000000000000000000000000..6bbce6e557806e02d35c1f2d9d3b5c847097969f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toBindingIdentifierName.js" @@ -0,0 +1,14 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = toBindingIdentifierName; + +var _toIdentifier = require("./toIdentifier"); + +function toBindingIdentifierName(name) { + name = (0, _toIdentifier.default)(name); + if (name === "eval" || name === "arguments") name = "_" + name; + return name; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toBlock.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toBlock.js" new file mode 100644 index 0000000000000000000000000000000000000000..19886833fa300e25f9f3b317fa65408d3ea8fd64 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toBlock.js" @@ -0,0 +1,34 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = toBlock; + +var _generated = require("../validators/generated"); + +var _generated2 = require("../builders/generated"); + +function toBlock(node, parent) { + if ((0, _generated.isBlockStatement)(node)) { + return node; + } + + let blockNodes = []; + + if ((0, _generated.isEmptyStatement)(node)) { + blockNodes = []; + } else { + if (!(0, _generated.isStatement)(node)) { + if ((0, _generated.isFunction)(parent)) { + node = (0, _generated2.returnStatement)(node); + } else { + node = (0, _generated2.expressionStatement)(node); + } + } + + blockNodes = [node]; + } + + return (0, _generated2.blockStatement)(blockNodes); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toComputedKey.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toComputedKey.js" new file mode 100644 index 0000000000000000000000000000000000000000..31e6770f6f770fd415cec2937d3d21eac65a05d5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toComputedKey.js" @@ -0,0 +1,15 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = toComputedKey; + +var _generated = require("../validators/generated"); + +var _generated2 = require("../builders/generated"); + +function toComputedKey(node, key = node.key || node.property) { + if (!node.computed && (0, _generated.isIdentifier)(key)) key = (0, _generated2.stringLiteral)(key.name); + return key; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toExpression.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toExpression.js" new file mode 100644 index 0000000000000000000000000000000000000000..2d944f0e98d825bfed9f7aabfea778c3b825a707 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toExpression.js" @@ -0,0 +1,33 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _generated = require("../validators/generated"); + +var _default = toExpression; +exports.default = _default; + +function toExpression(node) { + if ((0, _generated.isExpressionStatement)(node)) { + node = node.expression; + } + + if ((0, _generated.isExpression)(node)) { + return node; + } + + if ((0, _generated.isClass)(node)) { + node.type = "ClassExpression"; + } else if ((0, _generated.isFunction)(node)) { + node.type = "FunctionExpression"; + } + + if (!(0, _generated.isExpression)(node)) { + throw new Error(`cannot turn ${node.type} to an expression`); + } + + return node; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toIdentifier.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toIdentifier.js" new file mode 100644 index 0000000000000000000000000000000000000000..2fd4028d2dbb35f50de91c6147984cc614899c39 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toIdentifier.js" @@ -0,0 +1,30 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = toIdentifier; + +var _isValidIdentifier = require("../validators/isValidIdentifier"); + +var _helperValidatorIdentifier = require("@babel/helper-validator-identifier"); + +function toIdentifier(input) { + input = input + ""; + let name = ""; + + for (const c of input) { + name += (0, _helperValidatorIdentifier.isIdentifierChar)(c.codePointAt(0)) ? c : "-"; + } + + name = name.replace(/^[-0-9]+/, ""); + name = name.replace(/[-\s]+(.)?/g, function (match, c) { + return c ? c.toUpperCase() : ""; + }); + + if (!(0, _isValidIdentifier.default)(name)) { + name = `_${name}`; + } + + return name || "_"; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toKeyAlias.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toKeyAlias.js" new file mode 100644 index 0000000000000000000000000000000000000000..49ef4b8ad64abea85d7ba9fd001ced4913029201 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toKeyAlias.js" @@ -0,0 +1,46 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = toKeyAlias; + +var _generated = require("../validators/generated"); + +var _cloneNode = require("../clone/cloneNode"); + +var _removePropertiesDeep = require("../modifications/removePropertiesDeep"); + +function toKeyAlias(node, key = node.key) { + let alias; + + if (node.kind === "method") { + return toKeyAlias.increment() + ""; + } else if ((0, _generated.isIdentifier)(key)) { + alias = key.name; + } else if ((0, _generated.isStringLiteral)(key)) { + alias = JSON.stringify(key.value); + } else { + alias = JSON.stringify((0, _removePropertiesDeep.default)((0, _cloneNode.default)(key))); + } + + if (node.computed) { + alias = `[${alias}]`; + } + + if (node.static) { + alias = `static:${alias}`; + } + + return alias; +} + +toKeyAlias.uid = 0; + +toKeyAlias.increment = function () { + if (toKeyAlias.uid >= Number.MAX_SAFE_INTEGER) { + return toKeyAlias.uid = 0; + } else { + return toKeyAlias.uid++; + } +}; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toSequenceExpression.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toSequenceExpression.js" new file mode 100644 index 0000000000000000000000000000000000000000..c3d3133ecf39f5ae648fe5069cdf465d46a3fd6b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toSequenceExpression.js" @@ -0,0 +1,21 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = toSequenceExpression; + +var _gatherSequenceExpressions = require("./gatherSequenceExpressions"); + +function toSequenceExpression(nodes, scope) { + if (!(nodes != null && nodes.length)) return; + const declars = []; + const result = (0, _gatherSequenceExpressions.default)(nodes, scope, declars); + if (!result) return; + + for (const declar of declars) { + scope.push(declar); + } + + return result; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toStatement.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toStatement.js" new file mode 100644 index 0000000000000000000000000000000000000000..da020a61a017c8be2b26a84d1978843a73814fa0 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/toStatement.js" @@ -0,0 +1,47 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _generated = require("../validators/generated"); + +var _generated2 = require("../builders/generated"); + +var _default = toStatement; +exports.default = _default; + +function toStatement(node, ignore) { + if ((0, _generated.isStatement)(node)) { + return node; + } + + let mustHaveId = false; + let newType; + + if ((0, _generated.isClass)(node)) { + mustHaveId = true; + newType = "ClassDeclaration"; + } else if ((0, _generated.isFunction)(node)) { + mustHaveId = true; + newType = "FunctionDeclaration"; + } else if ((0, _generated.isAssignmentExpression)(node)) { + return (0, _generated2.expressionStatement)(node); + } + + if (mustHaveId && !node.id) { + newType = false; + } + + if (!newType) { + if (ignore) { + return false; + } else { + throw new Error(`cannot turn ${node.type} to a statement`); + } + } + + node.type = newType; + return node; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/valueToNode.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/valueToNode.js" new file mode 100644 index 0000000000000000000000000000000000000000..b3e531b3551278be3a8ad3e5efd58527b433fdf5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/converters/valueToNode.js" @@ -0,0 +1,99 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _isValidIdentifier = require("../validators/isValidIdentifier"); + +var _generated = require("../builders/generated"); + +var _default = valueToNode; +exports.default = _default; +const objectToString = Function.call.bind(Object.prototype.toString); + +function isRegExp(value) { + return objectToString(value) === "[object RegExp]"; +} + +function isPlainObject(value) { + if (typeof value !== "object" || value === null || Object.prototype.toString.call(value) !== "[object Object]") { + return false; + } + + const proto = Object.getPrototypeOf(value); + return proto === null || Object.getPrototypeOf(proto) === null; +} + +function valueToNode(value) { + if (value === undefined) { + return (0, _generated.identifier)("undefined"); + } + + if (value === true || value === false) { + return (0, _generated.booleanLiteral)(value); + } + + if (value === null) { + return (0, _generated.nullLiteral)(); + } + + if (typeof value === "string") { + return (0, _generated.stringLiteral)(value); + } + + if (typeof value === "number") { + let result; + + if (Number.isFinite(value)) { + result = (0, _generated.numericLiteral)(Math.abs(value)); + } else { + let numerator; + + if (Number.isNaN(value)) { + numerator = (0, _generated.numericLiteral)(0); + } else { + numerator = (0, _generated.numericLiteral)(1); + } + + result = (0, _generated.binaryExpression)("/", numerator, (0, _generated.numericLiteral)(0)); + } + + if (value < 0 || Object.is(value, -0)) { + result = (0, _generated.unaryExpression)("-", result); + } + + return result; + } + + if (isRegExp(value)) { + const pattern = value.source; + const flags = value.toString().match(/\/([a-z]+|)$/)[1]; + return (0, _generated.regExpLiteral)(pattern, flags); + } + + if (Array.isArray(value)) { + return (0, _generated.arrayExpression)(value.map(valueToNode)); + } + + if (isPlainObject(value)) { + const props = []; + + for (const key of Object.keys(value)) { + let nodeKey; + + if ((0, _isValidIdentifier.default)(key)) { + nodeKey = (0, _generated.identifier)(key); + } else { + nodeKey = (0, _generated.stringLiteral)(key); + } + + props.push((0, _generated.objectProperty)(nodeKey, valueToNode(value[key]))); + } + + return (0, _generated.objectExpression)(props); + } + + throw new Error("don't know how to turn this value into a node"); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/core.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/core.js" new file mode 100644 index 0000000000000000000000000000000000000000..1c46733926b80c277f1c4d6fc671c74f10d77078 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/core.js" @@ -0,0 +1,1649 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.patternLikeCommon = exports.functionTypeAnnotationCommon = exports.functionDeclarationCommon = exports.functionCommon = exports.classMethodOrPropertyCommon = exports.classMethodOrDeclareMethodCommon = void 0; + +var _is = require("../validators/is"); + +var _isValidIdentifier = require("../validators/isValidIdentifier"); + +var _helperValidatorIdentifier = require("@babel/helper-validator-identifier"); + +var _constants = require("../constants"); + +var _utils = require("./utils"); + +const defineType = (0, _utils.defineAliasedType)("Standardized"); +defineType("ArrayExpression", { + fields: { + elements: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeOrValueType)("null", "Expression", "SpreadElement"))), + default: !process.env.BABEL_TYPES_8_BREAKING ? [] : undefined + } + }, + visitor: ["elements"], + aliases: ["Expression"] +}); +defineType("AssignmentExpression", { + fields: { + operator: { + validate: function () { + if (!process.env.BABEL_TYPES_8_BREAKING) { + return (0, _utils.assertValueType)("string"); + } + + const identifier = (0, _utils.assertOneOf)(..._constants.ASSIGNMENT_OPERATORS); + const pattern = (0, _utils.assertOneOf)("="); + return function (node, key, val) { + const validator = (0, _is.default)("Pattern", node.left) ? pattern : identifier; + validator(node, key, val); + }; + }() + }, + left: { + validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("LVal") : (0, _utils.assertNodeType)("Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern") + }, + right: { + validate: (0, _utils.assertNodeType)("Expression") + } + }, + builder: ["operator", "left", "right"], + visitor: ["left", "right"], + aliases: ["Expression"] +}); +defineType("BinaryExpression", { + builder: ["operator", "left", "right"], + fields: { + operator: { + validate: (0, _utils.assertOneOf)(..._constants.BINARY_OPERATORS) + }, + left: { + validate: function () { + const expression = (0, _utils.assertNodeType)("Expression"); + const inOp = (0, _utils.assertNodeType)("Expression", "PrivateName"); + + const validator = function (node, key, val) { + const validator = node.operator === "in" ? inOp : expression; + validator(node, key, val); + }; + + validator.oneOfNodeTypes = ["Expression", "PrivateName"]; + return validator; + }() + }, + right: { + validate: (0, _utils.assertNodeType)("Expression") + } + }, + visitor: ["left", "right"], + aliases: ["Binary", "Expression"] +}); +defineType("InterpreterDirective", { + builder: ["value"], + fields: { + value: { + validate: (0, _utils.assertValueType)("string") + } + } +}); +defineType("Directive", { + visitor: ["value"], + fields: { + value: { + validate: (0, _utils.assertNodeType)("DirectiveLiteral") + } + } +}); +defineType("DirectiveLiteral", { + builder: ["value"], + fields: { + value: { + validate: (0, _utils.assertValueType)("string") + } + } +}); +defineType("BlockStatement", { + builder: ["body", "directives"], + visitor: ["directives", "body"], + fields: { + directives: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Directive"))), + default: [] + }, + body: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Statement"))) + } + }, + aliases: ["Scopable", "BlockParent", "Block", "Statement"] +}); +defineType("BreakStatement", { + visitor: ["label"], + fields: { + label: { + validate: (0, _utils.assertNodeType)("Identifier"), + optional: true + } + }, + aliases: ["Statement", "Terminatorless", "CompletionStatement"] +}); +defineType("CallExpression", { + visitor: ["callee", "arguments", "typeParameters", "typeArguments"], + builder: ["callee", "arguments"], + aliases: ["Expression"], + fields: Object.assign({ + callee: { + validate: (0, _utils.assertNodeType)("Expression", "V8IntrinsicIdentifier") + }, + arguments: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression", "SpreadElement", "JSXNamespacedName", "ArgumentPlaceholder"))) + } + }, !process.env.BABEL_TYPES_8_BREAKING ? { + optional: { + validate: (0, _utils.assertOneOf)(true, false), + optional: true + } + } : {}, { + typeArguments: { + validate: (0, _utils.assertNodeType)("TypeParameterInstantiation"), + optional: true + }, + typeParameters: { + validate: (0, _utils.assertNodeType)("TSTypeParameterInstantiation"), + optional: true + } + }) +}); +defineType("CatchClause", { + visitor: ["param", "body"], + fields: { + param: { + validate: (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern"), + optional: true + }, + body: { + validate: (0, _utils.assertNodeType)("BlockStatement") + } + }, + aliases: ["Scopable", "BlockParent"] +}); +defineType("ConditionalExpression", { + visitor: ["test", "consequent", "alternate"], + fields: { + test: { + validate: (0, _utils.assertNodeType)("Expression") + }, + consequent: { + validate: (0, _utils.assertNodeType)("Expression") + }, + alternate: { + validate: (0, _utils.assertNodeType)("Expression") + } + }, + aliases: ["Expression", "Conditional"] +}); +defineType("ContinueStatement", { + visitor: ["label"], + fields: { + label: { + validate: (0, _utils.assertNodeType)("Identifier"), + optional: true + } + }, + aliases: ["Statement", "Terminatorless", "CompletionStatement"] +}); +defineType("DebuggerStatement", { + aliases: ["Statement"] +}); +defineType("DoWhileStatement", { + visitor: ["test", "body"], + fields: { + test: { + validate: (0, _utils.assertNodeType)("Expression") + }, + body: { + validate: (0, _utils.assertNodeType)("Statement") + } + }, + aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"] +}); +defineType("EmptyStatement", { + aliases: ["Statement"] +}); +defineType("ExpressionStatement", { + visitor: ["expression"], + fields: { + expression: { + validate: (0, _utils.assertNodeType)("Expression") + } + }, + aliases: ["Statement", "ExpressionWrapper"] +}); +defineType("File", { + builder: ["program", "comments", "tokens"], + visitor: ["program"], + fields: { + program: { + validate: (0, _utils.assertNodeType)("Program") + }, + comments: { + validate: !process.env.BABEL_TYPES_8_BREAKING ? Object.assign(() => {}, { + each: { + oneOfNodeTypes: ["CommentBlock", "CommentLine"] + } + }) : (0, _utils.assertEach)((0, _utils.assertNodeType)("CommentBlock", "CommentLine")), + optional: true + }, + tokens: { + validate: (0, _utils.assertEach)(Object.assign(() => {}, { + type: "any" + })), + optional: true + } + } +}); +defineType("ForInStatement", { + visitor: ["left", "right", "body"], + aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"], + fields: { + left: { + validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("VariableDeclaration", "LVal") : (0, _utils.assertNodeType)("VariableDeclaration", "Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern") + }, + right: { + validate: (0, _utils.assertNodeType)("Expression") + }, + body: { + validate: (0, _utils.assertNodeType)("Statement") + } + } +}); +defineType("ForStatement", { + visitor: ["init", "test", "update", "body"], + aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop"], + fields: { + init: { + validate: (0, _utils.assertNodeType)("VariableDeclaration", "Expression"), + optional: true + }, + test: { + validate: (0, _utils.assertNodeType)("Expression"), + optional: true + }, + update: { + validate: (0, _utils.assertNodeType)("Expression"), + optional: true + }, + body: { + validate: (0, _utils.assertNodeType)("Statement") + } + } +}); +const functionCommon = { + params: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Identifier", "Pattern", "RestElement"))) + }, + generator: { + default: false + }, + async: { + default: false + } +}; +exports.functionCommon = functionCommon; +const functionTypeAnnotationCommon = { + returnType: { + validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), + optional: true + }, + typeParameters: { + validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"), + optional: true + } +}; +exports.functionTypeAnnotationCommon = functionTypeAnnotationCommon; +const functionDeclarationCommon = Object.assign({}, functionCommon, { + declare: { + validate: (0, _utils.assertValueType)("boolean"), + optional: true + }, + id: { + validate: (0, _utils.assertNodeType)("Identifier"), + optional: true + } +}); +exports.functionDeclarationCommon = functionDeclarationCommon; +defineType("FunctionDeclaration", { + builder: ["id", "params", "body", "generator", "async"], + visitor: ["id", "params", "body", "returnType", "typeParameters"], + fields: Object.assign({}, functionDeclarationCommon, functionTypeAnnotationCommon, { + body: { + validate: (0, _utils.assertNodeType)("BlockStatement") + } + }), + aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Statement", "Pureish", "Declaration"], + validate: function () { + if (!process.env.BABEL_TYPES_8_BREAKING) return () => {}; + const identifier = (0, _utils.assertNodeType)("Identifier"); + return function (parent, key, node) { + if (!(0, _is.default)("ExportDefaultDeclaration", parent)) { + identifier(node, "id", node.id); + } + }; + }() +}); +defineType("FunctionExpression", { + inherits: "FunctionDeclaration", + aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"], + fields: Object.assign({}, functionCommon, functionTypeAnnotationCommon, { + id: { + validate: (0, _utils.assertNodeType)("Identifier"), + optional: true + }, + body: { + validate: (0, _utils.assertNodeType)("BlockStatement") + } + }) +}); +const patternLikeCommon = { + typeAnnotation: { + validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), + optional: true + }, + decorators: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))) + } +}; +exports.patternLikeCommon = patternLikeCommon; +defineType("Identifier", { + builder: ["name"], + visitor: ["typeAnnotation", "decorators"], + aliases: ["Expression", "PatternLike", "LVal", "TSEntityName"], + fields: Object.assign({}, patternLikeCommon, { + name: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("string"), Object.assign(function (node, key, val) { + if (!process.env.BABEL_TYPES_8_BREAKING) return; + + if (!(0, _isValidIdentifier.default)(val, false)) { + throw new TypeError(`"${val}" is not a valid identifier name`); + } + }, { + type: "string" + })) + }, + optional: { + validate: (0, _utils.assertValueType)("boolean"), + optional: true + } + }), + + validate(parent, key, node) { + if (!process.env.BABEL_TYPES_8_BREAKING) return; + const match = /\.(\w+)$/.exec(key); + if (!match) return; + const [, parentKey] = match; + const nonComp = { + computed: false + }; + + if (parentKey === "property") { + if ((0, _is.default)("MemberExpression", parent, nonComp)) return; + if ((0, _is.default)("OptionalMemberExpression", parent, nonComp)) return; + } else if (parentKey === "key") { + if ((0, _is.default)("Property", parent, nonComp)) return; + if ((0, _is.default)("Method", parent, nonComp)) return; + } else if (parentKey === "exported") { + if ((0, _is.default)("ExportSpecifier", parent)) return; + } else if (parentKey === "imported") { + if ((0, _is.default)("ImportSpecifier", parent, { + imported: node + })) return; + } else if (parentKey === "meta") { + if ((0, _is.default)("MetaProperty", parent, { + meta: node + })) return; + } + + if (((0, _helperValidatorIdentifier.isKeyword)(node.name) || (0, _helperValidatorIdentifier.isReservedWord)(node.name, false)) && node.name !== "this") { + throw new TypeError(`"${node.name}" is not a valid identifier`); + } + } + +}); +defineType("IfStatement", { + visitor: ["test", "consequent", "alternate"], + aliases: ["Statement", "Conditional"], + fields: { + test: { + validate: (0, _utils.assertNodeType)("Expression") + }, + consequent: { + validate: (0, _utils.assertNodeType)("Statement") + }, + alternate: { + optional: true, + validate: (0, _utils.assertNodeType)("Statement") + } + } +}); +defineType("LabeledStatement", { + visitor: ["label", "body"], + aliases: ["Statement"], + fields: { + label: { + validate: (0, _utils.assertNodeType)("Identifier") + }, + body: { + validate: (0, _utils.assertNodeType)("Statement") + } + } +}); +defineType("StringLiteral", { + builder: ["value"], + fields: { + value: { + validate: (0, _utils.assertValueType)("string") + } + }, + aliases: ["Expression", "Pureish", "Literal", "Immutable"] +}); +defineType("NumericLiteral", { + builder: ["value"], + deprecatedAlias: "NumberLiteral", + fields: { + value: { + validate: (0, _utils.assertValueType)("number") + } + }, + aliases: ["Expression", "Pureish", "Literal", "Immutable"] +}); +defineType("NullLiteral", { + aliases: ["Expression", "Pureish", "Literal", "Immutable"] +}); +defineType("BooleanLiteral", { + builder: ["value"], + fields: { + value: { + validate: (0, _utils.assertValueType)("boolean") + } + }, + aliases: ["Expression", "Pureish", "Literal", "Immutable"] +}); +defineType("RegExpLiteral", { + builder: ["pattern", "flags"], + deprecatedAlias: "RegexLiteral", + aliases: ["Expression", "Pureish", "Literal"], + fields: { + pattern: { + validate: (0, _utils.assertValueType)("string") + }, + flags: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("string"), Object.assign(function (node, key, val) { + if (!process.env.BABEL_TYPES_8_BREAKING) return; + const invalid = /[^gimsuy]/.exec(val); + + if (invalid) { + throw new TypeError(`"${invalid[0]}" is not a valid RegExp flag`); + } + }, { + type: "string" + })), + default: "" + } + } +}); +defineType("LogicalExpression", { + builder: ["operator", "left", "right"], + visitor: ["left", "right"], + aliases: ["Binary", "Expression"], + fields: { + operator: { + validate: (0, _utils.assertOneOf)(..._constants.LOGICAL_OPERATORS) + }, + left: { + validate: (0, _utils.assertNodeType)("Expression") + }, + right: { + validate: (0, _utils.assertNodeType)("Expression") + } + } +}); +defineType("MemberExpression", { + builder: ["object", "property", "computed", ...(!process.env.BABEL_TYPES_8_BREAKING ? ["optional"] : [])], + visitor: ["object", "property"], + aliases: ["Expression", "LVal"], + fields: Object.assign({ + object: { + validate: (0, _utils.assertNodeType)("Expression") + }, + property: { + validate: function () { + const normal = (0, _utils.assertNodeType)("Identifier", "PrivateName"); + const computed = (0, _utils.assertNodeType)("Expression"); + + const validator = function (node, key, val) { + const validator = node.computed ? computed : normal; + validator(node, key, val); + }; + + validator.oneOfNodeTypes = ["Expression", "Identifier", "PrivateName"]; + return validator; + }() + }, + computed: { + default: false + } + }, !process.env.BABEL_TYPES_8_BREAKING ? { + optional: { + validate: (0, _utils.assertOneOf)(true, false), + optional: true + } + } : {}) +}); +defineType("NewExpression", { + inherits: "CallExpression" +}); +defineType("Program", { + visitor: ["directives", "body"], + builder: ["body", "directives", "sourceType", "interpreter"], + fields: { + sourceFile: { + validate: (0, _utils.assertValueType)("string") + }, + sourceType: { + validate: (0, _utils.assertOneOf)("script", "module"), + default: "script" + }, + interpreter: { + validate: (0, _utils.assertNodeType)("InterpreterDirective"), + default: null, + optional: true + }, + directives: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Directive"))), + default: [] + }, + body: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Statement"))) + } + }, + aliases: ["Scopable", "BlockParent", "Block"] +}); +defineType("ObjectExpression", { + visitor: ["properties"], + aliases: ["Expression"], + fields: { + properties: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ObjectMethod", "ObjectProperty", "SpreadElement"))) + } + } +}); +defineType("ObjectMethod", { + builder: ["kind", "key", "params", "body", "computed", "generator", "async"], + fields: Object.assign({}, functionCommon, functionTypeAnnotationCommon, { + kind: Object.assign({ + validate: (0, _utils.assertOneOf)("method", "get", "set") + }, !process.env.BABEL_TYPES_8_BREAKING ? { + default: "method" + } : {}), + computed: { + default: false + }, + key: { + validate: function () { + const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral"); + const computed = (0, _utils.assertNodeType)("Expression"); + + const validator = function (node, key, val) { + const validator = node.computed ? computed : normal; + validator(node, key, val); + }; + + validator.oneOfNodeTypes = ["Expression", "Identifier", "StringLiteral", "NumericLiteral"]; + return validator; + }() + }, + decorators: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), + optional: true + }, + body: { + validate: (0, _utils.assertNodeType)("BlockStatement") + } + }), + visitor: ["key", "params", "body", "decorators", "returnType", "typeParameters"], + aliases: ["UserWhitespacable", "Function", "Scopable", "BlockParent", "FunctionParent", "Method", "ObjectMember"] +}); +defineType("ObjectProperty", { + builder: ["key", "value", "computed", "shorthand", ...(!process.env.BABEL_TYPES_8_BREAKING ? ["decorators"] : [])], + fields: { + computed: { + default: false + }, + key: { + validate: function () { + const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral"); + const computed = (0, _utils.assertNodeType)("Expression"); + + const validator = function (node, key, val) { + const validator = node.computed ? computed : normal; + validator(node, key, val); + }; + + validator.oneOfNodeTypes = ["Expression", "Identifier", "StringLiteral", "NumericLiteral"]; + return validator; + }() + }, + value: { + validate: (0, _utils.assertNodeType)("Expression", "PatternLike") + }, + shorthand: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("boolean"), Object.assign(function (node, key, val) { + if (!process.env.BABEL_TYPES_8_BREAKING) return; + + if (val && node.computed) { + throw new TypeError("Property shorthand of ObjectProperty cannot be true if computed is true"); + } + }, { + type: "boolean" + }), function (node, key, val) { + if (!process.env.BABEL_TYPES_8_BREAKING) return; + + if (val && !(0, _is.default)("Identifier", node.key)) { + throw new TypeError("Property shorthand of ObjectProperty cannot be true if key is not an Identifier"); + } + }), + default: false + }, + decorators: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), + optional: true + } + }, + visitor: ["key", "value", "decorators"], + aliases: ["UserWhitespacable", "Property", "ObjectMember"], + validate: function () { + const pattern = (0, _utils.assertNodeType)("Identifier", "Pattern"); + const expression = (0, _utils.assertNodeType)("Expression"); + return function (parent, key, node) { + if (!process.env.BABEL_TYPES_8_BREAKING) return; + const validator = (0, _is.default)("ObjectPattern", parent) ? pattern : expression; + validator(node, "value", node.value); + }; + }() +}); +defineType("RestElement", { + visitor: ["argument", "typeAnnotation"], + builder: ["argument"], + aliases: ["LVal", "PatternLike"], + deprecatedAlias: "RestProperty", + fields: Object.assign({}, patternLikeCommon, { + argument: { + validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("LVal") : (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern", "MemberExpression") + }, + optional: { + validate: (0, _utils.assertValueType)("boolean"), + optional: true + } + }), + + validate(parent, key) { + if (!process.env.BABEL_TYPES_8_BREAKING) return; + const match = /(\w+)\[(\d+)\]/.exec(key); + if (!match) throw new Error("Internal Babel error: malformed key."); + const [, listKey, index] = match; + + if (parent[listKey].length > index + 1) { + throw new TypeError(`RestElement must be last element of ${listKey}`); + } + } + +}); +defineType("ReturnStatement", { + visitor: ["argument"], + aliases: ["Statement", "Terminatorless", "CompletionStatement"], + fields: { + argument: { + validate: (0, _utils.assertNodeType)("Expression"), + optional: true + } + } +}); +defineType("SequenceExpression", { + visitor: ["expressions"], + fields: { + expressions: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression"))) + } + }, + aliases: ["Expression"] +}); +defineType("ParenthesizedExpression", { + visitor: ["expression"], + aliases: ["Expression", "ExpressionWrapper"], + fields: { + expression: { + validate: (0, _utils.assertNodeType)("Expression") + } + } +}); +defineType("SwitchCase", { + visitor: ["test", "consequent"], + fields: { + test: { + validate: (0, _utils.assertNodeType)("Expression"), + optional: true + }, + consequent: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Statement"))) + } + } +}); +defineType("SwitchStatement", { + visitor: ["discriminant", "cases"], + aliases: ["Statement", "BlockParent", "Scopable"], + fields: { + discriminant: { + validate: (0, _utils.assertNodeType)("Expression") + }, + cases: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("SwitchCase"))) + } + } +}); +defineType("ThisExpression", { + aliases: ["Expression"] +}); +defineType("ThrowStatement", { + visitor: ["argument"], + aliases: ["Statement", "Terminatorless", "CompletionStatement"], + fields: { + argument: { + validate: (0, _utils.assertNodeType)("Expression") + } + } +}); +defineType("TryStatement", { + visitor: ["block", "handler", "finalizer"], + aliases: ["Statement"], + fields: { + block: { + validate: (0, _utils.chain)((0, _utils.assertNodeType)("BlockStatement"), Object.assign(function (node) { + if (!process.env.BABEL_TYPES_8_BREAKING) return; + + if (!node.handler && !node.finalizer) { + throw new TypeError("TryStatement expects either a handler or finalizer, or both"); + } + }, { + oneOfNodeTypes: ["BlockStatement"] + })) + }, + handler: { + optional: true, + validate: (0, _utils.assertNodeType)("CatchClause") + }, + finalizer: { + optional: true, + validate: (0, _utils.assertNodeType)("BlockStatement") + } + } +}); +defineType("UnaryExpression", { + builder: ["operator", "argument", "prefix"], + fields: { + prefix: { + default: true + }, + argument: { + validate: (0, _utils.assertNodeType)("Expression") + }, + operator: { + validate: (0, _utils.assertOneOf)(..._constants.UNARY_OPERATORS) + } + }, + visitor: ["argument"], + aliases: ["UnaryLike", "Expression"] +}); +defineType("UpdateExpression", { + builder: ["operator", "argument", "prefix"], + fields: { + prefix: { + default: false + }, + argument: { + validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertNodeType)("Expression") : (0, _utils.assertNodeType)("Identifier", "MemberExpression") + }, + operator: { + validate: (0, _utils.assertOneOf)(..._constants.UPDATE_OPERATORS) + } + }, + visitor: ["argument"], + aliases: ["Expression"] +}); +defineType("VariableDeclaration", { + builder: ["kind", "declarations"], + visitor: ["declarations"], + aliases: ["Statement", "Declaration"], + fields: { + declare: { + validate: (0, _utils.assertValueType)("boolean"), + optional: true + }, + kind: { + validate: (0, _utils.assertOneOf)("var", "let", "const") + }, + declarations: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("VariableDeclarator"))) + } + }, + + validate(parent, key, node) { + if (!process.env.BABEL_TYPES_8_BREAKING) return; + if (!(0, _is.default)("ForXStatement", parent, { + left: node + })) return; + + if (node.declarations.length !== 1) { + throw new TypeError(`Exactly one VariableDeclarator is required in the VariableDeclaration of a ${parent.type}`); + } + } + +}); +defineType("VariableDeclarator", { + visitor: ["id", "init"], + fields: { + id: { + validate: function () { + if (!process.env.BABEL_TYPES_8_BREAKING) { + return (0, _utils.assertNodeType)("LVal"); + } + + const normal = (0, _utils.assertNodeType)("Identifier", "ArrayPattern", "ObjectPattern"); + const without = (0, _utils.assertNodeType)("Identifier"); + return function (node, key, val) { + const validator = node.init ? normal : without; + validator(node, key, val); + }; + }() + }, + definite: { + optional: true, + validate: (0, _utils.assertValueType)("boolean") + }, + init: { + optional: true, + validate: (0, _utils.assertNodeType)("Expression") + } + } +}); +defineType("WhileStatement", { + visitor: ["test", "body"], + aliases: ["Statement", "BlockParent", "Loop", "While", "Scopable"], + fields: { + test: { + validate: (0, _utils.assertNodeType)("Expression") + }, + body: { + validate: (0, _utils.assertNodeType)("Statement") + } + } +}); +defineType("WithStatement", { + visitor: ["object", "body"], + aliases: ["Statement"], + fields: { + object: { + validate: (0, _utils.assertNodeType)("Expression") + }, + body: { + validate: (0, _utils.assertNodeType)("Statement") + } + } +}); +defineType("AssignmentPattern", { + visitor: ["left", "right", "decorators"], + builder: ["left", "right"], + aliases: ["Pattern", "PatternLike", "LVal"], + fields: Object.assign({}, patternLikeCommon, { + left: { + validate: (0, _utils.assertNodeType)("Identifier", "ObjectPattern", "ArrayPattern", "MemberExpression") + }, + right: { + validate: (0, _utils.assertNodeType)("Expression") + }, + decorators: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), + optional: true + } + }) +}); +defineType("ArrayPattern", { + visitor: ["elements", "typeAnnotation"], + builder: ["elements"], + aliases: ["Pattern", "PatternLike", "LVal"], + fields: Object.assign({}, patternLikeCommon, { + elements: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeOrValueType)("null", "PatternLike"))) + }, + decorators: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), + optional: true + }, + optional: { + validate: (0, _utils.assertValueType)("boolean"), + optional: true + } + }) +}); +defineType("ArrowFunctionExpression", { + builder: ["params", "body", "async"], + visitor: ["params", "body", "returnType", "typeParameters"], + aliases: ["Scopable", "Function", "BlockParent", "FunctionParent", "Expression", "Pureish"], + fields: Object.assign({}, functionCommon, functionTypeAnnotationCommon, { + expression: { + validate: (0, _utils.assertValueType)("boolean") + }, + body: { + validate: (0, _utils.assertNodeType)("BlockStatement", "Expression") + } + }) +}); +defineType("ClassBody", { + visitor: ["body"], + fields: { + body: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ClassMethod", "ClassPrivateMethod", "ClassProperty", "ClassPrivateProperty", "ClassAccessorProperty", "TSDeclareMethod", "TSIndexSignature", "StaticBlock"))) + } + } +}); +defineType("ClassExpression", { + builder: ["id", "superClass", "body", "decorators"], + visitor: ["id", "body", "superClass", "mixins", "typeParameters", "superTypeParameters", "implements", "decorators"], + aliases: ["Scopable", "Class", "Expression"], + fields: { + id: { + validate: (0, _utils.assertNodeType)("Identifier"), + optional: true + }, + typeParameters: { + validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"), + optional: true + }, + body: { + validate: (0, _utils.assertNodeType)("ClassBody") + }, + superClass: { + optional: true, + validate: (0, _utils.assertNodeType)("Expression") + }, + superTypeParameters: { + validate: (0, _utils.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), + optional: true + }, + implements: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("TSExpressionWithTypeArguments", "ClassImplements"))), + optional: true + }, + decorators: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), + optional: true + }, + mixins: { + validate: (0, _utils.assertNodeType)("InterfaceExtends"), + optional: true + } + } +}); +defineType("ClassDeclaration", { + inherits: "ClassExpression", + aliases: ["Scopable", "Class", "Statement", "Declaration"], + fields: { + id: { + validate: (0, _utils.assertNodeType)("Identifier") + }, + typeParameters: { + validate: (0, _utils.assertNodeType)("TypeParameterDeclaration", "TSTypeParameterDeclaration", "Noop"), + optional: true + }, + body: { + validate: (0, _utils.assertNodeType)("ClassBody") + }, + superClass: { + optional: true, + validate: (0, _utils.assertNodeType)("Expression") + }, + superTypeParameters: { + validate: (0, _utils.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), + optional: true + }, + implements: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("TSExpressionWithTypeArguments", "ClassImplements"))), + optional: true + }, + decorators: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), + optional: true + }, + mixins: { + validate: (0, _utils.assertNodeType)("InterfaceExtends"), + optional: true + }, + declare: { + validate: (0, _utils.assertValueType)("boolean"), + optional: true + }, + abstract: { + validate: (0, _utils.assertValueType)("boolean"), + optional: true + } + }, + validate: function () { + const identifier = (0, _utils.assertNodeType)("Identifier"); + return function (parent, key, node) { + if (!process.env.BABEL_TYPES_8_BREAKING) return; + + if (!(0, _is.default)("ExportDefaultDeclaration", parent)) { + identifier(node, "id", node.id); + } + }; + }() +}); +defineType("ExportAllDeclaration", { + visitor: ["source"], + aliases: ["Statement", "Declaration", "ModuleDeclaration", "ExportDeclaration"], + fields: { + source: { + validate: (0, _utils.assertNodeType)("StringLiteral") + }, + exportKind: (0, _utils.validateOptional)((0, _utils.assertOneOf)("type", "value")), + assertions: { + optional: true, + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ImportAttribute"))) + } + } +}); +defineType("ExportDefaultDeclaration", { + visitor: ["declaration"], + aliases: ["Statement", "Declaration", "ModuleDeclaration", "ExportDeclaration"], + fields: { + declaration: { + validate: (0, _utils.assertNodeType)("FunctionDeclaration", "TSDeclareFunction", "ClassDeclaration", "Expression") + }, + exportKind: (0, _utils.validateOptional)((0, _utils.assertOneOf)("value")) + } +}); +defineType("ExportNamedDeclaration", { + visitor: ["declaration", "specifiers", "source"], + aliases: ["Statement", "Declaration", "ModuleDeclaration", "ExportDeclaration"], + fields: { + declaration: { + optional: true, + validate: (0, _utils.chain)((0, _utils.assertNodeType)("Declaration"), Object.assign(function (node, key, val) { + if (!process.env.BABEL_TYPES_8_BREAKING) return; + + if (val && node.specifiers.length) { + throw new TypeError("Only declaration or specifiers is allowed on ExportNamedDeclaration"); + } + }, { + oneOfNodeTypes: ["Declaration"] + }), function (node, key, val) { + if (!process.env.BABEL_TYPES_8_BREAKING) return; + + if (val && node.source) { + throw new TypeError("Cannot export a declaration from a source"); + } + }) + }, + assertions: { + optional: true, + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ImportAttribute"))) + }, + specifiers: { + default: [], + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)(function () { + const sourced = (0, _utils.assertNodeType)("ExportSpecifier", "ExportDefaultSpecifier", "ExportNamespaceSpecifier"); + const sourceless = (0, _utils.assertNodeType)("ExportSpecifier"); + if (!process.env.BABEL_TYPES_8_BREAKING) return sourced; + return function (node, key, val) { + const validator = node.source ? sourced : sourceless; + validator(node, key, val); + }; + }())) + }, + source: { + validate: (0, _utils.assertNodeType)("StringLiteral"), + optional: true + }, + exportKind: (0, _utils.validateOptional)((0, _utils.assertOneOf)("type", "value")) + } +}); +defineType("ExportSpecifier", { + visitor: ["local", "exported"], + aliases: ["ModuleSpecifier"], + fields: { + local: { + validate: (0, _utils.assertNodeType)("Identifier") + }, + exported: { + validate: (0, _utils.assertNodeType)("Identifier", "StringLiteral") + }, + exportKind: { + validate: (0, _utils.assertOneOf)("type", "value"), + optional: true + } + } +}); +defineType("ForOfStatement", { + visitor: ["left", "right", "body"], + builder: ["left", "right", "body", "await"], + aliases: ["Scopable", "Statement", "For", "BlockParent", "Loop", "ForXStatement"], + fields: { + left: { + validate: function () { + if (!process.env.BABEL_TYPES_8_BREAKING) { + return (0, _utils.assertNodeType)("VariableDeclaration", "LVal"); + } + + const declaration = (0, _utils.assertNodeType)("VariableDeclaration"); + const lval = (0, _utils.assertNodeType)("Identifier", "MemberExpression", "ArrayPattern", "ObjectPattern"); + return function (node, key, val) { + if ((0, _is.default)("VariableDeclaration", val)) { + declaration(node, key, val); + } else { + lval(node, key, val); + } + }; + }() + }, + right: { + validate: (0, _utils.assertNodeType)("Expression") + }, + body: { + validate: (0, _utils.assertNodeType)("Statement") + }, + await: { + default: false + } + } +}); +defineType("ImportDeclaration", { + visitor: ["specifiers", "source"], + aliases: ["Statement", "Declaration", "ModuleDeclaration"], + fields: { + assertions: { + optional: true, + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ImportAttribute"))) + }, + specifiers: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ImportSpecifier", "ImportDefaultSpecifier", "ImportNamespaceSpecifier"))) + }, + source: { + validate: (0, _utils.assertNodeType)("StringLiteral") + }, + importKind: { + validate: (0, _utils.assertOneOf)("type", "typeof", "value"), + optional: true + } + } +}); +defineType("ImportDefaultSpecifier", { + visitor: ["local"], + aliases: ["ModuleSpecifier"], + fields: { + local: { + validate: (0, _utils.assertNodeType)("Identifier") + } + } +}); +defineType("ImportNamespaceSpecifier", { + visitor: ["local"], + aliases: ["ModuleSpecifier"], + fields: { + local: { + validate: (0, _utils.assertNodeType)("Identifier") + } + } +}); +defineType("ImportSpecifier", { + visitor: ["local", "imported"], + aliases: ["ModuleSpecifier"], + fields: { + local: { + validate: (0, _utils.assertNodeType)("Identifier") + }, + imported: { + validate: (0, _utils.assertNodeType)("Identifier", "StringLiteral") + }, + importKind: { + validate: (0, _utils.assertOneOf)("type", "typeof", "value"), + optional: true + } + } +}); +defineType("MetaProperty", { + visitor: ["meta", "property"], + aliases: ["Expression"], + fields: { + meta: { + validate: (0, _utils.chain)((0, _utils.assertNodeType)("Identifier"), Object.assign(function (node, key, val) { + if (!process.env.BABEL_TYPES_8_BREAKING) return; + let property; + + switch (val.name) { + case "function": + property = "sent"; + break; + + case "new": + property = "target"; + break; + + case "import": + property = "meta"; + break; + } + + if (!(0, _is.default)("Identifier", node.property, { + name: property + })) { + throw new TypeError("Unrecognised MetaProperty"); + } + }, { + oneOfNodeTypes: ["Identifier"] + })) + }, + property: { + validate: (0, _utils.assertNodeType)("Identifier") + } + } +}); +const classMethodOrPropertyCommon = { + abstract: { + validate: (0, _utils.assertValueType)("boolean"), + optional: true + }, + accessibility: { + validate: (0, _utils.assertOneOf)("public", "private", "protected"), + optional: true + }, + static: { + default: false + }, + override: { + default: false + }, + computed: { + default: false + }, + optional: { + validate: (0, _utils.assertValueType)("boolean"), + optional: true + }, + key: { + validate: (0, _utils.chain)(function () { + const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral"); + const computed = (0, _utils.assertNodeType)("Expression"); + return function (node, key, val) { + const validator = node.computed ? computed : normal; + validator(node, key, val); + }; + }(), (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "Expression")) + } +}; +exports.classMethodOrPropertyCommon = classMethodOrPropertyCommon; +const classMethodOrDeclareMethodCommon = Object.assign({}, functionCommon, classMethodOrPropertyCommon, { + params: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Identifier", "Pattern", "RestElement", "TSParameterProperty"))) + }, + kind: { + validate: (0, _utils.assertOneOf)("get", "set", "method", "constructor"), + default: "method" + }, + access: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("string"), (0, _utils.assertOneOf)("public", "private", "protected")), + optional: true + }, + decorators: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), + optional: true + } +}); +exports.classMethodOrDeclareMethodCommon = classMethodOrDeclareMethodCommon; +defineType("ClassMethod", { + aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method"], + builder: ["kind", "key", "params", "body", "computed", "static", "generator", "async"], + visitor: ["key", "params", "body", "decorators", "returnType", "typeParameters"], + fields: Object.assign({}, classMethodOrDeclareMethodCommon, functionTypeAnnotationCommon, { + body: { + validate: (0, _utils.assertNodeType)("BlockStatement") + } + }) +}); +defineType("ObjectPattern", { + visitor: ["properties", "typeAnnotation", "decorators"], + builder: ["properties"], + aliases: ["Pattern", "PatternLike", "LVal"], + fields: Object.assign({}, patternLikeCommon, { + properties: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("RestElement", "ObjectProperty"))) + } + }) +}); +defineType("SpreadElement", { + visitor: ["argument"], + aliases: ["UnaryLike"], + deprecatedAlias: "SpreadProperty", + fields: { + argument: { + validate: (0, _utils.assertNodeType)("Expression") + } + } +}); +defineType("Super", { + aliases: ["Expression"] +}); +defineType("TaggedTemplateExpression", { + visitor: ["tag", "quasi", "typeParameters"], + builder: ["tag", "quasi"], + aliases: ["Expression"], + fields: { + tag: { + validate: (0, _utils.assertNodeType)("Expression") + }, + quasi: { + validate: (0, _utils.assertNodeType)("TemplateLiteral") + }, + typeParameters: { + validate: (0, _utils.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), + optional: true + } + } +}); +defineType("TemplateElement", { + builder: ["value", "tail"], + fields: { + value: { + validate: (0, _utils.assertShape)({ + raw: { + validate: (0, _utils.assertValueType)("string") + }, + cooked: { + validate: (0, _utils.assertValueType)("string"), + optional: true + } + }) + }, + tail: { + default: false + } + } +}); +defineType("TemplateLiteral", { + visitor: ["quasis", "expressions"], + aliases: ["Expression", "Literal"], + fields: { + quasis: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("TemplateElement"))) + }, + expressions: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression", "TSType")), function (node, key, val) { + if (node.quasis.length !== val.length + 1) { + throw new TypeError(`Number of ${node.type} quasis should be exactly one more than the number of expressions.\nExpected ${val.length + 1} quasis but got ${node.quasis.length}`); + } + }) + } + } +}); +defineType("YieldExpression", { + builder: ["argument", "delegate"], + visitor: ["argument"], + aliases: ["Expression", "Terminatorless"], + fields: { + delegate: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("boolean"), Object.assign(function (node, key, val) { + if (!process.env.BABEL_TYPES_8_BREAKING) return; + + if (val && !node.argument) { + throw new TypeError("Property delegate of YieldExpression cannot be true if there is no argument"); + } + }, { + type: "boolean" + })), + default: false + }, + argument: { + optional: true, + validate: (0, _utils.assertNodeType)("Expression") + } + } +}); +defineType("AwaitExpression", { + builder: ["argument"], + visitor: ["argument"], + aliases: ["Expression", "Terminatorless"], + fields: { + argument: { + validate: (0, _utils.assertNodeType)("Expression") + } + } +}); +defineType("Import", { + aliases: ["Expression"] +}); +defineType("BigIntLiteral", { + builder: ["value"], + fields: { + value: { + validate: (0, _utils.assertValueType)("string") + } + }, + aliases: ["Expression", "Pureish", "Literal", "Immutable"] +}); +defineType("ExportNamespaceSpecifier", { + visitor: ["exported"], + aliases: ["ModuleSpecifier"], + fields: { + exported: { + validate: (0, _utils.assertNodeType)("Identifier") + } + } +}); +defineType("OptionalMemberExpression", { + builder: ["object", "property", "computed", "optional"], + visitor: ["object", "property"], + aliases: ["Expression"], + fields: { + object: { + validate: (0, _utils.assertNodeType)("Expression") + }, + property: { + validate: function () { + const normal = (0, _utils.assertNodeType)("Identifier"); + const computed = (0, _utils.assertNodeType)("Expression"); + + const validator = function (node, key, val) { + const validator = node.computed ? computed : normal; + validator(node, key, val); + }; + + validator.oneOfNodeTypes = ["Expression", "Identifier"]; + return validator; + }() + }, + computed: { + default: false + }, + optional: { + validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertValueType)("boolean") : (0, _utils.chain)((0, _utils.assertValueType)("boolean"), (0, _utils.assertOptionalChainStart)()) + } + } +}); +defineType("OptionalCallExpression", { + visitor: ["callee", "arguments", "typeParameters", "typeArguments"], + builder: ["callee", "arguments", "optional"], + aliases: ["Expression"], + fields: { + callee: { + validate: (0, _utils.assertNodeType)("Expression") + }, + arguments: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression", "SpreadElement", "JSXNamespacedName", "ArgumentPlaceholder"))) + }, + optional: { + validate: !process.env.BABEL_TYPES_8_BREAKING ? (0, _utils.assertValueType)("boolean") : (0, _utils.chain)((0, _utils.assertValueType)("boolean"), (0, _utils.assertOptionalChainStart)()) + }, + typeArguments: { + validate: (0, _utils.assertNodeType)("TypeParameterInstantiation"), + optional: true + }, + typeParameters: { + validate: (0, _utils.assertNodeType)("TSTypeParameterInstantiation"), + optional: true + } + } +}); +defineType("ClassProperty", { + visitor: ["key", "value", "typeAnnotation", "decorators"], + builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"], + aliases: ["Property"], + fields: Object.assign({}, classMethodOrPropertyCommon, { + value: { + validate: (0, _utils.assertNodeType)("Expression"), + optional: true + }, + definite: { + validate: (0, _utils.assertValueType)("boolean"), + optional: true + }, + typeAnnotation: { + validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), + optional: true + }, + decorators: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), + optional: true + }, + readonly: { + validate: (0, _utils.assertValueType)("boolean"), + optional: true + }, + declare: { + validate: (0, _utils.assertValueType)("boolean"), + optional: true + }, + variance: { + validate: (0, _utils.assertNodeType)("Variance"), + optional: true + } + }) +}); +defineType("ClassAccessorProperty", { + visitor: ["key", "value", "typeAnnotation", "decorators"], + builder: ["key", "value", "typeAnnotation", "decorators", "computed", "static"], + aliases: ["Property", "Accessor"], + fields: Object.assign({}, classMethodOrPropertyCommon, { + key: { + validate: (0, _utils.chain)(function () { + const normal = (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "PrivateName"); + const computed = (0, _utils.assertNodeType)("Expression"); + return function (node, key, val) { + const validator = node.computed ? computed : normal; + validator(node, key, val); + }; + }(), (0, _utils.assertNodeType)("Identifier", "StringLiteral", "NumericLiteral", "Expression", "PrivateName")) + }, + value: { + validate: (0, _utils.assertNodeType)("Expression"), + optional: true + }, + definite: { + validate: (0, _utils.assertValueType)("boolean"), + optional: true + }, + typeAnnotation: { + validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), + optional: true + }, + decorators: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), + optional: true + }, + readonly: { + validate: (0, _utils.assertValueType)("boolean"), + optional: true + }, + declare: { + validate: (0, _utils.assertValueType)("boolean"), + optional: true + }, + variance: { + validate: (0, _utils.assertNodeType)("Variance"), + optional: true + } + }) +}); +defineType("ClassPrivateProperty", { + visitor: ["key", "value", "decorators", "typeAnnotation"], + builder: ["key", "value", "decorators", "static"], + aliases: ["Property", "Private"], + fields: { + key: { + validate: (0, _utils.assertNodeType)("PrivateName") + }, + value: { + validate: (0, _utils.assertNodeType)("Expression"), + optional: true + }, + typeAnnotation: { + validate: (0, _utils.assertNodeType)("TypeAnnotation", "TSTypeAnnotation", "Noop"), + optional: true + }, + decorators: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), + optional: true + }, + readonly: { + validate: (0, _utils.assertValueType)("boolean"), + optional: true + }, + definite: { + validate: (0, _utils.assertValueType)("boolean"), + optional: true + }, + variance: { + validate: (0, _utils.assertNodeType)("Variance"), + optional: true + } + } +}); +defineType("ClassPrivateMethod", { + builder: ["kind", "key", "params", "body", "static"], + visitor: ["key", "params", "body", "decorators", "returnType", "typeParameters"], + aliases: ["Function", "Scopable", "BlockParent", "FunctionParent", "Method", "Private"], + fields: Object.assign({}, classMethodOrDeclareMethodCommon, functionTypeAnnotationCommon, { + key: { + validate: (0, _utils.assertNodeType)("PrivateName") + }, + body: { + validate: (0, _utils.assertNodeType)("BlockStatement") + } + }) +}); +defineType("PrivateName", { + visitor: ["id"], + aliases: ["Private"], + fields: { + id: { + validate: (0, _utils.assertNodeType)("Identifier") + } + } +}); +defineType("StaticBlock", { + visitor: ["body"], + fields: { + body: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Statement"))) + } + }, + aliases: ["Scopable", "BlockParent", "FunctionParent"] +}); \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/experimental.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/experimental.js" new file mode 100644 index 0000000000000000000000000000000000000000..be97c0d7916b81dde540afdcd97ee530f3939142 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/experimental.js" @@ -0,0 +1,133 @@ +"use strict"; + +var _utils = require("./utils"); + +(0, _utils.default)("ArgumentPlaceholder", {}); +(0, _utils.default)("BindExpression", { + visitor: ["object", "callee"], + aliases: ["Expression"], + fields: !process.env.BABEL_TYPES_8_BREAKING ? { + object: { + validate: Object.assign(() => {}, { + oneOfNodeTypes: ["Expression"] + }) + }, + callee: { + validate: Object.assign(() => {}, { + oneOfNodeTypes: ["Expression"] + }) + } + } : { + object: { + validate: (0, _utils.assertNodeType)("Expression") + }, + callee: { + validate: (0, _utils.assertNodeType)("Expression") + } + } +}); +(0, _utils.default)("ImportAttribute", { + visitor: ["key", "value"], + fields: { + key: { + validate: (0, _utils.assertNodeType)("Identifier", "StringLiteral") + }, + value: { + validate: (0, _utils.assertNodeType)("StringLiteral") + } + } +}); +(0, _utils.default)("Decorator", { + visitor: ["expression"], + fields: { + expression: { + validate: (0, _utils.assertNodeType)("Expression") + } + } +}); +(0, _utils.default)("DoExpression", { + visitor: ["body"], + builder: ["body", "async"], + aliases: ["Expression"], + fields: { + body: { + validate: (0, _utils.assertNodeType)("BlockStatement") + }, + async: { + validate: (0, _utils.assertValueType)("boolean"), + default: false + } + } +}); +(0, _utils.default)("ExportDefaultSpecifier", { + visitor: ["exported"], + aliases: ["ModuleSpecifier"], + fields: { + exported: { + validate: (0, _utils.assertNodeType)("Identifier") + } + } +}); +(0, _utils.default)("RecordExpression", { + visitor: ["properties"], + aliases: ["Expression"], + fields: { + properties: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("ObjectProperty", "SpreadElement"))) + } + } +}); +(0, _utils.default)("TupleExpression", { + fields: { + elements: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Expression", "SpreadElement"))), + default: [] + } + }, + visitor: ["elements"], + aliases: ["Expression"] +}); +(0, _utils.default)("DecimalLiteral", { + builder: ["value"], + fields: { + value: { + validate: (0, _utils.assertValueType)("string") + } + }, + aliases: ["Expression", "Pureish", "Literal", "Immutable"] +}); +(0, _utils.default)("ModuleExpression", { + visitor: ["body"], + fields: { + body: { + validate: (0, _utils.assertNodeType)("Program") + } + }, + aliases: ["Expression"] +}); +(0, _utils.default)("TopicReference", { + aliases: ["Expression"] +}); +(0, _utils.default)("PipelineTopicExpression", { + builder: ["expression"], + visitor: ["expression"], + fields: { + expression: { + validate: (0, _utils.assertNodeType)("Expression") + } + }, + aliases: ["Expression"] +}); +(0, _utils.default)("PipelineBareFunction", { + builder: ["callee"], + visitor: ["callee"], + fields: { + callee: { + validate: (0, _utils.assertNodeType)("Expression") + } + }, + aliases: ["Expression"] +}); +(0, _utils.default)("PipelinePrimaryTopicReference", { + aliases: ["Expression"] +}); \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/flow.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/flow.js" new file mode 100644 index 0000000000000000000000000000000000000000..706de242523ec7a835d239d4b2e5be05e98d4a94 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/flow.js" @@ -0,0 +1,474 @@ +"use strict"; + +var _utils = require("./utils"); + +const defineType = (0, _utils.defineAliasedType)("Flow"); + +const defineInterfaceishType = (name, typeParameterType = "TypeParameterDeclaration") => { + defineType(name, { + builder: ["id", "typeParameters", "extends", "body"], + visitor: ["id", "typeParameters", "extends", "mixins", "implements", "body"], + aliases: ["FlowDeclaration", "Statement", "Declaration"], + fields: { + id: (0, _utils.validateType)("Identifier"), + typeParameters: (0, _utils.validateOptionalType)(typeParameterType), + extends: (0, _utils.validateOptional)((0, _utils.arrayOfType)("InterfaceExtends")), + mixins: (0, _utils.validateOptional)((0, _utils.arrayOfType)("InterfaceExtends")), + implements: (0, _utils.validateOptional)((0, _utils.arrayOfType)("ClassImplements")), + body: (0, _utils.validateType)("ObjectTypeAnnotation") + } + }); +}; + +defineType("AnyTypeAnnotation", { + aliases: ["FlowType", "FlowBaseAnnotation"] +}); +defineType("ArrayTypeAnnotation", { + visitor: ["elementType"], + aliases: ["FlowType"], + fields: { + elementType: (0, _utils.validateType)("FlowType") + } +}); +defineType("BooleanTypeAnnotation", { + aliases: ["FlowType", "FlowBaseAnnotation"] +}); +defineType("BooleanLiteralTypeAnnotation", { + builder: ["value"], + aliases: ["FlowType"], + fields: { + value: (0, _utils.validate)((0, _utils.assertValueType)("boolean")) + } +}); +defineType("NullLiteralTypeAnnotation", { + aliases: ["FlowType", "FlowBaseAnnotation"] +}); +defineType("ClassImplements", { + visitor: ["id", "typeParameters"], + fields: { + id: (0, _utils.validateType)("Identifier"), + typeParameters: (0, _utils.validateOptionalType)("TypeParameterInstantiation") + } +}); +defineInterfaceishType("DeclareClass"); +defineType("DeclareFunction", { + visitor: ["id"], + aliases: ["FlowDeclaration", "Statement", "Declaration"], + fields: { + id: (0, _utils.validateType)("Identifier"), + predicate: (0, _utils.validateOptionalType)("DeclaredPredicate") + } +}); +defineInterfaceishType("DeclareInterface"); +defineType("DeclareModule", { + builder: ["id", "body", "kind"], + visitor: ["id", "body"], + aliases: ["FlowDeclaration", "Statement", "Declaration"], + fields: { + id: (0, _utils.validateType)(["Identifier", "StringLiteral"]), + body: (0, _utils.validateType)("BlockStatement"), + kind: (0, _utils.validateOptional)((0, _utils.assertOneOf)("CommonJS", "ES")) + } +}); +defineType("DeclareModuleExports", { + visitor: ["typeAnnotation"], + aliases: ["FlowDeclaration", "Statement", "Declaration"], + fields: { + typeAnnotation: (0, _utils.validateType)("TypeAnnotation") + } +}); +defineType("DeclareTypeAlias", { + visitor: ["id", "typeParameters", "right"], + aliases: ["FlowDeclaration", "Statement", "Declaration"], + fields: { + id: (0, _utils.validateType)("Identifier"), + typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"), + right: (0, _utils.validateType)("FlowType") + } +}); +defineType("DeclareOpaqueType", { + visitor: ["id", "typeParameters", "supertype"], + aliases: ["FlowDeclaration", "Statement", "Declaration"], + fields: { + id: (0, _utils.validateType)("Identifier"), + typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"), + supertype: (0, _utils.validateOptionalType)("FlowType"), + impltype: (0, _utils.validateOptionalType)("FlowType") + } +}); +defineType("DeclareVariable", { + visitor: ["id"], + aliases: ["FlowDeclaration", "Statement", "Declaration"], + fields: { + id: (0, _utils.validateType)("Identifier") + } +}); +defineType("DeclareExportDeclaration", { + visitor: ["declaration", "specifiers", "source"], + aliases: ["FlowDeclaration", "Statement", "Declaration"], + fields: { + declaration: (0, _utils.validateOptionalType)("Flow"), + specifiers: (0, _utils.validateOptional)((0, _utils.arrayOfType)(["ExportSpecifier", "ExportNamespaceSpecifier"])), + source: (0, _utils.validateOptionalType)("StringLiteral"), + default: (0, _utils.validateOptional)((0, _utils.assertValueType)("boolean")) + } +}); +defineType("DeclareExportAllDeclaration", { + visitor: ["source"], + aliases: ["FlowDeclaration", "Statement", "Declaration"], + fields: { + source: (0, _utils.validateType)("StringLiteral"), + exportKind: (0, _utils.validateOptional)((0, _utils.assertOneOf)("type", "value")) + } +}); +defineType("DeclaredPredicate", { + visitor: ["value"], + aliases: ["FlowPredicate"], + fields: { + value: (0, _utils.validateType)("Flow") + } +}); +defineType("ExistsTypeAnnotation", { + aliases: ["FlowType"] +}); +defineType("FunctionTypeAnnotation", { + visitor: ["typeParameters", "params", "rest", "returnType"], + aliases: ["FlowType"], + fields: { + typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"), + params: (0, _utils.validate)((0, _utils.arrayOfType)("FunctionTypeParam")), + rest: (0, _utils.validateOptionalType)("FunctionTypeParam"), + this: (0, _utils.validateOptionalType)("FunctionTypeParam"), + returnType: (0, _utils.validateType)("FlowType") + } +}); +defineType("FunctionTypeParam", { + visitor: ["name", "typeAnnotation"], + fields: { + name: (0, _utils.validateOptionalType)("Identifier"), + typeAnnotation: (0, _utils.validateType)("FlowType"), + optional: (0, _utils.validateOptional)((0, _utils.assertValueType)("boolean")) + } +}); +defineType("GenericTypeAnnotation", { + visitor: ["id", "typeParameters"], + aliases: ["FlowType"], + fields: { + id: (0, _utils.validateType)(["Identifier", "QualifiedTypeIdentifier"]), + typeParameters: (0, _utils.validateOptionalType)("TypeParameterInstantiation") + } +}); +defineType("InferredPredicate", { + aliases: ["FlowPredicate"] +}); +defineType("InterfaceExtends", { + visitor: ["id", "typeParameters"], + fields: { + id: (0, _utils.validateType)(["Identifier", "QualifiedTypeIdentifier"]), + typeParameters: (0, _utils.validateOptionalType)("TypeParameterInstantiation") + } +}); +defineInterfaceishType("InterfaceDeclaration"); +defineType("InterfaceTypeAnnotation", { + visitor: ["extends", "body"], + aliases: ["FlowType"], + fields: { + extends: (0, _utils.validateOptional)((0, _utils.arrayOfType)("InterfaceExtends")), + body: (0, _utils.validateType)("ObjectTypeAnnotation") + } +}); +defineType("IntersectionTypeAnnotation", { + visitor: ["types"], + aliases: ["FlowType"], + fields: { + types: (0, _utils.validate)((0, _utils.arrayOfType)("FlowType")) + } +}); +defineType("MixedTypeAnnotation", { + aliases: ["FlowType", "FlowBaseAnnotation"] +}); +defineType("EmptyTypeAnnotation", { + aliases: ["FlowType", "FlowBaseAnnotation"] +}); +defineType("NullableTypeAnnotation", { + visitor: ["typeAnnotation"], + aliases: ["FlowType"], + fields: { + typeAnnotation: (0, _utils.validateType)("FlowType") + } +}); +defineType("NumberLiteralTypeAnnotation", { + builder: ["value"], + aliases: ["FlowType"], + fields: { + value: (0, _utils.validate)((0, _utils.assertValueType)("number")) + } +}); +defineType("NumberTypeAnnotation", { + aliases: ["FlowType", "FlowBaseAnnotation"] +}); +defineType("ObjectTypeAnnotation", { + visitor: ["properties", "indexers", "callProperties", "internalSlots"], + aliases: ["FlowType"], + builder: ["properties", "indexers", "callProperties", "internalSlots", "exact"], + fields: { + properties: (0, _utils.validate)((0, _utils.arrayOfType)(["ObjectTypeProperty", "ObjectTypeSpreadProperty"])), + indexers: (0, _utils.validateOptional)((0, _utils.arrayOfType)("ObjectTypeIndexer")), + callProperties: (0, _utils.validateOptional)((0, _utils.arrayOfType)("ObjectTypeCallProperty")), + internalSlots: (0, _utils.validateOptional)((0, _utils.arrayOfType)("ObjectTypeInternalSlot")), + exact: { + validate: (0, _utils.assertValueType)("boolean"), + default: false + }, + inexact: (0, _utils.validateOptional)((0, _utils.assertValueType)("boolean")) + } +}); +defineType("ObjectTypeInternalSlot", { + visitor: ["id", "value", "optional", "static", "method"], + aliases: ["UserWhitespacable"], + fields: { + id: (0, _utils.validateType)("Identifier"), + value: (0, _utils.validateType)("FlowType"), + optional: (0, _utils.validate)((0, _utils.assertValueType)("boolean")), + static: (0, _utils.validate)((0, _utils.assertValueType)("boolean")), + method: (0, _utils.validate)((0, _utils.assertValueType)("boolean")) + } +}); +defineType("ObjectTypeCallProperty", { + visitor: ["value"], + aliases: ["UserWhitespacable"], + fields: { + value: (0, _utils.validateType)("FlowType"), + static: (0, _utils.validate)((0, _utils.assertValueType)("boolean")) + } +}); +defineType("ObjectTypeIndexer", { + visitor: ["id", "key", "value", "variance"], + aliases: ["UserWhitespacable"], + fields: { + id: (0, _utils.validateOptionalType)("Identifier"), + key: (0, _utils.validateType)("FlowType"), + value: (0, _utils.validateType)("FlowType"), + static: (0, _utils.validate)((0, _utils.assertValueType)("boolean")), + variance: (0, _utils.validateOptionalType)("Variance") + } +}); +defineType("ObjectTypeProperty", { + visitor: ["key", "value", "variance"], + aliases: ["UserWhitespacable"], + fields: { + key: (0, _utils.validateType)(["Identifier", "StringLiteral"]), + value: (0, _utils.validateType)("FlowType"), + kind: (0, _utils.validate)((0, _utils.assertOneOf)("init", "get", "set")), + static: (0, _utils.validate)((0, _utils.assertValueType)("boolean")), + proto: (0, _utils.validate)((0, _utils.assertValueType)("boolean")), + optional: (0, _utils.validate)((0, _utils.assertValueType)("boolean")), + variance: (0, _utils.validateOptionalType)("Variance"), + method: (0, _utils.validate)((0, _utils.assertValueType)("boolean")) + } +}); +defineType("ObjectTypeSpreadProperty", { + visitor: ["argument"], + aliases: ["UserWhitespacable"], + fields: { + argument: (0, _utils.validateType)("FlowType") + } +}); +defineType("OpaqueType", { + visitor: ["id", "typeParameters", "supertype", "impltype"], + aliases: ["FlowDeclaration", "Statement", "Declaration"], + fields: { + id: (0, _utils.validateType)("Identifier"), + typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"), + supertype: (0, _utils.validateOptionalType)("FlowType"), + impltype: (0, _utils.validateType)("FlowType") + } +}); +defineType("QualifiedTypeIdentifier", { + visitor: ["id", "qualification"], + fields: { + id: (0, _utils.validateType)("Identifier"), + qualification: (0, _utils.validateType)(["Identifier", "QualifiedTypeIdentifier"]) + } +}); +defineType("StringLiteralTypeAnnotation", { + builder: ["value"], + aliases: ["FlowType"], + fields: { + value: (0, _utils.validate)((0, _utils.assertValueType)("string")) + } +}); +defineType("StringTypeAnnotation", { + aliases: ["FlowType", "FlowBaseAnnotation"] +}); +defineType("SymbolTypeAnnotation", { + aliases: ["FlowType", "FlowBaseAnnotation"] +}); +defineType("ThisTypeAnnotation", { + aliases: ["FlowType", "FlowBaseAnnotation"] +}); +defineType("TupleTypeAnnotation", { + visitor: ["types"], + aliases: ["FlowType"], + fields: { + types: (0, _utils.validate)((0, _utils.arrayOfType)("FlowType")) + } +}); +defineType("TypeofTypeAnnotation", { + visitor: ["argument"], + aliases: ["FlowType"], + fields: { + argument: (0, _utils.validateType)("FlowType") + } +}); +defineType("TypeAlias", { + visitor: ["id", "typeParameters", "right"], + aliases: ["FlowDeclaration", "Statement", "Declaration"], + fields: { + id: (0, _utils.validateType)("Identifier"), + typeParameters: (0, _utils.validateOptionalType)("TypeParameterDeclaration"), + right: (0, _utils.validateType)("FlowType") + } +}); +defineType("TypeAnnotation", { + visitor: ["typeAnnotation"], + fields: { + typeAnnotation: (0, _utils.validateType)("FlowType") + } +}); +defineType("TypeCastExpression", { + visitor: ["expression", "typeAnnotation"], + aliases: ["ExpressionWrapper", "Expression"], + fields: { + expression: (0, _utils.validateType)("Expression"), + typeAnnotation: (0, _utils.validateType)("TypeAnnotation") + } +}); +defineType("TypeParameter", { + visitor: ["bound", "default", "variance"], + fields: { + name: (0, _utils.validate)((0, _utils.assertValueType)("string")), + bound: (0, _utils.validateOptionalType)("TypeAnnotation"), + default: (0, _utils.validateOptionalType)("FlowType"), + variance: (0, _utils.validateOptionalType)("Variance") + } +}); +defineType("TypeParameterDeclaration", { + visitor: ["params"], + fields: { + params: (0, _utils.validate)((0, _utils.arrayOfType)("TypeParameter")) + } +}); +defineType("TypeParameterInstantiation", { + visitor: ["params"], + fields: { + params: (0, _utils.validate)((0, _utils.arrayOfType)("FlowType")) + } +}); +defineType("UnionTypeAnnotation", { + visitor: ["types"], + aliases: ["FlowType"], + fields: { + types: (0, _utils.validate)((0, _utils.arrayOfType)("FlowType")) + } +}); +defineType("Variance", { + builder: ["kind"], + fields: { + kind: (0, _utils.validate)((0, _utils.assertOneOf)("minus", "plus")) + } +}); +defineType("VoidTypeAnnotation", { + aliases: ["FlowType", "FlowBaseAnnotation"] +}); +defineType("EnumDeclaration", { + aliases: ["Statement", "Declaration"], + visitor: ["id", "body"], + fields: { + id: (0, _utils.validateType)("Identifier"), + body: (0, _utils.validateType)(["EnumBooleanBody", "EnumNumberBody", "EnumStringBody", "EnumSymbolBody"]) + } +}); +defineType("EnumBooleanBody", { + aliases: ["EnumBody"], + visitor: ["members"], + fields: { + explicitType: (0, _utils.validate)((0, _utils.assertValueType)("boolean")), + members: (0, _utils.validateArrayOfType)("EnumBooleanMember"), + hasUnknownMembers: (0, _utils.validate)((0, _utils.assertValueType)("boolean")) + } +}); +defineType("EnumNumberBody", { + aliases: ["EnumBody"], + visitor: ["members"], + fields: { + explicitType: (0, _utils.validate)((0, _utils.assertValueType)("boolean")), + members: (0, _utils.validateArrayOfType)("EnumNumberMember"), + hasUnknownMembers: (0, _utils.validate)((0, _utils.assertValueType)("boolean")) + } +}); +defineType("EnumStringBody", { + aliases: ["EnumBody"], + visitor: ["members"], + fields: { + explicitType: (0, _utils.validate)((0, _utils.assertValueType)("boolean")), + members: (0, _utils.validateArrayOfType)(["EnumStringMember", "EnumDefaultedMember"]), + hasUnknownMembers: (0, _utils.validate)((0, _utils.assertValueType)("boolean")) + } +}); +defineType("EnumSymbolBody", { + aliases: ["EnumBody"], + visitor: ["members"], + fields: { + members: (0, _utils.validateArrayOfType)("EnumDefaultedMember"), + hasUnknownMembers: (0, _utils.validate)((0, _utils.assertValueType)("boolean")) + } +}); +defineType("EnumBooleanMember", { + aliases: ["EnumMember"], + visitor: ["id"], + fields: { + id: (0, _utils.validateType)("Identifier"), + init: (0, _utils.validateType)("BooleanLiteral") + } +}); +defineType("EnumNumberMember", { + aliases: ["EnumMember"], + visitor: ["id", "init"], + fields: { + id: (0, _utils.validateType)("Identifier"), + init: (0, _utils.validateType)("NumericLiteral") + } +}); +defineType("EnumStringMember", { + aliases: ["EnumMember"], + visitor: ["id", "init"], + fields: { + id: (0, _utils.validateType)("Identifier"), + init: (0, _utils.validateType)("StringLiteral") + } +}); +defineType("EnumDefaultedMember", { + aliases: ["EnumMember"], + visitor: ["id"], + fields: { + id: (0, _utils.validateType)("Identifier") + } +}); +defineType("IndexedAccessType", { + visitor: ["objectType", "indexType"], + aliases: ["FlowType"], + fields: { + objectType: (0, _utils.validateType)("FlowType"), + indexType: (0, _utils.validateType)("FlowType") + } +}); +defineType("OptionalIndexedAccessType", { + visitor: ["objectType", "indexType"], + aliases: ["FlowType"], + fields: { + objectType: (0, _utils.validateType)("FlowType"), + indexType: (0, _utils.validateType)("FlowType"), + optional: (0, _utils.validate)((0, _utils.assertValueType)("boolean")) + } +}); \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..9b7c92cfe761425b691b8d6d364fecd74b95cc5c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/index.js" @@ -0,0 +1,103 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +Object.defineProperty(exports, "ALIAS_KEYS", { + enumerable: true, + get: function () { + return _utils.ALIAS_KEYS; + } +}); +Object.defineProperty(exports, "BUILDER_KEYS", { + enumerable: true, + get: function () { + return _utils.BUILDER_KEYS; + } +}); +Object.defineProperty(exports, "DEPRECATED_KEYS", { + enumerable: true, + get: function () { + return _utils.DEPRECATED_KEYS; + } +}); +Object.defineProperty(exports, "FLIPPED_ALIAS_KEYS", { + enumerable: true, + get: function () { + return _utils.FLIPPED_ALIAS_KEYS; + } +}); +Object.defineProperty(exports, "NODE_FIELDS", { + enumerable: true, + get: function () { + return _utils.NODE_FIELDS; + } +}); +Object.defineProperty(exports, "NODE_PARENT_VALIDATIONS", { + enumerable: true, + get: function () { + return _utils.NODE_PARENT_VALIDATIONS; + } +}); +Object.defineProperty(exports, "PLACEHOLDERS", { + enumerable: true, + get: function () { + return _placeholders.PLACEHOLDERS; + } +}); +Object.defineProperty(exports, "PLACEHOLDERS_ALIAS", { + enumerable: true, + get: function () { + return _placeholders.PLACEHOLDERS_ALIAS; + } +}); +Object.defineProperty(exports, "PLACEHOLDERS_FLIPPED_ALIAS", { + enumerable: true, + get: function () { + return _placeholders.PLACEHOLDERS_FLIPPED_ALIAS; + } +}); +exports.TYPES = void 0; +Object.defineProperty(exports, "VISITOR_KEYS", { + enumerable: true, + get: function () { + return _utils.VISITOR_KEYS; + } +}); + +var _toFastProperties = require("to-fast-properties"); + +require("./core"); + +require("./flow"); + +require("./jsx"); + +require("./misc"); + +require("./experimental"); + +require("./typescript"); + +var _utils = require("./utils"); + +var _placeholders = require("./placeholders"); + +_toFastProperties(_utils.VISITOR_KEYS); + +_toFastProperties(_utils.ALIAS_KEYS); + +_toFastProperties(_utils.FLIPPED_ALIAS_KEYS); + +_toFastProperties(_utils.NODE_FIELDS); + +_toFastProperties(_utils.BUILDER_KEYS); + +_toFastProperties(_utils.DEPRECATED_KEYS); + +_toFastProperties(_placeholders.PLACEHOLDERS_ALIAS); + +_toFastProperties(_placeholders.PLACEHOLDERS_FLIPPED_ALIAS); + +const TYPES = [].concat(Object.keys(_utils.VISITOR_KEYS), Object.keys(_utils.FLIPPED_ALIAS_KEYS), Object.keys(_utils.DEPRECATED_KEYS)); +exports.TYPES = TYPES; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/jsx.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/jsx.js" new file mode 100644 index 0000000000000000000000000000000000000000..4d7fb75f722781c00dd522ed31654b84ad8f36f9 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/jsx.js" @@ -0,0 +1,156 @@ +"use strict"; + +var _utils = require("./utils"); + +const defineType = (0, _utils.defineAliasedType)("JSX"); +defineType("JSXAttribute", { + visitor: ["name", "value"], + aliases: ["Immutable"], + fields: { + name: { + validate: (0, _utils.assertNodeType)("JSXIdentifier", "JSXNamespacedName") + }, + value: { + optional: true, + validate: (0, _utils.assertNodeType)("JSXElement", "JSXFragment", "StringLiteral", "JSXExpressionContainer") + } + } +}); +defineType("JSXClosingElement", { + visitor: ["name"], + aliases: ["Immutable"], + fields: { + name: { + validate: (0, _utils.assertNodeType)("JSXIdentifier", "JSXMemberExpression", "JSXNamespacedName") + } + } +}); +defineType("JSXElement", { + builder: ["openingElement", "closingElement", "children", "selfClosing"], + visitor: ["openingElement", "children", "closingElement"], + aliases: ["Immutable", "Expression"], + fields: { + openingElement: { + validate: (0, _utils.assertNodeType)("JSXOpeningElement") + }, + closingElement: { + optional: true, + validate: (0, _utils.assertNodeType)("JSXClosingElement") + }, + children: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("JSXText", "JSXExpressionContainer", "JSXSpreadChild", "JSXElement", "JSXFragment"))) + }, + selfClosing: { + validate: (0, _utils.assertValueType)("boolean"), + optional: true + } + } +}); +defineType("JSXEmptyExpression", {}); +defineType("JSXExpressionContainer", { + visitor: ["expression"], + aliases: ["Immutable"], + fields: { + expression: { + validate: (0, _utils.assertNodeType)("Expression", "JSXEmptyExpression") + } + } +}); +defineType("JSXSpreadChild", { + visitor: ["expression"], + aliases: ["Immutable"], + fields: { + expression: { + validate: (0, _utils.assertNodeType)("Expression") + } + } +}); +defineType("JSXIdentifier", { + builder: ["name"], + fields: { + name: { + validate: (0, _utils.assertValueType)("string") + } + } +}); +defineType("JSXMemberExpression", { + visitor: ["object", "property"], + fields: { + object: { + validate: (0, _utils.assertNodeType)("JSXMemberExpression", "JSXIdentifier") + }, + property: { + validate: (0, _utils.assertNodeType)("JSXIdentifier") + } + } +}); +defineType("JSXNamespacedName", { + visitor: ["namespace", "name"], + fields: { + namespace: { + validate: (0, _utils.assertNodeType)("JSXIdentifier") + }, + name: { + validate: (0, _utils.assertNodeType)("JSXIdentifier") + } + } +}); +defineType("JSXOpeningElement", { + builder: ["name", "attributes", "selfClosing"], + visitor: ["name", "attributes"], + aliases: ["Immutable"], + fields: { + name: { + validate: (0, _utils.assertNodeType)("JSXIdentifier", "JSXMemberExpression", "JSXNamespacedName") + }, + selfClosing: { + default: false + }, + attributes: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("JSXAttribute", "JSXSpreadAttribute"))) + }, + typeParameters: { + validate: (0, _utils.assertNodeType)("TypeParameterInstantiation", "TSTypeParameterInstantiation"), + optional: true + } + } +}); +defineType("JSXSpreadAttribute", { + visitor: ["argument"], + fields: { + argument: { + validate: (0, _utils.assertNodeType)("Expression") + } + } +}); +defineType("JSXText", { + aliases: ["Immutable"], + builder: ["value"], + fields: { + value: { + validate: (0, _utils.assertValueType)("string") + } + } +}); +defineType("JSXFragment", { + builder: ["openingFragment", "closingFragment", "children"], + visitor: ["openingFragment", "children", "closingFragment"], + aliases: ["Immutable", "Expression"], + fields: { + openingFragment: { + validate: (0, _utils.assertNodeType)("JSXOpeningFragment") + }, + closingFragment: { + validate: (0, _utils.assertNodeType)("JSXClosingFragment") + }, + children: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("JSXText", "JSXExpressionContainer", "JSXSpreadChild", "JSXElement", "JSXFragment"))) + } + } +}); +defineType("JSXOpeningFragment", { + aliases: ["Immutable"] +}); +defineType("JSXClosingFragment", { + aliases: ["Immutable"] +}); \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/misc.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/misc.js" new file mode 100644 index 0000000000000000000000000000000000000000..07898bdaf960b71ce761ea8f134de9d580c67f9e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/misc.js" @@ -0,0 +1,32 @@ +"use strict"; + +var _utils = require("./utils"); + +var _placeholders = require("./placeholders"); + +const defineType = (0, _utils.defineAliasedType)("Miscellaneous"); +{ + defineType("Noop", { + visitor: [] + }); +} +defineType("Placeholder", { + visitor: [], + builder: ["expectedNode", "name"], + fields: { + name: { + validate: (0, _utils.assertNodeType)("Identifier") + }, + expectedNode: { + validate: (0, _utils.assertOneOf)(..._placeholders.PLACEHOLDERS) + } + } +}); +defineType("V8IntrinsicIdentifier", { + builder: ["name"], + fields: { + name: { + validate: (0, _utils.assertValueType)("string") + } + } +}); \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/placeholders.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/placeholders.js" new file mode 100644 index 0000000000000000000000000000000000000000..7277239ae4101ff46df9510c9dca06f7ed9b770c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/placeholders.js" @@ -0,0 +1,33 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.PLACEHOLDERS_FLIPPED_ALIAS = exports.PLACEHOLDERS_ALIAS = exports.PLACEHOLDERS = void 0; + +var _utils = require("./utils"); + +const PLACEHOLDERS = ["Identifier", "StringLiteral", "Expression", "Statement", "Declaration", "BlockStatement", "ClassBody", "Pattern"]; +exports.PLACEHOLDERS = PLACEHOLDERS; +const PLACEHOLDERS_ALIAS = { + Declaration: ["Statement"], + Pattern: ["PatternLike", "LVal"] +}; +exports.PLACEHOLDERS_ALIAS = PLACEHOLDERS_ALIAS; + +for (const type of PLACEHOLDERS) { + const alias = _utils.ALIAS_KEYS[type]; + if (alias != null && alias.length) PLACEHOLDERS_ALIAS[type] = alias; +} + +const PLACEHOLDERS_FLIPPED_ALIAS = {}; +exports.PLACEHOLDERS_FLIPPED_ALIAS = PLACEHOLDERS_FLIPPED_ALIAS; +Object.keys(PLACEHOLDERS_ALIAS).forEach(type => { + PLACEHOLDERS_ALIAS[type].forEach(alias => { + if (!Object.hasOwnProperty.call(PLACEHOLDERS_FLIPPED_ALIAS, alias)) { + PLACEHOLDERS_FLIPPED_ALIAS[alias] = []; + } + + PLACEHOLDERS_FLIPPED_ALIAS[alias].push(type); + }); +}); \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/typescript.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/typescript.js" new file mode 100644 index 0000000000000000000000000000000000000000..3f4382a695c372cf8c47233ce6b627f92a98a0b3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/typescript.js" @@ -0,0 +1,470 @@ +"use strict"; + +var _utils = require("./utils"); + +var _core = require("./core"); + +var _is = require("../validators/is"); + +const defineType = (0, _utils.defineAliasedType)("TypeScript"); +const bool = (0, _utils.assertValueType)("boolean"); +const tSFunctionTypeAnnotationCommon = { + returnType: { + validate: (0, _utils.assertNodeType)("TSTypeAnnotation", "Noop"), + optional: true + }, + typeParameters: { + validate: (0, _utils.assertNodeType)("TSTypeParameterDeclaration", "Noop"), + optional: true + } +}; +defineType("TSParameterProperty", { + aliases: ["LVal"], + visitor: ["parameter"], + fields: { + accessibility: { + validate: (0, _utils.assertOneOf)("public", "private", "protected"), + optional: true + }, + readonly: { + validate: (0, _utils.assertValueType)("boolean"), + optional: true + }, + parameter: { + validate: (0, _utils.assertNodeType)("Identifier", "AssignmentPattern") + }, + override: { + validate: (0, _utils.assertValueType)("boolean"), + optional: true + }, + decorators: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("Decorator"))), + optional: true + } + } +}); +defineType("TSDeclareFunction", { + aliases: ["Statement", "Declaration"], + visitor: ["id", "typeParameters", "params", "returnType"], + fields: Object.assign({}, _core.functionDeclarationCommon, tSFunctionTypeAnnotationCommon) +}); +defineType("TSDeclareMethod", { + visitor: ["decorators", "key", "typeParameters", "params", "returnType"], + fields: Object.assign({}, _core.classMethodOrDeclareMethodCommon, tSFunctionTypeAnnotationCommon) +}); +defineType("TSQualifiedName", { + aliases: ["TSEntityName"], + visitor: ["left", "right"], + fields: { + left: (0, _utils.validateType)("TSEntityName"), + right: (0, _utils.validateType)("Identifier") + } +}); +const signatureDeclarationCommon = { + typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterDeclaration"), + ["parameters"]: (0, _utils.validateArrayOfType)(["Identifier", "RestElement"]), + ["typeAnnotation"]: (0, _utils.validateOptionalType)("TSTypeAnnotation") +}; +const callConstructSignatureDeclaration = { + aliases: ["TSTypeElement"], + visitor: ["typeParameters", "parameters", "typeAnnotation"], + fields: signatureDeclarationCommon +}; +defineType("TSCallSignatureDeclaration", callConstructSignatureDeclaration); +defineType("TSConstructSignatureDeclaration", callConstructSignatureDeclaration); +const namedTypeElementCommon = { + key: (0, _utils.validateType)("Expression"), + computed: (0, _utils.validate)(bool), + optional: (0, _utils.validateOptional)(bool) +}; +defineType("TSPropertySignature", { + aliases: ["TSTypeElement"], + visitor: ["key", "typeAnnotation", "initializer"], + fields: Object.assign({}, namedTypeElementCommon, { + readonly: (0, _utils.validateOptional)(bool), + typeAnnotation: (0, _utils.validateOptionalType)("TSTypeAnnotation"), + initializer: (0, _utils.validateOptionalType)("Expression"), + kind: { + validate: (0, _utils.assertOneOf)("get", "set") + } + }) +}); +defineType("TSMethodSignature", { + aliases: ["TSTypeElement"], + visitor: ["key", "typeParameters", "parameters", "typeAnnotation"], + fields: Object.assign({}, signatureDeclarationCommon, namedTypeElementCommon, { + kind: { + validate: (0, _utils.assertOneOf)("method", "get", "set") + } + }) +}); +defineType("TSIndexSignature", { + aliases: ["TSTypeElement"], + visitor: ["parameters", "typeAnnotation"], + fields: { + readonly: (0, _utils.validateOptional)(bool), + static: (0, _utils.validateOptional)(bool), + parameters: (0, _utils.validateArrayOfType)("Identifier"), + typeAnnotation: (0, _utils.validateOptionalType)("TSTypeAnnotation") + } +}); +const tsKeywordTypes = ["TSAnyKeyword", "TSBooleanKeyword", "TSBigIntKeyword", "TSIntrinsicKeyword", "TSNeverKeyword", "TSNullKeyword", "TSNumberKeyword", "TSObjectKeyword", "TSStringKeyword", "TSSymbolKeyword", "TSUndefinedKeyword", "TSUnknownKeyword", "TSVoidKeyword"]; + +for (const type of tsKeywordTypes) { + defineType(type, { + aliases: ["TSType", "TSBaseType"], + visitor: [], + fields: {} + }); +} + +defineType("TSThisType", { + aliases: ["TSType", "TSBaseType"], + visitor: [], + fields: {} +}); +const fnOrCtrBase = { + aliases: ["TSType"], + visitor: ["typeParameters", "parameters", "typeAnnotation"] +}; +defineType("TSFunctionType", Object.assign({}, fnOrCtrBase, { + fields: signatureDeclarationCommon +})); +defineType("TSConstructorType", Object.assign({}, fnOrCtrBase, { + fields: Object.assign({}, signatureDeclarationCommon, { + abstract: (0, _utils.validateOptional)(bool) + }) +})); +defineType("TSTypeReference", { + aliases: ["TSType"], + visitor: ["typeName", "typeParameters"], + fields: { + typeName: (0, _utils.validateType)("TSEntityName"), + typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation") + } +}); +defineType("TSTypePredicate", { + aliases: ["TSType"], + visitor: ["parameterName", "typeAnnotation"], + builder: ["parameterName", "typeAnnotation", "asserts"], + fields: { + parameterName: (0, _utils.validateType)(["Identifier", "TSThisType"]), + typeAnnotation: (0, _utils.validateOptionalType)("TSTypeAnnotation"), + asserts: (0, _utils.validateOptional)(bool) + } +}); +defineType("TSTypeQuery", { + aliases: ["TSType"], + visitor: ["exprName"], + fields: { + exprName: (0, _utils.validateType)(["TSEntityName", "TSImportType"]) + } +}); +defineType("TSTypeLiteral", { + aliases: ["TSType"], + visitor: ["members"], + fields: { + members: (0, _utils.validateArrayOfType)("TSTypeElement") + } +}); +defineType("TSArrayType", { + aliases: ["TSType"], + visitor: ["elementType"], + fields: { + elementType: (0, _utils.validateType)("TSType") + } +}); +defineType("TSTupleType", { + aliases: ["TSType"], + visitor: ["elementTypes"], + fields: { + elementTypes: (0, _utils.validateArrayOfType)(["TSType", "TSNamedTupleMember"]) + } +}); +defineType("TSOptionalType", { + aliases: ["TSType"], + visitor: ["typeAnnotation"], + fields: { + typeAnnotation: (0, _utils.validateType)("TSType") + } +}); +defineType("TSRestType", { + aliases: ["TSType"], + visitor: ["typeAnnotation"], + fields: { + typeAnnotation: (0, _utils.validateType)("TSType") + } +}); +defineType("TSNamedTupleMember", { + visitor: ["label", "elementType"], + builder: ["label", "elementType", "optional"], + fields: { + label: (0, _utils.validateType)("Identifier"), + optional: { + validate: bool, + default: false + }, + elementType: (0, _utils.validateType)("TSType") + } +}); +const unionOrIntersection = { + aliases: ["TSType"], + visitor: ["types"], + fields: { + types: (0, _utils.validateArrayOfType)("TSType") + } +}; +defineType("TSUnionType", unionOrIntersection); +defineType("TSIntersectionType", unionOrIntersection); +defineType("TSConditionalType", { + aliases: ["TSType"], + visitor: ["checkType", "extendsType", "trueType", "falseType"], + fields: { + checkType: (0, _utils.validateType)("TSType"), + extendsType: (0, _utils.validateType)("TSType"), + trueType: (0, _utils.validateType)("TSType"), + falseType: (0, _utils.validateType)("TSType") + } +}); +defineType("TSInferType", { + aliases: ["TSType"], + visitor: ["typeParameter"], + fields: { + typeParameter: (0, _utils.validateType)("TSTypeParameter") + } +}); +defineType("TSParenthesizedType", { + aliases: ["TSType"], + visitor: ["typeAnnotation"], + fields: { + typeAnnotation: (0, _utils.validateType)("TSType") + } +}); +defineType("TSTypeOperator", { + aliases: ["TSType"], + visitor: ["typeAnnotation"], + fields: { + operator: (0, _utils.validate)((0, _utils.assertValueType)("string")), + typeAnnotation: (0, _utils.validateType)("TSType") + } +}); +defineType("TSIndexedAccessType", { + aliases: ["TSType"], + visitor: ["objectType", "indexType"], + fields: { + objectType: (0, _utils.validateType)("TSType"), + indexType: (0, _utils.validateType)("TSType") + } +}); +defineType("TSMappedType", { + aliases: ["TSType"], + visitor: ["typeParameter", "typeAnnotation", "nameType"], + fields: { + readonly: (0, _utils.validateOptional)(bool), + typeParameter: (0, _utils.validateType)("TSTypeParameter"), + optional: (0, _utils.validateOptional)(bool), + typeAnnotation: (0, _utils.validateOptionalType)("TSType"), + nameType: (0, _utils.validateOptionalType)("TSType") + } +}); +defineType("TSLiteralType", { + aliases: ["TSType", "TSBaseType"], + visitor: ["literal"], + fields: { + literal: { + validate: function () { + const unaryExpression = (0, _utils.assertNodeType)("NumericLiteral", "BigIntLiteral"); + const unaryOperator = (0, _utils.assertOneOf)("-"); + const literal = (0, _utils.assertNodeType)("NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral"); + + function validator(parent, key, node) { + if ((0, _is.default)("UnaryExpression", node)) { + unaryOperator(node, "operator", node.operator); + unaryExpression(node, "argument", node.argument); + } else { + literal(parent, key, node); + } + } + + validator.oneOfNodeTypes = ["NumericLiteral", "StringLiteral", "BooleanLiteral", "BigIntLiteral", "UnaryExpression"]; + return validator; + }() + } + } +}); +defineType("TSExpressionWithTypeArguments", { + aliases: ["TSType"], + visitor: ["expression", "typeParameters"], + fields: { + expression: (0, _utils.validateType)("TSEntityName"), + typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation") + } +}); +defineType("TSInterfaceDeclaration", { + aliases: ["Statement", "Declaration"], + visitor: ["id", "typeParameters", "extends", "body"], + fields: { + declare: (0, _utils.validateOptional)(bool), + id: (0, _utils.validateType)("Identifier"), + typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterDeclaration"), + extends: (0, _utils.validateOptional)((0, _utils.arrayOfType)("TSExpressionWithTypeArguments")), + body: (0, _utils.validateType)("TSInterfaceBody") + } +}); +defineType("TSInterfaceBody", { + visitor: ["body"], + fields: { + body: (0, _utils.validateArrayOfType)("TSTypeElement") + } +}); +defineType("TSTypeAliasDeclaration", { + aliases: ["Statement", "Declaration"], + visitor: ["id", "typeParameters", "typeAnnotation"], + fields: { + declare: (0, _utils.validateOptional)(bool), + id: (0, _utils.validateType)("Identifier"), + typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterDeclaration"), + typeAnnotation: (0, _utils.validateType)("TSType") + } +}); +defineType("TSAsExpression", { + aliases: ["Expression"], + visitor: ["expression", "typeAnnotation"], + fields: { + expression: (0, _utils.validateType)("Expression"), + typeAnnotation: (0, _utils.validateType)("TSType") + } +}); +defineType("TSTypeAssertion", { + aliases: ["Expression"], + visitor: ["typeAnnotation", "expression"], + fields: { + typeAnnotation: (0, _utils.validateType)("TSType"), + expression: (0, _utils.validateType)("Expression") + } +}); +defineType("TSEnumDeclaration", { + aliases: ["Statement", "Declaration"], + visitor: ["id", "members"], + fields: { + declare: (0, _utils.validateOptional)(bool), + const: (0, _utils.validateOptional)(bool), + id: (0, _utils.validateType)("Identifier"), + members: (0, _utils.validateArrayOfType)("TSEnumMember"), + initializer: (0, _utils.validateOptionalType)("Expression") + } +}); +defineType("TSEnumMember", { + visitor: ["id", "initializer"], + fields: { + id: (0, _utils.validateType)(["Identifier", "StringLiteral"]), + initializer: (0, _utils.validateOptionalType)("Expression") + } +}); +defineType("TSModuleDeclaration", { + aliases: ["Statement", "Declaration"], + visitor: ["id", "body"], + fields: { + declare: (0, _utils.validateOptional)(bool), + global: (0, _utils.validateOptional)(bool), + id: (0, _utils.validateType)(["Identifier", "StringLiteral"]), + body: (0, _utils.validateType)(["TSModuleBlock", "TSModuleDeclaration"]) + } +}); +defineType("TSModuleBlock", { + aliases: ["Scopable", "Block", "BlockParent"], + visitor: ["body"], + fields: { + body: (0, _utils.validateArrayOfType)("Statement") + } +}); +defineType("TSImportType", { + aliases: ["TSType"], + visitor: ["argument", "qualifier", "typeParameters"], + fields: { + argument: (0, _utils.validateType)("StringLiteral"), + qualifier: (0, _utils.validateOptionalType)("TSEntityName"), + typeParameters: (0, _utils.validateOptionalType)("TSTypeParameterInstantiation") + } +}); +defineType("TSImportEqualsDeclaration", { + aliases: ["Statement"], + visitor: ["id", "moduleReference"], + fields: { + isExport: (0, _utils.validate)(bool), + id: (0, _utils.validateType)("Identifier"), + moduleReference: (0, _utils.validateType)(["TSEntityName", "TSExternalModuleReference"]), + importKind: { + validate: (0, _utils.assertOneOf)("type", "value"), + optional: true + } + } +}); +defineType("TSExternalModuleReference", { + visitor: ["expression"], + fields: { + expression: (0, _utils.validateType)("StringLiteral") + } +}); +defineType("TSNonNullExpression", { + aliases: ["Expression"], + visitor: ["expression"], + fields: { + expression: (0, _utils.validateType)("Expression") + } +}); +defineType("TSExportAssignment", { + aliases: ["Statement"], + visitor: ["expression"], + fields: { + expression: (0, _utils.validateType)("Expression") + } +}); +defineType("TSNamespaceExportDeclaration", { + aliases: ["Statement"], + visitor: ["id"], + fields: { + id: (0, _utils.validateType)("Identifier") + } +}); +defineType("TSTypeAnnotation", { + visitor: ["typeAnnotation"], + fields: { + typeAnnotation: { + validate: (0, _utils.assertNodeType)("TSType") + } + } +}); +defineType("TSTypeParameterInstantiation", { + visitor: ["params"], + fields: { + params: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("TSType"))) + } + } +}); +defineType("TSTypeParameterDeclaration", { + visitor: ["params"], + fields: { + params: { + validate: (0, _utils.chain)((0, _utils.assertValueType)("array"), (0, _utils.assertEach)((0, _utils.assertNodeType)("TSTypeParameter"))) + } + } +}); +defineType("TSTypeParameter", { + builder: ["constraint", "default", "name"], + visitor: ["constraint", "default"], + fields: { + name: { + validate: (0, _utils.assertValueType)("string") + }, + constraint: { + validate: (0, _utils.assertNodeType)("TSType"), + optional: true + }, + default: { + validate: (0, _utils.assertNodeType)("TSType"), + optional: true + } + } +}); \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/utils.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/utils.js" new file mode 100644 index 0000000000000000000000000000000000000000..70263e5cd3af2ed4096a21dab7e632d839376c04 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/definitions/utils.js" @@ -0,0 +1,343 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.VISITOR_KEYS = exports.NODE_PARENT_VALIDATIONS = exports.NODE_FIELDS = exports.FLIPPED_ALIAS_KEYS = exports.DEPRECATED_KEYS = exports.BUILDER_KEYS = exports.ALIAS_KEYS = void 0; +exports.arrayOf = arrayOf; +exports.arrayOfType = arrayOfType; +exports.assertEach = assertEach; +exports.assertNodeOrValueType = assertNodeOrValueType; +exports.assertNodeType = assertNodeType; +exports.assertOneOf = assertOneOf; +exports.assertOptionalChainStart = assertOptionalChainStart; +exports.assertShape = assertShape; +exports.assertValueType = assertValueType; +exports.chain = chain; +exports.default = defineType; +exports.defineAliasedType = defineAliasedType; +exports.typeIs = typeIs; +exports.validate = validate; +exports.validateArrayOfType = validateArrayOfType; +exports.validateOptional = validateOptional; +exports.validateOptionalType = validateOptionalType; +exports.validateType = validateType; + +var _is = require("../validators/is"); + +var _validate = require("../validators/validate"); + +const VISITOR_KEYS = {}; +exports.VISITOR_KEYS = VISITOR_KEYS; +const ALIAS_KEYS = {}; +exports.ALIAS_KEYS = ALIAS_KEYS; +const FLIPPED_ALIAS_KEYS = {}; +exports.FLIPPED_ALIAS_KEYS = FLIPPED_ALIAS_KEYS; +const NODE_FIELDS = {}; +exports.NODE_FIELDS = NODE_FIELDS; +const BUILDER_KEYS = {}; +exports.BUILDER_KEYS = BUILDER_KEYS; +const DEPRECATED_KEYS = {}; +exports.DEPRECATED_KEYS = DEPRECATED_KEYS; +const NODE_PARENT_VALIDATIONS = {}; +exports.NODE_PARENT_VALIDATIONS = NODE_PARENT_VALIDATIONS; + +function getType(val) { + if (Array.isArray(val)) { + return "array"; + } else if (val === null) { + return "null"; + } else { + return typeof val; + } +} + +function validate(validate) { + return { + validate + }; +} + +function typeIs(typeName) { + return typeof typeName === "string" ? assertNodeType(typeName) : assertNodeType(...typeName); +} + +function validateType(typeName) { + return validate(typeIs(typeName)); +} + +function validateOptional(validate) { + return { + validate, + optional: true + }; +} + +function validateOptionalType(typeName) { + return { + validate: typeIs(typeName), + optional: true + }; +} + +function arrayOf(elementType) { + return chain(assertValueType("array"), assertEach(elementType)); +} + +function arrayOfType(typeName) { + return arrayOf(typeIs(typeName)); +} + +function validateArrayOfType(typeName) { + return validate(arrayOfType(typeName)); +} + +function assertEach(callback) { + function validator(node, key, val) { + if (!Array.isArray(val)) return; + + for (let i = 0; i < val.length; i++) { + const subkey = `${key}[${i}]`; + const v = val[i]; + callback(node, subkey, v); + if (process.env.BABEL_TYPES_8_BREAKING) (0, _validate.validateChild)(node, subkey, v); + } + } + + validator.each = callback; + return validator; +} + +function assertOneOf(...values) { + function validate(node, key, val) { + if (values.indexOf(val) < 0) { + throw new TypeError(`Property ${key} expected value to be one of ${JSON.stringify(values)} but got ${JSON.stringify(val)}`); + } + } + + validate.oneOf = values; + return validate; +} + +function assertNodeType(...types) { + function validate(node, key, val) { + for (const type of types) { + if ((0, _is.default)(type, val)) { + (0, _validate.validateChild)(node, key, val); + return; + } + } + + throw new TypeError(`Property ${key} of ${node.type} expected node to be of a type ${JSON.stringify(types)} but instead got ${JSON.stringify(val == null ? void 0 : val.type)}`); + } + + validate.oneOfNodeTypes = types; + return validate; +} + +function assertNodeOrValueType(...types) { + function validate(node, key, val) { + for (const type of types) { + if (getType(val) === type || (0, _is.default)(type, val)) { + (0, _validate.validateChild)(node, key, val); + return; + } + } + + throw new TypeError(`Property ${key} of ${node.type} expected node to be of a type ${JSON.stringify(types)} but instead got ${JSON.stringify(val == null ? void 0 : val.type)}`); + } + + validate.oneOfNodeOrValueTypes = types; + return validate; +} + +function assertValueType(type) { + function validate(node, key, val) { + const valid = getType(val) === type; + + if (!valid) { + throw new TypeError(`Property ${key} expected type of ${type} but got ${getType(val)}`); + } + } + + validate.type = type; + return validate; +} + +function assertShape(shape) { + function validate(node, key, val) { + const errors = []; + + for (const property of Object.keys(shape)) { + try { + (0, _validate.validateField)(node, property, val[property], shape[property]); + } catch (error) { + if (error instanceof TypeError) { + errors.push(error.message); + continue; + } + + throw error; + } + } + + if (errors.length) { + throw new TypeError(`Property ${key} of ${node.type} expected to have the following:\n${errors.join("\n")}`); + } + } + + validate.shapeOf = shape; + return validate; +} + +function assertOptionalChainStart() { + function validate(node) { + var _current; + + let current = node; + + while (node) { + const { + type + } = current; + + if (type === "OptionalCallExpression") { + if (current.optional) return; + current = current.callee; + continue; + } + + if (type === "OptionalMemberExpression") { + if (current.optional) return; + current = current.object; + continue; + } + + break; + } + + throw new TypeError(`Non-optional ${node.type} must chain from an optional OptionalMemberExpression or OptionalCallExpression. Found chain from ${(_current = current) == null ? void 0 : _current.type}`); + } + + return validate; +} + +function chain(...fns) { + function validate(...args) { + for (const fn of fns) { + fn(...args); + } + } + + validate.chainOf = fns; + + if (fns.length >= 2 && "type" in fns[0] && fns[0].type === "array" && !("each" in fns[1])) { + throw new Error(`An assertValueType("array") validator can only be followed by an assertEach(...) validator.`); + } + + return validate; +} + +const validTypeOpts = ["aliases", "builder", "deprecatedAlias", "fields", "inherits", "visitor", "validate"]; +const validFieldKeys = ["default", "optional", "validate"]; + +function defineAliasedType(...aliases) { + return (type, opts = {}) => { + let defined = opts.aliases; + + if (!defined) { + var _store$opts$inherits$, _defined; + + if (opts.inherits) defined = (_store$opts$inherits$ = store[opts.inherits].aliases) == null ? void 0 : _store$opts$inherits$.slice(); + (_defined = defined) != null ? _defined : defined = []; + opts.aliases = defined; + } + + const additional = aliases.filter(a => !defined.includes(a)); + defined.unshift(...additional); + return defineType(type, opts); + }; +} + +function defineType(type, opts = {}) { + const inherits = opts.inherits && store[opts.inherits] || {}; + let fields = opts.fields; + + if (!fields) { + fields = {}; + + if (inherits.fields) { + const keys = Object.getOwnPropertyNames(inherits.fields); + + for (const key of keys) { + const field = inherits.fields[key]; + const def = field.default; + + if (Array.isArray(def) ? def.length > 0 : def && typeof def === "object") { + throw new Error("field defaults can only be primitives or empty arrays currently"); + } + + fields[key] = { + default: Array.isArray(def) ? [] : def, + optional: field.optional, + validate: field.validate + }; + } + } + } + + const visitor = opts.visitor || inherits.visitor || []; + const aliases = opts.aliases || inherits.aliases || []; + const builder = opts.builder || inherits.builder || opts.visitor || []; + + for (const k of Object.keys(opts)) { + if (validTypeOpts.indexOf(k) === -1) { + throw new Error(`Unknown type option "${k}" on ${type}`); + } + } + + if (opts.deprecatedAlias) { + DEPRECATED_KEYS[opts.deprecatedAlias] = type; + } + + for (const key of visitor.concat(builder)) { + fields[key] = fields[key] || {}; + } + + for (const key of Object.keys(fields)) { + const field = fields[key]; + + if (field.default !== undefined && builder.indexOf(key) === -1) { + field.optional = true; + } + + if (field.default === undefined) { + field.default = null; + } else if (!field.validate && field.default != null) { + field.validate = assertValueType(getType(field.default)); + } + + for (const k of Object.keys(field)) { + if (validFieldKeys.indexOf(k) === -1) { + throw new Error(`Unknown field key "${k}" on ${type}.${key}`); + } + } + } + + VISITOR_KEYS[type] = opts.visitor = visitor; + BUILDER_KEYS[type] = opts.builder = builder; + NODE_FIELDS[type] = opts.fields = fields; + ALIAS_KEYS[type] = opts.aliases = aliases; + aliases.forEach(alias => { + FLIPPED_ALIAS_KEYS[alias] = FLIPPED_ALIAS_KEYS[alias] || []; + FLIPPED_ALIAS_KEYS[alias].push(type); + }); + + if (opts.validate) { + NODE_PARENT_VALIDATIONS[type] = opts.validate; + } + + store[type] = opts; +} + +const store = {}; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/index-legacy.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/index-legacy.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..9c81afe9fb1505bce712c6a7b9b3cc1c8e900a9b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/index-legacy.d.ts" @@ -0,0 +1,2717 @@ +// NOTE: This file is autogenerated. Do not modify. +// See packages/babel-types/scripts/generators/typescript-legacy.js for script used. + +interface BaseComment { + value: string; + start: number; + end: number; + loc: SourceLocation; + type: "CommentBlock" | "CommentLine"; +} + +export interface CommentBlock extends BaseComment { + type: "CommentBlock"; +} + +export interface CommentLine extends BaseComment { + type: "CommentLine"; +} + +export type Comment = CommentBlock | CommentLine; + +export interface SourceLocation { + start: { + line: number; + column: number; + }; + + end: { + line: number; + column: number; + }; +} + +interface BaseNode { + leadingComments: ReadonlyArray | null; + innerComments: ReadonlyArray | null; + trailingComments: ReadonlyArray | null; + start: number | null; + end: number | null; + loc: SourceLocation | null; + type: Node["type"]; + extra?: Record; +} + +export type Node = Accessor | AnyTypeAnnotation | ArgumentPlaceholder | ArrayExpression | ArrayPattern | ArrayTypeAnnotation | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BigIntLiteral | Binary | BinaryExpression | BindExpression | Block | BlockParent | BlockStatement | BooleanLiteral | BooleanLiteralTypeAnnotation | BooleanTypeAnnotation | BreakStatement | CallExpression | CatchClause | Class | ClassAccessorProperty | ClassBody | ClassDeclaration | ClassExpression | ClassImplements | ClassMethod | ClassPrivateMethod | ClassPrivateProperty | ClassProperty | CompletionStatement | Conditional | ConditionalExpression | ContinueStatement | DebuggerStatement | DecimalLiteral | Declaration | DeclareClass | DeclareExportAllDeclaration | DeclareExportDeclaration | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareOpaqueType | DeclareTypeAlias | DeclareVariable | DeclaredPredicate | Decorator | Directive | DirectiveLiteral | DoExpression | DoWhileStatement | EmptyStatement | EmptyTypeAnnotation | EnumBody | EnumBooleanBody | EnumBooleanMember | EnumDeclaration | EnumDefaultedMember | EnumMember | EnumNumberBody | EnumNumberMember | EnumStringBody | EnumStringMember | EnumSymbolBody | ExistsTypeAnnotation | ExportAllDeclaration | ExportDeclaration | ExportDefaultDeclaration | ExportDefaultSpecifier | ExportNamedDeclaration | ExportNamespaceSpecifier | ExportSpecifier | Expression | ExpressionStatement | ExpressionWrapper | File | Flow | FlowBaseAnnotation | FlowDeclaration | FlowPredicate | FlowType | For | ForInStatement | ForOfStatement | ForStatement | ForXStatement | Function | FunctionDeclaration | FunctionExpression | FunctionParent | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | Identifier | IfStatement | Immutable | Import | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | IndexedAccessType | InferredPredicate | InterfaceDeclaration | InterfaceExtends | InterfaceTypeAnnotation | InterpreterDirective | IntersectionTypeAnnotation | JSX | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LVal | LabeledStatement | Literal | LogicalExpression | Loop | MemberExpression | MetaProperty | Method | Miscellaneous | MixedTypeAnnotation | ModuleDeclaration | ModuleExpression | ModuleSpecifier | NewExpression | Noop | NullLiteral | NullLiteralTypeAnnotation | NullableTypeAnnotation | NumberLiteral | NumberLiteralTypeAnnotation | NumberTypeAnnotation | NumericLiteral | ObjectExpression | ObjectMember | ObjectMethod | ObjectPattern | ObjectProperty | ObjectTypeAnnotation | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeInternalSlot | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | OptionalCallExpression | OptionalIndexedAccessType | OptionalMemberExpression | ParenthesizedExpression | Pattern | PatternLike | PipelineBareFunction | PipelinePrimaryTopicReference | PipelineTopicExpression | Placeholder | Private | PrivateName | Program | Property | Pureish | QualifiedTypeIdentifier | RecordExpression | RegExpLiteral | RegexLiteral | RestElement | RestProperty | ReturnStatement | Scopable | SequenceExpression | SpreadElement | SpreadProperty | Standardized | Statement | StaticBlock | StringLiteral | StringLiteralTypeAnnotation | StringTypeAnnotation | Super | SwitchCase | SwitchStatement | SymbolTypeAnnotation | TSAnyKeyword | TSArrayType | TSAsExpression | TSBaseType | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSConditionalType | TSConstructSignatureDeclaration | TSConstructorType | TSDeclareFunction | TSDeclareMethod | TSEntityName | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExpressionWithTypeArguments | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexSignature | TSIndexedAccessType | TSInferType | TSInterfaceBody | TSInterfaceDeclaration | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSParenthesizedType | TSPropertySignature | TSQualifiedName | TSRestType | TSStringKeyword | TSSymbolKeyword | TSThisType | TSTupleType | TSType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeElement | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | TaggedTemplateExpression | TemplateElement | TemplateLiteral | Terminatorless | ThisExpression | ThisTypeAnnotation | ThrowStatement | TopicReference | TryStatement | TupleExpression | TupleTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | TypeScript | TypeofTypeAnnotation | UnaryExpression | UnaryLike | UnionTypeAnnotation | UpdateExpression | UserWhitespacable | V8IntrinsicIdentifier | VariableDeclaration | VariableDeclarator | Variance | VoidTypeAnnotation | While | WhileStatement | WithStatement | YieldExpression; + +export interface ArrayExpression extends BaseNode { + type: "ArrayExpression"; + elements: Array; +} + +export interface AssignmentExpression extends BaseNode { + type: "AssignmentExpression"; + operator: string; + left: LVal; + right: Expression; +} + +export interface BinaryExpression extends BaseNode { + type: "BinaryExpression"; + operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<="; + left: Expression | PrivateName; + right: Expression; +} + +export interface InterpreterDirective extends BaseNode { + type: "InterpreterDirective"; + value: string; +} + +export interface Directive extends BaseNode { + type: "Directive"; + value: DirectiveLiteral; +} + +export interface DirectiveLiteral extends BaseNode { + type: "DirectiveLiteral"; + value: string; +} + +export interface BlockStatement extends BaseNode { + type: "BlockStatement"; + body: Array; + directives: Array; +} + +export interface BreakStatement extends BaseNode { + type: "BreakStatement"; + label: Identifier | null; +} + +export interface CallExpression extends BaseNode { + type: "CallExpression"; + callee: Expression | V8IntrinsicIdentifier; + arguments: Array; + optional: true | false | null; + typeArguments: TypeParameterInstantiation | null; + typeParameters: TSTypeParameterInstantiation | null; +} + +export interface CatchClause extends BaseNode { + type: "CatchClause"; + param: Identifier | ArrayPattern | ObjectPattern | null; + body: BlockStatement; +} + +export interface ConditionalExpression extends BaseNode { + type: "ConditionalExpression"; + test: Expression; + consequent: Expression; + alternate: Expression; +} + +export interface ContinueStatement extends BaseNode { + type: "ContinueStatement"; + label: Identifier | null; +} + +export interface DebuggerStatement extends BaseNode { + type: "DebuggerStatement"; +} + +export interface DoWhileStatement extends BaseNode { + type: "DoWhileStatement"; + test: Expression; + body: Statement; +} + +export interface EmptyStatement extends BaseNode { + type: "EmptyStatement"; +} + +export interface ExpressionStatement extends BaseNode { + type: "ExpressionStatement"; + expression: Expression; +} + +export interface File extends BaseNode { + type: "File"; + program: Program; + comments: Array | null; + tokens: Array | null; +} + +export interface ForInStatement extends BaseNode { + type: "ForInStatement"; + left: VariableDeclaration | LVal; + right: Expression; + body: Statement; +} + +export interface ForStatement extends BaseNode { + type: "ForStatement"; + init: VariableDeclaration | Expression | null; + test: Expression | null; + update: Expression | null; + body: Statement; +} + +export interface FunctionDeclaration extends BaseNode { + type: "FunctionDeclaration"; + id: Identifier | null; + params: Array; + body: BlockStatement; + generator: boolean; + async: boolean; + declare: boolean | null; + returnType: TypeAnnotation | TSTypeAnnotation | Noop | null; + typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null; +} + +export interface FunctionExpression extends BaseNode { + type: "FunctionExpression"; + id: Identifier | null; + params: Array; + body: BlockStatement; + generator: boolean; + async: boolean; + returnType: TypeAnnotation | TSTypeAnnotation | Noop | null; + typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null; +} + +export interface Identifier extends BaseNode { + type: "Identifier"; + name: string; + decorators: Array | null; + optional: boolean | null; + typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null; +} + +export interface IfStatement extends BaseNode { + type: "IfStatement"; + test: Expression; + consequent: Statement; + alternate: Statement | null; +} + +export interface LabeledStatement extends BaseNode { + type: "LabeledStatement"; + label: Identifier; + body: Statement; +} + +export interface StringLiteral extends BaseNode { + type: "StringLiteral"; + value: string; +} + +export interface NumericLiteral extends BaseNode { + type: "NumericLiteral"; + value: number; +} + +export interface NullLiteral extends BaseNode { + type: "NullLiteral"; +} + +export interface BooleanLiteral extends BaseNode { + type: "BooleanLiteral"; + value: boolean; +} + +export interface RegExpLiteral extends BaseNode { + type: "RegExpLiteral"; + pattern: string; + flags: string; +} + +export interface LogicalExpression extends BaseNode { + type: "LogicalExpression"; + operator: "||" | "&&" | "??"; + left: Expression; + right: Expression; +} + +export interface MemberExpression extends BaseNode { + type: "MemberExpression"; + object: Expression; + property: Expression | Identifier | PrivateName; + computed: boolean; + optional: true | false | null; +} + +export interface NewExpression extends BaseNode { + type: "NewExpression"; + callee: Expression | V8IntrinsicIdentifier; + arguments: Array; + optional: true | false | null; + typeArguments: TypeParameterInstantiation | null; + typeParameters: TSTypeParameterInstantiation | null; +} + +export interface Program extends BaseNode { + type: "Program"; + body: Array; + directives: Array; + sourceType: "script" | "module"; + interpreter: InterpreterDirective | null; + sourceFile: string; +} + +export interface ObjectExpression extends BaseNode { + type: "ObjectExpression"; + properties: Array; +} + +export interface ObjectMethod extends BaseNode { + type: "ObjectMethod"; + kind: "method" | "get" | "set"; + key: Expression | Identifier | StringLiteral | NumericLiteral; + params: Array; + body: BlockStatement; + computed: boolean; + generator: boolean; + async: boolean; + decorators: Array | null; + returnType: TypeAnnotation | TSTypeAnnotation | Noop | null; + typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null; +} + +export interface ObjectProperty extends BaseNode { + type: "ObjectProperty"; + key: Expression | Identifier | StringLiteral | NumericLiteral; + value: Expression | PatternLike; + computed: boolean; + shorthand: boolean; + decorators: Array | null; +} + +export interface RestElement extends BaseNode { + type: "RestElement"; + argument: LVal; + decorators: Array | null; + optional: boolean | null; + typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null; +} + +export interface ReturnStatement extends BaseNode { + type: "ReturnStatement"; + argument: Expression | null; +} + +export interface SequenceExpression extends BaseNode { + type: "SequenceExpression"; + expressions: Array; +} + +export interface ParenthesizedExpression extends BaseNode { + type: "ParenthesizedExpression"; + expression: Expression; +} + +export interface SwitchCase extends BaseNode { + type: "SwitchCase"; + test: Expression | null; + consequent: Array; +} + +export interface SwitchStatement extends BaseNode { + type: "SwitchStatement"; + discriminant: Expression; + cases: Array; +} + +export interface ThisExpression extends BaseNode { + type: "ThisExpression"; +} + +export interface ThrowStatement extends BaseNode { + type: "ThrowStatement"; + argument: Expression; +} + +export interface TryStatement extends BaseNode { + type: "TryStatement"; + block: BlockStatement; + handler: CatchClause | null; + finalizer: BlockStatement | null; +} + +export interface UnaryExpression extends BaseNode { + type: "UnaryExpression"; + operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof"; + argument: Expression; + prefix: boolean; +} + +export interface UpdateExpression extends BaseNode { + type: "UpdateExpression"; + operator: "++" | "--"; + argument: Expression; + prefix: boolean; +} + +export interface VariableDeclaration extends BaseNode { + type: "VariableDeclaration"; + kind: "var" | "let" | "const"; + declarations: Array; + declare: boolean | null; +} + +export interface VariableDeclarator extends BaseNode { + type: "VariableDeclarator"; + id: LVal; + init: Expression | null; + definite: boolean | null; +} + +export interface WhileStatement extends BaseNode { + type: "WhileStatement"; + test: Expression; + body: Statement; +} + +export interface WithStatement extends BaseNode { + type: "WithStatement"; + object: Expression; + body: Statement; +} + +export interface AssignmentPattern extends BaseNode { + type: "AssignmentPattern"; + left: Identifier | ObjectPattern | ArrayPattern | MemberExpression; + right: Expression; + decorators: Array | null; + typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null; +} + +export interface ArrayPattern extends BaseNode { + type: "ArrayPattern"; + elements: Array; + decorators: Array | null; + optional: boolean | null; + typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null; +} + +export interface ArrowFunctionExpression extends BaseNode { + type: "ArrowFunctionExpression"; + params: Array; + body: BlockStatement | Expression; + async: boolean; + expression: boolean; + generator: boolean; + returnType: TypeAnnotation | TSTypeAnnotation | Noop | null; + typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null; +} + +export interface ClassBody extends BaseNode { + type: "ClassBody"; + body: Array; +} + +export interface ClassExpression extends BaseNode { + type: "ClassExpression"; + id: Identifier | null; + superClass: Expression | null; + body: ClassBody; + decorators: Array | null; + implements: Array | null; + mixins: InterfaceExtends | null; + superTypeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null; + typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null; +} + +export interface ClassDeclaration extends BaseNode { + type: "ClassDeclaration"; + id: Identifier; + superClass: Expression | null; + body: ClassBody; + decorators: Array | null; + abstract: boolean | null; + declare: boolean | null; + implements: Array | null; + mixins: InterfaceExtends | null; + superTypeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null; + typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null; +} + +export interface ExportAllDeclaration extends BaseNode { + type: "ExportAllDeclaration"; + source: StringLiteral; + assertions: Array | null; + exportKind: "type" | "value" | null; +} + +export interface ExportDefaultDeclaration extends BaseNode { + type: "ExportDefaultDeclaration"; + declaration: FunctionDeclaration | TSDeclareFunction | ClassDeclaration | Expression; + exportKind: "value" | null; +} + +export interface ExportNamedDeclaration extends BaseNode { + type: "ExportNamedDeclaration"; + declaration: Declaration | null; + specifiers: Array; + source: StringLiteral | null; + assertions: Array | null; + exportKind: "type" | "value" | null; +} + +export interface ExportSpecifier extends BaseNode { + type: "ExportSpecifier"; + local: Identifier; + exported: Identifier | StringLiteral; + exportKind: "type" | "value" | null; +} + +export interface ForOfStatement extends BaseNode { + type: "ForOfStatement"; + left: VariableDeclaration | LVal; + right: Expression; + body: Statement; + await: boolean; +} + +export interface ImportDeclaration extends BaseNode { + type: "ImportDeclaration"; + specifiers: Array; + source: StringLiteral; + assertions: Array | null; + importKind: "type" | "typeof" | "value" | null; +} + +export interface ImportDefaultSpecifier extends BaseNode { + type: "ImportDefaultSpecifier"; + local: Identifier; +} + +export interface ImportNamespaceSpecifier extends BaseNode { + type: "ImportNamespaceSpecifier"; + local: Identifier; +} + +export interface ImportSpecifier extends BaseNode { + type: "ImportSpecifier"; + local: Identifier; + imported: Identifier | StringLiteral; + importKind: "type" | "typeof" | "value" | null; +} + +export interface MetaProperty extends BaseNode { + type: "MetaProperty"; + meta: Identifier; + property: Identifier; +} + +export interface ClassMethod extends BaseNode { + type: "ClassMethod"; + kind: "get" | "set" | "method" | "constructor"; + key: Identifier | StringLiteral | NumericLiteral | Expression; + params: Array; + body: BlockStatement; + computed: boolean; + static: boolean; + generator: boolean; + async: boolean; + abstract: boolean | null; + access: "public" | "private" | "protected" | null; + accessibility: "public" | "private" | "protected" | null; + decorators: Array | null; + optional: boolean | null; + override: boolean; + returnType: TypeAnnotation | TSTypeAnnotation | Noop | null; + typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null; +} + +export interface ObjectPattern extends BaseNode { + type: "ObjectPattern"; + properties: Array; + decorators: Array | null; + typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null; +} + +export interface SpreadElement extends BaseNode { + type: "SpreadElement"; + argument: Expression; +} + +export interface Super extends BaseNode { + type: "Super"; +} + +export interface TaggedTemplateExpression extends BaseNode { + type: "TaggedTemplateExpression"; + tag: Expression; + quasi: TemplateLiteral; + typeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null; +} + +export interface TemplateElement extends BaseNode { + type: "TemplateElement"; + value: { raw: string, cooked?: string }; + tail: boolean; +} + +export interface TemplateLiteral extends BaseNode { + type: "TemplateLiteral"; + quasis: Array; + expressions: Array; +} + +export interface YieldExpression extends BaseNode { + type: "YieldExpression"; + argument: Expression | null; + delegate: boolean; +} + +export interface AwaitExpression extends BaseNode { + type: "AwaitExpression"; + argument: Expression; +} + +export interface Import extends BaseNode { + type: "Import"; +} + +export interface BigIntLiteral extends BaseNode { + type: "BigIntLiteral"; + value: string; +} + +export interface ExportNamespaceSpecifier extends BaseNode { + type: "ExportNamespaceSpecifier"; + exported: Identifier; +} + +export interface OptionalMemberExpression extends BaseNode { + type: "OptionalMemberExpression"; + object: Expression; + property: Expression | Identifier; + computed: boolean; + optional: boolean; +} + +export interface OptionalCallExpression extends BaseNode { + type: "OptionalCallExpression"; + callee: Expression; + arguments: Array; + optional: boolean; + typeArguments: TypeParameterInstantiation | null; + typeParameters: TSTypeParameterInstantiation | null; +} + +export interface ClassProperty extends BaseNode { + type: "ClassProperty"; + key: Identifier | StringLiteral | NumericLiteral | Expression; + value: Expression | null; + typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null; + decorators: Array | null; + computed: boolean; + static: boolean; + abstract: boolean | null; + accessibility: "public" | "private" | "protected" | null; + declare: boolean | null; + definite: boolean | null; + optional: boolean | null; + override: boolean; + readonly: boolean | null; + variance: Variance | null; +} + +export interface ClassAccessorProperty extends BaseNode { + type: "ClassAccessorProperty"; + key: Identifier | StringLiteral | NumericLiteral | Expression | PrivateName; + value: Expression | null; + typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null; + decorators: Array | null; + computed: boolean; + static: boolean; + abstract: boolean | null; + accessibility: "public" | "private" | "protected" | null; + declare: boolean | null; + definite: boolean | null; + optional: boolean | null; + override: boolean; + readonly: boolean | null; + variance: Variance | null; +} + +export interface ClassPrivateProperty extends BaseNode { + type: "ClassPrivateProperty"; + key: PrivateName; + value: Expression | null; + decorators: Array | null; + static: any; + definite: boolean | null; + readonly: boolean | null; + typeAnnotation: TypeAnnotation | TSTypeAnnotation | Noop | null; + variance: Variance | null; +} + +export interface ClassPrivateMethod extends BaseNode { + type: "ClassPrivateMethod"; + kind: "get" | "set" | "method" | "constructor"; + key: PrivateName; + params: Array; + body: BlockStatement; + static: boolean; + abstract: boolean | null; + access: "public" | "private" | "protected" | null; + accessibility: "public" | "private" | "protected" | null; + async: boolean; + computed: boolean; + decorators: Array | null; + generator: boolean; + optional: boolean | null; + override: boolean; + returnType: TypeAnnotation | TSTypeAnnotation | Noop | null; + typeParameters: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null; +} + +export interface PrivateName extends BaseNode { + type: "PrivateName"; + id: Identifier; +} + +export interface StaticBlock extends BaseNode { + type: "StaticBlock"; + body: Array; +} + +export interface AnyTypeAnnotation extends BaseNode { + type: "AnyTypeAnnotation"; +} + +export interface ArrayTypeAnnotation extends BaseNode { + type: "ArrayTypeAnnotation"; + elementType: FlowType; +} + +export interface BooleanTypeAnnotation extends BaseNode { + type: "BooleanTypeAnnotation"; +} + +export interface BooleanLiteralTypeAnnotation extends BaseNode { + type: "BooleanLiteralTypeAnnotation"; + value: boolean; +} + +export interface NullLiteralTypeAnnotation extends BaseNode { + type: "NullLiteralTypeAnnotation"; +} + +export interface ClassImplements extends BaseNode { + type: "ClassImplements"; + id: Identifier; + typeParameters: TypeParameterInstantiation | null; +} + +export interface DeclareClass extends BaseNode { + type: "DeclareClass"; + id: Identifier; + typeParameters: TypeParameterDeclaration | null; + extends: Array | null; + body: ObjectTypeAnnotation; + implements: Array | null; + mixins: Array | null; +} + +export interface DeclareFunction extends BaseNode { + type: "DeclareFunction"; + id: Identifier; + predicate: DeclaredPredicate | null; +} + +export interface DeclareInterface extends BaseNode { + type: "DeclareInterface"; + id: Identifier; + typeParameters: TypeParameterDeclaration | null; + extends: Array | null; + body: ObjectTypeAnnotation; + implements: Array | null; + mixins: Array | null; +} + +export interface DeclareModule extends BaseNode { + type: "DeclareModule"; + id: Identifier | StringLiteral; + body: BlockStatement; + kind: "CommonJS" | "ES" | null; +} + +export interface DeclareModuleExports extends BaseNode { + type: "DeclareModuleExports"; + typeAnnotation: TypeAnnotation; +} + +export interface DeclareTypeAlias extends BaseNode { + type: "DeclareTypeAlias"; + id: Identifier; + typeParameters: TypeParameterDeclaration | null; + right: FlowType; +} + +export interface DeclareOpaqueType extends BaseNode { + type: "DeclareOpaqueType"; + id: Identifier; + typeParameters: TypeParameterDeclaration | null; + supertype: FlowType | null; + impltype: FlowType | null; +} + +export interface DeclareVariable extends BaseNode { + type: "DeclareVariable"; + id: Identifier; +} + +export interface DeclareExportDeclaration extends BaseNode { + type: "DeclareExportDeclaration"; + declaration: Flow | null; + specifiers: Array | null; + source: StringLiteral | null; + default: boolean | null; +} + +export interface DeclareExportAllDeclaration extends BaseNode { + type: "DeclareExportAllDeclaration"; + source: StringLiteral; + exportKind: "type" | "value" | null; +} + +export interface DeclaredPredicate extends BaseNode { + type: "DeclaredPredicate"; + value: Flow; +} + +export interface ExistsTypeAnnotation extends BaseNode { + type: "ExistsTypeAnnotation"; +} + +export interface FunctionTypeAnnotation extends BaseNode { + type: "FunctionTypeAnnotation"; + typeParameters: TypeParameterDeclaration | null; + params: Array; + rest: FunctionTypeParam | null; + returnType: FlowType; + this: FunctionTypeParam | null; +} + +export interface FunctionTypeParam extends BaseNode { + type: "FunctionTypeParam"; + name: Identifier | null; + typeAnnotation: FlowType; + optional: boolean | null; +} + +export interface GenericTypeAnnotation extends BaseNode { + type: "GenericTypeAnnotation"; + id: Identifier | QualifiedTypeIdentifier; + typeParameters: TypeParameterInstantiation | null; +} + +export interface InferredPredicate extends BaseNode { + type: "InferredPredicate"; +} + +export interface InterfaceExtends extends BaseNode { + type: "InterfaceExtends"; + id: Identifier | QualifiedTypeIdentifier; + typeParameters: TypeParameterInstantiation | null; +} + +export interface InterfaceDeclaration extends BaseNode { + type: "InterfaceDeclaration"; + id: Identifier; + typeParameters: TypeParameterDeclaration | null; + extends: Array | null; + body: ObjectTypeAnnotation; + implements: Array | null; + mixins: Array | null; +} + +export interface InterfaceTypeAnnotation extends BaseNode { + type: "InterfaceTypeAnnotation"; + extends: Array | null; + body: ObjectTypeAnnotation; +} + +export interface IntersectionTypeAnnotation extends BaseNode { + type: "IntersectionTypeAnnotation"; + types: Array; +} + +export interface MixedTypeAnnotation extends BaseNode { + type: "MixedTypeAnnotation"; +} + +export interface EmptyTypeAnnotation extends BaseNode { + type: "EmptyTypeAnnotation"; +} + +export interface NullableTypeAnnotation extends BaseNode { + type: "NullableTypeAnnotation"; + typeAnnotation: FlowType; +} + +export interface NumberLiteralTypeAnnotation extends BaseNode { + type: "NumberLiteralTypeAnnotation"; + value: number; +} + +export interface NumberTypeAnnotation extends BaseNode { + type: "NumberTypeAnnotation"; +} + +export interface ObjectTypeAnnotation extends BaseNode { + type: "ObjectTypeAnnotation"; + properties: Array; + indexers: Array | null; + callProperties: Array | null; + internalSlots: Array | null; + exact: boolean; + inexact: boolean | null; +} + +export interface ObjectTypeInternalSlot extends BaseNode { + type: "ObjectTypeInternalSlot"; + id: Identifier; + value: FlowType; + optional: boolean; + static: boolean; + method: boolean; +} + +export interface ObjectTypeCallProperty extends BaseNode { + type: "ObjectTypeCallProperty"; + value: FlowType; + static: boolean; +} + +export interface ObjectTypeIndexer extends BaseNode { + type: "ObjectTypeIndexer"; + id: Identifier | null; + key: FlowType; + value: FlowType; + variance: Variance | null; + static: boolean; +} + +export interface ObjectTypeProperty extends BaseNode { + type: "ObjectTypeProperty"; + key: Identifier | StringLiteral; + value: FlowType; + variance: Variance | null; + kind: "init" | "get" | "set"; + method: boolean; + optional: boolean; + proto: boolean; + static: boolean; +} + +export interface ObjectTypeSpreadProperty extends BaseNode { + type: "ObjectTypeSpreadProperty"; + argument: FlowType; +} + +export interface OpaqueType extends BaseNode { + type: "OpaqueType"; + id: Identifier; + typeParameters: TypeParameterDeclaration | null; + supertype: FlowType | null; + impltype: FlowType; +} + +export interface QualifiedTypeIdentifier extends BaseNode { + type: "QualifiedTypeIdentifier"; + id: Identifier; + qualification: Identifier | QualifiedTypeIdentifier; +} + +export interface StringLiteralTypeAnnotation extends BaseNode { + type: "StringLiteralTypeAnnotation"; + value: string; +} + +export interface StringTypeAnnotation extends BaseNode { + type: "StringTypeAnnotation"; +} + +export interface SymbolTypeAnnotation extends BaseNode { + type: "SymbolTypeAnnotation"; +} + +export interface ThisTypeAnnotation extends BaseNode { + type: "ThisTypeAnnotation"; +} + +export interface TupleTypeAnnotation extends BaseNode { + type: "TupleTypeAnnotation"; + types: Array; +} + +export interface TypeofTypeAnnotation extends BaseNode { + type: "TypeofTypeAnnotation"; + argument: FlowType; +} + +export interface TypeAlias extends BaseNode { + type: "TypeAlias"; + id: Identifier; + typeParameters: TypeParameterDeclaration | null; + right: FlowType; +} + +export interface TypeAnnotation extends BaseNode { + type: "TypeAnnotation"; + typeAnnotation: FlowType; +} + +export interface TypeCastExpression extends BaseNode { + type: "TypeCastExpression"; + expression: Expression; + typeAnnotation: TypeAnnotation; +} + +export interface TypeParameter extends BaseNode { + type: "TypeParameter"; + bound: TypeAnnotation | null; + default: FlowType | null; + variance: Variance | null; + name: string; +} + +export interface TypeParameterDeclaration extends BaseNode { + type: "TypeParameterDeclaration"; + params: Array; +} + +export interface TypeParameterInstantiation extends BaseNode { + type: "TypeParameterInstantiation"; + params: Array; +} + +export interface UnionTypeAnnotation extends BaseNode { + type: "UnionTypeAnnotation"; + types: Array; +} + +export interface Variance extends BaseNode { + type: "Variance"; + kind: "minus" | "plus"; +} + +export interface VoidTypeAnnotation extends BaseNode { + type: "VoidTypeAnnotation"; +} + +export interface EnumDeclaration extends BaseNode { + type: "EnumDeclaration"; + id: Identifier; + body: EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody; +} + +export interface EnumBooleanBody extends BaseNode { + type: "EnumBooleanBody"; + members: Array; + explicitType: boolean; + hasUnknownMembers: boolean; +} + +export interface EnumNumberBody extends BaseNode { + type: "EnumNumberBody"; + members: Array; + explicitType: boolean; + hasUnknownMembers: boolean; +} + +export interface EnumStringBody extends BaseNode { + type: "EnumStringBody"; + members: Array; + explicitType: boolean; + hasUnknownMembers: boolean; +} + +export interface EnumSymbolBody extends BaseNode { + type: "EnumSymbolBody"; + members: Array; + hasUnknownMembers: boolean; +} + +export interface EnumBooleanMember extends BaseNode { + type: "EnumBooleanMember"; + id: Identifier; + init: BooleanLiteral; +} + +export interface EnumNumberMember extends BaseNode { + type: "EnumNumberMember"; + id: Identifier; + init: NumericLiteral; +} + +export interface EnumStringMember extends BaseNode { + type: "EnumStringMember"; + id: Identifier; + init: StringLiteral; +} + +export interface EnumDefaultedMember extends BaseNode { + type: "EnumDefaultedMember"; + id: Identifier; +} + +export interface IndexedAccessType extends BaseNode { + type: "IndexedAccessType"; + objectType: FlowType; + indexType: FlowType; +} + +export interface OptionalIndexedAccessType extends BaseNode { + type: "OptionalIndexedAccessType"; + objectType: FlowType; + indexType: FlowType; + optional: boolean; +} + +export interface JSXAttribute extends BaseNode { + type: "JSXAttribute"; + name: JSXIdentifier | JSXNamespacedName; + value: JSXElement | JSXFragment | StringLiteral | JSXExpressionContainer | null; +} + +export interface JSXClosingElement extends BaseNode { + type: "JSXClosingElement"; + name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName; +} + +export interface JSXElement extends BaseNode { + type: "JSXElement"; + openingElement: JSXOpeningElement; + closingElement: JSXClosingElement | null; + children: Array; + selfClosing: boolean | null; +} + +export interface JSXEmptyExpression extends BaseNode { + type: "JSXEmptyExpression"; +} + +export interface JSXExpressionContainer extends BaseNode { + type: "JSXExpressionContainer"; + expression: Expression | JSXEmptyExpression; +} + +export interface JSXSpreadChild extends BaseNode { + type: "JSXSpreadChild"; + expression: Expression; +} + +export interface JSXIdentifier extends BaseNode { + type: "JSXIdentifier"; + name: string; +} + +export interface JSXMemberExpression extends BaseNode { + type: "JSXMemberExpression"; + object: JSXMemberExpression | JSXIdentifier; + property: JSXIdentifier; +} + +export interface JSXNamespacedName extends BaseNode { + type: "JSXNamespacedName"; + namespace: JSXIdentifier; + name: JSXIdentifier; +} + +export interface JSXOpeningElement extends BaseNode { + type: "JSXOpeningElement"; + name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName; + attributes: Array; + selfClosing: boolean; + typeParameters: TypeParameterInstantiation | TSTypeParameterInstantiation | null; +} + +export interface JSXSpreadAttribute extends BaseNode { + type: "JSXSpreadAttribute"; + argument: Expression; +} + +export interface JSXText extends BaseNode { + type: "JSXText"; + value: string; +} + +export interface JSXFragment extends BaseNode { + type: "JSXFragment"; + openingFragment: JSXOpeningFragment; + closingFragment: JSXClosingFragment; + children: Array; +} + +export interface JSXOpeningFragment extends BaseNode { + type: "JSXOpeningFragment"; +} + +export interface JSXClosingFragment extends BaseNode { + type: "JSXClosingFragment"; +} + +export interface Noop extends BaseNode { + type: "Noop"; +} + +export interface Placeholder extends BaseNode { + type: "Placeholder"; + expectedNode: "Identifier" | "StringLiteral" | "Expression" | "Statement" | "Declaration" | "BlockStatement" | "ClassBody" | "Pattern"; + name: Identifier; +} + +export interface V8IntrinsicIdentifier extends BaseNode { + type: "V8IntrinsicIdentifier"; + name: string; +} + +export interface ArgumentPlaceholder extends BaseNode { + type: "ArgumentPlaceholder"; +} + +export interface BindExpression extends BaseNode { + type: "BindExpression"; + object: Expression; + callee: Expression; +} + +export interface ImportAttribute extends BaseNode { + type: "ImportAttribute"; + key: Identifier | StringLiteral; + value: StringLiteral; +} + +export interface Decorator extends BaseNode { + type: "Decorator"; + expression: Expression; +} + +export interface DoExpression extends BaseNode { + type: "DoExpression"; + body: BlockStatement; + async: boolean; +} + +export interface ExportDefaultSpecifier extends BaseNode { + type: "ExportDefaultSpecifier"; + exported: Identifier; +} + +export interface RecordExpression extends BaseNode { + type: "RecordExpression"; + properties: Array; +} + +export interface TupleExpression extends BaseNode { + type: "TupleExpression"; + elements: Array; +} + +export interface DecimalLiteral extends BaseNode { + type: "DecimalLiteral"; + value: string; +} + +export interface ModuleExpression extends BaseNode { + type: "ModuleExpression"; + body: Program; +} + +export interface TopicReference extends BaseNode { + type: "TopicReference"; +} + +export interface PipelineTopicExpression extends BaseNode { + type: "PipelineTopicExpression"; + expression: Expression; +} + +export interface PipelineBareFunction extends BaseNode { + type: "PipelineBareFunction"; + callee: Expression; +} + +export interface PipelinePrimaryTopicReference extends BaseNode { + type: "PipelinePrimaryTopicReference"; +} + +export interface TSParameterProperty extends BaseNode { + type: "TSParameterProperty"; + parameter: Identifier | AssignmentPattern; + accessibility: "public" | "private" | "protected" | null; + decorators: Array | null; + override: boolean | null; + readonly: boolean | null; +} + +export interface TSDeclareFunction extends BaseNode { + type: "TSDeclareFunction"; + id: Identifier | null; + typeParameters: TSTypeParameterDeclaration | Noop | null; + params: Array; + returnType: TSTypeAnnotation | Noop | null; + async: boolean; + declare: boolean | null; + generator: boolean; +} + +export interface TSDeclareMethod extends BaseNode { + type: "TSDeclareMethod"; + decorators: Array | null; + key: Identifier | StringLiteral | NumericLiteral | Expression; + typeParameters: TSTypeParameterDeclaration | Noop | null; + params: Array; + returnType: TSTypeAnnotation | Noop | null; + abstract: boolean | null; + access: "public" | "private" | "protected" | null; + accessibility: "public" | "private" | "protected" | null; + async: boolean; + computed: boolean; + generator: boolean; + kind: "get" | "set" | "method" | "constructor"; + optional: boolean | null; + override: boolean; + static: boolean; +} + +export interface TSQualifiedName extends BaseNode { + type: "TSQualifiedName"; + left: TSEntityName; + right: Identifier; +} + +export interface TSCallSignatureDeclaration extends BaseNode { + type: "TSCallSignatureDeclaration"; + typeParameters: TSTypeParameterDeclaration | null; + parameters: Array; + typeAnnotation: TSTypeAnnotation | null; +} + +export interface TSConstructSignatureDeclaration extends BaseNode { + type: "TSConstructSignatureDeclaration"; + typeParameters: TSTypeParameterDeclaration | null; + parameters: Array; + typeAnnotation: TSTypeAnnotation | null; +} + +export interface TSPropertySignature extends BaseNode { + type: "TSPropertySignature"; + key: Expression; + typeAnnotation: TSTypeAnnotation | null; + initializer: Expression | null; + computed: boolean | null; + kind: "get" | "set"; + optional: boolean | null; + readonly: boolean | null; +} + +export interface TSMethodSignature extends BaseNode { + type: "TSMethodSignature"; + key: Expression; + typeParameters: TSTypeParameterDeclaration | null; + parameters: Array; + typeAnnotation: TSTypeAnnotation | null; + computed: boolean | null; + kind: "method" | "get" | "set"; + optional: boolean | null; +} + +export interface TSIndexSignature extends BaseNode { + type: "TSIndexSignature"; + parameters: Array; + typeAnnotation: TSTypeAnnotation | null; + readonly: boolean | null; + static: boolean | null; +} + +export interface TSAnyKeyword extends BaseNode { + type: "TSAnyKeyword"; +} + +export interface TSBooleanKeyword extends BaseNode { + type: "TSBooleanKeyword"; +} + +export interface TSBigIntKeyword extends BaseNode { + type: "TSBigIntKeyword"; +} + +export interface TSIntrinsicKeyword extends BaseNode { + type: "TSIntrinsicKeyword"; +} + +export interface TSNeverKeyword extends BaseNode { + type: "TSNeverKeyword"; +} + +export interface TSNullKeyword extends BaseNode { + type: "TSNullKeyword"; +} + +export interface TSNumberKeyword extends BaseNode { + type: "TSNumberKeyword"; +} + +export interface TSObjectKeyword extends BaseNode { + type: "TSObjectKeyword"; +} + +export interface TSStringKeyword extends BaseNode { + type: "TSStringKeyword"; +} + +export interface TSSymbolKeyword extends BaseNode { + type: "TSSymbolKeyword"; +} + +export interface TSUndefinedKeyword extends BaseNode { + type: "TSUndefinedKeyword"; +} + +export interface TSUnknownKeyword extends BaseNode { + type: "TSUnknownKeyword"; +} + +export interface TSVoidKeyword extends BaseNode { + type: "TSVoidKeyword"; +} + +export interface TSThisType extends BaseNode { + type: "TSThisType"; +} + +export interface TSFunctionType extends BaseNode { + type: "TSFunctionType"; + typeParameters: TSTypeParameterDeclaration | null; + parameters: Array; + typeAnnotation: TSTypeAnnotation | null; +} + +export interface TSConstructorType extends BaseNode { + type: "TSConstructorType"; + typeParameters: TSTypeParameterDeclaration | null; + parameters: Array; + typeAnnotation: TSTypeAnnotation | null; + abstract: boolean | null; +} + +export interface TSTypeReference extends BaseNode { + type: "TSTypeReference"; + typeName: TSEntityName; + typeParameters: TSTypeParameterInstantiation | null; +} + +export interface TSTypePredicate extends BaseNode { + type: "TSTypePredicate"; + parameterName: Identifier | TSThisType; + typeAnnotation: TSTypeAnnotation | null; + asserts: boolean | null; +} + +export interface TSTypeQuery extends BaseNode { + type: "TSTypeQuery"; + exprName: TSEntityName | TSImportType; +} + +export interface TSTypeLiteral extends BaseNode { + type: "TSTypeLiteral"; + members: Array; +} + +export interface TSArrayType extends BaseNode { + type: "TSArrayType"; + elementType: TSType; +} + +export interface TSTupleType extends BaseNode { + type: "TSTupleType"; + elementTypes: Array; +} + +export interface TSOptionalType extends BaseNode { + type: "TSOptionalType"; + typeAnnotation: TSType; +} + +export interface TSRestType extends BaseNode { + type: "TSRestType"; + typeAnnotation: TSType; +} + +export interface TSNamedTupleMember extends BaseNode { + type: "TSNamedTupleMember"; + label: Identifier; + elementType: TSType; + optional: boolean; +} + +export interface TSUnionType extends BaseNode { + type: "TSUnionType"; + types: Array; +} + +export interface TSIntersectionType extends BaseNode { + type: "TSIntersectionType"; + types: Array; +} + +export interface TSConditionalType extends BaseNode { + type: "TSConditionalType"; + checkType: TSType; + extendsType: TSType; + trueType: TSType; + falseType: TSType; +} + +export interface TSInferType extends BaseNode { + type: "TSInferType"; + typeParameter: TSTypeParameter; +} + +export interface TSParenthesizedType extends BaseNode { + type: "TSParenthesizedType"; + typeAnnotation: TSType; +} + +export interface TSTypeOperator extends BaseNode { + type: "TSTypeOperator"; + typeAnnotation: TSType; + operator: string; +} + +export interface TSIndexedAccessType extends BaseNode { + type: "TSIndexedAccessType"; + objectType: TSType; + indexType: TSType; +} + +export interface TSMappedType extends BaseNode { + type: "TSMappedType"; + typeParameter: TSTypeParameter; + typeAnnotation: TSType | null; + nameType: TSType | null; + optional: boolean | null; + readonly: boolean | null; +} + +export interface TSLiteralType extends BaseNode { + type: "TSLiteralType"; + literal: NumericLiteral | StringLiteral | BooleanLiteral | BigIntLiteral | UnaryExpression; +} + +export interface TSExpressionWithTypeArguments extends BaseNode { + type: "TSExpressionWithTypeArguments"; + expression: TSEntityName; + typeParameters: TSTypeParameterInstantiation | null; +} + +export interface TSInterfaceDeclaration extends BaseNode { + type: "TSInterfaceDeclaration"; + id: Identifier; + typeParameters: TSTypeParameterDeclaration | null; + extends: Array | null; + body: TSInterfaceBody; + declare: boolean | null; +} + +export interface TSInterfaceBody extends BaseNode { + type: "TSInterfaceBody"; + body: Array; +} + +export interface TSTypeAliasDeclaration extends BaseNode { + type: "TSTypeAliasDeclaration"; + id: Identifier; + typeParameters: TSTypeParameterDeclaration | null; + typeAnnotation: TSType; + declare: boolean | null; +} + +export interface TSAsExpression extends BaseNode { + type: "TSAsExpression"; + expression: Expression; + typeAnnotation: TSType; +} + +export interface TSTypeAssertion extends BaseNode { + type: "TSTypeAssertion"; + typeAnnotation: TSType; + expression: Expression; +} + +export interface TSEnumDeclaration extends BaseNode { + type: "TSEnumDeclaration"; + id: Identifier; + members: Array; + const: boolean | null; + declare: boolean | null; + initializer: Expression | null; +} + +export interface TSEnumMember extends BaseNode { + type: "TSEnumMember"; + id: Identifier | StringLiteral; + initializer: Expression | null; +} + +export interface TSModuleDeclaration extends BaseNode { + type: "TSModuleDeclaration"; + id: Identifier | StringLiteral; + body: TSModuleBlock | TSModuleDeclaration; + declare: boolean | null; + global: boolean | null; +} + +export interface TSModuleBlock extends BaseNode { + type: "TSModuleBlock"; + body: Array; +} + +export interface TSImportType extends BaseNode { + type: "TSImportType"; + argument: StringLiteral; + qualifier: TSEntityName | null; + typeParameters: TSTypeParameterInstantiation | null; +} + +export interface TSImportEqualsDeclaration extends BaseNode { + type: "TSImportEqualsDeclaration"; + id: Identifier; + moduleReference: TSEntityName | TSExternalModuleReference; + importKind: "type" | "value" | null; + isExport: boolean; +} + +export interface TSExternalModuleReference extends BaseNode { + type: "TSExternalModuleReference"; + expression: StringLiteral; +} + +export interface TSNonNullExpression extends BaseNode { + type: "TSNonNullExpression"; + expression: Expression; +} + +export interface TSExportAssignment extends BaseNode { + type: "TSExportAssignment"; + expression: Expression; +} + +export interface TSNamespaceExportDeclaration extends BaseNode { + type: "TSNamespaceExportDeclaration"; + id: Identifier; +} + +export interface TSTypeAnnotation extends BaseNode { + type: "TSTypeAnnotation"; + typeAnnotation: TSType; +} + +export interface TSTypeParameterInstantiation extends BaseNode { + type: "TSTypeParameterInstantiation"; + params: Array; +} + +export interface TSTypeParameterDeclaration extends BaseNode { + type: "TSTypeParameterDeclaration"; + params: Array; +} + +export interface TSTypeParameter extends BaseNode { + type: "TSTypeParameter"; + constraint: TSType | null; + default: TSType | null; + name: string; +} + +/** + * @deprecated Use `NumericLiteral` + */ +export type NumberLiteral = NumericLiteral; + +/** + * @deprecated Use `RegExpLiteral` + */ +export type RegexLiteral = RegExpLiteral; + +/** + * @deprecated Use `RestElement` + */ +export type RestProperty = RestElement; + +/** + * @deprecated Use `SpreadElement` + */ +export type SpreadProperty = SpreadElement; + +export type Standardized = ArrayExpression | AssignmentExpression | BinaryExpression | InterpreterDirective | Directive | DirectiveLiteral | BlockStatement | BreakStatement | CallExpression | CatchClause | ConditionalExpression | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | File | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | LabeledStatement | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | Program | ObjectExpression | ObjectMethod | ObjectProperty | RestElement | ReturnStatement | SequenceExpression | ParenthesizedExpression | SwitchCase | SwitchStatement | ThisExpression | ThrowStatement | TryStatement | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | AssignmentPattern | ArrayPattern | ArrowFunctionExpression | ClassBody | ClassExpression | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ForOfStatement | ImportDeclaration | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | MetaProperty | ClassMethod | ObjectPattern | SpreadElement | Super | TaggedTemplateExpression | TemplateElement | TemplateLiteral | YieldExpression | AwaitExpression | Import | BigIntLiteral | ExportNamespaceSpecifier | OptionalMemberExpression | OptionalCallExpression | ClassProperty | ClassAccessorProperty | ClassPrivateProperty | ClassPrivateMethod | PrivateName | StaticBlock; +export type Expression = ArrayExpression | AssignmentExpression | BinaryExpression | CallExpression | ConditionalExpression | FunctionExpression | Identifier | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | ObjectExpression | SequenceExpression | ParenthesizedExpression | ThisExpression | UnaryExpression | UpdateExpression | ArrowFunctionExpression | ClassExpression | MetaProperty | Super | TaggedTemplateExpression | TemplateLiteral | YieldExpression | AwaitExpression | Import | BigIntLiteral | OptionalMemberExpression | OptionalCallExpression | TypeCastExpression | JSXElement | JSXFragment | BindExpression | DoExpression | RecordExpression | TupleExpression | DecimalLiteral | ModuleExpression | TopicReference | PipelineTopicExpression | PipelineBareFunction | PipelinePrimaryTopicReference | TSAsExpression | TSTypeAssertion | TSNonNullExpression; +export type Binary = BinaryExpression | LogicalExpression; +export type Scopable = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ClassExpression | ClassDeclaration | ForOfStatement | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock; +export type BlockParent = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ForOfStatement | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock; +export type Block = BlockStatement | Program | TSModuleBlock; +export type Statement = BlockStatement | BreakStatement | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | ForInStatement | ForStatement | FunctionDeclaration | IfStatement | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | VariableDeclaration | WhileStatement | WithStatement | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ForOfStatement | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias | EnumDeclaration | TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration | TSImportEqualsDeclaration | TSExportAssignment | TSNamespaceExportDeclaration; +export type Terminatorless = BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement | YieldExpression | AwaitExpression; +export type CompletionStatement = BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement; +export type Conditional = ConditionalExpression | IfStatement; +export type Loop = DoWhileStatement | ForInStatement | ForStatement | WhileStatement | ForOfStatement; +export type While = DoWhileStatement | WhileStatement; +export type ExpressionWrapper = ExpressionStatement | ParenthesizedExpression | TypeCastExpression; +export type For = ForInStatement | ForStatement | ForOfStatement; +export type ForXStatement = ForInStatement | ForOfStatement; +export type Function = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod | ClassPrivateMethod; +export type FunctionParent = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod | ClassPrivateMethod | StaticBlock; +export type Pureish = FunctionDeclaration | FunctionExpression | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | ArrowFunctionExpression | BigIntLiteral | DecimalLiteral; +export type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias | EnumDeclaration | TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration; +export type PatternLike = Identifier | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern; +export type LVal = Identifier | MemberExpression | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | TSParameterProperty; +export type TSEntityName = Identifier | TSQualifiedName; +export type Literal = StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | TemplateLiteral | BigIntLiteral | DecimalLiteral; +export type Immutable = StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | BigIntLiteral | JSXAttribute | JSXClosingElement | JSXElement | JSXExpressionContainer | JSXSpreadChild | JSXOpeningElement | JSXText | JSXFragment | JSXOpeningFragment | JSXClosingFragment | DecimalLiteral; +export type UserWhitespacable = ObjectMethod | ObjectProperty | ObjectTypeInternalSlot | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty | ObjectTypeSpreadProperty; +export type Method = ObjectMethod | ClassMethod | ClassPrivateMethod; +export type ObjectMember = ObjectMethod | ObjectProperty; +export type Property = ObjectProperty | ClassProperty | ClassAccessorProperty | ClassPrivateProperty; +export type UnaryLike = UnaryExpression | SpreadElement; +export type Pattern = AssignmentPattern | ArrayPattern | ObjectPattern; +export type Class = ClassExpression | ClassDeclaration; +export type ModuleDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration; +export type ExportDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration; +export type ModuleSpecifier = ExportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | ExportNamespaceSpecifier | ExportDefaultSpecifier; +export type Accessor = ClassAccessorProperty; +export type Private = ClassPrivateProperty | ClassPrivateMethod | PrivateName; +export type Flow = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullLiteralTypeAnnotation | ClassImplements | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | DeclaredPredicate | ExistsTypeAnnotation | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | InferredPredicate | InterfaceExtends | InterfaceDeclaration | InterfaceTypeAnnotation | IntersectionTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NullableTypeAnnotation | NumberLiteralTypeAnnotation | NumberTypeAnnotation | ObjectTypeAnnotation | ObjectTypeInternalSlot | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | QualifiedTypeIdentifier | StringLiteralTypeAnnotation | StringTypeAnnotation | SymbolTypeAnnotation | ThisTypeAnnotation | TupleTypeAnnotation | TypeofTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | UnionTypeAnnotation | Variance | VoidTypeAnnotation | EnumDeclaration | EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody | EnumBooleanMember | EnumNumberMember | EnumStringMember | EnumDefaultedMember | IndexedAccessType | OptionalIndexedAccessType; +export type FlowType = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullLiteralTypeAnnotation | ExistsTypeAnnotation | FunctionTypeAnnotation | GenericTypeAnnotation | InterfaceTypeAnnotation | IntersectionTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NullableTypeAnnotation | NumberLiteralTypeAnnotation | NumberTypeAnnotation | ObjectTypeAnnotation | StringLiteralTypeAnnotation | StringTypeAnnotation | SymbolTypeAnnotation | ThisTypeAnnotation | TupleTypeAnnotation | TypeofTypeAnnotation | UnionTypeAnnotation | VoidTypeAnnotation | IndexedAccessType | OptionalIndexedAccessType; +export type FlowBaseAnnotation = AnyTypeAnnotation | BooleanTypeAnnotation | NullLiteralTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NumberTypeAnnotation | StringTypeAnnotation | SymbolTypeAnnotation | ThisTypeAnnotation | VoidTypeAnnotation; +export type FlowDeclaration = DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias; +export type FlowPredicate = DeclaredPredicate | InferredPredicate; +export type EnumBody = EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody; +export type EnumMember = EnumBooleanMember | EnumNumberMember | EnumStringMember | EnumDefaultedMember; +export type JSX = JSXAttribute | JSXClosingElement | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXSpreadChild | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXSpreadAttribute | JSXText | JSXFragment | JSXOpeningFragment | JSXClosingFragment; +export type Miscellaneous = Noop | Placeholder | V8IntrinsicIdentifier; +export type TypeScript = TSParameterProperty | TSDeclareFunction | TSDeclareMethod | TSQualifiedName | TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSPropertySignature | TSMethodSignature | TSIndexSignature | TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSFunctionType | TSConstructorType | TSTypeReference | TSTypePredicate | TSTypeQuery | TSTypeLiteral | TSArrayType | TSTupleType | TSOptionalType | TSRestType | TSNamedTupleMember | TSUnionType | TSIntersectionType | TSConditionalType | TSInferType | TSParenthesizedType | TSTypeOperator | TSIndexedAccessType | TSMappedType | TSLiteralType | TSExpressionWithTypeArguments | TSInterfaceDeclaration | TSInterfaceBody | TSTypeAliasDeclaration | TSAsExpression | TSTypeAssertion | TSEnumDeclaration | TSEnumMember | TSModuleDeclaration | TSModuleBlock | TSImportType | TSImportEqualsDeclaration | TSExternalModuleReference | TSNonNullExpression | TSExportAssignment | TSNamespaceExportDeclaration | TSTypeAnnotation | TSTypeParameterInstantiation | TSTypeParameterDeclaration | TSTypeParameter; +export type TSTypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSPropertySignature | TSMethodSignature | TSIndexSignature; +export type TSType = TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSFunctionType | TSConstructorType | TSTypeReference | TSTypePredicate | TSTypeQuery | TSTypeLiteral | TSArrayType | TSTupleType | TSOptionalType | TSRestType | TSUnionType | TSIntersectionType | TSConditionalType | TSInferType | TSParenthesizedType | TSTypeOperator | TSIndexedAccessType | TSMappedType | TSLiteralType | TSExpressionWithTypeArguments | TSImportType; +export type TSBaseType = TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSLiteralType; + +export interface Aliases { + Standardized: Standardized; + Expression: Expression; + Binary: Binary; + Scopable: Scopable; + BlockParent: BlockParent; + Block: Block; + Statement: Statement; + Terminatorless: Terminatorless; + CompletionStatement: CompletionStatement; + Conditional: Conditional; + Loop: Loop; + While: While; + ExpressionWrapper: ExpressionWrapper; + For: For; + ForXStatement: ForXStatement; + Function: Function; + FunctionParent: FunctionParent; + Pureish: Pureish; + Declaration: Declaration; + PatternLike: PatternLike; + LVal: LVal; + TSEntityName: TSEntityName; + Literal: Literal; + Immutable: Immutable; + UserWhitespacable: UserWhitespacable; + Method: Method; + ObjectMember: ObjectMember; + Property: Property; + UnaryLike: UnaryLike; + Pattern: Pattern; + Class: Class; + ModuleDeclaration: ModuleDeclaration; + ExportDeclaration: ExportDeclaration; + ModuleSpecifier: ModuleSpecifier; + Accessor: Accessor; + Private: Private; + Flow: Flow; + FlowType: FlowType; + FlowBaseAnnotation: FlowBaseAnnotation; + FlowDeclaration: FlowDeclaration; + FlowPredicate: FlowPredicate; + EnumBody: EnumBody; + EnumMember: EnumMember; + JSX: JSX; + Miscellaneous: Miscellaneous; + TypeScript: TypeScript; + TSTypeElement: TSTypeElement; + TSType: TSType; + TSBaseType: TSBaseType; +} + +export function arrayExpression(elements?: Array): ArrayExpression; +export function assignmentExpression(operator: string, left: LVal, right: Expression): AssignmentExpression; +export function binaryExpression(operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=", left: Expression | PrivateName, right: Expression): BinaryExpression; +export function interpreterDirective(value: string): InterpreterDirective; +export function directive(value: DirectiveLiteral): Directive; +export function directiveLiteral(value: string): DirectiveLiteral; +export function blockStatement(body: Array, directives?: Array): BlockStatement; +export function breakStatement(label?: Identifier | null): BreakStatement; +export function callExpression(callee: Expression | V8IntrinsicIdentifier, _arguments: Array): CallExpression; +export function catchClause(param: Identifier | ArrayPattern | ObjectPattern | null | undefined, body: BlockStatement): CatchClause; +export function conditionalExpression(test: Expression, consequent: Expression, alternate: Expression): ConditionalExpression; +export function continueStatement(label?: Identifier | null): ContinueStatement; +export function debuggerStatement(): DebuggerStatement; +export function doWhileStatement(test: Expression, body: Statement): DoWhileStatement; +export function emptyStatement(): EmptyStatement; +export function expressionStatement(expression: Expression): ExpressionStatement; +export function file(program: Program, comments?: Array | null, tokens?: Array | null): File; +export function forInStatement(left: VariableDeclaration | LVal, right: Expression, body: Statement): ForInStatement; +export function forStatement(init: VariableDeclaration | Expression | null | undefined, test: Expression | null | undefined, update: Expression | null | undefined, body: Statement): ForStatement; +export function functionDeclaration(id: Identifier | null | undefined, params: Array, body: BlockStatement, generator?: boolean, async?: boolean): FunctionDeclaration; +export function functionExpression(id: Identifier | null | undefined, params: Array, body: BlockStatement, generator?: boolean, async?: boolean): FunctionExpression; +export function identifier(name: string): Identifier; +export function ifStatement(test: Expression, consequent: Statement, alternate?: Statement | null): IfStatement; +export function labeledStatement(label: Identifier, body: Statement): LabeledStatement; +export function stringLiteral(value: string): StringLiteral; +export function numericLiteral(value: number): NumericLiteral; +export function nullLiteral(): NullLiteral; +export function booleanLiteral(value: boolean): BooleanLiteral; +export function regExpLiteral(pattern: string, flags?: string): RegExpLiteral; +export function logicalExpression(operator: "||" | "&&" | "??", left: Expression, right: Expression): LogicalExpression; +export function memberExpression(object: Expression, property: Expression | Identifier | PrivateName, computed?: boolean, optional?: true | false | null): MemberExpression; +export function newExpression(callee: Expression | V8IntrinsicIdentifier, _arguments: Array): NewExpression; +export function program(body: Array, directives?: Array, sourceType?: "script" | "module", interpreter?: InterpreterDirective | null): Program; +export function objectExpression(properties: Array): ObjectExpression; +export function objectMethod(kind: "method" | "get" | "set" | undefined, key: Expression | Identifier | StringLiteral | NumericLiteral, params: Array, body: BlockStatement, computed?: boolean, generator?: boolean, async?: boolean): ObjectMethod; +export function objectProperty(key: Expression | Identifier | StringLiteral | NumericLiteral, value: Expression | PatternLike, computed?: boolean, shorthand?: boolean, decorators?: Array | null): ObjectProperty; +export function restElement(argument: LVal): RestElement; +export function returnStatement(argument?: Expression | null): ReturnStatement; +export function sequenceExpression(expressions: Array): SequenceExpression; +export function parenthesizedExpression(expression: Expression): ParenthesizedExpression; +export function switchCase(test: Expression | null | undefined, consequent: Array): SwitchCase; +export function switchStatement(discriminant: Expression, cases: Array): SwitchStatement; +export function thisExpression(): ThisExpression; +export function throwStatement(argument: Expression): ThrowStatement; +export function tryStatement(block: BlockStatement, handler?: CatchClause | null, finalizer?: BlockStatement | null): TryStatement; +export function unaryExpression(operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof", argument: Expression, prefix?: boolean): UnaryExpression; +export function updateExpression(operator: "++" | "--", argument: Expression, prefix?: boolean): UpdateExpression; +export function variableDeclaration(kind: "var" | "let" | "const", declarations: Array): VariableDeclaration; +export function variableDeclarator(id: LVal, init?: Expression | null): VariableDeclarator; +export function whileStatement(test: Expression, body: Statement): WhileStatement; +export function withStatement(object: Expression, body: Statement): WithStatement; +export function assignmentPattern(left: Identifier | ObjectPattern | ArrayPattern | MemberExpression, right: Expression): AssignmentPattern; +export function arrayPattern(elements: Array): ArrayPattern; +export function arrowFunctionExpression(params: Array, body: BlockStatement | Expression, async?: boolean): ArrowFunctionExpression; +export function classBody(body: Array): ClassBody; +export function classExpression(id: Identifier | null | undefined, superClass: Expression | null | undefined, body: ClassBody, decorators?: Array | null): ClassExpression; +export function classDeclaration(id: Identifier, superClass: Expression | null | undefined, body: ClassBody, decorators?: Array | null): ClassDeclaration; +export function exportAllDeclaration(source: StringLiteral): ExportAllDeclaration; +export function exportDefaultDeclaration(declaration: FunctionDeclaration | TSDeclareFunction | ClassDeclaration | Expression): ExportDefaultDeclaration; +export function exportNamedDeclaration(declaration?: Declaration | null, specifiers?: Array, source?: StringLiteral | null): ExportNamedDeclaration; +export function exportSpecifier(local: Identifier, exported: Identifier | StringLiteral): ExportSpecifier; +export function forOfStatement(left: VariableDeclaration | LVal, right: Expression, body: Statement, _await?: boolean): ForOfStatement; +export function importDeclaration(specifiers: Array, source: StringLiteral): ImportDeclaration; +export function importDefaultSpecifier(local: Identifier): ImportDefaultSpecifier; +export function importNamespaceSpecifier(local: Identifier): ImportNamespaceSpecifier; +export function importSpecifier(local: Identifier, imported: Identifier | StringLiteral): ImportSpecifier; +export function metaProperty(meta: Identifier, property: Identifier): MetaProperty; +export function classMethod(kind: "get" | "set" | "method" | "constructor" | undefined, key: Identifier | StringLiteral | NumericLiteral | Expression, params: Array, body: BlockStatement, computed?: boolean, _static?: boolean, generator?: boolean, async?: boolean): ClassMethod; +export function objectPattern(properties: Array): ObjectPattern; +export function spreadElement(argument: Expression): SpreadElement; +declare function _super(): Super; +export { _super as super} +export function taggedTemplateExpression(tag: Expression, quasi: TemplateLiteral): TaggedTemplateExpression; +export function templateElement(value: { raw: string, cooked?: string }, tail?: boolean): TemplateElement; +export function templateLiteral(quasis: Array, expressions: Array): TemplateLiteral; +export function yieldExpression(argument?: Expression | null, delegate?: boolean): YieldExpression; +export function awaitExpression(argument: Expression): AwaitExpression; +declare function _import(): Import; +export { _import as import} +export function bigIntLiteral(value: string): BigIntLiteral; +export function exportNamespaceSpecifier(exported: Identifier): ExportNamespaceSpecifier; +export function optionalMemberExpression(object: Expression, property: Expression | Identifier, computed: boolean | undefined, optional: boolean): OptionalMemberExpression; +export function optionalCallExpression(callee: Expression, _arguments: Array, optional: boolean): OptionalCallExpression; +export function classProperty(key: Identifier | StringLiteral | NumericLiteral | Expression, value?: Expression | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null, decorators?: Array | null, computed?: boolean, _static?: boolean): ClassProperty; +export function classAccessorProperty(key: Identifier | StringLiteral | NumericLiteral | Expression | PrivateName, value?: Expression | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null, decorators?: Array | null, computed?: boolean, _static?: boolean): ClassAccessorProperty; +export function classPrivateProperty(key: PrivateName, value: Expression | null | undefined, decorators: Array | null | undefined, _static: any): ClassPrivateProperty; +export function classPrivateMethod(kind: "get" | "set" | "method" | "constructor" | undefined, key: PrivateName, params: Array, body: BlockStatement, _static?: boolean): ClassPrivateMethod; +export function privateName(id: Identifier): PrivateName; +export function staticBlock(body: Array): StaticBlock; +export function anyTypeAnnotation(): AnyTypeAnnotation; +export function arrayTypeAnnotation(elementType: FlowType): ArrayTypeAnnotation; +export function booleanTypeAnnotation(): BooleanTypeAnnotation; +export function booleanLiteralTypeAnnotation(value: boolean): BooleanLiteralTypeAnnotation; +export function nullLiteralTypeAnnotation(): NullLiteralTypeAnnotation; +export function classImplements(id: Identifier, typeParameters?: TypeParameterInstantiation | null): ClassImplements; +export function declareClass(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: Array | null | undefined, body: ObjectTypeAnnotation): DeclareClass; +export function declareFunction(id: Identifier): DeclareFunction; +export function declareInterface(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: Array | null | undefined, body: ObjectTypeAnnotation): DeclareInterface; +export function declareModule(id: Identifier | StringLiteral, body: BlockStatement, kind?: "CommonJS" | "ES" | null): DeclareModule; +export function declareModuleExports(typeAnnotation: TypeAnnotation): DeclareModuleExports; +export function declareTypeAlias(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, right: FlowType): DeclareTypeAlias; +export function declareOpaqueType(id: Identifier, typeParameters?: TypeParameterDeclaration | null, supertype?: FlowType | null): DeclareOpaqueType; +export function declareVariable(id: Identifier): DeclareVariable; +export function declareExportDeclaration(declaration?: Flow | null, specifiers?: Array | null, source?: StringLiteral | null): DeclareExportDeclaration; +export function declareExportAllDeclaration(source: StringLiteral): DeclareExportAllDeclaration; +export function declaredPredicate(value: Flow): DeclaredPredicate; +export function existsTypeAnnotation(): ExistsTypeAnnotation; +export function functionTypeAnnotation(typeParameters: TypeParameterDeclaration | null | undefined, params: Array, rest: FunctionTypeParam | null | undefined, returnType: FlowType): FunctionTypeAnnotation; +export function functionTypeParam(name: Identifier | null | undefined, typeAnnotation: FlowType): FunctionTypeParam; +export function genericTypeAnnotation(id: Identifier | QualifiedTypeIdentifier, typeParameters?: TypeParameterInstantiation | null): GenericTypeAnnotation; +export function inferredPredicate(): InferredPredicate; +export function interfaceExtends(id: Identifier | QualifiedTypeIdentifier, typeParameters?: TypeParameterInstantiation | null): InterfaceExtends; +export function interfaceDeclaration(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: Array | null | undefined, body: ObjectTypeAnnotation): InterfaceDeclaration; +export function interfaceTypeAnnotation(_extends: Array | null | undefined, body: ObjectTypeAnnotation): InterfaceTypeAnnotation; +export function intersectionTypeAnnotation(types: Array): IntersectionTypeAnnotation; +export function mixedTypeAnnotation(): MixedTypeAnnotation; +export function emptyTypeAnnotation(): EmptyTypeAnnotation; +export function nullableTypeAnnotation(typeAnnotation: FlowType): NullableTypeAnnotation; +export function numberLiteralTypeAnnotation(value: number): NumberLiteralTypeAnnotation; +export function numberTypeAnnotation(): NumberTypeAnnotation; +export function objectTypeAnnotation(properties: Array, indexers?: Array | null, callProperties?: Array | null, internalSlots?: Array | null, exact?: boolean): ObjectTypeAnnotation; +export function objectTypeInternalSlot(id: Identifier, value: FlowType, optional: boolean, _static: boolean, method: boolean): ObjectTypeInternalSlot; +export function objectTypeCallProperty(value: FlowType): ObjectTypeCallProperty; +export function objectTypeIndexer(id: Identifier | null | undefined, key: FlowType, value: FlowType, variance?: Variance | null): ObjectTypeIndexer; +export function objectTypeProperty(key: Identifier | StringLiteral, value: FlowType, variance?: Variance | null): ObjectTypeProperty; +export function objectTypeSpreadProperty(argument: FlowType): ObjectTypeSpreadProperty; +export function opaqueType(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, supertype: FlowType | null | undefined, impltype: FlowType): OpaqueType; +export function qualifiedTypeIdentifier(id: Identifier, qualification: Identifier | QualifiedTypeIdentifier): QualifiedTypeIdentifier; +export function stringLiteralTypeAnnotation(value: string): StringLiteralTypeAnnotation; +export function stringTypeAnnotation(): StringTypeAnnotation; +export function symbolTypeAnnotation(): SymbolTypeAnnotation; +export function thisTypeAnnotation(): ThisTypeAnnotation; +export function tupleTypeAnnotation(types: Array): TupleTypeAnnotation; +export function typeofTypeAnnotation(argument: FlowType): TypeofTypeAnnotation; +export function typeAlias(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, right: FlowType): TypeAlias; +export function typeAnnotation(typeAnnotation: FlowType): TypeAnnotation; +export function typeCastExpression(expression: Expression, typeAnnotation: TypeAnnotation): TypeCastExpression; +export function typeParameter(bound?: TypeAnnotation | null, _default?: FlowType | null, variance?: Variance | null): TypeParameter; +export function typeParameterDeclaration(params: Array): TypeParameterDeclaration; +export function typeParameterInstantiation(params: Array): TypeParameterInstantiation; +export function unionTypeAnnotation(types: Array): UnionTypeAnnotation; +export function variance(kind: "minus" | "plus"): Variance; +export function voidTypeAnnotation(): VoidTypeAnnotation; +export function enumDeclaration(id: Identifier, body: EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody): EnumDeclaration; +export function enumBooleanBody(members: Array): EnumBooleanBody; +export function enumNumberBody(members: Array): EnumNumberBody; +export function enumStringBody(members: Array): EnumStringBody; +export function enumSymbolBody(members: Array): EnumSymbolBody; +export function enumBooleanMember(id: Identifier): EnumBooleanMember; +export function enumNumberMember(id: Identifier, init: NumericLiteral): EnumNumberMember; +export function enumStringMember(id: Identifier, init: StringLiteral): EnumStringMember; +export function enumDefaultedMember(id: Identifier): EnumDefaultedMember; +export function indexedAccessType(objectType: FlowType, indexType: FlowType): IndexedAccessType; +export function optionalIndexedAccessType(objectType: FlowType, indexType: FlowType): OptionalIndexedAccessType; +export function jsxAttribute(name: JSXIdentifier | JSXNamespacedName, value?: JSXElement | JSXFragment | StringLiteral | JSXExpressionContainer | null): JSXAttribute; +export function jsxClosingElement(name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName): JSXClosingElement; +export function jsxElement(openingElement: JSXOpeningElement, closingElement: JSXClosingElement | null | undefined, children: Array, selfClosing?: boolean | null): JSXElement; +export function jsxEmptyExpression(): JSXEmptyExpression; +export function jsxExpressionContainer(expression: Expression | JSXEmptyExpression): JSXExpressionContainer; +export function jsxSpreadChild(expression: Expression): JSXSpreadChild; +export function jsxIdentifier(name: string): JSXIdentifier; +export function jsxMemberExpression(object: JSXMemberExpression | JSXIdentifier, property: JSXIdentifier): JSXMemberExpression; +export function jsxNamespacedName(namespace: JSXIdentifier, name: JSXIdentifier): JSXNamespacedName; +export function jsxOpeningElement(name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName, attributes: Array, selfClosing?: boolean): JSXOpeningElement; +export function jsxSpreadAttribute(argument: Expression): JSXSpreadAttribute; +export function jsxText(value: string): JSXText; +export function jsxFragment(openingFragment: JSXOpeningFragment, closingFragment: JSXClosingFragment, children: Array): JSXFragment; +export function jsxOpeningFragment(): JSXOpeningFragment; +export function jsxClosingFragment(): JSXClosingFragment; +export function noop(): Noop; +export function placeholder(expectedNode: "Identifier" | "StringLiteral" | "Expression" | "Statement" | "Declaration" | "BlockStatement" | "ClassBody" | "Pattern", name: Identifier): Placeholder; +export function v8IntrinsicIdentifier(name: string): V8IntrinsicIdentifier; +export function argumentPlaceholder(): ArgumentPlaceholder; +export function bindExpression(object: Expression, callee: Expression): BindExpression; +export function importAttribute(key: Identifier | StringLiteral, value: StringLiteral): ImportAttribute; +export function decorator(expression: Expression): Decorator; +export function doExpression(body: BlockStatement, async?: boolean): DoExpression; +export function exportDefaultSpecifier(exported: Identifier): ExportDefaultSpecifier; +export function recordExpression(properties: Array): RecordExpression; +export function tupleExpression(elements?: Array): TupleExpression; +export function decimalLiteral(value: string): DecimalLiteral; +export function moduleExpression(body: Program): ModuleExpression; +export function topicReference(): TopicReference; +export function pipelineTopicExpression(expression: Expression): PipelineTopicExpression; +export function pipelineBareFunction(callee: Expression): PipelineBareFunction; +export function pipelinePrimaryTopicReference(): PipelinePrimaryTopicReference; +export function tsParameterProperty(parameter: Identifier | AssignmentPattern): TSParameterProperty; +export function tsDeclareFunction(id: Identifier | null | undefined, typeParameters: TSTypeParameterDeclaration | Noop | null | undefined, params: Array, returnType?: TSTypeAnnotation | Noop | null): TSDeclareFunction; +export function tsDeclareMethod(decorators: Array | null | undefined, key: Identifier | StringLiteral | NumericLiteral | Expression, typeParameters: TSTypeParameterDeclaration | Noop | null | undefined, params: Array, returnType?: TSTypeAnnotation | Noop | null): TSDeclareMethod; +export function tsQualifiedName(left: TSEntityName, right: Identifier): TSQualifiedName; +export function tsCallSignatureDeclaration(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array, typeAnnotation?: TSTypeAnnotation | null): TSCallSignatureDeclaration; +export function tsConstructSignatureDeclaration(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array, typeAnnotation?: TSTypeAnnotation | null): TSConstructSignatureDeclaration; +export function tsPropertySignature(key: Expression, typeAnnotation?: TSTypeAnnotation | null, initializer?: Expression | null): TSPropertySignature; +export function tsMethodSignature(key: Expression, typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array, typeAnnotation?: TSTypeAnnotation | null): TSMethodSignature; +export function tsIndexSignature(parameters: Array, typeAnnotation?: TSTypeAnnotation | null): TSIndexSignature; +export function tsAnyKeyword(): TSAnyKeyword; +export function tsBooleanKeyword(): TSBooleanKeyword; +export function tsBigIntKeyword(): TSBigIntKeyword; +export function tsIntrinsicKeyword(): TSIntrinsicKeyword; +export function tsNeverKeyword(): TSNeverKeyword; +export function tsNullKeyword(): TSNullKeyword; +export function tsNumberKeyword(): TSNumberKeyword; +export function tsObjectKeyword(): TSObjectKeyword; +export function tsStringKeyword(): TSStringKeyword; +export function tsSymbolKeyword(): TSSymbolKeyword; +export function tsUndefinedKeyword(): TSUndefinedKeyword; +export function tsUnknownKeyword(): TSUnknownKeyword; +export function tsVoidKeyword(): TSVoidKeyword; +export function tsThisType(): TSThisType; +export function tsFunctionType(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array, typeAnnotation?: TSTypeAnnotation | null): TSFunctionType; +export function tsConstructorType(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array, typeAnnotation?: TSTypeAnnotation | null): TSConstructorType; +export function tsTypeReference(typeName: TSEntityName, typeParameters?: TSTypeParameterInstantiation | null): TSTypeReference; +export function tsTypePredicate(parameterName: Identifier | TSThisType, typeAnnotation?: TSTypeAnnotation | null, asserts?: boolean | null): TSTypePredicate; +export function tsTypeQuery(exprName: TSEntityName | TSImportType): TSTypeQuery; +export function tsTypeLiteral(members: Array): TSTypeLiteral; +export function tsArrayType(elementType: TSType): TSArrayType; +export function tsTupleType(elementTypes: Array): TSTupleType; +export function tsOptionalType(typeAnnotation: TSType): TSOptionalType; +export function tsRestType(typeAnnotation: TSType): TSRestType; +export function tsNamedTupleMember(label: Identifier, elementType: TSType, optional?: boolean): TSNamedTupleMember; +export function tsUnionType(types: Array): TSUnionType; +export function tsIntersectionType(types: Array): TSIntersectionType; +export function tsConditionalType(checkType: TSType, extendsType: TSType, trueType: TSType, falseType: TSType): TSConditionalType; +export function tsInferType(typeParameter: TSTypeParameter): TSInferType; +export function tsParenthesizedType(typeAnnotation: TSType): TSParenthesizedType; +export function tsTypeOperator(typeAnnotation: TSType): TSTypeOperator; +export function tsIndexedAccessType(objectType: TSType, indexType: TSType): TSIndexedAccessType; +export function tsMappedType(typeParameter: TSTypeParameter, typeAnnotation?: TSType | null, nameType?: TSType | null): TSMappedType; +export function tsLiteralType(literal: NumericLiteral | StringLiteral | BooleanLiteral | BigIntLiteral | UnaryExpression): TSLiteralType; +export function tsExpressionWithTypeArguments(expression: TSEntityName, typeParameters?: TSTypeParameterInstantiation | null): TSExpressionWithTypeArguments; +export function tsInterfaceDeclaration(id: Identifier, typeParameters: TSTypeParameterDeclaration | null | undefined, _extends: Array | null | undefined, body: TSInterfaceBody): TSInterfaceDeclaration; +export function tsInterfaceBody(body: Array): TSInterfaceBody; +export function tsTypeAliasDeclaration(id: Identifier, typeParameters: TSTypeParameterDeclaration | null | undefined, typeAnnotation: TSType): TSTypeAliasDeclaration; +export function tsAsExpression(expression: Expression, typeAnnotation: TSType): TSAsExpression; +export function tsTypeAssertion(typeAnnotation: TSType, expression: Expression): TSTypeAssertion; +export function tsEnumDeclaration(id: Identifier, members: Array): TSEnumDeclaration; +export function tsEnumMember(id: Identifier | StringLiteral, initializer?: Expression | null): TSEnumMember; +export function tsModuleDeclaration(id: Identifier | StringLiteral, body: TSModuleBlock | TSModuleDeclaration): TSModuleDeclaration; +export function tsModuleBlock(body: Array): TSModuleBlock; +export function tsImportType(argument: StringLiteral, qualifier?: TSEntityName | null, typeParameters?: TSTypeParameterInstantiation | null): TSImportType; +export function tsImportEqualsDeclaration(id: Identifier, moduleReference: TSEntityName | TSExternalModuleReference): TSImportEqualsDeclaration; +export function tsExternalModuleReference(expression: StringLiteral): TSExternalModuleReference; +export function tsNonNullExpression(expression: Expression): TSNonNullExpression; +export function tsExportAssignment(expression: Expression): TSExportAssignment; +export function tsNamespaceExportDeclaration(id: Identifier): TSNamespaceExportDeclaration; +export function tsTypeAnnotation(typeAnnotation: TSType): TSTypeAnnotation; +export function tsTypeParameterInstantiation(params: Array): TSTypeParameterInstantiation; +export function tsTypeParameterDeclaration(params: Array): TSTypeParameterDeclaration; +export function tsTypeParameter(constraint: TSType | null | undefined, _default: TSType | null | undefined, name: string): TSTypeParameter; +export function isAccessor(node: object | null | undefined, opts?: object | null): node is Accessor; +export function assertAccessor(node: object | null | undefined, opts?: object | null): void; +export function isAnyTypeAnnotation(node: object | null | undefined, opts?: object | null): node is AnyTypeAnnotation; +export function assertAnyTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isArgumentPlaceholder(node: object | null | undefined, opts?: object | null): node is ArgumentPlaceholder; +export function assertArgumentPlaceholder(node: object | null | undefined, opts?: object | null): void; +export function isArrayExpression(node: object | null | undefined, opts?: object | null): node is ArrayExpression; +export function assertArrayExpression(node: object | null | undefined, opts?: object | null): void; +export function isArrayPattern(node: object | null | undefined, opts?: object | null): node is ArrayPattern; +export function assertArrayPattern(node: object | null | undefined, opts?: object | null): void; +export function isArrayTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ArrayTypeAnnotation; +export function assertArrayTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isArrowFunctionExpression(node: object | null | undefined, opts?: object | null): node is ArrowFunctionExpression; +export function assertArrowFunctionExpression(node: object | null | undefined, opts?: object | null): void; +export function isAssignmentExpression(node: object | null | undefined, opts?: object | null): node is AssignmentExpression; +export function assertAssignmentExpression(node: object | null | undefined, opts?: object | null): void; +export function isAssignmentPattern(node: object | null | undefined, opts?: object | null): node is AssignmentPattern; +export function assertAssignmentPattern(node: object | null | undefined, opts?: object | null): void; +export function isAwaitExpression(node: object | null | undefined, opts?: object | null): node is AwaitExpression; +export function assertAwaitExpression(node: object | null | undefined, opts?: object | null): void; +export function isBigIntLiteral(node: object | null | undefined, opts?: object | null): node is BigIntLiteral; +export function assertBigIntLiteral(node: object | null | undefined, opts?: object | null): void; +export function isBinary(node: object | null | undefined, opts?: object | null): node is Binary; +export function assertBinary(node: object | null | undefined, opts?: object | null): void; +export function isBinaryExpression(node: object | null | undefined, opts?: object | null): node is BinaryExpression; +export function assertBinaryExpression(node: object | null | undefined, opts?: object | null): void; +export function isBindExpression(node: object | null | undefined, opts?: object | null): node is BindExpression; +export function assertBindExpression(node: object | null | undefined, opts?: object | null): void; +export function isBlock(node: object | null | undefined, opts?: object | null): node is Block; +export function assertBlock(node: object | null | undefined, opts?: object | null): void; +export function isBlockParent(node: object | null | undefined, opts?: object | null): node is BlockParent; +export function assertBlockParent(node: object | null | undefined, opts?: object | null): void; +export function isBlockStatement(node: object | null | undefined, opts?: object | null): node is BlockStatement; +export function assertBlockStatement(node: object | null | undefined, opts?: object | null): void; +export function isBooleanLiteral(node: object | null | undefined, opts?: object | null): node is BooleanLiteral; +export function assertBooleanLiteral(node: object | null | undefined, opts?: object | null): void; +export function isBooleanLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is BooleanLiteralTypeAnnotation; +export function assertBooleanLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isBooleanTypeAnnotation(node: object | null | undefined, opts?: object | null): node is BooleanTypeAnnotation; +export function assertBooleanTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isBreakStatement(node: object | null | undefined, opts?: object | null): node is BreakStatement; +export function assertBreakStatement(node: object | null | undefined, opts?: object | null): void; +export function isCallExpression(node: object | null | undefined, opts?: object | null): node is CallExpression; +export function assertCallExpression(node: object | null | undefined, opts?: object | null): void; +export function isCatchClause(node: object | null | undefined, opts?: object | null): node is CatchClause; +export function assertCatchClause(node: object | null | undefined, opts?: object | null): void; +export function isClass(node: object | null | undefined, opts?: object | null): node is Class; +export function assertClass(node: object | null | undefined, opts?: object | null): void; +export function isClassAccessorProperty(node: object | null | undefined, opts?: object | null): node is ClassAccessorProperty; +export function assertClassAccessorProperty(node: object | null | undefined, opts?: object | null): void; +export function isClassBody(node: object | null | undefined, opts?: object | null): node is ClassBody; +export function assertClassBody(node: object | null | undefined, opts?: object | null): void; +export function isClassDeclaration(node: object | null | undefined, opts?: object | null): node is ClassDeclaration; +export function assertClassDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isClassExpression(node: object | null | undefined, opts?: object | null): node is ClassExpression; +export function assertClassExpression(node: object | null | undefined, opts?: object | null): void; +export function isClassImplements(node: object | null | undefined, opts?: object | null): node is ClassImplements; +export function assertClassImplements(node: object | null | undefined, opts?: object | null): void; +export function isClassMethod(node: object | null | undefined, opts?: object | null): node is ClassMethod; +export function assertClassMethod(node: object | null | undefined, opts?: object | null): void; +export function isClassPrivateMethod(node: object | null | undefined, opts?: object | null): node is ClassPrivateMethod; +export function assertClassPrivateMethod(node: object | null | undefined, opts?: object | null): void; +export function isClassPrivateProperty(node: object | null | undefined, opts?: object | null): node is ClassPrivateProperty; +export function assertClassPrivateProperty(node: object | null | undefined, opts?: object | null): void; +export function isClassProperty(node: object | null | undefined, opts?: object | null): node is ClassProperty; +export function assertClassProperty(node: object | null | undefined, opts?: object | null): void; +export function isCompletionStatement(node: object | null | undefined, opts?: object | null): node is CompletionStatement; +export function assertCompletionStatement(node: object | null | undefined, opts?: object | null): void; +export function isConditional(node: object | null | undefined, opts?: object | null): node is Conditional; +export function assertConditional(node: object | null | undefined, opts?: object | null): void; +export function isConditionalExpression(node: object | null | undefined, opts?: object | null): node is ConditionalExpression; +export function assertConditionalExpression(node: object | null | undefined, opts?: object | null): void; +export function isContinueStatement(node: object | null | undefined, opts?: object | null): node is ContinueStatement; +export function assertContinueStatement(node: object | null | undefined, opts?: object | null): void; +export function isDebuggerStatement(node: object | null | undefined, opts?: object | null): node is DebuggerStatement; +export function assertDebuggerStatement(node: object | null | undefined, opts?: object | null): void; +export function isDecimalLiteral(node: object | null | undefined, opts?: object | null): node is DecimalLiteral; +export function assertDecimalLiteral(node: object | null | undefined, opts?: object | null): void; +export function isDeclaration(node: object | null | undefined, opts?: object | null): node is Declaration; +export function assertDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isDeclareClass(node: object | null | undefined, opts?: object | null): node is DeclareClass; +export function assertDeclareClass(node: object | null | undefined, opts?: object | null): void; +export function isDeclareExportAllDeclaration(node: object | null | undefined, opts?: object | null): node is DeclareExportAllDeclaration; +export function assertDeclareExportAllDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isDeclareExportDeclaration(node: object | null | undefined, opts?: object | null): node is DeclareExportDeclaration; +export function assertDeclareExportDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isDeclareFunction(node: object | null | undefined, opts?: object | null): node is DeclareFunction; +export function assertDeclareFunction(node: object | null | undefined, opts?: object | null): void; +export function isDeclareInterface(node: object | null | undefined, opts?: object | null): node is DeclareInterface; +export function assertDeclareInterface(node: object | null | undefined, opts?: object | null): void; +export function isDeclareModule(node: object | null | undefined, opts?: object | null): node is DeclareModule; +export function assertDeclareModule(node: object | null | undefined, opts?: object | null): void; +export function isDeclareModuleExports(node: object | null | undefined, opts?: object | null): node is DeclareModuleExports; +export function assertDeclareModuleExports(node: object | null | undefined, opts?: object | null): void; +export function isDeclareOpaqueType(node: object | null | undefined, opts?: object | null): node is DeclareOpaqueType; +export function assertDeclareOpaqueType(node: object | null | undefined, opts?: object | null): void; +export function isDeclareTypeAlias(node: object | null | undefined, opts?: object | null): node is DeclareTypeAlias; +export function assertDeclareTypeAlias(node: object | null | undefined, opts?: object | null): void; +export function isDeclareVariable(node: object | null | undefined, opts?: object | null): node is DeclareVariable; +export function assertDeclareVariable(node: object | null | undefined, opts?: object | null): void; +export function isDeclaredPredicate(node: object | null | undefined, opts?: object | null): node is DeclaredPredicate; +export function assertDeclaredPredicate(node: object | null | undefined, opts?: object | null): void; +export function isDecorator(node: object | null | undefined, opts?: object | null): node is Decorator; +export function assertDecorator(node: object | null | undefined, opts?: object | null): void; +export function isDirective(node: object | null | undefined, opts?: object | null): node is Directive; +export function assertDirective(node: object | null | undefined, opts?: object | null): void; +export function isDirectiveLiteral(node: object | null | undefined, opts?: object | null): node is DirectiveLiteral; +export function assertDirectiveLiteral(node: object | null | undefined, opts?: object | null): void; +export function isDoExpression(node: object | null | undefined, opts?: object | null): node is DoExpression; +export function assertDoExpression(node: object | null | undefined, opts?: object | null): void; +export function isDoWhileStatement(node: object | null | undefined, opts?: object | null): node is DoWhileStatement; +export function assertDoWhileStatement(node: object | null | undefined, opts?: object | null): void; +export function isEmptyStatement(node: object | null | undefined, opts?: object | null): node is EmptyStatement; +export function assertEmptyStatement(node: object | null | undefined, opts?: object | null): void; +export function isEmptyTypeAnnotation(node: object | null | undefined, opts?: object | null): node is EmptyTypeAnnotation; +export function assertEmptyTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isEnumBody(node: object | null | undefined, opts?: object | null): node is EnumBody; +export function assertEnumBody(node: object | null | undefined, opts?: object | null): void; +export function isEnumBooleanBody(node: object | null | undefined, opts?: object | null): node is EnumBooleanBody; +export function assertEnumBooleanBody(node: object | null | undefined, opts?: object | null): void; +export function isEnumBooleanMember(node: object | null | undefined, opts?: object | null): node is EnumBooleanMember; +export function assertEnumBooleanMember(node: object | null | undefined, opts?: object | null): void; +export function isEnumDeclaration(node: object | null | undefined, opts?: object | null): node is EnumDeclaration; +export function assertEnumDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isEnumDefaultedMember(node: object | null | undefined, opts?: object | null): node is EnumDefaultedMember; +export function assertEnumDefaultedMember(node: object | null | undefined, opts?: object | null): void; +export function isEnumMember(node: object | null | undefined, opts?: object | null): node is EnumMember; +export function assertEnumMember(node: object | null | undefined, opts?: object | null): void; +export function isEnumNumberBody(node: object | null | undefined, opts?: object | null): node is EnumNumberBody; +export function assertEnumNumberBody(node: object | null | undefined, opts?: object | null): void; +export function isEnumNumberMember(node: object | null | undefined, opts?: object | null): node is EnumNumberMember; +export function assertEnumNumberMember(node: object | null | undefined, opts?: object | null): void; +export function isEnumStringBody(node: object | null | undefined, opts?: object | null): node is EnumStringBody; +export function assertEnumStringBody(node: object | null | undefined, opts?: object | null): void; +export function isEnumStringMember(node: object | null | undefined, opts?: object | null): node is EnumStringMember; +export function assertEnumStringMember(node: object | null | undefined, opts?: object | null): void; +export function isEnumSymbolBody(node: object | null | undefined, opts?: object | null): node is EnumSymbolBody; +export function assertEnumSymbolBody(node: object | null | undefined, opts?: object | null): void; +export function isExistsTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ExistsTypeAnnotation; +export function assertExistsTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isExportAllDeclaration(node: object | null | undefined, opts?: object | null): node is ExportAllDeclaration; +export function assertExportAllDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isExportDeclaration(node: object | null | undefined, opts?: object | null): node is ExportDeclaration; +export function assertExportDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isExportDefaultDeclaration(node: object | null | undefined, opts?: object | null): node is ExportDefaultDeclaration; +export function assertExportDefaultDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isExportDefaultSpecifier(node: object | null | undefined, opts?: object | null): node is ExportDefaultSpecifier; +export function assertExportDefaultSpecifier(node: object | null | undefined, opts?: object | null): void; +export function isExportNamedDeclaration(node: object | null | undefined, opts?: object | null): node is ExportNamedDeclaration; +export function assertExportNamedDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isExportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): node is ExportNamespaceSpecifier; +export function assertExportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): void; +export function isExportSpecifier(node: object | null | undefined, opts?: object | null): node is ExportSpecifier; +export function assertExportSpecifier(node: object | null | undefined, opts?: object | null): void; +export function isExpression(node: object | null | undefined, opts?: object | null): node is Expression; +export function assertExpression(node: object | null | undefined, opts?: object | null): void; +export function isExpressionStatement(node: object | null | undefined, opts?: object | null): node is ExpressionStatement; +export function assertExpressionStatement(node: object | null | undefined, opts?: object | null): void; +export function isExpressionWrapper(node: object | null | undefined, opts?: object | null): node is ExpressionWrapper; +export function assertExpressionWrapper(node: object | null | undefined, opts?: object | null): void; +export function isFile(node: object | null | undefined, opts?: object | null): node is File; +export function assertFile(node: object | null | undefined, opts?: object | null): void; +export function isFlow(node: object | null | undefined, opts?: object | null): node is Flow; +export function assertFlow(node: object | null | undefined, opts?: object | null): void; +export function isFlowBaseAnnotation(node: object | null | undefined, opts?: object | null): node is FlowBaseAnnotation; +export function assertFlowBaseAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isFlowDeclaration(node: object | null | undefined, opts?: object | null): node is FlowDeclaration; +export function assertFlowDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isFlowPredicate(node: object | null | undefined, opts?: object | null): node is FlowPredicate; +export function assertFlowPredicate(node: object | null | undefined, opts?: object | null): void; +export function isFlowType(node: object | null | undefined, opts?: object | null): node is FlowType; +export function assertFlowType(node: object | null | undefined, opts?: object | null): void; +export function isFor(node: object | null | undefined, opts?: object | null): node is For; +export function assertFor(node: object | null | undefined, opts?: object | null): void; +export function isForInStatement(node: object | null | undefined, opts?: object | null): node is ForInStatement; +export function assertForInStatement(node: object | null | undefined, opts?: object | null): void; +export function isForOfStatement(node: object | null | undefined, opts?: object | null): node is ForOfStatement; +export function assertForOfStatement(node: object | null | undefined, opts?: object | null): void; +export function isForStatement(node: object | null | undefined, opts?: object | null): node is ForStatement; +export function assertForStatement(node: object | null | undefined, opts?: object | null): void; +export function isForXStatement(node: object | null | undefined, opts?: object | null): node is ForXStatement; +export function assertForXStatement(node: object | null | undefined, opts?: object | null): void; +export function isFunction(node: object | null | undefined, opts?: object | null): node is Function; +export function assertFunction(node: object | null | undefined, opts?: object | null): void; +export function isFunctionDeclaration(node: object | null | undefined, opts?: object | null): node is FunctionDeclaration; +export function assertFunctionDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isFunctionExpression(node: object | null | undefined, opts?: object | null): node is FunctionExpression; +export function assertFunctionExpression(node: object | null | undefined, opts?: object | null): void; +export function isFunctionParent(node: object | null | undefined, opts?: object | null): node is FunctionParent; +export function assertFunctionParent(node: object | null | undefined, opts?: object | null): void; +export function isFunctionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is FunctionTypeAnnotation; +export function assertFunctionTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isFunctionTypeParam(node: object | null | undefined, opts?: object | null): node is FunctionTypeParam; +export function assertFunctionTypeParam(node: object | null | undefined, opts?: object | null): void; +export function isGenericTypeAnnotation(node: object | null | undefined, opts?: object | null): node is GenericTypeAnnotation; +export function assertGenericTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isIdentifier(node: object | null | undefined, opts?: object | null): node is Identifier; +export function assertIdentifier(node: object | null | undefined, opts?: object | null): void; +export function isIfStatement(node: object | null | undefined, opts?: object | null): node is IfStatement; +export function assertIfStatement(node: object | null | undefined, opts?: object | null): void; +export function isImmutable(node: object | null | undefined, opts?: object | null): node is Immutable; +export function assertImmutable(node: object | null | undefined, opts?: object | null): void; +export function isImport(node: object | null | undefined, opts?: object | null): node is Import; +export function assertImport(node: object | null | undefined, opts?: object | null): void; +export function isImportAttribute(node: object | null | undefined, opts?: object | null): node is ImportAttribute; +export function assertImportAttribute(node: object | null | undefined, opts?: object | null): void; +export function isImportDeclaration(node: object | null | undefined, opts?: object | null): node is ImportDeclaration; +export function assertImportDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isImportDefaultSpecifier(node: object | null | undefined, opts?: object | null): node is ImportDefaultSpecifier; +export function assertImportDefaultSpecifier(node: object | null | undefined, opts?: object | null): void; +export function isImportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): node is ImportNamespaceSpecifier; +export function assertImportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): void; +export function isImportSpecifier(node: object | null | undefined, opts?: object | null): node is ImportSpecifier; +export function assertImportSpecifier(node: object | null | undefined, opts?: object | null): void; +export function isIndexedAccessType(node: object | null | undefined, opts?: object | null): node is IndexedAccessType; +export function assertIndexedAccessType(node: object | null | undefined, opts?: object | null): void; +export function isInferredPredicate(node: object | null | undefined, opts?: object | null): node is InferredPredicate; +export function assertInferredPredicate(node: object | null | undefined, opts?: object | null): void; +export function isInterfaceDeclaration(node: object | null | undefined, opts?: object | null): node is InterfaceDeclaration; +export function assertInterfaceDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isInterfaceExtends(node: object | null | undefined, opts?: object | null): node is InterfaceExtends; +export function assertInterfaceExtends(node: object | null | undefined, opts?: object | null): void; +export function isInterfaceTypeAnnotation(node: object | null | undefined, opts?: object | null): node is InterfaceTypeAnnotation; +export function assertInterfaceTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isInterpreterDirective(node: object | null | undefined, opts?: object | null): node is InterpreterDirective; +export function assertInterpreterDirective(node: object | null | undefined, opts?: object | null): void; +export function isIntersectionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is IntersectionTypeAnnotation; +export function assertIntersectionTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isJSX(node: object | null | undefined, opts?: object | null): node is JSX; +export function assertJSX(node: object | null | undefined, opts?: object | null): void; +export function isJSXAttribute(node: object | null | undefined, opts?: object | null): node is JSXAttribute; +export function assertJSXAttribute(node: object | null | undefined, opts?: object | null): void; +export function isJSXClosingElement(node: object | null | undefined, opts?: object | null): node is JSXClosingElement; +export function assertJSXClosingElement(node: object | null | undefined, opts?: object | null): void; +export function isJSXClosingFragment(node: object | null | undefined, opts?: object | null): node is JSXClosingFragment; +export function assertJSXClosingFragment(node: object | null | undefined, opts?: object | null): void; +export function isJSXElement(node: object | null | undefined, opts?: object | null): node is JSXElement; +export function assertJSXElement(node: object | null | undefined, opts?: object | null): void; +export function isJSXEmptyExpression(node: object | null | undefined, opts?: object | null): node is JSXEmptyExpression; +export function assertJSXEmptyExpression(node: object | null | undefined, opts?: object | null): void; +export function isJSXExpressionContainer(node: object | null | undefined, opts?: object | null): node is JSXExpressionContainer; +export function assertJSXExpressionContainer(node: object | null | undefined, opts?: object | null): void; +export function isJSXFragment(node: object | null | undefined, opts?: object | null): node is JSXFragment; +export function assertJSXFragment(node: object | null | undefined, opts?: object | null): void; +export function isJSXIdentifier(node: object | null | undefined, opts?: object | null): node is JSXIdentifier; +export function assertJSXIdentifier(node: object | null | undefined, opts?: object | null): void; +export function isJSXMemberExpression(node: object | null | undefined, opts?: object | null): node is JSXMemberExpression; +export function assertJSXMemberExpression(node: object | null | undefined, opts?: object | null): void; +export function isJSXNamespacedName(node: object | null | undefined, opts?: object | null): node is JSXNamespacedName; +export function assertJSXNamespacedName(node: object | null | undefined, opts?: object | null): void; +export function isJSXOpeningElement(node: object | null | undefined, opts?: object | null): node is JSXOpeningElement; +export function assertJSXOpeningElement(node: object | null | undefined, opts?: object | null): void; +export function isJSXOpeningFragment(node: object | null | undefined, opts?: object | null): node is JSXOpeningFragment; +export function assertJSXOpeningFragment(node: object | null | undefined, opts?: object | null): void; +export function isJSXSpreadAttribute(node: object | null | undefined, opts?: object | null): node is JSXSpreadAttribute; +export function assertJSXSpreadAttribute(node: object | null | undefined, opts?: object | null): void; +export function isJSXSpreadChild(node: object | null | undefined, opts?: object | null): node is JSXSpreadChild; +export function assertJSXSpreadChild(node: object | null | undefined, opts?: object | null): void; +export function isJSXText(node: object | null | undefined, opts?: object | null): node is JSXText; +export function assertJSXText(node: object | null | undefined, opts?: object | null): void; +export function isLVal(node: object | null | undefined, opts?: object | null): node is LVal; +export function assertLVal(node: object | null | undefined, opts?: object | null): void; +export function isLabeledStatement(node: object | null | undefined, opts?: object | null): node is LabeledStatement; +export function assertLabeledStatement(node: object | null | undefined, opts?: object | null): void; +export function isLiteral(node: object | null | undefined, opts?: object | null): node is Literal; +export function assertLiteral(node: object | null | undefined, opts?: object | null): void; +export function isLogicalExpression(node: object | null | undefined, opts?: object | null): node is LogicalExpression; +export function assertLogicalExpression(node: object | null | undefined, opts?: object | null): void; +export function isLoop(node: object | null | undefined, opts?: object | null): node is Loop; +export function assertLoop(node: object | null | undefined, opts?: object | null): void; +export function isMemberExpression(node: object | null | undefined, opts?: object | null): node is MemberExpression; +export function assertMemberExpression(node: object | null | undefined, opts?: object | null): void; +export function isMetaProperty(node: object | null | undefined, opts?: object | null): node is MetaProperty; +export function assertMetaProperty(node: object | null | undefined, opts?: object | null): void; +export function isMethod(node: object | null | undefined, opts?: object | null): node is Method; +export function assertMethod(node: object | null | undefined, opts?: object | null): void; +export function isMiscellaneous(node: object | null | undefined, opts?: object | null): node is Miscellaneous; +export function assertMiscellaneous(node: object | null | undefined, opts?: object | null): void; +export function isMixedTypeAnnotation(node: object | null | undefined, opts?: object | null): node is MixedTypeAnnotation; +export function assertMixedTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isModuleDeclaration(node: object | null | undefined, opts?: object | null): node is ModuleDeclaration; +export function assertModuleDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isModuleExpression(node: object | null | undefined, opts?: object | null): node is ModuleExpression; +export function assertModuleExpression(node: object | null | undefined, opts?: object | null): void; +export function isModuleSpecifier(node: object | null | undefined, opts?: object | null): node is ModuleSpecifier; +export function assertModuleSpecifier(node: object | null | undefined, opts?: object | null): void; +export function isNewExpression(node: object | null | undefined, opts?: object | null): node is NewExpression; +export function assertNewExpression(node: object | null | undefined, opts?: object | null): void; +export function isNoop(node: object | null | undefined, opts?: object | null): node is Noop; +export function assertNoop(node: object | null | undefined, opts?: object | null): void; +export function isNullLiteral(node: object | null | undefined, opts?: object | null): node is NullLiteral; +export function assertNullLiteral(node: object | null | undefined, opts?: object | null): void; +export function isNullLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NullLiteralTypeAnnotation; +export function assertNullLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isNullableTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NullableTypeAnnotation; +export function assertNullableTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +/** @deprecated Use `isNumericLiteral` */ +export function isNumberLiteral(node: object | null | undefined, opts?: object | null): node is NumericLiteral; +/** @deprecated Use `assertNumericLiteral` */ +export function assertNumberLiteral(node: object | null | undefined, opts?: object | null): void; +export function isNumberLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NumberLiteralTypeAnnotation; +export function assertNumberLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isNumberTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NumberTypeAnnotation; +export function assertNumberTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isNumericLiteral(node: object | null | undefined, opts?: object | null): node is NumericLiteral; +export function assertNumericLiteral(node: object | null | undefined, opts?: object | null): void; +export function isObjectExpression(node: object | null | undefined, opts?: object | null): node is ObjectExpression; +export function assertObjectExpression(node: object | null | undefined, opts?: object | null): void; +export function isObjectMember(node: object | null | undefined, opts?: object | null): node is ObjectMember; +export function assertObjectMember(node: object | null | undefined, opts?: object | null): void; +export function isObjectMethod(node: object | null | undefined, opts?: object | null): node is ObjectMethod; +export function assertObjectMethod(node: object | null | undefined, opts?: object | null): void; +export function isObjectPattern(node: object | null | undefined, opts?: object | null): node is ObjectPattern; +export function assertObjectPattern(node: object | null | undefined, opts?: object | null): void; +export function isObjectProperty(node: object | null | undefined, opts?: object | null): node is ObjectProperty; +export function assertObjectProperty(node: object | null | undefined, opts?: object | null): void; +export function isObjectTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ObjectTypeAnnotation; +export function assertObjectTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isObjectTypeCallProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeCallProperty; +export function assertObjectTypeCallProperty(node: object | null | undefined, opts?: object | null): void; +export function isObjectTypeIndexer(node: object | null | undefined, opts?: object | null): node is ObjectTypeIndexer; +export function assertObjectTypeIndexer(node: object | null | undefined, opts?: object | null): void; +export function isObjectTypeInternalSlot(node: object | null | undefined, opts?: object | null): node is ObjectTypeInternalSlot; +export function assertObjectTypeInternalSlot(node: object | null | undefined, opts?: object | null): void; +export function isObjectTypeProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeProperty; +export function assertObjectTypeProperty(node: object | null | undefined, opts?: object | null): void; +export function isObjectTypeSpreadProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeSpreadProperty; +export function assertObjectTypeSpreadProperty(node: object | null | undefined, opts?: object | null): void; +export function isOpaqueType(node: object | null | undefined, opts?: object | null): node is OpaqueType; +export function assertOpaqueType(node: object | null | undefined, opts?: object | null): void; +export function isOptionalCallExpression(node: object | null | undefined, opts?: object | null): node is OptionalCallExpression; +export function assertOptionalCallExpression(node: object | null | undefined, opts?: object | null): void; +export function isOptionalIndexedAccessType(node: object | null | undefined, opts?: object | null): node is OptionalIndexedAccessType; +export function assertOptionalIndexedAccessType(node: object | null | undefined, opts?: object | null): void; +export function isOptionalMemberExpression(node: object | null | undefined, opts?: object | null): node is OptionalMemberExpression; +export function assertOptionalMemberExpression(node: object | null | undefined, opts?: object | null): void; +export function isParenthesizedExpression(node: object | null | undefined, opts?: object | null): node is ParenthesizedExpression; +export function assertParenthesizedExpression(node: object | null | undefined, opts?: object | null): void; +export function isPattern(node: object | null | undefined, opts?: object | null): node is Pattern; +export function assertPattern(node: object | null | undefined, opts?: object | null): void; +export function isPatternLike(node: object | null | undefined, opts?: object | null): node is PatternLike; +export function assertPatternLike(node: object | null | undefined, opts?: object | null): void; +export function isPipelineBareFunction(node: object | null | undefined, opts?: object | null): node is PipelineBareFunction; +export function assertPipelineBareFunction(node: object | null | undefined, opts?: object | null): void; +export function isPipelinePrimaryTopicReference(node: object | null | undefined, opts?: object | null): node is PipelinePrimaryTopicReference; +export function assertPipelinePrimaryTopicReference(node: object | null | undefined, opts?: object | null): void; +export function isPipelineTopicExpression(node: object | null | undefined, opts?: object | null): node is PipelineTopicExpression; +export function assertPipelineTopicExpression(node: object | null | undefined, opts?: object | null): void; +export function isPlaceholder(node: object | null | undefined, opts?: object | null): node is Placeholder; +export function assertPlaceholder(node: object | null | undefined, opts?: object | null): void; +export function isPrivate(node: object | null | undefined, opts?: object | null): node is Private; +export function assertPrivate(node: object | null | undefined, opts?: object | null): void; +export function isPrivateName(node: object | null | undefined, opts?: object | null): node is PrivateName; +export function assertPrivateName(node: object | null | undefined, opts?: object | null): void; +export function isProgram(node: object | null | undefined, opts?: object | null): node is Program; +export function assertProgram(node: object | null | undefined, opts?: object | null): void; +export function isProperty(node: object | null | undefined, opts?: object | null): node is Property; +export function assertProperty(node: object | null | undefined, opts?: object | null): void; +export function isPureish(node: object | null | undefined, opts?: object | null): node is Pureish; +export function assertPureish(node: object | null | undefined, opts?: object | null): void; +export function isQualifiedTypeIdentifier(node: object | null | undefined, opts?: object | null): node is QualifiedTypeIdentifier; +export function assertQualifiedTypeIdentifier(node: object | null | undefined, opts?: object | null): void; +export function isRecordExpression(node: object | null | undefined, opts?: object | null): node is RecordExpression; +export function assertRecordExpression(node: object | null | undefined, opts?: object | null): void; +export function isRegExpLiteral(node: object | null | undefined, opts?: object | null): node is RegExpLiteral; +export function assertRegExpLiteral(node: object | null | undefined, opts?: object | null): void; +/** @deprecated Use `isRegExpLiteral` */ +export function isRegexLiteral(node: object | null | undefined, opts?: object | null): node is RegExpLiteral; +/** @deprecated Use `assertRegExpLiteral` */ +export function assertRegexLiteral(node: object | null | undefined, opts?: object | null): void; +export function isRestElement(node: object | null | undefined, opts?: object | null): node is RestElement; +export function assertRestElement(node: object | null | undefined, opts?: object | null): void; +/** @deprecated Use `isRestElement` */ +export function isRestProperty(node: object | null | undefined, opts?: object | null): node is RestElement; +/** @deprecated Use `assertRestElement` */ +export function assertRestProperty(node: object | null | undefined, opts?: object | null): void; +export function isReturnStatement(node: object | null | undefined, opts?: object | null): node is ReturnStatement; +export function assertReturnStatement(node: object | null | undefined, opts?: object | null): void; +export function isScopable(node: object | null | undefined, opts?: object | null): node is Scopable; +export function assertScopable(node: object | null | undefined, opts?: object | null): void; +export function isSequenceExpression(node: object | null | undefined, opts?: object | null): node is SequenceExpression; +export function assertSequenceExpression(node: object | null | undefined, opts?: object | null): void; +export function isSpreadElement(node: object | null | undefined, opts?: object | null): node is SpreadElement; +export function assertSpreadElement(node: object | null | undefined, opts?: object | null): void; +/** @deprecated Use `isSpreadElement` */ +export function isSpreadProperty(node: object | null | undefined, opts?: object | null): node is SpreadElement; +/** @deprecated Use `assertSpreadElement` */ +export function assertSpreadProperty(node: object | null | undefined, opts?: object | null): void; +export function isStandardized(node: object | null | undefined, opts?: object | null): node is Standardized; +export function assertStandardized(node: object | null | undefined, opts?: object | null): void; +export function isStatement(node: object | null | undefined, opts?: object | null): node is Statement; +export function assertStatement(node: object | null | undefined, opts?: object | null): void; +export function isStaticBlock(node: object | null | undefined, opts?: object | null): node is StaticBlock; +export function assertStaticBlock(node: object | null | undefined, opts?: object | null): void; +export function isStringLiteral(node: object | null | undefined, opts?: object | null): node is StringLiteral; +export function assertStringLiteral(node: object | null | undefined, opts?: object | null): void; +export function isStringLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is StringLiteralTypeAnnotation; +export function assertStringLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isStringTypeAnnotation(node: object | null | undefined, opts?: object | null): node is StringTypeAnnotation; +export function assertStringTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isSuper(node: object | null | undefined, opts?: object | null): node is Super; +export function assertSuper(node: object | null | undefined, opts?: object | null): void; +export function isSwitchCase(node: object | null | undefined, opts?: object | null): node is SwitchCase; +export function assertSwitchCase(node: object | null | undefined, opts?: object | null): void; +export function isSwitchStatement(node: object | null | undefined, opts?: object | null): node is SwitchStatement; +export function assertSwitchStatement(node: object | null | undefined, opts?: object | null): void; +export function isSymbolTypeAnnotation(node: object | null | undefined, opts?: object | null): node is SymbolTypeAnnotation; +export function assertSymbolTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isTSAnyKeyword(node: object | null | undefined, opts?: object | null): node is TSAnyKeyword; +export function assertTSAnyKeyword(node: object | null | undefined, opts?: object | null): void; +export function isTSArrayType(node: object | null | undefined, opts?: object | null): node is TSArrayType; +export function assertTSArrayType(node: object | null | undefined, opts?: object | null): void; +export function isTSAsExpression(node: object | null | undefined, opts?: object | null): node is TSAsExpression; +export function assertTSAsExpression(node: object | null | undefined, opts?: object | null): void; +export function isTSBaseType(node: object | null | undefined, opts?: object | null): node is TSBaseType; +export function assertTSBaseType(node: object | null | undefined, opts?: object | null): void; +export function isTSBigIntKeyword(node: object | null | undefined, opts?: object | null): node is TSBigIntKeyword; +export function assertTSBigIntKeyword(node: object | null | undefined, opts?: object | null): void; +export function isTSBooleanKeyword(node: object | null | undefined, opts?: object | null): node is TSBooleanKeyword; +export function assertTSBooleanKeyword(node: object | null | undefined, opts?: object | null): void; +export function isTSCallSignatureDeclaration(node: object | null | undefined, opts?: object | null): node is TSCallSignatureDeclaration; +export function assertTSCallSignatureDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isTSConditionalType(node: object | null | undefined, opts?: object | null): node is TSConditionalType; +export function assertTSConditionalType(node: object | null | undefined, opts?: object | null): void; +export function isTSConstructSignatureDeclaration(node: object | null | undefined, opts?: object | null): node is TSConstructSignatureDeclaration; +export function assertTSConstructSignatureDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isTSConstructorType(node: object | null | undefined, opts?: object | null): node is TSConstructorType; +export function assertTSConstructorType(node: object | null | undefined, opts?: object | null): void; +export function isTSDeclareFunction(node: object | null | undefined, opts?: object | null): node is TSDeclareFunction; +export function assertTSDeclareFunction(node: object | null | undefined, opts?: object | null): void; +export function isTSDeclareMethod(node: object | null | undefined, opts?: object | null): node is TSDeclareMethod; +export function assertTSDeclareMethod(node: object | null | undefined, opts?: object | null): void; +export function isTSEntityName(node: object | null | undefined, opts?: object | null): node is TSEntityName; +export function assertTSEntityName(node: object | null | undefined, opts?: object | null): void; +export function isTSEnumDeclaration(node: object | null | undefined, opts?: object | null): node is TSEnumDeclaration; +export function assertTSEnumDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isTSEnumMember(node: object | null | undefined, opts?: object | null): node is TSEnumMember; +export function assertTSEnumMember(node: object | null | undefined, opts?: object | null): void; +export function isTSExportAssignment(node: object | null | undefined, opts?: object | null): node is TSExportAssignment; +export function assertTSExportAssignment(node: object | null | undefined, opts?: object | null): void; +export function isTSExpressionWithTypeArguments(node: object | null | undefined, opts?: object | null): node is TSExpressionWithTypeArguments; +export function assertTSExpressionWithTypeArguments(node: object | null | undefined, opts?: object | null): void; +export function isTSExternalModuleReference(node: object | null | undefined, opts?: object | null): node is TSExternalModuleReference; +export function assertTSExternalModuleReference(node: object | null | undefined, opts?: object | null): void; +export function isTSFunctionType(node: object | null | undefined, opts?: object | null): node is TSFunctionType; +export function assertTSFunctionType(node: object | null | undefined, opts?: object | null): void; +export function isTSImportEqualsDeclaration(node: object | null | undefined, opts?: object | null): node is TSImportEqualsDeclaration; +export function assertTSImportEqualsDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isTSImportType(node: object | null | undefined, opts?: object | null): node is TSImportType; +export function assertTSImportType(node: object | null | undefined, opts?: object | null): void; +export function isTSIndexSignature(node: object | null | undefined, opts?: object | null): node is TSIndexSignature; +export function assertTSIndexSignature(node: object | null | undefined, opts?: object | null): void; +export function isTSIndexedAccessType(node: object | null | undefined, opts?: object | null): node is TSIndexedAccessType; +export function assertTSIndexedAccessType(node: object | null | undefined, opts?: object | null): void; +export function isTSInferType(node: object | null | undefined, opts?: object | null): node is TSInferType; +export function assertTSInferType(node: object | null | undefined, opts?: object | null): void; +export function isTSInterfaceBody(node: object | null | undefined, opts?: object | null): node is TSInterfaceBody; +export function assertTSInterfaceBody(node: object | null | undefined, opts?: object | null): void; +export function isTSInterfaceDeclaration(node: object | null | undefined, opts?: object | null): node is TSInterfaceDeclaration; +export function assertTSInterfaceDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isTSIntersectionType(node: object | null | undefined, opts?: object | null): node is TSIntersectionType; +export function assertTSIntersectionType(node: object | null | undefined, opts?: object | null): void; +export function isTSIntrinsicKeyword(node: object | null | undefined, opts?: object | null): node is TSIntrinsicKeyword; +export function assertTSIntrinsicKeyword(node: object | null | undefined, opts?: object | null): void; +export function isTSLiteralType(node: object | null | undefined, opts?: object | null): node is TSLiteralType; +export function assertTSLiteralType(node: object | null | undefined, opts?: object | null): void; +export function isTSMappedType(node: object | null | undefined, opts?: object | null): node is TSMappedType; +export function assertTSMappedType(node: object | null | undefined, opts?: object | null): void; +export function isTSMethodSignature(node: object | null | undefined, opts?: object | null): node is TSMethodSignature; +export function assertTSMethodSignature(node: object | null | undefined, opts?: object | null): void; +export function isTSModuleBlock(node: object | null | undefined, opts?: object | null): node is TSModuleBlock; +export function assertTSModuleBlock(node: object | null | undefined, opts?: object | null): void; +export function isTSModuleDeclaration(node: object | null | undefined, opts?: object | null): node is TSModuleDeclaration; +export function assertTSModuleDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isTSNamedTupleMember(node: object | null | undefined, opts?: object | null): node is TSNamedTupleMember; +export function assertTSNamedTupleMember(node: object | null | undefined, opts?: object | null): void; +export function isTSNamespaceExportDeclaration(node: object | null | undefined, opts?: object | null): node is TSNamespaceExportDeclaration; +export function assertTSNamespaceExportDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isTSNeverKeyword(node: object | null | undefined, opts?: object | null): node is TSNeverKeyword; +export function assertTSNeverKeyword(node: object | null | undefined, opts?: object | null): void; +export function isTSNonNullExpression(node: object | null | undefined, opts?: object | null): node is TSNonNullExpression; +export function assertTSNonNullExpression(node: object | null | undefined, opts?: object | null): void; +export function isTSNullKeyword(node: object | null | undefined, opts?: object | null): node is TSNullKeyword; +export function assertTSNullKeyword(node: object | null | undefined, opts?: object | null): void; +export function isTSNumberKeyword(node: object | null | undefined, opts?: object | null): node is TSNumberKeyword; +export function assertTSNumberKeyword(node: object | null | undefined, opts?: object | null): void; +export function isTSObjectKeyword(node: object | null | undefined, opts?: object | null): node is TSObjectKeyword; +export function assertTSObjectKeyword(node: object | null | undefined, opts?: object | null): void; +export function isTSOptionalType(node: object | null | undefined, opts?: object | null): node is TSOptionalType; +export function assertTSOptionalType(node: object | null | undefined, opts?: object | null): void; +export function isTSParameterProperty(node: object | null | undefined, opts?: object | null): node is TSParameterProperty; +export function assertTSParameterProperty(node: object | null | undefined, opts?: object | null): void; +export function isTSParenthesizedType(node: object | null | undefined, opts?: object | null): node is TSParenthesizedType; +export function assertTSParenthesizedType(node: object | null | undefined, opts?: object | null): void; +export function isTSPropertySignature(node: object | null | undefined, opts?: object | null): node is TSPropertySignature; +export function assertTSPropertySignature(node: object | null | undefined, opts?: object | null): void; +export function isTSQualifiedName(node: object | null | undefined, opts?: object | null): node is TSQualifiedName; +export function assertTSQualifiedName(node: object | null | undefined, opts?: object | null): void; +export function isTSRestType(node: object | null | undefined, opts?: object | null): node is TSRestType; +export function assertTSRestType(node: object | null | undefined, opts?: object | null): void; +export function isTSStringKeyword(node: object | null | undefined, opts?: object | null): node is TSStringKeyword; +export function assertTSStringKeyword(node: object | null | undefined, opts?: object | null): void; +export function isTSSymbolKeyword(node: object | null | undefined, opts?: object | null): node is TSSymbolKeyword; +export function assertTSSymbolKeyword(node: object | null | undefined, opts?: object | null): void; +export function isTSThisType(node: object | null | undefined, opts?: object | null): node is TSThisType; +export function assertTSThisType(node: object | null | undefined, opts?: object | null): void; +export function isTSTupleType(node: object | null | undefined, opts?: object | null): node is TSTupleType; +export function assertTSTupleType(node: object | null | undefined, opts?: object | null): void; +export function isTSType(node: object | null | undefined, opts?: object | null): node is TSType; +export function assertTSType(node: object | null | undefined, opts?: object | null): void; +export function isTSTypeAliasDeclaration(node: object | null | undefined, opts?: object | null): node is TSTypeAliasDeclaration; +export function assertTSTypeAliasDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isTSTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TSTypeAnnotation; +export function assertTSTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isTSTypeAssertion(node: object | null | undefined, opts?: object | null): node is TSTypeAssertion; +export function assertTSTypeAssertion(node: object | null | undefined, opts?: object | null): void; +export function isTSTypeElement(node: object | null | undefined, opts?: object | null): node is TSTypeElement; +export function assertTSTypeElement(node: object | null | undefined, opts?: object | null): void; +export function isTSTypeLiteral(node: object | null | undefined, opts?: object | null): node is TSTypeLiteral; +export function assertTSTypeLiteral(node: object | null | undefined, opts?: object | null): void; +export function isTSTypeOperator(node: object | null | undefined, opts?: object | null): node is TSTypeOperator; +export function assertTSTypeOperator(node: object | null | undefined, opts?: object | null): void; +export function isTSTypeParameter(node: object | null | undefined, opts?: object | null): node is TSTypeParameter; +export function assertTSTypeParameter(node: object | null | undefined, opts?: object | null): void; +export function isTSTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): node is TSTypeParameterDeclaration; +export function assertTSTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isTSTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): node is TSTypeParameterInstantiation; +export function assertTSTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): void; +export function isTSTypePredicate(node: object | null | undefined, opts?: object | null): node is TSTypePredicate; +export function assertTSTypePredicate(node: object | null | undefined, opts?: object | null): void; +export function isTSTypeQuery(node: object | null | undefined, opts?: object | null): node is TSTypeQuery; +export function assertTSTypeQuery(node: object | null | undefined, opts?: object | null): void; +export function isTSTypeReference(node: object | null | undefined, opts?: object | null): node is TSTypeReference; +export function assertTSTypeReference(node: object | null | undefined, opts?: object | null): void; +export function isTSUndefinedKeyword(node: object | null | undefined, opts?: object | null): node is TSUndefinedKeyword; +export function assertTSUndefinedKeyword(node: object | null | undefined, opts?: object | null): void; +export function isTSUnionType(node: object | null | undefined, opts?: object | null): node is TSUnionType; +export function assertTSUnionType(node: object | null | undefined, opts?: object | null): void; +export function isTSUnknownKeyword(node: object | null | undefined, opts?: object | null): node is TSUnknownKeyword; +export function assertTSUnknownKeyword(node: object | null | undefined, opts?: object | null): void; +export function isTSVoidKeyword(node: object | null | undefined, opts?: object | null): node is TSVoidKeyword; +export function assertTSVoidKeyword(node: object | null | undefined, opts?: object | null): void; +export function isTaggedTemplateExpression(node: object | null | undefined, opts?: object | null): node is TaggedTemplateExpression; +export function assertTaggedTemplateExpression(node: object | null | undefined, opts?: object | null): void; +export function isTemplateElement(node: object | null | undefined, opts?: object | null): node is TemplateElement; +export function assertTemplateElement(node: object | null | undefined, opts?: object | null): void; +export function isTemplateLiteral(node: object | null | undefined, opts?: object | null): node is TemplateLiteral; +export function assertTemplateLiteral(node: object | null | undefined, opts?: object | null): void; +export function isTerminatorless(node: object | null | undefined, opts?: object | null): node is Terminatorless; +export function assertTerminatorless(node: object | null | undefined, opts?: object | null): void; +export function isThisExpression(node: object | null | undefined, opts?: object | null): node is ThisExpression; +export function assertThisExpression(node: object | null | undefined, opts?: object | null): void; +export function isThisTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ThisTypeAnnotation; +export function assertThisTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isThrowStatement(node: object | null | undefined, opts?: object | null): node is ThrowStatement; +export function assertThrowStatement(node: object | null | undefined, opts?: object | null): void; +export function isTopicReference(node: object | null | undefined, opts?: object | null): node is TopicReference; +export function assertTopicReference(node: object | null | undefined, opts?: object | null): void; +export function isTryStatement(node: object | null | undefined, opts?: object | null): node is TryStatement; +export function assertTryStatement(node: object | null | undefined, opts?: object | null): void; +export function isTupleExpression(node: object | null | undefined, opts?: object | null): node is TupleExpression; +export function assertTupleExpression(node: object | null | undefined, opts?: object | null): void; +export function isTupleTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TupleTypeAnnotation; +export function assertTupleTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isTypeAlias(node: object | null | undefined, opts?: object | null): node is TypeAlias; +export function assertTypeAlias(node: object | null | undefined, opts?: object | null): void; +export function isTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TypeAnnotation; +export function assertTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isTypeCastExpression(node: object | null | undefined, opts?: object | null): node is TypeCastExpression; +export function assertTypeCastExpression(node: object | null | undefined, opts?: object | null): void; +export function isTypeParameter(node: object | null | undefined, opts?: object | null): node is TypeParameter; +export function assertTypeParameter(node: object | null | undefined, opts?: object | null): void; +export function isTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): node is TypeParameterDeclaration; +export function assertTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): node is TypeParameterInstantiation; +export function assertTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): void; +export function isTypeScript(node: object | null | undefined, opts?: object | null): node is TypeScript; +export function assertTypeScript(node: object | null | undefined, opts?: object | null): void; +export function isTypeofTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TypeofTypeAnnotation; +export function assertTypeofTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isUnaryExpression(node: object | null | undefined, opts?: object | null): node is UnaryExpression; +export function assertUnaryExpression(node: object | null | undefined, opts?: object | null): void; +export function isUnaryLike(node: object | null | undefined, opts?: object | null): node is UnaryLike; +export function assertUnaryLike(node: object | null | undefined, opts?: object | null): void; +export function isUnionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is UnionTypeAnnotation; +export function assertUnionTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isUpdateExpression(node: object | null | undefined, opts?: object | null): node is UpdateExpression; +export function assertUpdateExpression(node: object | null | undefined, opts?: object | null): void; +export function isUserWhitespacable(node: object | null | undefined, opts?: object | null): node is UserWhitespacable; +export function assertUserWhitespacable(node: object | null | undefined, opts?: object | null): void; +export function isV8IntrinsicIdentifier(node: object | null | undefined, opts?: object | null): node is V8IntrinsicIdentifier; +export function assertV8IntrinsicIdentifier(node: object | null | undefined, opts?: object | null): void; +export function isVariableDeclaration(node: object | null | undefined, opts?: object | null): node is VariableDeclaration; +export function assertVariableDeclaration(node: object | null | undefined, opts?: object | null): void; +export function isVariableDeclarator(node: object | null | undefined, opts?: object | null): node is VariableDeclarator; +export function assertVariableDeclarator(node: object | null | undefined, opts?: object | null): void; +export function isVariance(node: object | null | undefined, opts?: object | null): node is Variance; +export function assertVariance(node: object | null | undefined, opts?: object | null): void; +export function isVoidTypeAnnotation(node: object | null | undefined, opts?: object | null): node is VoidTypeAnnotation; +export function assertVoidTypeAnnotation(node: object | null | undefined, opts?: object | null): void; +export function isWhile(node: object | null | undefined, opts?: object | null): node is While; +export function assertWhile(node: object | null | undefined, opts?: object | null): void; +export function isWhileStatement(node: object | null | undefined, opts?: object | null): node is WhileStatement; +export function assertWhileStatement(node: object | null | undefined, opts?: object | null): void; +export function isWithStatement(node: object | null | undefined, opts?: object | null): node is WithStatement; +export function assertWithStatement(node: object | null | undefined, opts?: object | null): void; +export function isYieldExpression(node: object | null | undefined, opts?: object | null): node is YieldExpression; +export function assertYieldExpression(node: object | null | undefined, opts?: object | null): void; +export function assertNode(obj: any): void +export function createTypeAnnotationBasedOnTypeof(type: 'string' | 'number' | 'undefined' | 'boolean' | 'function' | 'object' | 'symbol'): StringTypeAnnotation | VoidTypeAnnotation | NumberTypeAnnotation | BooleanTypeAnnotation | GenericTypeAnnotation +export function createUnionTypeAnnotation(types: [T]): T +export function createFlowUnionType(types: [T]): T +export function createUnionTypeAnnotation(types: ReadonlyArray): UnionTypeAnnotation +export function createFlowUnionType(types: ReadonlyArray): UnionTypeAnnotation +export function buildChildren(node: { children: ReadonlyArray }): JSXElement['children'] +export function clone(n: T): T; +export function cloneDeep(n: T): T; +export function cloneDeepWithoutLoc(n: T): T; +export function cloneNode(n: T, deep?: boolean, withoutLoc?: boolean): T; +export function cloneWithoutLoc(n: T): T; +export type CommentTypeShorthand = 'leading' | 'inner' | 'trailing' +export function addComment(node: T, type: CommentTypeShorthand, content: string, line?: boolean): T +export function addComments(node: T, type: CommentTypeShorthand, comments: ReadonlyArray): T +export function inheritInnerComments(node: Node, parent: Node): void +export function inheritLeadingComments(node: Node, parent: Node): void +export function inheritsComments(node: T, parent: Node): void +export function inheritTrailingComments(node: Node, parent: Node): void +export function removeComments(node: T): T +export function ensureBlock(node: Extract): BlockStatement +export function ensureBlock = 'body'>(node: Extract>, key: K): BlockStatement +export function toBindingIdentifierName(name: { toString(): string } | null | undefined): string +export function toBlock(node: Statement | Expression, parent?: Function | null): BlockStatement +export function toComputedKey>(node: T, key?: Expression | Identifier): Expression +export function toExpression(node: Function): FunctionExpression +export function toExpression(node: Class): ClassExpression +export function toExpression(node: ExpressionStatement | Expression | Class | Function): Expression +export function toIdentifier(name: { toString(): string } | null | undefined): string +export function toKeyAlias(node: Method | Property, key?: Node): string +export function toSequenceExpression(nodes: ReadonlyArray, scope: { push(value: { id: LVal; kind: 'var'; init?: Expression}): void; buildUndefinedNode(): Node }): SequenceExpression | undefined +export function toStatement(node: AssignmentExpression, ignore?: boolean): ExpressionStatement +export function toStatement(node: Statement | AssignmentExpression, ignore?: boolean): Statement +export function toStatement(node: Class, ignore: true): ClassDeclaration | undefined +export function toStatement(node: Class, ignore?: boolean): ClassDeclaration +export function toStatement(node: Function, ignore: true): FunctionDeclaration | undefined +export function toStatement(node: Function, ignore?: boolean): FunctionDeclaration +export function toStatement(node: Statement | Class | Function | AssignmentExpression, ignore: true): Statement | undefined +export function toStatement(node: Statement | Class | Function | AssignmentExpression, ignore?: boolean): Statement +export function valueToNode(value: undefined): Identifier +export function valueToNode(value: boolean): BooleanLiteral +export function valueToNode(value: null): NullLiteral +export function valueToNode(value: string): StringLiteral +export function valueToNode(value: number): NumericLiteral | BinaryExpression | UnaryExpression +export function valueToNode(value: RegExp): RegExpLiteral +export function valueToNode(value: ReadonlyArray): ArrayExpression +export function valueToNode(value: object): ObjectExpression +export function valueToNode(value: undefined | boolean | null | string | number | RegExp | object): Expression +export function removeTypeDuplicates(types: ReadonlyArray): FlowType[] +export function appendToMemberExpression>(member: T, append: MemberExpression['property'], computed?: boolean): T +export function inherits(child: T, parent: Node | null | undefined): T +export function prependToMemberExpression>(member: T, prepend: MemberExpression['object']): T +export function removeProperties( + n: Node, + opts?: { preserveComments: boolean } | null +): void; +export function removePropertiesDeep( + n: T, + opts?: { preserveComments: boolean } | null +): T; +export function getBindingIdentifiers(node: Node, duplicates: true, outerOnly?: boolean): Record> +export function getBindingIdentifiers(node: Node, duplicates?: false, outerOnly?: boolean): Record +export function getBindingIdentifiers(node: Node, duplicates: boolean, outerOnly?: boolean): Record> +export function getOuterBindingIdentifiers(node: Node, duplicates: true): Record> +export function getOuterBindingIdentifiers(node: Node, duplicates?: false): Record +export function getOuterBindingIdentifiers(node: Node, duplicates: boolean): Record> +export type TraversalAncestors = ReadonlyArray<{ + node: Node, + key: string, + index?: number, +}>; +export type TraversalHandler = ( + this: undefined, node: Node, parent: TraversalAncestors, type: T +) => void; +export type TraversalHandlers = { + enter?: TraversalHandler, + exit?: TraversalHandler, +}; +export function traverse(n: Node, h: TraversalHandler | TraversalHandlers, state?: T): void; +export function traverseFast(n: Node, h: TraversalHandler, state?: T): void; +export function shallowEqual(actual: object, expected: T): actual is T +export function buildMatchMemberExpression(match: string, allowPartial?: boolean): (node: Node | null | undefined) => node is MemberExpression +export function is(type: T, n: Node | null | undefined, required?: undefined): n is Extract +export function is>(type: T, n: Node | null | undefined, required: Partial

): n is P +export function is

(type: string, n: Node | null | undefined, required: Partial

): n is P +export function is(type: string, n: Node | null | undefined, required?: Partial): n is Node +export function isBinding(node: Node, parent: Node, grandparent?: Node): boolean +export function isBlockScoped(node: Node): node is FunctionDeclaration | ClassDeclaration | VariableDeclaration +export function isImmutable(node: Node): node is Immutable +export function isLet(node: Node): node is VariableDeclaration +export function isNode(node: object | null | undefined): node is Node +export function isNodesEquivalent>(a: T, b: any): b is T +export function isNodesEquivalent(a: any, b: any): boolean +export function isPlaceholderType(placeholderType: Node['type'], targetType: Node['type']): boolean +export function isReferenced(node: Node, parent: Node, grandparent?: Node): boolean +export function isScope(node: Node, parent: Node): node is Scopable +export function isSpecifierDefault(specifier: ModuleSpecifier): boolean +export function isType(nodetype: string, targetType: T): nodetype is T +export function isType(nodetype: string | null | undefined, targetType: string): boolean +export function isValidES3Identifier(name: string): boolean +export function isValidIdentifier(name: string): boolean +export function isVar(node: Node): node is VariableDeclaration +export function matchesPattern(node: Node | null | undefined, match: string | ReadonlyArray, allowPartial?: boolean): node is MemberExpression +export function validate(n: Node | null | undefined, key: K, value: T[K]): void; +export function validate(n: Node, key: string, value: any): void; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..791ddba9545ed476828dbd70eb28d1336b651abf --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/index.d.ts" @@ -0,0 +1,2927 @@ +interface BaseComment { + value: string; + start: number; + end: number; + loc: SourceLocation; + type: "CommentBlock" | "CommentLine"; +} +interface CommentBlock extends BaseComment { + type: "CommentBlock"; +} +interface CommentLine extends BaseComment { + type: "CommentLine"; +} +declare type Comment = CommentBlock | CommentLine; +interface SourceLocation { + start: { + line: number; + column: number; + }; + end: { + line: number; + column: number; + }; +} +interface BaseNode { + leadingComments: ReadonlyArray | null; + innerComments: ReadonlyArray | null; + trailingComments: ReadonlyArray | null; + start: number | null; + end: number | null; + loc: SourceLocation | null; + type: Node["type"]; + range?: [number, number]; + extra?: Record; +} +declare type CommentTypeShorthand = "leading" | "inner" | "trailing"; +declare type Node = AnyTypeAnnotation | ArgumentPlaceholder | ArrayExpression | ArrayPattern | ArrayTypeAnnotation | ArrowFunctionExpression | AssignmentExpression | AssignmentPattern | AwaitExpression | BigIntLiteral | BinaryExpression | BindExpression | BlockStatement | BooleanLiteral | BooleanLiteralTypeAnnotation | BooleanTypeAnnotation | BreakStatement | CallExpression | CatchClause | ClassAccessorProperty | ClassBody | ClassDeclaration | ClassExpression | ClassImplements | ClassMethod | ClassPrivateMethod | ClassPrivateProperty | ClassProperty | ConditionalExpression | ContinueStatement | DebuggerStatement | DecimalLiteral | DeclareClass | DeclareExportAllDeclaration | DeclareExportDeclaration | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareOpaqueType | DeclareTypeAlias | DeclareVariable | DeclaredPredicate | Decorator | Directive | DirectiveLiteral | DoExpression | DoWhileStatement | EmptyStatement | EmptyTypeAnnotation | EnumBooleanBody | EnumBooleanMember | EnumDeclaration | EnumDefaultedMember | EnumNumberBody | EnumNumberMember | EnumStringBody | EnumStringMember | EnumSymbolBody | ExistsTypeAnnotation | ExportAllDeclaration | ExportDefaultDeclaration | ExportDefaultSpecifier | ExportNamedDeclaration | ExportNamespaceSpecifier | ExportSpecifier | ExpressionStatement | File | ForInStatement | ForOfStatement | ForStatement | FunctionDeclaration | FunctionExpression | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | Identifier | IfStatement | Import | ImportAttribute | ImportDeclaration | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | IndexedAccessType | InferredPredicate | InterfaceDeclaration | InterfaceExtends | InterfaceTypeAnnotation | InterpreterDirective | IntersectionTypeAnnotation | JSXAttribute | JSXClosingElement | JSXClosingFragment | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXFragment | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXOpeningFragment | JSXSpreadAttribute | JSXSpreadChild | JSXText | LabeledStatement | LogicalExpression | MemberExpression | MetaProperty | MixedTypeAnnotation | ModuleExpression | NewExpression | Noop | NullLiteral | NullLiteralTypeAnnotation | NullableTypeAnnotation | NumberLiteral$1 | NumberLiteralTypeAnnotation | NumberTypeAnnotation | NumericLiteral | ObjectExpression | ObjectMethod | ObjectPattern | ObjectProperty | ObjectTypeAnnotation | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeInternalSlot | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | OptionalCallExpression | OptionalIndexedAccessType | OptionalMemberExpression | ParenthesizedExpression | PipelineBareFunction | PipelinePrimaryTopicReference | PipelineTopicExpression | Placeholder | PrivateName | Program | QualifiedTypeIdentifier | RecordExpression | RegExpLiteral | RegexLiteral$1 | RestElement | RestProperty$1 | ReturnStatement | SequenceExpression | SpreadElement | SpreadProperty$1 | StaticBlock | StringLiteral | StringLiteralTypeAnnotation | StringTypeAnnotation | Super | SwitchCase | SwitchStatement | SymbolTypeAnnotation | TSAnyKeyword | TSArrayType | TSAsExpression | TSBigIntKeyword | TSBooleanKeyword | TSCallSignatureDeclaration | TSConditionalType | TSConstructSignatureDeclaration | TSConstructorType | TSDeclareFunction | TSDeclareMethod | TSEnumDeclaration | TSEnumMember | TSExportAssignment | TSExpressionWithTypeArguments | TSExternalModuleReference | TSFunctionType | TSImportEqualsDeclaration | TSImportType | TSIndexSignature | TSIndexedAccessType | TSInferType | TSInterfaceBody | TSInterfaceDeclaration | TSIntersectionType | TSIntrinsicKeyword | TSLiteralType | TSMappedType | TSMethodSignature | TSModuleBlock | TSModuleDeclaration | TSNamedTupleMember | TSNamespaceExportDeclaration | TSNeverKeyword | TSNonNullExpression | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSOptionalType | TSParameterProperty | TSParenthesizedType | TSPropertySignature | TSQualifiedName | TSRestType | TSStringKeyword | TSSymbolKeyword | TSThisType | TSTupleType | TSTypeAliasDeclaration | TSTypeAnnotation | TSTypeAssertion | TSTypeLiteral | TSTypeOperator | TSTypeParameter | TSTypeParameterDeclaration | TSTypeParameterInstantiation | TSTypePredicate | TSTypeQuery | TSTypeReference | TSUndefinedKeyword | TSUnionType | TSUnknownKeyword | TSVoidKeyword | TaggedTemplateExpression | TemplateElement | TemplateLiteral | ThisExpression | ThisTypeAnnotation | ThrowStatement | TopicReference | TryStatement | TupleExpression | TupleTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | TypeofTypeAnnotation | UnaryExpression | UnionTypeAnnotation | UpdateExpression | V8IntrinsicIdentifier | VariableDeclaration | VariableDeclarator | Variance | VoidTypeAnnotation | WhileStatement | WithStatement | YieldExpression; +interface ArrayExpression extends BaseNode { + type: "ArrayExpression"; + elements: Array; +} +interface AssignmentExpression extends BaseNode { + type: "AssignmentExpression"; + operator: string; + left: LVal; + right: Expression; +} +interface BinaryExpression extends BaseNode { + type: "BinaryExpression"; + operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<="; + left: Expression | PrivateName; + right: Expression; +} +interface InterpreterDirective extends BaseNode { + type: "InterpreterDirective"; + value: string; +} +interface Directive extends BaseNode { + type: "Directive"; + value: DirectiveLiteral; +} +interface DirectiveLiteral extends BaseNode { + type: "DirectiveLiteral"; + value: string; +} +interface BlockStatement extends BaseNode { + type: "BlockStatement"; + body: Array; + directives: Array; +} +interface BreakStatement extends BaseNode { + type: "BreakStatement"; + label?: Identifier | null; +} +interface CallExpression extends BaseNode { + type: "CallExpression"; + callee: Expression | V8IntrinsicIdentifier; + arguments: Array; + optional?: true | false | null; + typeArguments?: TypeParameterInstantiation | null; + typeParameters?: TSTypeParameterInstantiation | null; +} +interface CatchClause extends BaseNode { + type: "CatchClause"; + param?: Identifier | ArrayPattern | ObjectPattern | null; + body: BlockStatement; +} +interface ConditionalExpression extends BaseNode { + type: "ConditionalExpression"; + test: Expression; + consequent: Expression; + alternate: Expression; +} +interface ContinueStatement extends BaseNode { + type: "ContinueStatement"; + label?: Identifier | null; +} +interface DebuggerStatement extends BaseNode { + type: "DebuggerStatement"; +} +interface DoWhileStatement extends BaseNode { + type: "DoWhileStatement"; + test: Expression; + body: Statement; +} +interface EmptyStatement extends BaseNode { + type: "EmptyStatement"; +} +interface ExpressionStatement extends BaseNode { + type: "ExpressionStatement"; + expression: Expression; +} +interface File extends BaseNode { + type: "File"; + program: Program; + comments?: Array | null; + tokens?: Array | null; +} +interface ForInStatement extends BaseNode { + type: "ForInStatement"; + left: VariableDeclaration | LVal; + right: Expression; + body: Statement; +} +interface ForStatement extends BaseNode { + type: "ForStatement"; + init?: VariableDeclaration | Expression | null; + test?: Expression | null; + update?: Expression | null; + body: Statement; +} +interface FunctionDeclaration extends BaseNode { + type: "FunctionDeclaration"; + id?: Identifier | null; + params: Array; + body: BlockStatement; + generator?: boolean; + async?: boolean; + declare?: boolean | null; + returnType?: TypeAnnotation | TSTypeAnnotation | Noop | null; + typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null; +} +interface FunctionExpression extends BaseNode { + type: "FunctionExpression"; + id?: Identifier | null; + params: Array; + body: BlockStatement; + generator?: boolean; + async?: boolean; + returnType?: TypeAnnotation | TSTypeAnnotation | Noop | null; + typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null; +} +interface Identifier extends BaseNode { + type: "Identifier"; + name: string; + decorators?: Array | null; + optional?: boolean | null; + typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null; +} +interface IfStatement extends BaseNode { + type: "IfStatement"; + test: Expression; + consequent: Statement; + alternate?: Statement | null; +} +interface LabeledStatement extends BaseNode { + type: "LabeledStatement"; + label: Identifier; + body: Statement; +} +interface StringLiteral extends BaseNode { + type: "StringLiteral"; + value: string; +} +interface NumericLiteral extends BaseNode { + type: "NumericLiteral"; + value: number; +} +/** + * @deprecated Use `NumericLiteral` + */ +interface NumberLiteral$1 extends BaseNode { + type: "NumberLiteral"; + value: number; +} +interface NullLiteral extends BaseNode { + type: "NullLiteral"; +} +interface BooleanLiteral extends BaseNode { + type: "BooleanLiteral"; + value: boolean; +} +interface RegExpLiteral extends BaseNode { + type: "RegExpLiteral"; + pattern: string; + flags: string; +} +/** + * @deprecated Use `RegExpLiteral` + */ +interface RegexLiteral$1 extends BaseNode { + type: "RegexLiteral"; + pattern: string; + flags: string; +} +interface LogicalExpression extends BaseNode { + type: "LogicalExpression"; + operator: "||" | "&&" | "??"; + left: Expression; + right: Expression; +} +interface MemberExpression extends BaseNode { + type: "MemberExpression"; + object: Expression; + property: Expression | Identifier | PrivateName; + computed: boolean; + optional?: true | false | null; +} +interface NewExpression extends BaseNode { + type: "NewExpression"; + callee: Expression | V8IntrinsicIdentifier; + arguments: Array; + optional?: true | false | null; + typeArguments?: TypeParameterInstantiation | null; + typeParameters?: TSTypeParameterInstantiation | null; +} +interface Program extends BaseNode { + type: "Program"; + body: Array; + directives: Array; + sourceType: "script" | "module"; + interpreter?: InterpreterDirective | null; + sourceFile: string; +} +interface ObjectExpression extends BaseNode { + type: "ObjectExpression"; + properties: Array; +} +interface ObjectMethod extends BaseNode { + type: "ObjectMethod"; + kind: "method" | "get" | "set"; + key: Expression | Identifier | StringLiteral | NumericLiteral; + params: Array; + body: BlockStatement; + computed: boolean; + generator?: boolean; + async?: boolean; + decorators?: Array | null; + returnType?: TypeAnnotation | TSTypeAnnotation | Noop | null; + typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null; +} +interface ObjectProperty extends BaseNode { + type: "ObjectProperty"; + key: Expression | Identifier | StringLiteral | NumericLiteral; + value: Expression | PatternLike; + computed: boolean; + shorthand: boolean; + decorators?: Array | null; +} +interface RestElement extends BaseNode { + type: "RestElement"; + argument: LVal; + decorators?: Array | null; + optional?: boolean | null; + typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null; +} +/** + * @deprecated Use `RestElement` + */ +interface RestProperty$1 extends BaseNode { + type: "RestProperty"; + argument: LVal; + decorators?: Array | null; + optional?: boolean | null; + typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null; +} +interface ReturnStatement extends BaseNode { + type: "ReturnStatement"; + argument?: Expression | null; +} +interface SequenceExpression extends BaseNode { + type: "SequenceExpression"; + expressions: Array; +} +interface ParenthesizedExpression extends BaseNode { + type: "ParenthesizedExpression"; + expression: Expression; +} +interface SwitchCase extends BaseNode { + type: "SwitchCase"; + test?: Expression | null; + consequent: Array; +} +interface SwitchStatement extends BaseNode { + type: "SwitchStatement"; + discriminant: Expression; + cases: Array; +} +interface ThisExpression extends BaseNode { + type: "ThisExpression"; +} +interface ThrowStatement extends BaseNode { + type: "ThrowStatement"; + argument: Expression; +} +interface TryStatement extends BaseNode { + type: "TryStatement"; + block: BlockStatement; + handler?: CatchClause | null; + finalizer?: BlockStatement | null; +} +interface UnaryExpression extends BaseNode { + type: "UnaryExpression"; + operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof"; + argument: Expression; + prefix: boolean; +} +interface UpdateExpression extends BaseNode { + type: "UpdateExpression"; + operator: "++" | "--"; + argument: Expression; + prefix: boolean; +} +interface VariableDeclaration extends BaseNode { + type: "VariableDeclaration"; + kind: "var" | "let" | "const"; + declarations: Array; + declare?: boolean | null; +} +interface VariableDeclarator extends BaseNode { + type: "VariableDeclarator"; + id: LVal; + init?: Expression | null; + definite?: boolean | null; +} +interface WhileStatement extends BaseNode { + type: "WhileStatement"; + test: Expression; + body: Statement; +} +interface WithStatement extends BaseNode { + type: "WithStatement"; + object: Expression; + body: Statement; +} +interface AssignmentPattern extends BaseNode { + type: "AssignmentPattern"; + left: Identifier | ObjectPattern | ArrayPattern | MemberExpression; + right: Expression; + decorators?: Array | null; + typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null; +} +interface ArrayPattern extends BaseNode { + type: "ArrayPattern"; + elements: Array; + decorators?: Array | null; + optional?: boolean | null; + typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null; +} +interface ArrowFunctionExpression extends BaseNode { + type: "ArrowFunctionExpression"; + params: Array; + body: BlockStatement | Expression; + async?: boolean; + expression: boolean; + generator?: boolean; + returnType?: TypeAnnotation | TSTypeAnnotation | Noop | null; + typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null; +} +interface ClassBody extends BaseNode { + type: "ClassBody"; + body: Array; +} +interface ClassExpression extends BaseNode { + type: "ClassExpression"; + id?: Identifier | null; + superClass?: Expression | null; + body: ClassBody; + decorators?: Array | null; + implements?: Array | null; + mixins?: InterfaceExtends | null; + superTypeParameters?: TypeParameterInstantiation | TSTypeParameterInstantiation | null; + typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null; +} +interface ClassDeclaration extends BaseNode { + type: "ClassDeclaration"; + id: Identifier; + superClass?: Expression | null; + body: ClassBody; + decorators?: Array | null; + abstract?: boolean | null; + declare?: boolean | null; + implements?: Array | null; + mixins?: InterfaceExtends | null; + superTypeParameters?: TypeParameterInstantiation | TSTypeParameterInstantiation | null; + typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null; +} +interface ExportAllDeclaration extends BaseNode { + type: "ExportAllDeclaration"; + source: StringLiteral; + assertions?: Array | null; + exportKind?: "type" | "value" | null; +} +interface ExportDefaultDeclaration extends BaseNode { + type: "ExportDefaultDeclaration"; + declaration: FunctionDeclaration | TSDeclareFunction | ClassDeclaration | Expression; + exportKind?: "value" | null; +} +interface ExportNamedDeclaration extends BaseNode { + type: "ExportNamedDeclaration"; + declaration?: Declaration | null; + specifiers: Array; + source?: StringLiteral | null; + assertions?: Array | null; + exportKind?: "type" | "value" | null; +} +interface ExportSpecifier extends BaseNode { + type: "ExportSpecifier"; + local: Identifier; + exported: Identifier | StringLiteral; + exportKind?: "type" | "value" | null; +} +interface ForOfStatement extends BaseNode { + type: "ForOfStatement"; + left: VariableDeclaration | LVal; + right: Expression; + body: Statement; + await: boolean; +} +interface ImportDeclaration extends BaseNode { + type: "ImportDeclaration"; + specifiers: Array; + source: StringLiteral; + assertions?: Array | null; + importKind?: "type" | "typeof" | "value" | null; +} +interface ImportDefaultSpecifier extends BaseNode { + type: "ImportDefaultSpecifier"; + local: Identifier; +} +interface ImportNamespaceSpecifier extends BaseNode { + type: "ImportNamespaceSpecifier"; + local: Identifier; +} +interface ImportSpecifier extends BaseNode { + type: "ImportSpecifier"; + local: Identifier; + imported: Identifier | StringLiteral; + importKind?: "type" | "typeof" | "value" | null; +} +interface MetaProperty extends BaseNode { + type: "MetaProperty"; + meta: Identifier; + property: Identifier; +} +interface ClassMethod extends BaseNode { + type: "ClassMethod"; + kind?: "get" | "set" | "method" | "constructor"; + key: Identifier | StringLiteral | NumericLiteral | Expression; + params: Array; + body: BlockStatement; + computed?: boolean; + static?: boolean; + generator?: boolean; + async?: boolean; + abstract?: boolean | null; + access?: "public" | "private" | "protected" | null; + accessibility?: "public" | "private" | "protected" | null; + decorators?: Array | null; + optional?: boolean | null; + override?: boolean; + returnType?: TypeAnnotation | TSTypeAnnotation | Noop | null; + typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null; +} +interface ObjectPattern extends BaseNode { + type: "ObjectPattern"; + properties: Array; + decorators?: Array | null; + typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null; +} +interface SpreadElement extends BaseNode { + type: "SpreadElement"; + argument: Expression; +} +/** + * @deprecated Use `SpreadElement` + */ +interface SpreadProperty$1 extends BaseNode { + type: "SpreadProperty"; + argument: Expression; +} +interface Super extends BaseNode { + type: "Super"; +} +interface TaggedTemplateExpression extends BaseNode { + type: "TaggedTemplateExpression"; + tag: Expression; + quasi: TemplateLiteral; + typeParameters?: TypeParameterInstantiation | TSTypeParameterInstantiation | null; +} +interface TemplateElement extends BaseNode { + type: "TemplateElement"; + value: { + raw: string; + cooked?: string; + }; + tail: boolean; +} +interface TemplateLiteral extends BaseNode { + type: "TemplateLiteral"; + quasis: Array; + expressions: Array; +} +interface YieldExpression extends BaseNode { + type: "YieldExpression"; + argument?: Expression | null; + delegate: boolean; +} +interface AwaitExpression extends BaseNode { + type: "AwaitExpression"; + argument: Expression; +} +interface Import extends BaseNode { + type: "Import"; +} +interface BigIntLiteral extends BaseNode { + type: "BigIntLiteral"; + value: string; +} +interface ExportNamespaceSpecifier extends BaseNode { + type: "ExportNamespaceSpecifier"; + exported: Identifier; +} +interface OptionalMemberExpression extends BaseNode { + type: "OptionalMemberExpression"; + object: Expression; + property: Expression | Identifier; + computed: boolean; + optional: boolean; +} +interface OptionalCallExpression extends BaseNode { + type: "OptionalCallExpression"; + callee: Expression; + arguments: Array; + optional: boolean; + typeArguments?: TypeParameterInstantiation | null; + typeParameters?: TSTypeParameterInstantiation | null; +} +interface ClassProperty extends BaseNode { + type: "ClassProperty"; + key: Identifier | StringLiteral | NumericLiteral | Expression; + value?: Expression | null; + typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null; + decorators?: Array | null; + computed?: boolean; + static?: boolean; + abstract?: boolean | null; + accessibility?: "public" | "private" | "protected" | null; + declare?: boolean | null; + definite?: boolean | null; + optional?: boolean | null; + override?: boolean; + readonly?: boolean | null; + variance?: Variance | null; +} +interface ClassAccessorProperty extends BaseNode { + type: "ClassAccessorProperty"; + key: Identifier | StringLiteral | NumericLiteral | Expression | PrivateName; + value?: Expression | null; + typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null; + decorators?: Array | null; + computed?: boolean; + static?: boolean; + abstract?: boolean | null; + accessibility?: "public" | "private" | "protected" | null; + declare?: boolean | null; + definite?: boolean | null; + optional?: boolean | null; + override?: boolean; + readonly?: boolean | null; + variance?: Variance | null; +} +interface ClassPrivateProperty extends BaseNode { + type: "ClassPrivateProperty"; + key: PrivateName; + value?: Expression | null; + decorators?: Array | null; + static: any; + definite?: boolean | null; + readonly?: boolean | null; + typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null; + variance?: Variance | null; +} +interface ClassPrivateMethod extends BaseNode { + type: "ClassPrivateMethod"; + kind?: "get" | "set" | "method" | "constructor"; + key: PrivateName; + params: Array; + body: BlockStatement; + static?: boolean; + abstract?: boolean | null; + access?: "public" | "private" | "protected" | null; + accessibility?: "public" | "private" | "protected" | null; + async?: boolean; + computed?: boolean; + decorators?: Array | null; + generator?: boolean; + optional?: boolean | null; + override?: boolean; + returnType?: TypeAnnotation | TSTypeAnnotation | Noop | null; + typeParameters?: TypeParameterDeclaration | TSTypeParameterDeclaration | Noop | null; +} +interface PrivateName extends BaseNode { + type: "PrivateName"; + id: Identifier; +} +interface StaticBlock extends BaseNode { + type: "StaticBlock"; + body: Array; +} +interface AnyTypeAnnotation extends BaseNode { + type: "AnyTypeAnnotation"; +} +interface ArrayTypeAnnotation extends BaseNode { + type: "ArrayTypeAnnotation"; + elementType: FlowType; +} +interface BooleanTypeAnnotation extends BaseNode { + type: "BooleanTypeAnnotation"; +} +interface BooleanLiteralTypeAnnotation extends BaseNode { + type: "BooleanLiteralTypeAnnotation"; + value: boolean; +} +interface NullLiteralTypeAnnotation extends BaseNode { + type: "NullLiteralTypeAnnotation"; +} +interface ClassImplements extends BaseNode { + type: "ClassImplements"; + id: Identifier; + typeParameters?: TypeParameterInstantiation | null; +} +interface DeclareClass extends BaseNode { + type: "DeclareClass"; + id: Identifier; + typeParameters?: TypeParameterDeclaration | null; + extends?: Array | null; + body: ObjectTypeAnnotation; + implements?: Array | null; + mixins?: Array | null; +} +interface DeclareFunction extends BaseNode { + type: "DeclareFunction"; + id: Identifier; + predicate?: DeclaredPredicate | null; +} +interface DeclareInterface extends BaseNode { + type: "DeclareInterface"; + id: Identifier; + typeParameters?: TypeParameterDeclaration | null; + extends?: Array | null; + body: ObjectTypeAnnotation; + implements?: Array | null; + mixins?: Array | null; +} +interface DeclareModule extends BaseNode { + type: "DeclareModule"; + id: Identifier | StringLiteral; + body: BlockStatement; + kind?: "CommonJS" | "ES" | null; +} +interface DeclareModuleExports extends BaseNode { + type: "DeclareModuleExports"; + typeAnnotation: TypeAnnotation; +} +interface DeclareTypeAlias extends BaseNode { + type: "DeclareTypeAlias"; + id: Identifier; + typeParameters?: TypeParameterDeclaration | null; + right: FlowType; +} +interface DeclareOpaqueType extends BaseNode { + type: "DeclareOpaqueType"; + id: Identifier; + typeParameters?: TypeParameterDeclaration | null; + supertype?: FlowType | null; + impltype?: FlowType | null; +} +interface DeclareVariable extends BaseNode { + type: "DeclareVariable"; + id: Identifier; +} +interface DeclareExportDeclaration extends BaseNode { + type: "DeclareExportDeclaration"; + declaration?: Flow | null; + specifiers?: Array | null; + source?: StringLiteral | null; + default?: boolean | null; +} +interface DeclareExportAllDeclaration extends BaseNode { + type: "DeclareExportAllDeclaration"; + source: StringLiteral; + exportKind?: "type" | "value" | null; +} +interface DeclaredPredicate extends BaseNode { + type: "DeclaredPredicate"; + value: Flow; +} +interface ExistsTypeAnnotation extends BaseNode { + type: "ExistsTypeAnnotation"; +} +interface FunctionTypeAnnotation extends BaseNode { + type: "FunctionTypeAnnotation"; + typeParameters?: TypeParameterDeclaration | null; + params: Array; + rest?: FunctionTypeParam | null; + returnType: FlowType; + this?: FunctionTypeParam | null; +} +interface FunctionTypeParam extends BaseNode { + type: "FunctionTypeParam"; + name?: Identifier | null; + typeAnnotation: FlowType; + optional?: boolean | null; +} +interface GenericTypeAnnotation extends BaseNode { + type: "GenericTypeAnnotation"; + id: Identifier | QualifiedTypeIdentifier; + typeParameters?: TypeParameterInstantiation | null; +} +interface InferredPredicate extends BaseNode { + type: "InferredPredicate"; +} +interface InterfaceExtends extends BaseNode { + type: "InterfaceExtends"; + id: Identifier | QualifiedTypeIdentifier; + typeParameters?: TypeParameterInstantiation | null; +} +interface InterfaceDeclaration extends BaseNode { + type: "InterfaceDeclaration"; + id: Identifier; + typeParameters?: TypeParameterDeclaration | null; + extends?: Array | null; + body: ObjectTypeAnnotation; + implements?: Array | null; + mixins?: Array | null; +} +interface InterfaceTypeAnnotation extends BaseNode { + type: "InterfaceTypeAnnotation"; + extends?: Array | null; + body: ObjectTypeAnnotation; +} +interface IntersectionTypeAnnotation extends BaseNode { + type: "IntersectionTypeAnnotation"; + types: Array; +} +interface MixedTypeAnnotation extends BaseNode { + type: "MixedTypeAnnotation"; +} +interface EmptyTypeAnnotation extends BaseNode { + type: "EmptyTypeAnnotation"; +} +interface NullableTypeAnnotation extends BaseNode { + type: "NullableTypeAnnotation"; + typeAnnotation: FlowType; +} +interface NumberLiteralTypeAnnotation extends BaseNode { + type: "NumberLiteralTypeAnnotation"; + value: number; +} +interface NumberTypeAnnotation extends BaseNode { + type: "NumberTypeAnnotation"; +} +interface ObjectTypeAnnotation extends BaseNode { + type: "ObjectTypeAnnotation"; + properties: Array; + indexers?: Array | null; + callProperties?: Array | null; + internalSlots?: Array | null; + exact: boolean; + inexact?: boolean | null; +} +interface ObjectTypeInternalSlot extends BaseNode { + type: "ObjectTypeInternalSlot"; + id: Identifier; + value: FlowType; + optional: boolean; + static: boolean; + method: boolean; +} +interface ObjectTypeCallProperty extends BaseNode { + type: "ObjectTypeCallProperty"; + value: FlowType; + static: boolean; +} +interface ObjectTypeIndexer extends BaseNode { + type: "ObjectTypeIndexer"; + id?: Identifier | null; + key: FlowType; + value: FlowType; + variance?: Variance | null; + static: boolean; +} +interface ObjectTypeProperty extends BaseNode { + type: "ObjectTypeProperty"; + key: Identifier | StringLiteral; + value: FlowType; + variance?: Variance | null; + kind: "init" | "get" | "set"; + method: boolean; + optional: boolean; + proto: boolean; + static: boolean; +} +interface ObjectTypeSpreadProperty extends BaseNode { + type: "ObjectTypeSpreadProperty"; + argument: FlowType; +} +interface OpaqueType extends BaseNode { + type: "OpaqueType"; + id: Identifier; + typeParameters?: TypeParameterDeclaration | null; + supertype?: FlowType | null; + impltype: FlowType; +} +interface QualifiedTypeIdentifier extends BaseNode { + type: "QualifiedTypeIdentifier"; + id: Identifier; + qualification: Identifier | QualifiedTypeIdentifier; +} +interface StringLiteralTypeAnnotation extends BaseNode { + type: "StringLiteralTypeAnnotation"; + value: string; +} +interface StringTypeAnnotation extends BaseNode { + type: "StringTypeAnnotation"; +} +interface SymbolTypeAnnotation extends BaseNode { + type: "SymbolTypeAnnotation"; +} +interface ThisTypeAnnotation extends BaseNode { + type: "ThisTypeAnnotation"; +} +interface TupleTypeAnnotation extends BaseNode { + type: "TupleTypeAnnotation"; + types: Array; +} +interface TypeofTypeAnnotation extends BaseNode { + type: "TypeofTypeAnnotation"; + argument: FlowType; +} +interface TypeAlias extends BaseNode { + type: "TypeAlias"; + id: Identifier; + typeParameters?: TypeParameterDeclaration | null; + right: FlowType; +} +interface TypeAnnotation extends BaseNode { + type: "TypeAnnotation"; + typeAnnotation: FlowType; +} +interface TypeCastExpression extends BaseNode { + type: "TypeCastExpression"; + expression: Expression; + typeAnnotation: TypeAnnotation; +} +interface TypeParameter extends BaseNode { + type: "TypeParameter"; + bound?: TypeAnnotation | null; + default?: FlowType | null; + variance?: Variance | null; + name: string; +} +interface TypeParameterDeclaration extends BaseNode { + type: "TypeParameterDeclaration"; + params: Array; +} +interface TypeParameterInstantiation extends BaseNode { + type: "TypeParameterInstantiation"; + params: Array; +} +interface UnionTypeAnnotation extends BaseNode { + type: "UnionTypeAnnotation"; + types: Array; +} +interface Variance extends BaseNode { + type: "Variance"; + kind: "minus" | "plus"; +} +interface VoidTypeAnnotation extends BaseNode { + type: "VoidTypeAnnotation"; +} +interface EnumDeclaration extends BaseNode { + type: "EnumDeclaration"; + id: Identifier; + body: EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody; +} +interface EnumBooleanBody extends BaseNode { + type: "EnumBooleanBody"; + members: Array; + explicitType: boolean; + hasUnknownMembers: boolean; +} +interface EnumNumberBody extends BaseNode { + type: "EnumNumberBody"; + members: Array; + explicitType: boolean; + hasUnknownMembers: boolean; +} +interface EnumStringBody extends BaseNode { + type: "EnumStringBody"; + members: Array; + explicitType: boolean; + hasUnknownMembers: boolean; +} +interface EnumSymbolBody extends BaseNode { + type: "EnumSymbolBody"; + members: Array; + hasUnknownMembers: boolean; +} +interface EnumBooleanMember extends BaseNode { + type: "EnumBooleanMember"; + id: Identifier; + init: BooleanLiteral; +} +interface EnumNumberMember extends BaseNode { + type: "EnumNumberMember"; + id: Identifier; + init: NumericLiteral; +} +interface EnumStringMember extends BaseNode { + type: "EnumStringMember"; + id: Identifier; + init: StringLiteral; +} +interface EnumDefaultedMember extends BaseNode { + type: "EnumDefaultedMember"; + id: Identifier; +} +interface IndexedAccessType extends BaseNode { + type: "IndexedAccessType"; + objectType: FlowType; + indexType: FlowType; +} +interface OptionalIndexedAccessType extends BaseNode { + type: "OptionalIndexedAccessType"; + objectType: FlowType; + indexType: FlowType; + optional: boolean; +} +interface JSXAttribute extends BaseNode { + type: "JSXAttribute"; + name: JSXIdentifier | JSXNamespacedName; + value?: JSXElement | JSXFragment | StringLiteral | JSXExpressionContainer | null; +} +interface JSXClosingElement extends BaseNode { + type: "JSXClosingElement"; + name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName; +} +interface JSXElement extends BaseNode { + type: "JSXElement"; + openingElement: JSXOpeningElement; + closingElement?: JSXClosingElement | null; + children: Array; + selfClosing?: boolean | null; +} +interface JSXEmptyExpression extends BaseNode { + type: "JSXEmptyExpression"; +} +interface JSXExpressionContainer extends BaseNode { + type: "JSXExpressionContainer"; + expression: Expression | JSXEmptyExpression; +} +interface JSXSpreadChild extends BaseNode { + type: "JSXSpreadChild"; + expression: Expression; +} +interface JSXIdentifier extends BaseNode { + type: "JSXIdentifier"; + name: string; +} +interface JSXMemberExpression extends BaseNode { + type: "JSXMemberExpression"; + object: JSXMemberExpression | JSXIdentifier; + property: JSXIdentifier; +} +interface JSXNamespacedName extends BaseNode { + type: "JSXNamespacedName"; + namespace: JSXIdentifier; + name: JSXIdentifier; +} +interface JSXOpeningElement extends BaseNode { + type: "JSXOpeningElement"; + name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName; + attributes: Array; + selfClosing: boolean; + typeParameters?: TypeParameterInstantiation | TSTypeParameterInstantiation | null; +} +interface JSXSpreadAttribute extends BaseNode { + type: "JSXSpreadAttribute"; + argument: Expression; +} +interface JSXText extends BaseNode { + type: "JSXText"; + value: string; +} +interface JSXFragment extends BaseNode { + type: "JSXFragment"; + openingFragment: JSXOpeningFragment; + closingFragment: JSXClosingFragment; + children: Array; +} +interface JSXOpeningFragment extends BaseNode { + type: "JSXOpeningFragment"; +} +interface JSXClosingFragment extends BaseNode { + type: "JSXClosingFragment"; +} +interface Noop extends BaseNode { + type: "Noop"; +} +interface Placeholder extends BaseNode { + type: "Placeholder"; + expectedNode: "Identifier" | "StringLiteral" | "Expression" | "Statement" | "Declaration" | "BlockStatement" | "ClassBody" | "Pattern"; + name: Identifier; +} +interface V8IntrinsicIdentifier extends BaseNode { + type: "V8IntrinsicIdentifier"; + name: string; +} +interface ArgumentPlaceholder extends BaseNode { + type: "ArgumentPlaceholder"; +} +interface BindExpression extends BaseNode { + type: "BindExpression"; + object: Expression; + callee: Expression; +} +interface ImportAttribute extends BaseNode { + type: "ImportAttribute"; + key: Identifier | StringLiteral; + value: StringLiteral; +} +interface Decorator extends BaseNode { + type: "Decorator"; + expression: Expression; +} +interface DoExpression extends BaseNode { + type: "DoExpression"; + body: BlockStatement; + async: boolean; +} +interface ExportDefaultSpecifier extends BaseNode { + type: "ExportDefaultSpecifier"; + exported: Identifier; +} +interface RecordExpression extends BaseNode { + type: "RecordExpression"; + properties: Array; +} +interface TupleExpression extends BaseNode { + type: "TupleExpression"; + elements: Array; +} +interface DecimalLiteral extends BaseNode { + type: "DecimalLiteral"; + value: string; +} +interface ModuleExpression extends BaseNode { + type: "ModuleExpression"; + body: Program; +} +interface TopicReference extends BaseNode { + type: "TopicReference"; +} +interface PipelineTopicExpression extends BaseNode { + type: "PipelineTopicExpression"; + expression: Expression; +} +interface PipelineBareFunction extends BaseNode { + type: "PipelineBareFunction"; + callee: Expression; +} +interface PipelinePrimaryTopicReference extends BaseNode { + type: "PipelinePrimaryTopicReference"; +} +interface TSParameterProperty extends BaseNode { + type: "TSParameterProperty"; + parameter: Identifier | AssignmentPattern; + accessibility?: "public" | "private" | "protected" | null; + decorators?: Array | null; + override?: boolean | null; + readonly?: boolean | null; +} +interface TSDeclareFunction extends BaseNode { + type: "TSDeclareFunction"; + id?: Identifier | null; + typeParameters?: TSTypeParameterDeclaration | Noop | null; + params: Array; + returnType?: TSTypeAnnotation | Noop | null; + async?: boolean; + declare?: boolean | null; + generator?: boolean; +} +interface TSDeclareMethod extends BaseNode { + type: "TSDeclareMethod"; + decorators?: Array | null; + key: Identifier | StringLiteral | NumericLiteral | Expression; + typeParameters?: TSTypeParameterDeclaration | Noop | null; + params: Array; + returnType?: TSTypeAnnotation | Noop | null; + abstract?: boolean | null; + access?: "public" | "private" | "protected" | null; + accessibility?: "public" | "private" | "protected" | null; + async?: boolean; + computed?: boolean; + generator?: boolean; + kind?: "get" | "set" | "method" | "constructor"; + optional?: boolean | null; + override?: boolean; + static?: boolean; +} +interface TSQualifiedName extends BaseNode { + type: "TSQualifiedName"; + left: TSEntityName; + right: Identifier; +} +interface TSCallSignatureDeclaration extends BaseNode { + type: "TSCallSignatureDeclaration"; + typeParameters?: TSTypeParameterDeclaration | null; + parameters: Array; + typeAnnotation?: TSTypeAnnotation | null; +} +interface TSConstructSignatureDeclaration extends BaseNode { + type: "TSConstructSignatureDeclaration"; + typeParameters?: TSTypeParameterDeclaration | null; + parameters: Array; + typeAnnotation?: TSTypeAnnotation | null; +} +interface TSPropertySignature extends BaseNode { + type: "TSPropertySignature"; + key: Expression; + typeAnnotation?: TSTypeAnnotation | null; + initializer?: Expression | null; + computed?: boolean | null; + kind: "get" | "set"; + optional?: boolean | null; + readonly?: boolean | null; +} +interface TSMethodSignature extends BaseNode { + type: "TSMethodSignature"; + key: Expression; + typeParameters?: TSTypeParameterDeclaration | null; + parameters: Array; + typeAnnotation?: TSTypeAnnotation | null; + computed?: boolean | null; + kind: "method" | "get" | "set"; + optional?: boolean | null; +} +interface TSIndexSignature extends BaseNode { + type: "TSIndexSignature"; + parameters: Array; + typeAnnotation?: TSTypeAnnotation | null; + readonly?: boolean | null; + static?: boolean | null; +} +interface TSAnyKeyword extends BaseNode { + type: "TSAnyKeyword"; +} +interface TSBooleanKeyword extends BaseNode { + type: "TSBooleanKeyword"; +} +interface TSBigIntKeyword extends BaseNode { + type: "TSBigIntKeyword"; +} +interface TSIntrinsicKeyword extends BaseNode { + type: "TSIntrinsicKeyword"; +} +interface TSNeverKeyword extends BaseNode { + type: "TSNeverKeyword"; +} +interface TSNullKeyword extends BaseNode { + type: "TSNullKeyword"; +} +interface TSNumberKeyword extends BaseNode { + type: "TSNumberKeyword"; +} +interface TSObjectKeyword extends BaseNode { + type: "TSObjectKeyword"; +} +interface TSStringKeyword extends BaseNode { + type: "TSStringKeyword"; +} +interface TSSymbolKeyword extends BaseNode { + type: "TSSymbolKeyword"; +} +interface TSUndefinedKeyword extends BaseNode { + type: "TSUndefinedKeyword"; +} +interface TSUnknownKeyword extends BaseNode { + type: "TSUnknownKeyword"; +} +interface TSVoidKeyword extends BaseNode { + type: "TSVoidKeyword"; +} +interface TSThisType extends BaseNode { + type: "TSThisType"; +} +interface TSFunctionType extends BaseNode { + type: "TSFunctionType"; + typeParameters?: TSTypeParameterDeclaration | null; + parameters: Array; + typeAnnotation?: TSTypeAnnotation | null; +} +interface TSConstructorType extends BaseNode { + type: "TSConstructorType"; + typeParameters?: TSTypeParameterDeclaration | null; + parameters: Array; + typeAnnotation?: TSTypeAnnotation | null; + abstract?: boolean | null; +} +interface TSTypeReference extends BaseNode { + type: "TSTypeReference"; + typeName: TSEntityName; + typeParameters?: TSTypeParameterInstantiation | null; +} +interface TSTypePredicate extends BaseNode { + type: "TSTypePredicate"; + parameterName: Identifier | TSThisType; + typeAnnotation?: TSTypeAnnotation | null; + asserts?: boolean | null; +} +interface TSTypeQuery extends BaseNode { + type: "TSTypeQuery"; + exprName: TSEntityName | TSImportType; +} +interface TSTypeLiteral extends BaseNode { + type: "TSTypeLiteral"; + members: Array; +} +interface TSArrayType extends BaseNode { + type: "TSArrayType"; + elementType: TSType; +} +interface TSTupleType extends BaseNode { + type: "TSTupleType"; + elementTypes: Array; +} +interface TSOptionalType extends BaseNode { + type: "TSOptionalType"; + typeAnnotation: TSType; +} +interface TSRestType extends BaseNode { + type: "TSRestType"; + typeAnnotation: TSType; +} +interface TSNamedTupleMember extends BaseNode { + type: "TSNamedTupleMember"; + label: Identifier; + elementType: TSType; + optional: boolean; +} +interface TSUnionType extends BaseNode { + type: "TSUnionType"; + types: Array; +} +interface TSIntersectionType extends BaseNode { + type: "TSIntersectionType"; + types: Array; +} +interface TSConditionalType extends BaseNode { + type: "TSConditionalType"; + checkType: TSType; + extendsType: TSType; + trueType: TSType; + falseType: TSType; +} +interface TSInferType extends BaseNode { + type: "TSInferType"; + typeParameter: TSTypeParameter; +} +interface TSParenthesizedType extends BaseNode { + type: "TSParenthesizedType"; + typeAnnotation: TSType; +} +interface TSTypeOperator extends BaseNode { + type: "TSTypeOperator"; + typeAnnotation: TSType; + operator: string; +} +interface TSIndexedAccessType extends BaseNode { + type: "TSIndexedAccessType"; + objectType: TSType; + indexType: TSType; +} +interface TSMappedType extends BaseNode { + type: "TSMappedType"; + typeParameter: TSTypeParameter; + typeAnnotation?: TSType | null; + nameType?: TSType | null; + optional?: boolean | null; + readonly?: boolean | null; +} +interface TSLiteralType extends BaseNode { + type: "TSLiteralType"; + literal: NumericLiteral | StringLiteral | BooleanLiteral | BigIntLiteral | UnaryExpression; +} +interface TSExpressionWithTypeArguments extends BaseNode { + type: "TSExpressionWithTypeArguments"; + expression: TSEntityName; + typeParameters?: TSTypeParameterInstantiation | null; +} +interface TSInterfaceDeclaration extends BaseNode { + type: "TSInterfaceDeclaration"; + id: Identifier; + typeParameters?: TSTypeParameterDeclaration | null; + extends?: Array | null; + body: TSInterfaceBody; + declare?: boolean | null; +} +interface TSInterfaceBody extends BaseNode { + type: "TSInterfaceBody"; + body: Array; +} +interface TSTypeAliasDeclaration extends BaseNode { + type: "TSTypeAliasDeclaration"; + id: Identifier; + typeParameters?: TSTypeParameterDeclaration | null; + typeAnnotation: TSType; + declare?: boolean | null; +} +interface TSAsExpression extends BaseNode { + type: "TSAsExpression"; + expression: Expression; + typeAnnotation: TSType; +} +interface TSTypeAssertion extends BaseNode { + type: "TSTypeAssertion"; + typeAnnotation: TSType; + expression: Expression; +} +interface TSEnumDeclaration extends BaseNode { + type: "TSEnumDeclaration"; + id: Identifier; + members: Array; + const?: boolean | null; + declare?: boolean | null; + initializer?: Expression | null; +} +interface TSEnumMember extends BaseNode { + type: "TSEnumMember"; + id: Identifier | StringLiteral; + initializer?: Expression | null; +} +interface TSModuleDeclaration extends BaseNode { + type: "TSModuleDeclaration"; + id: Identifier | StringLiteral; + body: TSModuleBlock | TSModuleDeclaration; + declare?: boolean | null; + global?: boolean | null; +} +interface TSModuleBlock extends BaseNode { + type: "TSModuleBlock"; + body: Array; +} +interface TSImportType extends BaseNode { + type: "TSImportType"; + argument: StringLiteral; + qualifier?: TSEntityName | null; + typeParameters?: TSTypeParameterInstantiation | null; +} +interface TSImportEqualsDeclaration extends BaseNode { + type: "TSImportEqualsDeclaration"; + id: Identifier; + moduleReference: TSEntityName | TSExternalModuleReference; + importKind?: "type" | "value" | null; + isExport: boolean; +} +interface TSExternalModuleReference extends BaseNode { + type: "TSExternalModuleReference"; + expression: StringLiteral; +} +interface TSNonNullExpression extends BaseNode { + type: "TSNonNullExpression"; + expression: Expression; +} +interface TSExportAssignment extends BaseNode { + type: "TSExportAssignment"; + expression: Expression; +} +interface TSNamespaceExportDeclaration extends BaseNode { + type: "TSNamespaceExportDeclaration"; + id: Identifier; +} +interface TSTypeAnnotation extends BaseNode { + type: "TSTypeAnnotation"; + typeAnnotation: TSType; +} +interface TSTypeParameterInstantiation extends BaseNode { + type: "TSTypeParameterInstantiation"; + params: Array; +} +interface TSTypeParameterDeclaration extends BaseNode { + type: "TSTypeParameterDeclaration"; + params: Array; +} +interface TSTypeParameter extends BaseNode { + type: "TSTypeParameter"; + constraint?: TSType | null; + default?: TSType | null; + name: string; +} +declare type Standardized = ArrayExpression | AssignmentExpression | BinaryExpression | InterpreterDirective | Directive | DirectiveLiteral | BlockStatement | BreakStatement | CallExpression | CatchClause | ConditionalExpression | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | File | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Identifier | IfStatement | LabeledStatement | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | Program | ObjectExpression | ObjectMethod | ObjectProperty | RestElement | ReturnStatement | SequenceExpression | ParenthesizedExpression | SwitchCase | SwitchStatement | ThisExpression | ThrowStatement | TryStatement | UnaryExpression | UpdateExpression | VariableDeclaration | VariableDeclarator | WhileStatement | WithStatement | AssignmentPattern | ArrayPattern | ArrowFunctionExpression | ClassBody | ClassExpression | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ExportSpecifier | ForOfStatement | ImportDeclaration | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | MetaProperty | ClassMethod | ObjectPattern | SpreadElement | Super | TaggedTemplateExpression | TemplateElement | TemplateLiteral | YieldExpression | AwaitExpression | Import | BigIntLiteral | ExportNamespaceSpecifier | OptionalMemberExpression | OptionalCallExpression | ClassProperty | ClassAccessorProperty | ClassPrivateProperty | ClassPrivateMethod | PrivateName | StaticBlock; +declare type Expression = ArrayExpression | AssignmentExpression | BinaryExpression | CallExpression | ConditionalExpression | FunctionExpression | Identifier | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | LogicalExpression | MemberExpression | NewExpression | ObjectExpression | SequenceExpression | ParenthesizedExpression | ThisExpression | UnaryExpression | UpdateExpression | ArrowFunctionExpression | ClassExpression | MetaProperty | Super | TaggedTemplateExpression | TemplateLiteral | YieldExpression | AwaitExpression | Import | BigIntLiteral | OptionalMemberExpression | OptionalCallExpression | TypeCastExpression | JSXElement | JSXFragment | BindExpression | DoExpression | RecordExpression | TupleExpression | DecimalLiteral | ModuleExpression | TopicReference | PipelineTopicExpression | PipelineBareFunction | PipelinePrimaryTopicReference | TSAsExpression | TSTypeAssertion | TSNonNullExpression; +declare type Binary = BinaryExpression | LogicalExpression; +declare type Scopable = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ClassExpression | ClassDeclaration | ForOfStatement | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock; +declare type BlockParent = BlockStatement | CatchClause | DoWhileStatement | ForInStatement | ForStatement | FunctionDeclaration | FunctionExpression | Program | ObjectMethod | SwitchStatement | WhileStatement | ArrowFunctionExpression | ForOfStatement | ClassMethod | ClassPrivateMethod | StaticBlock | TSModuleBlock; +declare type Block = BlockStatement | Program | TSModuleBlock; +declare type Statement = BlockStatement | BreakStatement | ContinueStatement | DebuggerStatement | DoWhileStatement | EmptyStatement | ExpressionStatement | ForInStatement | ForStatement | FunctionDeclaration | IfStatement | LabeledStatement | ReturnStatement | SwitchStatement | ThrowStatement | TryStatement | VariableDeclaration | WhileStatement | WithStatement | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ForOfStatement | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias | EnumDeclaration | TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration | TSImportEqualsDeclaration | TSExportAssignment | TSNamespaceExportDeclaration; +declare type Terminatorless = BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement | YieldExpression | AwaitExpression; +declare type CompletionStatement = BreakStatement | ContinueStatement | ReturnStatement | ThrowStatement; +declare type Conditional = ConditionalExpression | IfStatement; +declare type Loop = DoWhileStatement | ForInStatement | ForStatement | WhileStatement | ForOfStatement; +declare type While = DoWhileStatement | WhileStatement; +declare type ExpressionWrapper = ExpressionStatement | ParenthesizedExpression | TypeCastExpression; +declare type For = ForInStatement | ForStatement | ForOfStatement; +declare type ForXStatement = ForInStatement | ForOfStatement; +declare type Function = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod | ClassPrivateMethod; +declare type FunctionParent = FunctionDeclaration | FunctionExpression | ObjectMethod | ArrowFunctionExpression | ClassMethod | ClassPrivateMethod | StaticBlock; +declare type Pureish = FunctionDeclaration | FunctionExpression | StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | ArrowFunctionExpression | BigIntLiteral | DecimalLiteral; +declare type Declaration = FunctionDeclaration | VariableDeclaration | ClassDeclaration | ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias | EnumDeclaration | TSDeclareFunction | TSInterfaceDeclaration | TSTypeAliasDeclaration | TSEnumDeclaration | TSModuleDeclaration; +declare type PatternLike = Identifier | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern; +declare type LVal = Identifier | MemberExpression | RestElement | AssignmentPattern | ArrayPattern | ObjectPattern | TSParameterProperty; +declare type TSEntityName = Identifier | TSQualifiedName; +declare type Literal = StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | TemplateLiteral | BigIntLiteral | DecimalLiteral; +declare type Immutable = StringLiteral | NumericLiteral | NullLiteral | BooleanLiteral | BigIntLiteral | JSXAttribute | JSXClosingElement | JSXElement | JSXExpressionContainer | JSXSpreadChild | JSXOpeningElement | JSXText | JSXFragment | JSXOpeningFragment | JSXClosingFragment | DecimalLiteral; +declare type UserWhitespacable = ObjectMethod | ObjectProperty | ObjectTypeInternalSlot | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty | ObjectTypeSpreadProperty; +declare type Method = ObjectMethod | ClassMethod | ClassPrivateMethod; +declare type ObjectMember = ObjectMethod | ObjectProperty; +declare type Property = ObjectProperty | ClassProperty | ClassAccessorProperty | ClassPrivateProperty; +declare type UnaryLike = UnaryExpression | SpreadElement; +declare type Pattern = AssignmentPattern | ArrayPattern | ObjectPattern; +declare type Class = ClassExpression | ClassDeclaration; +declare type ModuleDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration | ImportDeclaration; +declare type ExportDeclaration = ExportAllDeclaration | ExportDefaultDeclaration | ExportNamedDeclaration; +declare type ModuleSpecifier = ExportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier | ImportSpecifier | ExportNamespaceSpecifier | ExportDefaultSpecifier; +declare type Accessor = ClassAccessorProperty; +declare type Private = ClassPrivateProperty | ClassPrivateMethod | PrivateName; +declare type Flow = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullLiteralTypeAnnotation | ClassImplements | DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | DeclaredPredicate | ExistsTypeAnnotation | FunctionTypeAnnotation | FunctionTypeParam | GenericTypeAnnotation | InferredPredicate | InterfaceExtends | InterfaceDeclaration | InterfaceTypeAnnotation | IntersectionTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NullableTypeAnnotation | NumberLiteralTypeAnnotation | NumberTypeAnnotation | ObjectTypeAnnotation | ObjectTypeInternalSlot | ObjectTypeCallProperty | ObjectTypeIndexer | ObjectTypeProperty | ObjectTypeSpreadProperty | OpaqueType | QualifiedTypeIdentifier | StringLiteralTypeAnnotation | StringTypeAnnotation | SymbolTypeAnnotation | ThisTypeAnnotation | TupleTypeAnnotation | TypeofTypeAnnotation | TypeAlias | TypeAnnotation | TypeCastExpression | TypeParameter | TypeParameterDeclaration | TypeParameterInstantiation | UnionTypeAnnotation | Variance | VoidTypeAnnotation | EnumDeclaration | EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody | EnumBooleanMember | EnumNumberMember | EnumStringMember | EnumDefaultedMember | IndexedAccessType | OptionalIndexedAccessType; +declare type FlowType = AnyTypeAnnotation | ArrayTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullLiteralTypeAnnotation | ExistsTypeAnnotation | FunctionTypeAnnotation | GenericTypeAnnotation | InterfaceTypeAnnotation | IntersectionTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NullableTypeAnnotation | NumberLiteralTypeAnnotation | NumberTypeAnnotation | ObjectTypeAnnotation | StringLiteralTypeAnnotation | StringTypeAnnotation | SymbolTypeAnnotation | ThisTypeAnnotation | TupleTypeAnnotation | TypeofTypeAnnotation | UnionTypeAnnotation | VoidTypeAnnotation | IndexedAccessType | OptionalIndexedAccessType; +declare type FlowBaseAnnotation = AnyTypeAnnotation | BooleanTypeAnnotation | NullLiteralTypeAnnotation | MixedTypeAnnotation | EmptyTypeAnnotation | NumberTypeAnnotation | StringTypeAnnotation | SymbolTypeAnnotation | ThisTypeAnnotation | VoidTypeAnnotation; +declare type FlowDeclaration = DeclareClass | DeclareFunction | DeclareInterface | DeclareModule | DeclareModuleExports | DeclareTypeAlias | DeclareOpaqueType | DeclareVariable | DeclareExportDeclaration | DeclareExportAllDeclaration | InterfaceDeclaration | OpaqueType | TypeAlias; +declare type FlowPredicate = DeclaredPredicate | InferredPredicate; +declare type EnumBody = EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody; +declare type EnumMember = EnumBooleanMember | EnumNumberMember | EnumStringMember | EnumDefaultedMember; +declare type JSX = JSXAttribute | JSXClosingElement | JSXElement | JSXEmptyExpression | JSXExpressionContainer | JSXSpreadChild | JSXIdentifier | JSXMemberExpression | JSXNamespacedName | JSXOpeningElement | JSXSpreadAttribute | JSXText | JSXFragment | JSXOpeningFragment | JSXClosingFragment; +declare type Miscellaneous = Noop | Placeholder | V8IntrinsicIdentifier; +declare type TypeScript = TSParameterProperty | TSDeclareFunction | TSDeclareMethod | TSQualifiedName | TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSPropertySignature | TSMethodSignature | TSIndexSignature | TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSFunctionType | TSConstructorType | TSTypeReference | TSTypePredicate | TSTypeQuery | TSTypeLiteral | TSArrayType | TSTupleType | TSOptionalType | TSRestType | TSNamedTupleMember | TSUnionType | TSIntersectionType | TSConditionalType | TSInferType | TSParenthesizedType | TSTypeOperator | TSIndexedAccessType | TSMappedType | TSLiteralType | TSExpressionWithTypeArguments | TSInterfaceDeclaration | TSInterfaceBody | TSTypeAliasDeclaration | TSAsExpression | TSTypeAssertion | TSEnumDeclaration | TSEnumMember | TSModuleDeclaration | TSModuleBlock | TSImportType | TSImportEqualsDeclaration | TSExternalModuleReference | TSNonNullExpression | TSExportAssignment | TSNamespaceExportDeclaration | TSTypeAnnotation | TSTypeParameterInstantiation | TSTypeParameterDeclaration | TSTypeParameter; +declare type TSTypeElement = TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSPropertySignature | TSMethodSignature | TSIndexSignature; +declare type TSType = TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSFunctionType | TSConstructorType | TSTypeReference | TSTypePredicate | TSTypeQuery | TSTypeLiteral | TSArrayType | TSTupleType | TSOptionalType | TSRestType | TSUnionType | TSIntersectionType | TSConditionalType | TSInferType | TSParenthesizedType | TSTypeOperator | TSIndexedAccessType | TSMappedType | TSLiteralType | TSExpressionWithTypeArguments | TSImportType; +declare type TSBaseType = TSAnyKeyword | TSBooleanKeyword | TSBigIntKeyword | TSIntrinsicKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSLiteralType; +interface Aliases { + Standardized: Standardized; + Expression: Expression; + Binary: Binary; + Scopable: Scopable; + BlockParent: BlockParent; + Block: Block; + Statement: Statement; + Terminatorless: Terminatorless; + CompletionStatement: CompletionStatement; + Conditional: Conditional; + Loop: Loop; + While: While; + ExpressionWrapper: ExpressionWrapper; + For: For; + ForXStatement: ForXStatement; + Function: Function; + FunctionParent: FunctionParent; + Pureish: Pureish; + Declaration: Declaration; + PatternLike: PatternLike; + LVal: LVal; + TSEntityName: TSEntityName; + Literal: Literal; + Immutable: Immutable; + UserWhitespacable: UserWhitespacable; + Method: Method; + ObjectMember: ObjectMember; + Property: Property; + UnaryLike: UnaryLike; + Pattern: Pattern; + Class: Class; + ModuleDeclaration: ModuleDeclaration; + ExportDeclaration: ExportDeclaration; + ModuleSpecifier: ModuleSpecifier; + Accessor: Accessor; + Private: Private; + Flow: Flow; + FlowType: FlowType; + FlowBaseAnnotation: FlowBaseAnnotation; + FlowDeclaration: FlowDeclaration; + FlowPredicate: FlowPredicate; + EnumBody: EnumBody; + EnumMember: EnumMember; + JSX: JSX; + Miscellaneous: Miscellaneous; + TypeScript: TypeScript; + TSTypeElement: TSTypeElement; + TSType: TSType; + TSBaseType: TSBaseType; +} +declare type DeprecatedAliases = NumberLiteral$1 | RegexLiteral$1 | RestProperty$1 | SpreadProperty$1; + +declare function isCompatTag(tagName?: string): boolean; + +declare type ReturnedChild = JSXSpreadChild | JSXElement | JSXFragment | Expression; +declare function buildChildren(node: JSXElement | JSXFragment): ReturnedChild[]; + +declare function assertNode(node?: any): asserts node is Node; + +declare function assertArrayExpression(node: object | null | undefined, opts?: object | null): asserts node is ArrayExpression; +declare function assertAssignmentExpression(node: object | null | undefined, opts?: object | null): asserts node is AssignmentExpression; +declare function assertBinaryExpression(node: object | null | undefined, opts?: object | null): asserts node is BinaryExpression; +declare function assertInterpreterDirective(node: object | null | undefined, opts?: object | null): asserts node is InterpreterDirective; +declare function assertDirective(node: object | null | undefined, opts?: object | null): asserts node is Directive; +declare function assertDirectiveLiteral(node: object | null | undefined, opts?: object | null): asserts node is DirectiveLiteral; +declare function assertBlockStatement(node: object | null | undefined, opts?: object | null): asserts node is BlockStatement; +declare function assertBreakStatement(node: object | null | undefined, opts?: object | null): asserts node is BreakStatement; +declare function assertCallExpression(node: object | null | undefined, opts?: object | null): asserts node is CallExpression; +declare function assertCatchClause(node: object | null | undefined, opts?: object | null): asserts node is CatchClause; +declare function assertConditionalExpression(node: object | null | undefined, opts?: object | null): asserts node is ConditionalExpression; +declare function assertContinueStatement(node: object | null | undefined, opts?: object | null): asserts node is ContinueStatement; +declare function assertDebuggerStatement(node: object | null | undefined, opts?: object | null): asserts node is DebuggerStatement; +declare function assertDoWhileStatement(node: object | null | undefined, opts?: object | null): asserts node is DoWhileStatement; +declare function assertEmptyStatement(node: object | null | undefined, opts?: object | null): asserts node is EmptyStatement; +declare function assertExpressionStatement(node: object | null | undefined, opts?: object | null): asserts node is ExpressionStatement; +declare function assertFile(node: object | null | undefined, opts?: object | null): asserts node is File; +declare function assertForInStatement(node: object | null | undefined, opts?: object | null): asserts node is ForInStatement; +declare function assertForStatement(node: object | null | undefined, opts?: object | null): asserts node is ForStatement; +declare function assertFunctionDeclaration(node: object | null | undefined, opts?: object | null): asserts node is FunctionDeclaration; +declare function assertFunctionExpression(node: object | null | undefined, opts?: object | null): asserts node is FunctionExpression; +declare function assertIdentifier(node: object | null | undefined, opts?: object | null): asserts node is Identifier; +declare function assertIfStatement(node: object | null | undefined, opts?: object | null): asserts node is IfStatement; +declare function assertLabeledStatement(node: object | null | undefined, opts?: object | null): asserts node is LabeledStatement; +declare function assertStringLiteral(node: object | null | undefined, opts?: object | null): asserts node is StringLiteral; +declare function assertNumericLiteral(node: object | null | undefined, opts?: object | null): asserts node is NumericLiteral; +declare function assertNullLiteral(node: object | null | undefined, opts?: object | null): asserts node is NullLiteral; +declare function assertBooleanLiteral(node: object | null | undefined, opts?: object | null): asserts node is BooleanLiteral; +declare function assertRegExpLiteral(node: object | null | undefined, opts?: object | null): asserts node is RegExpLiteral; +declare function assertLogicalExpression(node: object | null | undefined, opts?: object | null): asserts node is LogicalExpression; +declare function assertMemberExpression(node: object | null | undefined, opts?: object | null): asserts node is MemberExpression; +declare function assertNewExpression(node: object | null | undefined, opts?: object | null): asserts node is NewExpression; +declare function assertProgram(node: object | null | undefined, opts?: object | null): asserts node is Program; +declare function assertObjectExpression(node: object | null | undefined, opts?: object | null): asserts node is ObjectExpression; +declare function assertObjectMethod(node: object | null | undefined, opts?: object | null): asserts node is ObjectMethod; +declare function assertObjectProperty(node: object | null | undefined, opts?: object | null): asserts node is ObjectProperty; +declare function assertRestElement(node: object | null | undefined, opts?: object | null): asserts node is RestElement; +declare function assertReturnStatement(node: object | null | undefined, opts?: object | null): asserts node is ReturnStatement; +declare function assertSequenceExpression(node: object | null | undefined, opts?: object | null): asserts node is SequenceExpression; +declare function assertParenthesizedExpression(node: object | null | undefined, opts?: object | null): asserts node is ParenthesizedExpression; +declare function assertSwitchCase(node: object | null | undefined, opts?: object | null): asserts node is SwitchCase; +declare function assertSwitchStatement(node: object | null | undefined, opts?: object | null): asserts node is SwitchStatement; +declare function assertThisExpression(node: object | null | undefined, opts?: object | null): asserts node is ThisExpression; +declare function assertThrowStatement(node: object | null | undefined, opts?: object | null): asserts node is ThrowStatement; +declare function assertTryStatement(node: object | null | undefined, opts?: object | null): asserts node is TryStatement; +declare function assertUnaryExpression(node: object | null | undefined, opts?: object | null): asserts node is UnaryExpression; +declare function assertUpdateExpression(node: object | null | undefined, opts?: object | null): asserts node is UpdateExpression; +declare function assertVariableDeclaration(node: object | null | undefined, opts?: object | null): asserts node is VariableDeclaration; +declare function assertVariableDeclarator(node: object | null | undefined, opts?: object | null): asserts node is VariableDeclarator; +declare function assertWhileStatement(node: object | null | undefined, opts?: object | null): asserts node is WhileStatement; +declare function assertWithStatement(node: object | null | undefined, opts?: object | null): asserts node is WithStatement; +declare function assertAssignmentPattern(node: object | null | undefined, opts?: object | null): asserts node is AssignmentPattern; +declare function assertArrayPattern(node: object | null | undefined, opts?: object | null): asserts node is ArrayPattern; +declare function assertArrowFunctionExpression(node: object | null | undefined, opts?: object | null): asserts node is ArrowFunctionExpression; +declare function assertClassBody(node: object | null | undefined, opts?: object | null): asserts node is ClassBody; +declare function assertClassExpression(node: object | null | undefined, opts?: object | null): asserts node is ClassExpression; +declare function assertClassDeclaration(node: object | null | undefined, opts?: object | null): asserts node is ClassDeclaration; +declare function assertExportAllDeclaration(node: object | null | undefined, opts?: object | null): asserts node is ExportAllDeclaration; +declare function assertExportDefaultDeclaration(node: object | null | undefined, opts?: object | null): asserts node is ExportDefaultDeclaration; +declare function assertExportNamedDeclaration(node: object | null | undefined, opts?: object | null): asserts node is ExportNamedDeclaration; +declare function assertExportSpecifier(node: object | null | undefined, opts?: object | null): asserts node is ExportSpecifier; +declare function assertForOfStatement(node: object | null | undefined, opts?: object | null): asserts node is ForOfStatement; +declare function assertImportDeclaration(node: object | null | undefined, opts?: object | null): asserts node is ImportDeclaration; +declare function assertImportDefaultSpecifier(node: object | null | undefined, opts?: object | null): asserts node is ImportDefaultSpecifier; +declare function assertImportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): asserts node is ImportNamespaceSpecifier; +declare function assertImportSpecifier(node: object | null | undefined, opts?: object | null): asserts node is ImportSpecifier; +declare function assertMetaProperty(node: object | null | undefined, opts?: object | null): asserts node is MetaProperty; +declare function assertClassMethod(node: object | null | undefined, opts?: object | null): asserts node is ClassMethod; +declare function assertObjectPattern(node: object | null | undefined, opts?: object | null): asserts node is ObjectPattern; +declare function assertSpreadElement(node: object | null | undefined, opts?: object | null): asserts node is SpreadElement; +declare function assertSuper(node: object | null | undefined, opts?: object | null): asserts node is Super; +declare function assertTaggedTemplateExpression(node: object | null | undefined, opts?: object | null): asserts node is TaggedTemplateExpression; +declare function assertTemplateElement(node: object | null | undefined, opts?: object | null): asserts node is TemplateElement; +declare function assertTemplateLiteral(node: object | null | undefined, opts?: object | null): asserts node is TemplateLiteral; +declare function assertYieldExpression(node: object | null | undefined, opts?: object | null): asserts node is YieldExpression; +declare function assertAwaitExpression(node: object | null | undefined, opts?: object | null): asserts node is AwaitExpression; +declare function assertImport(node: object | null | undefined, opts?: object | null): asserts node is Import; +declare function assertBigIntLiteral(node: object | null | undefined, opts?: object | null): asserts node is BigIntLiteral; +declare function assertExportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): asserts node is ExportNamespaceSpecifier; +declare function assertOptionalMemberExpression(node: object | null | undefined, opts?: object | null): asserts node is OptionalMemberExpression; +declare function assertOptionalCallExpression(node: object | null | undefined, opts?: object | null): asserts node is OptionalCallExpression; +declare function assertClassProperty(node: object | null | undefined, opts?: object | null): asserts node is ClassProperty; +declare function assertClassAccessorProperty(node: object | null | undefined, opts?: object | null): asserts node is ClassAccessorProperty; +declare function assertClassPrivateProperty(node: object | null | undefined, opts?: object | null): asserts node is ClassPrivateProperty; +declare function assertClassPrivateMethod(node: object | null | undefined, opts?: object | null): asserts node is ClassPrivateMethod; +declare function assertPrivateName(node: object | null | undefined, opts?: object | null): asserts node is PrivateName; +declare function assertStaticBlock(node: object | null | undefined, opts?: object | null): asserts node is StaticBlock; +declare function assertAnyTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is AnyTypeAnnotation; +declare function assertArrayTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is ArrayTypeAnnotation; +declare function assertBooleanTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is BooleanTypeAnnotation; +declare function assertBooleanLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is BooleanLiteralTypeAnnotation; +declare function assertNullLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is NullLiteralTypeAnnotation; +declare function assertClassImplements(node: object | null | undefined, opts?: object | null): asserts node is ClassImplements; +declare function assertDeclareClass(node: object | null | undefined, opts?: object | null): asserts node is DeclareClass; +declare function assertDeclareFunction(node: object | null | undefined, opts?: object | null): asserts node is DeclareFunction; +declare function assertDeclareInterface(node: object | null | undefined, opts?: object | null): asserts node is DeclareInterface; +declare function assertDeclareModule(node: object | null | undefined, opts?: object | null): asserts node is DeclareModule; +declare function assertDeclareModuleExports(node: object | null | undefined, opts?: object | null): asserts node is DeclareModuleExports; +declare function assertDeclareTypeAlias(node: object | null | undefined, opts?: object | null): asserts node is DeclareTypeAlias; +declare function assertDeclareOpaqueType(node: object | null | undefined, opts?: object | null): asserts node is DeclareOpaqueType; +declare function assertDeclareVariable(node: object | null | undefined, opts?: object | null): asserts node is DeclareVariable; +declare function assertDeclareExportDeclaration(node: object | null | undefined, opts?: object | null): asserts node is DeclareExportDeclaration; +declare function assertDeclareExportAllDeclaration(node: object | null | undefined, opts?: object | null): asserts node is DeclareExportAllDeclaration; +declare function assertDeclaredPredicate(node: object | null | undefined, opts?: object | null): asserts node is DeclaredPredicate; +declare function assertExistsTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is ExistsTypeAnnotation; +declare function assertFunctionTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is FunctionTypeAnnotation; +declare function assertFunctionTypeParam(node: object | null | undefined, opts?: object | null): asserts node is FunctionTypeParam; +declare function assertGenericTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is GenericTypeAnnotation; +declare function assertInferredPredicate(node: object | null | undefined, opts?: object | null): asserts node is InferredPredicate; +declare function assertInterfaceExtends(node: object | null | undefined, opts?: object | null): asserts node is InterfaceExtends; +declare function assertInterfaceDeclaration(node: object | null | undefined, opts?: object | null): asserts node is InterfaceDeclaration; +declare function assertInterfaceTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is InterfaceTypeAnnotation; +declare function assertIntersectionTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is IntersectionTypeAnnotation; +declare function assertMixedTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is MixedTypeAnnotation; +declare function assertEmptyTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is EmptyTypeAnnotation; +declare function assertNullableTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is NullableTypeAnnotation; +declare function assertNumberLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is NumberLiteralTypeAnnotation; +declare function assertNumberTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is NumberTypeAnnotation; +declare function assertObjectTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is ObjectTypeAnnotation; +declare function assertObjectTypeInternalSlot(node: object | null | undefined, opts?: object | null): asserts node is ObjectTypeInternalSlot; +declare function assertObjectTypeCallProperty(node: object | null | undefined, opts?: object | null): asserts node is ObjectTypeCallProperty; +declare function assertObjectTypeIndexer(node: object | null | undefined, opts?: object | null): asserts node is ObjectTypeIndexer; +declare function assertObjectTypeProperty(node: object | null | undefined, opts?: object | null): asserts node is ObjectTypeProperty; +declare function assertObjectTypeSpreadProperty(node: object | null | undefined, opts?: object | null): asserts node is ObjectTypeSpreadProperty; +declare function assertOpaqueType(node: object | null | undefined, opts?: object | null): asserts node is OpaqueType; +declare function assertQualifiedTypeIdentifier(node: object | null | undefined, opts?: object | null): asserts node is QualifiedTypeIdentifier; +declare function assertStringLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is StringLiteralTypeAnnotation; +declare function assertStringTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is StringTypeAnnotation; +declare function assertSymbolTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is SymbolTypeAnnotation; +declare function assertThisTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is ThisTypeAnnotation; +declare function assertTupleTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is TupleTypeAnnotation; +declare function assertTypeofTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is TypeofTypeAnnotation; +declare function assertTypeAlias(node: object | null | undefined, opts?: object | null): asserts node is TypeAlias; +declare function assertTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is TypeAnnotation; +declare function assertTypeCastExpression(node: object | null | undefined, opts?: object | null): asserts node is TypeCastExpression; +declare function assertTypeParameter(node: object | null | undefined, opts?: object | null): asserts node is TypeParameter; +declare function assertTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): asserts node is TypeParameterDeclaration; +declare function assertTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): asserts node is TypeParameterInstantiation; +declare function assertUnionTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is UnionTypeAnnotation; +declare function assertVariance(node: object | null | undefined, opts?: object | null): asserts node is Variance; +declare function assertVoidTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is VoidTypeAnnotation; +declare function assertEnumDeclaration(node: object | null | undefined, opts?: object | null): asserts node is EnumDeclaration; +declare function assertEnumBooleanBody(node: object | null | undefined, opts?: object | null): asserts node is EnumBooleanBody; +declare function assertEnumNumberBody(node: object | null | undefined, opts?: object | null): asserts node is EnumNumberBody; +declare function assertEnumStringBody(node: object | null | undefined, opts?: object | null): asserts node is EnumStringBody; +declare function assertEnumSymbolBody(node: object | null | undefined, opts?: object | null): asserts node is EnumSymbolBody; +declare function assertEnumBooleanMember(node: object | null | undefined, opts?: object | null): asserts node is EnumBooleanMember; +declare function assertEnumNumberMember(node: object | null | undefined, opts?: object | null): asserts node is EnumNumberMember; +declare function assertEnumStringMember(node: object | null | undefined, opts?: object | null): asserts node is EnumStringMember; +declare function assertEnumDefaultedMember(node: object | null | undefined, opts?: object | null): asserts node is EnumDefaultedMember; +declare function assertIndexedAccessType(node: object | null | undefined, opts?: object | null): asserts node is IndexedAccessType; +declare function assertOptionalIndexedAccessType(node: object | null | undefined, opts?: object | null): asserts node is OptionalIndexedAccessType; +declare function assertJSXAttribute(node: object | null | undefined, opts?: object | null): asserts node is JSXAttribute; +declare function assertJSXClosingElement(node: object | null | undefined, opts?: object | null): asserts node is JSXClosingElement; +declare function assertJSXElement(node: object | null | undefined, opts?: object | null): asserts node is JSXElement; +declare function assertJSXEmptyExpression(node: object | null | undefined, opts?: object | null): asserts node is JSXEmptyExpression; +declare function assertJSXExpressionContainer(node: object | null | undefined, opts?: object | null): asserts node is JSXExpressionContainer; +declare function assertJSXSpreadChild(node: object | null | undefined, opts?: object | null): asserts node is JSXSpreadChild; +declare function assertJSXIdentifier(node: object | null | undefined, opts?: object | null): asserts node is JSXIdentifier; +declare function assertJSXMemberExpression(node: object | null | undefined, opts?: object | null): asserts node is JSXMemberExpression; +declare function assertJSXNamespacedName(node: object | null | undefined, opts?: object | null): asserts node is JSXNamespacedName; +declare function assertJSXOpeningElement(node: object | null | undefined, opts?: object | null): asserts node is JSXOpeningElement; +declare function assertJSXSpreadAttribute(node: object | null | undefined, opts?: object | null): asserts node is JSXSpreadAttribute; +declare function assertJSXText(node: object | null | undefined, opts?: object | null): asserts node is JSXText; +declare function assertJSXFragment(node: object | null | undefined, opts?: object | null): asserts node is JSXFragment; +declare function assertJSXOpeningFragment(node: object | null | undefined, opts?: object | null): asserts node is JSXOpeningFragment; +declare function assertJSXClosingFragment(node: object | null | undefined, opts?: object | null): asserts node is JSXClosingFragment; +declare function assertNoop(node: object | null | undefined, opts?: object | null): asserts node is Noop; +declare function assertPlaceholder(node: object | null | undefined, opts?: object | null): asserts node is Placeholder; +declare function assertV8IntrinsicIdentifier(node: object | null | undefined, opts?: object | null): asserts node is V8IntrinsicIdentifier; +declare function assertArgumentPlaceholder(node: object | null | undefined, opts?: object | null): asserts node is ArgumentPlaceholder; +declare function assertBindExpression(node: object | null | undefined, opts?: object | null): asserts node is BindExpression; +declare function assertImportAttribute(node: object | null | undefined, opts?: object | null): asserts node is ImportAttribute; +declare function assertDecorator(node: object | null | undefined, opts?: object | null): asserts node is Decorator; +declare function assertDoExpression(node: object | null | undefined, opts?: object | null): asserts node is DoExpression; +declare function assertExportDefaultSpecifier(node: object | null | undefined, opts?: object | null): asserts node is ExportDefaultSpecifier; +declare function assertRecordExpression(node: object | null | undefined, opts?: object | null): asserts node is RecordExpression; +declare function assertTupleExpression(node: object | null | undefined, opts?: object | null): asserts node is TupleExpression; +declare function assertDecimalLiteral(node: object | null | undefined, opts?: object | null): asserts node is DecimalLiteral; +declare function assertModuleExpression(node: object | null | undefined, opts?: object | null): asserts node is ModuleExpression; +declare function assertTopicReference(node: object | null | undefined, opts?: object | null): asserts node is TopicReference; +declare function assertPipelineTopicExpression(node: object | null | undefined, opts?: object | null): asserts node is PipelineTopicExpression; +declare function assertPipelineBareFunction(node: object | null | undefined, opts?: object | null): asserts node is PipelineBareFunction; +declare function assertPipelinePrimaryTopicReference(node: object | null | undefined, opts?: object | null): asserts node is PipelinePrimaryTopicReference; +declare function assertTSParameterProperty(node: object | null | undefined, opts?: object | null): asserts node is TSParameterProperty; +declare function assertTSDeclareFunction(node: object | null | undefined, opts?: object | null): asserts node is TSDeclareFunction; +declare function assertTSDeclareMethod(node: object | null | undefined, opts?: object | null): asserts node is TSDeclareMethod; +declare function assertTSQualifiedName(node: object | null | undefined, opts?: object | null): asserts node is TSQualifiedName; +declare function assertTSCallSignatureDeclaration(node: object | null | undefined, opts?: object | null): asserts node is TSCallSignatureDeclaration; +declare function assertTSConstructSignatureDeclaration(node: object | null | undefined, opts?: object | null): asserts node is TSConstructSignatureDeclaration; +declare function assertTSPropertySignature(node: object | null | undefined, opts?: object | null): asserts node is TSPropertySignature; +declare function assertTSMethodSignature(node: object | null | undefined, opts?: object | null): asserts node is TSMethodSignature; +declare function assertTSIndexSignature(node: object | null | undefined, opts?: object | null): asserts node is TSIndexSignature; +declare function assertTSAnyKeyword(node: object | null | undefined, opts?: object | null): asserts node is TSAnyKeyword; +declare function assertTSBooleanKeyword(node: object | null | undefined, opts?: object | null): asserts node is TSBooleanKeyword; +declare function assertTSBigIntKeyword(node: object | null | undefined, opts?: object | null): asserts node is TSBigIntKeyword; +declare function assertTSIntrinsicKeyword(node: object | null | undefined, opts?: object | null): asserts node is TSIntrinsicKeyword; +declare function assertTSNeverKeyword(node: object | null | undefined, opts?: object | null): asserts node is TSNeverKeyword; +declare function assertTSNullKeyword(node: object | null | undefined, opts?: object | null): asserts node is TSNullKeyword; +declare function assertTSNumberKeyword(node: object | null | undefined, opts?: object | null): asserts node is TSNumberKeyword; +declare function assertTSObjectKeyword(node: object | null | undefined, opts?: object | null): asserts node is TSObjectKeyword; +declare function assertTSStringKeyword(node: object | null | undefined, opts?: object | null): asserts node is TSStringKeyword; +declare function assertTSSymbolKeyword(node: object | null | undefined, opts?: object | null): asserts node is TSSymbolKeyword; +declare function assertTSUndefinedKeyword(node: object | null | undefined, opts?: object | null): asserts node is TSUndefinedKeyword; +declare function assertTSUnknownKeyword(node: object | null | undefined, opts?: object | null): asserts node is TSUnknownKeyword; +declare function assertTSVoidKeyword(node: object | null | undefined, opts?: object | null): asserts node is TSVoidKeyword; +declare function assertTSThisType(node: object | null | undefined, opts?: object | null): asserts node is TSThisType; +declare function assertTSFunctionType(node: object | null | undefined, opts?: object | null): asserts node is TSFunctionType; +declare function assertTSConstructorType(node: object | null | undefined, opts?: object | null): asserts node is TSConstructorType; +declare function assertTSTypeReference(node: object | null | undefined, opts?: object | null): asserts node is TSTypeReference; +declare function assertTSTypePredicate(node: object | null | undefined, opts?: object | null): asserts node is TSTypePredicate; +declare function assertTSTypeQuery(node: object | null | undefined, opts?: object | null): asserts node is TSTypeQuery; +declare function assertTSTypeLiteral(node: object | null | undefined, opts?: object | null): asserts node is TSTypeLiteral; +declare function assertTSArrayType(node: object | null | undefined, opts?: object | null): asserts node is TSArrayType; +declare function assertTSTupleType(node: object | null | undefined, opts?: object | null): asserts node is TSTupleType; +declare function assertTSOptionalType(node: object | null | undefined, opts?: object | null): asserts node is TSOptionalType; +declare function assertTSRestType(node: object | null | undefined, opts?: object | null): asserts node is TSRestType; +declare function assertTSNamedTupleMember(node: object | null | undefined, opts?: object | null): asserts node is TSNamedTupleMember; +declare function assertTSUnionType(node: object | null | undefined, opts?: object | null): asserts node is TSUnionType; +declare function assertTSIntersectionType(node: object | null | undefined, opts?: object | null): asserts node is TSIntersectionType; +declare function assertTSConditionalType(node: object | null | undefined, opts?: object | null): asserts node is TSConditionalType; +declare function assertTSInferType(node: object | null | undefined, opts?: object | null): asserts node is TSInferType; +declare function assertTSParenthesizedType(node: object | null | undefined, opts?: object | null): asserts node is TSParenthesizedType; +declare function assertTSTypeOperator(node: object | null | undefined, opts?: object | null): asserts node is TSTypeOperator; +declare function assertTSIndexedAccessType(node: object | null | undefined, opts?: object | null): asserts node is TSIndexedAccessType; +declare function assertTSMappedType(node: object | null | undefined, opts?: object | null): asserts node is TSMappedType; +declare function assertTSLiteralType(node: object | null | undefined, opts?: object | null): asserts node is TSLiteralType; +declare function assertTSExpressionWithTypeArguments(node: object | null | undefined, opts?: object | null): asserts node is TSExpressionWithTypeArguments; +declare function assertTSInterfaceDeclaration(node: object | null | undefined, opts?: object | null): asserts node is TSInterfaceDeclaration; +declare function assertTSInterfaceBody(node: object | null | undefined, opts?: object | null): asserts node is TSInterfaceBody; +declare function assertTSTypeAliasDeclaration(node: object | null | undefined, opts?: object | null): asserts node is TSTypeAliasDeclaration; +declare function assertTSAsExpression(node: object | null | undefined, opts?: object | null): asserts node is TSAsExpression; +declare function assertTSTypeAssertion(node: object | null | undefined, opts?: object | null): asserts node is TSTypeAssertion; +declare function assertTSEnumDeclaration(node: object | null | undefined, opts?: object | null): asserts node is TSEnumDeclaration; +declare function assertTSEnumMember(node: object | null | undefined, opts?: object | null): asserts node is TSEnumMember; +declare function assertTSModuleDeclaration(node: object | null | undefined, opts?: object | null): asserts node is TSModuleDeclaration; +declare function assertTSModuleBlock(node: object | null | undefined, opts?: object | null): asserts node is TSModuleBlock; +declare function assertTSImportType(node: object | null | undefined, opts?: object | null): asserts node is TSImportType; +declare function assertTSImportEqualsDeclaration(node: object | null | undefined, opts?: object | null): asserts node is TSImportEqualsDeclaration; +declare function assertTSExternalModuleReference(node: object | null | undefined, opts?: object | null): asserts node is TSExternalModuleReference; +declare function assertTSNonNullExpression(node: object | null | undefined, opts?: object | null): asserts node is TSNonNullExpression; +declare function assertTSExportAssignment(node: object | null | undefined, opts?: object | null): asserts node is TSExportAssignment; +declare function assertTSNamespaceExportDeclaration(node: object | null | undefined, opts?: object | null): asserts node is TSNamespaceExportDeclaration; +declare function assertTSTypeAnnotation(node: object | null | undefined, opts?: object | null): asserts node is TSTypeAnnotation; +declare function assertTSTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): asserts node is TSTypeParameterInstantiation; +declare function assertTSTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): asserts node is TSTypeParameterDeclaration; +declare function assertTSTypeParameter(node: object | null | undefined, opts?: object | null): asserts node is TSTypeParameter; +declare function assertStandardized(node: object | null | undefined, opts?: object | null): asserts node is Standardized; +declare function assertExpression(node: object | null | undefined, opts?: object | null): asserts node is Expression; +declare function assertBinary(node: object | null | undefined, opts?: object | null): asserts node is Binary; +declare function assertScopable(node: object | null | undefined, opts?: object | null): asserts node is Scopable; +declare function assertBlockParent(node: object | null | undefined, opts?: object | null): asserts node is BlockParent; +declare function assertBlock(node: object | null | undefined, opts?: object | null): asserts node is Block; +declare function assertStatement(node: object | null | undefined, opts?: object | null): asserts node is Statement; +declare function assertTerminatorless(node: object | null | undefined, opts?: object | null): asserts node is Terminatorless; +declare function assertCompletionStatement(node: object | null | undefined, opts?: object | null): asserts node is CompletionStatement; +declare function assertConditional(node: object | null | undefined, opts?: object | null): asserts node is Conditional; +declare function assertLoop(node: object | null | undefined, opts?: object | null): asserts node is Loop; +declare function assertWhile(node: object | null | undefined, opts?: object | null): asserts node is While; +declare function assertExpressionWrapper(node: object | null | undefined, opts?: object | null): asserts node is ExpressionWrapper; +declare function assertFor(node: object | null | undefined, opts?: object | null): asserts node is For; +declare function assertForXStatement(node: object | null | undefined, opts?: object | null): asserts node is ForXStatement; +declare function assertFunction(node: object | null | undefined, opts?: object | null): asserts node is Function; +declare function assertFunctionParent(node: object | null | undefined, opts?: object | null): asserts node is FunctionParent; +declare function assertPureish(node: object | null | undefined, opts?: object | null): asserts node is Pureish; +declare function assertDeclaration(node: object | null | undefined, opts?: object | null): asserts node is Declaration; +declare function assertPatternLike(node: object | null | undefined, opts?: object | null): asserts node is PatternLike; +declare function assertLVal(node: object | null | undefined, opts?: object | null): asserts node is LVal; +declare function assertTSEntityName(node: object | null | undefined, opts?: object | null): asserts node is TSEntityName; +declare function assertLiteral(node: object | null | undefined, opts?: object | null): asserts node is Literal; +declare function assertImmutable(node: object | null | undefined, opts?: object | null): asserts node is Immutable; +declare function assertUserWhitespacable(node: object | null | undefined, opts?: object | null): asserts node is UserWhitespacable; +declare function assertMethod(node: object | null | undefined, opts?: object | null): asserts node is Method; +declare function assertObjectMember(node: object | null | undefined, opts?: object | null): asserts node is ObjectMember; +declare function assertProperty(node: object | null | undefined, opts?: object | null): asserts node is Property; +declare function assertUnaryLike(node: object | null | undefined, opts?: object | null): asserts node is UnaryLike; +declare function assertPattern(node: object | null | undefined, opts?: object | null): asserts node is Pattern; +declare function assertClass(node: object | null | undefined, opts?: object | null): asserts node is Class; +declare function assertModuleDeclaration(node: object | null | undefined, opts?: object | null): asserts node is ModuleDeclaration; +declare function assertExportDeclaration(node: object | null | undefined, opts?: object | null): asserts node is ExportDeclaration; +declare function assertModuleSpecifier(node: object | null | undefined, opts?: object | null): asserts node is ModuleSpecifier; +declare function assertAccessor(node: object | null | undefined, opts?: object | null): asserts node is Accessor; +declare function assertPrivate(node: object | null | undefined, opts?: object | null): asserts node is Private; +declare function assertFlow(node: object | null | undefined, opts?: object | null): asserts node is Flow; +declare function assertFlowType(node: object | null | undefined, opts?: object | null): asserts node is FlowType; +declare function assertFlowBaseAnnotation(node: object | null | undefined, opts?: object | null): asserts node is FlowBaseAnnotation; +declare function assertFlowDeclaration(node: object | null | undefined, opts?: object | null): asserts node is FlowDeclaration; +declare function assertFlowPredicate(node: object | null | undefined, opts?: object | null): asserts node is FlowPredicate; +declare function assertEnumBody(node: object | null | undefined, opts?: object | null): asserts node is EnumBody; +declare function assertEnumMember(node: object | null | undefined, opts?: object | null): asserts node is EnumMember; +declare function assertJSX(node: object | null | undefined, opts?: object | null): asserts node is JSX; +declare function assertMiscellaneous(node: object | null | undefined, opts?: object | null): asserts node is Miscellaneous; +declare function assertTypeScript(node: object | null | undefined, opts?: object | null): asserts node is TypeScript; +declare function assertTSTypeElement(node: object | null | undefined, opts?: object | null): asserts node is TSTypeElement; +declare function assertTSType(node: object | null | undefined, opts?: object | null): asserts node is TSType; +declare function assertTSBaseType(node: object | null | undefined, opts?: object | null): asserts node is TSBaseType; +declare function assertNumberLiteral(node: any, opts: any): void; +declare function assertRegexLiteral(node: any, opts: any): void; +declare function assertRestProperty(node: any, opts: any): void; +declare function assertSpreadProperty(node: any, opts: any): void; + +declare const _default$4: { + (type: "string"): StringTypeAnnotation; + (type: "number"): NumberTypeAnnotation; + (type: "undefined"): VoidTypeAnnotation; + (type: "boolean"): BooleanTypeAnnotation; + (type: "function"): GenericTypeAnnotation; + (type: "object"): GenericTypeAnnotation; + (type: "symbol"): GenericTypeAnnotation; + (type: "bigint"): AnyTypeAnnotation; +}; +//# sourceMappingURL=createTypeAnnotationBasedOnTypeof.d.ts.map + +/** + * Takes an array of `types` and flattens them, removing duplicates and + * returns a `UnionTypeAnnotation` node containing them. + */ +declare function createFlowUnionType(types: [T] | Array): T | UnionTypeAnnotation; + +/** + * Takes an array of `types` and flattens them, removing duplicates and + * returns a `UnionTypeAnnotation` node containing them. + */ +declare function createTSUnionType(typeAnnotations: Array): TSType; + +declare function arrayExpression(elements?: Array): ArrayExpression; +declare function assignmentExpression(operator: string, left: LVal, right: Expression): AssignmentExpression; +declare function binaryExpression(operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=", left: Expression | PrivateName, right: Expression): BinaryExpression; +declare function interpreterDirective(value: string): InterpreterDirective; +declare function directive(value: DirectiveLiteral): Directive; +declare function directiveLiteral(value: string): DirectiveLiteral; +declare function blockStatement(body: Array, directives?: Array): BlockStatement; +declare function breakStatement(label?: Identifier | null): BreakStatement; +declare function callExpression(callee: Expression | V8IntrinsicIdentifier, _arguments: Array): CallExpression; +declare function catchClause(param: Identifier | ArrayPattern | ObjectPattern | null | undefined, body: BlockStatement): CatchClause; +declare function conditionalExpression(test: Expression, consequent: Expression, alternate: Expression): ConditionalExpression; +declare function continueStatement(label?: Identifier | null): ContinueStatement; +declare function debuggerStatement(): DebuggerStatement; +declare function doWhileStatement(test: Expression, body: Statement): DoWhileStatement; +declare function emptyStatement(): EmptyStatement; +declare function expressionStatement(expression: Expression): ExpressionStatement; +declare function file(program: Program, comments?: Array | null, tokens?: Array | null): File; +declare function forInStatement(left: VariableDeclaration | LVal, right: Expression, body: Statement): ForInStatement; +declare function forStatement(init: VariableDeclaration | Expression | null | undefined, test: Expression | null | undefined, update: Expression | null | undefined, body: Statement): ForStatement; +declare function functionDeclaration(id: Identifier | null | undefined, params: Array, body: BlockStatement, generator?: boolean, async?: boolean): FunctionDeclaration; +declare function functionExpression(id: Identifier | null | undefined, params: Array, body: BlockStatement, generator?: boolean, async?: boolean): FunctionExpression; +declare function identifier(name: string): Identifier; +declare function ifStatement(test: Expression, consequent: Statement, alternate?: Statement | null): IfStatement; +declare function labeledStatement(label: Identifier, body: Statement): LabeledStatement; +declare function stringLiteral(value: string): StringLiteral; +declare function numericLiteral(value: number): NumericLiteral; +declare function nullLiteral(): NullLiteral; +declare function booleanLiteral(value: boolean): BooleanLiteral; +declare function regExpLiteral(pattern: string, flags?: string): RegExpLiteral; +declare function logicalExpression(operator: "||" | "&&" | "??", left: Expression, right: Expression): LogicalExpression; +declare function memberExpression(object: Expression, property: Expression | Identifier | PrivateName, computed?: boolean, optional?: true | false | null): MemberExpression; +declare function newExpression(callee: Expression | V8IntrinsicIdentifier, _arguments: Array): NewExpression; +declare function program(body: Array, directives?: Array, sourceType?: "script" | "module", interpreter?: InterpreterDirective | null): Program; +declare function objectExpression(properties: Array): ObjectExpression; +declare function objectMethod(kind: "method" | "get" | "set" | undefined, key: Expression | Identifier | StringLiteral | NumericLiteral, params: Array, body: BlockStatement, computed?: boolean, generator?: boolean, async?: boolean): ObjectMethod; +declare function objectProperty(key: Expression | Identifier | StringLiteral | NumericLiteral, value: Expression | PatternLike, computed?: boolean, shorthand?: boolean, decorators?: Array | null): ObjectProperty; +declare function restElement(argument: LVal): RestElement; +declare function returnStatement(argument?: Expression | null): ReturnStatement; +declare function sequenceExpression(expressions: Array): SequenceExpression; +declare function parenthesizedExpression(expression: Expression): ParenthesizedExpression; +declare function switchCase(test: Expression | null | undefined, consequent: Array): SwitchCase; +declare function switchStatement(discriminant: Expression, cases: Array): SwitchStatement; +declare function thisExpression(): ThisExpression; +declare function throwStatement(argument: Expression): ThrowStatement; +declare function tryStatement(block: BlockStatement, handler?: CatchClause | null, finalizer?: BlockStatement | null): TryStatement; +declare function unaryExpression(operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof", argument: Expression, prefix?: boolean): UnaryExpression; +declare function updateExpression(operator: "++" | "--", argument: Expression, prefix?: boolean): UpdateExpression; +declare function variableDeclaration(kind: "var" | "let" | "const", declarations: Array): VariableDeclaration; +declare function variableDeclarator(id: LVal, init?: Expression | null): VariableDeclarator; +declare function whileStatement(test: Expression, body: Statement): WhileStatement; +declare function withStatement(object: Expression, body: Statement): WithStatement; +declare function assignmentPattern(left: Identifier | ObjectPattern | ArrayPattern | MemberExpression, right: Expression): AssignmentPattern; +declare function arrayPattern(elements: Array): ArrayPattern; +declare function arrowFunctionExpression(params: Array, body: BlockStatement | Expression, async?: boolean): ArrowFunctionExpression; +declare function classBody(body: Array): ClassBody; +declare function classExpression(id: Identifier | null | undefined, superClass: Expression | null | undefined, body: ClassBody, decorators?: Array | null): ClassExpression; +declare function classDeclaration(id: Identifier, superClass: Expression | null | undefined, body: ClassBody, decorators?: Array | null): ClassDeclaration; +declare function exportAllDeclaration(source: StringLiteral): ExportAllDeclaration; +declare function exportDefaultDeclaration(declaration: FunctionDeclaration | TSDeclareFunction | ClassDeclaration | Expression): ExportDefaultDeclaration; +declare function exportNamedDeclaration(declaration?: Declaration | null, specifiers?: Array, source?: StringLiteral | null): ExportNamedDeclaration; +declare function exportSpecifier(local: Identifier, exported: Identifier | StringLiteral): ExportSpecifier; +declare function forOfStatement(left: VariableDeclaration | LVal, right: Expression, body: Statement, _await?: boolean): ForOfStatement; +declare function importDeclaration(specifiers: Array, source: StringLiteral): ImportDeclaration; +declare function importDefaultSpecifier(local: Identifier): ImportDefaultSpecifier; +declare function importNamespaceSpecifier(local: Identifier): ImportNamespaceSpecifier; +declare function importSpecifier(local: Identifier, imported: Identifier | StringLiteral): ImportSpecifier; +declare function metaProperty(meta: Identifier, property: Identifier): MetaProperty; +declare function classMethod(kind: "get" | "set" | "method" | "constructor" | undefined, key: Identifier | StringLiteral | NumericLiteral | Expression, params: Array, body: BlockStatement, computed?: boolean, _static?: boolean, generator?: boolean, async?: boolean): ClassMethod; +declare function objectPattern(properties: Array): ObjectPattern; +declare function spreadElement(argument: Expression): SpreadElement; +declare function _super(): Super; + +declare function taggedTemplateExpression(tag: Expression, quasi: TemplateLiteral): TaggedTemplateExpression; +declare function templateElement(value: { + raw: string; + cooked?: string; +}, tail?: boolean): TemplateElement; +declare function templateLiteral(quasis: Array, expressions: Array): TemplateLiteral; +declare function yieldExpression(argument?: Expression | null, delegate?: boolean): YieldExpression; +declare function awaitExpression(argument: Expression): AwaitExpression; +declare function _import(): Import; + +declare function bigIntLiteral(value: string): BigIntLiteral; +declare function exportNamespaceSpecifier(exported: Identifier): ExportNamespaceSpecifier; +declare function optionalMemberExpression(object: Expression, property: Expression | Identifier, computed: boolean | undefined, optional: boolean): OptionalMemberExpression; +declare function optionalCallExpression(callee: Expression, _arguments: Array, optional: boolean): OptionalCallExpression; +declare function classProperty(key: Identifier | StringLiteral | NumericLiteral | Expression, value?: Expression | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null, decorators?: Array | null, computed?: boolean, _static?: boolean): ClassProperty; +declare function classAccessorProperty(key: Identifier | StringLiteral | NumericLiteral | Expression | PrivateName, value?: Expression | null, typeAnnotation?: TypeAnnotation | TSTypeAnnotation | Noop | null, decorators?: Array | null, computed?: boolean, _static?: boolean): ClassAccessorProperty; +declare function classPrivateProperty(key: PrivateName, value: Expression | null | undefined, decorators: Array | null | undefined, _static: any): ClassPrivateProperty; +declare function classPrivateMethod(kind: "get" | "set" | "method" | "constructor" | undefined, key: PrivateName, params: Array, body: BlockStatement, _static?: boolean): ClassPrivateMethod; +declare function privateName(id: Identifier): PrivateName; +declare function staticBlock(body: Array): StaticBlock; +declare function anyTypeAnnotation(): AnyTypeAnnotation; +declare function arrayTypeAnnotation(elementType: FlowType): ArrayTypeAnnotation; +declare function booleanTypeAnnotation(): BooleanTypeAnnotation; +declare function booleanLiteralTypeAnnotation(value: boolean): BooleanLiteralTypeAnnotation; +declare function nullLiteralTypeAnnotation(): NullLiteralTypeAnnotation; +declare function classImplements(id: Identifier, typeParameters?: TypeParameterInstantiation | null): ClassImplements; +declare function declareClass(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: Array | null | undefined, body: ObjectTypeAnnotation): DeclareClass; +declare function declareFunction(id: Identifier): DeclareFunction; +declare function declareInterface(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: Array | null | undefined, body: ObjectTypeAnnotation): DeclareInterface; +declare function declareModule(id: Identifier | StringLiteral, body: BlockStatement, kind?: "CommonJS" | "ES" | null): DeclareModule; +declare function declareModuleExports(typeAnnotation: TypeAnnotation): DeclareModuleExports; +declare function declareTypeAlias(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, right: FlowType): DeclareTypeAlias; +declare function declareOpaqueType(id: Identifier, typeParameters?: TypeParameterDeclaration | null, supertype?: FlowType | null): DeclareOpaqueType; +declare function declareVariable(id: Identifier): DeclareVariable; +declare function declareExportDeclaration(declaration?: Flow | null, specifiers?: Array | null, source?: StringLiteral | null): DeclareExportDeclaration; +declare function declareExportAllDeclaration(source: StringLiteral): DeclareExportAllDeclaration; +declare function declaredPredicate(value: Flow): DeclaredPredicate; +declare function existsTypeAnnotation(): ExistsTypeAnnotation; +declare function functionTypeAnnotation(typeParameters: TypeParameterDeclaration | null | undefined, params: Array, rest: FunctionTypeParam | null | undefined, returnType: FlowType): FunctionTypeAnnotation; +declare function functionTypeParam(name: Identifier | null | undefined, typeAnnotation: FlowType): FunctionTypeParam; +declare function genericTypeAnnotation(id: Identifier | QualifiedTypeIdentifier, typeParameters?: TypeParameterInstantiation | null): GenericTypeAnnotation; +declare function inferredPredicate(): InferredPredicate; +declare function interfaceExtends(id: Identifier | QualifiedTypeIdentifier, typeParameters?: TypeParameterInstantiation | null): InterfaceExtends; +declare function interfaceDeclaration(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, _extends: Array | null | undefined, body: ObjectTypeAnnotation): InterfaceDeclaration; +declare function interfaceTypeAnnotation(_extends: Array | null | undefined, body: ObjectTypeAnnotation): InterfaceTypeAnnotation; +declare function intersectionTypeAnnotation(types: Array): IntersectionTypeAnnotation; +declare function mixedTypeAnnotation(): MixedTypeAnnotation; +declare function emptyTypeAnnotation(): EmptyTypeAnnotation; +declare function nullableTypeAnnotation(typeAnnotation: FlowType): NullableTypeAnnotation; +declare function numberLiteralTypeAnnotation(value: number): NumberLiteralTypeAnnotation; +declare function numberTypeAnnotation(): NumberTypeAnnotation; +declare function objectTypeAnnotation(properties: Array, indexers?: Array | null, callProperties?: Array | null, internalSlots?: Array | null, exact?: boolean): ObjectTypeAnnotation; +declare function objectTypeInternalSlot(id: Identifier, value: FlowType, optional: boolean, _static: boolean, method: boolean): ObjectTypeInternalSlot; +declare function objectTypeCallProperty(value: FlowType): ObjectTypeCallProperty; +declare function objectTypeIndexer(id: Identifier | null | undefined, key: FlowType, value: FlowType, variance?: Variance | null): ObjectTypeIndexer; +declare function objectTypeProperty(key: Identifier | StringLiteral, value: FlowType, variance?: Variance | null): ObjectTypeProperty; +declare function objectTypeSpreadProperty(argument: FlowType): ObjectTypeSpreadProperty; +declare function opaqueType(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, supertype: FlowType | null | undefined, impltype: FlowType): OpaqueType; +declare function qualifiedTypeIdentifier(id: Identifier, qualification: Identifier | QualifiedTypeIdentifier): QualifiedTypeIdentifier; +declare function stringLiteralTypeAnnotation(value: string): StringLiteralTypeAnnotation; +declare function stringTypeAnnotation(): StringTypeAnnotation; +declare function symbolTypeAnnotation(): SymbolTypeAnnotation; +declare function thisTypeAnnotation(): ThisTypeAnnotation; +declare function tupleTypeAnnotation(types: Array): TupleTypeAnnotation; +declare function typeofTypeAnnotation(argument: FlowType): TypeofTypeAnnotation; +declare function typeAlias(id: Identifier, typeParameters: TypeParameterDeclaration | null | undefined, right: FlowType): TypeAlias; +declare function typeAnnotation(typeAnnotation: FlowType): TypeAnnotation; +declare function typeCastExpression(expression: Expression, typeAnnotation: TypeAnnotation): TypeCastExpression; +declare function typeParameter(bound?: TypeAnnotation | null, _default?: FlowType | null, variance?: Variance | null): TypeParameter; +declare function typeParameterDeclaration(params: Array): TypeParameterDeclaration; +declare function typeParameterInstantiation(params: Array): TypeParameterInstantiation; +declare function unionTypeAnnotation(types: Array): UnionTypeAnnotation; +declare function variance(kind: "minus" | "plus"): Variance; +declare function voidTypeAnnotation(): VoidTypeAnnotation; +declare function enumDeclaration(id: Identifier, body: EnumBooleanBody | EnumNumberBody | EnumStringBody | EnumSymbolBody): EnumDeclaration; +declare function enumBooleanBody(members: Array): EnumBooleanBody; +declare function enumNumberBody(members: Array): EnumNumberBody; +declare function enumStringBody(members: Array): EnumStringBody; +declare function enumSymbolBody(members: Array): EnumSymbolBody; +declare function enumBooleanMember(id: Identifier): EnumBooleanMember; +declare function enumNumberMember(id: Identifier, init: NumericLiteral): EnumNumberMember; +declare function enumStringMember(id: Identifier, init: StringLiteral): EnumStringMember; +declare function enumDefaultedMember(id: Identifier): EnumDefaultedMember; +declare function indexedAccessType(objectType: FlowType, indexType: FlowType): IndexedAccessType; +declare function optionalIndexedAccessType(objectType: FlowType, indexType: FlowType): OptionalIndexedAccessType; +declare function jsxAttribute(name: JSXIdentifier | JSXNamespacedName, value?: JSXElement | JSXFragment | StringLiteral | JSXExpressionContainer | null): JSXAttribute; + +declare function jsxClosingElement(name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName): JSXClosingElement; + +declare function jsxElement(openingElement: JSXOpeningElement, closingElement: JSXClosingElement | null | undefined, children: Array, selfClosing?: boolean | null): JSXElement; + +declare function jsxEmptyExpression(): JSXEmptyExpression; + +declare function jsxExpressionContainer(expression: Expression | JSXEmptyExpression): JSXExpressionContainer; + +declare function jsxSpreadChild(expression: Expression): JSXSpreadChild; + +declare function jsxIdentifier(name: string): JSXIdentifier; + +declare function jsxMemberExpression(object: JSXMemberExpression | JSXIdentifier, property: JSXIdentifier): JSXMemberExpression; + +declare function jsxNamespacedName(namespace: JSXIdentifier, name: JSXIdentifier): JSXNamespacedName; + +declare function jsxOpeningElement(name: JSXIdentifier | JSXMemberExpression | JSXNamespacedName, attributes: Array, selfClosing?: boolean): JSXOpeningElement; + +declare function jsxSpreadAttribute(argument: Expression): JSXSpreadAttribute; + +declare function jsxText(value: string): JSXText; + +declare function jsxFragment(openingFragment: JSXOpeningFragment, closingFragment: JSXClosingFragment, children: Array): JSXFragment; + +declare function jsxOpeningFragment(): JSXOpeningFragment; + +declare function jsxClosingFragment(): JSXClosingFragment; + +declare function noop(): Noop; +declare function placeholder(expectedNode: "Identifier" | "StringLiteral" | "Expression" | "Statement" | "Declaration" | "BlockStatement" | "ClassBody" | "Pattern", name: Identifier): Placeholder; +declare function v8IntrinsicIdentifier(name: string): V8IntrinsicIdentifier; +declare function argumentPlaceholder(): ArgumentPlaceholder; +declare function bindExpression(object: Expression, callee: Expression): BindExpression; +declare function importAttribute(key: Identifier | StringLiteral, value: StringLiteral): ImportAttribute; +declare function decorator(expression: Expression): Decorator; +declare function doExpression(body: BlockStatement, async?: boolean): DoExpression; +declare function exportDefaultSpecifier(exported: Identifier): ExportDefaultSpecifier; +declare function recordExpression(properties: Array): RecordExpression; +declare function tupleExpression(elements?: Array): TupleExpression; +declare function decimalLiteral(value: string): DecimalLiteral; +declare function moduleExpression(body: Program): ModuleExpression; +declare function topicReference(): TopicReference; +declare function pipelineTopicExpression(expression: Expression): PipelineTopicExpression; +declare function pipelineBareFunction(callee: Expression): PipelineBareFunction; +declare function pipelinePrimaryTopicReference(): PipelinePrimaryTopicReference; +declare function tsParameterProperty(parameter: Identifier | AssignmentPattern): TSParameterProperty; + +declare function tsDeclareFunction(id: Identifier | null | undefined, typeParameters: TSTypeParameterDeclaration | Noop | null | undefined, params: Array, returnType?: TSTypeAnnotation | Noop | null): TSDeclareFunction; + +declare function tsDeclareMethod(decorators: Array | null | undefined, key: Identifier | StringLiteral | NumericLiteral | Expression, typeParameters: TSTypeParameterDeclaration | Noop | null | undefined, params: Array, returnType?: TSTypeAnnotation | Noop | null): TSDeclareMethod; + +declare function tsQualifiedName(left: TSEntityName, right: Identifier): TSQualifiedName; + +declare function tsCallSignatureDeclaration(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array, typeAnnotation?: TSTypeAnnotation | null): TSCallSignatureDeclaration; + +declare function tsConstructSignatureDeclaration(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array, typeAnnotation?: TSTypeAnnotation | null): TSConstructSignatureDeclaration; + +declare function tsPropertySignature(key: Expression, typeAnnotation?: TSTypeAnnotation | null, initializer?: Expression | null): TSPropertySignature; + +declare function tsMethodSignature(key: Expression, typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array, typeAnnotation?: TSTypeAnnotation | null): TSMethodSignature; + +declare function tsIndexSignature(parameters: Array, typeAnnotation?: TSTypeAnnotation | null): TSIndexSignature; + +declare function tsAnyKeyword(): TSAnyKeyword; + +declare function tsBooleanKeyword(): TSBooleanKeyword; + +declare function tsBigIntKeyword(): TSBigIntKeyword; + +declare function tsIntrinsicKeyword(): TSIntrinsicKeyword; + +declare function tsNeverKeyword(): TSNeverKeyword; + +declare function tsNullKeyword(): TSNullKeyword; + +declare function tsNumberKeyword(): TSNumberKeyword; + +declare function tsObjectKeyword(): TSObjectKeyword; + +declare function tsStringKeyword(): TSStringKeyword; + +declare function tsSymbolKeyword(): TSSymbolKeyword; + +declare function tsUndefinedKeyword(): TSUndefinedKeyword; + +declare function tsUnknownKeyword(): TSUnknownKeyword; + +declare function tsVoidKeyword(): TSVoidKeyword; + +declare function tsThisType(): TSThisType; + +declare function tsFunctionType(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array, typeAnnotation?: TSTypeAnnotation | null): TSFunctionType; + +declare function tsConstructorType(typeParameters: TSTypeParameterDeclaration | null | undefined, parameters: Array, typeAnnotation?: TSTypeAnnotation | null): TSConstructorType; + +declare function tsTypeReference(typeName: TSEntityName, typeParameters?: TSTypeParameterInstantiation | null): TSTypeReference; + +declare function tsTypePredicate(parameterName: Identifier | TSThisType, typeAnnotation?: TSTypeAnnotation | null, asserts?: boolean | null): TSTypePredicate; + +declare function tsTypeQuery(exprName: TSEntityName | TSImportType): TSTypeQuery; + +declare function tsTypeLiteral(members: Array): TSTypeLiteral; + +declare function tsArrayType(elementType: TSType): TSArrayType; + +declare function tsTupleType(elementTypes: Array): TSTupleType; + +declare function tsOptionalType(typeAnnotation: TSType): TSOptionalType; + +declare function tsRestType(typeAnnotation: TSType): TSRestType; + +declare function tsNamedTupleMember(label: Identifier, elementType: TSType, optional?: boolean): TSNamedTupleMember; + +declare function tsUnionType(types: Array): TSUnionType; + +declare function tsIntersectionType(types: Array): TSIntersectionType; + +declare function tsConditionalType(checkType: TSType, extendsType: TSType, trueType: TSType, falseType: TSType): TSConditionalType; + +declare function tsInferType(typeParameter: TSTypeParameter): TSInferType; + +declare function tsParenthesizedType(typeAnnotation: TSType): TSParenthesizedType; + +declare function tsTypeOperator(typeAnnotation: TSType): TSTypeOperator; + +declare function tsIndexedAccessType(objectType: TSType, indexType: TSType): TSIndexedAccessType; + +declare function tsMappedType(typeParameter: TSTypeParameter, typeAnnotation?: TSType | null, nameType?: TSType | null): TSMappedType; + +declare function tsLiteralType(literal: NumericLiteral | StringLiteral | BooleanLiteral | BigIntLiteral | UnaryExpression): TSLiteralType; + +declare function tsExpressionWithTypeArguments(expression: TSEntityName, typeParameters?: TSTypeParameterInstantiation | null): TSExpressionWithTypeArguments; + +declare function tsInterfaceDeclaration(id: Identifier, typeParameters: TSTypeParameterDeclaration | null | undefined, _extends: Array | null | undefined, body: TSInterfaceBody): TSInterfaceDeclaration; + +declare function tsInterfaceBody(body: Array): TSInterfaceBody; + +declare function tsTypeAliasDeclaration(id: Identifier, typeParameters: TSTypeParameterDeclaration | null | undefined, typeAnnotation: TSType): TSTypeAliasDeclaration; + +declare function tsAsExpression(expression: Expression, typeAnnotation: TSType): TSAsExpression; + +declare function tsTypeAssertion(typeAnnotation: TSType, expression: Expression): TSTypeAssertion; + +declare function tsEnumDeclaration(id: Identifier, members: Array): TSEnumDeclaration; + +declare function tsEnumMember(id: Identifier | StringLiteral, initializer?: Expression | null): TSEnumMember; + +declare function tsModuleDeclaration(id: Identifier | StringLiteral, body: TSModuleBlock | TSModuleDeclaration): TSModuleDeclaration; + +declare function tsModuleBlock(body: Array): TSModuleBlock; + +declare function tsImportType(argument: StringLiteral, qualifier?: TSEntityName | null, typeParameters?: TSTypeParameterInstantiation | null): TSImportType; + +declare function tsImportEqualsDeclaration(id: Identifier, moduleReference: TSEntityName | TSExternalModuleReference): TSImportEqualsDeclaration; + +declare function tsExternalModuleReference(expression: StringLiteral): TSExternalModuleReference; + +declare function tsNonNullExpression(expression: Expression): TSNonNullExpression; + +declare function tsExportAssignment(expression: Expression): TSExportAssignment; + +declare function tsNamespaceExportDeclaration(id: Identifier): TSNamespaceExportDeclaration; + +declare function tsTypeAnnotation(typeAnnotation: TSType): TSTypeAnnotation; + +declare function tsTypeParameterInstantiation(params: Array): TSTypeParameterInstantiation; + +declare function tsTypeParameterDeclaration(params: Array): TSTypeParameterDeclaration; + +declare function tsTypeParameter(constraint: TSType | null | undefined, _default: TSType | null | undefined, name: string): TSTypeParameter; + +/** @deprecated */ +declare function NumberLiteral(value: number): NumberLiteral$1; + +/** @deprecated */ +declare function RegexLiteral(pattern: string, flags?: string): RegexLiteral$1; + +/** @deprecated */ +declare function RestProperty(argument: LVal): RestProperty$1; + +/** @deprecated */ +declare function SpreadProperty(argument: Expression): SpreadProperty$1; + +/** + * Create a clone of a `node` including only properties belonging to the node. + * If the second parameter is `false`, cloneNode performs a shallow clone. + * If the third parameter is true, the cloned nodes exclude location properties. + */ +declare function cloneNode(node: T, deep?: boolean, withoutLoc?: boolean): T; + +/** + * Create a shallow clone of a `node`, including only + * properties belonging to the node. + * @deprecated Use t.cloneNode instead. + */ +declare function clone(node: T): T; + +/** + * Create a deep clone of a `node` and all of it's child nodes + * including only properties belonging to the node. + * @deprecated Use t.cloneNode instead. + */ +declare function cloneDeep(node: T): T; + +/** + * Create a deep clone of a `node` and all of it's child nodes + * including only properties belonging to the node. + * excluding `_private` and location properties. + */ +declare function cloneDeepWithoutLoc(node: T): T; + +/** + * Create a shallow clone of a `node` excluding `_private` and location properties. + */ +declare function cloneWithoutLoc(node: T): T; + +/** + * Add comment of certain type to a node. + */ +declare function addComment(node: T, type: CommentTypeShorthand, content: string, line?: boolean): T; + +/** + * Add comments of certain type to a node. + */ +declare function addComments(node: T, type: CommentTypeShorthand, comments: ReadonlyArray): T; + +declare function inheritInnerComments(child: Node, parent: Node): void; + +declare function inheritLeadingComments(child: Node, parent: Node): void; + +/** + * Inherit all unique comments from `parent` node to `child` node. + */ +declare function inheritsComments(child: T, parent: Node): T; + +declare function inheritTrailingComments(child: Node, parent: Node): void; + +/** + * Remove comment properties from a node. + */ +declare function removeComments(node: T): T; + +declare const STANDARDIZED_TYPES: string[]; +declare const EXPRESSION_TYPES: string[]; +declare const BINARY_TYPES: string[]; +declare const SCOPABLE_TYPES: string[]; +declare const BLOCKPARENT_TYPES: string[]; +declare const BLOCK_TYPES: string[]; +declare const STATEMENT_TYPES: string[]; +declare const TERMINATORLESS_TYPES: string[]; +declare const COMPLETIONSTATEMENT_TYPES: string[]; +declare const CONDITIONAL_TYPES: string[]; +declare const LOOP_TYPES: string[]; +declare const WHILE_TYPES: string[]; +declare const EXPRESSIONWRAPPER_TYPES: string[]; +declare const FOR_TYPES: string[]; +declare const FORXSTATEMENT_TYPES: string[]; +declare const FUNCTION_TYPES: string[]; +declare const FUNCTIONPARENT_TYPES: string[]; +declare const PUREISH_TYPES: string[]; +declare const DECLARATION_TYPES: string[]; +declare const PATTERNLIKE_TYPES: string[]; +declare const LVAL_TYPES: string[]; +declare const TSENTITYNAME_TYPES: string[]; +declare const LITERAL_TYPES: string[]; +declare const IMMUTABLE_TYPES: string[]; +declare const USERWHITESPACABLE_TYPES: string[]; +declare const METHOD_TYPES: string[]; +declare const OBJECTMEMBER_TYPES: string[]; +declare const PROPERTY_TYPES: string[]; +declare const UNARYLIKE_TYPES: string[]; +declare const PATTERN_TYPES: string[]; +declare const CLASS_TYPES: string[]; +declare const MODULEDECLARATION_TYPES: string[]; +declare const EXPORTDECLARATION_TYPES: string[]; +declare const MODULESPECIFIER_TYPES: string[]; +declare const ACCESSOR_TYPES: string[]; +declare const PRIVATE_TYPES: string[]; +declare const FLOW_TYPES: string[]; +declare const FLOWTYPE_TYPES: string[]; +declare const FLOWBASEANNOTATION_TYPES: string[]; +declare const FLOWDECLARATION_TYPES: string[]; +declare const FLOWPREDICATE_TYPES: string[]; +declare const ENUMBODY_TYPES: string[]; +declare const ENUMMEMBER_TYPES: string[]; +declare const JSX_TYPES: string[]; +declare const MISCELLANEOUS_TYPES: string[]; +declare const TYPESCRIPT_TYPES: string[]; +declare const TSTYPEELEMENT_TYPES: string[]; +declare const TSTYPE_TYPES: string[]; +declare const TSBASETYPE_TYPES: string[]; + +declare const STATEMENT_OR_BLOCK_KEYS: string[]; +declare const FLATTENABLE_KEYS: string[]; +declare const FOR_INIT_KEYS: string[]; +declare const COMMENT_KEYS: string[]; +declare const LOGICAL_OPERATORS: string[]; +declare const UPDATE_OPERATORS: string[]; +declare const BOOLEAN_NUMBER_BINARY_OPERATORS: string[]; +declare const EQUALITY_BINARY_OPERATORS: string[]; +declare const COMPARISON_BINARY_OPERATORS: string[]; +declare const BOOLEAN_BINARY_OPERATORS: string[]; +declare const NUMBER_BINARY_OPERATORS: string[]; +declare const BINARY_OPERATORS: string[]; +declare const ASSIGNMENT_OPERATORS: string[]; +declare const BOOLEAN_UNARY_OPERATORS: string[]; +declare const NUMBER_UNARY_OPERATORS: string[]; +declare const STRING_UNARY_OPERATORS: string[]; +declare const UNARY_OPERATORS: string[]; +declare const INHERIT_KEYS: { + optional: string[]; + force: string[]; +}; +declare const BLOCK_SCOPED_SYMBOL: unique symbol; +declare const NOT_LOCAL_BINDING: unique symbol; + +/** + * Ensure the `key` (defaults to "body") of a `node` is a block. + * Casting it to a block if it is not. + * + * Returns the BlockStatement + */ +declare function ensureBlock(node: Node, key?: string): BlockStatement; + +declare function toBindingIdentifierName(name: string): string; + +declare function toBlock(node: Statement | Expression, parent?: Node): BlockStatement; + +declare function toComputedKey(node: ObjectMember | ObjectProperty | ClassMethod | ClassProperty | ClassAccessorProperty | MemberExpression | OptionalMemberExpression, key?: Expression): Expression; + +declare const _default$3: { + (node: Function): FunctionExpression; + (node: Class): ClassExpression; + (node: ExpressionStatement | Expression | Class | Function): Expression; +}; +//# sourceMappingURL=toExpression.d.ts.map + +declare function toIdentifier(input: string): string; + +declare function toKeyAlias(node: Method | Property, key?: Node): string; +declare namespace toKeyAlias { + var uid: number; + var increment: () => number; +} +//# sourceMappingURL=toKeyAlias.d.ts.map + +declare type Scope = { + push(value: { + id: LVal; + kind: "var"; + init?: Expression; + }): void; + buildUndefinedNode(): Node; +}; + +/** + * Turn an array of statement `nodes` into a `SequenceExpression`. + * + * Variable declarations are turned into simple assignments and their + * declarations hoisted to the top of the current scope. + * + * Expression statements are just resolved to their expression. + */ +declare function toSequenceExpression(nodes: ReadonlyArray, scope: Scope): SequenceExpression | undefined; + +declare const _default$2: { + (node: AssignmentExpression, ignore?: boolean): ExpressionStatement; + (node: T, ignore: false): T; + (node: T_1, ignore?: boolean): false | T_1; + (node: Class, ignore: false): ClassDeclaration; + (node: Class, ignore?: boolean): ClassDeclaration | false; + (node: Function, ignore: false): FunctionDeclaration; + (node: Function, ignore?: boolean): FunctionDeclaration | false; + (node: Node, ignore: false): Statement; + (node: Node, ignore?: boolean): Statement | false; +}; +//# sourceMappingURL=toStatement.d.ts.map + +declare const _default$1: { + (value: undefined): Identifier; + (value: boolean): BooleanLiteral; + (value: null): NullLiteral; + (value: string): StringLiteral; + (value: number): NumericLiteral | BinaryExpression | UnaryExpression; + (value: RegExp): RegExpLiteral; + (value: ReadonlyArray): ArrayExpression; + (value: object): ObjectExpression; + (value: unknown): Expression; +}; +//# sourceMappingURL=valueToNode.d.ts.map + +declare const VISITOR_KEYS: Record; +declare const ALIAS_KEYS: Record; +declare const FLIPPED_ALIAS_KEYS: Record; +declare const NODE_FIELDS: Record; +declare const BUILDER_KEYS: Record; +declare const DEPRECATED_KEYS: Record; +declare const NODE_PARENT_VALIDATIONS: {}; + +declare const PLACEHOLDERS: string[]; +declare const PLACEHOLDERS_ALIAS: Record; +declare const PLACEHOLDERS_FLIPPED_ALIAS: Record; + +declare const TYPES: Array; +//# sourceMappingURL=index.d.ts.map + +/** + * Append a node to a member expression. + */ +declare function appendToMemberExpression(member: MemberExpression, append: MemberExpression["property"], computed?: boolean): MemberExpression; + +/** + * Inherit all contextual properties from `parent` node to `child` node. + */ +declare function inherits(child: T, parent: Node | null | undefined): T; + +/** + * Prepend a node to a member expression. + */ +declare function prependToMemberExpression>(member: T, prepend: MemberExpression["object"]): T; + +/** + * Remove all of the _* properties from a node along with the additional metadata + * properties like location data and raw token data. + */ +declare function removeProperties(node: Node, opts?: { + preserveComments?: boolean; +}): void; + +declare function removePropertiesDeep(tree: T, opts?: { + preserveComments: boolean; +} | null): T; + +/** + * Dedupe type annotations. + */ +declare function removeTypeDuplicates(nodes: ReadonlyArray): FlowType[]; + +declare function getBindingIdentifiers(node: Node, duplicates: true, outerOnly?: boolean): Record>; +declare function getBindingIdentifiers(node: Node, duplicates?: false, outerOnly?: boolean): Record; +declare function getBindingIdentifiers(node: Node, duplicates?: boolean, outerOnly?: boolean): Record | Record>; +declare namespace getBindingIdentifiers { + var keys: { + DeclareClass: string[]; + DeclareFunction: string[]; + DeclareModule: string[]; + DeclareVariable: string[]; + DeclareInterface: string[]; + DeclareTypeAlias: string[]; + DeclareOpaqueType: string[]; + InterfaceDeclaration: string[]; + TypeAlias: string[]; + OpaqueType: string[]; + CatchClause: string[]; + LabeledStatement: string[]; + UnaryExpression: string[]; + AssignmentExpression: string[]; + ImportSpecifier: string[]; + ImportNamespaceSpecifier: string[]; + ImportDefaultSpecifier: string[]; + ImportDeclaration: string[]; + ExportSpecifier: string[]; + ExportNamespaceSpecifier: string[]; + ExportDefaultSpecifier: string[]; + FunctionDeclaration: string[]; + FunctionExpression: string[]; + ArrowFunctionExpression: string[]; + ObjectMethod: string[]; + ClassMethod: string[]; + ClassPrivateMethod: string[]; + ForInStatement: string[]; + ForOfStatement: string[]; + ClassDeclaration: string[]; + ClassExpression: string[]; + RestElement: string[]; + UpdateExpression: string[]; + ObjectProperty: string[]; + AssignmentPattern: string[]; + ArrayPattern: string[]; + ObjectPattern: string[]; + VariableDeclaration: string[]; + VariableDeclarator: string[]; + }; +} +//# sourceMappingURL=getBindingIdentifiers.d.ts.map + +declare const _default: { + (node: Node, duplicates: true): Record>; + (node: Node, duplicates?: false): Record; + (node: Node, duplicates?: boolean): Record | Record>; +}; +//# sourceMappingURL=getOuterBindingIdentifiers.d.ts.map + +declare type TraversalAncestors = Array<{ + node: Node; + key: string; + index?: number; +}>; +declare type TraversalHandler = (this: undefined, node: Node, parent: TraversalAncestors, state: T) => void; +declare type TraversalHandlers = { + enter?: TraversalHandler; + exit?: TraversalHandler; +}; +/** + * A general AST traversal with both prefix and postfix handlers, and a + * state object. Exposes ancestry data to each handler so that more complex + * AST data can be taken into account. + */ +declare function traverse(node: Node, handlers: TraversalHandler | TraversalHandlers, state?: T): void; + +/** + * A prefix AST traversal implementation meant for simple searching + * and processing. + */ +declare function traverseFast(node: Node | null | undefined, enter: (node: Node, opts?: any) => void, opts?: any): void; + +declare function shallowEqual(actual: object, expected: T): actual is T; + +declare function is(type: T, node: Node | null | undefined, opts?: undefined): node is Extract; +declare function is>(type: T, n: Node | null | undefined, required: Partial

): n is P; +declare function is

(type: string, node: Node | null | undefined, opts: Partial

): node is P; +declare function is(type: string, node: Node | null | undefined, opts?: Partial): node is Node; + +/** + * Check if the input `node` is a binding identifier. + */ +declare function isBinding(node: Node, parent: Node, grandparent?: Node): boolean; + +/** + * Check if the input `node` is block scoped. + */ +declare function isBlockScoped(node: Node): boolean; + +/** + * Check if the input `node` is definitely immutable. + */ +declare function isImmutable(node: Node): boolean; + +/** + * Check if the input `node` is a `let` variable declaration. + */ +declare function isLet(node: Node): boolean; + +declare function isNode(node: any): node is Node; + +/** + * Check if two nodes are equivalent + */ +declare function isNodesEquivalent>(a: T, b: any): b is T; + +/** + * Test if a `placeholderType` is a `targetType` or if `targetType` is an alias of `placeholderType`. + */ +declare function isPlaceholderType(placeholderType: string, targetType: string): boolean; + +/** + * Check if the input `node` is a reference to a bound variable. + */ +declare function isReferenced(node: Node, parent: Node, grandparent?: Node): boolean; + +/** + * Check if the input `node` is a scope. + */ +declare function isScope(node: Node, parent: Node): boolean; + +/** + * Check if the input `specifier` is a `default` import or export. + */ +declare function isSpecifierDefault(specifier: ModuleSpecifier): boolean; + +declare function isType(nodeType: string, targetType: T): nodeType is T; +declare function isType(nodeType: string | null | undefined, targetType: string): boolean; + +/** + * Check if the input `name` is a valid identifier name according to the ES3 specification. + * + * Additional ES3 reserved words are + */ +declare function isValidES3Identifier(name: string): boolean; + +/** + * Check if the input `name` is a valid identifier name + * and isn't a reserved word. + */ +declare function isValidIdentifier(name: string, reserved?: boolean): boolean; + +/** + * Check if the input `node` is a variable declaration. + */ +declare function isVar(node: Node): boolean; + +/** + * Determines whether or not the input node `member` matches the + * input `match`. + * + * For example, given the match `React.createClass` it would match the + * parsed nodes of `React.createClass` and `React["createClass"]`. + */ +declare function matchesPattern(member: Node | null | undefined, match: string | string[], allowPartial?: boolean): boolean; + +declare function validate(node: Node | undefined | null, key: string, val: any): void; + +/** + * Build a function that when called will return whether or not the + * input `node` `MemberExpression` matches the input `match`. + * + * For example, given the match `React.createClass` it would match the + * parsed nodes of `React.createClass` and `React["createClass"]`. + */ +declare function buildMatchMemberExpression(match: string, allowPartial?: boolean): (member: Node) => boolean; + +declare function isArrayExpression(node: object | null | undefined, opts?: object | null): node is ArrayExpression; +declare function isAssignmentExpression(node: object | null | undefined, opts?: object | null): node is AssignmentExpression; +declare function isBinaryExpression(node: object | null | undefined, opts?: object | null): node is BinaryExpression; +declare function isInterpreterDirective(node: object | null | undefined, opts?: object | null): node is InterpreterDirective; +declare function isDirective(node: object | null | undefined, opts?: object | null): node is Directive; +declare function isDirectiveLiteral(node: object | null | undefined, opts?: object | null): node is DirectiveLiteral; +declare function isBlockStatement(node: object | null | undefined, opts?: object | null): node is BlockStatement; +declare function isBreakStatement(node: object | null | undefined, opts?: object | null): node is BreakStatement; +declare function isCallExpression(node: object | null | undefined, opts?: object | null): node is CallExpression; +declare function isCatchClause(node: object | null | undefined, opts?: object | null): node is CatchClause; +declare function isConditionalExpression(node: object | null | undefined, opts?: object | null): node is ConditionalExpression; +declare function isContinueStatement(node: object | null | undefined, opts?: object | null): node is ContinueStatement; +declare function isDebuggerStatement(node: object | null | undefined, opts?: object | null): node is DebuggerStatement; +declare function isDoWhileStatement(node: object | null | undefined, opts?: object | null): node is DoWhileStatement; +declare function isEmptyStatement(node: object | null | undefined, opts?: object | null): node is EmptyStatement; +declare function isExpressionStatement(node: object | null | undefined, opts?: object | null): node is ExpressionStatement; +declare function isFile(node: object | null | undefined, opts?: object | null): node is File; +declare function isForInStatement(node: object | null | undefined, opts?: object | null): node is ForInStatement; +declare function isForStatement(node: object | null | undefined, opts?: object | null): node is ForStatement; +declare function isFunctionDeclaration(node: object | null | undefined, opts?: object | null): node is FunctionDeclaration; +declare function isFunctionExpression(node: object | null | undefined, opts?: object | null): node is FunctionExpression; +declare function isIdentifier(node: object | null | undefined, opts?: object | null): node is Identifier; +declare function isIfStatement(node: object | null | undefined, opts?: object | null): node is IfStatement; +declare function isLabeledStatement(node: object | null | undefined, opts?: object | null): node is LabeledStatement; +declare function isStringLiteral(node: object | null | undefined, opts?: object | null): node is StringLiteral; +declare function isNumericLiteral(node: object | null | undefined, opts?: object | null): node is NumericLiteral; +declare function isNullLiteral(node: object | null | undefined, opts?: object | null): node is NullLiteral; +declare function isBooleanLiteral(node: object | null | undefined, opts?: object | null): node is BooleanLiteral; +declare function isRegExpLiteral(node: object | null | undefined, opts?: object | null): node is RegExpLiteral; +declare function isLogicalExpression(node: object | null | undefined, opts?: object | null): node is LogicalExpression; +declare function isMemberExpression(node: object | null | undefined, opts?: object | null): node is MemberExpression; +declare function isNewExpression(node: object | null | undefined, opts?: object | null): node is NewExpression; +declare function isProgram(node: object | null | undefined, opts?: object | null): node is Program; +declare function isObjectExpression(node: object | null | undefined, opts?: object | null): node is ObjectExpression; +declare function isObjectMethod(node: object | null | undefined, opts?: object | null): node is ObjectMethod; +declare function isObjectProperty(node: object | null | undefined, opts?: object | null): node is ObjectProperty; +declare function isRestElement(node: object | null | undefined, opts?: object | null): node is RestElement; +declare function isReturnStatement(node: object | null | undefined, opts?: object | null): node is ReturnStatement; +declare function isSequenceExpression(node: object | null | undefined, opts?: object | null): node is SequenceExpression; +declare function isParenthesizedExpression(node: object | null | undefined, opts?: object | null): node is ParenthesizedExpression; +declare function isSwitchCase(node: object | null | undefined, opts?: object | null): node is SwitchCase; +declare function isSwitchStatement(node: object | null | undefined, opts?: object | null): node is SwitchStatement; +declare function isThisExpression(node: object | null | undefined, opts?: object | null): node is ThisExpression; +declare function isThrowStatement(node: object | null | undefined, opts?: object | null): node is ThrowStatement; +declare function isTryStatement(node: object | null | undefined, opts?: object | null): node is TryStatement; +declare function isUnaryExpression(node: object | null | undefined, opts?: object | null): node is UnaryExpression; +declare function isUpdateExpression(node: object | null | undefined, opts?: object | null): node is UpdateExpression; +declare function isVariableDeclaration(node: object | null | undefined, opts?: object | null): node is VariableDeclaration; +declare function isVariableDeclarator(node: object | null | undefined, opts?: object | null): node is VariableDeclarator; +declare function isWhileStatement(node: object | null | undefined, opts?: object | null): node is WhileStatement; +declare function isWithStatement(node: object | null | undefined, opts?: object | null): node is WithStatement; +declare function isAssignmentPattern(node: object | null | undefined, opts?: object | null): node is AssignmentPattern; +declare function isArrayPattern(node: object | null | undefined, opts?: object | null): node is ArrayPattern; +declare function isArrowFunctionExpression(node: object | null | undefined, opts?: object | null): node is ArrowFunctionExpression; +declare function isClassBody(node: object | null | undefined, opts?: object | null): node is ClassBody; +declare function isClassExpression(node: object | null | undefined, opts?: object | null): node is ClassExpression; +declare function isClassDeclaration(node: object | null | undefined, opts?: object | null): node is ClassDeclaration; +declare function isExportAllDeclaration(node: object | null | undefined, opts?: object | null): node is ExportAllDeclaration; +declare function isExportDefaultDeclaration(node: object | null | undefined, opts?: object | null): node is ExportDefaultDeclaration; +declare function isExportNamedDeclaration(node: object | null | undefined, opts?: object | null): node is ExportNamedDeclaration; +declare function isExportSpecifier(node: object | null | undefined, opts?: object | null): node is ExportSpecifier; +declare function isForOfStatement(node: object | null | undefined, opts?: object | null): node is ForOfStatement; +declare function isImportDeclaration(node: object | null | undefined, opts?: object | null): node is ImportDeclaration; +declare function isImportDefaultSpecifier(node: object | null | undefined, opts?: object | null): node is ImportDefaultSpecifier; +declare function isImportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): node is ImportNamespaceSpecifier; +declare function isImportSpecifier(node: object | null | undefined, opts?: object | null): node is ImportSpecifier; +declare function isMetaProperty(node: object | null | undefined, opts?: object | null): node is MetaProperty; +declare function isClassMethod(node: object | null | undefined, opts?: object | null): node is ClassMethod; +declare function isObjectPattern(node: object | null | undefined, opts?: object | null): node is ObjectPattern; +declare function isSpreadElement(node: object | null | undefined, opts?: object | null): node is SpreadElement; +declare function isSuper(node: object | null | undefined, opts?: object | null): node is Super; +declare function isTaggedTemplateExpression(node: object | null | undefined, opts?: object | null): node is TaggedTemplateExpression; +declare function isTemplateElement(node: object | null | undefined, opts?: object | null): node is TemplateElement; +declare function isTemplateLiteral(node: object | null | undefined, opts?: object | null): node is TemplateLiteral; +declare function isYieldExpression(node: object | null | undefined, opts?: object | null): node is YieldExpression; +declare function isAwaitExpression(node: object | null | undefined, opts?: object | null): node is AwaitExpression; +declare function isImport(node: object | null | undefined, opts?: object | null): node is Import; +declare function isBigIntLiteral(node: object | null | undefined, opts?: object | null): node is BigIntLiteral; +declare function isExportNamespaceSpecifier(node: object | null | undefined, opts?: object | null): node is ExportNamespaceSpecifier; +declare function isOptionalMemberExpression(node: object | null | undefined, opts?: object | null): node is OptionalMemberExpression; +declare function isOptionalCallExpression(node: object | null | undefined, opts?: object | null): node is OptionalCallExpression; +declare function isClassProperty(node: object | null | undefined, opts?: object | null): node is ClassProperty; +declare function isClassAccessorProperty(node: object | null | undefined, opts?: object | null): node is ClassAccessorProperty; +declare function isClassPrivateProperty(node: object | null | undefined, opts?: object | null): node is ClassPrivateProperty; +declare function isClassPrivateMethod(node: object | null | undefined, opts?: object | null): node is ClassPrivateMethod; +declare function isPrivateName(node: object | null | undefined, opts?: object | null): node is PrivateName; +declare function isStaticBlock(node: object | null | undefined, opts?: object | null): node is StaticBlock; +declare function isAnyTypeAnnotation(node: object | null | undefined, opts?: object | null): node is AnyTypeAnnotation; +declare function isArrayTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ArrayTypeAnnotation; +declare function isBooleanTypeAnnotation(node: object | null | undefined, opts?: object | null): node is BooleanTypeAnnotation; +declare function isBooleanLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is BooleanLiteralTypeAnnotation; +declare function isNullLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NullLiteralTypeAnnotation; +declare function isClassImplements(node: object | null | undefined, opts?: object | null): node is ClassImplements; +declare function isDeclareClass(node: object | null | undefined, opts?: object | null): node is DeclareClass; +declare function isDeclareFunction(node: object | null | undefined, opts?: object | null): node is DeclareFunction; +declare function isDeclareInterface(node: object | null | undefined, opts?: object | null): node is DeclareInterface; +declare function isDeclareModule(node: object | null | undefined, opts?: object | null): node is DeclareModule; +declare function isDeclareModuleExports(node: object | null | undefined, opts?: object | null): node is DeclareModuleExports; +declare function isDeclareTypeAlias(node: object | null | undefined, opts?: object | null): node is DeclareTypeAlias; +declare function isDeclareOpaqueType(node: object | null | undefined, opts?: object | null): node is DeclareOpaqueType; +declare function isDeclareVariable(node: object | null | undefined, opts?: object | null): node is DeclareVariable; +declare function isDeclareExportDeclaration(node: object | null | undefined, opts?: object | null): node is DeclareExportDeclaration; +declare function isDeclareExportAllDeclaration(node: object | null | undefined, opts?: object | null): node is DeclareExportAllDeclaration; +declare function isDeclaredPredicate(node: object | null | undefined, opts?: object | null): node is DeclaredPredicate; +declare function isExistsTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ExistsTypeAnnotation; +declare function isFunctionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is FunctionTypeAnnotation; +declare function isFunctionTypeParam(node: object | null | undefined, opts?: object | null): node is FunctionTypeParam; +declare function isGenericTypeAnnotation(node: object | null | undefined, opts?: object | null): node is GenericTypeAnnotation; +declare function isInferredPredicate(node: object | null | undefined, opts?: object | null): node is InferredPredicate; +declare function isInterfaceExtends(node: object | null | undefined, opts?: object | null): node is InterfaceExtends; +declare function isInterfaceDeclaration(node: object | null | undefined, opts?: object | null): node is InterfaceDeclaration; +declare function isInterfaceTypeAnnotation(node: object | null | undefined, opts?: object | null): node is InterfaceTypeAnnotation; +declare function isIntersectionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is IntersectionTypeAnnotation; +declare function isMixedTypeAnnotation(node: object | null | undefined, opts?: object | null): node is MixedTypeAnnotation; +declare function isEmptyTypeAnnotation(node: object | null | undefined, opts?: object | null): node is EmptyTypeAnnotation; +declare function isNullableTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NullableTypeAnnotation; +declare function isNumberLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NumberLiteralTypeAnnotation; +declare function isNumberTypeAnnotation(node: object | null | undefined, opts?: object | null): node is NumberTypeAnnotation; +declare function isObjectTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ObjectTypeAnnotation; +declare function isObjectTypeInternalSlot(node: object | null | undefined, opts?: object | null): node is ObjectTypeInternalSlot; +declare function isObjectTypeCallProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeCallProperty; +declare function isObjectTypeIndexer(node: object | null | undefined, opts?: object | null): node is ObjectTypeIndexer; +declare function isObjectTypeProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeProperty; +declare function isObjectTypeSpreadProperty(node: object | null | undefined, opts?: object | null): node is ObjectTypeSpreadProperty; +declare function isOpaqueType(node: object | null | undefined, opts?: object | null): node is OpaqueType; +declare function isQualifiedTypeIdentifier(node: object | null | undefined, opts?: object | null): node is QualifiedTypeIdentifier; +declare function isStringLiteralTypeAnnotation(node: object | null | undefined, opts?: object | null): node is StringLiteralTypeAnnotation; +declare function isStringTypeAnnotation(node: object | null | undefined, opts?: object | null): node is StringTypeAnnotation; +declare function isSymbolTypeAnnotation(node: object | null | undefined, opts?: object | null): node is SymbolTypeAnnotation; +declare function isThisTypeAnnotation(node: object | null | undefined, opts?: object | null): node is ThisTypeAnnotation; +declare function isTupleTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TupleTypeAnnotation; +declare function isTypeofTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TypeofTypeAnnotation; +declare function isTypeAlias(node: object | null | undefined, opts?: object | null): node is TypeAlias; +declare function isTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TypeAnnotation; +declare function isTypeCastExpression(node: object | null | undefined, opts?: object | null): node is TypeCastExpression; +declare function isTypeParameter(node: object | null | undefined, opts?: object | null): node is TypeParameter; +declare function isTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): node is TypeParameterDeclaration; +declare function isTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): node is TypeParameterInstantiation; +declare function isUnionTypeAnnotation(node: object | null | undefined, opts?: object | null): node is UnionTypeAnnotation; +declare function isVariance(node: object | null | undefined, opts?: object | null): node is Variance; +declare function isVoidTypeAnnotation(node: object | null | undefined, opts?: object | null): node is VoidTypeAnnotation; +declare function isEnumDeclaration(node: object | null | undefined, opts?: object | null): node is EnumDeclaration; +declare function isEnumBooleanBody(node: object | null | undefined, opts?: object | null): node is EnumBooleanBody; +declare function isEnumNumberBody(node: object | null | undefined, opts?: object | null): node is EnumNumberBody; +declare function isEnumStringBody(node: object | null | undefined, opts?: object | null): node is EnumStringBody; +declare function isEnumSymbolBody(node: object | null | undefined, opts?: object | null): node is EnumSymbolBody; +declare function isEnumBooleanMember(node: object | null | undefined, opts?: object | null): node is EnumBooleanMember; +declare function isEnumNumberMember(node: object | null | undefined, opts?: object | null): node is EnumNumberMember; +declare function isEnumStringMember(node: object | null | undefined, opts?: object | null): node is EnumStringMember; +declare function isEnumDefaultedMember(node: object | null | undefined, opts?: object | null): node is EnumDefaultedMember; +declare function isIndexedAccessType(node: object | null | undefined, opts?: object | null): node is IndexedAccessType; +declare function isOptionalIndexedAccessType(node: object | null | undefined, opts?: object | null): node is OptionalIndexedAccessType; +declare function isJSXAttribute(node: object | null | undefined, opts?: object | null): node is JSXAttribute; +declare function isJSXClosingElement(node: object | null | undefined, opts?: object | null): node is JSXClosingElement; +declare function isJSXElement(node: object | null | undefined, opts?: object | null): node is JSXElement; +declare function isJSXEmptyExpression(node: object | null | undefined, opts?: object | null): node is JSXEmptyExpression; +declare function isJSXExpressionContainer(node: object | null | undefined, opts?: object | null): node is JSXExpressionContainer; +declare function isJSXSpreadChild(node: object | null | undefined, opts?: object | null): node is JSXSpreadChild; +declare function isJSXIdentifier(node: object | null | undefined, opts?: object | null): node is JSXIdentifier; +declare function isJSXMemberExpression(node: object | null | undefined, opts?: object | null): node is JSXMemberExpression; +declare function isJSXNamespacedName(node: object | null | undefined, opts?: object | null): node is JSXNamespacedName; +declare function isJSXOpeningElement(node: object | null | undefined, opts?: object | null): node is JSXOpeningElement; +declare function isJSXSpreadAttribute(node: object | null | undefined, opts?: object | null): node is JSXSpreadAttribute; +declare function isJSXText(node: object | null | undefined, opts?: object | null): node is JSXText; +declare function isJSXFragment(node: object | null | undefined, opts?: object | null): node is JSXFragment; +declare function isJSXOpeningFragment(node: object | null | undefined, opts?: object | null): node is JSXOpeningFragment; +declare function isJSXClosingFragment(node: object | null | undefined, opts?: object | null): node is JSXClosingFragment; +declare function isNoop(node: object | null | undefined, opts?: object | null): node is Noop; +declare function isPlaceholder(node: object | null | undefined, opts?: object | null): node is Placeholder; +declare function isV8IntrinsicIdentifier(node: object | null | undefined, opts?: object | null): node is V8IntrinsicIdentifier; +declare function isArgumentPlaceholder(node: object | null | undefined, opts?: object | null): node is ArgumentPlaceholder; +declare function isBindExpression(node: object | null | undefined, opts?: object | null): node is BindExpression; +declare function isImportAttribute(node: object | null | undefined, opts?: object | null): node is ImportAttribute; +declare function isDecorator(node: object | null | undefined, opts?: object | null): node is Decorator; +declare function isDoExpression(node: object | null | undefined, opts?: object | null): node is DoExpression; +declare function isExportDefaultSpecifier(node: object | null | undefined, opts?: object | null): node is ExportDefaultSpecifier; +declare function isRecordExpression(node: object | null | undefined, opts?: object | null): node is RecordExpression; +declare function isTupleExpression(node: object | null | undefined, opts?: object | null): node is TupleExpression; +declare function isDecimalLiteral(node: object | null | undefined, opts?: object | null): node is DecimalLiteral; +declare function isModuleExpression(node: object | null | undefined, opts?: object | null): node is ModuleExpression; +declare function isTopicReference(node: object | null | undefined, opts?: object | null): node is TopicReference; +declare function isPipelineTopicExpression(node: object | null | undefined, opts?: object | null): node is PipelineTopicExpression; +declare function isPipelineBareFunction(node: object | null | undefined, opts?: object | null): node is PipelineBareFunction; +declare function isPipelinePrimaryTopicReference(node: object | null | undefined, opts?: object | null): node is PipelinePrimaryTopicReference; +declare function isTSParameterProperty(node: object | null | undefined, opts?: object | null): node is TSParameterProperty; +declare function isTSDeclareFunction(node: object | null | undefined, opts?: object | null): node is TSDeclareFunction; +declare function isTSDeclareMethod(node: object | null | undefined, opts?: object | null): node is TSDeclareMethod; +declare function isTSQualifiedName(node: object | null | undefined, opts?: object | null): node is TSQualifiedName; +declare function isTSCallSignatureDeclaration(node: object | null | undefined, opts?: object | null): node is TSCallSignatureDeclaration; +declare function isTSConstructSignatureDeclaration(node: object | null | undefined, opts?: object | null): node is TSConstructSignatureDeclaration; +declare function isTSPropertySignature(node: object | null | undefined, opts?: object | null): node is TSPropertySignature; +declare function isTSMethodSignature(node: object | null | undefined, opts?: object | null): node is TSMethodSignature; +declare function isTSIndexSignature(node: object | null | undefined, opts?: object | null): node is TSIndexSignature; +declare function isTSAnyKeyword(node: object | null | undefined, opts?: object | null): node is TSAnyKeyword; +declare function isTSBooleanKeyword(node: object | null | undefined, opts?: object | null): node is TSBooleanKeyword; +declare function isTSBigIntKeyword(node: object | null | undefined, opts?: object | null): node is TSBigIntKeyword; +declare function isTSIntrinsicKeyword(node: object | null | undefined, opts?: object | null): node is TSIntrinsicKeyword; +declare function isTSNeverKeyword(node: object | null | undefined, opts?: object | null): node is TSNeverKeyword; +declare function isTSNullKeyword(node: object | null | undefined, opts?: object | null): node is TSNullKeyword; +declare function isTSNumberKeyword(node: object | null | undefined, opts?: object | null): node is TSNumberKeyword; +declare function isTSObjectKeyword(node: object | null | undefined, opts?: object | null): node is TSObjectKeyword; +declare function isTSStringKeyword(node: object | null | undefined, opts?: object | null): node is TSStringKeyword; +declare function isTSSymbolKeyword(node: object | null | undefined, opts?: object | null): node is TSSymbolKeyword; +declare function isTSUndefinedKeyword(node: object | null | undefined, opts?: object | null): node is TSUndefinedKeyword; +declare function isTSUnknownKeyword(node: object | null | undefined, opts?: object | null): node is TSUnknownKeyword; +declare function isTSVoidKeyword(node: object | null | undefined, opts?: object | null): node is TSVoidKeyword; +declare function isTSThisType(node: object | null | undefined, opts?: object | null): node is TSThisType; +declare function isTSFunctionType(node: object | null | undefined, opts?: object | null): node is TSFunctionType; +declare function isTSConstructorType(node: object | null | undefined, opts?: object | null): node is TSConstructorType; +declare function isTSTypeReference(node: object | null | undefined, opts?: object | null): node is TSTypeReference; +declare function isTSTypePredicate(node: object | null | undefined, opts?: object | null): node is TSTypePredicate; +declare function isTSTypeQuery(node: object | null | undefined, opts?: object | null): node is TSTypeQuery; +declare function isTSTypeLiteral(node: object | null | undefined, opts?: object | null): node is TSTypeLiteral; +declare function isTSArrayType(node: object | null | undefined, opts?: object | null): node is TSArrayType; +declare function isTSTupleType(node: object | null | undefined, opts?: object | null): node is TSTupleType; +declare function isTSOptionalType(node: object | null | undefined, opts?: object | null): node is TSOptionalType; +declare function isTSRestType(node: object | null | undefined, opts?: object | null): node is TSRestType; +declare function isTSNamedTupleMember(node: object | null | undefined, opts?: object | null): node is TSNamedTupleMember; +declare function isTSUnionType(node: object | null | undefined, opts?: object | null): node is TSUnionType; +declare function isTSIntersectionType(node: object | null | undefined, opts?: object | null): node is TSIntersectionType; +declare function isTSConditionalType(node: object | null | undefined, opts?: object | null): node is TSConditionalType; +declare function isTSInferType(node: object | null | undefined, opts?: object | null): node is TSInferType; +declare function isTSParenthesizedType(node: object | null | undefined, opts?: object | null): node is TSParenthesizedType; +declare function isTSTypeOperator(node: object | null | undefined, opts?: object | null): node is TSTypeOperator; +declare function isTSIndexedAccessType(node: object | null | undefined, opts?: object | null): node is TSIndexedAccessType; +declare function isTSMappedType(node: object | null | undefined, opts?: object | null): node is TSMappedType; +declare function isTSLiteralType(node: object | null | undefined, opts?: object | null): node is TSLiteralType; +declare function isTSExpressionWithTypeArguments(node: object | null | undefined, opts?: object | null): node is TSExpressionWithTypeArguments; +declare function isTSInterfaceDeclaration(node: object | null | undefined, opts?: object | null): node is TSInterfaceDeclaration; +declare function isTSInterfaceBody(node: object | null | undefined, opts?: object | null): node is TSInterfaceBody; +declare function isTSTypeAliasDeclaration(node: object | null | undefined, opts?: object | null): node is TSTypeAliasDeclaration; +declare function isTSAsExpression(node: object | null | undefined, opts?: object | null): node is TSAsExpression; +declare function isTSTypeAssertion(node: object | null | undefined, opts?: object | null): node is TSTypeAssertion; +declare function isTSEnumDeclaration(node: object | null | undefined, opts?: object | null): node is TSEnumDeclaration; +declare function isTSEnumMember(node: object | null | undefined, opts?: object | null): node is TSEnumMember; +declare function isTSModuleDeclaration(node: object | null | undefined, opts?: object | null): node is TSModuleDeclaration; +declare function isTSModuleBlock(node: object | null | undefined, opts?: object | null): node is TSModuleBlock; +declare function isTSImportType(node: object | null | undefined, opts?: object | null): node is TSImportType; +declare function isTSImportEqualsDeclaration(node: object | null | undefined, opts?: object | null): node is TSImportEqualsDeclaration; +declare function isTSExternalModuleReference(node: object | null | undefined, opts?: object | null): node is TSExternalModuleReference; +declare function isTSNonNullExpression(node: object | null | undefined, opts?: object | null): node is TSNonNullExpression; +declare function isTSExportAssignment(node: object | null | undefined, opts?: object | null): node is TSExportAssignment; +declare function isTSNamespaceExportDeclaration(node: object | null | undefined, opts?: object | null): node is TSNamespaceExportDeclaration; +declare function isTSTypeAnnotation(node: object | null | undefined, opts?: object | null): node is TSTypeAnnotation; +declare function isTSTypeParameterInstantiation(node: object | null | undefined, opts?: object | null): node is TSTypeParameterInstantiation; +declare function isTSTypeParameterDeclaration(node: object | null | undefined, opts?: object | null): node is TSTypeParameterDeclaration; +declare function isTSTypeParameter(node: object | null | undefined, opts?: object | null): node is TSTypeParameter; +declare function isStandardized(node: object | null | undefined, opts?: object | null): node is Standardized; +declare function isExpression(node: object | null | undefined, opts?: object | null): node is Expression; +declare function isBinary(node: object | null | undefined, opts?: object | null): node is Binary; +declare function isScopable(node: object | null | undefined, opts?: object | null): node is Scopable; +declare function isBlockParent(node: object | null | undefined, opts?: object | null): node is BlockParent; +declare function isBlock(node: object | null | undefined, opts?: object | null): node is Block; +declare function isStatement(node: object | null | undefined, opts?: object | null): node is Statement; +declare function isTerminatorless(node: object | null | undefined, opts?: object | null): node is Terminatorless; +declare function isCompletionStatement(node: object | null | undefined, opts?: object | null): node is CompletionStatement; +declare function isConditional(node: object | null | undefined, opts?: object | null): node is Conditional; +declare function isLoop(node: object | null | undefined, opts?: object | null): node is Loop; +declare function isWhile(node: object | null | undefined, opts?: object | null): node is While; +declare function isExpressionWrapper(node: object | null | undefined, opts?: object | null): node is ExpressionWrapper; +declare function isFor(node: object | null | undefined, opts?: object | null): node is For; +declare function isForXStatement(node: object | null | undefined, opts?: object | null): node is ForXStatement; +declare function isFunction(node: object | null | undefined, opts?: object | null): node is Function; +declare function isFunctionParent(node: object | null | undefined, opts?: object | null): node is FunctionParent; +declare function isPureish(node: object | null | undefined, opts?: object | null): node is Pureish; +declare function isDeclaration(node: object | null | undefined, opts?: object | null): node is Declaration; +declare function isPatternLike(node: object | null | undefined, opts?: object | null): node is PatternLike; +declare function isLVal(node: object | null | undefined, opts?: object | null): node is LVal; +declare function isTSEntityName(node: object | null | undefined, opts?: object | null): node is TSEntityName; +declare function isLiteral(node: object | null | undefined, opts?: object | null): node is Literal; +declare function isUserWhitespacable(node: object | null | undefined, opts?: object | null): node is UserWhitespacable; +declare function isMethod(node: object | null | undefined, opts?: object | null): node is Method; +declare function isObjectMember(node: object | null | undefined, opts?: object | null): node is ObjectMember; +declare function isProperty(node: object | null | undefined, opts?: object | null): node is Property; +declare function isUnaryLike(node: object | null | undefined, opts?: object | null): node is UnaryLike; +declare function isPattern(node: object | null | undefined, opts?: object | null): node is Pattern; +declare function isClass(node: object | null | undefined, opts?: object | null): node is Class; +declare function isModuleDeclaration(node: object | null | undefined, opts?: object | null): node is ModuleDeclaration; +declare function isExportDeclaration(node: object | null | undefined, opts?: object | null): node is ExportDeclaration; +declare function isModuleSpecifier(node: object | null | undefined, opts?: object | null): node is ModuleSpecifier; +declare function isAccessor(node: object | null | undefined, opts?: object | null): node is Accessor; +declare function isPrivate(node: object | null | undefined, opts?: object | null): node is Private; +declare function isFlow(node: object | null | undefined, opts?: object | null): node is Flow; +declare function isFlowType(node: object | null | undefined, opts?: object | null): node is FlowType; +declare function isFlowBaseAnnotation(node: object | null | undefined, opts?: object | null): node is FlowBaseAnnotation; +declare function isFlowDeclaration(node: object | null | undefined, opts?: object | null): node is FlowDeclaration; +declare function isFlowPredicate(node: object | null | undefined, opts?: object | null): node is FlowPredicate; +declare function isEnumBody(node: object | null | undefined, opts?: object | null): node is EnumBody; +declare function isEnumMember(node: object | null | undefined, opts?: object | null): node is EnumMember; +declare function isJSX(node: object | null | undefined, opts?: object | null): node is JSX; +declare function isMiscellaneous(node: object | null | undefined, opts?: object | null): node is Miscellaneous; +declare function isTypeScript(node: object | null | undefined, opts?: object | null): node is TypeScript; +declare function isTSTypeElement(node: object | null | undefined, opts?: object | null): node is TSTypeElement; +declare function isTSType(node: object | null | undefined, opts?: object | null): node is TSType; +declare function isTSBaseType(node: object | null | undefined, opts?: object | null): node is TSBaseType; +declare function isNumberLiteral(node: object | null | undefined, opts?: object | null): boolean; +declare function isRegexLiteral(node: object | null | undefined, opts?: object | null): boolean; +declare function isRestProperty(node: object | null | undefined, opts?: object | null): boolean; +declare function isSpreadProperty(node: object | null | undefined, opts?: object | null): boolean; + +declare const react: { + isReactComponent: (member: Node) => boolean; + isCompatTag: typeof isCompatTag; + buildChildren: typeof buildChildren; +}; + +export { ACCESSOR_TYPES, ALIAS_KEYS, ASSIGNMENT_OPERATORS, Accessor, Aliases, AnyTypeAnnotation, ArgumentPlaceholder, ArrayExpression, ArrayPattern, ArrayTypeAnnotation, ArrowFunctionExpression, AssignmentExpression, AssignmentPattern, AwaitExpression, BINARY_OPERATORS, BINARY_TYPES, BLOCKPARENT_TYPES, BLOCK_SCOPED_SYMBOL, BLOCK_TYPES, BOOLEAN_BINARY_OPERATORS, BOOLEAN_NUMBER_BINARY_OPERATORS, BOOLEAN_UNARY_OPERATORS, BUILDER_KEYS, BigIntLiteral, Binary, BinaryExpression, BindExpression, Block, BlockParent, BlockStatement, BooleanLiteral, BooleanLiteralTypeAnnotation, BooleanTypeAnnotation, BreakStatement, CLASS_TYPES, COMMENT_KEYS, COMPARISON_BINARY_OPERATORS, COMPLETIONSTATEMENT_TYPES, CONDITIONAL_TYPES, CallExpression, CatchClause, Class, ClassAccessorProperty, ClassBody, ClassDeclaration, ClassExpression, ClassImplements, ClassMethod, ClassPrivateMethod, ClassPrivateProperty, ClassProperty, Comment, CommentBlock, CommentLine, CommentTypeShorthand, CompletionStatement, Conditional, ConditionalExpression, ContinueStatement, DECLARATION_TYPES, DEPRECATED_KEYS, DebuggerStatement, DecimalLiteral, Declaration, DeclareClass, DeclareExportAllDeclaration, DeclareExportDeclaration, DeclareFunction, DeclareInterface, DeclareModule, DeclareModuleExports, DeclareOpaqueType, DeclareTypeAlias, DeclareVariable, DeclaredPredicate, Decorator, DeprecatedAliases, Directive, DirectiveLiteral, DoExpression, DoWhileStatement, ENUMBODY_TYPES, ENUMMEMBER_TYPES, EQUALITY_BINARY_OPERATORS, EXPORTDECLARATION_TYPES, EXPRESSIONWRAPPER_TYPES, EXPRESSION_TYPES, EmptyStatement, EmptyTypeAnnotation, EnumBody, EnumBooleanBody, EnumBooleanMember, EnumDeclaration, EnumDefaultedMember, EnumMember, EnumNumberBody, EnumNumberMember, EnumStringBody, EnumStringMember, EnumSymbolBody, ExistsTypeAnnotation, ExportAllDeclaration, ExportDeclaration, ExportDefaultDeclaration, ExportDefaultSpecifier, ExportNamedDeclaration, ExportNamespaceSpecifier, ExportSpecifier, Expression, ExpressionStatement, ExpressionWrapper, FLATTENABLE_KEYS, FLIPPED_ALIAS_KEYS, FLOWBASEANNOTATION_TYPES, FLOWDECLARATION_TYPES, FLOWPREDICATE_TYPES, FLOWTYPE_TYPES, FLOW_TYPES, FORXSTATEMENT_TYPES, FOR_INIT_KEYS, FOR_TYPES, FUNCTIONPARENT_TYPES, FUNCTION_TYPES, File, Flow, FlowBaseAnnotation, FlowDeclaration, FlowPredicate, FlowType, For, ForInStatement, ForOfStatement, ForStatement, ForXStatement, Function, FunctionDeclaration, FunctionExpression, FunctionParent, FunctionTypeAnnotation, FunctionTypeParam, GenericTypeAnnotation, IMMUTABLE_TYPES, INHERIT_KEYS, Identifier, IfStatement, Immutable, Import, ImportAttribute, ImportDeclaration, ImportDefaultSpecifier, ImportNamespaceSpecifier, ImportSpecifier, IndexedAccessType, InferredPredicate, InterfaceDeclaration, InterfaceExtends, InterfaceTypeAnnotation, InterpreterDirective, IntersectionTypeAnnotation, JSX, JSXAttribute, JSXClosingElement, JSXClosingFragment, JSXElement, JSXEmptyExpression, JSXExpressionContainer, JSXFragment, JSXIdentifier, JSXMemberExpression, JSXNamespacedName, JSXOpeningElement, JSXOpeningFragment, JSXSpreadAttribute, JSXSpreadChild, JSXText, JSX_TYPES, LITERAL_TYPES, LOGICAL_OPERATORS, LOOP_TYPES, LVAL_TYPES, LVal, LabeledStatement, Literal, LogicalExpression, Loop, METHOD_TYPES, MISCELLANEOUS_TYPES, MODULEDECLARATION_TYPES, MODULESPECIFIER_TYPES, MemberExpression, MetaProperty, Method, Miscellaneous, MixedTypeAnnotation, ModuleDeclaration, ModuleExpression, ModuleSpecifier, NODE_FIELDS, NODE_PARENT_VALIDATIONS, NOT_LOCAL_BINDING, NUMBER_BINARY_OPERATORS, NUMBER_UNARY_OPERATORS, NewExpression, Node, Noop, NullLiteral, NullLiteralTypeAnnotation, NullableTypeAnnotation, NumberLiteral$1 as NumberLiteral, NumberLiteralTypeAnnotation, NumberTypeAnnotation, NumericLiteral, OBJECTMEMBER_TYPES, ObjectExpression, ObjectMember, ObjectMethod, ObjectPattern, ObjectProperty, ObjectTypeAnnotation, ObjectTypeCallProperty, ObjectTypeIndexer, ObjectTypeInternalSlot, ObjectTypeProperty, ObjectTypeSpreadProperty, OpaqueType, OptionalCallExpression, OptionalIndexedAccessType, OptionalMemberExpression, PATTERNLIKE_TYPES, PATTERN_TYPES, PLACEHOLDERS, PLACEHOLDERS_ALIAS, PLACEHOLDERS_FLIPPED_ALIAS, PRIVATE_TYPES, PROPERTY_TYPES, PUREISH_TYPES, ParenthesizedExpression, Pattern, PatternLike, PipelineBareFunction, PipelinePrimaryTopicReference, PipelineTopicExpression, Placeholder, Private, PrivateName, Program, Property, Pureish, QualifiedTypeIdentifier, RecordExpression, RegExpLiteral, RegexLiteral$1 as RegexLiteral, RestElement, RestProperty$1 as RestProperty, ReturnStatement, SCOPABLE_TYPES, STANDARDIZED_TYPES, STATEMENT_OR_BLOCK_KEYS, STATEMENT_TYPES, STRING_UNARY_OPERATORS, Scopable, SequenceExpression, SourceLocation, SpreadElement, SpreadProperty$1 as SpreadProperty, Standardized, Statement, StaticBlock, StringLiteral, StringLiteralTypeAnnotation, StringTypeAnnotation, Super, SwitchCase, SwitchStatement, SymbolTypeAnnotation, TERMINATORLESS_TYPES, TSAnyKeyword, TSArrayType, TSAsExpression, TSBASETYPE_TYPES, TSBaseType, TSBigIntKeyword, TSBooleanKeyword, TSCallSignatureDeclaration, TSConditionalType, TSConstructSignatureDeclaration, TSConstructorType, TSDeclareFunction, TSDeclareMethod, TSENTITYNAME_TYPES, TSEntityName, TSEnumDeclaration, TSEnumMember, TSExportAssignment, TSExpressionWithTypeArguments, TSExternalModuleReference, TSFunctionType, TSImportEqualsDeclaration, TSImportType, TSIndexSignature, TSIndexedAccessType, TSInferType, TSInterfaceBody, TSInterfaceDeclaration, TSIntersectionType, TSIntrinsicKeyword, TSLiteralType, TSMappedType, TSMethodSignature, TSModuleBlock, TSModuleDeclaration, TSNamedTupleMember, TSNamespaceExportDeclaration, TSNeverKeyword, TSNonNullExpression, TSNullKeyword, TSNumberKeyword, TSObjectKeyword, TSOptionalType, TSParameterProperty, TSParenthesizedType, TSPropertySignature, TSQualifiedName, TSRestType, TSStringKeyword, TSSymbolKeyword, TSTYPEELEMENT_TYPES, TSTYPE_TYPES, TSThisType, TSTupleType, TSType, TSTypeAliasDeclaration, TSTypeAnnotation, TSTypeAssertion, TSTypeElement, TSTypeLiteral, TSTypeOperator, TSTypeParameter, TSTypeParameterDeclaration, TSTypeParameterInstantiation, TSTypePredicate, TSTypeQuery, TSTypeReference, TSUndefinedKeyword, TSUnionType, TSUnknownKeyword, TSVoidKeyword, TYPES, TYPESCRIPT_TYPES, TaggedTemplateExpression, TemplateElement, TemplateLiteral, Terminatorless, ThisExpression, ThisTypeAnnotation, ThrowStatement, TopicReference, TraversalAncestors, TraversalHandler, TraversalHandlers, TryStatement, TupleExpression, TupleTypeAnnotation, TypeAlias, TypeAnnotation, TypeCastExpression, TypeParameter, TypeParameterDeclaration, TypeParameterInstantiation, TypeScript, TypeofTypeAnnotation, UNARYLIKE_TYPES, UNARY_OPERATORS, UPDATE_OPERATORS, USERWHITESPACABLE_TYPES, UnaryExpression, UnaryLike, UnionTypeAnnotation, UpdateExpression, UserWhitespacable, V8IntrinsicIdentifier, VISITOR_KEYS, VariableDeclaration, VariableDeclarator, Variance, VoidTypeAnnotation, WHILE_TYPES, While, WhileStatement, WithStatement, YieldExpression, addComment, addComments, anyTypeAnnotation, appendToMemberExpression, argumentPlaceholder, arrayExpression, arrayPattern, arrayTypeAnnotation, arrowFunctionExpression, assertAccessor, assertAnyTypeAnnotation, assertArgumentPlaceholder, assertArrayExpression, assertArrayPattern, assertArrayTypeAnnotation, assertArrowFunctionExpression, assertAssignmentExpression, assertAssignmentPattern, assertAwaitExpression, assertBigIntLiteral, assertBinary, assertBinaryExpression, assertBindExpression, assertBlock, assertBlockParent, assertBlockStatement, assertBooleanLiteral, assertBooleanLiteralTypeAnnotation, assertBooleanTypeAnnotation, assertBreakStatement, assertCallExpression, assertCatchClause, assertClass, assertClassAccessorProperty, assertClassBody, assertClassDeclaration, assertClassExpression, assertClassImplements, assertClassMethod, assertClassPrivateMethod, assertClassPrivateProperty, assertClassProperty, assertCompletionStatement, assertConditional, assertConditionalExpression, assertContinueStatement, assertDebuggerStatement, assertDecimalLiteral, assertDeclaration, assertDeclareClass, assertDeclareExportAllDeclaration, assertDeclareExportDeclaration, assertDeclareFunction, assertDeclareInterface, assertDeclareModule, assertDeclareModuleExports, assertDeclareOpaqueType, assertDeclareTypeAlias, assertDeclareVariable, assertDeclaredPredicate, assertDecorator, assertDirective, assertDirectiveLiteral, assertDoExpression, assertDoWhileStatement, assertEmptyStatement, assertEmptyTypeAnnotation, assertEnumBody, assertEnumBooleanBody, assertEnumBooleanMember, assertEnumDeclaration, assertEnumDefaultedMember, assertEnumMember, assertEnumNumberBody, assertEnumNumberMember, assertEnumStringBody, assertEnumStringMember, assertEnumSymbolBody, assertExistsTypeAnnotation, assertExportAllDeclaration, assertExportDeclaration, assertExportDefaultDeclaration, assertExportDefaultSpecifier, assertExportNamedDeclaration, assertExportNamespaceSpecifier, assertExportSpecifier, assertExpression, assertExpressionStatement, assertExpressionWrapper, assertFile, assertFlow, assertFlowBaseAnnotation, assertFlowDeclaration, assertFlowPredicate, assertFlowType, assertFor, assertForInStatement, assertForOfStatement, assertForStatement, assertForXStatement, assertFunction, assertFunctionDeclaration, assertFunctionExpression, assertFunctionParent, assertFunctionTypeAnnotation, assertFunctionTypeParam, assertGenericTypeAnnotation, assertIdentifier, assertIfStatement, assertImmutable, assertImport, assertImportAttribute, assertImportDeclaration, assertImportDefaultSpecifier, assertImportNamespaceSpecifier, assertImportSpecifier, assertIndexedAccessType, assertInferredPredicate, assertInterfaceDeclaration, assertInterfaceExtends, assertInterfaceTypeAnnotation, assertInterpreterDirective, assertIntersectionTypeAnnotation, assertJSX, assertJSXAttribute, assertJSXClosingElement, assertJSXClosingFragment, assertJSXElement, assertJSXEmptyExpression, assertJSXExpressionContainer, assertJSXFragment, assertJSXIdentifier, assertJSXMemberExpression, assertJSXNamespacedName, assertJSXOpeningElement, assertJSXOpeningFragment, assertJSXSpreadAttribute, assertJSXSpreadChild, assertJSXText, assertLVal, assertLabeledStatement, assertLiteral, assertLogicalExpression, assertLoop, assertMemberExpression, assertMetaProperty, assertMethod, assertMiscellaneous, assertMixedTypeAnnotation, assertModuleDeclaration, assertModuleExpression, assertModuleSpecifier, assertNewExpression, assertNode, assertNoop, assertNullLiteral, assertNullLiteralTypeAnnotation, assertNullableTypeAnnotation, assertNumberLiteral, assertNumberLiteralTypeAnnotation, assertNumberTypeAnnotation, assertNumericLiteral, assertObjectExpression, assertObjectMember, assertObjectMethod, assertObjectPattern, assertObjectProperty, assertObjectTypeAnnotation, assertObjectTypeCallProperty, assertObjectTypeIndexer, assertObjectTypeInternalSlot, assertObjectTypeProperty, assertObjectTypeSpreadProperty, assertOpaqueType, assertOptionalCallExpression, assertOptionalIndexedAccessType, assertOptionalMemberExpression, assertParenthesizedExpression, assertPattern, assertPatternLike, assertPipelineBareFunction, assertPipelinePrimaryTopicReference, assertPipelineTopicExpression, assertPlaceholder, assertPrivate, assertPrivateName, assertProgram, assertProperty, assertPureish, assertQualifiedTypeIdentifier, assertRecordExpression, assertRegExpLiteral, assertRegexLiteral, assertRestElement, assertRestProperty, assertReturnStatement, assertScopable, assertSequenceExpression, assertSpreadElement, assertSpreadProperty, assertStandardized, assertStatement, assertStaticBlock, assertStringLiteral, assertStringLiteralTypeAnnotation, assertStringTypeAnnotation, assertSuper, assertSwitchCase, assertSwitchStatement, assertSymbolTypeAnnotation, assertTSAnyKeyword, assertTSArrayType, assertTSAsExpression, assertTSBaseType, assertTSBigIntKeyword, assertTSBooleanKeyword, assertTSCallSignatureDeclaration, assertTSConditionalType, assertTSConstructSignatureDeclaration, assertTSConstructorType, assertTSDeclareFunction, assertTSDeclareMethod, assertTSEntityName, assertTSEnumDeclaration, assertTSEnumMember, assertTSExportAssignment, assertTSExpressionWithTypeArguments, assertTSExternalModuleReference, assertTSFunctionType, assertTSImportEqualsDeclaration, assertTSImportType, assertTSIndexSignature, assertTSIndexedAccessType, assertTSInferType, assertTSInterfaceBody, assertTSInterfaceDeclaration, assertTSIntersectionType, assertTSIntrinsicKeyword, assertTSLiteralType, assertTSMappedType, assertTSMethodSignature, assertTSModuleBlock, assertTSModuleDeclaration, assertTSNamedTupleMember, assertTSNamespaceExportDeclaration, assertTSNeverKeyword, assertTSNonNullExpression, assertTSNullKeyword, assertTSNumberKeyword, assertTSObjectKeyword, assertTSOptionalType, assertTSParameterProperty, assertTSParenthesizedType, assertTSPropertySignature, assertTSQualifiedName, assertTSRestType, assertTSStringKeyword, assertTSSymbolKeyword, assertTSThisType, assertTSTupleType, assertTSType, assertTSTypeAliasDeclaration, assertTSTypeAnnotation, assertTSTypeAssertion, assertTSTypeElement, assertTSTypeLiteral, assertTSTypeOperator, assertTSTypeParameter, assertTSTypeParameterDeclaration, assertTSTypeParameterInstantiation, assertTSTypePredicate, assertTSTypeQuery, assertTSTypeReference, assertTSUndefinedKeyword, assertTSUnionType, assertTSUnknownKeyword, assertTSVoidKeyword, assertTaggedTemplateExpression, assertTemplateElement, assertTemplateLiteral, assertTerminatorless, assertThisExpression, assertThisTypeAnnotation, assertThrowStatement, assertTopicReference, assertTryStatement, assertTupleExpression, assertTupleTypeAnnotation, assertTypeAlias, assertTypeAnnotation, assertTypeCastExpression, assertTypeParameter, assertTypeParameterDeclaration, assertTypeParameterInstantiation, assertTypeScript, assertTypeofTypeAnnotation, assertUnaryExpression, assertUnaryLike, assertUnionTypeAnnotation, assertUpdateExpression, assertUserWhitespacable, assertV8IntrinsicIdentifier, assertVariableDeclaration, assertVariableDeclarator, assertVariance, assertVoidTypeAnnotation, assertWhile, assertWhileStatement, assertWithStatement, assertYieldExpression, assignmentExpression, assignmentPattern, awaitExpression, bigIntLiteral, binaryExpression, bindExpression, blockStatement, booleanLiteral, booleanLiteralTypeAnnotation, booleanTypeAnnotation, breakStatement, buildMatchMemberExpression, callExpression, catchClause, classAccessorProperty, classBody, classDeclaration, classExpression, classImplements, classMethod, classPrivateMethod, classPrivateProperty, classProperty, clone, cloneDeep, cloneDeepWithoutLoc, cloneNode, cloneWithoutLoc, conditionalExpression, continueStatement, createFlowUnionType, createTSUnionType, _default$4 as createTypeAnnotationBasedOnTypeof, createFlowUnionType as createUnionTypeAnnotation, debuggerStatement, decimalLiteral, declareClass, declareExportAllDeclaration, declareExportDeclaration, declareFunction, declareInterface, declareModule, declareModuleExports, declareOpaqueType, declareTypeAlias, declareVariable, declaredPredicate, decorator, directive, directiveLiteral, doExpression, doWhileStatement, emptyStatement, emptyTypeAnnotation, ensureBlock, enumBooleanBody, enumBooleanMember, enumDeclaration, enumDefaultedMember, enumNumberBody, enumNumberMember, enumStringBody, enumStringMember, enumSymbolBody, existsTypeAnnotation, exportAllDeclaration, exportDefaultDeclaration, exportDefaultSpecifier, exportNamedDeclaration, exportNamespaceSpecifier, exportSpecifier, expressionStatement, file, forInStatement, forOfStatement, forStatement, functionDeclaration, functionExpression, functionTypeAnnotation, functionTypeParam, genericTypeAnnotation, getBindingIdentifiers, _default as getOuterBindingIdentifiers, identifier, ifStatement, _import as import, importAttribute, importDeclaration, importDefaultSpecifier, importNamespaceSpecifier, importSpecifier, indexedAccessType, inferredPredicate, inheritInnerComments, inheritLeadingComments, inheritTrailingComments, inherits, inheritsComments, interfaceDeclaration, interfaceExtends, interfaceTypeAnnotation, interpreterDirective, intersectionTypeAnnotation, is, isAccessor, isAnyTypeAnnotation, isArgumentPlaceholder, isArrayExpression, isArrayPattern, isArrayTypeAnnotation, isArrowFunctionExpression, isAssignmentExpression, isAssignmentPattern, isAwaitExpression, isBigIntLiteral, isBinary, isBinaryExpression, isBindExpression, isBinding, isBlock, isBlockParent, isBlockScoped, isBlockStatement, isBooleanLiteral, isBooleanLiteralTypeAnnotation, isBooleanTypeAnnotation, isBreakStatement, isCallExpression, isCatchClause, isClass, isClassAccessorProperty, isClassBody, isClassDeclaration, isClassExpression, isClassImplements, isClassMethod, isClassPrivateMethod, isClassPrivateProperty, isClassProperty, isCompletionStatement, isConditional, isConditionalExpression, isContinueStatement, isDebuggerStatement, isDecimalLiteral, isDeclaration, isDeclareClass, isDeclareExportAllDeclaration, isDeclareExportDeclaration, isDeclareFunction, isDeclareInterface, isDeclareModule, isDeclareModuleExports, isDeclareOpaqueType, isDeclareTypeAlias, isDeclareVariable, isDeclaredPredicate, isDecorator, isDirective, isDirectiveLiteral, isDoExpression, isDoWhileStatement, isEmptyStatement, isEmptyTypeAnnotation, isEnumBody, isEnumBooleanBody, isEnumBooleanMember, isEnumDeclaration, isEnumDefaultedMember, isEnumMember, isEnumNumberBody, isEnumNumberMember, isEnumStringBody, isEnumStringMember, isEnumSymbolBody, isExistsTypeAnnotation, isExportAllDeclaration, isExportDeclaration, isExportDefaultDeclaration, isExportDefaultSpecifier, isExportNamedDeclaration, isExportNamespaceSpecifier, isExportSpecifier, isExpression, isExpressionStatement, isExpressionWrapper, isFile, isFlow, isFlowBaseAnnotation, isFlowDeclaration, isFlowPredicate, isFlowType, isFor, isForInStatement, isForOfStatement, isForStatement, isForXStatement, isFunction, isFunctionDeclaration, isFunctionExpression, isFunctionParent, isFunctionTypeAnnotation, isFunctionTypeParam, isGenericTypeAnnotation, isIdentifier, isIfStatement, isImmutable, isImport, isImportAttribute, isImportDeclaration, isImportDefaultSpecifier, isImportNamespaceSpecifier, isImportSpecifier, isIndexedAccessType, isInferredPredicate, isInterfaceDeclaration, isInterfaceExtends, isInterfaceTypeAnnotation, isInterpreterDirective, isIntersectionTypeAnnotation, isJSX, isJSXAttribute, isJSXClosingElement, isJSXClosingFragment, isJSXElement, isJSXEmptyExpression, isJSXExpressionContainer, isJSXFragment, isJSXIdentifier, isJSXMemberExpression, isJSXNamespacedName, isJSXOpeningElement, isJSXOpeningFragment, isJSXSpreadAttribute, isJSXSpreadChild, isJSXText, isLVal, isLabeledStatement, isLet, isLiteral, isLogicalExpression, isLoop, isMemberExpression, isMetaProperty, isMethod, isMiscellaneous, isMixedTypeAnnotation, isModuleDeclaration, isModuleExpression, isModuleSpecifier, isNewExpression, isNode, isNodesEquivalent, isNoop, isNullLiteral, isNullLiteralTypeAnnotation, isNullableTypeAnnotation, isNumberLiteral, isNumberLiteralTypeAnnotation, isNumberTypeAnnotation, isNumericLiteral, isObjectExpression, isObjectMember, isObjectMethod, isObjectPattern, isObjectProperty, isObjectTypeAnnotation, isObjectTypeCallProperty, isObjectTypeIndexer, isObjectTypeInternalSlot, isObjectTypeProperty, isObjectTypeSpreadProperty, isOpaqueType, isOptionalCallExpression, isOptionalIndexedAccessType, isOptionalMemberExpression, isParenthesizedExpression, isPattern, isPatternLike, isPipelineBareFunction, isPipelinePrimaryTopicReference, isPipelineTopicExpression, isPlaceholder, isPlaceholderType, isPrivate, isPrivateName, isProgram, isProperty, isPureish, isQualifiedTypeIdentifier, isRecordExpression, isReferenced, isRegExpLiteral, isRegexLiteral, isRestElement, isRestProperty, isReturnStatement, isScopable, isScope, isSequenceExpression, isSpecifierDefault, isSpreadElement, isSpreadProperty, isStandardized, isStatement, isStaticBlock, isStringLiteral, isStringLiteralTypeAnnotation, isStringTypeAnnotation, isSuper, isSwitchCase, isSwitchStatement, isSymbolTypeAnnotation, isTSAnyKeyword, isTSArrayType, isTSAsExpression, isTSBaseType, isTSBigIntKeyword, isTSBooleanKeyword, isTSCallSignatureDeclaration, isTSConditionalType, isTSConstructSignatureDeclaration, isTSConstructorType, isTSDeclareFunction, isTSDeclareMethod, isTSEntityName, isTSEnumDeclaration, isTSEnumMember, isTSExportAssignment, isTSExpressionWithTypeArguments, isTSExternalModuleReference, isTSFunctionType, isTSImportEqualsDeclaration, isTSImportType, isTSIndexSignature, isTSIndexedAccessType, isTSInferType, isTSInterfaceBody, isTSInterfaceDeclaration, isTSIntersectionType, isTSIntrinsicKeyword, isTSLiteralType, isTSMappedType, isTSMethodSignature, isTSModuleBlock, isTSModuleDeclaration, isTSNamedTupleMember, isTSNamespaceExportDeclaration, isTSNeverKeyword, isTSNonNullExpression, isTSNullKeyword, isTSNumberKeyword, isTSObjectKeyword, isTSOptionalType, isTSParameterProperty, isTSParenthesizedType, isTSPropertySignature, isTSQualifiedName, isTSRestType, isTSStringKeyword, isTSSymbolKeyword, isTSThisType, isTSTupleType, isTSType, isTSTypeAliasDeclaration, isTSTypeAnnotation, isTSTypeAssertion, isTSTypeElement, isTSTypeLiteral, isTSTypeOperator, isTSTypeParameter, isTSTypeParameterDeclaration, isTSTypeParameterInstantiation, isTSTypePredicate, isTSTypeQuery, isTSTypeReference, isTSUndefinedKeyword, isTSUnionType, isTSUnknownKeyword, isTSVoidKeyword, isTaggedTemplateExpression, isTemplateElement, isTemplateLiteral, isTerminatorless, isThisExpression, isThisTypeAnnotation, isThrowStatement, isTopicReference, isTryStatement, isTupleExpression, isTupleTypeAnnotation, isType, isTypeAlias, isTypeAnnotation, isTypeCastExpression, isTypeParameter, isTypeParameterDeclaration, isTypeParameterInstantiation, isTypeScript, isTypeofTypeAnnotation, isUnaryExpression, isUnaryLike, isUnionTypeAnnotation, isUpdateExpression, isUserWhitespacable, isV8IntrinsicIdentifier, isValidES3Identifier, isValidIdentifier, isVar, isVariableDeclaration, isVariableDeclarator, isVariance, isVoidTypeAnnotation, isWhile, isWhileStatement, isWithStatement, isYieldExpression, jsxAttribute as jSXAttribute, jsxClosingElement as jSXClosingElement, jsxClosingFragment as jSXClosingFragment, jsxElement as jSXElement, jsxEmptyExpression as jSXEmptyExpression, jsxExpressionContainer as jSXExpressionContainer, jsxFragment as jSXFragment, jsxIdentifier as jSXIdentifier, jsxMemberExpression as jSXMemberExpression, jsxNamespacedName as jSXNamespacedName, jsxOpeningElement as jSXOpeningElement, jsxOpeningFragment as jSXOpeningFragment, jsxSpreadAttribute as jSXSpreadAttribute, jsxSpreadChild as jSXSpreadChild, jsxText as jSXText, jsxAttribute, jsxClosingElement, jsxClosingFragment, jsxElement, jsxEmptyExpression, jsxExpressionContainer, jsxFragment, jsxIdentifier, jsxMemberExpression, jsxNamespacedName, jsxOpeningElement, jsxOpeningFragment, jsxSpreadAttribute, jsxSpreadChild, jsxText, labeledStatement, logicalExpression, matchesPattern, memberExpression, metaProperty, mixedTypeAnnotation, moduleExpression, newExpression, noop, nullLiteral, nullLiteralTypeAnnotation, nullableTypeAnnotation, NumberLiteral as numberLiteral, numberLiteralTypeAnnotation, numberTypeAnnotation, numericLiteral, objectExpression, objectMethod, objectPattern, objectProperty, objectTypeAnnotation, objectTypeCallProperty, objectTypeIndexer, objectTypeInternalSlot, objectTypeProperty, objectTypeSpreadProperty, opaqueType, optionalCallExpression, optionalIndexedAccessType, optionalMemberExpression, parenthesizedExpression, pipelineBareFunction, pipelinePrimaryTopicReference, pipelineTopicExpression, placeholder, prependToMemberExpression, privateName, program, qualifiedTypeIdentifier, react, recordExpression, regExpLiteral, RegexLiteral as regexLiteral, removeComments, removeProperties, removePropertiesDeep, removeTypeDuplicates, restElement, RestProperty as restProperty, returnStatement, sequenceExpression, shallowEqual, spreadElement, SpreadProperty as spreadProperty, staticBlock, stringLiteral, stringLiteralTypeAnnotation, stringTypeAnnotation, _super as super, switchCase, switchStatement, symbolTypeAnnotation, tsAnyKeyword as tSAnyKeyword, tsArrayType as tSArrayType, tsAsExpression as tSAsExpression, tsBigIntKeyword as tSBigIntKeyword, tsBooleanKeyword as tSBooleanKeyword, tsCallSignatureDeclaration as tSCallSignatureDeclaration, tsConditionalType as tSConditionalType, tsConstructSignatureDeclaration as tSConstructSignatureDeclaration, tsConstructorType as tSConstructorType, tsDeclareFunction as tSDeclareFunction, tsDeclareMethod as tSDeclareMethod, tsEnumDeclaration as tSEnumDeclaration, tsEnumMember as tSEnumMember, tsExportAssignment as tSExportAssignment, tsExpressionWithTypeArguments as tSExpressionWithTypeArguments, tsExternalModuleReference as tSExternalModuleReference, tsFunctionType as tSFunctionType, tsImportEqualsDeclaration as tSImportEqualsDeclaration, tsImportType as tSImportType, tsIndexSignature as tSIndexSignature, tsIndexedAccessType as tSIndexedAccessType, tsInferType as tSInferType, tsInterfaceBody as tSInterfaceBody, tsInterfaceDeclaration as tSInterfaceDeclaration, tsIntersectionType as tSIntersectionType, tsIntrinsicKeyword as tSIntrinsicKeyword, tsLiteralType as tSLiteralType, tsMappedType as tSMappedType, tsMethodSignature as tSMethodSignature, tsModuleBlock as tSModuleBlock, tsModuleDeclaration as tSModuleDeclaration, tsNamedTupleMember as tSNamedTupleMember, tsNamespaceExportDeclaration as tSNamespaceExportDeclaration, tsNeverKeyword as tSNeverKeyword, tsNonNullExpression as tSNonNullExpression, tsNullKeyword as tSNullKeyword, tsNumberKeyword as tSNumberKeyword, tsObjectKeyword as tSObjectKeyword, tsOptionalType as tSOptionalType, tsParameterProperty as tSParameterProperty, tsParenthesizedType as tSParenthesizedType, tsPropertySignature as tSPropertySignature, tsQualifiedName as tSQualifiedName, tsRestType as tSRestType, tsStringKeyword as tSStringKeyword, tsSymbolKeyword as tSSymbolKeyword, tsThisType as tSThisType, tsTupleType as tSTupleType, tsTypeAliasDeclaration as tSTypeAliasDeclaration, tsTypeAnnotation as tSTypeAnnotation, tsTypeAssertion as tSTypeAssertion, tsTypeLiteral as tSTypeLiteral, tsTypeOperator as tSTypeOperator, tsTypeParameter as tSTypeParameter, tsTypeParameterDeclaration as tSTypeParameterDeclaration, tsTypeParameterInstantiation as tSTypeParameterInstantiation, tsTypePredicate as tSTypePredicate, tsTypeQuery as tSTypeQuery, tsTypeReference as tSTypeReference, tsUndefinedKeyword as tSUndefinedKeyword, tsUnionType as tSUnionType, tsUnknownKeyword as tSUnknownKeyword, tsVoidKeyword as tSVoidKeyword, taggedTemplateExpression, templateElement, templateLiteral, thisExpression, thisTypeAnnotation, throwStatement, toBindingIdentifierName, toBlock, toComputedKey, _default$3 as toExpression, toIdentifier, toKeyAlias, toSequenceExpression, _default$2 as toStatement, topicReference, traverse, traverseFast, tryStatement, tsAnyKeyword, tsArrayType, tsAsExpression, tsBigIntKeyword, tsBooleanKeyword, tsCallSignatureDeclaration, tsConditionalType, tsConstructSignatureDeclaration, tsConstructorType, tsDeclareFunction, tsDeclareMethod, tsEnumDeclaration, tsEnumMember, tsExportAssignment, tsExpressionWithTypeArguments, tsExternalModuleReference, tsFunctionType, tsImportEqualsDeclaration, tsImportType, tsIndexSignature, tsIndexedAccessType, tsInferType, tsInterfaceBody, tsInterfaceDeclaration, tsIntersectionType, tsIntrinsicKeyword, tsLiteralType, tsMappedType, tsMethodSignature, tsModuleBlock, tsModuleDeclaration, tsNamedTupleMember, tsNamespaceExportDeclaration, tsNeverKeyword, tsNonNullExpression, tsNullKeyword, tsNumberKeyword, tsObjectKeyword, tsOptionalType, tsParameterProperty, tsParenthesizedType, tsPropertySignature, tsQualifiedName, tsRestType, tsStringKeyword, tsSymbolKeyword, tsThisType, tsTupleType, tsTypeAliasDeclaration, tsTypeAnnotation, tsTypeAssertion, tsTypeLiteral, tsTypeOperator, tsTypeParameter, tsTypeParameterDeclaration, tsTypeParameterInstantiation, tsTypePredicate, tsTypeQuery, tsTypeReference, tsUndefinedKeyword, tsUnionType, tsUnknownKeyword, tsVoidKeyword, tupleExpression, tupleTypeAnnotation, typeAlias, typeAnnotation, typeCastExpression, typeParameter, typeParameterDeclaration, typeParameterInstantiation, typeofTypeAnnotation, unaryExpression, unionTypeAnnotation, updateExpression, v8IntrinsicIdentifier, validate, _default$1 as valueToNode, variableDeclaration, variableDeclarator, variance, voidTypeAnnotation, whileStatement, withStatement, yieldExpression }; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..677a331152989abecd15915d19567f40e089804f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/index.js" @@ -0,0 +1,647 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +var _exportNames = { + react: true, + assertNode: true, + createTypeAnnotationBasedOnTypeof: true, + createUnionTypeAnnotation: true, + createFlowUnionType: true, + createTSUnionType: true, + cloneNode: true, + clone: true, + cloneDeep: true, + cloneDeepWithoutLoc: true, + cloneWithoutLoc: true, + addComment: true, + addComments: true, + inheritInnerComments: true, + inheritLeadingComments: true, + inheritsComments: true, + inheritTrailingComments: true, + removeComments: true, + ensureBlock: true, + toBindingIdentifierName: true, + toBlock: true, + toComputedKey: true, + toExpression: true, + toIdentifier: true, + toKeyAlias: true, + toSequenceExpression: true, + toStatement: true, + valueToNode: true, + appendToMemberExpression: true, + inherits: true, + prependToMemberExpression: true, + removeProperties: true, + removePropertiesDeep: true, + removeTypeDuplicates: true, + getBindingIdentifiers: true, + getOuterBindingIdentifiers: true, + traverse: true, + traverseFast: true, + shallowEqual: true, + is: true, + isBinding: true, + isBlockScoped: true, + isImmutable: true, + isLet: true, + isNode: true, + isNodesEquivalent: true, + isPlaceholderType: true, + isReferenced: true, + isScope: true, + isSpecifierDefault: true, + isType: true, + isValidES3Identifier: true, + isValidIdentifier: true, + isVar: true, + matchesPattern: true, + validate: true, + buildMatchMemberExpression: true +}; +Object.defineProperty(exports, "addComment", { + enumerable: true, + get: function () { + return _addComment.default; + } +}); +Object.defineProperty(exports, "addComments", { + enumerable: true, + get: function () { + return _addComments.default; + } +}); +Object.defineProperty(exports, "appendToMemberExpression", { + enumerable: true, + get: function () { + return _appendToMemberExpression.default; + } +}); +Object.defineProperty(exports, "assertNode", { + enumerable: true, + get: function () { + return _assertNode.default; + } +}); +Object.defineProperty(exports, "buildMatchMemberExpression", { + enumerable: true, + get: function () { + return _buildMatchMemberExpression.default; + } +}); +Object.defineProperty(exports, "clone", { + enumerable: true, + get: function () { + return _clone.default; + } +}); +Object.defineProperty(exports, "cloneDeep", { + enumerable: true, + get: function () { + return _cloneDeep.default; + } +}); +Object.defineProperty(exports, "cloneDeepWithoutLoc", { + enumerable: true, + get: function () { + return _cloneDeepWithoutLoc.default; + } +}); +Object.defineProperty(exports, "cloneNode", { + enumerable: true, + get: function () { + return _cloneNode.default; + } +}); +Object.defineProperty(exports, "cloneWithoutLoc", { + enumerable: true, + get: function () { + return _cloneWithoutLoc.default; + } +}); +Object.defineProperty(exports, "createFlowUnionType", { + enumerable: true, + get: function () { + return _createFlowUnionType.default; + } +}); +Object.defineProperty(exports, "createTSUnionType", { + enumerable: true, + get: function () { + return _createTSUnionType.default; + } +}); +Object.defineProperty(exports, "createTypeAnnotationBasedOnTypeof", { + enumerable: true, + get: function () { + return _createTypeAnnotationBasedOnTypeof.default; + } +}); +Object.defineProperty(exports, "createUnionTypeAnnotation", { + enumerable: true, + get: function () { + return _createFlowUnionType.default; + } +}); +Object.defineProperty(exports, "ensureBlock", { + enumerable: true, + get: function () { + return _ensureBlock.default; + } +}); +Object.defineProperty(exports, "getBindingIdentifiers", { + enumerable: true, + get: function () { + return _getBindingIdentifiers.default; + } +}); +Object.defineProperty(exports, "getOuterBindingIdentifiers", { + enumerable: true, + get: function () { + return _getOuterBindingIdentifiers.default; + } +}); +Object.defineProperty(exports, "inheritInnerComments", { + enumerable: true, + get: function () { + return _inheritInnerComments.default; + } +}); +Object.defineProperty(exports, "inheritLeadingComments", { + enumerable: true, + get: function () { + return _inheritLeadingComments.default; + } +}); +Object.defineProperty(exports, "inheritTrailingComments", { + enumerable: true, + get: function () { + return _inheritTrailingComments.default; + } +}); +Object.defineProperty(exports, "inherits", { + enumerable: true, + get: function () { + return _inherits.default; + } +}); +Object.defineProperty(exports, "inheritsComments", { + enumerable: true, + get: function () { + return _inheritsComments.default; + } +}); +Object.defineProperty(exports, "is", { + enumerable: true, + get: function () { + return _is.default; + } +}); +Object.defineProperty(exports, "isBinding", { + enumerable: true, + get: function () { + return _isBinding.default; + } +}); +Object.defineProperty(exports, "isBlockScoped", { + enumerable: true, + get: function () { + return _isBlockScoped.default; + } +}); +Object.defineProperty(exports, "isImmutable", { + enumerable: true, + get: function () { + return _isImmutable.default; + } +}); +Object.defineProperty(exports, "isLet", { + enumerable: true, + get: function () { + return _isLet.default; + } +}); +Object.defineProperty(exports, "isNode", { + enumerable: true, + get: function () { + return _isNode.default; + } +}); +Object.defineProperty(exports, "isNodesEquivalent", { + enumerable: true, + get: function () { + return _isNodesEquivalent.default; + } +}); +Object.defineProperty(exports, "isPlaceholderType", { + enumerable: true, + get: function () { + return _isPlaceholderType.default; + } +}); +Object.defineProperty(exports, "isReferenced", { + enumerable: true, + get: function () { + return _isReferenced.default; + } +}); +Object.defineProperty(exports, "isScope", { + enumerable: true, + get: function () { + return _isScope.default; + } +}); +Object.defineProperty(exports, "isSpecifierDefault", { + enumerable: true, + get: function () { + return _isSpecifierDefault.default; + } +}); +Object.defineProperty(exports, "isType", { + enumerable: true, + get: function () { + return _isType.default; + } +}); +Object.defineProperty(exports, "isValidES3Identifier", { + enumerable: true, + get: function () { + return _isValidES3Identifier.default; + } +}); +Object.defineProperty(exports, "isValidIdentifier", { + enumerable: true, + get: function () { + return _isValidIdentifier.default; + } +}); +Object.defineProperty(exports, "isVar", { + enumerable: true, + get: function () { + return _isVar.default; + } +}); +Object.defineProperty(exports, "matchesPattern", { + enumerable: true, + get: function () { + return _matchesPattern.default; + } +}); +Object.defineProperty(exports, "prependToMemberExpression", { + enumerable: true, + get: function () { + return _prependToMemberExpression.default; + } +}); +exports.react = void 0; +Object.defineProperty(exports, "removeComments", { + enumerable: true, + get: function () { + return _removeComments.default; + } +}); +Object.defineProperty(exports, "removeProperties", { + enumerable: true, + get: function () { + return _removeProperties.default; + } +}); +Object.defineProperty(exports, "removePropertiesDeep", { + enumerable: true, + get: function () { + return _removePropertiesDeep.default; + } +}); +Object.defineProperty(exports, "removeTypeDuplicates", { + enumerable: true, + get: function () { + return _removeTypeDuplicates.default; + } +}); +Object.defineProperty(exports, "shallowEqual", { + enumerable: true, + get: function () { + return _shallowEqual.default; + } +}); +Object.defineProperty(exports, "toBindingIdentifierName", { + enumerable: true, + get: function () { + return _toBindingIdentifierName.default; + } +}); +Object.defineProperty(exports, "toBlock", { + enumerable: true, + get: function () { + return _toBlock.default; + } +}); +Object.defineProperty(exports, "toComputedKey", { + enumerable: true, + get: function () { + return _toComputedKey.default; + } +}); +Object.defineProperty(exports, "toExpression", { + enumerable: true, + get: function () { + return _toExpression.default; + } +}); +Object.defineProperty(exports, "toIdentifier", { + enumerable: true, + get: function () { + return _toIdentifier.default; + } +}); +Object.defineProperty(exports, "toKeyAlias", { + enumerable: true, + get: function () { + return _toKeyAlias.default; + } +}); +Object.defineProperty(exports, "toSequenceExpression", { + enumerable: true, + get: function () { + return _toSequenceExpression.default; + } +}); +Object.defineProperty(exports, "toStatement", { + enumerable: true, + get: function () { + return _toStatement.default; + } +}); +Object.defineProperty(exports, "traverse", { + enumerable: true, + get: function () { + return _traverse.default; + } +}); +Object.defineProperty(exports, "traverseFast", { + enumerable: true, + get: function () { + return _traverseFast.default; + } +}); +Object.defineProperty(exports, "validate", { + enumerable: true, + get: function () { + return _validate.default; + } +}); +Object.defineProperty(exports, "valueToNode", { + enumerable: true, + get: function () { + return _valueToNode.default; + } +}); + +var _isReactComponent = require("./validators/react/isReactComponent"); + +var _isCompatTag = require("./validators/react/isCompatTag"); + +var _buildChildren = require("./builders/react/buildChildren"); + +var _assertNode = require("./asserts/assertNode"); + +var _generated = require("./asserts/generated"); + +Object.keys(_generated).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _generated[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _generated[key]; + } + }); +}); + +var _createTypeAnnotationBasedOnTypeof = require("./builders/flow/createTypeAnnotationBasedOnTypeof"); + +var _createFlowUnionType = require("./builders/flow/createFlowUnionType"); + +var _createTSUnionType = require("./builders/typescript/createTSUnionType"); + +var _generated2 = require("./builders/generated"); + +Object.keys(_generated2).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _generated2[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _generated2[key]; + } + }); +}); + +var _uppercase = require("./builders/generated/uppercase"); + +Object.keys(_uppercase).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _uppercase[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _uppercase[key]; + } + }); +}); + +var _cloneNode = require("./clone/cloneNode"); + +var _clone = require("./clone/clone"); + +var _cloneDeep = require("./clone/cloneDeep"); + +var _cloneDeepWithoutLoc = require("./clone/cloneDeepWithoutLoc"); + +var _cloneWithoutLoc = require("./clone/cloneWithoutLoc"); + +var _addComment = require("./comments/addComment"); + +var _addComments = require("./comments/addComments"); + +var _inheritInnerComments = require("./comments/inheritInnerComments"); + +var _inheritLeadingComments = require("./comments/inheritLeadingComments"); + +var _inheritsComments = require("./comments/inheritsComments"); + +var _inheritTrailingComments = require("./comments/inheritTrailingComments"); + +var _removeComments = require("./comments/removeComments"); + +var _generated3 = require("./constants/generated"); + +Object.keys(_generated3).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _generated3[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _generated3[key]; + } + }); +}); + +var _constants = require("./constants"); + +Object.keys(_constants).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _constants[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _constants[key]; + } + }); +}); + +var _ensureBlock = require("./converters/ensureBlock"); + +var _toBindingIdentifierName = require("./converters/toBindingIdentifierName"); + +var _toBlock = require("./converters/toBlock"); + +var _toComputedKey = require("./converters/toComputedKey"); + +var _toExpression = require("./converters/toExpression"); + +var _toIdentifier = require("./converters/toIdentifier"); + +var _toKeyAlias = require("./converters/toKeyAlias"); + +var _toSequenceExpression = require("./converters/toSequenceExpression"); + +var _toStatement = require("./converters/toStatement"); + +var _valueToNode = require("./converters/valueToNode"); + +var _definitions = require("./definitions"); + +Object.keys(_definitions).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _definitions[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _definitions[key]; + } + }); +}); + +var _appendToMemberExpression = require("./modifications/appendToMemberExpression"); + +var _inherits = require("./modifications/inherits"); + +var _prependToMemberExpression = require("./modifications/prependToMemberExpression"); + +var _removeProperties = require("./modifications/removeProperties"); + +var _removePropertiesDeep = require("./modifications/removePropertiesDeep"); + +var _removeTypeDuplicates = require("./modifications/flow/removeTypeDuplicates"); + +var _getBindingIdentifiers = require("./retrievers/getBindingIdentifiers"); + +var _getOuterBindingIdentifiers = require("./retrievers/getOuterBindingIdentifiers"); + +var _traverse = require("./traverse/traverse"); + +Object.keys(_traverse).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _traverse[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _traverse[key]; + } + }); +}); + +var _traverseFast = require("./traverse/traverseFast"); + +var _shallowEqual = require("./utils/shallowEqual"); + +var _is = require("./validators/is"); + +var _isBinding = require("./validators/isBinding"); + +var _isBlockScoped = require("./validators/isBlockScoped"); + +var _isImmutable = require("./validators/isImmutable"); + +var _isLet = require("./validators/isLet"); + +var _isNode = require("./validators/isNode"); + +var _isNodesEquivalent = require("./validators/isNodesEquivalent"); + +var _isPlaceholderType = require("./validators/isPlaceholderType"); + +var _isReferenced = require("./validators/isReferenced"); + +var _isScope = require("./validators/isScope"); + +var _isSpecifierDefault = require("./validators/isSpecifierDefault"); + +var _isType = require("./validators/isType"); + +var _isValidES3Identifier = require("./validators/isValidES3Identifier"); + +var _isValidIdentifier = require("./validators/isValidIdentifier"); + +var _isVar = require("./validators/isVar"); + +var _matchesPattern = require("./validators/matchesPattern"); + +var _validate = require("./validators/validate"); + +var _buildMatchMemberExpression = require("./validators/buildMatchMemberExpression"); + +var _generated4 = require("./validators/generated"); + +Object.keys(_generated4).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _generated4[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _generated4[key]; + } + }); +}); + +var _generated5 = require("./ast-types/generated"); + +Object.keys(_generated5).forEach(function (key) { + if (key === "default" || key === "__esModule") return; + if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return; + if (key in exports && exports[key] === _generated5[key]) return; + Object.defineProperty(exports, key, { + enumerable: true, + get: function () { + return _generated5[key]; + } + }); +}); +const react = { + isReactComponent: _isReactComponent.default, + isCompatTag: _isCompatTag.default, + buildChildren: _buildChildren.default +}; +exports.react = react; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/index.js.flow" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/index.js.flow" new file mode 100644 index 0000000000000000000000000000000000000000..331add0f3c81d2e260fb53b64eb6bd01456dc236 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/index.js.flow" @@ -0,0 +1,2572 @@ +// NOTE: This file is autogenerated. Do not modify. +// See packages/babel-types/scripts/generators/flow.js for script used. + +declare class BabelNodeComment { + value: string; + start: number; + end: number; + loc: BabelNodeSourceLocation; +} + +declare class BabelNodeCommentBlock extends BabelNodeComment { + type: "CommentBlock"; +} + +declare class BabelNodeCommentLine extends BabelNodeComment { + type: "CommentLine"; +} + +declare class BabelNodeSourceLocation { + start: { + line: number; + column: number; + }; + + end: { + line: number; + column: number; + }; +} + +declare class BabelNode { + leadingComments?: Array; + innerComments?: Array; + trailingComments?: Array; + start: ?number; + end: ?number; + loc: ?BabelNodeSourceLocation; + extra?: { [string]: mixed }; +} + +declare class BabelNodeArrayExpression extends BabelNode { + type: "ArrayExpression"; + elements?: Array; +} + +declare class BabelNodeAssignmentExpression extends BabelNode { + type: "AssignmentExpression"; + operator: string; + left: BabelNodeLVal; + right: BabelNodeExpression; +} + +declare class BabelNodeBinaryExpression extends BabelNode { + type: "BinaryExpression"; + operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<="; + left: BabelNodeExpression | BabelNodePrivateName; + right: BabelNodeExpression; +} + +declare class BabelNodeInterpreterDirective extends BabelNode { + type: "InterpreterDirective"; + value: string; +} + +declare class BabelNodeDirective extends BabelNode { + type: "Directive"; + value: BabelNodeDirectiveLiteral; +} + +declare class BabelNodeDirectiveLiteral extends BabelNode { + type: "DirectiveLiteral"; + value: string; +} + +declare class BabelNodeBlockStatement extends BabelNode { + type: "BlockStatement"; + body: Array; + directives?: Array; +} + +declare class BabelNodeBreakStatement extends BabelNode { + type: "BreakStatement"; + label?: BabelNodeIdentifier; +} + +declare class BabelNodeCallExpression extends BabelNode { + type: "CallExpression"; + callee: BabelNodeExpression | BabelNodeV8IntrinsicIdentifier; + arguments: Array; + optional?: true | false; + typeArguments?: BabelNodeTypeParameterInstantiation; + typeParameters?: BabelNodeTSTypeParameterInstantiation; +} + +declare class BabelNodeCatchClause extends BabelNode { + type: "CatchClause"; + param?: BabelNodeIdentifier | BabelNodeArrayPattern | BabelNodeObjectPattern; + body: BabelNodeBlockStatement; +} + +declare class BabelNodeConditionalExpression extends BabelNode { + type: "ConditionalExpression"; + test: BabelNodeExpression; + consequent: BabelNodeExpression; + alternate: BabelNodeExpression; +} + +declare class BabelNodeContinueStatement extends BabelNode { + type: "ContinueStatement"; + label?: BabelNodeIdentifier; +} + +declare class BabelNodeDebuggerStatement extends BabelNode { + type: "DebuggerStatement"; +} + +declare class BabelNodeDoWhileStatement extends BabelNode { + type: "DoWhileStatement"; + test: BabelNodeExpression; + body: BabelNodeStatement; +} + +declare class BabelNodeEmptyStatement extends BabelNode { + type: "EmptyStatement"; +} + +declare class BabelNodeExpressionStatement extends BabelNode { + type: "ExpressionStatement"; + expression: BabelNodeExpression; +} + +declare class BabelNodeFile extends BabelNode { + type: "File"; + program: BabelNodeProgram; + comments?: Array; + tokens?: Array; +} + +declare class BabelNodeForInStatement extends BabelNode { + type: "ForInStatement"; + left: BabelNodeVariableDeclaration | BabelNodeLVal; + right: BabelNodeExpression; + body: BabelNodeStatement; +} + +declare class BabelNodeForStatement extends BabelNode { + type: "ForStatement"; + init?: BabelNodeVariableDeclaration | BabelNodeExpression; + test?: BabelNodeExpression; + update?: BabelNodeExpression; + body: BabelNodeStatement; +} + +declare class BabelNodeFunctionDeclaration extends BabelNode { + type: "FunctionDeclaration"; + id?: BabelNodeIdentifier; + params: Array; + body: BabelNodeBlockStatement; + generator?: boolean; + async?: boolean; + declare?: boolean; + returnType?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop; + typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop; +} + +declare class BabelNodeFunctionExpression extends BabelNode { + type: "FunctionExpression"; + id?: BabelNodeIdentifier; + params: Array; + body: BabelNodeBlockStatement; + generator?: boolean; + async?: boolean; + returnType?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop; + typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop; +} + +declare class BabelNodeIdentifier extends BabelNode { + type: "Identifier"; + name: string; + decorators?: Array; + optional?: boolean; + typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop; +} + +declare class BabelNodeIfStatement extends BabelNode { + type: "IfStatement"; + test: BabelNodeExpression; + consequent: BabelNodeStatement; + alternate?: BabelNodeStatement; +} + +declare class BabelNodeLabeledStatement extends BabelNode { + type: "LabeledStatement"; + label: BabelNodeIdentifier; + body: BabelNodeStatement; +} + +declare class BabelNodeStringLiteral extends BabelNode { + type: "StringLiteral"; + value: string; +} + +declare class BabelNodeNumericLiteral extends BabelNode { + type: "NumericLiteral"; + value: number; +} + +declare class BabelNodeNullLiteral extends BabelNode { + type: "NullLiteral"; +} + +declare class BabelNodeBooleanLiteral extends BabelNode { + type: "BooleanLiteral"; + value: boolean; +} + +declare class BabelNodeRegExpLiteral extends BabelNode { + type: "RegExpLiteral"; + pattern: string; + flags?: string; +} + +declare class BabelNodeLogicalExpression extends BabelNode { + type: "LogicalExpression"; + operator: "||" | "&&" | "??"; + left: BabelNodeExpression; + right: BabelNodeExpression; +} + +declare class BabelNodeMemberExpression extends BabelNode { + type: "MemberExpression"; + object: BabelNodeExpression; + property: BabelNodeExpression | BabelNodeIdentifier | BabelNodePrivateName; + computed?: boolean; + optional?: true | false; +} + +declare class BabelNodeNewExpression extends BabelNode { + type: "NewExpression"; + callee: BabelNodeExpression | BabelNodeV8IntrinsicIdentifier; + arguments: Array; + optional?: true | false; + typeArguments?: BabelNodeTypeParameterInstantiation; + typeParameters?: BabelNodeTSTypeParameterInstantiation; +} + +declare class BabelNodeProgram extends BabelNode { + type: "Program"; + body: Array; + directives?: Array; + sourceType?: "script" | "module"; + interpreter?: BabelNodeInterpreterDirective; + sourceFile: string; +} + +declare class BabelNodeObjectExpression extends BabelNode { + type: "ObjectExpression"; + properties: Array; +} + +declare class BabelNodeObjectMethod extends BabelNode { + type: "ObjectMethod"; + kind?: "method" | "get" | "set"; + key: BabelNodeExpression | BabelNodeIdentifier | BabelNodeStringLiteral | BabelNodeNumericLiteral; + params: Array; + body: BabelNodeBlockStatement; + computed?: boolean; + generator?: boolean; + async?: boolean; + decorators?: Array; + returnType?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop; + typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop; +} + +declare class BabelNodeObjectProperty extends BabelNode { + type: "ObjectProperty"; + key: BabelNodeExpression | BabelNodeIdentifier | BabelNodeStringLiteral | BabelNodeNumericLiteral; + value: BabelNodeExpression | BabelNodePatternLike; + computed?: boolean; + shorthand?: boolean; + decorators?: Array; +} + +declare class BabelNodeRestElement extends BabelNode { + type: "RestElement"; + argument: BabelNodeLVal; + decorators?: Array; + optional?: boolean; + typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop; +} + +declare class BabelNodeReturnStatement extends BabelNode { + type: "ReturnStatement"; + argument?: BabelNodeExpression; +} + +declare class BabelNodeSequenceExpression extends BabelNode { + type: "SequenceExpression"; + expressions: Array; +} + +declare class BabelNodeParenthesizedExpression extends BabelNode { + type: "ParenthesizedExpression"; + expression: BabelNodeExpression; +} + +declare class BabelNodeSwitchCase extends BabelNode { + type: "SwitchCase"; + test?: BabelNodeExpression; + consequent: Array; +} + +declare class BabelNodeSwitchStatement extends BabelNode { + type: "SwitchStatement"; + discriminant: BabelNodeExpression; + cases: Array; +} + +declare class BabelNodeThisExpression extends BabelNode { + type: "ThisExpression"; +} + +declare class BabelNodeThrowStatement extends BabelNode { + type: "ThrowStatement"; + argument: BabelNodeExpression; +} + +declare class BabelNodeTryStatement extends BabelNode { + type: "TryStatement"; + block: BabelNodeBlockStatement; + handler?: BabelNodeCatchClause; + finalizer?: BabelNodeBlockStatement; +} + +declare class BabelNodeUnaryExpression extends BabelNode { + type: "UnaryExpression"; + operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof"; + argument: BabelNodeExpression; + prefix?: boolean; +} + +declare class BabelNodeUpdateExpression extends BabelNode { + type: "UpdateExpression"; + operator: "++" | "--"; + argument: BabelNodeExpression; + prefix?: boolean; +} + +declare class BabelNodeVariableDeclaration extends BabelNode { + type: "VariableDeclaration"; + kind: "var" | "let" | "const"; + declarations: Array; + declare?: boolean; +} + +declare class BabelNodeVariableDeclarator extends BabelNode { + type: "VariableDeclarator"; + id: BabelNodeLVal; + init?: BabelNodeExpression; + definite?: boolean; +} + +declare class BabelNodeWhileStatement extends BabelNode { + type: "WhileStatement"; + test: BabelNodeExpression; + body: BabelNodeStatement; +} + +declare class BabelNodeWithStatement extends BabelNode { + type: "WithStatement"; + object: BabelNodeExpression; + body: BabelNodeStatement; +} + +declare class BabelNodeAssignmentPattern extends BabelNode { + type: "AssignmentPattern"; + left: BabelNodeIdentifier | BabelNodeObjectPattern | BabelNodeArrayPattern | BabelNodeMemberExpression; + right: BabelNodeExpression; + decorators?: Array; + typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop; +} + +declare class BabelNodeArrayPattern extends BabelNode { + type: "ArrayPattern"; + elements: Array; + decorators?: Array; + optional?: boolean; + typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop; +} + +declare class BabelNodeArrowFunctionExpression extends BabelNode { + type: "ArrowFunctionExpression"; + params: Array; + body: BabelNodeBlockStatement | BabelNodeExpression; + async?: boolean; + expression: boolean; + generator?: boolean; + returnType?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop; + typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop; +} + +declare class BabelNodeClassBody extends BabelNode { + type: "ClassBody"; + body: Array; +} + +declare class BabelNodeClassExpression extends BabelNode { + type: "ClassExpression"; + id?: BabelNodeIdentifier; + superClass?: BabelNodeExpression; + body: BabelNodeClassBody; + decorators?: Array; + mixins?: BabelNodeInterfaceExtends; + superTypeParameters?: BabelNodeTypeParameterInstantiation | BabelNodeTSTypeParameterInstantiation; + typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop; +} + +declare class BabelNodeClassDeclaration extends BabelNode { + type: "ClassDeclaration"; + id: BabelNodeIdentifier; + superClass?: BabelNodeExpression; + body: BabelNodeClassBody; + decorators?: Array; + abstract?: boolean; + declare?: boolean; + mixins?: BabelNodeInterfaceExtends; + superTypeParameters?: BabelNodeTypeParameterInstantiation | BabelNodeTSTypeParameterInstantiation; + typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop; +} + +declare class BabelNodeExportAllDeclaration extends BabelNode { + type: "ExportAllDeclaration"; + source: BabelNodeStringLiteral; + assertions?: Array; + exportKind?: "type" | "value"; +} + +declare class BabelNodeExportDefaultDeclaration extends BabelNode { + type: "ExportDefaultDeclaration"; + declaration: BabelNodeFunctionDeclaration | BabelNodeTSDeclareFunction | BabelNodeClassDeclaration | BabelNodeExpression; + exportKind?: "value"; +} + +declare class BabelNodeExportNamedDeclaration extends BabelNode { + type: "ExportNamedDeclaration"; + declaration?: BabelNodeDeclaration; + specifiers?: Array; + source?: BabelNodeStringLiteral; + assertions?: Array; + exportKind?: "type" | "value"; +} + +declare class BabelNodeExportSpecifier extends BabelNode { + type: "ExportSpecifier"; + local: BabelNodeIdentifier; + exported: BabelNodeIdentifier | BabelNodeStringLiteral; + exportKind?: "type" | "value"; +} + +declare class BabelNodeForOfStatement extends BabelNode { + type: "ForOfStatement"; + left: BabelNodeVariableDeclaration | BabelNodeLVal; + right: BabelNodeExpression; + body: BabelNodeStatement; +} + +declare class BabelNodeImportDeclaration extends BabelNode { + type: "ImportDeclaration"; + specifiers: Array; + source: BabelNodeStringLiteral; + assertions?: Array; + importKind?: "type" | "typeof" | "value"; +} + +declare class BabelNodeImportDefaultSpecifier extends BabelNode { + type: "ImportDefaultSpecifier"; + local: BabelNodeIdentifier; +} + +declare class BabelNodeImportNamespaceSpecifier extends BabelNode { + type: "ImportNamespaceSpecifier"; + local: BabelNodeIdentifier; +} + +declare class BabelNodeImportSpecifier extends BabelNode { + type: "ImportSpecifier"; + local: BabelNodeIdentifier; + imported: BabelNodeIdentifier | BabelNodeStringLiteral; + importKind?: "type" | "typeof" | "value"; +} + +declare class BabelNodeMetaProperty extends BabelNode { + type: "MetaProperty"; + meta: BabelNodeIdentifier; + property: BabelNodeIdentifier; +} + +declare class BabelNodeClassMethod extends BabelNode { + type: "ClassMethod"; + kind?: "get" | "set" | "method" | "constructor"; + key: BabelNodeIdentifier | BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeExpression; + params: Array; + body: BabelNodeBlockStatement; + computed?: boolean; + generator?: boolean; + async?: boolean; + abstract?: boolean; + access?: "public" | "private" | "protected"; + accessibility?: "public" | "private" | "protected"; + decorators?: Array; + optional?: boolean; + override?: boolean; + returnType?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop; + typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop; +} + +declare class BabelNodeObjectPattern extends BabelNode { + type: "ObjectPattern"; + properties: Array; + decorators?: Array; + typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop; +} + +declare class BabelNodeSpreadElement extends BabelNode { + type: "SpreadElement"; + argument: BabelNodeExpression; +} + +declare class BabelNodeSuper extends BabelNode { + type: "Super"; +} + +declare class BabelNodeTaggedTemplateExpression extends BabelNode { + type: "TaggedTemplateExpression"; + tag: BabelNodeExpression; + quasi: BabelNodeTemplateLiteral; + typeParameters?: BabelNodeTypeParameterInstantiation | BabelNodeTSTypeParameterInstantiation; +} + +declare class BabelNodeTemplateElement extends BabelNode { + type: "TemplateElement"; + value: { raw: string, cooked?: string }; + tail?: boolean; +} + +declare class BabelNodeTemplateLiteral extends BabelNode { + type: "TemplateLiteral"; + quasis: Array; + expressions: Array; +} + +declare class BabelNodeYieldExpression extends BabelNode { + type: "YieldExpression"; + argument?: BabelNodeExpression; + delegate?: boolean; +} + +declare class BabelNodeAwaitExpression extends BabelNode { + type: "AwaitExpression"; + argument: BabelNodeExpression; +} + +declare class BabelNodeImport extends BabelNode { + type: "Import"; +} + +declare class BabelNodeBigIntLiteral extends BabelNode { + type: "BigIntLiteral"; + value: string; +} + +declare class BabelNodeExportNamespaceSpecifier extends BabelNode { + type: "ExportNamespaceSpecifier"; + exported: BabelNodeIdentifier; +} + +declare class BabelNodeOptionalMemberExpression extends BabelNode { + type: "OptionalMemberExpression"; + object: BabelNodeExpression; + property: BabelNodeExpression | BabelNodeIdentifier; + computed?: boolean; + optional: boolean; +} + +declare class BabelNodeOptionalCallExpression extends BabelNode { + type: "OptionalCallExpression"; + callee: BabelNodeExpression; + arguments: Array; + optional: boolean; + typeArguments?: BabelNodeTypeParameterInstantiation; + typeParameters?: BabelNodeTSTypeParameterInstantiation; +} + +declare class BabelNodeClassProperty extends BabelNode { + type: "ClassProperty"; + key: BabelNodeIdentifier | BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeExpression; + value?: BabelNodeExpression; + typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop; + decorators?: Array; + computed?: boolean; + abstract?: boolean; + accessibility?: "public" | "private" | "protected"; + declare?: boolean; + definite?: boolean; + optional?: boolean; + override?: boolean; + readonly?: boolean; + variance?: BabelNodeVariance; +} + +declare class BabelNodeClassAccessorProperty extends BabelNode { + type: "ClassAccessorProperty"; + key: BabelNodeIdentifier | BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeExpression | BabelNodePrivateName; + value?: BabelNodeExpression; + typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop; + decorators?: Array; + computed?: boolean; + abstract?: boolean; + accessibility?: "public" | "private" | "protected"; + declare?: boolean; + definite?: boolean; + optional?: boolean; + override?: boolean; + readonly?: boolean; + variance?: BabelNodeVariance; +} + +declare class BabelNodeClassPrivateProperty extends BabelNode { + type: "ClassPrivateProperty"; + key: BabelNodePrivateName; + value?: BabelNodeExpression; + decorators?: Array; + definite?: boolean; + readonly?: boolean; + typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop; + variance?: BabelNodeVariance; +} + +declare class BabelNodeClassPrivateMethod extends BabelNode { + type: "ClassPrivateMethod"; + kind?: "get" | "set" | "method" | "constructor"; + key: BabelNodePrivateName; + params: Array; + body: BabelNodeBlockStatement; + abstract?: boolean; + access?: "public" | "private" | "protected"; + accessibility?: "public" | "private" | "protected"; + async?: boolean; + computed?: boolean; + decorators?: Array; + generator?: boolean; + optional?: boolean; + override?: boolean; + returnType?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop; + typeParameters?: BabelNodeTypeParameterDeclaration | BabelNodeTSTypeParameterDeclaration | BabelNodeNoop; +} + +declare class BabelNodePrivateName extends BabelNode { + type: "PrivateName"; + id: BabelNodeIdentifier; +} + +declare class BabelNodeStaticBlock extends BabelNode { + type: "StaticBlock"; + body: Array; +} + +declare class BabelNodeAnyTypeAnnotation extends BabelNode { + type: "AnyTypeAnnotation"; +} + +declare class BabelNodeArrayTypeAnnotation extends BabelNode { + type: "ArrayTypeAnnotation"; + elementType: BabelNodeFlowType; +} + +declare class BabelNodeBooleanTypeAnnotation extends BabelNode { + type: "BooleanTypeAnnotation"; +} + +declare class BabelNodeBooleanLiteralTypeAnnotation extends BabelNode { + type: "BooleanLiteralTypeAnnotation"; + value: boolean; +} + +declare class BabelNodeNullLiteralTypeAnnotation extends BabelNode { + type: "NullLiteralTypeAnnotation"; +} + +declare class BabelNodeClassImplements extends BabelNode { + type: "ClassImplements"; + id: BabelNodeIdentifier; + typeParameters?: BabelNodeTypeParameterInstantiation; +} + +declare class BabelNodeDeclareClass extends BabelNode { + type: "DeclareClass"; + id: BabelNodeIdentifier; + typeParameters?: BabelNodeTypeParameterDeclaration; + body: BabelNodeObjectTypeAnnotation; + mixins?: Array; +} + +declare class BabelNodeDeclareFunction extends BabelNode { + type: "DeclareFunction"; + id: BabelNodeIdentifier; + predicate?: BabelNodeDeclaredPredicate; +} + +declare class BabelNodeDeclareInterface extends BabelNode { + type: "DeclareInterface"; + id: BabelNodeIdentifier; + typeParameters?: BabelNodeTypeParameterDeclaration; + body: BabelNodeObjectTypeAnnotation; + mixins?: Array; +} + +declare class BabelNodeDeclareModule extends BabelNode { + type: "DeclareModule"; + id: BabelNodeIdentifier | BabelNodeStringLiteral; + body: BabelNodeBlockStatement; + kind?: "CommonJS" | "ES"; +} + +declare class BabelNodeDeclareModuleExports extends BabelNode { + type: "DeclareModuleExports"; + typeAnnotation: BabelNodeTypeAnnotation; +} + +declare class BabelNodeDeclareTypeAlias extends BabelNode { + type: "DeclareTypeAlias"; + id: BabelNodeIdentifier; + typeParameters?: BabelNodeTypeParameterDeclaration; + right: BabelNodeFlowType; +} + +declare class BabelNodeDeclareOpaqueType extends BabelNode { + type: "DeclareOpaqueType"; + id: BabelNodeIdentifier; + typeParameters?: BabelNodeTypeParameterDeclaration; + supertype?: BabelNodeFlowType; + impltype?: BabelNodeFlowType; +} + +declare class BabelNodeDeclareVariable extends BabelNode { + type: "DeclareVariable"; + id: BabelNodeIdentifier; +} + +declare class BabelNodeDeclareExportDeclaration extends BabelNode { + type: "DeclareExportDeclaration"; + declaration?: BabelNodeFlow; + specifiers?: Array; + source?: BabelNodeStringLiteral; +} + +declare class BabelNodeDeclareExportAllDeclaration extends BabelNode { + type: "DeclareExportAllDeclaration"; + source: BabelNodeStringLiteral; + exportKind?: "type" | "value"; +} + +declare class BabelNodeDeclaredPredicate extends BabelNode { + type: "DeclaredPredicate"; + value: BabelNodeFlow; +} + +declare class BabelNodeExistsTypeAnnotation extends BabelNode { + type: "ExistsTypeAnnotation"; +} + +declare class BabelNodeFunctionTypeAnnotation extends BabelNode { + type: "FunctionTypeAnnotation"; + typeParameters?: BabelNodeTypeParameterDeclaration; + params: Array; + rest?: BabelNodeFunctionTypeParam; + returnType: BabelNodeFlowType; +} + +declare class BabelNodeFunctionTypeParam extends BabelNode { + type: "FunctionTypeParam"; + name?: BabelNodeIdentifier; + typeAnnotation: BabelNodeFlowType; + optional?: boolean; +} + +declare class BabelNodeGenericTypeAnnotation extends BabelNode { + type: "GenericTypeAnnotation"; + id: BabelNodeIdentifier | BabelNodeQualifiedTypeIdentifier; + typeParameters?: BabelNodeTypeParameterInstantiation; +} + +declare class BabelNodeInferredPredicate extends BabelNode { + type: "InferredPredicate"; +} + +declare class BabelNodeInterfaceExtends extends BabelNode { + type: "InterfaceExtends"; + id: BabelNodeIdentifier | BabelNodeQualifiedTypeIdentifier; + typeParameters?: BabelNodeTypeParameterInstantiation; +} + +declare class BabelNodeInterfaceDeclaration extends BabelNode { + type: "InterfaceDeclaration"; + id: BabelNodeIdentifier; + typeParameters?: BabelNodeTypeParameterDeclaration; + body: BabelNodeObjectTypeAnnotation; + mixins?: Array; +} + +declare class BabelNodeInterfaceTypeAnnotation extends BabelNode { + type: "InterfaceTypeAnnotation"; + body: BabelNodeObjectTypeAnnotation; +} + +declare class BabelNodeIntersectionTypeAnnotation extends BabelNode { + type: "IntersectionTypeAnnotation"; + types: Array; +} + +declare class BabelNodeMixedTypeAnnotation extends BabelNode { + type: "MixedTypeAnnotation"; +} + +declare class BabelNodeEmptyTypeAnnotation extends BabelNode { + type: "EmptyTypeAnnotation"; +} + +declare class BabelNodeNullableTypeAnnotation extends BabelNode { + type: "NullableTypeAnnotation"; + typeAnnotation: BabelNodeFlowType; +} + +declare class BabelNodeNumberLiteralTypeAnnotation extends BabelNode { + type: "NumberLiteralTypeAnnotation"; + value: number; +} + +declare class BabelNodeNumberTypeAnnotation extends BabelNode { + type: "NumberTypeAnnotation"; +} + +declare class BabelNodeObjectTypeAnnotation extends BabelNode { + type: "ObjectTypeAnnotation"; + properties: Array; + indexers?: Array; + callProperties?: Array; + internalSlots?: Array; + exact?: boolean; + inexact?: boolean; +} + +declare class BabelNodeObjectTypeInternalSlot extends BabelNode { + type: "ObjectTypeInternalSlot"; + id: BabelNodeIdentifier; + value: BabelNodeFlowType; + optional: boolean; + method: boolean; +} + +declare class BabelNodeObjectTypeCallProperty extends BabelNode { + type: "ObjectTypeCallProperty"; + value: BabelNodeFlowType; +} + +declare class BabelNodeObjectTypeIndexer extends BabelNode { + type: "ObjectTypeIndexer"; + id?: BabelNodeIdentifier; + key: BabelNodeFlowType; + value: BabelNodeFlowType; + variance?: BabelNodeVariance; +} + +declare class BabelNodeObjectTypeProperty extends BabelNode { + type: "ObjectTypeProperty"; + key: BabelNodeIdentifier | BabelNodeStringLiteral; + value: BabelNodeFlowType; + variance?: BabelNodeVariance; + kind: "init" | "get" | "set"; + method: boolean; + optional: boolean; + proto: boolean; +} + +declare class BabelNodeObjectTypeSpreadProperty extends BabelNode { + type: "ObjectTypeSpreadProperty"; + argument: BabelNodeFlowType; +} + +declare class BabelNodeOpaqueType extends BabelNode { + type: "OpaqueType"; + id: BabelNodeIdentifier; + typeParameters?: BabelNodeTypeParameterDeclaration; + supertype?: BabelNodeFlowType; + impltype: BabelNodeFlowType; +} + +declare class BabelNodeQualifiedTypeIdentifier extends BabelNode { + type: "QualifiedTypeIdentifier"; + id: BabelNodeIdentifier; + qualification: BabelNodeIdentifier | BabelNodeQualifiedTypeIdentifier; +} + +declare class BabelNodeStringLiteralTypeAnnotation extends BabelNode { + type: "StringLiteralTypeAnnotation"; + value: string; +} + +declare class BabelNodeStringTypeAnnotation extends BabelNode { + type: "StringTypeAnnotation"; +} + +declare class BabelNodeSymbolTypeAnnotation extends BabelNode { + type: "SymbolTypeAnnotation"; +} + +declare class BabelNodeThisTypeAnnotation extends BabelNode { + type: "ThisTypeAnnotation"; +} + +declare class BabelNodeTupleTypeAnnotation extends BabelNode { + type: "TupleTypeAnnotation"; + types: Array; +} + +declare class BabelNodeTypeofTypeAnnotation extends BabelNode { + type: "TypeofTypeAnnotation"; + argument: BabelNodeFlowType; +} + +declare class BabelNodeTypeAlias extends BabelNode { + type: "TypeAlias"; + id: BabelNodeIdentifier; + typeParameters?: BabelNodeTypeParameterDeclaration; + right: BabelNodeFlowType; +} + +declare class BabelNodeTypeAnnotation extends BabelNode { + type: "TypeAnnotation"; + typeAnnotation: BabelNodeFlowType; +} + +declare class BabelNodeTypeCastExpression extends BabelNode { + type: "TypeCastExpression"; + expression: BabelNodeExpression; + typeAnnotation: BabelNodeTypeAnnotation; +} + +declare class BabelNodeTypeParameter extends BabelNode { + type: "TypeParameter"; + bound?: BabelNodeTypeAnnotation; + variance?: BabelNodeVariance; + name: string; +} + +declare class BabelNodeTypeParameterDeclaration extends BabelNode { + type: "TypeParameterDeclaration"; + params: Array; +} + +declare class BabelNodeTypeParameterInstantiation extends BabelNode { + type: "TypeParameterInstantiation"; + params: Array; +} + +declare class BabelNodeUnionTypeAnnotation extends BabelNode { + type: "UnionTypeAnnotation"; + types: Array; +} + +declare class BabelNodeVariance extends BabelNode { + type: "Variance"; + kind: "minus" | "plus"; +} + +declare class BabelNodeVoidTypeAnnotation extends BabelNode { + type: "VoidTypeAnnotation"; +} + +declare class BabelNodeEnumDeclaration extends BabelNode { + type: "EnumDeclaration"; + id: BabelNodeIdentifier; + body: BabelNodeEnumBooleanBody | BabelNodeEnumNumberBody | BabelNodeEnumStringBody | BabelNodeEnumSymbolBody; +} + +declare class BabelNodeEnumBooleanBody extends BabelNode { + type: "EnumBooleanBody"; + members: Array; + explicitType: boolean; + hasUnknownMembers: boolean; +} + +declare class BabelNodeEnumNumberBody extends BabelNode { + type: "EnumNumberBody"; + members: Array; + explicitType: boolean; + hasUnknownMembers: boolean; +} + +declare class BabelNodeEnumStringBody extends BabelNode { + type: "EnumStringBody"; + members: Array; + explicitType: boolean; + hasUnknownMembers: boolean; +} + +declare class BabelNodeEnumSymbolBody extends BabelNode { + type: "EnumSymbolBody"; + members: Array; + hasUnknownMembers: boolean; +} + +declare class BabelNodeEnumBooleanMember extends BabelNode { + type: "EnumBooleanMember"; + id: BabelNodeIdentifier; + init: BabelNodeBooleanLiteral; +} + +declare class BabelNodeEnumNumberMember extends BabelNode { + type: "EnumNumberMember"; + id: BabelNodeIdentifier; + init: BabelNodeNumericLiteral; +} + +declare class BabelNodeEnumStringMember extends BabelNode { + type: "EnumStringMember"; + id: BabelNodeIdentifier; + init: BabelNodeStringLiteral; +} + +declare class BabelNodeEnumDefaultedMember extends BabelNode { + type: "EnumDefaultedMember"; + id: BabelNodeIdentifier; +} + +declare class BabelNodeIndexedAccessType extends BabelNode { + type: "IndexedAccessType"; + objectType: BabelNodeFlowType; + indexType: BabelNodeFlowType; +} + +declare class BabelNodeOptionalIndexedAccessType extends BabelNode { + type: "OptionalIndexedAccessType"; + objectType: BabelNodeFlowType; + indexType: BabelNodeFlowType; + optional: boolean; +} + +declare class BabelNodeJSXAttribute extends BabelNode { + type: "JSXAttribute"; + name: BabelNodeJSXIdentifier | BabelNodeJSXNamespacedName; + value?: BabelNodeJSXElement | BabelNodeJSXFragment | BabelNodeStringLiteral | BabelNodeJSXExpressionContainer; +} + +declare class BabelNodeJSXClosingElement extends BabelNode { + type: "JSXClosingElement"; + name: BabelNodeJSXIdentifier | BabelNodeJSXMemberExpression | BabelNodeJSXNamespacedName; +} + +declare class BabelNodeJSXElement extends BabelNode { + type: "JSXElement"; + openingElement: BabelNodeJSXOpeningElement; + closingElement?: BabelNodeJSXClosingElement; + children: Array; + selfClosing?: boolean; +} + +declare class BabelNodeJSXEmptyExpression extends BabelNode { + type: "JSXEmptyExpression"; +} + +declare class BabelNodeJSXExpressionContainer extends BabelNode { + type: "JSXExpressionContainer"; + expression: BabelNodeExpression | BabelNodeJSXEmptyExpression; +} + +declare class BabelNodeJSXSpreadChild extends BabelNode { + type: "JSXSpreadChild"; + expression: BabelNodeExpression; +} + +declare class BabelNodeJSXIdentifier extends BabelNode { + type: "JSXIdentifier"; + name: string; +} + +declare class BabelNodeJSXMemberExpression extends BabelNode { + type: "JSXMemberExpression"; + object: BabelNodeJSXMemberExpression | BabelNodeJSXIdentifier; + property: BabelNodeJSXIdentifier; +} + +declare class BabelNodeJSXNamespacedName extends BabelNode { + type: "JSXNamespacedName"; + namespace: BabelNodeJSXIdentifier; + name: BabelNodeJSXIdentifier; +} + +declare class BabelNodeJSXOpeningElement extends BabelNode { + type: "JSXOpeningElement"; + name: BabelNodeJSXIdentifier | BabelNodeJSXMemberExpression | BabelNodeJSXNamespacedName; + attributes: Array; + selfClosing?: boolean; + typeParameters?: BabelNodeTypeParameterInstantiation | BabelNodeTSTypeParameterInstantiation; +} + +declare class BabelNodeJSXSpreadAttribute extends BabelNode { + type: "JSXSpreadAttribute"; + argument: BabelNodeExpression; +} + +declare class BabelNodeJSXText extends BabelNode { + type: "JSXText"; + value: string; +} + +declare class BabelNodeJSXFragment extends BabelNode { + type: "JSXFragment"; + openingFragment: BabelNodeJSXOpeningFragment; + closingFragment: BabelNodeJSXClosingFragment; + children: Array; +} + +declare class BabelNodeJSXOpeningFragment extends BabelNode { + type: "JSXOpeningFragment"; +} + +declare class BabelNodeJSXClosingFragment extends BabelNode { + type: "JSXClosingFragment"; +} + +declare class BabelNodeNoop extends BabelNode { + type: "Noop"; +} + +declare class BabelNodePlaceholder extends BabelNode { + type: "Placeholder"; + expectedNode: "Identifier" | "StringLiteral" | "Expression" | "Statement" | "Declaration" | "BlockStatement" | "ClassBody" | "Pattern"; + name: BabelNodeIdentifier; +} + +declare class BabelNodeV8IntrinsicIdentifier extends BabelNode { + type: "V8IntrinsicIdentifier"; + name: string; +} + +declare class BabelNodeArgumentPlaceholder extends BabelNode { + type: "ArgumentPlaceholder"; +} + +declare class BabelNodeBindExpression extends BabelNode { + type: "BindExpression"; + object: BabelNodeExpression; + callee: BabelNodeExpression; +} + +declare class BabelNodeImportAttribute extends BabelNode { + type: "ImportAttribute"; + key: BabelNodeIdentifier | BabelNodeStringLiteral; + value: BabelNodeStringLiteral; +} + +declare class BabelNodeDecorator extends BabelNode { + type: "Decorator"; + expression: BabelNodeExpression; +} + +declare class BabelNodeDoExpression extends BabelNode { + type: "DoExpression"; + body: BabelNodeBlockStatement; + async?: boolean; +} + +declare class BabelNodeExportDefaultSpecifier extends BabelNode { + type: "ExportDefaultSpecifier"; + exported: BabelNodeIdentifier; +} + +declare class BabelNodeRecordExpression extends BabelNode { + type: "RecordExpression"; + properties: Array; +} + +declare class BabelNodeTupleExpression extends BabelNode { + type: "TupleExpression"; + elements?: Array; +} + +declare class BabelNodeDecimalLiteral extends BabelNode { + type: "DecimalLiteral"; + value: string; +} + +declare class BabelNodeModuleExpression extends BabelNode { + type: "ModuleExpression"; + body: BabelNodeProgram; +} + +declare class BabelNodeTopicReference extends BabelNode { + type: "TopicReference"; +} + +declare class BabelNodePipelineTopicExpression extends BabelNode { + type: "PipelineTopicExpression"; + expression: BabelNodeExpression; +} + +declare class BabelNodePipelineBareFunction extends BabelNode { + type: "PipelineBareFunction"; + callee: BabelNodeExpression; +} + +declare class BabelNodePipelinePrimaryTopicReference extends BabelNode { + type: "PipelinePrimaryTopicReference"; +} + +declare class BabelNodeTSParameterProperty extends BabelNode { + type: "TSParameterProperty"; + parameter: BabelNodeIdentifier | BabelNodeAssignmentPattern; + accessibility?: "public" | "private" | "protected"; + decorators?: Array; + override?: boolean; + readonly?: boolean; +} + +declare class BabelNodeTSDeclareFunction extends BabelNode { + type: "TSDeclareFunction"; + id?: BabelNodeIdentifier; + typeParameters?: BabelNodeTSTypeParameterDeclaration | BabelNodeNoop; + params: Array; + returnType?: BabelNodeTSTypeAnnotation | BabelNodeNoop; + async?: boolean; + declare?: boolean; + generator?: boolean; +} + +declare class BabelNodeTSDeclareMethod extends BabelNode { + type: "TSDeclareMethod"; + decorators?: Array; + key: BabelNodeIdentifier | BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeExpression; + typeParameters?: BabelNodeTSTypeParameterDeclaration | BabelNodeNoop; + params: Array; + returnType?: BabelNodeTSTypeAnnotation | BabelNodeNoop; + abstract?: boolean; + access?: "public" | "private" | "protected"; + accessibility?: "public" | "private" | "protected"; + async?: boolean; + computed?: boolean; + generator?: boolean; + kind?: "get" | "set" | "method" | "constructor"; + optional?: boolean; + override?: boolean; +} + +declare class BabelNodeTSQualifiedName extends BabelNode { + type: "TSQualifiedName"; + left: BabelNodeTSEntityName; + right: BabelNodeIdentifier; +} + +declare class BabelNodeTSCallSignatureDeclaration extends BabelNode { + type: "TSCallSignatureDeclaration"; + typeParameters?: BabelNodeTSTypeParameterDeclaration; + parameters: Array; + typeAnnotation?: BabelNodeTSTypeAnnotation; +} + +declare class BabelNodeTSConstructSignatureDeclaration extends BabelNode { + type: "TSConstructSignatureDeclaration"; + typeParameters?: BabelNodeTSTypeParameterDeclaration; + parameters: Array; + typeAnnotation?: BabelNodeTSTypeAnnotation; +} + +declare class BabelNodeTSPropertySignature extends BabelNode { + type: "TSPropertySignature"; + key: BabelNodeExpression; + typeAnnotation?: BabelNodeTSTypeAnnotation; + initializer?: BabelNodeExpression; + computed?: boolean; + kind: "get" | "set"; + optional?: boolean; + readonly?: boolean; +} + +declare class BabelNodeTSMethodSignature extends BabelNode { + type: "TSMethodSignature"; + key: BabelNodeExpression; + typeParameters?: BabelNodeTSTypeParameterDeclaration; + parameters: Array; + typeAnnotation?: BabelNodeTSTypeAnnotation; + computed?: boolean; + kind: "method" | "get" | "set"; + optional?: boolean; +} + +declare class BabelNodeTSIndexSignature extends BabelNode { + type: "TSIndexSignature"; + parameters: Array; + typeAnnotation?: BabelNodeTSTypeAnnotation; + readonly?: boolean; +} + +declare class BabelNodeTSAnyKeyword extends BabelNode { + type: "TSAnyKeyword"; +} + +declare class BabelNodeTSBooleanKeyword extends BabelNode { + type: "TSBooleanKeyword"; +} + +declare class BabelNodeTSBigIntKeyword extends BabelNode { + type: "TSBigIntKeyword"; +} + +declare class BabelNodeTSIntrinsicKeyword extends BabelNode { + type: "TSIntrinsicKeyword"; +} + +declare class BabelNodeTSNeverKeyword extends BabelNode { + type: "TSNeverKeyword"; +} + +declare class BabelNodeTSNullKeyword extends BabelNode { + type: "TSNullKeyword"; +} + +declare class BabelNodeTSNumberKeyword extends BabelNode { + type: "TSNumberKeyword"; +} + +declare class BabelNodeTSObjectKeyword extends BabelNode { + type: "TSObjectKeyword"; +} + +declare class BabelNodeTSStringKeyword extends BabelNode { + type: "TSStringKeyword"; +} + +declare class BabelNodeTSSymbolKeyword extends BabelNode { + type: "TSSymbolKeyword"; +} + +declare class BabelNodeTSUndefinedKeyword extends BabelNode { + type: "TSUndefinedKeyword"; +} + +declare class BabelNodeTSUnknownKeyword extends BabelNode { + type: "TSUnknownKeyword"; +} + +declare class BabelNodeTSVoidKeyword extends BabelNode { + type: "TSVoidKeyword"; +} + +declare class BabelNodeTSThisType extends BabelNode { + type: "TSThisType"; +} + +declare class BabelNodeTSFunctionType extends BabelNode { + type: "TSFunctionType"; + typeParameters?: BabelNodeTSTypeParameterDeclaration; + parameters: Array; + typeAnnotation?: BabelNodeTSTypeAnnotation; +} + +declare class BabelNodeTSConstructorType extends BabelNode { + type: "TSConstructorType"; + typeParameters?: BabelNodeTSTypeParameterDeclaration; + parameters: Array; + typeAnnotation?: BabelNodeTSTypeAnnotation; + abstract?: boolean; +} + +declare class BabelNodeTSTypeReference extends BabelNode { + type: "TSTypeReference"; + typeName: BabelNodeTSEntityName; + typeParameters?: BabelNodeTSTypeParameterInstantiation; +} + +declare class BabelNodeTSTypePredicate extends BabelNode { + type: "TSTypePredicate"; + parameterName: BabelNodeIdentifier | BabelNodeTSThisType; + typeAnnotation?: BabelNodeTSTypeAnnotation; + asserts?: boolean; +} + +declare class BabelNodeTSTypeQuery extends BabelNode { + type: "TSTypeQuery"; + exprName: BabelNodeTSEntityName | BabelNodeTSImportType; +} + +declare class BabelNodeTSTypeLiteral extends BabelNode { + type: "TSTypeLiteral"; + members: Array; +} + +declare class BabelNodeTSArrayType extends BabelNode { + type: "TSArrayType"; + elementType: BabelNodeTSType; +} + +declare class BabelNodeTSTupleType extends BabelNode { + type: "TSTupleType"; + elementTypes: Array; +} + +declare class BabelNodeTSOptionalType extends BabelNode { + type: "TSOptionalType"; + typeAnnotation: BabelNodeTSType; +} + +declare class BabelNodeTSRestType extends BabelNode { + type: "TSRestType"; + typeAnnotation: BabelNodeTSType; +} + +declare class BabelNodeTSNamedTupleMember extends BabelNode { + type: "TSNamedTupleMember"; + label: BabelNodeIdentifier; + elementType: BabelNodeTSType; + optional?: boolean; +} + +declare class BabelNodeTSUnionType extends BabelNode { + type: "TSUnionType"; + types: Array; +} + +declare class BabelNodeTSIntersectionType extends BabelNode { + type: "TSIntersectionType"; + types: Array; +} + +declare class BabelNodeTSConditionalType extends BabelNode { + type: "TSConditionalType"; + checkType: BabelNodeTSType; + extendsType: BabelNodeTSType; + trueType: BabelNodeTSType; + falseType: BabelNodeTSType; +} + +declare class BabelNodeTSInferType extends BabelNode { + type: "TSInferType"; + typeParameter: BabelNodeTSTypeParameter; +} + +declare class BabelNodeTSParenthesizedType extends BabelNode { + type: "TSParenthesizedType"; + typeAnnotation: BabelNodeTSType; +} + +declare class BabelNodeTSTypeOperator extends BabelNode { + type: "TSTypeOperator"; + typeAnnotation: BabelNodeTSType; + operator: string; +} + +declare class BabelNodeTSIndexedAccessType extends BabelNode { + type: "TSIndexedAccessType"; + objectType: BabelNodeTSType; + indexType: BabelNodeTSType; +} + +declare class BabelNodeTSMappedType extends BabelNode { + type: "TSMappedType"; + typeParameter: BabelNodeTSTypeParameter; + typeAnnotation?: BabelNodeTSType; + nameType?: BabelNodeTSType; + optional?: boolean; + readonly?: boolean; +} + +declare class BabelNodeTSLiteralType extends BabelNode { + type: "TSLiteralType"; + literal: BabelNodeNumericLiteral | BabelNodeStringLiteral | BabelNodeBooleanLiteral | BabelNodeBigIntLiteral | BabelNodeUnaryExpression; +} + +declare class BabelNodeTSExpressionWithTypeArguments extends BabelNode { + type: "TSExpressionWithTypeArguments"; + expression: BabelNodeTSEntityName; + typeParameters?: BabelNodeTSTypeParameterInstantiation; +} + +declare class BabelNodeTSInterfaceDeclaration extends BabelNode { + type: "TSInterfaceDeclaration"; + id: BabelNodeIdentifier; + typeParameters?: BabelNodeTSTypeParameterDeclaration; + body: BabelNodeTSInterfaceBody; + declare?: boolean; +} + +declare class BabelNodeTSInterfaceBody extends BabelNode { + type: "TSInterfaceBody"; + body: Array; +} + +declare class BabelNodeTSTypeAliasDeclaration extends BabelNode { + type: "TSTypeAliasDeclaration"; + id: BabelNodeIdentifier; + typeParameters?: BabelNodeTSTypeParameterDeclaration; + typeAnnotation: BabelNodeTSType; + declare?: boolean; +} + +declare class BabelNodeTSAsExpression extends BabelNode { + type: "TSAsExpression"; + expression: BabelNodeExpression; + typeAnnotation: BabelNodeTSType; +} + +declare class BabelNodeTSTypeAssertion extends BabelNode { + type: "TSTypeAssertion"; + typeAnnotation: BabelNodeTSType; + expression: BabelNodeExpression; +} + +declare class BabelNodeTSEnumDeclaration extends BabelNode { + type: "TSEnumDeclaration"; + id: BabelNodeIdentifier; + members: Array; + declare?: boolean; + initializer?: BabelNodeExpression; +} + +declare class BabelNodeTSEnumMember extends BabelNode { + type: "TSEnumMember"; + id: BabelNodeIdentifier | BabelNodeStringLiteral; + initializer?: BabelNodeExpression; +} + +declare class BabelNodeTSModuleDeclaration extends BabelNode { + type: "TSModuleDeclaration"; + id: BabelNodeIdentifier | BabelNodeStringLiteral; + body: BabelNodeTSModuleBlock | BabelNodeTSModuleDeclaration; + declare?: boolean; + global?: boolean; +} + +declare class BabelNodeTSModuleBlock extends BabelNode { + type: "TSModuleBlock"; + body: Array; +} + +declare class BabelNodeTSImportType extends BabelNode { + type: "TSImportType"; + argument: BabelNodeStringLiteral; + qualifier?: BabelNodeTSEntityName; + typeParameters?: BabelNodeTSTypeParameterInstantiation; +} + +declare class BabelNodeTSImportEqualsDeclaration extends BabelNode { + type: "TSImportEqualsDeclaration"; + id: BabelNodeIdentifier; + moduleReference: BabelNodeTSEntityName | BabelNodeTSExternalModuleReference; + importKind?: "type" | "value"; + isExport: boolean; +} + +declare class BabelNodeTSExternalModuleReference extends BabelNode { + type: "TSExternalModuleReference"; + expression: BabelNodeStringLiteral; +} + +declare class BabelNodeTSNonNullExpression extends BabelNode { + type: "TSNonNullExpression"; + expression: BabelNodeExpression; +} + +declare class BabelNodeTSExportAssignment extends BabelNode { + type: "TSExportAssignment"; + expression: BabelNodeExpression; +} + +declare class BabelNodeTSNamespaceExportDeclaration extends BabelNode { + type: "TSNamespaceExportDeclaration"; + id: BabelNodeIdentifier; +} + +declare class BabelNodeTSTypeAnnotation extends BabelNode { + type: "TSTypeAnnotation"; + typeAnnotation: BabelNodeTSType; +} + +declare class BabelNodeTSTypeParameterInstantiation extends BabelNode { + type: "TSTypeParameterInstantiation"; + params: Array; +} + +declare class BabelNodeTSTypeParameterDeclaration extends BabelNode { + type: "TSTypeParameterDeclaration"; + params: Array; +} + +declare class BabelNodeTSTypeParameter extends BabelNode { + type: "TSTypeParameter"; + constraint?: BabelNodeTSType; + name: string; +} + +type BabelNodeStandardized = BabelNodeArrayExpression | BabelNodeAssignmentExpression | BabelNodeBinaryExpression | BabelNodeInterpreterDirective | BabelNodeDirective | BabelNodeDirectiveLiteral | BabelNodeBlockStatement | BabelNodeBreakStatement | BabelNodeCallExpression | BabelNodeCatchClause | BabelNodeConditionalExpression | BabelNodeContinueStatement | BabelNodeDebuggerStatement | BabelNodeDoWhileStatement | BabelNodeEmptyStatement | BabelNodeExpressionStatement | BabelNodeFile | BabelNodeForInStatement | BabelNodeForStatement | BabelNodeFunctionDeclaration | BabelNodeFunctionExpression | BabelNodeIdentifier | BabelNodeIfStatement | BabelNodeLabeledStatement | BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeNullLiteral | BabelNodeBooleanLiteral | BabelNodeRegExpLiteral | BabelNodeLogicalExpression | BabelNodeMemberExpression | BabelNodeNewExpression | BabelNodeProgram | BabelNodeObjectExpression | BabelNodeObjectMethod | BabelNodeObjectProperty | BabelNodeRestElement | BabelNodeReturnStatement | BabelNodeSequenceExpression | BabelNodeParenthesizedExpression | BabelNodeSwitchCase | BabelNodeSwitchStatement | BabelNodeThisExpression | BabelNodeThrowStatement | BabelNodeTryStatement | BabelNodeUnaryExpression | BabelNodeUpdateExpression | BabelNodeVariableDeclaration | BabelNodeVariableDeclarator | BabelNodeWhileStatement | BabelNodeWithStatement | BabelNodeAssignmentPattern | BabelNodeArrayPattern | BabelNodeArrowFunctionExpression | BabelNodeClassBody | BabelNodeClassExpression | BabelNodeClassDeclaration | BabelNodeExportAllDeclaration | BabelNodeExportDefaultDeclaration | BabelNodeExportNamedDeclaration | BabelNodeExportSpecifier | BabelNodeForOfStatement | BabelNodeImportDeclaration | BabelNodeImportDefaultSpecifier | BabelNodeImportNamespaceSpecifier | BabelNodeImportSpecifier | BabelNodeMetaProperty | BabelNodeClassMethod | BabelNodeObjectPattern | BabelNodeSpreadElement | BabelNodeSuper | BabelNodeTaggedTemplateExpression | BabelNodeTemplateElement | BabelNodeTemplateLiteral | BabelNodeYieldExpression | BabelNodeAwaitExpression | BabelNodeImport | BabelNodeBigIntLiteral | BabelNodeExportNamespaceSpecifier | BabelNodeOptionalMemberExpression | BabelNodeOptionalCallExpression | BabelNodeClassProperty | BabelNodeClassAccessorProperty | BabelNodeClassPrivateProperty | BabelNodeClassPrivateMethod | BabelNodePrivateName | BabelNodeStaticBlock; +type BabelNodeExpression = BabelNodeArrayExpression | BabelNodeAssignmentExpression | BabelNodeBinaryExpression | BabelNodeCallExpression | BabelNodeConditionalExpression | BabelNodeFunctionExpression | BabelNodeIdentifier | BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeNullLiteral | BabelNodeBooleanLiteral | BabelNodeRegExpLiteral | BabelNodeLogicalExpression | BabelNodeMemberExpression | BabelNodeNewExpression | BabelNodeObjectExpression | BabelNodeSequenceExpression | BabelNodeParenthesizedExpression | BabelNodeThisExpression | BabelNodeUnaryExpression | BabelNodeUpdateExpression | BabelNodeArrowFunctionExpression | BabelNodeClassExpression | BabelNodeMetaProperty | BabelNodeSuper | BabelNodeTaggedTemplateExpression | BabelNodeTemplateLiteral | BabelNodeYieldExpression | BabelNodeAwaitExpression | BabelNodeImport | BabelNodeBigIntLiteral | BabelNodeOptionalMemberExpression | BabelNodeOptionalCallExpression | BabelNodeTypeCastExpression | BabelNodeJSXElement | BabelNodeJSXFragment | BabelNodeBindExpression | BabelNodeDoExpression | BabelNodeRecordExpression | BabelNodeTupleExpression | BabelNodeDecimalLiteral | BabelNodeModuleExpression | BabelNodeTopicReference | BabelNodePipelineTopicExpression | BabelNodePipelineBareFunction | BabelNodePipelinePrimaryTopicReference | BabelNodeTSAsExpression | BabelNodeTSTypeAssertion | BabelNodeTSNonNullExpression; +type BabelNodeBinary = BabelNodeBinaryExpression | BabelNodeLogicalExpression; +type BabelNodeScopable = BabelNodeBlockStatement | BabelNodeCatchClause | BabelNodeDoWhileStatement | BabelNodeForInStatement | BabelNodeForStatement | BabelNodeFunctionDeclaration | BabelNodeFunctionExpression | BabelNodeProgram | BabelNodeObjectMethod | BabelNodeSwitchStatement | BabelNodeWhileStatement | BabelNodeArrowFunctionExpression | BabelNodeClassExpression | BabelNodeClassDeclaration | BabelNodeForOfStatement | BabelNodeClassMethod | BabelNodeClassPrivateMethod | BabelNodeStaticBlock | BabelNodeTSModuleBlock; +type BabelNodeBlockParent = BabelNodeBlockStatement | BabelNodeCatchClause | BabelNodeDoWhileStatement | BabelNodeForInStatement | BabelNodeForStatement | BabelNodeFunctionDeclaration | BabelNodeFunctionExpression | BabelNodeProgram | BabelNodeObjectMethod | BabelNodeSwitchStatement | BabelNodeWhileStatement | BabelNodeArrowFunctionExpression | BabelNodeForOfStatement | BabelNodeClassMethod | BabelNodeClassPrivateMethod | BabelNodeStaticBlock | BabelNodeTSModuleBlock; +type BabelNodeBlock = BabelNodeBlockStatement | BabelNodeProgram | BabelNodeTSModuleBlock; +type BabelNodeStatement = BabelNodeBlockStatement | BabelNodeBreakStatement | BabelNodeContinueStatement | BabelNodeDebuggerStatement | BabelNodeDoWhileStatement | BabelNodeEmptyStatement | BabelNodeExpressionStatement | BabelNodeForInStatement | BabelNodeForStatement | BabelNodeFunctionDeclaration | BabelNodeIfStatement | BabelNodeLabeledStatement | BabelNodeReturnStatement | BabelNodeSwitchStatement | BabelNodeThrowStatement | BabelNodeTryStatement | BabelNodeVariableDeclaration | BabelNodeWhileStatement | BabelNodeWithStatement | BabelNodeClassDeclaration | BabelNodeExportAllDeclaration | BabelNodeExportDefaultDeclaration | BabelNodeExportNamedDeclaration | BabelNodeForOfStatement | BabelNodeImportDeclaration | BabelNodeDeclareClass | BabelNodeDeclareFunction | BabelNodeDeclareInterface | BabelNodeDeclareModule | BabelNodeDeclareModuleExports | BabelNodeDeclareTypeAlias | BabelNodeDeclareOpaqueType | BabelNodeDeclareVariable | BabelNodeDeclareExportDeclaration | BabelNodeDeclareExportAllDeclaration | BabelNodeInterfaceDeclaration | BabelNodeOpaqueType | BabelNodeTypeAlias | BabelNodeEnumDeclaration | BabelNodeTSDeclareFunction | BabelNodeTSInterfaceDeclaration | BabelNodeTSTypeAliasDeclaration | BabelNodeTSEnumDeclaration | BabelNodeTSModuleDeclaration | BabelNodeTSImportEqualsDeclaration | BabelNodeTSExportAssignment | BabelNodeTSNamespaceExportDeclaration; +type BabelNodeTerminatorless = BabelNodeBreakStatement | BabelNodeContinueStatement | BabelNodeReturnStatement | BabelNodeThrowStatement | BabelNodeYieldExpression | BabelNodeAwaitExpression; +type BabelNodeCompletionStatement = BabelNodeBreakStatement | BabelNodeContinueStatement | BabelNodeReturnStatement | BabelNodeThrowStatement; +type BabelNodeConditional = BabelNodeConditionalExpression | BabelNodeIfStatement; +type BabelNodeLoop = BabelNodeDoWhileStatement | BabelNodeForInStatement | BabelNodeForStatement | BabelNodeWhileStatement | BabelNodeForOfStatement; +type BabelNodeWhile = BabelNodeDoWhileStatement | BabelNodeWhileStatement; +type BabelNodeExpressionWrapper = BabelNodeExpressionStatement | BabelNodeParenthesizedExpression | BabelNodeTypeCastExpression; +type BabelNodeFor = BabelNodeForInStatement | BabelNodeForStatement | BabelNodeForOfStatement; +type BabelNodeForXStatement = BabelNodeForInStatement | BabelNodeForOfStatement; +type BabelNodeFunction = BabelNodeFunctionDeclaration | BabelNodeFunctionExpression | BabelNodeObjectMethod | BabelNodeArrowFunctionExpression | BabelNodeClassMethod | BabelNodeClassPrivateMethod; +type BabelNodeFunctionParent = BabelNodeFunctionDeclaration | BabelNodeFunctionExpression | BabelNodeObjectMethod | BabelNodeArrowFunctionExpression | BabelNodeClassMethod | BabelNodeClassPrivateMethod | BabelNodeStaticBlock; +type BabelNodePureish = BabelNodeFunctionDeclaration | BabelNodeFunctionExpression | BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeNullLiteral | BabelNodeBooleanLiteral | BabelNodeRegExpLiteral | BabelNodeArrowFunctionExpression | BabelNodeBigIntLiteral | BabelNodeDecimalLiteral; +type BabelNodeDeclaration = BabelNodeFunctionDeclaration | BabelNodeVariableDeclaration | BabelNodeClassDeclaration | BabelNodeExportAllDeclaration | BabelNodeExportDefaultDeclaration | BabelNodeExportNamedDeclaration | BabelNodeImportDeclaration | BabelNodeDeclareClass | BabelNodeDeclareFunction | BabelNodeDeclareInterface | BabelNodeDeclareModule | BabelNodeDeclareModuleExports | BabelNodeDeclareTypeAlias | BabelNodeDeclareOpaqueType | BabelNodeDeclareVariable | BabelNodeDeclareExportDeclaration | BabelNodeDeclareExportAllDeclaration | BabelNodeInterfaceDeclaration | BabelNodeOpaqueType | BabelNodeTypeAlias | BabelNodeEnumDeclaration | BabelNodeTSDeclareFunction | BabelNodeTSInterfaceDeclaration | BabelNodeTSTypeAliasDeclaration | BabelNodeTSEnumDeclaration | BabelNodeTSModuleDeclaration; +type BabelNodePatternLike = BabelNodeIdentifier | BabelNodeRestElement | BabelNodeAssignmentPattern | BabelNodeArrayPattern | BabelNodeObjectPattern; +type BabelNodeLVal = BabelNodeIdentifier | BabelNodeMemberExpression | BabelNodeRestElement | BabelNodeAssignmentPattern | BabelNodeArrayPattern | BabelNodeObjectPattern | BabelNodeTSParameterProperty; +type BabelNodeTSEntityName = BabelNodeIdentifier | BabelNodeTSQualifiedName; +type BabelNodeLiteral = BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeNullLiteral | BabelNodeBooleanLiteral | BabelNodeRegExpLiteral | BabelNodeTemplateLiteral | BabelNodeBigIntLiteral | BabelNodeDecimalLiteral; +type BabelNodeImmutable = BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeNullLiteral | BabelNodeBooleanLiteral | BabelNodeBigIntLiteral | BabelNodeJSXAttribute | BabelNodeJSXClosingElement | BabelNodeJSXElement | BabelNodeJSXExpressionContainer | BabelNodeJSXSpreadChild | BabelNodeJSXOpeningElement | BabelNodeJSXText | BabelNodeJSXFragment | BabelNodeJSXOpeningFragment | BabelNodeJSXClosingFragment | BabelNodeDecimalLiteral; +type BabelNodeUserWhitespacable = BabelNodeObjectMethod | BabelNodeObjectProperty | BabelNodeObjectTypeInternalSlot | BabelNodeObjectTypeCallProperty | BabelNodeObjectTypeIndexer | BabelNodeObjectTypeProperty | BabelNodeObjectTypeSpreadProperty; +type BabelNodeMethod = BabelNodeObjectMethod | BabelNodeClassMethod | BabelNodeClassPrivateMethod; +type BabelNodeObjectMember = BabelNodeObjectMethod | BabelNodeObjectProperty; +type BabelNodeProperty = BabelNodeObjectProperty | BabelNodeClassProperty | BabelNodeClassAccessorProperty | BabelNodeClassPrivateProperty; +type BabelNodeUnaryLike = BabelNodeUnaryExpression | BabelNodeSpreadElement; +type BabelNodePattern = BabelNodeAssignmentPattern | BabelNodeArrayPattern | BabelNodeObjectPattern; +type BabelNodeClass = BabelNodeClassExpression | BabelNodeClassDeclaration; +type BabelNodeModuleDeclaration = BabelNodeExportAllDeclaration | BabelNodeExportDefaultDeclaration | BabelNodeExportNamedDeclaration | BabelNodeImportDeclaration; +type BabelNodeExportDeclaration = BabelNodeExportAllDeclaration | BabelNodeExportDefaultDeclaration | BabelNodeExportNamedDeclaration; +type BabelNodeModuleSpecifier = BabelNodeExportSpecifier | BabelNodeImportDefaultSpecifier | BabelNodeImportNamespaceSpecifier | BabelNodeImportSpecifier | BabelNodeExportNamespaceSpecifier | BabelNodeExportDefaultSpecifier; +type BabelNodeAccessor = BabelNodeClassAccessorProperty; +type BabelNodePrivate = BabelNodeClassPrivateProperty | BabelNodeClassPrivateMethod | BabelNodePrivateName; +type BabelNodeFlow = BabelNodeAnyTypeAnnotation | BabelNodeArrayTypeAnnotation | BabelNodeBooleanTypeAnnotation | BabelNodeBooleanLiteralTypeAnnotation | BabelNodeNullLiteralTypeAnnotation | BabelNodeClassImplements | BabelNodeDeclareClass | BabelNodeDeclareFunction | BabelNodeDeclareInterface | BabelNodeDeclareModule | BabelNodeDeclareModuleExports | BabelNodeDeclareTypeAlias | BabelNodeDeclareOpaqueType | BabelNodeDeclareVariable | BabelNodeDeclareExportDeclaration | BabelNodeDeclareExportAllDeclaration | BabelNodeDeclaredPredicate | BabelNodeExistsTypeAnnotation | BabelNodeFunctionTypeAnnotation | BabelNodeFunctionTypeParam | BabelNodeGenericTypeAnnotation | BabelNodeInferredPredicate | BabelNodeInterfaceExtends | BabelNodeInterfaceDeclaration | BabelNodeInterfaceTypeAnnotation | BabelNodeIntersectionTypeAnnotation | BabelNodeMixedTypeAnnotation | BabelNodeEmptyTypeAnnotation | BabelNodeNullableTypeAnnotation | BabelNodeNumberLiteralTypeAnnotation | BabelNodeNumberTypeAnnotation | BabelNodeObjectTypeAnnotation | BabelNodeObjectTypeInternalSlot | BabelNodeObjectTypeCallProperty | BabelNodeObjectTypeIndexer | BabelNodeObjectTypeProperty | BabelNodeObjectTypeSpreadProperty | BabelNodeOpaqueType | BabelNodeQualifiedTypeIdentifier | BabelNodeStringLiteralTypeAnnotation | BabelNodeStringTypeAnnotation | BabelNodeSymbolTypeAnnotation | BabelNodeThisTypeAnnotation | BabelNodeTupleTypeAnnotation | BabelNodeTypeofTypeAnnotation | BabelNodeTypeAlias | BabelNodeTypeAnnotation | BabelNodeTypeCastExpression | BabelNodeTypeParameter | BabelNodeTypeParameterDeclaration | BabelNodeTypeParameterInstantiation | BabelNodeUnionTypeAnnotation | BabelNodeVariance | BabelNodeVoidTypeAnnotation | BabelNodeEnumDeclaration | BabelNodeEnumBooleanBody | BabelNodeEnumNumberBody | BabelNodeEnumStringBody | BabelNodeEnumSymbolBody | BabelNodeEnumBooleanMember | BabelNodeEnumNumberMember | BabelNodeEnumStringMember | BabelNodeEnumDefaultedMember | BabelNodeIndexedAccessType | BabelNodeOptionalIndexedAccessType; +type BabelNodeFlowType = BabelNodeAnyTypeAnnotation | BabelNodeArrayTypeAnnotation | BabelNodeBooleanTypeAnnotation | BabelNodeBooleanLiteralTypeAnnotation | BabelNodeNullLiteralTypeAnnotation | BabelNodeExistsTypeAnnotation | BabelNodeFunctionTypeAnnotation | BabelNodeGenericTypeAnnotation | BabelNodeInterfaceTypeAnnotation | BabelNodeIntersectionTypeAnnotation | BabelNodeMixedTypeAnnotation | BabelNodeEmptyTypeAnnotation | BabelNodeNullableTypeAnnotation | BabelNodeNumberLiteralTypeAnnotation | BabelNodeNumberTypeAnnotation | BabelNodeObjectTypeAnnotation | BabelNodeStringLiteralTypeAnnotation | BabelNodeStringTypeAnnotation | BabelNodeSymbolTypeAnnotation | BabelNodeThisTypeAnnotation | BabelNodeTupleTypeAnnotation | BabelNodeTypeofTypeAnnotation | BabelNodeUnionTypeAnnotation | BabelNodeVoidTypeAnnotation | BabelNodeIndexedAccessType | BabelNodeOptionalIndexedAccessType; +type BabelNodeFlowBaseAnnotation = BabelNodeAnyTypeAnnotation | BabelNodeBooleanTypeAnnotation | BabelNodeNullLiteralTypeAnnotation | BabelNodeMixedTypeAnnotation | BabelNodeEmptyTypeAnnotation | BabelNodeNumberTypeAnnotation | BabelNodeStringTypeAnnotation | BabelNodeSymbolTypeAnnotation | BabelNodeThisTypeAnnotation | BabelNodeVoidTypeAnnotation; +type BabelNodeFlowDeclaration = BabelNodeDeclareClass | BabelNodeDeclareFunction | BabelNodeDeclareInterface | BabelNodeDeclareModule | BabelNodeDeclareModuleExports | BabelNodeDeclareTypeAlias | BabelNodeDeclareOpaqueType | BabelNodeDeclareVariable | BabelNodeDeclareExportDeclaration | BabelNodeDeclareExportAllDeclaration | BabelNodeInterfaceDeclaration | BabelNodeOpaqueType | BabelNodeTypeAlias; +type BabelNodeFlowPredicate = BabelNodeDeclaredPredicate | BabelNodeInferredPredicate; +type BabelNodeEnumBody = BabelNodeEnumBooleanBody | BabelNodeEnumNumberBody | BabelNodeEnumStringBody | BabelNodeEnumSymbolBody; +type BabelNodeEnumMember = BabelNodeEnumBooleanMember | BabelNodeEnumNumberMember | BabelNodeEnumStringMember | BabelNodeEnumDefaultedMember; +type BabelNodeJSX = BabelNodeJSXAttribute | BabelNodeJSXClosingElement | BabelNodeJSXElement | BabelNodeJSXEmptyExpression | BabelNodeJSXExpressionContainer | BabelNodeJSXSpreadChild | BabelNodeJSXIdentifier | BabelNodeJSXMemberExpression | BabelNodeJSXNamespacedName | BabelNodeJSXOpeningElement | BabelNodeJSXSpreadAttribute | BabelNodeJSXText | BabelNodeJSXFragment | BabelNodeJSXOpeningFragment | BabelNodeJSXClosingFragment; +type BabelNodeMiscellaneous = BabelNodeNoop | BabelNodePlaceholder | BabelNodeV8IntrinsicIdentifier; +type BabelNodeTypeScript = BabelNodeTSParameterProperty | BabelNodeTSDeclareFunction | BabelNodeTSDeclareMethod | BabelNodeTSQualifiedName | BabelNodeTSCallSignatureDeclaration | BabelNodeTSConstructSignatureDeclaration | BabelNodeTSPropertySignature | BabelNodeTSMethodSignature | BabelNodeTSIndexSignature | BabelNodeTSAnyKeyword | BabelNodeTSBooleanKeyword | BabelNodeTSBigIntKeyword | BabelNodeTSIntrinsicKeyword | BabelNodeTSNeverKeyword | BabelNodeTSNullKeyword | BabelNodeTSNumberKeyword | BabelNodeTSObjectKeyword | BabelNodeTSStringKeyword | BabelNodeTSSymbolKeyword | BabelNodeTSUndefinedKeyword | BabelNodeTSUnknownKeyword | BabelNodeTSVoidKeyword | BabelNodeTSThisType | BabelNodeTSFunctionType | BabelNodeTSConstructorType | BabelNodeTSTypeReference | BabelNodeTSTypePredicate | BabelNodeTSTypeQuery | BabelNodeTSTypeLiteral | BabelNodeTSArrayType | BabelNodeTSTupleType | BabelNodeTSOptionalType | BabelNodeTSRestType | BabelNodeTSNamedTupleMember | BabelNodeTSUnionType | BabelNodeTSIntersectionType | BabelNodeTSConditionalType | BabelNodeTSInferType | BabelNodeTSParenthesizedType | BabelNodeTSTypeOperator | BabelNodeTSIndexedAccessType | BabelNodeTSMappedType | BabelNodeTSLiteralType | BabelNodeTSExpressionWithTypeArguments | BabelNodeTSInterfaceDeclaration | BabelNodeTSInterfaceBody | BabelNodeTSTypeAliasDeclaration | BabelNodeTSAsExpression | BabelNodeTSTypeAssertion | BabelNodeTSEnumDeclaration | BabelNodeTSEnumMember | BabelNodeTSModuleDeclaration | BabelNodeTSModuleBlock | BabelNodeTSImportType | BabelNodeTSImportEqualsDeclaration | BabelNodeTSExternalModuleReference | BabelNodeTSNonNullExpression | BabelNodeTSExportAssignment | BabelNodeTSNamespaceExportDeclaration | BabelNodeTSTypeAnnotation | BabelNodeTSTypeParameterInstantiation | BabelNodeTSTypeParameterDeclaration | BabelNodeTSTypeParameter; +type BabelNodeTSTypeElement = BabelNodeTSCallSignatureDeclaration | BabelNodeTSConstructSignatureDeclaration | BabelNodeTSPropertySignature | BabelNodeTSMethodSignature | BabelNodeTSIndexSignature; +type BabelNodeTSType = BabelNodeTSAnyKeyword | BabelNodeTSBooleanKeyword | BabelNodeTSBigIntKeyword | BabelNodeTSIntrinsicKeyword | BabelNodeTSNeverKeyword | BabelNodeTSNullKeyword | BabelNodeTSNumberKeyword | BabelNodeTSObjectKeyword | BabelNodeTSStringKeyword | BabelNodeTSSymbolKeyword | BabelNodeTSUndefinedKeyword | BabelNodeTSUnknownKeyword | BabelNodeTSVoidKeyword | BabelNodeTSThisType | BabelNodeTSFunctionType | BabelNodeTSConstructorType | BabelNodeTSTypeReference | BabelNodeTSTypePredicate | BabelNodeTSTypeQuery | BabelNodeTSTypeLiteral | BabelNodeTSArrayType | BabelNodeTSTupleType | BabelNodeTSOptionalType | BabelNodeTSRestType | BabelNodeTSUnionType | BabelNodeTSIntersectionType | BabelNodeTSConditionalType | BabelNodeTSInferType | BabelNodeTSParenthesizedType | BabelNodeTSTypeOperator | BabelNodeTSIndexedAccessType | BabelNodeTSMappedType | BabelNodeTSLiteralType | BabelNodeTSExpressionWithTypeArguments | BabelNodeTSImportType; +type BabelNodeTSBaseType = BabelNodeTSAnyKeyword | BabelNodeTSBooleanKeyword | BabelNodeTSBigIntKeyword | BabelNodeTSIntrinsicKeyword | BabelNodeTSNeverKeyword | BabelNodeTSNullKeyword | BabelNodeTSNumberKeyword | BabelNodeTSObjectKeyword | BabelNodeTSStringKeyword | BabelNodeTSSymbolKeyword | BabelNodeTSUndefinedKeyword | BabelNodeTSUnknownKeyword | BabelNodeTSVoidKeyword | BabelNodeTSThisType | BabelNodeTSLiteralType; + +declare module "@babel/types" { + declare export function arrayExpression(elements?: Array): BabelNodeArrayExpression; + declare export function assignmentExpression(operator: string, left: BabelNodeLVal, right: BabelNodeExpression): BabelNodeAssignmentExpression; + declare export function binaryExpression(operator: "+" | "-" | "/" | "%" | "*" | "**" | "&" | "|" | ">>" | ">>>" | "<<" | "^" | "==" | "===" | "!=" | "!==" | "in" | "instanceof" | ">" | "<" | ">=" | "<=", left: BabelNodeExpression | BabelNodePrivateName, right: BabelNodeExpression): BabelNodeBinaryExpression; + declare export function interpreterDirective(value: string): BabelNodeInterpreterDirective; + declare export function directive(value: BabelNodeDirectiveLiteral): BabelNodeDirective; + declare export function directiveLiteral(value: string): BabelNodeDirectiveLiteral; + declare export function blockStatement(body: Array, directives?: Array): BabelNodeBlockStatement; + declare export function breakStatement(label?: BabelNodeIdentifier): BabelNodeBreakStatement; + declare export function callExpression(callee: BabelNodeExpression | BabelNodeV8IntrinsicIdentifier, _arguments: Array): BabelNodeCallExpression; + declare export function catchClause(param?: BabelNodeIdentifier | BabelNodeArrayPattern | BabelNodeObjectPattern, body: BabelNodeBlockStatement): BabelNodeCatchClause; + declare export function conditionalExpression(test: BabelNodeExpression, consequent: BabelNodeExpression, alternate: BabelNodeExpression): BabelNodeConditionalExpression; + declare export function continueStatement(label?: BabelNodeIdentifier): BabelNodeContinueStatement; + declare export function debuggerStatement(): BabelNodeDebuggerStatement; + declare export function doWhileStatement(test: BabelNodeExpression, body: BabelNodeStatement): BabelNodeDoWhileStatement; + declare export function emptyStatement(): BabelNodeEmptyStatement; + declare export function expressionStatement(expression: BabelNodeExpression): BabelNodeExpressionStatement; + declare export function file(program: BabelNodeProgram, comments?: Array, tokens?: Array): BabelNodeFile; + declare export function forInStatement(left: BabelNodeVariableDeclaration | BabelNodeLVal, right: BabelNodeExpression, body: BabelNodeStatement): BabelNodeForInStatement; + declare export function forStatement(init?: BabelNodeVariableDeclaration | BabelNodeExpression, test?: BabelNodeExpression, update?: BabelNodeExpression, body: BabelNodeStatement): BabelNodeForStatement; + declare export function functionDeclaration(id?: BabelNodeIdentifier, params: Array, body: BabelNodeBlockStatement, generator?: boolean, async?: boolean): BabelNodeFunctionDeclaration; + declare export function functionExpression(id?: BabelNodeIdentifier, params: Array, body: BabelNodeBlockStatement, generator?: boolean, async?: boolean): BabelNodeFunctionExpression; + declare export function identifier(name: string): BabelNodeIdentifier; + declare export function ifStatement(test: BabelNodeExpression, consequent: BabelNodeStatement, alternate?: BabelNodeStatement): BabelNodeIfStatement; + declare export function labeledStatement(label: BabelNodeIdentifier, body: BabelNodeStatement): BabelNodeLabeledStatement; + declare export function stringLiteral(value: string): BabelNodeStringLiteral; + declare export function numericLiteral(value: number): BabelNodeNumericLiteral; + declare export function nullLiteral(): BabelNodeNullLiteral; + declare export function booleanLiteral(value: boolean): BabelNodeBooleanLiteral; + declare export function regExpLiteral(pattern: string, flags?: string): BabelNodeRegExpLiteral; + declare export function logicalExpression(operator: "||" | "&&" | "??", left: BabelNodeExpression, right: BabelNodeExpression): BabelNodeLogicalExpression; + declare export function memberExpression(object: BabelNodeExpression, property: BabelNodeExpression | BabelNodeIdentifier | BabelNodePrivateName, computed?: boolean, optional?: true | false): BabelNodeMemberExpression; + declare export function newExpression(callee: BabelNodeExpression | BabelNodeV8IntrinsicIdentifier, _arguments: Array): BabelNodeNewExpression; + declare export function program(body: Array, directives?: Array, sourceType?: "script" | "module", interpreter?: BabelNodeInterpreterDirective): BabelNodeProgram; + declare export function objectExpression(properties: Array): BabelNodeObjectExpression; + declare export function objectMethod(kind?: "method" | "get" | "set", key: BabelNodeExpression | BabelNodeIdentifier | BabelNodeStringLiteral | BabelNodeNumericLiteral, params: Array, body: BabelNodeBlockStatement, computed?: boolean, generator?: boolean, async?: boolean): BabelNodeObjectMethod; + declare export function objectProperty(key: BabelNodeExpression | BabelNodeIdentifier | BabelNodeStringLiteral | BabelNodeNumericLiteral, value: BabelNodeExpression | BabelNodePatternLike, computed?: boolean, shorthand?: boolean, decorators?: Array): BabelNodeObjectProperty; + declare export function restElement(argument: BabelNodeLVal): BabelNodeRestElement; + declare export function returnStatement(argument?: BabelNodeExpression): BabelNodeReturnStatement; + declare export function sequenceExpression(expressions: Array): BabelNodeSequenceExpression; + declare export function parenthesizedExpression(expression: BabelNodeExpression): BabelNodeParenthesizedExpression; + declare export function switchCase(test?: BabelNodeExpression, consequent: Array): BabelNodeSwitchCase; + declare export function switchStatement(discriminant: BabelNodeExpression, cases: Array): BabelNodeSwitchStatement; + declare export function thisExpression(): BabelNodeThisExpression; + declare export function throwStatement(argument: BabelNodeExpression): BabelNodeThrowStatement; + declare export function tryStatement(block: BabelNodeBlockStatement, handler?: BabelNodeCatchClause, finalizer?: BabelNodeBlockStatement): BabelNodeTryStatement; + declare export function unaryExpression(operator: "void" | "throw" | "delete" | "!" | "+" | "-" | "~" | "typeof", argument: BabelNodeExpression, prefix?: boolean): BabelNodeUnaryExpression; + declare export function updateExpression(operator: "++" | "--", argument: BabelNodeExpression, prefix?: boolean): BabelNodeUpdateExpression; + declare export function variableDeclaration(kind: "var" | "let" | "const", declarations: Array): BabelNodeVariableDeclaration; + declare export function variableDeclarator(id: BabelNodeLVal, init?: BabelNodeExpression): BabelNodeVariableDeclarator; + declare export function whileStatement(test: BabelNodeExpression, body: BabelNodeStatement): BabelNodeWhileStatement; + declare export function withStatement(object: BabelNodeExpression, body: BabelNodeStatement): BabelNodeWithStatement; + declare export function assignmentPattern(left: BabelNodeIdentifier | BabelNodeObjectPattern | BabelNodeArrayPattern | BabelNodeMemberExpression, right: BabelNodeExpression): BabelNodeAssignmentPattern; + declare export function arrayPattern(elements: Array): BabelNodeArrayPattern; + declare export function arrowFunctionExpression(params: Array, body: BabelNodeBlockStatement | BabelNodeExpression, async?: boolean): BabelNodeArrowFunctionExpression; + declare export function classBody(body: Array): BabelNodeClassBody; + declare export function classExpression(id?: BabelNodeIdentifier, superClass?: BabelNodeExpression, body: BabelNodeClassBody, decorators?: Array): BabelNodeClassExpression; + declare export function classDeclaration(id: BabelNodeIdentifier, superClass?: BabelNodeExpression, body: BabelNodeClassBody, decorators?: Array): BabelNodeClassDeclaration; + declare export function exportAllDeclaration(source: BabelNodeStringLiteral): BabelNodeExportAllDeclaration; + declare export function exportDefaultDeclaration(declaration: BabelNodeFunctionDeclaration | BabelNodeTSDeclareFunction | BabelNodeClassDeclaration | BabelNodeExpression): BabelNodeExportDefaultDeclaration; + declare export function exportNamedDeclaration(declaration?: BabelNodeDeclaration, specifiers?: Array, source?: BabelNodeStringLiteral): BabelNodeExportNamedDeclaration; + declare export function exportSpecifier(local: BabelNodeIdentifier, exported: BabelNodeIdentifier | BabelNodeStringLiteral): BabelNodeExportSpecifier; + declare export function forOfStatement(left: BabelNodeVariableDeclaration | BabelNodeLVal, right: BabelNodeExpression, body: BabelNodeStatement, _await?: boolean): BabelNodeForOfStatement; + declare export function importDeclaration(specifiers: Array, source: BabelNodeStringLiteral): BabelNodeImportDeclaration; + declare export function importDefaultSpecifier(local: BabelNodeIdentifier): BabelNodeImportDefaultSpecifier; + declare export function importNamespaceSpecifier(local: BabelNodeIdentifier): BabelNodeImportNamespaceSpecifier; + declare export function importSpecifier(local: BabelNodeIdentifier, imported: BabelNodeIdentifier | BabelNodeStringLiteral): BabelNodeImportSpecifier; + declare export function metaProperty(meta: BabelNodeIdentifier, property: BabelNodeIdentifier): BabelNodeMetaProperty; + declare export function classMethod(kind?: "get" | "set" | "method" | "constructor", key: BabelNodeIdentifier | BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeExpression, params: Array, body: BabelNodeBlockStatement, computed?: boolean, _static?: boolean, generator?: boolean, async?: boolean): BabelNodeClassMethod; + declare export function objectPattern(properties: Array): BabelNodeObjectPattern; + declare export function spreadElement(argument: BabelNodeExpression): BabelNodeSpreadElement; + declare function _super(): BabelNodeSuper; + declare export { _super as super } + declare export function taggedTemplateExpression(tag: BabelNodeExpression, quasi: BabelNodeTemplateLiteral): BabelNodeTaggedTemplateExpression; + declare export function templateElement(value: { raw: string, cooked?: string }, tail?: boolean): BabelNodeTemplateElement; + declare export function templateLiteral(quasis: Array, expressions: Array): BabelNodeTemplateLiteral; + declare export function yieldExpression(argument?: BabelNodeExpression, delegate?: boolean): BabelNodeYieldExpression; + declare export function awaitExpression(argument: BabelNodeExpression): BabelNodeAwaitExpression; + declare function _import(): BabelNodeImport; + declare export { _import as import } + declare export function bigIntLiteral(value: string): BabelNodeBigIntLiteral; + declare export function exportNamespaceSpecifier(exported: BabelNodeIdentifier): BabelNodeExportNamespaceSpecifier; + declare export function optionalMemberExpression(object: BabelNodeExpression, property: BabelNodeExpression | BabelNodeIdentifier, computed?: boolean, optional: boolean): BabelNodeOptionalMemberExpression; + declare export function optionalCallExpression(callee: BabelNodeExpression, _arguments: Array, optional: boolean): BabelNodeOptionalCallExpression; + declare export function classProperty(key: BabelNodeIdentifier | BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeExpression, value?: BabelNodeExpression, typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop, decorators?: Array, computed?: boolean, _static?: boolean): BabelNodeClassProperty; + declare export function classAccessorProperty(key: BabelNodeIdentifier | BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeExpression | BabelNodePrivateName, value?: BabelNodeExpression, typeAnnotation?: BabelNodeTypeAnnotation | BabelNodeTSTypeAnnotation | BabelNodeNoop, decorators?: Array, computed?: boolean, _static?: boolean): BabelNodeClassAccessorProperty; + declare export function classPrivateProperty(key: BabelNodePrivateName, value?: BabelNodeExpression, decorators?: Array, _static: any): BabelNodeClassPrivateProperty; + declare export function classPrivateMethod(kind?: "get" | "set" | "method" | "constructor", key: BabelNodePrivateName, params: Array, body: BabelNodeBlockStatement, _static?: boolean): BabelNodeClassPrivateMethod; + declare export function privateName(id: BabelNodeIdentifier): BabelNodePrivateName; + declare export function staticBlock(body: Array): BabelNodeStaticBlock; + declare export function anyTypeAnnotation(): BabelNodeAnyTypeAnnotation; + declare export function arrayTypeAnnotation(elementType: BabelNodeFlowType): BabelNodeArrayTypeAnnotation; + declare export function booleanTypeAnnotation(): BabelNodeBooleanTypeAnnotation; + declare export function booleanLiteralTypeAnnotation(value: boolean): BabelNodeBooleanLiteralTypeAnnotation; + declare export function nullLiteralTypeAnnotation(): BabelNodeNullLiteralTypeAnnotation; + declare export function classImplements(id: BabelNodeIdentifier, typeParameters?: BabelNodeTypeParameterInstantiation): BabelNodeClassImplements; + declare export function declareClass(id: BabelNodeIdentifier, typeParameters?: BabelNodeTypeParameterDeclaration, _extends?: Array, body: BabelNodeObjectTypeAnnotation): BabelNodeDeclareClass; + declare export function declareFunction(id: BabelNodeIdentifier): BabelNodeDeclareFunction; + declare export function declareInterface(id: BabelNodeIdentifier, typeParameters?: BabelNodeTypeParameterDeclaration, _extends?: Array, body: BabelNodeObjectTypeAnnotation): BabelNodeDeclareInterface; + declare export function declareModule(id: BabelNodeIdentifier | BabelNodeStringLiteral, body: BabelNodeBlockStatement, kind?: "CommonJS" | "ES"): BabelNodeDeclareModule; + declare export function declareModuleExports(typeAnnotation: BabelNodeTypeAnnotation): BabelNodeDeclareModuleExports; + declare export function declareTypeAlias(id: BabelNodeIdentifier, typeParameters?: BabelNodeTypeParameterDeclaration, right: BabelNodeFlowType): BabelNodeDeclareTypeAlias; + declare export function declareOpaqueType(id: BabelNodeIdentifier, typeParameters?: BabelNodeTypeParameterDeclaration, supertype?: BabelNodeFlowType): BabelNodeDeclareOpaqueType; + declare export function declareVariable(id: BabelNodeIdentifier): BabelNodeDeclareVariable; + declare export function declareExportDeclaration(declaration?: BabelNodeFlow, specifiers?: Array, source?: BabelNodeStringLiteral): BabelNodeDeclareExportDeclaration; + declare export function declareExportAllDeclaration(source: BabelNodeStringLiteral): BabelNodeDeclareExportAllDeclaration; + declare export function declaredPredicate(value: BabelNodeFlow): BabelNodeDeclaredPredicate; + declare export function existsTypeAnnotation(): BabelNodeExistsTypeAnnotation; + declare export function functionTypeAnnotation(typeParameters?: BabelNodeTypeParameterDeclaration, params: Array, rest?: BabelNodeFunctionTypeParam, returnType: BabelNodeFlowType): BabelNodeFunctionTypeAnnotation; + declare export function functionTypeParam(name?: BabelNodeIdentifier, typeAnnotation: BabelNodeFlowType): BabelNodeFunctionTypeParam; + declare export function genericTypeAnnotation(id: BabelNodeIdentifier | BabelNodeQualifiedTypeIdentifier, typeParameters?: BabelNodeTypeParameterInstantiation): BabelNodeGenericTypeAnnotation; + declare export function inferredPredicate(): BabelNodeInferredPredicate; + declare export function interfaceExtends(id: BabelNodeIdentifier | BabelNodeQualifiedTypeIdentifier, typeParameters?: BabelNodeTypeParameterInstantiation): BabelNodeInterfaceExtends; + declare export function interfaceDeclaration(id: BabelNodeIdentifier, typeParameters?: BabelNodeTypeParameterDeclaration, _extends?: Array, body: BabelNodeObjectTypeAnnotation): BabelNodeInterfaceDeclaration; + declare export function interfaceTypeAnnotation(_extends?: Array, body: BabelNodeObjectTypeAnnotation): BabelNodeInterfaceTypeAnnotation; + declare export function intersectionTypeAnnotation(types: Array): BabelNodeIntersectionTypeAnnotation; + declare export function mixedTypeAnnotation(): BabelNodeMixedTypeAnnotation; + declare export function emptyTypeAnnotation(): BabelNodeEmptyTypeAnnotation; + declare export function nullableTypeAnnotation(typeAnnotation: BabelNodeFlowType): BabelNodeNullableTypeAnnotation; + declare export function numberLiteralTypeAnnotation(value: number): BabelNodeNumberLiteralTypeAnnotation; + declare export function numberTypeAnnotation(): BabelNodeNumberTypeAnnotation; + declare export function objectTypeAnnotation(properties: Array, indexers?: Array, callProperties?: Array, internalSlots?: Array, exact?: boolean): BabelNodeObjectTypeAnnotation; + declare export function objectTypeInternalSlot(id: BabelNodeIdentifier, value: BabelNodeFlowType, optional: boolean, _static: boolean, method: boolean): BabelNodeObjectTypeInternalSlot; + declare export function objectTypeCallProperty(value: BabelNodeFlowType): BabelNodeObjectTypeCallProperty; + declare export function objectTypeIndexer(id?: BabelNodeIdentifier, key: BabelNodeFlowType, value: BabelNodeFlowType, variance?: BabelNodeVariance): BabelNodeObjectTypeIndexer; + declare export function objectTypeProperty(key: BabelNodeIdentifier | BabelNodeStringLiteral, value: BabelNodeFlowType, variance?: BabelNodeVariance): BabelNodeObjectTypeProperty; + declare export function objectTypeSpreadProperty(argument: BabelNodeFlowType): BabelNodeObjectTypeSpreadProperty; + declare export function opaqueType(id: BabelNodeIdentifier, typeParameters?: BabelNodeTypeParameterDeclaration, supertype?: BabelNodeFlowType, impltype: BabelNodeFlowType): BabelNodeOpaqueType; + declare export function qualifiedTypeIdentifier(id: BabelNodeIdentifier, qualification: BabelNodeIdentifier | BabelNodeQualifiedTypeIdentifier): BabelNodeQualifiedTypeIdentifier; + declare export function stringLiteralTypeAnnotation(value: string): BabelNodeStringLiteralTypeAnnotation; + declare export function stringTypeAnnotation(): BabelNodeStringTypeAnnotation; + declare export function symbolTypeAnnotation(): BabelNodeSymbolTypeAnnotation; + declare export function thisTypeAnnotation(): BabelNodeThisTypeAnnotation; + declare export function tupleTypeAnnotation(types: Array): BabelNodeTupleTypeAnnotation; + declare export function typeofTypeAnnotation(argument: BabelNodeFlowType): BabelNodeTypeofTypeAnnotation; + declare export function typeAlias(id: BabelNodeIdentifier, typeParameters?: BabelNodeTypeParameterDeclaration, right: BabelNodeFlowType): BabelNodeTypeAlias; + declare export function typeAnnotation(typeAnnotation: BabelNodeFlowType): BabelNodeTypeAnnotation; + declare export function typeCastExpression(expression: BabelNodeExpression, typeAnnotation: BabelNodeTypeAnnotation): BabelNodeTypeCastExpression; + declare export function typeParameter(bound?: BabelNodeTypeAnnotation, _default?: BabelNodeFlowType, variance?: BabelNodeVariance): BabelNodeTypeParameter; + declare export function typeParameterDeclaration(params: Array): BabelNodeTypeParameterDeclaration; + declare export function typeParameterInstantiation(params: Array): BabelNodeTypeParameterInstantiation; + declare export function unionTypeAnnotation(types: Array): BabelNodeUnionTypeAnnotation; + declare export function variance(kind: "minus" | "plus"): BabelNodeVariance; + declare export function voidTypeAnnotation(): BabelNodeVoidTypeAnnotation; + declare export function enumDeclaration(id: BabelNodeIdentifier, body: BabelNodeEnumBooleanBody | BabelNodeEnumNumberBody | BabelNodeEnumStringBody | BabelNodeEnumSymbolBody): BabelNodeEnumDeclaration; + declare export function enumBooleanBody(members: Array): BabelNodeEnumBooleanBody; + declare export function enumNumberBody(members: Array): BabelNodeEnumNumberBody; + declare export function enumStringBody(members: Array): BabelNodeEnumStringBody; + declare export function enumSymbolBody(members: Array): BabelNodeEnumSymbolBody; + declare export function enumBooleanMember(id: BabelNodeIdentifier): BabelNodeEnumBooleanMember; + declare export function enumNumberMember(id: BabelNodeIdentifier, init: BabelNodeNumericLiteral): BabelNodeEnumNumberMember; + declare export function enumStringMember(id: BabelNodeIdentifier, init: BabelNodeStringLiteral): BabelNodeEnumStringMember; + declare export function enumDefaultedMember(id: BabelNodeIdentifier): BabelNodeEnumDefaultedMember; + declare export function indexedAccessType(objectType: BabelNodeFlowType, indexType: BabelNodeFlowType): BabelNodeIndexedAccessType; + declare export function optionalIndexedAccessType(objectType: BabelNodeFlowType, indexType: BabelNodeFlowType): BabelNodeOptionalIndexedAccessType; + declare export function jsxAttribute(name: BabelNodeJSXIdentifier | BabelNodeJSXNamespacedName, value?: BabelNodeJSXElement | BabelNodeJSXFragment | BabelNodeStringLiteral | BabelNodeJSXExpressionContainer): BabelNodeJSXAttribute; + declare export function jsxClosingElement(name: BabelNodeJSXIdentifier | BabelNodeJSXMemberExpression | BabelNodeJSXNamespacedName): BabelNodeJSXClosingElement; + declare export function jsxElement(openingElement: BabelNodeJSXOpeningElement, closingElement?: BabelNodeJSXClosingElement, children: Array, selfClosing?: boolean): BabelNodeJSXElement; + declare export function jsxEmptyExpression(): BabelNodeJSXEmptyExpression; + declare export function jsxExpressionContainer(expression: BabelNodeExpression | BabelNodeJSXEmptyExpression): BabelNodeJSXExpressionContainer; + declare export function jsxSpreadChild(expression: BabelNodeExpression): BabelNodeJSXSpreadChild; + declare export function jsxIdentifier(name: string): BabelNodeJSXIdentifier; + declare export function jsxMemberExpression(object: BabelNodeJSXMemberExpression | BabelNodeJSXIdentifier, property: BabelNodeJSXIdentifier): BabelNodeJSXMemberExpression; + declare export function jsxNamespacedName(namespace: BabelNodeJSXIdentifier, name: BabelNodeJSXIdentifier): BabelNodeJSXNamespacedName; + declare export function jsxOpeningElement(name: BabelNodeJSXIdentifier | BabelNodeJSXMemberExpression | BabelNodeJSXNamespacedName, attributes: Array, selfClosing?: boolean): BabelNodeJSXOpeningElement; + declare export function jsxSpreadAttribute(argument: BabelNodeExpression): BabelNodeJSXSpreadAttribute; + declare export function jsxText(value: string): BabelNodeJSXText; + declare export function jsxFragment(openingFragment: BabelNodeJSXOpeningFragment, closingFragment: BabelNodeJSXClosingFragment, children: Array): BabelNodeJSXFragment; + declare export function jsxOpeningFragment(): BabelNodeJSXOpeningFragment; + declare export function jsxClosingFragment(): BabelNodeJSXClosingFragment; + declare export function noop(): BabelNodeNoop; + declare export function placeholder(expectedNode: "Identifier" | "StringLiteral" | "Expression" | "Statement" | "Declaration" | "BlockStatement" | "ClassBody" | "Pattern", name: BabelNodeIdentifier): BabelNodePlaceholder; + declare export function v8IntrinsicIdentifier(name: string): BabelNodeV8IntrinsicIdentifier; + declare export function argumentPlaceholder(): BabelNodeArgumentPlaceholder; + declare export function bindExpression(object: BabelNodeExpression, callee: BabelNodeExpression): BabelNodeBindExpression; + declare export function importAttribute(key: BabelNodeIdentifier | BabelNodeStringLiteral, value: BabelNodeStringLiteral): BabelNodeImportAttribute; + declare export function decorator(expression: BabelNodeExpression): BabelNodeDecorator; + declare export function doExpression(body: BabelNodeBlockStatement, async?: boolean): BabelNodeDoExpression; + declare export function exportDefaultSpecifier(exported: BabelNodeIdentifier): BabelNodeExportDefaultSpecifier; + declare export function recordExpression(properties: Array): BabelNodeRecordExpression; + declare export function tupleExpression(elements?: Array): BabelNodeTupleExpression; + declare export function decimalLiteral(value: string): BabelNodeDecimalLiteral; + declare export function moduleExpression(body: BabelNodeProgram): BabelNodeModuleExpression; + declare export function topicReference(): BabelNodeTopicReference; + declare export function pipelineTopicExpression(expression: BabelNodeExpression): BabelNodePipelineTopicExpression; + declare export function pipelineBareFunction(callee: BabelNodeExpression): BabelNodePipelineBareFunction; + declare export function pipelinePrimaryTopicReference(): BabelNodePipelinePrimaryTopicReference; + declare export function tsParameterProperty(parameter: BabelNodeIdentifier | BabelNodeAssignmentPattern): BabelNodeTSParameterProperty; + declare export function tsDeclareFunction(id?: BabelNodeIdentifier, typeParameters?: BabelNodeTSTypeParameterDeclaration | BabelNodeNoop, params: Array, returnType?: BabelNodeTSTypeAnnotation | BabelNodeNoop): BabelNodeTSDeclareFunction; + declare export function tsDeclareMethod(decorators?: Array, key: BabelNodeIdentifier | BabelNodeStringLiteral | BabelNodeNumericLiteral | BabelNodeExpression, typeParameters?: BabelNodeTSTypeParameterDeclaration | BabelNodeNoop, params: Array, returnType?: BabelNodeTSTypeAnnotation | BabelNodeNoop): BabelNodeTSDeclareMethod; + declare export function tsQualifiedName(left: BabelNodeTSEntityName, right: BabelNodeIdentifier): BabelNodeTSQualifiedName; + declare export function tsCallSignatureDeclaration(typeParameters?: BabelNodeTSTypeParameterDeclaration, parameters: Array, typeAnnotation?: BabelNodeTSTypeAnnotation): BabelNodeTSCallSignatureDeclaration; + declare export function tsConstructSignatureDeclaration(typeParameters?: BabelNodeTSTypeParameterDeclaration, parameters: Array, typeAnnotation?: BabelNodeTSTypeAnnotation): BabelNodeTSConstructSignatureDeclaration; + declare export function tsPropertySignature(key: BabelNodeExpression, typeAnnotation?: BabelNodeTSTypeAnnotation, initializer?: BabelNodeExpression): BabelNodeTSPropertySignature; + declare export function tsMethodSignature(key: BabelNodeExpression, typeParameters?: BabelNodeTSTypeParameterDeclaration, parameters: Array, typeAnnotation?: BabelNodeTSTypeAnnotation): BabelNodeTSMethodSignature; + declare export function tsIndexSignature(parameters: Array, typeAnnotation?: BabelNodeTSTypeAnnotation): BabelNodeTSIndexSignature; + declare export function tsAnyKeyword(): BabelNodeTSAnyKeyword; + declare export function tsBooleanKeyword(): BabelNodeTSBooleanKeyword; + declare export function tsBigIntKeyword(): BabelNodeTSBigIntKeyword; + declare export function tsIntrinsicKeyword(): BabelNodeTSIntrinsicKeyword; + declare export function tsNeverKeyword(): BabelNodeTSNeverKeyword; + declare export function tsNullKeyword(): BabelNodeTSNullKeyword; + declare export function tsNumberKeyword(): BabelNodeTSNumberKeyword; + declare export function tsObjectKeyword(): BabelNodeTSObjectKeyword; + declare export function tsStringKeyword(): BabelNodeTSStringKeyword; + declare export function tsSymbolKeyword(): BabelNodeTSSymbolKeyword; + declare export function tsUndefinedKeyword(): BabelNodeTSUndefinedKeyword; + declare export function tsUnknownKeyword(): BabelNodeTSUnknownKeyword; + declare export function tsVoidKeyword(): BabelNodeTSVoidKeyword; + declare export function tsThisType(): BabelNodeTSThisType; + declare export function tsFunctionType(typeParameters?: BabelNodeTSTypeParameterDeclaration, parameters: Array, typeAnnotation?: BabelNodeTSTypeAnnotation): BabelNodeTSFunctionType; + declare export function tsConstructorType(typeParameters?: BabelNodeTSTypeParameterDeclaration, parameters: Array, typeAnnotation?: BabelNodeTSTypeAnnotation): BabelNodeTSConstructorType; + declare export function tsTypeReference(typeName: BabelNodeTSEntityName, typeParameters?: BabelNodeTSTypeParameterInstantiation): BabelNodeTSTypeReference; + declare export function tsTypePredicate(parameterName: BabelNodeIdentifier | BabelNodeTSThisType, typeAnnotation?: BabelNodeTSTypeAnnotation, asserts?: boolean): BabelNodeTSTypePredicate; + declare export function tsTypeQuery(exprName: BabelNodeTSEntityName | BabelNodeTSImportType): BabelNodeTSTypeQuery; + declare export function tsTypeLiteral(members: Array): BabelNodeTSTypeLiteral; + declare export function tsArrayType(elementType: BabelNodeTSType): BabelNodeTSArrayType; + declare export function tsTupleType(elementTypes: Array): BabelNodeTSTupleType; + declare export function tsOptionalType(typeAnnotation: BabelNodeTSType): BabelNodeTSOptionalType; + declare export function tsRestType(typeAnnotation: BabelNodeTSType): BabelNodeTSRestType; + declare export function tsNamedTupleMember(label: BabelNodeIdentifier, elementType: BabelNodeTSType, optional?: boolean): BabelNodeTSNamedTupleMember; + declare export function tsUnionType(types: Array): BabelNodeTSUnionType; + declare export function tsIntersectionType(types: Array): BabelNodeTSIntersectionType; + declare export function tsConditionalType(checkType: BabelNodeTSType, extendsType: BabelNodeTSType, trueType: BabelNodeTSType, falseType: BabelNodeTSType): BabelNodeTSConditionalType; + declare export function tsInferType(typeParameter: BabelNodeTSTypeParameter): BabelNodeTSInferType; + declare export function tsParenthesizedType(typeAnnotation: BabelNodeTSType): BabelNodeTSParenthesizedType; + declare export function tsTypeOperator(typeAnnotation: BabelNodeTSType): BabelNodeTSTypeOperator; + declare export function tsIndexedAccessType(objectType: BabelNodeTSType, indexType: BabelNodeTSType): BabelNodeTSIndexedAccessType; + declare export function tsMappedType(typeParameter: BabelNodeTSTypeParameter, typeAnnotation?: BabelNodeTSType, nameType?: BabelNodeTSType): BabelNodeTSMappedType; + declare export function tsLiteralType(literal: BabelNodeNumericLiteral | BabelNodeStringLiteral | BabelNodeBooleanLiteral | BabelNodeBigIntLiteral | BabelNodeUnaryExpression): BabelNodeTSLiteralType; + declare export function tsExpressionWithTypeArguments(expression: BabelNodeTSEntityName, typeParameters?: BabelNodeTSTypeParameterInstantiation): BabelNodeTSExpressionWithTypeArguments; + declare export function tsInterfaceDeclaration(id: BabelNodeIdentifier, typeParameters?: BabelNodeTSTypeParameterDeclaration, _extends?: Array, body: BabelNodeTSInterfaceBody): BabelNodeTSInterfaceDeclaration; + declare export function tsInterfaceBody(body: Array): BabelNodeTSInterfaceBody; + declare export function tsTypeAliasDeclaration(id: BabelNodeIdentifier, typeParameters?: BabelNodeTSTypeParameterDeclaration, typeAnnotation: BabelNodeTSType): BabelNodeTSTypeAliasDeclaration; + declare export function tsAsExpression(expression: BabelNodeExpression, typeAnnotation: BabelNodeTSType): BabelNodeTSAsExpression; + declare export function tsTypeAssertion(typeAnnotation: BabelNodeTSType, expression: BabelNodeExpression): BabelNodeTSTypeAssertion; + declare export function tsEnumDeclaration(id: BabelNodeIdentifier, members: Array): BabelNodeTSEnumDeclaration; + declare export function tsEnumMember(id: BabelNodeIdentifier | BabelNodeStringLiteral, initializer?: BabelNodeExpression): BabelNodeTSEnumMember; + declare export function tsModuleDeclaration(id: BabelNodeIdentifier | BabelNodeStringLiteral, body: BabelNodeTSModuleBlock | BabelNodeTSModuleDeclaration): BabelNodeTSModuleDeclaration; + declare export function tsModuleBlock(body: Array): BabelNodeTSModuleBlock; + declare export function tsImportType(argument: BabelNodeStringLiteral, qualifier?: BabelNodeTSEntityName, typeParameters?: BabelNodeTSTypeParameterInstantiation): BabelNodeTSImportType; + declare export function tsImportEqualsDeclaration(id: BabelNodeIdentifier, moduleReference: BabelNodeTSEntityName | BabelNodeTSExternalModuleReference): BabelNodeTSImportEqualsDeclaration; + declare export function tsExternalModuleReference(expression: BabelNodeStringLiteral): BabelNodeTSExternalModuleReference; + declare export function tsNonNullExpression(expression: BabelNodeExpression): BabelNodeTSNonNullExpression; + declare export function tsExportAssignment(expression: BabelNodeExpression): BabelNodeTSExportAssignment; + declare export function tsNamespaceExportDeclaration(id: BabelNodeIdentifier): BabelNodeTSNamespaceExportDeclaration; + declare export function tsTypeAnnotation(typeAnnotation: BabelNodeTSType): BabelNodeTSTypeAnnotation; + declare export function tsTypeParameterInstantiation(params: Array): BabelNodeTSTypeParameterInstantiation; + declare export function tsTypeParameterDeclaration(params: Array): BabelNodeTSTypeParameterDeclaration; + declare export function tsTypeParameter(constraint?: BabelNodeTSType, _default?: BabelNodeTSType, name: string): BabelNodeTSTypeParameter; + declare export function isArrayExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeArrayExpression) + declare export function assertArrayExpression(node: ?Object, opts?: ?Object): void + declare export function isAssignmentExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeAssignmentExpression) + declare export function assertAssignmentExpression(node: ?Object, opts?: ?Object): void + declare export function isBinaryExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeBinaryExpression) + declare export function assertBinaryExpression(node: ?Object, opts?: ?Object): void + declare export function isInterpreterDirective(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeInterpreterDirective) + declare export function assertInterpreterDirective(node: ?Object, opts?: ?Object): void + declare export function isDirective(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeDirective) + declare export function assertDirective(node: ?Object, opts?: ?Object): void + declare export function isDirectiveLiteral(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeDirectiveLiteral) + declare export function assertDirectiveLiteral(node: ?Object, opts?: ?Object): void + declare export function isBlockStatement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeBlockStatement) + declare export function assertBlockStatement(node: ?Object, opts?: ?Object): void + declare export function isBreakStatement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeBreakStatement) + declare export function assertBreakStatement(node: ?Object, opts?: ?Object): void + declare export function isCallExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeCallExpression) + declare export function assertCallExpression(node: ?Object, opts?: ?Object): void + declare export function isCatchClause(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeCatchClause) + declare export function assertCatchClause(node: ?Object, opts?: ?Object): void + declare export function isConditionalExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeConditionalExpression) + declare export function assertConditionalExpression(node: ?Object, opts?: ?Object): void + declare export function isContinueStatement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeContinueStatement) + declare export function assertContinueStatement(node: ?Object, opts?: ?Object): void + declare export function isDebuggerStatement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeDebuggerStatement) + declare export function assertDebuggerStatement(node: ?Object, opts?: ?Object): void + declare export function isDoWhileStatement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeDoWhileStatement) + declare export function assertDoWhileStatement(node: ?Object, opts?: ?Object): void + declare export function isEmptyStatement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeEmptyStatement) + declare export function assertEmptyStatement(node: ?Object, opts?: ?Object): void + declare export function isExpressionStatement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeExpressionStatement) + declare export function assertExpressionStatement(node: ?Object, opts?: ?Object): void + declare export function isFile(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeFile) + declare export function assertFile(node: ?Object, opts?: ?Object): void + declare export function isForInStatement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeForInStatement) + declare export function assertForInStatement(node: ?Object, opts?: ?Object): void + declare export function isForStatement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeForStatement) + declare export function assertForStatement(node: ?Object, opts?: ?Object): void + declare export function isFunctionDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeFunctionDeclaration) + declare export function assertFunctionDeclaration(node: ?Object, opts?: ?Object): void + declare export function isFunctionExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeFunctionExpression) + declare export function assertFunctionExpression(node: ?Object, opts?: ?Object): void + declare export function isIdentifier(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeIdentifier) + declare export function assertIdentifier(node: ?Object, opts?: ?Object): void + declare export function isIfStatement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeIfStatement) + declare export function assertIfStatement(node: ?Object, opts?: ?Object): void + declare export function isLabeledStatement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeLabeledStatement) + declare export function assertLabeledStatement(node: ?Object, opts?: ?Object): void + declare export function isStringLiteral(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeStringLiteral) + declare export function assertStringLiteral(node: ?Object, opts?: ?Object): void + declare export function isNumericLiteral(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeNumericLiteral) + declare export function assertNumericLiteral(node: ?Object, opts?: ?Object): void + declare export function isNullLiteral(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeNullLiteral) + declare export function assertNullLiteral(node: ?Object, opts?: ?Object): void + declare export function isBooleanLiteral(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeBooleanLiteral) + declare export function assertBooleanLiteral(node: ?Object, opts?: ?Object): void + declare export function isRegExpLiteral(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeRegExpLiteral) + declare export function assertRegExpLiteral(node: ?Object, opts?: ?Object): void + declare export function isLogicalExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeLogicalExpression) + declare export function assertLogicalExpression(node: ?Object, opts?: ?Object): void + declare export function isMemberExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeMemberExpression) + declare export function assertMemberExpression(node: ?Object, opts?: ?Object): void + declare export function isNewExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeNewExpression) + declare export function assertNewExpression(node: ?Object, opts?: ?Object): void + declare export function isProgram(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeProgram) + declare export function assertProgram(node: ?Object, opts?: ?Object): void + declare export function isObjectExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeObjectExpression) + declare export function assertObjectExpression(node: ?Object, opts?: ?Object): void + declare export function isObjectMethod(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeObjectMethod) + declare export function assertObjectMethod(node: ?Object, opts?: ?Object): void + declare export function isObjectProperty(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeObjectProperty) + declare export function assertObjectProperty(node: ?Object, opts?: ?Object): void + declare export function isRestElement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeRestElement) + declare export function assertRestElement(node: ?Object, opts?: ?Object): void + declare export function isReturnStatement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeReturnStatement) + declare export function assertReturnStatement(node: ?Object, opts?: ?Object): void + declare export function isSequenceExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeSequenceExpression) + declare export function assertSequenceExpression(node: ?Object, opts?: ?Object): void + declare export function isParenthesizedExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeParenthesizedExpression) + declare export function assertParenthesizedExpression(node: ?Object, opts?: ?Object): void + declare export function isSwitchCase(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeSwitchCase) + declare export function assertSwitchCase(node: ?Object, opts?: ?Object): void + declare export function isSwitchStatement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeSwitchStatement) + declare export function assertSwitchStatement(node: ?Object, opts?: ?Object): void + declare export function isThisExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeThisExpression) + declare export function assertThisExpression(node: ?Object, opts?: ?Object): void + declare export function isThrowStatement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeThrowStatement) + declare export function assertThrowStatement(node: ?Object, opts?: ?Object): void + declare export function isTryStatement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTryStatement) + declare export function assertTryStatement(node: ?Object, opts?: ?Object): void + declare export function isUnaryExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeUnaryExpression) + declare export function assertUnaryExpression(node: ?Object, opts?: ?Object): void + declare export function isUpdateExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeUpdateExpression) + declare export function assertUpdateExpression(node: ?Object, opts?: ?Object): void + declare export function isVariableDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeVariableDeclaration) + declare export function assertVariableDeclaration(node: ?Object, opts?: ?Object): void + declare export function isVariableDeclarator(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeVariableDeclarator) + declare export function assertVariableDeclarator(node: ?Object, opts?: ?Object): void + declare export function isWhileStatement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeWhileStatement) + declare export function assertWhileStatement(node: ?Object, opts?: ?Object): void + declare export function isWithStatement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeWithStatement) + declare export function assertWithStatement(node: ?Object, opts?: ?Object): void + declare export function isAssignmentPattern(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeAssignmentPattern) + declare export function assertAssignmentPattern(node: ?Object, opts?: ?Object): void + declare export function isArrayPattern(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeArrayPattern) + declare export function assertArrayPattern(node: ?Object, opts?: ?Object): void + declare export function isArrowFunctionExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeArrowFunctionExpression) + declare export function assertArrowFunctionExpression(node: ?Object, opts?: ?Object): void + declare export function isClassBody(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeClassBody) + declare export function assertClassBody(node: ?Object, opts?: ?Object): void + declare export function isClassExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeClassExpression) + declare export function assertClassExpression(node: ?Object, opts?: ?Object): void + declare export function isClassDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeClassDeclaration) + declare export function assertClassDeclaration(node: ?Object, opts?: ?Object): void + declare export function isExportAllDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeExportAllDeclaration) + declare export function assertExportAllDeclaration(node: ?Object, opts?: ?Object): void + declare export function isExportDefaultDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeExportDefaultDeclaration) + declare export function assertExportDefaultDeclaration(node: ?Object, opts?: ?Object): void + declare export function isExportNamedDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeExportNamedDeclaration) + declare export function assertExportNamedDeclaration(node: ?Object, opts?: ?Object): void + declare export function isExportSpecifier(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeExportSpecifier) + declare export function assertExportSpecifier(node: ?Object, opts?: ?Object): void + declare export function isForOfStatement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeForOfStatement) + declare export function assertForOfStatement(node: ?Object, opts?: ?Object): void + declare export function isImportDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeImportDeclaration) + declare export function assertImportDeclaration(node: ?Object, opts?: ?Object): void + declare export function isImportDefaultSpecifier(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeImportDefaultSpecifier) + declare export function assertImportDefaultSpecifier(node: ?Object, opts?: ?Object): void + declare export function isImportNamespaceSpecifier(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeImportNamespaceSpecifier) + declare export function assertImportNamespaceSpecifier(node: ?Object, opts?: ?Object): void + declare export function isImportSpecifier(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeImportSpecifier) + declare export function assertImportSpecifier(node: ?Object, opts?: ?Object): void + declare export function isMetaProperty(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeMetaProperty) + declare export function assertMetaProperty(node: ?Object, opts?: ?Object): void + declare export function isClassMethod(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeClassMethod) + declare export function assertClassMethod(node: ?Object, opts?: ?Object): void + declare export function isObjectPattern(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeObjectPattern) + declare export function assertObjectPattern(node: ?Object, opts?: ?Object): void + declare export function isSpreadElement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeSpreadElement) + declare export function assertSpreadElement(node: ?Object, opts?: ?Object): void + declare export function isSuper(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeSuper) + declare export function assertSuper(node: ?Object, opts?: ?Object): void + declare export function isTaggedTemplateExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTaggedTemplateExpression) + declare export function assertTaggedTemplateExpression(node: ?Object, opts?: ?Object): void + declare export function isTemplateElement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTemplateElement) + declare export function assertTemplateElement(node: ?Object, opts?: ?Object): void + declare export function isTemplateLiteral(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTemplateLiteral) + declare export function assertTemplateLiteral(node: ?Object, opts?: ?Object): void + declare export function isYieldExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeYieldExpression) + declare export function assertYieldExpression(node: ?Object, opts?: ?Object): void + declare export function isAwaitExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeAwaitExpression) + declare export function assertAwaitExpression(node: ?Object, opts?: ?Object): void + declare export function isImport(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeImport) + declare export function assertImport(node: ?Object, opts?: ?Object): void + declare export function isBigIntLiteral(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeBigIntLiteral) + declare export function assertBigIntLiteral(node: ?Object, opts?: ?Object): void + declare export function isExportNamespaceSpecifier(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeExportNamespaceSpecifier) + declare export function assertExportNamespaceSpecifier(node: ?Object, opts?: ?Object): void + declare export function isOptionalMemberExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeOptionalMemberExpression) + declare export function assertOptionalMemberExpression(node: ?Object, opts?: ?Object): void + declare export function isOptionalCallExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeOptionalCallExpression) + declare export function assertOptionalCallExpression(node: ?Object, opts?: ?Object): void + declare export function isClassProperty(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeClassProperty) + declare export function assertClassProperty(node: ?Object, opts?: ?Object): void + declare export function isClassAccessorProperty(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeClassAccessorProperty) + declare export function assertClassAccessorProperty(node: ?Object, opts?: ?Object): void + declare export function isClassPrivateProperty(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeClassPrivateProperty) + declare export function assertClassPrivateProperty(node: ?Object, opts?: ?Object): void + declare export function isClassPrivateMethod(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeClassPrivateMethod) + declare export function assertClassPrivateMethod(node: ?Object, opts?: ?Object): void + declare export function isPrivateName(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodePrivateName) + declare export function assertPrivateName(node: ?Object, opts?: ?Object): void + declare export function isStaticBlock(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeStaticBlock) + declare export function assertStaticBlock(node: ?Object, opts?: ?Object): void + declare export function isAnyTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeAnyTypeAnnotation) + declare export function assertAnyTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isArrayTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeArrayTypeAnnotation) + declare export function assertArrayTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isBooleanTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeBooleanTypeAnnotation) + declare export function assertBooleanTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isBooleanLiteralTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeBooleanLiteralTypeAnnotation) + declare export function assertBooleanLiteralTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isNullLiteralTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeNullLiteralTypeAnnotation) + declare export function assertNullLiteralTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isClassImplements(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeClassImplements) + declare export function assertClassImplements(node: ?Object, opts?: ?Object): void + declare export function isDeclareClass(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeDeclareClass) + declare export function assertDeclareClass(node: ?Object, opts?: ?Object): void + declare export function isDeclareFunction(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeDeclareFunction) + declare export function assertDeclareFunction(node: ?Object, opts?: ?Object): void + declare export function isDeclareInterface(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeDeclareInterface) + declare export function assertDeclareInterface(node: ?Object, opts?: ?Object): void + declare export function isDeclareModule(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeDeclareModule) + declare export function assertDeclareModule(node: ?Object, opts?: ?Object): void + declare export function isDeclareModuleExports(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeDeclareModuleExports) + declare export function assertDeclareModuleExports(node: ?Object, opts?: ?Object): void + declare export function isDeclareTypeAlias(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeDeclareTypeAlias) + declare export function assertDeclareTypeAlias(node: ?Object, opts?: ?Object): void + declare export function isDeclareOpaqueType(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeDeclareOpaqueType) + declare export function assertDeclareOpaqueType(node: ?Object, opts?: ?Object): void + declare export function isDeclareVariable(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeDeclareVariable) + declare export function assertDeclareVariable(node: ?Object, opts?: ?Object): void + declare export function isDeclareExportDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeDeclareExportDeclaration) + declare export function assertDeclareExportDeclaration(node: ?Object, opts?: ?Object): void + declare export function isDeclareExportAllDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeDeclareExportAllDeclaration) + declare export function assertDeclareExportAllDeclaration(node: ?Object, opts?: ?Object): void + declare export function isDeclaredPredicate(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeDeclaredPredicate) + declare export function assertDeclaredPredicate(node: ?Object, opts?: ?Object): void + declare export function isExistsTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeExistsTypeAnnotation) + declare export function assertExistsTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isFunctionTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeFunctionTypeAnnotation) + declare export function assertFunctionTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isFunctionTypeParam(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeFunctionTypeParam) + declare export function assertFunctionTypeParam(node: ?Object, opts?: ?Object): void + declare export function isGenericTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeGenericTypeAnnotation) + declare export function assertGenericTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isInferredPredicate(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeInferredPredicate) + declare export function assertInferredPredicate(node: ?Object, opts?: ?Object): void + declare export function isInterfaceExtends(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeInterfaceExtends) + declare export function assertInterfaceExtends(node: ?Object, opts?: ?Object): void + declare export function isInterfaceDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeInterfaceDeclaration) + declare export function assertInterfaceDeclaration(node: ?Object, opts?: ?Object): void + declare export function isInterfaceTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeInterfaceTypeAnnotation) + declare export function assertInterfaceTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isIntersectionTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeIntersectionTypeAnnotation) + declare export function assertIntersectionTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isMixedTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeMixedTypeAnnotation) + declare export function assertMixedTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isEmptyTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeEmptyTypeAnnotation) + declare export function assertEmptyTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isNullableTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeNullableTypeAnnotation) + declare export function assertNullableTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isNumberLiteralTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeNumberLiteralTypeAnnotation) + declare export function assertNumberLiteralTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isNumberTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeNumberTypeAnnotation) + declare export function assertNumberTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isObjectTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeObjectTypeAnnotation) + declare export function assertObjectTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isObjectTypeInternalSlot(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeObjectTypeInternalSlot) + declare export function assertObjectTypeInternalSlot(node: ?Object, opts?: ?Object): void + declare export function isObjectTypeCallProperty(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeObjectTypeCallProperty) + declare export function assertObjectTypeCallProperty(node: ?Object, opts?: ?Object): void + declare export function isObjectTypeIndexer(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeObjectTypeIndexer) + declare export function assertObjectTypeIndexer(node: ?Object, opts?: ?Object): void + declare export function isObjectTypeProperty(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeObjectTypeProperty) + declare export function assertObjectTypeProperty(node: ?Object, opts?: ?Object): void + declare export function isObjectTypeSpreadProperty(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeObjectTypeSpreadProperty) + declare export function assertObjectTypeSpreadProperty(node: ?Object, opts?: ?Object): void + declare export function isOpaqueType(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeOpaqueType) + declare export function assertOpaqueType(node: ?Object, opts?: ?Object): void + declare export function isQualifiedTypeIdentifier(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeQualifiedTypeIdentifier) + declare export function assertQualifiedTypeIdentifier(node: ?Object, opts?: ?Object): void + declare export function isStringLiteralTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeStringLiteralTypeAnnotation) + declare export function assertStringLiteralTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isStringTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeStringTypeAnnotation) + declare export function assertStringTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isSymbolTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeSymbolTypeAnnotation) + declare export function assertSymbolTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isThisTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeThisTypeAnnotation) + declare export function assertThisTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isTupleTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTupleTypeAnnotation) + declare export function assertTupleTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isTypeofTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTypeofTypeAnnotation) + declare export function assertTypeofTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isTypeAlias(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTypeAlias) + declare export function assertTypeAlias(node: ?Object, opts?: ?Object): void + declare export function isTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTypeAnnotation) + declare export function assertTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isTypeCastExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTypeCastExpression) + declare export function assertTypeCastExpression(node: ?Object, opts?: ?Object): void + declare export function isTypeParameter(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTypeParameter) + declare export function assertTypeParameter(node: ?Object, opts?: ?Object): void + declare export function isTypeParameterDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTypeParameterDeclaration) + declare export function assertTypeParameterDeclaration(node: ?Object, opts?: ?Object): void + declare export function isTypeParameterInstantiation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTypeParameterInstantiation) + declare export function assertTypeParameterInstantiation(node: ?Object, opts?: ?Object): void + declare export function isUnionTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeUnionTypeAnnotation) + declare export function assertUnionTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isVariance(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeVariance) + declare export function assertVariance(node: ?Object, opts?: ?Object): void + declare export function isVoidTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeVoidTypeAnnotation) + declare export function assertVoidTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isEnumDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeEnumDeclaration) + declare export function assertEnumDeclaration(node: ?Object, opts?: ?Object): void + declare export function isEnumBooleanBody(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeEnumBooleanBody) + declare export function assertEnumBooleanBody(node: ?Object, opts?: ?Object): void + declare export function isEnumNumberBody(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeEnumNumberBody) + declare export function assertEnumNumberBody(node: ?Object, opts?: ?Object): void + declare export function isEnumStringBody(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeEnumStringBody) + declare export function assertEnumStringBody(node: ?Object, opts?: ?Object): void + declare export function isEnumSymbolBody(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeEnumSymbolBody) + declare export function assertEnumSymbolBody(node: ?Object, opts?: ?Object): void + declare export function isEnumBooleanMember(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeEnumBooleanMember) + declare export function assertEnumBooleanMember(node: ?Object, opts?: ?Object): void + declare export function isEnumNumberMember(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeEnumNumberMember) + declare export function assertEnumNumberMember(node: ?Object, opts?: ?Object): void + declare export function isEnumStringMember(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeEnumStringMember) + declare export function assertEnumStringMember(node: ?Object, opts?: ?Object): void + declare export function isEnumDefaultedMember(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeEnumDefaultedMember) + declare export function assertEnumDefaultedMember(node: ?Object, opts?: ?Object): void + declare export function isIndexedAccessType(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeIndexedAccessType) + declare export function assertIndexedAccessType(node: ?Object, opts?: ?Object): void + declare export function isOptionalIndexedAccessType(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeOptionalIndexedAccessType) + declare export function assertOptionalIndexedAccessType(node: ?Object, opts?: ?Object): void + declare export function isJSXAttribute(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeJSXAttribute) + declare export function assertJSXAttribute(node: ?Object, opts?: ?Object): void + declare export function isJSXClosingElement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeJSXClosingElement) + declare export function assertJSXClosingElement(node: ?Object, opts?: ?Object): void + declare export function isJSXElement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeJSXElement) + declare export function assertJSXElement(node: ?Object, opts?: ?Object): void + declare export function isJSXEmptyExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeJSXEmptyExpression) + declare export function assertJSXEmptyExpression(node: ?Object, opts?: ?Object): void + declare export function isJSXExpressionContainer(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeJSXExpressionContainer) + declare export function assertJSXExpressionContainer(node: ?Object, opts?: ?Object): void + declare export function isJSXSpreadChild(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeJSXSpreadChild) + declare export function assertJSXSpreadChild(node: ?Object, opts?: ?Object): void + declare export function isJSXIdentifier(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeJSXIdentifier) + declare export function assertJSXIdentifier(node: ?Object, opts?: ?Object): void + declare export function isJSXMemberExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeJSXMemberExpression) + declare export function assertJSXMemberExpression(node: ?Object, opts?: ?Object): void + declare export function isJSXNamespacedName(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeJSXNamespacedName) + declare export function assertJSXNamespacedName(node: ?Object, opts?: ?Object): void + declare export function isJSXOpeningElement(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeJSXOpeningElement) + declare export function assertJSXOpeningElement(node: ?Object, opts?: ?Object): void + declare export function isJSXSpreadAttribute(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeJSXSpreadAttribute) + declare export function assertJSXSpreadAttribute(node: ?Object, opts?: ?Object): void + declare export function isJSXText(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeJSXText) + declare export function assertJSXText(node: ?Object, opts?: ?Object): void + declare export function isJSXFragment(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeJSXFragment) + declare export function assertJSXFragment(node: ?Object, opts?: ?Object): void + declare export function isJSXOpeningFragment(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeJSXOpeningFragment) + declare export function assertJSXOpeningFragment(node: ?Object, opts?: ?Object): void + declare export function isJSXClosingFragment(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeJSXClosingFragment) + declare export function assertJSXClosingFragment(node: ?Object, opts?: ?Object): void + declare export function isNoop(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeNoop) + declare export function assertNoop(node: ?Object, opts?: ?Object): void + declare export function isPlaceholder(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodePlaceholder) + declare export function assertPlaceholder(node: ?Object, opts?: ?Object): void + declare export function isV8IntrinsicIdentifier(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeV8IntrinsicIdentifier) + declare export function assertV8IntrinsicIdentifier(node: ?Object, opts?: ?Object): void + declare export function isArgumentPlaceholder(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeArgumentPlaceholder) + declare export function assertArgumentPlaceholder(node: ?Object, opts?: ?Object): void + declare export function isBindExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeBindExpression) + declare export function assertBindExpression(node: ?Object, opts?: ?Object): void + declare export function isImportAttribute(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeImportAttribute) + declare export function assertImportAttribute(node: ?Object, opts?: ?Object): void + declare export function isDecorator(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeDecorator) + declare export function assertDecorator(node: ?Object, opts?: ?Object): void + declare export function isDoExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeDoExpression) + declare export function assertDoExpression(node: ?Object, opts?: ?Object): void + declare export function isExportDefaultSpecifier(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeExportDefaultSpecifier) + declare export function assertExportDefaultSpecifier(node: ?Object, opts?: ?Object): void + declare export function isRecordExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeRecordExpression) + declare export function assertRecordExpression(node: ?Object, opts?: ?Object): void + declare export function isTupleExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTupleExpression) + declare export function assertTupleExpression(node: ?Object, opts?: ?Object): void + declare export function isDecimalLiteral(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeDecimalLiteral) + declare export function assertDecimalLiteral(node: ?Object, opts?: ?Object): void + declare export function isModuleExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeModuleExpression) + declare export function assertModuleExpression(node: ?Object, opts?: ?Object): void + declare export function isTopicReference(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTopicReference) + declare export function assertTopicReference(node: ?Object, opts?: ?Object): void + declare export function isPipelineTopicExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodePipelineTopicExpression) + declare export function assertPipelineTopicExpression(node: ?Object, opts?: ?Object): void + declare export function isPipelineBareFunction(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodePipelineBareFunction) + declare export function assertPipelineBareFunction(node: ?Object, opts?: ?Object): void + declare export function isPipelinePrimaryTopicReference(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodePipelinePrimaryTopicReference) + declare export function assertPipelinePrimaryTopicReference(node: ?Object, opts?: ?Object): void + declare export function isTSParameterProperty(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSParameterProperty) + declare export function assertTSParameterProperty(node: ?Object, opts?: ?Object): void + declare export function isTSDeclareFunction(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSDeclareFunction) + declare export function assertTSDeclareFunction(node: ?Object, opts?: ?Object): void + declare export function isTSDeclareMethod(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSDeclareMethod) + declare export function assertTSDeclareMethod(node: ?Object, opts?: ?Object): void + declare export function isTSQualifiedName(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSQualifiedName) + declare export function assertTSQualifiedName(node: ?Object, opts?: ?Object): void + declare export function isTSCallSignatureDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSCallSignatureDeclaration) + declare export function assertTSCallSignatureDeclaration(node: ?Object, opts?: ?Object): void + declare export function isTSConstructSignatureDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSConstructSignatureDeclaration) + declare export function assertTSConstructSignatureDeclaration(node: ?Object, opts?: ?Object): void + declare export function isTSPropertySignature(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSPropertySignature) + declare export function assertTSPropertySignature(node: ?Object, opts?: ?Object): void + declare export function isTSMethodSignature(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSMethodSignature) + declare export function assertTSMethodSignature(node: ?Object, opts?: ?Object): void + declare export function isTSIndexSignature(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSIndexSignature) + declare export function assertTSIndexSignature(node: ?Object, opts?: ?Object): void + declare export function isTSAnyKeyword(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSAnyKeyword) + declare export function assertTSAnyKeyword(node: ?Object, opts?: ?Object): void + declare export function isTSBooleanKeyword(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSBooleanKeyword) + declare export function assertTSBooleanKeyword(node: ?Object, opts?: ?Object): void + declare export function isTSBigIntKeyword(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSBigIntKeyword) + declare export function assertTSBigIntKeyword(node: ?Object, opts?: ?Object): void + declare export function isTSIntrinsicKeyword(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSIntrinsicKeyword) + declare export function assertTSIntrinsicKeyword(node: ?Object, opts?: ?Object): void + declare export function isTSNeverKeyword(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSNeverKeyword) + declare export function assertTSNeverKeyword(node: ?Object, opts?: ?Object): void + declare export function isTSNullKeyword(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSNullKeyword) + declare export function assertTSNullKeyword(node: ?Object, opts?: ?Object): void + declare export function isTSNumberKeyword(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSNumberKeyword) + declare export function assertTSNumberKeyword(node: ?Object, opts?: ?Object): void + declare export function isTSObjectKeyword(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSObjectKeyword) + declare export function assertTSObjectKeyword(node: ?Object, opts?: ?Object): void + declare export function isTSStringKeyword(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSStringKeyword) + declare export function assertTSStringKeyword(node: ?Object, opts?: ?Object): void + declare export function isTSSymbolKeyword(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSSymbolKeyword) + declare export function assertTSSymbolKeyword(node: ?Object, opts?: ?Object): void + declare export function isTSUndefinedKeyword(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSUndefinedKeyword) + declare export function assertTSUndefinedKeyword(node: ?Object, opts?: ?Object): void + declare export function isTSUnknownKeyword(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSUnknownKeyword) + declare export function assertTSUnknownKeyword(node: ?Object, opts?: ?Object): void + declare export function isTSVoidKeyword(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSVoidKeyword) + declare export function assertTSVoidKeyword(node: ?Object, opts?: ?Object): void + declare export function isTSThisType(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSThisType) + declare export function assertTSThisType(node: ?Object, opts?: ?Object): void + declare export function isTSFunctionType(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSFunctionType) + declare export function assertTSFunctionType(node: ?Object, opts?: ?Object): void + declare export function isTSConstructorType(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSConstructorType) + declare export function assertTSConstructorType(node: ?Object, opts?: ?Object): void + declare export function isTSTypeReference(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSTypeReference) + declare export function assertTSTypeReference(node: ?Object, opts?: ?Object): void + declare export function isTSTypePredicate(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSTypePredicate) + declare export function assertTSTypePredicate(node: ?Object, opts?: ?Object): void + declare export function isTSTypeQuery(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSTypeQuery) + declare export function assertTSTypeQuery(node: ?Object, opts?: ?Object): void + declare export function isTSTypeLiteral(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSTypeLiteral) + declare export function assertTSTypeLiteral(node: ?Object, opts?: ?Object): void + declare export function isTSArrayType(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSArrayType) + declare export function assertTSArrayType(node: ?Object, opts?: ?Object): void + declare export function isTSTupleType(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSTupleType) + declare export function assertTSTupleType(node: ?Object, opts?: ?Object): void + declare export function isTSOptionalType(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSOptionalType) + declare export function assertTSOptionalType(node: ?Object, opts?: ?Object): void + declare export function isTSRestType(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSRestType) + declare export function assertTSRestType(node: ?Object, opts?: ?Object): void + declare export function isTSNamedTupleMember(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSNamedTupleMember) + declare export function assertTSNamedTupleMember(node: ?Object, opts?: ?Object): void + declare export function isTSUnionType(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSUnionType) + declare export function assertTSUnionType(node: ?Object, opts?: ?Object): void + declare export function isTSIntersectionType(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSIntersectionType) + declare export function assertTSIntersectionType(node: ?Object, opts?: ?Object): void + declare export function isTSConditionalType(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSConditionalType) + declare export function assertTSConditionalType(node: ?Object, opts?: ?Object): void + declare export function isTSInferType(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSInferType) + declare export function assertTSInferType(node: ?Object, opts?: ?Object): void + declare export function isTSParenthesizedType(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSParenthesizedType) + declare export function assertTSParenthesizedType(node: ?Object, opts?: ?Object): void + declare export function isTSTypeOperator(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSTypeOperator) + declare export function assertTSTypeOperator(node: ?Object, opts?: ?Object): void + declare export function isTSIndexedAccessType(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSIndexedAccessType) + declare export function assertTSIndexedAccessType(node: ?Object, opts?: ?Object): void + declare export function isTSMappedType(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSMappedType) + declare export function assertTSMappedType(node: ?Object, opts?: ?Object): void + declare export function isTSLiteralType(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSLiteralType) + declare export function assertTSLiteralType(node: ?Object, opts?: ?Object): void + declare export function isTSExpressionWithTypeArguments(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSExpressionWithTypeArguments) + declare export function assertTSExpressionWithTypeArguments(node: ?Object, opts?: ?Object): void + declare export function isTSInterfaceDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSInterfaceDeclaration) + declare export function assertTSInterfaceDeclaration(node: ?Object, opts?: ?Object): void + declare export function isTSInterfaceBody(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSInterfaceBody) + declare export function assertTSInterfaceBody(node: ?Object, opts?: ?Object): void + declare export function isTSTypeAliasDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSTypeAliasDeclaration) + declare export function assertTSTypeAliasDeclaration(node: ?Object, opts?: ?Object): void + declare export function isTSAsExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSAsExpression) + declare export function assertTSAsExpression(node: ?Object, opts?: ?Object): void + declare export function isTSTypeAssertion(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSTypeAssertion) + declare export function assertTSTypeAssertion(node: ?Object, opts?: ?Object): void + declare export function isTSEnumDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSEnumDeclaration) + declare export function assertTSEnumDeclaration(node: ?Object, opts?: ?Object): void + declare export function isTSEnumMember(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSEnumMember) + declare export function assertTSEnumMember(node: ?Object, opts?: ?Object): void + declare export function isTSModuleDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSModuleDeclaration) + declare export function assertTSModuleDeclaration(node: ?Object, opts?: ?Object): void + declare export function isTSModuleBlock(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSModuleBlock) + declare export function assertTSModuleBlock(node: ?Object, opts?: ?Object): void + declare export function isTSImportType(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSImportType) + declare export function assertTSImportType(node: ?Object, opts?: ?Object): void + declare export function isTSImportEqualsDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSImportEqualsDeclaration) + declare export function assertTSImportEqualsDeclaration(node: ?Object, opts?: ?Object): void + declare export function isTSExternalModuleReference(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSExternalModuleReference) + declare export function assertTSExternalModuleReference(node: ?Object, opts?: ?Object): void + declare export function isTSNonNullExpression(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSNonNullExpression) + declare export function assertTSNonNullExpression(node: ?Object, opts?: ?Object): void + declare export function isTSExportAssignment(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSExportAssignment) + declare export function assertTSExportAssignment(node: ?Object, opts?: ?Object): void + declare export function isTSNamespaceExportDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSNamespaceExportDeclaration) + declare export function assertTSNamespaceExportDeclaration(node: ?Object, opts?: ?Object): void + declare export function isTSTypeAnnotation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSTypeAnnotation) + declare export function assertTSTypeAnnotation(node: ?Object, opts?: ?Object): void + declare export function isTSTypeParameterInstantiation(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSTypeParameterInstantiation) + declare export function assertTSTypeParameterInstantiation(node: ?Object, opts?: ?Object): void + declare export function isTSTypeParameterDeclaration(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSTypeParameterDeclaration) + declare export function assertTSTypeParameterDeclaration(node: ?Object, opts?: ?Object): void + declare export function isTSTypeParameter(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeTSTypeParameter) + declare export function assertTSTypeParameter(node: ?Object, opts?: ?Object): void + declare export function isStandardized(node: ?Object, opts?: ?Object): boolean + declare export function assertStandardized(node: ?Object, opts?: ?Object): void + declare export function isExpression(node: ?Object, opts?: ?Object): boolean + declare export function assertExpression(node: ?Object, opts?: ?Object): void + declare export function isBinary(node: ?Object, opts?: ?Object): boolean + declare export function assertBinary(node: ?Object, opts?: ?Object): void + declare export function isScopable(node: ?Object, opts?: ?Object): boolean + declare export function assertScopable(node: ?Object, opts?: ?Object): void + declare export function isBlockParent(node: ?Object, opts?: ?Object): boolean + declare export function assertBlockParent(node: ?Object, opts?: ?Object): void + declare export function isBlock(node: ?Object, opts?: ?Object): boolean + declare export function assertBlock(node: ?Object, opts?: ?Object): void + declare export function isStatement(node: ?Object, opts?: ?Object): boolean + declare export function assertStatement(node: ?Object, opts?: ?Object): void + declare export function isTerminatorless(node: ?Object, opts?: ?Object): boolean + declare export function assertTerminatorless(node: ?Object, opts?: ?Object): void + declare export function isCompletionStatement(node: ?Object, opts?: ?Object): boolean + declare export function assertCompletionStatement(node: ?Object, opts?: ?Object): void + declare export function isConditional(node: ?Object, opts?: ?Object): boolean + declare export function assertConditional(node: ?Object, opts?: ?Object): void + declare export function isLoop(node: ?Object, opts?: ?Object): boolean + declare export function assertLoop(node: ?Object, opts?: ?Object): void + declare export function isWhile(node: ?Object, opts?: ?Object): boolean + declare export function assertWhile(node: ?Object, opts?: ?Object): void + declare export function isExpressionWrapper(node: ?Object, opts?: ?Object): boolean + declare export function assertExpressionWrapper(node: ?Object, opts?: ?Object): void + declare export function isFor(node: ?Object, opts?: ?Object): boolean + declare export function assertFor(node: ?Object, opts?: ?Object): void + declare export function isForXStatement(node: ?Object, opts?: ?Object): boolean + declare export function assertForXStatement(node: ?Object, opts?: ?Object): void + declare export function isFunction(node: ?Object, opts?: ?Object): boolean + declare export function assertFunction(node: ?Object, opts?: ?Object): void + declare export function isFunctionParent(node: ?Object, opts?: ?Object): boolean + declare export function assertFunctionParent(node: ?Object, opts?: ?Object): void + declare export function isPureish(node: ?Object, opts?: ?Object): boolean + declare export function assertPureish(node: ?Object, opts?: ?Object): void + declare export function isDeclaration(node: ?Object, opts?: ?Object): boolean + declare export function assertDeclaration(node: ?Object, opts?: ?Object): void + declare export function isPatternLike(node: ?Object, opts?: ?Object): boolean + declare export function assertPatternLike(node: ?Object, opts?: ?Object): void + declare export function isLVal(node: ?Object, opts?: ?Object): boolean + declare export function assertLVal(node: ?Object, opts?: ?Object): void + declare export function isTSEntityName(node: ?Object, opts?: ?Object): boolean + declare export function assertTSEntityName(node: ?Object, opts?: ?Object): void + declare export function isLiteral(node: ?Object, opts?: ?Object): boolean + declare export function assertLiteral(node: ?Object, opts?: ?Object): void + declare export function isImmutable(node: ?Object, opts?: ?Object): boolean + declare export function assertImmutable(node: ?Object, opts?: ?Object): void + declare export function isUserWhitespacable(node: ?Object, opts?: ?Object): boolean + declare export function assertUserWhitespacable(node: ?Object, opts?: ?Object): void + declare export function isMethod(node: ?Object, opts?: ?Object): boolean + declare export function assertMethod(node: ?Object, opts?: ?Object): void + declare export function isObjectMember(node: ?Object, opts?: ?Object): boolean + declare export function assertObjectMember(node: ?Object, opts?: ?Object): void + declare export function isProperty(node: ?Object, opts?: ?Object): boolean + declare export function assertProperty(node: ?Object, opts?: ?Object): void + declare export function isUnaryLike(node: ?Object, opts?: ?Object): boolean + declare export function assertUnaryLike(node: ?Object, opts?: ?Object): void + declare export function isPattern(node: ?Object, opts?: ?Object): boolean + declare export function assertPattern(node: ?Object, opts?: ?Object): void + declare export function isClass(node: ?Object, opts?: ?Object): boolean + declare export function assertClass(node: ?Object, opts?: ?Object): void + declare export function isModuleDeclaration(node: ?Object, opts?: ?Object): boolean + declare export function assertModuleDeclaration(node: ?Object, opts?: ?Object): void + declare export function isExportDeclaration(node: ?Object, opts?: ?Object): boolean + declare export function assertExportDeclaration(node: ?Object, opts?: ?Object): void + declare export function isModuleSpecifier(node: ?Object, opts?: ?Object): boolean + declare export function assertModuleSpecifier(node: ?Object, opts?: ?Object): void + declare export function isAccessor(node: ?Object, opts?: ?Object): boolean + declare export function assertAccessor(node: ?Object, opts?: ?Object): void + declare export function isPrivate(node: ?Object, opts?: ?Object): boolean + declare export function assertPrivate(node: ?Object, opts?: ?Object): void + declare export function isFlow(node: ?Object, opts?: ?Object): boolean + declare export function assertFlow(node: ?Object, opts?: ?Object): void + declare export function isFlowType(node: ?Object, opts?: ?Object): boolean + declare export function assertFlowType(node: ?Object, opts?: ?Object): void + declare export function isFlowBaseAnnotation(node: ?Object, opts?: ?Object): boolean + declare export function assertFlowBaseAnnotation(node: ?Object, opts?: ?Object): void + declare export function isFlowDeclaration(node: ?Object, opts?: ?Object): boolean + declare export function assertFlowDeclaration(node: ?Object, opts?: ?Object): void + declare export function isFlowPredicate(node: ?Object, opts?: ?Object): boolean + declare export function assertFlowPredicate(node: ?Object, opts?: ?Object): void + declare export function isEnumBody(node: ?Object, opts?: ?Object): boolean + declare export function assertEnumBody(node: ?Object, opts?: ?Object): void + declare export function isEnumMember(node: ?Object, opts?: ?Object): boolean + declare export function assertEnumMember(node: ?Object, opts?: ?Object): void + declare export function isJSX(node: ?Object, opts?: ?Object): boolean + declare export function assertJSX(node: ?Object, opts?: ?Object): void + declare export function isMiscellaneous(node: ?Object, opts?: ?Object): boolean + declare export function assertMiscellaneous(node: ?Object, opts?: ?Object): void + declare export function isTypeScript(node: ?Object, opts?: ?Object): boolean + declare export function assertTypeScript(node: ?Object, opts?: ?Object): void + declare export function isTSTypeElement(node: ?Object, opts?: ?Object): boolean + declare export function assertTSTypeElement(node: ?Object, opts?: ?Object): void + declare export function isTSType(node: ?Object, opts?: ?Object): boolean + declare export function assertTSType(node: ?Object, opts?: ?Object): void + declare export function isTSBaseType(node: ?Object, opts?: ?Object): boolean + declare export function assertTSBaseType(node: ?Object, opts?: ?Object): void + declare export function isNumberLiteral(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeNumericLiteral) + declare export function assertNumberLiteral(node: ?Object, opts?: ?Object): void + declare export function isRegexLiteral(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeRegExpLiteral) + declare export function assertRegexLiteral(node: ?Object, opts?: ?Object): void + declare export function isRestProperty(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeRestElement) + declare export function assertRestProperty(node: ?Object, opts?: ?Object): void + declare export function isSpreadProperty(node: ?Object, opts?: ?Object): boolean %checks (node instanceof BabelNodeSpreadElement) + declare export function assertSpreadProperty(node: ?Object, opts?: ?Object): void + declare export var VISITOR_KEYS: { [type: string]: string[] } + declare export function assertNode(obj: any): void + declare export function createTypeAnnotationBasedOnTypeof(type: 'string' | 'number' | 'undefined' | 'boolean' | 'function' | 'object' | 'symbol'): BabelNodeTypeAnnotation + declare export function createUnionTypeAnnotation(types: Array): BabelNodeUnionTypeAnnotation + declare export function createFlowUnionType(types: Array): BabelNodeUnionTypeAnnotation + declare export function buildChildren(node: { children: Array }): Array + declare export function clone(n: T): T; + declare export function cloneDeep(n: T): T; + declare export function cloneDeepWithoutLoc(n: T): T; + declare export function cloneNode(n: T, deep?: boolean, withoutLoc?: boolean): T; + declare export function cloneWithoutLoc(n: T): T; + declare type CommentTypeShorthand = 'leading' | 'inner' | 'trailing' + declare export function addComment(node: T, type: CommentTypeShorthand, content: string, line?: boolean): T + declare export function addComments(node: T, type: CommentTypeShorthand, comments: Array): T + declare export function inheritInnerComments(node: BabelNode, parent: BabelNode): void + declare export function inheritLeadingComments(node: BabelNode, parent: BabelNode): void + declare export function inheritsComments(node: T, parent: BabelNode): void + declare export function inheritTrailingComments(node: BabelNode, parent: BabelNode): void + declare export function removeComments(node: T): T + declare export function ensureBlock(node: BabelNode, key: string): BabelNodeBlockStatement + declare export function toBindingIdentifierName(name?: ?string): string + declare export function toBlock(node: BabelNodeStatement | BabelNodeExpression, parent?: BabelNodeFunction | null): BabelNodeBlockStatement + declare export function toComputedKey(node: BabelNodeMethod | BabelNodeProperty, key?: BabelNodeExpression | BabelNodeIdentifier): BabelNodeExpression + declare export function toExpression(node: BabelNodeExpressionStatement | BabelNodeExpression | BabelNodeClass | BabelNodeFunction): BabelNodeExpression + declare export function toIdentifier(name?: ?string): string + declare export function toKeyAlias(node: BabelNodeMethod | BabelNodeProperty, key?: BabelNode): string + declare export function toStatement(node: BabelNodeStatement | BabelNodeClass | BabelNodeFunction | BabelNodeAssignmentExpression, ignore?: boolean): BabelNodeStatement | void + declare export function valueToNode(value: any): BabelNodeExpression + declare export function removeTypeDuplicates(types: Array): Array + declare export function appendToMemberExpression(member: BabelNodeMemberExpression, append: BabelNode, computed?: boolean): BabelNodeMemberExpression + declare export function inherits(child: T, parent: BabelNode | null | void): T + declare export function prependToMemberExpression(member: BabelNodeMemberExpression, prepend: BabelNodeExpression): BabelNodeMemberExpression + declare export function removeProperties(n: T, opts: ?{}): void; + declare export function removePropertiesDeep(n: T, opts: ?{}): T; + declare export var getBindingIdentifiers: { + (node: BabelNode, duplicates?: boolean, outerOnly?: boolean): { [key: string]: BabelNodeIdentifier | Array }, + keys: { [type: string]: string[] } + } + declare export function getOuterBindingIdentifiers(node: BabelNode, duplicates?: boolean): { [key: string]: BabelNodeIdentifier | Array } + declare type TraversalAncestors = Array<{ + node: BabelNode, + key: string, + index?: number, + }>; + declare type TraversalHandler = (BabelNode, TraversalAncestors, T) => void; + declare type TraversalHandlers = { + enter?: TraversalHandler, + exit?: TraversalHandler, + }; + declare export function traverse(n: BabelNode, TraversalHandler | TraversalHandlers, state?: T): void; + declare export function traverseFast(n: BabelNode, h: TraversalHandler, state?: T): void; + declare export function shallowEqual(actual: Object, expected: Object): boolean + declare export function buildMatchMemberExpression(match: string, allowPartial?: boolean): (?BabelNode) => boolean + declare export function is(type: string, n: BabelNode, opts: Object): boolean; + declare export function isBinding(node: BabelNode, parent: BabelNode, grandparent?: BabelNode): boolean + declare export function isBlockScoped(node: BabelNode): boolean + declare export function isImmutable(node: BabelNode): boolean + declare export function isLet(node: BabelNode): boolean + declare export function isNode(node: ?Object): boolean + declare export function isNodesEquivalent(a: any, b: any): boolean + declare export function isPlaceholderType(placeholderType: string, targetType: string): boolean + declare export function isReferenced(node: BabelNode, parent: BabelNode, grandparent?: BabelNode): boolean + declare export function isScope(node: BabelNode, parent: BabelNode): boolean + declare export function isSpecifierDefault(specifier: BabelNodeModuleSpecifier): boolean + declare export function isType(nodetype: ?string, targetType: string): boolean + declare export function isValidES3Identifier(name: string): boolean + declare export function isValidES3Identifier(name: string): boolean + declare export function isValidIdentifier(name: string): boolean + declare export function isVar(node: BabelNode): boolean + declare export function matchesPattern(node: ?BabelNode, match: string | Array, allowPartial?: boolean): boolean + declare export function validate(n: BabelNode, key: string, value: mixed): void; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js" new file mode 100644 index 0000000000000000000000000000000000000000..6a0ac93c5cf9b1f56a191d9de373e42615b162d2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/appendToMemberExpression.js" @@ -0,0 +1,15 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = appendToMemberExpression; + +var _generated = require("../builders/generated"); + +function appendToMemberExpression(member, append, computed = false) { + member.object = (0, _generated.memberExpression)(member.object, member.property, member.computed); + member.property = append; + member.computed = !!computed; + return member; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js" new file mode 100644 index 0000000000000000000000000000000000000000..de9464d16729be951332d320b635dd1949a7cdf7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/flow/removeTypeDuplicates.js" @@ -0,0 +1,78 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = removeTypeDuplicates; + +var _generated = require("../../validators/generated"); + +function getQualifiedName(node) { + return (0, _generated.isIdentifier)(node) ? node.name : `${node.id.name}.${getQualifiedName(node.qualification)}`; +} + +function removeTypeDuplicates(nodes) { + const generics = {}; + const bases = {}; + const typeGroups = new Set(); + const types = []; + + for (let i = 0; i < nodes.length; i++) { + const node = nodes[i]; + if (!node) continue; + + if (types.indexOf(node) >= 0) { + continue; + } + + if ((0, _generated.isAnyTypeAnnotation)(node)) { + return [node]; + } + + if ((0, _generated.isFlowBaseAnnotation)(node)) { + bases[node.type] = node; + continue; + } + + if ((0, _generated.isUnionTypeAnnotation)(node)) { + if (!typeGroups.has(node.types)) { + nodes = nodes.concat(node.types); + typeGroups.add(node.types); + } + + continue; + } + + if ((0, _generated.isGenericTypeAnnotation)(node)) { + const name = getQualifiedName(node.id); + + if (generics[name]) { + let existing = generics[name]; + + if (existing.typeParameters) { + if (node.typeParameters) { + existing.typeParameters.params = removeTypeDuplicates(existing.typeParameters.params.concat(node.typeParameters.params)); + } + } else { + existing = node.typeParameters; + } + } else { + generics[name] = node; + } + + continue; + } + + types.push(node); + } + + for (const type of Object.keys(bases)) { + types.push(bases[type]); + } + + for (const name of Object.keys(generics)) { + types.push(generics[name]); + } + + return types; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/inherits.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/inherits.js" new file mode 100644 index 0000000000000000000000000000000000000000..8701897d0e21cde8befd790f3c10efadf84a9ae4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/inherits.js" @@ -0,0 +1,31 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = inherits; + +var _constants = require("../constants"); + +var _inheritsComments = require("../comments/inheritsComments"); + +function inherits(child, parent) { + if (!child || !parent) return child; + + for (const key of _constants.INHERIT_KEYS.optional) { + if (child[key] == null) { + child[key] = parent[key]; + } + } + + for (const key of Object.keys(parent)) { + if (key[0] === "_" && key !== "__clone") child[key] = parent[key]; + } + + for (const key of _constants.INHERIT_KEYS.force) { + child[key] = parent[key]; + } + + (0, _inheritsComments.default)(child, parent); + return child; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js" new file mode 100644 index 0000000000000000000000000000000000000000..ee6de0ec332885464d71b1fece58bbee8844e69c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/prependToMemberExpression.js" @@ -0,0 +1,13 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = prependToMemberExpression; + +var _generated = require("../builders/generated"); + +function prependToMemberExpression(member, prepend) { + member.object = (0, _generated.memberExpression)(prepend, member.object); + return member; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/removeProperties.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/removeProperties.js" new file mode 100644 index 0000000000000000000000000000000000000000..f9cf8e6065daa1e88c747dd86c85b7ac6b1916b9 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/removeProperties.js" @@ -0,0 +1,30 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = removeProperties; + +var _constants = require("../constants"); + +const CLEAR_KEYS = ["tokens", "start", "end", "loc", "raw", "rawValue"]; + +const CLEAR_KEYS_PLUS_COMMENTS = _constants.COMMENT_KEYS.concat(["comments"]).concat(CLEAR_KEYS); + +function removeProperties(node, opts = {}) { + const map = opts.preserveComments ? CLEAR_KEYS : CLEAR_KEYS_PLUS_COMMENTS; + + for (const key of map) { + if (node[key] != null) node[key] = undefined; + } + + for (const key of Object.keys(node)) { + if (key[0] === "_" && node[key] != null) node[key] = undefined; + } + + const symbols = Object.getOwnPropertySymbols(node); + + for (const sym of symbols) { + node[sym] = null; + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js" new file mode 100644 index 0000000000000000000000000000000000000000..e36f7558934136324136e9a566ea8ab8be2ac97c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/removePropertiesDeep.js" @@ -0,0 +1,15 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = removePropertiesDeep; + +var _traverseFast = require("../traverse/traverseFast"); + +var _removeProperties = require("./removeProperties"); + +function removePropertiesDeep(tree, opts) { + (0, _traverseFast.default)(tree, _removeProperties.default, opts); + return tree; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js" new file mode 100644 index 0000000000000000000000000000000000000000..25defea7ec5a5faabd11a59634d53b96d879479d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/modifications/typescript/removeTypeDuplicates.js" @@ -0,0 +1,54 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = removeTypeDuplicates; + +var _generated = require("../../validators/generated"); + +function removeTypeDuplicates(nodes) { + const generics = {}; + const bases = {}; + const typeGroups = new Set(); + const types = []; + + for (let i = 0; i < nodes.length; i++) { + const node = nodes[i]; + if (!node) continue; + + if (types.indexOf(node) >= 0) { + continue; + } + + if ((0, _generated.isTSAnyKeyword)(node)) { + return [node]; + } + + if ((0, _generated.isTSBaseType)(node)) { + bases[node.type] = node; + continue; + } + + if ((0, _generated.isTSUnionType)(node)) { + if (!typeGroups.has(node.types)) { + nodes.push(...node.types); + typeGroups.add(node.types); + } + + continue; + } + + types.push(node); + } + + for (const type of Object.keys(bases)) { + types.push(bases[type]); + } + + for (const name of Object.keys(generics)) { + types.push(generics[name]); + } + + return types; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js" new file mode 100644 index 0000000000000000000000000000000000000000..4daaf8bf0fe6e70f7258816552d7a8f57344e317 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/retrievers/getBindingIdentifiers.js" @@ -0,0 +1,104 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = getBindingIdentifiers; + +var _generated = require("../validators/generated"); + +function getBindingIdentifiers(node, duplicates, outerOnly) { + let search = [].concat(node); + const ids = Object.create(null); + + while (search.length) { + const id = search.shift(); + if (!id) continue; + const keys = getBindingIdentifiers.keys[id.type]; + + if ((0, _generated.isIdentifier)(id)) { + if (duplicates) { + const _ids = ids[id.name] = ids[id.name] || []; + + _ids.push(id); + } else { + ids[id.name] = id; + } + + continue; + } + + if ((0, _generated.isExportDeclaration)(id) && !(0, _generated.isExportAllDeclaration)(id)) { + if ((0, _generated.isDeclaration)(id.declaration)) { + search.push(id.declaration); + } + + continue; + } + + if (outerOnly) { + if ((0, _generated.isFunctionDeclaration)(id)) { + search.push(id.id); + continue; + } + + if ((0, _generated.isFunctionExpression)(id)) { + continue; + } + } + + if (keys) { + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + + if (id[key]) { + search = search.concat(id[key]); + } + } + } + } + + return ids; +} + +getBindingIdentifiers.keys = { + DeclareClass: ["id"], + DeclareFunction: ["id"], + DeclareModule: ["id"], + DeclareVariable: ["id"], + DeclareInterface: ["id"], + DeclareTypeAlias: ["id"], + DeclareOpaqueType: ["id"], + InterfaceDeclaration: ["id"], + TypeAlias: ["id"], + OpaqueType: ["id"], + CatchClause: ["param"], + LabeledStatement: ["label"], + UnaryExpression: ["argument"], + AssignmentExpression: ["left"], + ImportSpecifier: ["local"], + ImportNamespaceSpecifier: ["local"], + ImportDefaultSpecifier: ["local"], + ImportDeclaration: ["specifiers"], + ExportSpecifier: ["exported"], + ExportNamespaceSpecifier: ["exported"], + ExportDefaultSpecifier: ["exported"], + FunctionDeclaration: ["id", "params"], + FunctionExpression: ["id", "params"], + ArrowFunctionExpression: ["params"], + ObjectMethod: ["params"], + ClassMethod: ["params"], + ClassPrivateMethod: ["params"], + ForInStatement: ["left"], + ForOfStatement: ["left"], + ClassDeclaration: ["id"], + ClassExpression: ["id"], + RestElement: ["argument"], + UpdateExpression: ["argument"], + ObjectProperty: ["value"], + AssignmentPattern: ["left"], + ArrayPattern: ["elements"], + ObjectPattern: ["properties"], + VariableDeclaration: ["declarations"], + VariableDeclarator: ["id"] +}; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js" new file mode 100644 index 0000000000000000000000000000000000000000..c27cffe544df769730eeb795741ef93c902e636a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/retrievers/getOuterBindingIdentifiers.js" @@ -0,0 +1,15 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _getBindingIdentifiers = require("./getBindingIdentifiers"); + +var _default = getOuterBindingIdentifiers; +exports.default = _default; + +function getOuterBindingIdentifiers(node, duplicates) { + return (0, _getBindingIdentifiers.default)(node, duplicates, true); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/traverse/traverse.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/traverse/traverse.js" new file mode 100644 index 0000000000000000000000000000000000000000..775aed1eede16c08c7c9a76b775d44d4274c990e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/traverse/traverse.js" @@ -0,0 +1,55 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = traverse; + +var _definitions = require("../definitions"); + +function traverse(node, handlers, state) { + if (typeof handlers === "function") { + handlers = { + enter: handlers + }; + } + + const { + enter, + exit + } = handlers; + traverseSimpleImpl(node, enter, exit, state, []); +} + +function traverseSimpleImpl(node, enter, exit, state, ancestors) { + const keys = _definitions.VISITOR_KEYS[node.type]; + if (!keys) return; + if (enter) enter(node, ancestors, state); + + for (const key of keys) { + const subNode = node[key]; + + if (Array.isArray(subNode)) { + for (let i = 0; i < subNode.length; i++) { + const child = subNode[i]; + if (!child) continue; + ancestors.push({ + node, + key, + index: i + }); + traverseSimpleImpl(child, enter, exit, state, ancestors); + ancestors.pop(); + } + } else if (subNode) { + ancestors.push({ + node, + key + }); + traverseSimpleImpl(subNode, enter, exit, state, ancestors); + ancestors.pop(); + } + } + + if (exit) exit(node, ancestors, state); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/traverse/traverseFast.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/traverse/traverseFast.js" new file mode 100644 index 0000000000000000000000000000000000000000..f038dd835ed9395d97bec4451a3f196dedd73179 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/traverse/traverseFast.js" @@ -0,0 +1,28 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = traverseFast; + +var _definitions = require("../definitions"); + +function traverseFast(node, enter, opts) { + if (!node) return; + const keys = _definitions.VISITOR_KEYS[node.type]; + if (!keys) return; + opts = opts || {}; + enter(node, opts); + + for (const key of keys) { + const subNode = node[key]; + + if (Array.isArray(subNode)) { + for (const node of subNode) { + traverseFast(node, enter, opts); + } + } else { + traverseFast(subNode, enter, opts); + } + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/utils/inherit.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/utils/inherit.js" new file mode 100644 index 0000000000000000000000000000000000000000..35f338124395a9ef0e2d7ce360b55ae4a2142b1d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/utils/inherit.js" @@ -0,0 +1,12 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = inherit; + +function inherit(key, child, parent) { + if (child && parent) { + child[key] = Array.from(new Set([].concat(child[key], parent[key]).filter(Boolean))); + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js" new file mode 100644 index 0000000000000000000000000000000000000000..f0ca13369be1088020d7bc2df720308ca6d5ee10 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/utils/react/cleanJSXElementLiteralChild.js" @@ -0,0 +1,47 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = cleanJSXElementLiteralChild; + +var _generated = require("../../builders/generated"); + +function cleanJSXElementLiteralChild(child, args) { + const lines = child.value.split(/\r\n|\n|\r/); + let lastNonEmptyLine = 0; + + for (let i = 0; i < lines.length; i++) { + if (lines[i].match(/[^ \t]/)) { + lastNonEmptyLine = i; + } + } + + let str = ""; + + for (let i = 0; i < lines.length; i++) { + const line = lines[i]; + const isFirstLine = i === 0; + const isLastLine = i === lines.length - 1; + const isLastNonEmptyLine = i === lastNonEmptyLine; + let trimmedLine = line.replace(/\t/g, " "); + + if (!isFirstLine) { + trimmedLine = trimmedLine.replace(/^[ ]+/, ""); + } + + if (!isLastLine) { + trimmedLine = trimmedLine.replace(/[ ]+$/, ""); + } + + if (trimmedLine) { + if (!isLastNonEmptyLine) { + trimmedLine += " "; + } + + str += trimmedLine; + } + } + + if (str) args.push((0, _generated.stringLiteral)(str)); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/utils/shallowEqual.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/utils/shallowEqual.js" new file mode 100644 index 0000000000000000000000000000000000000000..fae259e4fc53112553fcdf4e0a9babad19798562 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/utils/shallowEqual.js" @@ -0,0 +1,18 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = shallowEqual; + +function shallowEqual(actual, expected) { + const keys = Object.keys(expected); + + for (const key of keys) { + if (actual[key] !== expected[key]) { + return false; + } + } + + return true; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js" new file mode 100644 index 0000000000000000000000000000000000000000..c0064968ecdf972e4f1634b3aace750b4fd4b0fd --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/buildMatchMemberExpression.js" @@ -0,0 +1,13 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = buildMatchMemberExpression; + +var _matchesPattern = require("./matchesPattern"); + +function buildMatchMemberExpression(match, allowPartial) { + const parts = match.split("."); + return member => (0, _matchesPattern.default)(member, parts, allowPartial); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/generated/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/generated/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..f2956ec0120fffb247ba99fc6d5fcd78df1ced13 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/generated/index.js" @@ -0,0 +1,4811 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.isAccessor = isAccessor; +exports.isAnyTypeAnnotation = isAnyTypeAnnotation; +exports.isArgumentPlaceholder = isArgumentPlaceholder; +exports.isArrayExpression = isArrayExpression; +exports.isArrayPattern = isArrayPattern; +exports.isArrayTypeAnnotation = isArrayTypeAnnotation; +exports.isArrowFunctionExpression = isArrowFunctionExpression; +exports.isAssignmentExpression = isAssignmentExpression; +exports.isAssignmentPattern = isAssignmentPattern; +exports.isAwaitExpression = isAwaitExpression; +exports.isBigIntLiteral = isBigIntLiteral; +exports.isBinary = isBinary; +exports.isBinaryExpression = isBinaryExpression; +exports.isBindExpression = isBindExpression; +exports.isBlock = isBlock; +exports.isBlockParent = isBlockParent; +exports.isBlockStatement = isBlockStatement; +exports.isBooleanLiteral = isBooleanLiteral; +exports.isBooleanLiteralTypeAnnotation = isBooleanLiteralTypeAnnotation; +exports.isBooleanTypeAnnotation = isBooleanTypeAnnotation; +exports.isBreakStatement = isBreakStatement; +exports.isCallExpression = isCallExpression; +exports.isCatchClause = isCatchClause; +exports.isClass = isClass; +exports.isClassAccessorProperty = isClassAccessorProperty; +exports.isClassBody = isClassBody; +exports.isClassDeclaration = isClassDeclaration; +exports.isClassExpression = isClassExpression; +exports.isClassImplements = isClassImplements; +exports.isClassMethod = isClassMethod; +exports.isClassPrivateMethod = isClassPrivateMethod; +exports.isClassPrivateProperty = isClassPrivateProperty; +exports.isClassProperty = isClassProperty; +exports.isCompletionStatement = isCompletionStatement; +exports.isConditional = isConditional; +exports.isConditionalExpression = isConditionalExpression; +exports.isContinueStatement = isContinueStatement; +exports.isDebuggerStatement = isDebuggerStatement; +exports.isDecimalLiteral = isDecimalLiteral; +exports.isDeclaration = isDeclaration; +exports.isDeclareClass = isDeclareClass; +exports.isDeclareExportAllDeclaration = isDeclareExportAllDeclaration; +exports.isDeclareExportDeclaration = isDeclareExportDeclaration; +exports.isDeclareFunction = isDeclareFunction; +exports.isDeclareInterface = isDeclareInterface; +exports.isDeclareModule = isDeclareModule; +exports.isDeclareModuleExports = isDeclareModuleExports; +exports.isDeclareOpaqueType = isDeclareOpaqueType; +exports.isDeclareTypeAlias = isDeclareTypeAlias; +exports.isDeclareVariable = isDeclareVariable; +exports.isDeclaredPredicate = isDeclaredPredicate; +exports.isDecorator = isDecorator; +exports.isDirective = isDirective; +exports.isDirectiveLiteral = isDirectiveLiteral; +exports.isDoExpression = isDoExpression; +exports.isDoWhileStatement = isDoWhileStatement; +exports.isEmptyStatement = isEmptyStatement; +exports.isEmptyTypeAnnotation = isEmptyTypeAnnotation; +exports.isEnumBody = isEnumBody; +exports.isEnumBooleanBody = isEnumBooleanBody; +exports.isEnumBooleanMember = isEnumBooleanMember; +exports.isEnumDeclaration = isEnumDeclaration; +exports.isEnumDefaultedMember = isEnumDefaultedMember; +exports.isEnumMember = isEnumMember; +exports.isEnumNumberBody = isEnumNumberBody; +exports.isEnumNumberMember = isEnumNumberMember; +exports.isEnumStringBody = isEnumStringBody; +exports.isEnumStringMember = isEnumStringMember; +exports.isEnumSymbolBody = isEnumSymbolBody; +exports.isExistsTypeAnnotation = isExistsTypeAnnotation; +exports.isExportAllDeclaration = isExportAllDeclaration; +exports.isExportDeclaration = isExportDeclaration; +exports.isExportDefaultDeclaration = isExportDefaultDeclaration; +exports.isExportDefaultSpecifier = isExportDefaultSpecifier; +exports.isExportNamedDeclaration = isExportNamedDeclaration; +exports.isExportNamespaceSpecifier = isExportNamespaceSpecifier; +exports.isExportSpecifier = isExportSpecifier; +exports.isExpression = isExpression; +exports.isExpressionStatement = isExpressionStatement; +exports.isExpressionWrapper = isExpressionWrapper; +exports.isFile = isFile; +exports.isFlow = isFlow; +exports.isFlowBaseAnnotation = isFlowBaseAnnotation; +exports.isFlowDeclaration = isFlowDeclaration; +exports.isFlowPredicate = isFlowPredicate; +exports.isFlowType = isFlowType; +exports.isFor = isFor; +exports.isForInStatement = isForInStatement; +exports.isForOfStatement = isForOfStatement; +exports.isForStatement = isForStatement; +exports.isForXStatement = isForXStatement; +exports.isFunction = isFunction; +exports.isFunctionDeclaration = isFunctionDeclaration; +exports.isFunctionExpression = isFunctionExpression; +exports.isFunctionParent = isFunctionParent; +exports.isFunctionTypeAnnotation = isFunctionTypeAnnotation; +exports.isFunctionTypeParam = isFunctionTypeParam; +exports.isGenericTypeAnnotation = isGenericTypeAnnotation; +exports.isIdentifier = isIdentifier; +exports.isIfStatement = isIfStatement; +exports.isImmutable = isImmutable; +exports.isImport = isImport; +exports.isImportAttribute = isImportAttribute; +exports.isImportDeclaration = isImportDeclaration; +exports.isImportDefaultSpecifier = isImportDefaultSpecifier; +exports.isImportNamespaceSpecifier = isImportNamespaceSpecifier; +exports.isImportSpecifier = isImportSpecifier; +exports.isIndexedAccessType = isIndexedAccessType; +exports.isInferredPredicate = isInferredPredicate; +exports.isInterfaceDeclaration = isInterfaceDeclaration; +exports.isInterfaceExtends = isInterfaceExtends; +exports.isInterfaceTypeAnnotation = isInterfaceTypeAnnotation; +exports.isInterpreterDirective = isInterpreterDirective; +exports.isIntersectionTypeAnnotation = isIntersectionTypeAnnotation; +exports.isJSX = isJSX; +exports.isJSXAttribute = isJSXAttribute; +exports.isJSXClosingElement = isJSXClosingElement; +exports.isJSXClosingFragment = isJSXClosingFragment; +exports.isJSXElement = isJSXElement; +exports.isJSXEmptyExpression = isJSXEmptyExpression; +exports.isJSXExpressionContainer = isJSXExpressionContainer; +exports.isJSXFragment = isJSXFragment; +exports.isJSXIdentifier = isJSXIdentifier; +exports.isJSXMemberExpression = isJSXMemberExpression; +exports.isJSXNamespacedName = isJSXNamespacedName; +exports.isJSXOpeningElement = isJSXOpeningElement; +exports.isJSXOpeningFragment = isJSXOpeningFragment; +exports.isJSXSpreadAttribute = isJSXSpreadAttribute; +exports.isJSXSpreadChild = isJSXSpreadChild; +exports.isJSXText = isJSXText; +exports.isLVal = isLVal; +exports.isLabeledStatement = isLabeledStatement; +exports.isLiteral = isLiteral; +exports.isLogicalExpression = isLogicalExpression; +exports.isLoop = isLoop; +exports.isMemberExpression = isMemberExpression; +exports.isMetaProperty = isMetaProperty; +exports.isMethod = isMethod; +exports.isMiscellaneous = isMiscellaneous; +exports.isMixedTypeAnnotation = isMixedTypeAnnotation; +exports.isModuleDeclaration = isModuleDeclaration; +exports.isModuleExpression = isModuleExpression; +exports.isModuleSpecifier = isModuleSpecifier; +exports.isNewExpression = isNewExpression; +exports.isNoop = isNoop; +exports.isNullLiteral = isNullLiteral; +exports.isNullLiteralTypeAnnotation = isNullLiteralTypeAnnotation; +exports.isNullableTypeAnnotation = isNullableTypeAnnotation; +exports.isNumberLiteral = isNumberLiteral; +exports.isNumberLiteralTypeAnnotation = isNumberLiteralTypeAnnotation; +exports.isNumberTypeAnnotation = isNumberTypeAnnotation; +exports.isNumericLiteral = isNumericLiteral; +exports.isObjectExpression = isObjectExpression; +exports.isObjectMember = isObjectMember; +exports.isObjectMethod = isObjectMethod; +exports.isObjectPattern = isObjectPattern; +exports.isObjectProperty = isObjectProperty; +exports.isObjectTypeAnnotation = isObjectTypeAnnotation; +exports.isObjectTypeCallProperty = isObjectTypeCallProperty; +exports.isObjectTypeIndexer = isObjectTypeIndexer; +exports.isObjectTypeInternalSlot = isObjectTypeInternalSlot; +exports.isObjectTypeProperty = isObjectTypeProperty; +exports.isObjectTypeSpreadProperty = isObjectTypeSpreadProperty; +exports.isOpaqueType = isOpaqueType; +exports.isOptionalCallExpression = isOptionalCallExpression; +exports.isOptionalIndexedAccessType = isOptionalIndexedAccessType; +exports.isOptionalMemberExpression = isOptionalMemberExpression; +exports.isParenthesizedExpression = isParenthesizedExpression; +exports.isPattern = isPattern; +exports.isPatternLike = isPatternLike; +exports.isPipelineBareFunction = isPipelineBareFunction; +exports.isPipelinePrimaryTopicReference = isPipelinePrimaryTopicReference; +exports.isPipelineTopicExpression = isPipelineTopicExpression; +exports.isPlaceholder = isPlaceholder; +exports.isPrivate = isPrivate; +exports.isPrivateName = isPrivateName; +exports.isProgram = isProgram; +exports.isProperty = isProperty; +exports.isPureish = isPureish; +exports.isQualifiedTypeIdentifier = isQualifiedTypeIdentifier; +exports.isRecordExpression = isRecordExpression; +exports.isRegExpLiteral = isRegExpLiteral; +exports.isRegexLiteral = isRegexLiteral; +exports.isRestElement = isRestElement; +exports.isRestProperty = isRestProperty; +exports.isReturnStatement = isReturnStatement; +exports.isScopable = isScopable; +exports.isSequenceExpression = isSequenceExpression; +exports.isSpreadElement = isSpreadElement; +exports.isSpreadProperty = isSpreadProperty; +exports.isStandardized = isStandardized; +exports.isStatement = isStatement; +exports.isStaticBlock = isStaticBlock; +exports.isStringLiteral = isStringLiteral; +exports.isStringLiteralTypeAnnotation = isStringLiteralTypeAnnotation; +exports.isStringTypeAnnotation = isStringTypeAnnotation; +exports.isSuper = isSuper; +exports.isSwitchCase = isSwitchCase; +exports.isSwitchStatement = isSwitchStatement; +exports.isSymbolTypeAnnotation = isSymbolTypeAnnotation; +exports.isTSAnyKeyword = isTSAnyKeyword; +exports.isTSArrayType = isTSArrayType; +exports.isTSAsExpression = isTSAsExpression; +exports.isTSBaseType = isTSBaseType; +exports.isTSBigIntKeyword = isTSBigIntKeyword; +exports.isTSBooleanKeyword = isTSBooleanKeyword; +exports.isTSCallSignatureDeclaration = isTSCallSignatureDeclaration; +exports.isTSConditionalType = isTSConditionalType; +exports.isTSConstructSignatureDeclaration = isTSConstructSignatureDeclaration; +exports.isTSConstructorType = isTSConstructorType; +exports.isTSDeclareFunction = isTSDeclareFunction; +exports.isTSDeclareMethod = isTSDeclareMethod; +exports.isTSEntityName = isTSEntityName; +exports.isTSEnumDeclaration = isTSEnumDeclaration; +exports.isTSEnumMember = isTSEnumMember; +exports.isTSExportAssignment = isTSExportAssignment; +exports.isTSExpressionWithTypeArguments = isTSExpressionWithTypeArguments; +exports.isTSExternalModuleReference = isTSExternalModuleReference; +exports.isTSFunctionType = isTSFunctionType; +exports.isTSImportEqualsDeclaration = isTSImportEqualsDeclaration; +exports.isTSImportType = isTSImportType; +exports.isTSIndexSignature = isTSIndexSignature; +exports.isTSIndexedAccessType = isTSIndexedAccessType; +exports.isTSInferType = isTSInferType; +exports.isTSInterfaceBody = isTSInterfaceBody; +exports.isTSInterfaceDeclaration = isTSInterfaceDeclaration; +exports.isTSIntersectionType = isTSIntersectionType; +exports.isTSIntrinsicKeyword = isTSIntrinsicKeyword; +exports.isTSLiteralType = isTSLiteralType; +exports.isTSMappedType = isTSMappedType; +exports.isTSMethodSignature = isTSMethodSignature; +exports.isTSModuleBlock = isTSModuleBlock; +exports.isTSModuleDeclaration = isTSModuleDeclaration; +exports.isTSNamedTupleMember = isTSNamedTupleMember; +exports.isTSNamespaceExportDeclaration = isTSNamespaceExportDeclaration; +exports.isTSNeverKeyword = isTSNeverKeyword; +exports.isTSNonNullExpression = isTSNonNullExpression; +exports.isTSNullKeyword = isTSNullKeyword; +exports.isTSNumberKeyword = isTSNumberKeyword; +exports.isTSObjectKeyword = isTSObjectKeyword; +exports.isTSOptionalType = isTSOptionalType; +exports.isTSParameterProperty = isTSParameterProperty; +exports.isTSParenthesizedType = isTSParenthesizedType; +exports.isTSPropertySignature = isTSPropertySignature; +exports.isTSQualifiedName = isTSQualifiedName; +exports.isTSRestType = isTSRestType; +exports.isTSStringKeyword = isTSStringKeyword; +exports.isTSSymbolKeyword = isTSSymbolKeyword; +exports.isTSThisType = isTSThisType; +exports.isTSTupleType = isTSTupleType; +exports.isTSType = isTSType; +exports.isTSTypeAliasDeclaration = isTSTypeAliasDeclaration; +exports.isTSTypeAnnotation = isTSTypeAnnotation; +exports.isTSTypeAssertion = isTSTypeAssertion; +exports.isTSTypeElement = isTSTypeElement; +exports.isTSTypeLiteral = isTSTypeLiteral; +exports.isTSTypeOperator = isTSTypeOperator; +exports.isTSTypeParameter = isTSTypeParameter; +exports.isTSTypeParameterDeclaration = isTSTypeParameterDeclaration; +exports.isTSTypeParameterInstantiation = isTSTypeParameterInstantiation; +exports.isTSTypePredicate = isTSTypePredicate; +exports.isTSTypeQuery = isTSTypeQuery; +exports.isTSTypeReference = isTSTypeReference; +exports.isTSUndefinedKeyword = isTSUndefinedKeyword; +exports.isTSUnionType = isTSUnionType; +exports.isTSUnknownKeyword = isTSUnknownKeyword; +exports.isTSVoidKeyword = isTSVoidKeyword; +exports.isTaggedTemplateExpression = isTaggedTemplateExpression; +exports.isTemplateElement = isTemplateElement; +exports.isTemplateLiteral = isTemplateLiteral; +exports.isTerminatorless = isTerminatorless; +exports.isThisExpression = isThisExpression; +exports.isThisTypeAnnotation = isThisTypeAnnotation; +exports.isThrowStatement = isThrowStatement; +exports.isTopicReference = isTopicReference; +exports.isTryStatement = isTryStatement; +exports.isTupleExpression = isTupleExpression; +exports.isTupleTypeAnnotation = isTupleTypeAnnotation; +exports.isTypeAlias = isTypeAlias; +exports.isTypeAnnotation = isTypeAnnotation; +exports.isTypeCastExpression = isTypeCastExpression; +exports.isTypeParameter = isTypeParameter; +exports.isTypeParameterDeclaration = isTypeParameterDeclaration; +exports.isTypeParameterInstantiation = isTypeParameterInstantiation; +exports.isTypeScript = isTypeScript; +exports.isTypeofTypeAnnotation = isTypeofTypeAnnotation; +exports.isUnaryExpression = isUnaryExpression; +exports.isUnaryLike = isUnaryLike; +exports.isUnionTypeAnnotation = isUnionTypeAnnotation; +exports.isUpdateExpression = isUpdateExpression; +exports.isUserWhitespacable = isUserWhitespacable; +exports.isV8IntrinsicIdentifier = isV8IntrinsicIdentifier; +exports.isVariableDeclaration = isVariableDeclaration; +exports.isVariableDeclarator = isVariableDeclarator; +exports.isVariance = isVariance; +exports.isVoidTypeAnnotation = isVoidTypeAnnotation; +exports.isWhile = isWhile; +exports.isWhileStatement = isWhileStatement; +exports.isWithStatement = isWithStatement; +exports.isYieldExpression = isYieldExpression; + +var _shallowEqual = require("../../utils/shallowEqual"); + +function isArrayExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ArrayExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isAssignmentExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "AssignmentExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isBinaryExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "BinaryExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isInterpreterDirective(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "InterpreterDirective") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isDirective(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "Directive") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isDirectiveLiteral(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "DirectiveLiteral") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isBlockStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "BlockStatement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isBreakStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "BreakStatement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isCallExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "CallExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isCatchClause(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "CatchClause") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isConditionalExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ConditionalExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isContinueStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ContinueStatement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isDebuggerStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "DebuggerStatement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isDoWhileStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "DoWhileStatement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isEmptyStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "EmptyStatement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isExpressionStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ExpressionStatement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isFile(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "File") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isForInStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ForInStatement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isForStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ForStatement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isFunctionDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "FunctionDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isFunctionExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "FunctionExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isIdentifier(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "Identifier") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isIfStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "IfStatement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isLabeledStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "LabeledStatement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isStringLiteral(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "StringLiteral") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isNumericLiteral(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "NumericLiteral") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isNullLiteral(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "NullLiteral") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isBooleanLiteral(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "BooleanLiteral") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isRegExpLiteral(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "RegExpLiteral") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isLogicalExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "LogicalExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isMemberExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "MemberExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isNewExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "NewExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isProgram(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "Program") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isObjectExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ObjectExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isObjectMethod(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ObjectMethod") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isObjectProperty(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ObjectProperty") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isRestElement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "RestElement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isReturnStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ReturnStatement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isSequenceExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "SequenceExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isParenthesizedExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ParenthesizedExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isSwitchCase(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "SwitchCase") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isSwitchStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "SwitchStatement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isThisExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ThisExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isThrowStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ThrowStatement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTryStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TryStatement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isUnaryExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "UnaryExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isUpdateExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "UpdateExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isVariableDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "VariableDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isVariableDeclarator(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "VariableDeclarator") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isWhileStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "WhileStatement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isWithStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "WithStatement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isAssignmentPattern(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "AssignmentPattern") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isArrayPattern(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ArrayPattern") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isArrowFunctionExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ArrowFunctionExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isClassBody(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ClassBody") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isClassExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ClassExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isClassDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ClassDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isExportAllDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ExportAllDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isExportDefaultDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ExportDefaultDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isExportNamedDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ExportNamedDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isExportSpecifier(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ExportSpecifier") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isForOfStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ForOfStatement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isImportDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ImportDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isImportDefaultSpecifier(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ImportDefaultSpecifier") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isImportNamespaceSpecifier(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ImportNamespaceSpecifier") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isImportSpecifier(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ImportSpecifier") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isMetaProperty(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "MetaProperty") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isClassMethod(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ClassMethod") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isObjectPattern(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ObjectPattern") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isSpreadElement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "SpreadElement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isSuper(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "Super") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTaggedTemplateExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TaggedTemplateExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTemplateElement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TemplateElement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTemplateLiteral(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TemplateLiteral") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isYieldExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "YieldExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isAwaitExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "AwaitExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isImport(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "Import") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isBigIntLiteral(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "BigIntLiteral") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isExportNamespaceSpecifier(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ExportNamespaceSpecifier") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isOptionalMemberExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "OptionalMemberExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isOptionalCallExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "OptionalCallExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isClassProperty(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ClassProperty") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isClassAccessorProperty(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ClassAccessorProperty") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isClassPrivateProperty(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ClassPrivateProperty") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isClassPrivateMethod(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ClassPrivateMethod") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isPrivateName(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "PrivateName") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isStaticBlock(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "StaticBlock") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isAnyTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "AnyTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isArrayTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ArrayTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isBooleanTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "BooleanTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isBooleanLiteralTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "BooleanLiteralTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isNullLiteralTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "NullLiteralTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isClassImplements(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ClassImplements") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isDeclareClass(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "DeclareClass") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isDeclareFunction(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "DeclareFunction") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isDeclareInterface(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "DeclareInterface") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isDeclareModule(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "DeclareModule") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isDeclareModuleExports(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "DeclareModuleExports") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isDeclareTypeAlias(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "DeclareTypeAlias") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isDeclareOpaqueType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "DeclareOpaqueType") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isDeclareVariable(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "DeclareVariable") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isDeclareExportDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "DeclareExportDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isDeclareExportAllDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "DeclareExportAllDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isDeclaredPredicate(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "DeclaredPredicate") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isExistsTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ExistsTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isFunctionTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "FunctionTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isFunctionTypeParam(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "FunctionTypeParam") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isGenericTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "GenericTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isInferredPredicate(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "InferredPredicate") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isInterfaceExtends(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "InterfaceExtends") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isInterfaceDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "InterfaceDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isInterfaceTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "InterfaceTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isIntersectionTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "IntersectionTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isMixedTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "MixedTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isEmptyTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "EmptyTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isNullableTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "NullableTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isNumberLiteralTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "NumberLiteralTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isNumberTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "NumberTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isObjectTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ObjectTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isObjectTypeInternalSlot(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ObjectTypeInternalSlot") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isObjectTypeCallProperty(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ObjectTypeCallProperty") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isObjectTypeIndexer(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ObjectTypeIndexer") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isObjectTypeProperty(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ObjectTypeProperty") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isObjectTypeSpreadProperty(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ObjectTypeSpreadProperty") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isOpaqueType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "OpaqueType") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isQualifiedTypeIdentifier(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "QualifiedTypeIdentifier") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isStringLiteralTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "StringLiteralTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isStringTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "StringTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isSymbolTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "SymbolTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isThisTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ThisTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTupleTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TupleTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTypeofTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TypeofTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTypeAlias(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TypeAlias") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTypeCastExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TypeCastExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTypeParameter(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TypeParameter") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTypeParameterDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TypeParameterDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTypeParameterInstantiation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TypeParameterInstantiation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isUnionTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "UnionTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isVariance(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "Variance") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isVoidTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "VoidTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isEnumDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "EnumDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isEnumBooleanBody(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "EnumBooleanBody") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isEnumNumberBody(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "EnumNumberBody") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isEnumStringBody(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "EnumStringBody") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isEnumSymbolBody(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "EnumSymbolBody") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isEnumBooleanMember(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "EnumBooleanMember") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isEnumNumberMember(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "EnumNumberMember") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isEnumStringMember(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "EnumStringMember") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isEnumDefaultedMember(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "EnumDefaultedMember") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isIndexedAccessType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "IndexedAccessType") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isOptionalIndexedAccessType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "OptionalIndexedAccessType") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isJSXAttribute(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "JSXAttribute") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isJSXClosingElement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "JSXClosingElement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isJSXElement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "JSXElement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isJSXEmptyExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "JSXEmptyExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isJSXExpressionContainer(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "JSXExpressionContainer") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isJSXSpreadChild(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "JSXSpreadChild") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isJSXIdentifier(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "JSXIdentifier") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isJSXMemberExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "JSXMemberExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isJSXNamespacedName(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "JSXNamespacedName") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isJSXOpeningElement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "JSXOpeningElement") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isJSXSpreadAttribute(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "JSXSpreadAttribute") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isJSXText(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "JSXText") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isJSXFragment(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "JSXFragment") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isJSXOpeningFragment(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "JSXOpeningFragment") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isJSXClosingFragment(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "JSXClosingFragment") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isNoop(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "Noop") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isPlaceholder(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "Placeholder") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isV8IntrinsicIdentifier(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "V8IntrinsicIdentifier") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isArgumentPlaceholder(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ArgumentPlaceholder") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isBindExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "BindExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isImportAttribute(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ImportAttribute") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isDecorator(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "Decorator") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isDoExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "DoExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isExportDefaultSpecifier(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ExportDefaultSpecifier") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isRecordExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "RecordExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTupleExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TupleExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isDecimalLiteral(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "DecimalLiteral") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isModuleExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "ModuleExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTopicReference(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TopicReference") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isPipelineTopicExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "PipelineTopicExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isPipelineBareFunction(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "PipelineBareFunction") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isPipelinePrimaryTopicReference(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "PipelinePrimaryTopicReference") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSParameterProperty(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSParameterProperty") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSDeclareFunction(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSDeclareFunction") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSDeclareMethod(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSDeclareMethod") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSQualifiedName(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSQualifiedName") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSCallSignatureDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSCallSignatureDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSConstructSignatureDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSConstructSignatureDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSPropertySignature(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSPropertySignature") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSMethodSignature(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSMethodSignature") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSIndexSignature(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSIndexSignature") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSAnyKeyword(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSAnyKeyword") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSBooleanKeyword(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSBooleanKeyword") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSBigIntKeyword(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSBigIntKeyword") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSIntrinsicKeyword(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSIntrinsicKeyword") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSNeverKeyword(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSNeverKeyword") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSNullKeyword(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSNullKeyword") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSNumberKeyword(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSNumberKeyword") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSObjectKeyword(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSObjectKeyword") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSStringKeyword(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSStringKeyword") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSSymbolKeyword(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSSymbolKeyword") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSUndefinedKeyword(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSUndefinedKeyword") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSUnknownKeyword(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSUnknownKeyword") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSVoidKeyword(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSVoidKeyword") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSThisType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSThisType") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSFunctionType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSFunctionType") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSConstructorType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSConstructorType") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSTypeReference(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSTypeReference") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSTypePredicate(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSTypePredicate") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSTypeQuery(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSTypeQuery") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSTypeLiteral(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSTypeLiteral") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSArrayType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSArrayType") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSTupleType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSTupleType") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSOptionalType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSOptionalType") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSRestType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSRestType") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSNamedTupleMember(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSNamedTupleMember") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSUnionType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSUnionType") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSIntersectionType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSIntersectionType") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSConditionalType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSConditionalType") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSInferType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSInferType") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSParenthesizedType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSParenthesizedType") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSTypeOperator(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSTypeOperator") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSIndexedAccessType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSIndexedAccessType") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSMappedType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSMappedType") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSLiteralType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSLiteralType") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSExpressionWithTypeArguments(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSExpressionWithTypeArguments") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSInterfaceDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSInterfaceDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSInterfaceBody(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSInterfaceBody") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSTypeAliasDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSTypeAliasDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSAsExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSAsExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSTypeAssertion(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSTypeAssertion") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSEnumDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSEnumDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSEnumMember(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSEnumMember") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSModuleDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSModuleDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSModuleBlock(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSModuleBlock") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSImportType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSImportType") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSImportEqualsDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSImportEqualsDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSExternalModuleReference(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSExternalModuleReference") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSNonNullExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSNonNullExpression") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSExportAssignment(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSExportAssignment") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSNamespaceExportDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSNamespaceExportDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSTypeAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSTypeAnnotation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSTypeParameterInstantiation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSTypeParameterInstantiation") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSTypeParameterDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSTypeParameterDeclaration") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSTypeParameter(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "TSTypeParameter") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isStandardized(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("ArrayExpression" === nodeType || "AssignmentExpression" === nodeType || "BinaryExpression" === nodeType || "InterpreterDirective" === nodeType || "Directive" === nodeType || "DirectiveLiteral" === nodeType || "BlockStatement" === nodeType || "BreakStatement" === nodeType || "CallExpression" === nodeType || "CatchClause" === nodeType || "ConditionalExpression" === nodeType || "ContinueStatement" === nodeType || "DebuggerStatement" === nodeType || "DoWhileStatement" === nodeType || "EmptyStatement" === nodeType || "ExpressionStatement" === nodeType || "File" === nodeType || "ForInStatement" === nodeType || "ForStatement" === nodeType || "FunctionDeclaration" === nodeType || "FunctionExpression" === nodeType || "Identifier" === nodeType || "IfStatement" === nodeType || "LabeledStatement" === nodeType || "StringLiteral" === nodeType || "NumericLiteral" === nodeType || "NullLiteral" === nodeType || "BooleanLiteral" === nodeType || "RegExpLiteral" === nodeType || "LogicalExpression" === nodeType || "MemberExpression" === nodeType || "NewExpression" === nodeType || "Program" === nodeType || "ObjectExpression" === nodeType || "ObjectMethod" === nodeType || "ObjectProperty" === nodeType || "RestElement" === nodeType || "ReturnStatement" === nodeType || "SequenceExpression" === nodeType || "ParenthesizedExpression" === nodeType || "SwitchCase" === nodeType || "SwitchStatement" === nodeType || "ThisExpression" === nodeType || "ThrowStatement" === nodeType || "TryStatement" === nodeType || "UnaryExpression" === nodeType || "UpdateExpression" === nodeType || "VariableDeclaration" === nodeType || "VariableDeclarator" === nodeType || "WhileStatement" === nodeType || "WithStatement" === nodeType || "AssignmentPattern" === nodeType || "ArrayPattern" === nodeType || "ArrowFunctionExpression" === nodeType || "ClassBody" === nodeType || "ClassExpression" === nodeType || "ClassDeclaration" === nodeType || "ExportAllDeclaration" === nodeType || "ExportDefaultDeclaration" === nodeType || "ExportNamedDeclaration" === nodeType || "ExportSpecifier" === nodeType || "ForOfStatement" === nodeType || "ImportDeclaration" === nodeType || "ImportDefaultSpecifier" === nodeType || "ImportNamespaceSpecifier" === nodeType || "ImportSpecifier" === nodeType || "MetaProperty" === nodeType || "ClassMethod" === nodeType || "ObjectPattern" === nodeType || "SpreadElement" === nodeType || "Super" === nodeType || "TaggedTemplateExpression" === nodeType || "TemplateElement" === nodeType || "TemplateLiteral" === nodeType || "YieldExpression" === nodeType || "AwaitExpression" === nodeType || "Import" === nodeType || "BigIntLiteral" === nodeType || "ExportNamespaceSpecifier" === nodeType || "OptionalMemberExpression" === nodeType || "OptionalCallExpression" === nodeType || "ClassProperty" === nodeType || "ClassAccessorProperty" === nodeType || "ClassPrivateProperty" === nodeType || "ClassPrivateMethod" === nodeType || "PrivateName" === nodeType || "StaticBlock" === nodeType || nodeType === "Placeholder" && ("Identifier" === node.expectedNode || "StringLiteral" === node.expectedNode || "BlockStatement" === node.expectedNode || "ClassBody" === node.expectedNode)) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isExpression(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("ArrayExpression" === nodeType || "AssignmentExpression" === nodeType || "BinaryExpression" === nodeType || "CallExpression" === nodeType || "ConditionalExpression" === nodeType || "FunctionExpression" === nodeType || "Identifier" === nodeType || "StringLiteral" === nodeType || "NumericLiteral" === nodeType || "NullLiteral" === nodeType || "BooleanLiteral" === nodeType || "RegExpLiteral" === nodeType || "LogicalExpression" === nodeType || "MemberExpression" === nodeType || "NewExpression" === nodeType || "ObjectExpression" === nodeType || "SequenceExpression" === nodeType || "ParenthesizedExpression" === nodeType || "ThisExpression" === nodeType || "UnaryExpression" === nodeType || "UpdateExpression" === nodeType || "ArrowFunctionExpression" === nodeType || "ClassExpression" === nodeType || "MetaProperty" === nodeType || "Super" === nodeType || "TaggedTemplateExpression" === nodeType || "TemplateLiteral" === nodeType || "YieldExpression" === nodeType || "AwaitExpression" === nodeType || "Import" === nodeType || "BigIntLiteral" === nodeType || "OptionalMemberExpression" === nodeType || "OptionalCallExpression" === nodeType || "TypeCastExpression" === nodeType || "JSXElement" === nodeType || "JSXFragment" === nodeType || "BindExpression" === nodeType || "DoExpression" === nodeType || "RecordExpression" === nodeType || "TupleExpression" === nodeType || "DecimalLiteral" === nodeType || "ModuleExpression" === nodeType || "TopicReference" === nodeType || "PipelineTopicExpression" === nodeType || "PipelineBareFunction" === nodeType || "PipelinePrimaryTopicReference" === nodeType || "TSAsExpression" === nodeType || "TSTypeAssertion" === nodeType || "TSNonNullExpression" === nodeType || nodeType === "Placeholder" && ("Expression" === node.expectedNode || "Identifier" === node.expectedNode || "StringLiteral" === node.expectedNode)) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isBinary(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("BinaryExpression" === nodeType || "LogicalExpression" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isScopable(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("BlockStatement" === nodeType || "CatchClause" === nodeType || "DoWhileStatement" === nodeType || "ForInStatement" === nodeType || "ForStatement" === nodeType || "FunctionDeclaration" === nodeType || "FunctionExpression" === nodeType || "Program" === nodeType || "ObjectMethod" === nodeType || "SwitchStatement" === nodeType || "WhileStatement" === nodeType || "ArrowFunctionExpression" === nodeType || "ClassExpression" === nodeType || "ClassDeclaration" === nodeType || "ForOfStatement" === nodeType || "ClassMethod" === nodeType || "ClassPrivateMethod" === nodeType || "StaticBlock" === nodeType || "TSModuleBlock" === nodeType || nodeType === "Placeholder" && "BlockStatement" === node.expectedNode) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isBlockParent(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("BlockStatement" === nodeType || "CatchClause" === nodeType || "DoWhileStatement" === nodeType || "ForInStatement" === nodeType || "ForStatement" === nodeType || "FunctionDeclaration" === nodeType || "FunctionExpression" === nodeType || "Program" === nodeType || "ObjectMethod" === nodeType || "SwitchStatement" === nodeType || "WhileStatement" === nodeType || "ArrowFunctionExpression" === nodeType || "ForOfStatement" === nodeType || "ClassMethod" === nodeType || "ClassPrivateMethod" === nodeType || "StaticBlock" === nodeType || "TSModuleBlock" === nodeType || nodeType === "Placeholder" && "BlockStatement" === node.expectedNode) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isBlock(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("BlockStatement" === nodeType || "Program" === nodeType || "TSModuleBlock" === nodeType || nodeType === "Placeholder" && "BlockStatement" === node.expectedNode) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("BlockStatement" === nodeType || "BreakStatement" === nodeType || "ContinueStatement" === nodeType || "DebuggerStatement" === nodeType || "DoWhileStatement" === nodeType || "EmptyStatement" === nodeType || "ExpressionStatement" === nodeType || "ForInStatement" === nodeType || "ForStatement" === nodeType || "FunctionDeclaration" === nodeType || "IfStatement" === nodeType || "LabeledStatement" === nodeType || "ReturnStatement" === nodeType || "SwitchStatement" === nodeType || "ThrowStatement" === nodeType || "TryStatement" === nodeType || "VariableDeclaration" === nodeType || "WhileStatement" === nodeType || "WithStatement" === nodeType || "ClassDeclaration" === nodeType || "ExportAllDeclaration" === nodeType || "ExportDefaultDeclaration" === nodeType || "ExportNamedDeclaration" === nodeType || "ForOfStatement" === nodeType || "ImportDeclaration" === nodeType || "DeclareClass" === nodeType || "DeclareFunction" === nodeType || "DeclareInterface" === nodeType || "DeclareModule" === nodeType || "DeclareModuleExports" === nodeType || "DeclareTypeAlias" === nodeType || "DeclareOpaqueType" === nodeType || "DeclareVariable" === nodeType || "DeclareExportDeclaration" === nodeType || "DeclareExportAllDeclaration" === nodeType || "InterfaceDeclaration" === nodeType || "OpaqueType" === nodeType || "TypeAlias" === nodeType || "EnumDeclaration" === nodeType || "TSDeclareFunction" === nodeType || "TSInterfaceDeclaration" === nodeType || "TSTypeAliasDeclaration" === nodeType || "TSEnumDeclaration" === nodeType || "TSModuleDeclaration" === nodeType || "TSImportEqualsDeclaration" === nodeType || "TSExportAssignment" === nodeType || "TSNamespaceExportDeclaration" === nodeType || nodeType === "Placeholder" && ("Statement" === node.expectedNode || "Declaration" === node.expectedNode || "BlockStatement" === node.expectedNode)) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTerminatorless(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("BreakStatement" === nodeType || "ContinueStatement" === nodeType || "ReturnStatement" === nodeType || "ThrowStatement" === nodeType || "YieldExpression" === nodeType || "AwaitExpression" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isCompletionStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("BreakStatement" === nodeType || "ContinueStatement" === nodeType || "ReturnStatement" === nodeType || "ThrowStatement" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isConditional(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("ConditionalExpression" === nodeType || "IfStatement" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isLoop(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("DoWhileStatement" === nodeType || "ForInStatement" === nodeType || "ForStatement" === nodeType || "WhileStatement" === nodeType || "ForOfStatement" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isWhile(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("DoWhileStatement" === nodeType || "WhileStatement" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isExpressionWrapper(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("ExpressionStatement" === nodeType || "ParenthesizedExpression" === nodeType || "TypeCastExpression" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isFor(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("ForInStatement" === nodeType || "ForStatement" === nodeType || "ForOfStatement" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isForXStatement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("ForInStatement" === nodeType || "ForOfStatement" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isFunction(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("FunctionDeclaration" === nodeType || "FunctionExpression" === nodeType || "ObjectMethod" === nodeType || "ArrowFunctionExpression" === nodeType || "ClassMethod" === nodeType || "ClassPrivateMethod" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isFunctionParent(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("FunctionDeclaration" === nodeType || "FunctionExpression" === nodeType || "ObjectMethod" === nodeType || "ArrowFunctionExpression" === nodeType || "ClassMethod" === nodeType || "ClassPrivateMethod" === nodeType || "StaticBlock" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isPureish(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("FunctionDeclaration" === nodeType || "FunctionExpression" === nodeType || "StringLiteral" === nodeType || "NumericLiteral" === nodeType || "NullLiteral" === nodeType || "BooleanLiteral" === nodeType || "RegExpLiteral" === nodeType || "ArrowFunctionExpression" === nodeType || "BigIntLiteral" === nodeType || "DecimalLiteral" === nodeType || nodeType === "Placeholder" && "StringLiteral" === node.expectedNode) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("FunctionDeclaration" === nodeType || "VariableDeclaration" === nodeType || "ClassDeclaration" === nodeType || "ExportAllDeclaration" === nodeType || "ExportDefaultDeclaration" === nodeType || "ExportNamedDeclaration" === nodeType || "ImportDeclaration" === nodeType || "DeclareClass" === nodeType || "DeclareFunction" === nodeType || "DeclareInterface" === nodeType || "DeclareModule" === nodeType || "DeclareModuleExports" === nodeType || "DeclareTypeAlias" === nodeType || "DeclareOpaqueType" === nodeType || "DeclareVariable" === nodeType || "DeclareExportDeclaration" === nodeType || "DeclareExportAllDeclaration" === nodeType || "InterfaceDeclaration" === nodeType || "OpaqueType" === nodeType || "TypeAlias" === nodeType || "EnumDeclaration" === nodeType || "TSDeclareFunction" === nodeType || "TSInterfaceDeclaration" === nodeType || "TSTypeAliasDeclaration" === nodeType || "TSEnumDeclaration" === nodeType || "TSModuleDeclaration" === nodeType || nodeType === "Placeholder" && "Declaration" === node.expectedNode) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isPatternLike(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("Identifier" === nodeType || "RestElement" === nodeType || "AssignmentPattern" === nodeType || "ArrayPattern" === nodeType || "ObjectPattern" === nodeType || nodeType === "Placeholder" && ("Pattern" === node.expectedNode || "Identifier" === node.expectedNode)) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isLVal(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("Identifier" === nodeType || "MemberExpression" === nodeType || "RestElement" === nodeType || "AssignmentPattern" === nodeType || "ArrayPattern" === nodeType || "ObjectPattern" === nodeType || "TSParameterProperty" === nodeType || nodeType === "Placeholder" && ("Pattern" === node.expectedNode || "Identifier" === node.expectedNode)) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSEntityName(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("Identifier" === nodeType || "TSQualifiedName" === nodeType || nodeType === "Placeholder" && "Identifier" === node.expectedNode) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isLiteral(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("StringLiteral" === nodeType || "NumericLiteral" === nodeType || "NullLiteral" === nodeType || "BooleanLiteral" === nodeType || "RegExpLiteral" === nodeType || "TemplateLiteral" === nodeType || "BigIntLiteral" === nodeType || "DecimalLiteral" === nodeType || nodeType === "Placeholder" && "StringLiteral" === node.expectedNode) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isImmutable(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("StringLiteral" === nodeType || "NumericLiteral" === nodeType || "NullLiteral" === nodeType || "BooleanLiteral" === nodeType || "BigIntLiteral" === nodeType || "JSXAttribute" === nodeType || "JSXClosingElement" === nodeType || "JSXElement" === nodeType || "JSXExpressionContainer" === nodeType || "JSXSpreadChild" === nodeType || "JSXOpeningElement" === nodeType || "JSXText" === nodeType || "JSXFragment" === nodeType || "JSXOpeningFragment" === nodeType || "JSXClosingFragment" === nodeType || "DecimalLiteral" === nodeType || nodeType === "Placeholder" && "StringLiteral" === node.expectedNode) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isUserWhitespacable(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("ObjectMethod" === nodeType || "ObjectProperty" === nodeType || "ObjectTypeInternalSlot" === nodeType || "ObjectTypeCallProperty" === nodeType || "ObjectTypeIndexer" === nodeType || "ObjectTypeProperty" === nodeType || "ObjectTypeSpreadProperty" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isMethod(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("ObjectMethod" === nodeType || "ClassMethod" === nodeType || "ClassPrivateMethod" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isObjectMember(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("ObjectMethod" === nodeType || "ObjectProperty" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isProperty(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("ObjectProperty" === nodeType || "ClassProperty" === nodeType || "ClassAccessorProperty" === nodeType || "ClassPrivateProperty" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isUnaryLike(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("UnaryExpression" === nodeType || "SpreadElement" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isPattern(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("AssignmentPattern" === nodeType || "ArrayPattern" === nodeType || "ObjectPattern" === nodeType || nodeType === "Placeholder" && "Pattern" === node.expectedNode) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isClass(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("ClassExpression" === nodeType || "ClassDeclaration" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isModuleDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("ExportAllDeclaration" === nodeType || "ExportDefaultDeclaration" === nodeType || "ExportNamedDeclaration" === nodeType || "ImportDeclaration" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isExportDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("ExportAllDeclaration" === nodeType || "ExportDefaultDeclaration" === nodeType || "ExportNamedDeclaration" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isModuleSpecifier(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("ExportSpecifier" === nodeType || "ImportDefaultSpecifier" === nodeType || "ImportNamespaceSpecifier" === nodeType || "ImportSpecifier" === nodeType || "ExportNamespaceSpecifier" === nodeType || "ExportDefaultSpecifier" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isAccessor(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("ClassAccessorProperty" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isPrivate(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("ClassPrivateProperty" === nodeType || "ClassPrivateMethod" === nodeType || "PrivateName" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isFlow(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("AnyTypeAnnotation" === nodeType || "ArrayTypeAnnotation" === nodeType || "BooleanTypeAnnotation" === nodeType || "BooleanLiteralTypeAnnotation" === nodeType || "NullLiteralTypeAnnotation" === nodeType || "ClassImplements" === nodeType || "DeclareClass" === nodeType || "DeclareFunction" === nodeType || "DeclareInterface" === nodeType || "DeclareModule" === nodeType || "DeclareModuleExports" === nodeType || "DeclareTypeAlias" === nodeType || "DeclareOpaqueType" === nodeType || "DeclareVariable" === nodeType || "DeclareExportDeclaration" === nodeType || "DeclareExportAllDeclaration" === nodeType || "DeclaredPredicate" === nodeType || "ExistsTypeAnnotation" === nodeType || "FunctionTypeAnnotation" === nodeType || "FunctionTypeParam" === nodeType || "GenericTypeAnnotation" === nodeType || "InferredPredicate" === nodeType || "InterfaceExtends" === nodeType || "InterfaceDeclaration" === nodeType || "InterfaceTypeAnnotation" === nodeType || "IntersectionTypeAnnotation" === nodeType || "MixedTypeAnnotation" === nodeType || "EmptyTypeAnnotation" === nodeType || "NullableTypeAnnotation" === nodeType || "NumberLiteralTypeAnnotation" === nodeType || "NumberTypeAnnotation" === nodeType || "ObjectTypeAnnotation" === nodeType || "ObjectTypeInternalSlot" === nodeType || "ObjectTypeCallProperty" === nodeType || "ObjectTypeIndexer" === nodeType || "ObjectTypeProperty" === nodeType || "ObjectTypeSpreadProperty" === nodeType || "OpaqueType" === nodeType || "QualifiedTypeIdentifier" === nodeType || "StringLiteralTypeAnnotation" === nodeType || "StringTypeAnnotation" === nodeType || "SymbolTypeAnnotation" === nodeType || "ThisTypeAnnotation" === nodeType || "TupleTypeAnnotation" === nodeType || "TypeofTypeAnnotation" === nodeType || "TypeAlias" === nodeType || "TypeAnnotation" === nodeType || "TypeCastExpression" === nodeType || "TypeParameter" === nodeType || "TypeParameterDeclaration" === nodeType || "TypeParameterInstantiation" === nodeType || "UnionTypeAnnotation" === nodeType || "Variance" === nodeType || "VoidTypeAnnotation" === nodeType || "EnumDeclaration" === nodeType || "EnumBooleanBody" === nodeType || "EnumNumberBody" === nodeType || "EnumStringBody" === nodeType || "EnumSymbolBody" === nodeType || "EnumBooleanMember" === nodeType || "EnumNumberMember" === nodeType || "EnumStringMember" === nodeType || "EnumDefaultedMember" === nodeType || "IndexedAccessType" === nodeType || "OptionalIndexedAccessType" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isFlowType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("AnyTypeAnnotation" === nodeType || "ArrayTypeAnnotation" === nodeType || "BooleanTypeAnnotation" === nodeType || "BooleanLiteralTypeAnnotation" === nodeType || "NullLiteralTypeAnnotation" === nodeType || "ExistsTypeAnnotation" === nodeType || "FunctionTypeAnnotation" === nodeType || "GenericTypeAnnotation" === nodeType || "InterfaceTypeAnnotation" === nodeType || "IntersectionTypeAnnotation" === nodeType || "MixedTypeAnnotation" === nodeType || "EmptyTypeAnnotation" === nodeType || "NullableTypeAnnotation" === nodeType || "NumberLiteralTypeAnnotation" === nodeType || "NumberTypeAnnotation" === nodeType || "ObjectTypeAnnotation" === nodeType || "StringLiteralTypeAnnotation" === nodeType || "StringTypeAnnotation" === nodeType || "SymbolTypeAnnotation" === nodeType || "ThisTypeAnnotation" === nodeType || "TupleTypeAnnotation" === nodeType || "TypeofTypeAnnotation" === nodeType || "UnionTypeAnnotation" === nodeType || "VoidTypeAnnotation" === nodeType || "IndexedAccessType" === nodeType || "OptionalIndexedAccessType" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isFlowBaseAnnotation(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("AnyTypeAnnotation" === nodeType || "BooleanTypeAnnotation" === nodeType || "NullLiteralTypeAnnotation" === nodeType || "MixedTypeAnnotation" === nodeType || "EmptyTypeAnnotation" === nodeType || "NumberTypeAnnotation" === nodeType || "StringTypeAnnotation" === nodeType || "SymbolTypeAnnotation" === nodeType || "ThisTypeAnnotation" === nodeType || "VoidTypeAnnotation" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isFlowDeclaration(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("DeclareClass" === nodeType || "DeclareFunction" === nodeType || "DeclareInterface" === nodeType || "DeclareModule" === nodeType || "DeclareModuleExports" === nodeType || "DeclareTypeAlias" === nodeType || "DeclareOpaqueType" === nodeType || "DeclareVariable" === nodeType || "DeclareExportDeclaration" === nodeType || "DeclareExportAllDeclaration" === nodeType || "InterfaceDeclaration" === nodeType || "OpaqueType" === nodeType || "TypeAlias" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isFlowPredicate(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("DeclaredPredicate" === nodeType || "InferredPredicate" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isEnumBody(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("EnumBooleanBody" === nodeType || "EnumNumberBody" === nodeType || "EnumStringBody" === nodeType || "EnumSymbolBody" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isEnumMember(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("EnumBooleanMember" === nodeType || "EnumNumberMember" === nodeType || "EnumStringMember" === nodeType || "EnumDefaultedMember" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isJSX(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("JSXAttribute" === nodeType || "JSXClosingElement" === nodeType || "JSXElement" === nodeType || "JSXEmptyExpression" === nodeType || "JSXExpressionContainer" === nodeType || "JSXSpreadChild" === nodeType || "JSXIdentifier" === nodeType || "JSXMemberExpression" === nodeType || "JSXNamespacedName" === nodeType || "JSXOpeningElement" === nodeType || "JSXSpreadAttribute" === nodeType || "JSXText" === nodeType || "JSXFragment" === nodeType || "JSXOpeningFragment" === nodeType || "JSXClosingFragment" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isMiscellaneous(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("Noop" === nodeType || "Placeholder" === nodeType || "V8IntrinsicIdentifier" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTypeScript(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("TSParameterProperty" === nodeType || "TSDeclareFunction" === nodeType || "TSDeclareMethod" === nodeType || "TSQualifiedName" === nodeType || "TSCallSignatureDeclaration" === nodeType || "TSConstructSignatureDeclaration" === nodeType || "TSPropertySignature" === nodeType || "TSMethodSignature" === nodeType || "TSIndexSignature" === nodeType || "TSAnyKeyword" === nodeType || "TSBooleanKeyword" === nodeType || "TSBigIntKeyword" === nodeType || "TSIntrinsicKeyword" === nodeType || "TSNeverKeyword" === nodeType || "TSNullKeyword" === nodeType || "TSNumberKeyword" === nodeType || "TSObjectKeyword" === nodeType || "TSStringKeyword" === nodeType || "TSSymbolKeyword" === nodeType || "TSUndefinedKeyword" === nodeType || "TSUnknownKeyword" === nodeType || "TSVoidKeyword" === nodeType || "TSThisType" === nodeType || "TSFunctionType" === nodeType || "TSConstructorType" === nodeType || "TSTypeReference" === nodeType || "TSTypePredicate" === nodeType || "TSTypeQuery" === nodeType || "TSTypeLiteral" === nodeType || "TSArrayType" === nodeType || "TSTupleType" === nodeType || "TSOptionalType" === nodeType || "TSRestType" === nodeType || "TSNamedTupleMember" === nodeType || "TSUnionType" === nodeType || "TSIntersectionType" === nodeType || "TSConditionalType" === nodeType || "TSInferType" === nodeType || "TSParenthesizedType" === nodeType || "TSTypeOperator" === nodeType || "TSIndexedAccessType" === nodeType || "TSMappedType" === nodeType || "TSLiteralType" === nodeType || "TSExpressionWithTypeArguments" === nodeType || "TSInterfaceDeclaration" === nodeType || "TSInterfaceBody" === nodeType || "TSTypeAliasDeclaration" === nodeType || "TSAsExpression" === nodeType || "TSTypeAssertion" === nodeType || "TSEnumDeclaration" === nodeType || "TSEnumMember" === nodeType || "TSModuleDeclaration" === nodeType || "TSModuleBlock" === nodeType || "TSImportType" === nodeType || "TSImportEqualsDeclaration" === nodeType || "TSExternalModuleReference" === nodeType || "TSNonNullExpression" === nodeType || "TSExportAssignment" === nodeType || "TSNamespaceExportDeclaration" === nodeType || "TSTypeAnnotation" === nodeType || "TSTypeParameterInstantiation" === nodeType || "TSTypeParameterDeclaration" === nodeType || "TSTypeParameter" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSTypeElement(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("TSCallSignatureDeclaration" === nodeType || "TSConstructSignatureDeclaration" === nodeType || "TSPropertySignature" === nodeType || "TSMethodSignature" === nodeType || "TSIndexSignature" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("TSAnyKeyword" === nodeType || "TSBooleanKeyword" === nodeType || "TSBigIntKeyword" === nodeType || "TSIntrinsicKeyword" === nodeType || "TSNeverKeyword" === nodeType || "TSNullKeyword" === nodeType || "TSNumberKeyword" === nodeType || "TSObjectKeyword" === nodeType || "TSStringKeyword" === nodeType || "TSSymbolKeyword" === nodeType || "TSUndefinedKeyword" === nodeType || "TSUnknownKeyword" === nodeType || "TSVoidKeyword" === nodeType || "TSThisType" === nodeType || "TSFunctionType" === nodeType || "TSConstructorType" === nodeType || "TSTypeReference" === nodeType || "TSTypePredicate" === nodeType || "TSTypeQuery" === nodeType || "TSTypeLiteral" === nodeType || "TSArrayType" === nodeType || "TSTupleType" === nodeType || "TSOptionalType" === nodeType || "TSRestType" === nodeType || "TSUnionType" === nodeType || "TSIntersectionType" === nodeType || "TSConditionalType" === nodeType || "TSInferType" === nodeType || "TSParenthesizedType" === nodeType || "TSTypeOperator" === nodeType || "TSIndexedAccessType" === nodeType || "TSMappedType" === nodeType || "TSLiteralType" === nodeType || "TSExpressionWithTypeArguments" === nodeType || "TSImportType" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isTSBaseType(node, opts) { + if (!node) return false; + const nodeType = node.type; + + if ("TSAnyKeyword" === nodeType || "TSBooleanKeyword" === nodeType || "TSBigIntKeyword" === nodeType || "TSIntrinsicKeyword" === nodeType || "TSNeverKeyword" === nodeType || "TSNullKeyword" === nodeType || "TSNumberKeyword" === nodeType || "TSObjectKeyword" === nodeType || "TSStringKeyword" === nodeType || "TSSymbolKeyword" === nodeType || "TSUndefinedKeyword" === nodeType || "TSUnknownKeyword" === nodeType || "TSVoidKeyword" === nodeType || "TSThisType" === nodeType || "TSLiteralType" === nodeType) { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isNumberLiteral(node, opts) { + console.trace("The node type NumberLiteral has been renamed to NumericLiteral"); + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "NumberLiteral") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isRegexLiteral(node, opts) { + console.trace("The node type RegexLiteral has been renamed to RegExpLiteral"); + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "RegexLiteral") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isRestProperty(node, opts) { + console.trace("The node type RestProperty has been renamed to RestElement"); + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "RestProperty") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} + +function isSpreadProperty(node, opts) { + console.trace("The node type SpreadProperty has been renamed to SpreadElement"); + if (!node) return false; + const nodeType = node.type; + + if (nodeType === "SpreadProperty") { + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } + } + + return false; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/is.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/is.js" new file mode 100644 index 0000000000000000000000000000000000000000..581979fa701aa0d6ee391769c20430bcf6762c40 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/is.js" @@ -0,0 +1,33 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = is; + +var _shallowEqual = require("../utils/shallowEqual"); + +var _isType = require("./isType"); + +var _isPlaceholderType = require("./isPlaceholderType"); + +var _definitions = require("../definitions"); + +function is(type, node, opts) { + if (!node) return false; + const matches = (0, _isType.default)(node.type, type); + + if (!matches) { + if (!opts && node.type === "Placeholder" && type in _definitions.FLIPPED_ALIAS_KEYS) { + return (0, _isPlaceholderType.default)(node.expectedNode, type); + } + + return false; + } + + if (typeof opts === "undefined") { + return true; + } else { + return (0, _shallowEqual.default)(node, opts); + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isBinding.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isBinding.js" new file mode 100644 index 0000000000000000000000000000000000000000..74c86dd0e98916bb76eae2adce43cd6e9295dd33 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isBinding.js" @@ -0,0 +1,31 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isBinding; + +var _getBindingIdentifiers = require("../retrievers/getBindingIdentifiers"); + +function isBinding(node, parent, grandparent) { + if (grandparent && node.type === "Identifier" && parent.type === "ObjectProperty" && grandparent.type === "ObjectExpression") { + return false; + } + + const keys = _getBindingIdentifiers.default.keys[parent.type]; + + if (keys) { + for (let i = 0; i < keys.length; i++) { + const key = keys[i]; + const val = parent[key]; + + if (Array.isArray(val)) { + if (val.indexOf(node) >= 0) return true; + } else { + if (val === node) return true; + } + } + } + + return false; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isBlockScoped.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isBlockScoped.js" new file mode 100644 index 0000000000000000000000000000000000000000..77ec1663004b1e526b7a95ef99296439ecfa5ec6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isBlockScoped.js" @@ -0,0 +1,14 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isBlockScoped; + +var _generated = require("./generated"); + +var _isLet = require("./isLet"); + +function isBlockScoped(node) { + return (0, _generated.isFunctionDeclaration)(node) || (0, _generated.isClassDeclaration)(node) || (0, _isLet.default)(node); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isImmutable.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isImmutable.js" new file mode 100644 index 0000000000000000000000000000000000000000..27754f6599ef9832a729efc5e4ee1c9ca6934093 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isImmutable.js" @@ -0,0 +1,24 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isImmutable; + +var _isType = require("./isType"); + +var _generated = require("./generated"); + +function isImmutable(node) { + if ((0, _isType.default)(node.type, "Immutable")) return true; + + if ((0, _generated.isIdentifier)(node)) { + if (node.name === "undefined") { + return true; + } else { + return false; + } + } + + return false; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isLet.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isLet.js" new file mode 100644 index 0000000000000000000000000000000000000000..93d75628082195209c21a5c990dfc5357cd250e8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isLet.js" @@ -0,0 +1,14 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isLet; + +var _generated = require("./generated"); + +var _constants = require("../constants"); + +function isLet(node) { + return (0, _generated.isVariableDeclaration)(node) && (node.kind !== "var" || node[_constants.BLOCK_SCOPED_SYMBOL]); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isNode.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isNode.js" new file mode 100644 index 0000000000000000000000000000000000000000..e88a47aac457f13945605485c3d28fada1636822 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isNode.js" @@ -0,0 +1,12 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isNode; + +var _definitions = require("../definitions"); + +function isNode(node) { + return !!(node && _definitions.VISITOR_KEYS[node.type]); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isNodesEquivalent.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isNodesEquivalent.js" new file mode 100644 index 0000000000000000000000000000000000000000..f829834e91084c0832c3b6d5c76d96cf99013b94 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isNodesEquivalent.js" @@ -0,0 +1,67 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isNodesEquivalent; + +var _definitions = require("../definitions"); + +function isNodesEquivalent(a, b) { + if (typeof a !== "object" || typeof b !== "object" || a == null || b == null) { + return a === b; + } + + if (a.type !== b.type) { + return false; + } + + const fields = Object.keys(_definitions.NODE_FIELDS[a.type] || a.type); + const visitorKeys = _definitions.VISITOR_KEYS[a.type]; + + for (const field of fields) { + if (typeof a[field] !== typeof b[field]) { + return false; + } + + if (a[field] == null && b[field] == null) { + continue; + } else if (a[field] == null || b[field] == null) { + return false; + } + + if (Array.isArray(a[field])) { + if (!Array.isArray(b[field])) { + return false; + } + + if (a[field].length !== b[field].length) { + return false; + } + + for (let i = 0; i < a[field].length; i++) { + if (!isNodesEquivalent(a[field][i], b[field][i])) { + return false; + } + } + + continue; + } + + if (typeof a[field] === "object" && !(visitorKeys != null && visitorKeys.includes(field))) { + for (const key of Object.keys(a[field])) { + if (a[field][key] !== b[field][key]) { + return false; + } + } + + continue; + } + + if (!isNodesEquivalent(a[field], b[field])) { + return false; + } + } + + return true; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isPlaceholderType.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isPlaceholderType.js" new file mode 100644 index 0000000000000000000000000000000000000000..e8271de0b1c77c723986e50cefa58487443cda6b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isPlaceholderType.js" @@ -0,0 +1,21 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isPlaceholderType; + +var _definitions = require("../definitions"); + +function isPlaceholderType(placeholderType, targetType) { + if (placeholderType === targetType) return true; + const aliases = _definitions.PLACEHOLDERS_ALIAS[placeholderType]; + + if (aliases) { + for (const alias of aliases) { + if (targetType === alias) return true; + } + } + + return false; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isReferenced.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isReferenced.js" new file mode 100644 index 0000000000000000000000000000000000000000..471150bfc6dd6841e1e51494863e934570e5cb2a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isReferenced.js" @@ -0,0 +1,128 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isReferenced; + +function isReferenced(node, parent, grandparent) { + switch (parent.type) { + case "MemberExpression": + case "OptionalMemberExpression": + if (parent.property === node) { + return !!parent.computed; + } + + return parent.object === node; + + case "JSXMemberExpression": + return parent.object === node; + + case "VariableDeclarator": + return parent.init === node; + + case "ArrowFunctionExpression": + return parent.body === node; + + case "PrivateName": + return false; + + case "ClassMethod": + case "ClassPrivateMethod": + case "ObjectMethod": + if (parent.key === node) { + return !!parent.computed; + } + + return false; + + case "ObjectProperty": + if (parent.key === node) { + return !!parent.computed; + } + + return !grandparent || grandparent.type !== "ObjectPattern"; + + case "ClassProperty": + case "ClassAccessorProperty": + if (parent.key === node) { + return !!parent.computed; + } + + return true; + + case "ClassPrivateProperty": + return parent.key !== node; + + case "ClassDeclaration": + case "ClassExpression": + return parent.superClass === node; + + case "AssignmentExpression": + return parent.right === node; + + case "AssignmentPattern": + return parent.right === node; + + case "LabeledStatement": + return false; + + case "CatchClause": + return false; + + case "RestElement": + return false; + + case "BreakStatement": + case "ContinueStatement": + return false; + + case "FunctionDeclaration": + case "FunctionExpression": + return false; + + case "ExportNamespaceSpecifier": + case "ExportDefaultSpecifier": + return false; + + case "ExportSpecifier": + if (grandparent != null && grandparent.source) { + return false; + } + + return parent.local === node; + + case "ImportDefaultSpecifier": + case "ImportNamespaceSpecifier": + case "ImportSpecifier": + return false; + + case "ImportAttribute": + return false; + + case "JSXAttribute": + return false; + + case "ObjectPattern": + case "ArrayPattern": + return false; + + case "MetaProperty": + return false; + + case "ObjectTypeProperty": + return parent.key !== node; + + case "TSEnumMember": + return parent.id !== node; + + case "TSPropertySignature": + if (parent.key === node) { + return !!parent.computed; + } + + return true; + } + + return true; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isScope.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isScope.js" new file mode 100644 index 0000000000000000000000000000000000000000..0f82449cce7a8c554c3a30c4cdd26f961907fc77 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isScope.js" @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isScope; + +var _generated = require("./generated"); + +function isScope(node, parent) { + if ((0, _generated.isBlockStatement)(node) && ((0, _generated.isFunction)(parent) || (0, _generated.isCatchClause)(parent))) { + return false; + } + + if ((0, _generated.isPattern)(node) && ((0, _generated.isFunction)(parent) || (0, _generated.isCatchClause)(parent))) { + return true; + } + + return (0, _generated.isScopable)(node); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isSpecifierDefault.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isSpecifierDefault.js" new file mode 100644 index 0000000000000000000000000000000000000000..25431cc2732b348d437bb5dc463b24ba73ccaecf --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isSpecifierDefault.js" @@ -0,0 +1,14 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isSpecifierDefault; + +var _generated = require("./generated"); + +function isSpecifierDefault(specifier) { + return (0, _generated.isImportDefaultSpecifier)(specifier) || (0, _generated.isIdentifier)(specifier.imported || specifier.exported, { + name: "default" + }); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isType.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isType.js" new file mode 100644 index 0000000000000000000000000000000000000000..59d31dfbbfcafd0bf8a1d37765b7f88943d5784c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isType.js" @@ -0,0 +1,24 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isType; + +var _definitions = require("../definitions"); + +function isType(nodeType, targetType) { + if (nodeType === targetType) return true; + if (_definitions.ALIAS_KEYS[targetType]) return false; + const aliases = _definitions.FLIPPED_ALIAS_KEYS[targetType]; + + if (aliases) { + if (aliases[0] === nodeType) return true; + + for (const alias of aliases) { + if (nodeType === alias) return true; + } + } + + return false; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isValidES3Identifier.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isValidES3Identifier.js" new file mode 100644 index 0000000000000000000000000000000000000000..5cef5664df0b61af2e538a869adef67390d429aa --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isValidES3Identifier.js" @@ -0,0 +1,14 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isValidES3Identifier; + +var _isValidIdentifier = require("./isValidIdentifier"); + +const RESERVED_WORDS_ES3_ONLY = new Set(["abstract", "boolean", "byte", "char", "double", "enum", "final", "float", "goto", "implements", "int", "interface", "long", "native", "package", "private", "protected", "public", "short", "static", "synchronized", "throws", "transient", "volatile"]); + +function isValidES3Identifier(name) { + return (0, _isValidIdentifier.default)(name) && !RESERVED_WORDS_ES3_ONLY.has(name); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isValidIdentifier.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isValidIdentifier.js" new file mode 100644 index 0000000000000000000000000000000000000000..3fa6f98000b6bad4bdbb25f6500e5d98d90dd553 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isValidIdentifier.js" @@ -0,0 +1,20 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isValidIdentifier; + +var _helperValidatorIdentifier = require("@babel/helper-validator-identifier"); + +function isValidIdentifier(name, reserved = true) { + if (typeof name !== "string") return false; + + if (reserved) { + if ((0, _helperValidatorIdentifier.isKeyword)(name) || (0, _helperValidatorIdentifier.isStrictReservedWord)(name, true)) { + return false; + } + } + + return (0, _helperValidatorIdentifier.isIdentifierName)(name); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isVar.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isVar.js" new file mode 100644 index 0000000000000000000000000000000000000000..a34801d18fe375ace078fe45a33207e3f543e002 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/isVar.js" @@ -0,0 +1,16 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isVar; + +var _generated = require("./generated"); + +var _constants = require("../constants"); + +function isVar(node) { + return (0, _generated.isVariableDeclaration)(node, { + kind: "var" + }) && !node[_constants.BLOCK_SCOPED_SYMBOL]; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/matchesPattern.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/matchesPattern.js" new file mode 100644 index 0000000000000000000000000000000000000000..d961f5a6ef24b20f9c35132804b5cd95c33d690b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/matchesPattern.js" @@ -0,0 +1,42 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = matchesPattern; + +var _generated = require("./generated"); + +function matchesPattern(member, match, allowPartial) { + if (!(0, _generated.isMemberExpression)(member)) return false; + const parts = Array.isArray(match) ? match : match.split("."); + const nodes = []; + let node; + + for (node = member; (0, _generated.isMemberExpression)(node); node = node.object) { + nodes.push(node.property); + } + + nodes.push(node); + if (nodes.length < parts.length) return false; + if (!allowPartial && nodes.length > parts.length) return false; + + for (let i = 0, j = nodes.length - 1; i < parts.length; i++, j--) { + const node = nodes[j]; + let value; + + if ((0, _generated.isIdentifier)(node)) { + value = node.name; + } else if ((0, _generated.isStringLiteral)(node)) { + value = node.value; + } else if ((0, _generated.isThisExpression)(node)) { + value = "this"; + } else { + return false; + } + + if (parts[i] !== value) return false; + } + + return true; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/react/isCompatTag.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/react/isCompatTag.js" new file mode 100644 index 0000000000000000000000000000000000000000..57761c2b1b15bdd5ebd4892f0962c5e503bb9d65 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/react/isCompatTag.js" @@ -0,0 +1,10 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = isCompatTag; + +function isCompatTag(tagName) { + return !!tagName && /^[a-z]/.test(tagName); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/react/isReactComponent.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/react/isReactComponent.js" new file mode 100644 index 0000000000000000000000000000000000000000..0dd2102589ab69a9c0230b08edac1546fb04a60f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/react/isReactComponent.js" @@ -0,0 +1,12 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = void 0; + +var _buildMatchMemberExpression = require("../buildMatchMemberExpression"); + +const isReactComponent = (0, _buildMatchMemberExpression.default)("React.Component"); +var _default = isReactComponent; +exports.default = _default; \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/validate.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/validate.js" new file mode 100644 index 0000000000000000000000000000000000000000..a2bfe3d4910eb14eb14e1fcb1eca09a70b65d4cd --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/lib/validators/validate.js" @@ -0,0 +1,32 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.default = validate; +exports.validateChild = validateChild; +exports.validateField = validateField; + +var _definitions = require("../definitions"); + +function validate(node, key, val) { + if (!node) return; + const fields = _definitions.NODE_FIELDS[node.type]; + if (!fields) return; + const field = fields[key]; + validateField(node, key, val, field); + validateChild(node, key, val); +} + +function validateField(node, key, val, field) { + if (!(field != null && field.validate)) return; + if (field.optional && val == null) return; + field.validate(node, key, val); +} + +function validateChild(node, key, val) { + if (val == null) return; + const validate = _definitions.NODE_PARENT_VALIDATIONS[val.type]; + if (!validate) return; + validate(node, key, val); +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..bf92dacb575bf8399b2e65a32eb11ccf37b4791a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/package.json" @@ -0,0 +1,39 @@ +{ + "name": "@babel/types", + "version": "7.17.0", + "description": "Babel Types is a Lodash-esque utility library for AST nodes", + "author": "The Babel Team (https://babel.dev/team)", + "homepage": "https://babel.dev/docs/en/next/babel-types", + "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20types%22+is%3Aopen", + "license": "MIT", + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "https://github.com/babel/babel.git", + "directory": "packages/babel-types" + }, + "main": "./lib/index.js", + "types": "./lib/index-legacy.d.ts", + "typesVersions": { + ">=3.7": { + "lib/index-legacy.d.ts": [ + "lib/index.d.ts" + ] + } + }, + "dependencies": { + "@babel/helper-validator-identifier": "^7.16.7", + "to-fast-properties": "^2.0.0" + }, + "devDependencies": { + "@babel/generator": "^7.17.0", + "@babel/parser": "^7.17.0", + "chalk": "^4.1.0", + "glob": "^7.1.7" + }, + "engines": { + "node": ">=6.9.0" + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/asserts.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/asserts.js" new file mode 100644 index 0000000000000000000000000000000000000000..bdfd94857fcfbccadf0eb555a58235132c5e10e3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/asserts.js" @@ -0,0 +1,50 @@ +import definitions from "../../lib/definitions/index.js"; + +function addAssertHelper(type) { + const result = + definitions.NODE_FIELDS[type] || definitions.FLIPPED_ALIAS_KEYS[type] + ? `node is t.${type}` + : "boolean"; + + return `export function assert${type}(node: object | null | undefined, opts?: object | null): asserts ${ + result === "boolean" ? "node" : result + } { + assert("${type}", node, opts) } + `; +} + +export default function generateAsserts() { + let output = `/* + * This file is auto-generated! Do not modify it directly. + * To re-generate run 'make build' + */ +import is from "../../validators/is"; +import type * as t from "../.."; + +function assert(type: string, node: any, opts?: any): void { + if (!is(type, node, opts)) { + throw new Error( + \`Expected type "\${type}" with option \${JSON.stringify(opts)}, \` + + \`but instead got "\${node.type}".\`, + ); + } +}\n\n`; + + Object.keys(definitions.VISITOR_KEYS).forEach(type => { + output += addAssertHelper(type); + }); + + Object.keys(definitions.FLIPPED_ALIAS_KEYS).forEach(type => { + output += addAssertHelper(type); + }); + + Object.keys(definitions.DEPRECATED_KEYS).forEach(type => { + const newType = definitions.DEPRECATED_KEYS[type]; + output += `export function assert${type}(node: any, opts: any): void { + console.trace("The node type ${type} has been renamed to ${newType}"); + assert("${type}", node, opts); +}\n`; + }); + + return output; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/ast-types.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/ast-types.js" new file mode 100644 index 0000000000000000000000000000000000000000..3bf42869f1278dbed82b5c0b67e10ca5aa855500 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/ast-types.js" @@ -0,0 +1,144 @@ +import t from "../../lib/index.js"; +import stringifyValidator from "../utils/stringifyValidator.js"; + +export default function generateAstTypes() { + let code = `// NOTE: This file is autogenerated. Do not modify. +// See packages/babel-types/scripts/generators/ast-types.js for script used. + +interface BaseComment { + value: string; + start: number; + end: number; + loc: SourceLocation; + type: "CommentBlock" | "CommentLine"; +} + +export interface CommentBlock extends BaseComment { + type: "CommentBlock"; +} + +export interface CommentLine extends BaseComment { + type: "CommentLine"; +} + +export type Comment = CommentBlock | CommentLine; + +export interface SourceLocation { + start: { + line: number; + column: number; + }; + + end: { + line: number; + column: number; + }; +} + +interface BaseNode { + leadingComments: ReadonlyArray | null; + innerComments: ReadonlyArray | null; + trailingComments: ReadonlyArray | null; + start: number | null; + end: number | null; + loc: SourceLocation | null; + type: Node["type"]; + range?: [number, number]; + extra?: Record; +} + +export type CommentTypeShorthand = "leading" | "inner" | "trailing"; + +export type Node = ${t.TYPES.filter(k => !t.FLIPPED_ALIAS_KEYS[k]) + .sort() + .join(" | ")};\n\n`; + + const deprecatedAlias = {}; + for (const type in t.DEPRECATED_KEYS) { + deprecatedAlias[t.DEPRECATED_KEYS[type]] = type; + } + for (const type in t.NODE_FIELDS) { + const fields = t.NODE_FIELDS[type]; + const fieldNames = sortFieldNames(Object.keys(t.NODE_FIELDS[type]), type); + const struct = []; + + fieldNames.forEach(fieldName => { + const field = fields[fieldName]; + // Future / annoying TODO: + // MemberExpression.property, ObjectProperty.key and ObjectMethod.key need special cases; either: + // - convert the declaration to chain() like ClassProperty.key and ClassMethod.key, + // - declare an alias type for valid keys, detect the case and reuse it here, + // - declare a disjoint union with, for example, ObjectPropertyBase, + // ObjectPropertyLiteralKey and ObjectPropertyComputedKey, and declare ObjectProperty + // as "ObjectPropertyBase & (ObjectPropertyLiteralKey | ObjectPropertyComputedKey)" + let typeAnnotation = stringifyValidator(field.validate, ""); + + if (isNullable(field) && !hasDefault(field)) { + typeAnnotation += " | null"; + } + + const alphaNumeric = /^\w+$/; + const optional = field.optional ? "?" : ""; + + if (t.isValidIdentifier(fieldName) || alphaNumeric.test(fieldName)) { + struct.push(`${fieldName}${optional}: ${typeAnnotation};`); + } else { + struct.push(`"${fieldName}"${optional}: ${typeAnnotation};`); + } + }); + + code += `export interface ${type} extends BaseNode { + type: "${type}"; + ${struct.join("\n ").trim()} +}\n\n`; + + if (deprecatedAlias[type]) { + code += `/** + * @deprecated Use \`${type}\` + */ +export interface ${deprecatedAlias[type]} extends BaseNode { + type: "${deprecatedAlias[type]}"; + ${struct.join("\n ").trim()} +}\n\n +`; + } + } + + for (const type in t.FLIPPED_ALIAS_KEYS) { + const types = t.FLIPPED_ALIAS_KEYS[type]; + code += `export type ${type} = ${types + .map(type => `${type}`) + .join(" | ")};\n`; + } + code += "\n"; + + code += "export interface Aliases {\n"; + for (const type in t.FLIPPED_ALIAS_KEYS) { + code += ` ${type}: ${type};\n`; + } + code += "}\n\n"; + code += `export type DeprecatedAliases = ${Object.keys( + t.DEPRECATED_KEYS + ).join(" | ")}\n\n`; + + return code; +} + +function hasDefault(field) { + return field.default != null; +} + +function isNullable(field) { + return field.optional || hasDefault(field); +} + +function sortFieldNames(fields, type) { + return fields.sort((fieldA, fieldB) => { + const indexA = t.BUILDER_KEYS[type].indexOf(fieldA); + const indexB = t.BUILDER_KEYS[type].indexOf(fieldB); + if (indexA === indexB) return fieldA < fieldB ? -1 : 1; + if (indexA === -1) return 1; + if (indexB === -1) return -1; + return indexA - indexB; + }); +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/builders.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/builders.js" new file mode 100644 index 0000000000000000000000000000000000000000..13e772eb43d0bd23464876acd9e58d64063b51b7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/builders.js" @@ -0,0 +1,163 @@ +import t from "../../lib/index.js"; +import definitions from "../../lib/definitions/index.js"; +import formatBuilderName from "../utils/formatBuilderName.js"; +import lowerFirst from "../utils/lowerFirst.js"; +import stringifyValidator from "../utils/stringifyValidator.js"; + +function areAllRemainingFieldsNullable(fieldName, fieldNames, fields) { + const index = fieldNames.indexOf(fieldName); + return fieldNames.slice(index).every(_ => isNullable(fields[_])); +} + +function hasDefault(field) { + return field.default != null; +} + +function isNullable(field) { + return field.optional || hasDefault(field); +} + +function sortFieldNames(fields, type) { + return fields.sort((fieldA, fieldB) => { + const indexA = t.BUILDER_KEYS[type].indexOf(fieldA); + const indexB = t.BUILDER_KEYS[type].indexOf(fieldB); + if (indexA === indexB) return fieldA < fieldB ? -1 : 1; + if (indexA === -1) return 1; + if (indexB === -1) return -1; + return indexA - indexB; + }); +} + +function generateBuilderArgs(type) { + const fields = t.NODE_FIELDS[type]; + const fieldNames = sortFieldNames(Object.keys(t.NODE_FIELDS[type]), type); + const builderNames = t.BUILDER_KEYS[type]; + + const args = []; + + fieldNames.forEach(fieldName => { + const field = fields[fieldName]; + // Future / annoying TODO: + // MemberExpression.property, ObjectProperty.key and ObjectMethod.key need special cases; either: + // - convert the declaration to chain() like ClassProperty.key and ClassMethod.key, + // - declare an alias type for valid keys, detect the case and reuse it here, + // - declare a disjoint union with, for example, ObjectPropertyBase, + // ObjectPropertyLiteralKey and ObjectPropertyComputedKey, and declare ObjectProperty + // as "ObjectPropertyBase & (ObjectPropertyLiteralKey | ObjectPropertyComputedKey)" + let typeAnnotation = stringifyValidator(field.validate, "t."); + + if (isNullable(field) && !hasDefault(field)) { + typeAnnotation += " | null"; + } + + if (builderNames.includes(fieldName)) { + const bindingIdentifierName = t.toBindingIdentifierName(fieldName); + if (areAllRemainingFieldsNullable(fieldName, builderNames, fields)) { + args.push( + `${bindingIdentifierName}${ + isNullable(field) ? "?:" : ":" + } ${typeAnnotation}` + ); + } else { + args.push( + `${bindingIdentifierName}: ${typeAnnotation}${ + isNullable(field) ? " | undefined" : "" + }` + ); + } + } + }); + + return args; +} + +export default function generateBuilders(kind) { + return kind === "uppercase.js" + ? generateUppercaseBuilders() + : generateLowercaseBuilders(); +} + +function generateLowercaseBuilders() { + let output = `/* + * This file is auto-generated! Do not modify it directly. + * To re-generate run 'make build' + */ +import builder from "../builder"; +import type * as t from "../.."; + +/* eslint-disable @typescript-eslint/no-unused-vars */ + +`; + + const reservedNames = new Set(["super", "import"]); + Object.keys(definitions.BUILDER_KEYS).forEach(type => { + const defArgs = generateBuilderArgs(type); + const formatedBuilderName = formatBuilderName(type); + const formatedBuilderNameLocal = reservedNames.has(formatedBuilderName) + ? `_${formatedBuilderName}` + : formatedBuilderName; + output += `${ + formatedBuilderNameLocal === formatedBuilderName ? "export " : "" + }function ${formatedBuilderNameLocal}(${defArgs.join( + ", " + )}): t.${type} { return builder.apply("${type}", arguments); }\n`; + if (formatedBuilderNameLocal !== formatedBuilderName) { + output += `export { ${formatedBuilderNameLocal} as ${formatedBuilderName} };\n`; + } + + // This is needed for backwards compatibility. + // It should be removed in the next major version. + // JSXIdentifier -> jSXIdentifier + if (/^[A-Z]{2}/.test(type)) { + output += `export { ${formatedBuilderNameLocal} as ${lowerFirst( + type + )} }\n`; + } + }); + + Object.keys(definitions.DEPRECATED_KEYS).forEach(type => { + const newType = definitions.DEPRECATED_KEYS[type]; + const formatedBuilderName = formatBuilderName(type); + output += `/** @deprecated */ +function ${type}(${generateBuilderArgs(newType).join(", ")}): t.${type} { + console.trace("The node type ${type} has been renamed to ${newType}"); + return builder.apply("${type}", arguments); +} +export { ${type} as ${formatedBuilderName} };\n`; + // This is needed for backwards compatibility. + // It should be removed in the next major version. + // JSXIdentifier -> jSXIdentifier + if (/^[A-Z]{2}/.test(type)) { + output += `export { ${type} as ${lowerFirst(type)} }\n`; + } + }); + + return output; +} + +function generateUppercaseBuilders() { + let output = `/* + * This file is auto-generated! Do not modify it directly. + * To re-generate run 'make build' + */ + +/** + * This file is written in JavaScript and not TypeScript because uppercase builders + * conflict with AST types. TypeScript reads the uppercase.d.ts file instead. + */ + + export {\n`; + + Object.keys(definitions.BUILDER_KEYS).forEach(type => { + const formatedBuilderName = formatBuilderName(type); + output += ` ${formatedBuilderName} as ${type},\n`; + }); + + Object.keys(definitions.DEPRECATED_KEYS).forEach(type => { + const formatedBuilderName = formatBuilderName(type); + output += ` ${formatedBuilderName} as ${type},\n`; + }); + + output += ` } from './index';\n`; + return output; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/constants.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/constants.js" new file mode 100644 index 0000000000000000000000000000000000000000..68abdbd837fbeaf8d31feee5fa14e41b3dd0bee4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/constants.js" @@ -0,0 +1,15 @@ +import definitions from "../../lib/definitions/index.js"; + +export default function generateConstants() { + let output = `/* + * This file is auto-generated! Do not modify it directly. + * To re-generate run 'make build' + */ +import { FLIPPED_ALIAS_KEYS } from "../../definitions";\n\n`; + + Object.keys(definitions.FLIPPED_ALIAS_KEYS).forEach(type => { + output += `export const ${type.toUpperCase()}_TYPES = FLIPPED_ALIAS_KEYS["${type}"];\n`; + }); + + return output; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/docs.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/docs.js" new file mode 100644 index 0000000000000000000000000000000000000000..95e4815fb03f74483abd6767709c39fbc8dcfcf9 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/docs.js" @@ -0,0 +1,282 @@ +import util from "util"; +import stringifyValidator from "../utils/stringifyValidator.js"; +import toFunctionName from "../utils/toFunctionName.js"; + +import t from "../../lib/index.js"; + +const readme = [ + `--- +id: babel-types +title: @babel/types +--- + + +> This module contains methods for building ASTs manually and for checking the types of AST nodes. + +## Install + +\`\`\`sh +npm install --save-dev @babel/types +\`\`\` + +## API`, +]; + +const customTypes = { + ClassMethod: { + key: "if computed then `Expression` else `Identifier | Literal`", + }, + Identifier: { + name: "`string`", + }, + MemberExpression: { + property: "if computed then `Expression` else `Identifier`", + }, + ObjectMethod: { + key: "if computed then `Expression` else `Identifier | Literal`", + }, + ObjectProperty: { + key: "if computed then `Expression` else `Identifier | Literal`", + }, + ClassPrivateMethod: { + computed: "'false'", + }, + ClassPrivateProperty: { + computed: "'false'", + }, +}; +const APIHistory = { + ClassProperty: [["v7.6.0", "Supports `static`"]], +}; +function formatHistory(historyItems) { + const lines = historyItems.map( + item => "| `" + item[0] + "` | " + item[1] + " |" + ); + return [ + "

", + " History", + "| Version | Changes |", + "| --- | --- |", + ...lines, + "
", + ]; +} +function printAPIHistory(key, readme) { + if (APIHistory[key]) { + readme.push(""); + readme.push(...formatHistory(APIHistory[key])); + } +} +function printNodeFields(key, readme) { + if (Object.keys(t.NODE_FIELDS[key]).length > 0) { + readme.push(""); + readme.push("AST Node `" + key + "` shape:"); + Object.keys(t.NODE_FIELDS[key]) + .sort(function (fieldA, fieldB) { + const indexA = t.BUILDER_KEYS[key].indexOf(fieldA); + const indexB = t.BUILDER_KEYS[key].indexOf(fieldB); + if (indexA === indexB) return fieldA < fieldB ? -1 : 1; + if (indexA === -1) return 1; + if (indexB === -1) return -1; + return indexA - indexB; + }) + .forEach(function (field) { + const defaultValue = t.NODE_FIELDS[key][field].default; + const fieldDescription = ["`" + field + "`"]; + const validator = t.NODE_FIELDS[key][field].validate; + if (customTypes[key] && customTypes[key][field]) { + fieldDescription.push(`: ${customTypes[key][field]}`); + } else if (validator) { + try { + fieldDescription.push( + ": `" + stringifyValidator(validator, "") + "`" + ); + } catch (ex) { + if (ex.code === "UNEXPECTED_VALIDATOR_TYPE") { + console.log( + "Unrecognised validator type for " + key + "." + field + ); + console.dir(ex.validator, { depth: 10, colors: true }); + } + } + } + if (defaultValue !== null || t.NODE_FIELDS[key][field].optional) { + fieldDescription.push( + " (default: `" + util.inspect(defaultValue) + "`" + ); + if (t.BUILDER_KEYS[key].indexOf(field) < 0) { + fieldDescription.push(", excluded from builder function"); + } + fieldDescription.push(")"); + } else { + fieldDescription.push(" (required)"); + } + readme.push("- " + fieldDescription.join("")); + }); + } +} + +function printAliasKeys(key, readme) { + if (t.ALIAS_KEYS[key] && t.ALIAS_KEYS[key].length) { + readme.push(""); + readme.push( + "Aliases: " + + t.ALIAS_KEYS[key] + .map(function (key) { + return "[`" + key + "`](#" + key.toLowerCase() + ")"; + }) + .join(", ") + ); + } +} +readme.push("### Node Builders"); +readme.push(""); +Object.keys(t.BUILDER_KEYS) + .sort() + .forEach(function (key) { + readme.push("#### " + toFunctionName(key)); + readme.push(""); + readme.push("```javascript"); + readme.push( + "t." + toFunctionName(key) + "(" + t.BUILDER_KEYS[key].join(", ") + ");" + ); + readme.push("```"); + printAPIHistory(key, readme); + readme.push(""); + readme.push( + "See also `t.is" + + key + + "(node, opts)` and `t.assert" + + key + + "(node, opts)`." + ); + + printNodeFields(key, readme); + printAliasKeys(key, readme); + + readme.push(""); + readme.push("---"); + readme.push(""); + }); + +function generateMapAliasToNodeTypes() { + const result = new Map(); + for (const nodeType of Object.keys(t.ALIAS_KEYS)) { + const aliases = t.ALIAS_KEYS[nodeType]; + if (!aliases) continue; + for (const alias of aliases) { + if (!result.has(alias)) { + result.set(alias, []); + } + const nodeTypes = result.get(alias); + nodeTypes.push(nodeType); + } + } + return result; +} +const aliasDescriptions = { + Binary: + "A cover of BinaryExpression and LogicalExpression, which share the same AST shape.", + Block: "Deprecated. Will be removed in Babel 8.", + BlockParent: + "A cover of AST nodes that start an execution context with new [LexicalEnvironment](https://tc39.es/ecma262/#table-additional-state-components-for-ecmascript-code-execution-contexts). In other words, they define the scope of `let` and `const` declarations.", + Class: + "A cover of ClassExpression and ClassDeclaration, which share the same AST shape.", + CompletionStatement: + "A statement that indicates the [completion records](https://tc39.es/ecma262/#sec-completion-record-specification-type). In other words, they define the control flow of the program, such as when should a loop break or an action throws critical errors.", + Conditional: + "A cover of ConditionalExpression and IfStatement, which share the same AST shape.", + Declaration: + "A cover of any [Declaration](https://tc39.es/ecma262/#prod-Declaration)s.", + EnumBody: "A cover of Flow enum bodies.", + EnumMember: "A cover of Flow enum membors.", + ExportDeclaration: + "A cover of any [ExportDeclaration](https://tc39.es/ecma262/#prod-ExportDeclaration)s.", + Expression: + "A cover of any [Expression](https://tc39.es/ecma262/#sec-ecmascript-language-expressions)s.", + ExpressionWrapper: + "A wrapper of expression that does not have runtime semantics.", + Flow: "A cover of AST nodes defined for Flow.", + FlowBaseAnnotation: "A cover of primary Flow type annotations.", + FlowDeclaration: "A cover of Flow declarations.", + FlowPredicate: "A cover of Flow predicates.", + FlowType: "A cover of Flow type annotations.", + For: "A cover of [ForStatement](https://tc39.es/ecma262/#sec-for-statement)s and [ForXStatement](#forxstatement)s.", + ForXStatement: + "A cover of [ForInStatements and ForOfStatements](https://tc39.es/ecma262/#sec-for-in-and-for-of-statements).", + Function: + "A cover of functions and [method](#method)s, the must have `body` and `params`. Note: `Function` is different to `FunctionParent`. For example, a `StaticBlock` is a `FunctionParent` but not `Function`.", + FunctionParent: + "A cover of AST nodes that start an execution context with new [VariableEnvironment](https://tc39.es/ecma262/#table-additional-state-components-for-ecmascript-code-execution-contexts). In other words, they define the scope of `var` declarations. FunctionParent did not include `Program` since Babel 7.", + Immutable: + "A cover of immutable objects and JSX elements. An object is [immutable](https://tc39.es/ecma262/#immutable-prototype-exotic-object) if no other properties can be defined once created.", + JSX: "A cover of AST nodes defined for [JSX](https://facebook.github.io/jsx/).", + LVal: "A cover of left hand side expressions used in the `left` of assignment expressions and [ForXStatement](#forxstatement)s. ", + Literal: + "A cover of [Literal](https://tc39.es/ecma262/#sec-primary-expression-literals)s, [Regular Expression Literal](https://tc39.es/ecma262/#sec-primary-expression-regular-expression-literals)s and [Template Literal](https://tc39.es/ecma262/#sec-template-literals)s.", + Loop: "A cover of loop statements.", + Method: "A cover of object methods and class methods.", + Miscellaneous: + "A cover of non-standard AST types that are sometimes useful for development.", + ModuleDeclaration: + "A cover of ImportDeclaration and [ExportDeclaration](#exportdeclaration)", + ModuleSpecifier: + "A cover of import and export specifiers. Note: It is _not_ the [ModuleSpecifier](https://tc39.es/ecma262/#prod-ModuleSpecifier) defined in the spec.", + ObjectMember: + "A cover of [members](https://tc39.es/ecma262/#prod-PropertyDefinitionList) in an object literal.", + Pattern: + "A cover of [BindingPattern](https://tc39.es/ecma262/#prod-BindingPattern) except Identifiers.", + PatternLike: + "A cover of [BindingPattern](https://tc39.es/ecma262/#prod-BindingPattern)s. ", + Private: "A cover of private class elements and private identifiers.", + Property: "A cover of object properties and class properties.", + Pureish: + "A cover of AST nodes which do not have side-effects. In other words, there is no observable behaviour changes if they are evaluated more than once.", + Scopable: + "A cover of [FunctionParent](#functionparent) and [BlockParent](#blockparent).", + Standardized: + "A cover of AST nodes which are part of an official ECMAScript specification.", + Statement: + "A cover of any [Statement](https://tc39.es/ecma262/#prod-Statement)s.", + TSBaseType: "A cover of primary TypeScript type annotations.", + TSEntityName: "A cover of ts entities.", + TSType: "A cover of TypeScript type annotations.", + TSTypeElement: "A cover of TypeScript type declarations.", + TypeScript: "A cover of AST nodes defined for TypeScript.", + Terminatorless: + "A cover of AST nodes whose semantic will change when a line terminator is inserted between the operator and the operand.", + UnaryLike: "A cover of UnaryExpression and SpreadElement.", + UserWhitespacable: "Deprecated. Will be removed in Babel 8.", + While: + "A cover of DoWhileStatement and WhileStatement, which share the same AST shape.", +}; +const mapAliasToNodeTypes = generateMapAliasToNodeTypes(); +readme.push("### Aliases"); +readme.push(""); +for (const alias of [...mapAliasToNodeTypes.keys()].sort()) { + const nodeTypes = mapAliasToNodeTypes.get(alias); + nodeTypes.sort(); + if (!(alias in aliasDescriptions)) { + throw new Error( + 'Missing alias descriptions of "' + + alias + + ", which covers " + + nodeTypes.join(",") + ); + } + readme.push("#### " + alias); + readme.push(""); + readme.push(aliasDescriptions[alias]); + readme.push("```javascript"); + readme.push("t.is" + alias + "(node);"); + readme.push("```"); + readme.push(""); + readme.push("Covered nodes: "); + for (const nodeType of nodeTypes) { + readme.push("- [`" + nodeType + "`](#" + nodeType.toLowerCase() + ")"); + } + readme.push(""); +} + +process.stdout.write(readme.join("\n")); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/flow.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/flow.js" new file mode 100644 index 0000000000000000000000000000000000000000..7fabcc67c52efdfa1b4cfa63356df59f6c05daf5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/flow.js" @@ -0,0 +1,260 @@ +import t from "../../lib/index.js"; +import stringifyValidator from "../utils/stringifyValidator.js"; +import toFunctionName from "../utils/toFunctionName.js"; + +const NODE_PREFIX = "BabelNode"; + +let code = `// NOTE: This file is autogenerated. Do not modify. +// See packages/babel-types/scripts/generators/flow.js for script used. + +declare class ${NODE_PREFIX}Comment { + value: string; + start: number; + end: number; + loc: ${NODE_PREFIX}SourceLocation; +} + +declare class ${NODE_PREFIX}CommentBlock extends ${NODE_PREFIX}Comment { + type: "CommentBlock"; +} + +declare class ${NODE_PREFIX}CommentLine extends ${NODE_PREFIX}Comment { + type: "CommentLine"; +} + +declare class ${NODE_PREFIX}SourceLocation { + start: { + line: number; + column: number; + }; + + end: { + line: number; + column: number; + }; +} + +declare class ${NODE_PREFIX} { + leadingComments?: Array<${NODE_PREFIX}Comment>; + innerComments?: Array<${NODE_PREFIX}Comment>; + trailingComments?: Array<${NODE_PREFIX}Comment>; + start: ?number; + end: ?number; + loc: ?${NODE_PREFIX}SourceLocation; + extra?: { [string]: mixed }; +}\n\n`; + +// + +const lines = []; + +for (const type in t.NODE_FIELDS) { + const fields = t.NODE_FIELDS[type]; + + const struct = ['type: "' + type + '";']; + const args = []; + const builderNames = t.BUILDER_KEYS[type]; + + Object.keys(t.NODE_FIELDS[type]) + .sort((fieldA, fieldB) => { + const indexA = t.BUILDER_KEYS[type].indexOf(fieldA); + const indexB = t.BUILDER_KEYS[type].indexOf(fieldB); + if (indexA === indexB) return fieldA < fieldB ? -1 : 1; + if (indexA === -1) return 1; + if (indexB === -1) return -1; + return indexA - indexB; + }) + .forEach(fieldName => { + const field = fields[fieldName]; + + let suffix = ""; + if (field.optional || field.default != null) suffix += "?"; + + let typeAnnotation = "any"; + + const validate = field.validate; + if (validate) { + typeAnnotation = stringifyValidator(validate, NODE_PREFIX); + } + + if (typeAnnotation) { + suffix += ": " + typeAnnotation; + } + if (builderNames.includes(fieldName)) { + args.push(t.toBindingIdentifierName(fieldName) + suffix); + } + + if (t.isValidIdentifier(fieldName)) { + struct.push(fieldName + suffix + ";"); + } + }); + + code += `declare class ${NODE_PREFIX}${type} extends ${NODE_PREFIX} { + ${struct.join("\n ").trim()} +}\n\n`; + + // Flow chokes on super() and import() :/ + if (type !== "Super" && type !== "Import") { + lines.push( + `declare export function ${toFunctionName(type)}(${args.join( + ", " + )}): ${NODE_PREFIX}${type};` + ); + } else { + const functionName = toFunctionName(type); + lines.push( + `declare function _${functionName}(${args.join( + ", " + )}): ${NODE_PREFIX}${type};`, + `declare export { _${functionName} as ${functionName} }` + ); + } +} + +for (const typeName of t.TYPES) { + const isDeprecated = !!t.DEPRECATED_KEYS[typeName]; + const realName = isDeprecated ? t.DEPRECATED_KEYS[typeName] : typeName; + + let decl = `declare export function is${typeName}(node: ?Object, opts?: ?Object): boolean`; + if (t.NODE_FIELDS[realName]) { + decl += ` %checks (node instanceof ${NODE_PREFIX}${realName})`; + } + lines.push(decl); + + lines.push( + `declare export function assert${typeName}(node: ?Object, opts?: ?Object): void` + ); +} + +lines.push( + `declare export var VISITOR_KEYS: { [type: string]: string[] }`, + + // assert/ + `declare export function assertNode(obj: any): void`, + + // builders/ + // eslint-disable-next-line max-len + `declare export function createTypeAnnotationBasedOnTypeof(type: 'string' | 'number' | 'undefined' | 'boolean' | 'function' | 'object' | 'symbol'): ${NODE_PREFIX}TypeAnnotation`, + // eslint-disable-next-line max-len + `declare export function createUnionTypeAnnotation(types: Array<${NODE_PREFIX}FlowType>): ${NODE_PREFIX}UnionTypeAnnotation`, + // eslint-disable-next-line max-len + `declare export function createFlowUnionType(types: Array<${NODE_PREFIX}FlowType>): ${NODE_PREFIX}UnionTypeAnnotation`, + // this smells like "internal API" + // eslint-disable-next-line max-len + `declare export function buildChildren(node: { children: Array<${NODE_PREFIX}JSXText | ${NODE_PREFIX}JSXExpressionContainer | ${NODE_PREFIX}JSXSpreadChild | ${NODE_PREFIX}JSXElement | ${NODE_PREFIX}JSXFragment | ${NODE_PREFIX}JSXEmptyExpression> }): Array<${NODE_PREFIX}JSXText | ${NODE_PREFIX}JSXExpressionContainer | ${NODE_PREFIX}JSXSpreadChild | ${NODE_PREFIX}JSXElement | ${NODE_PREFIX}JSXFragment>`, + + // clone/ + `declare export function clone(n: T): T;`, + `declare export function cloneDeep(n: T): T;`, + `declare export function cloneDeepWithoutLoc(n: T): T;`, + `declare export function cloneNode(n: T, deep?: boolean, withoutLoc?: boolean): T;`, + `declare export function cloneWithoutLoc(n: T): T;`, + + // comments/ + `declare type CommentTypeShorthand = 'leading' | 'inner' | 'trailing'`, + // eslint-disable-next-line max-len + `declare export function addComment(node: T, type: CommentTypeShorthand, content: string, line?: boolean): T`, + // eslint-disable-next-line max-len + `declare export function addComments(node: T, type: CommentTypeShorthand, comments: Array): T`, + `declare export function inheritInnerComments(node: BabelNode, parent: BabelNode): void`, + `declare export function inheritLeadingComments(node: BabelNode, parent: BabelNode): void`, + `declare export function inheritsComments(node: T, parent: BabelNode): void`, + `declare export function inheritTrailingComments(node: BabelNode, parent: BabelNode): void`, + `declare export function removeComments(node: T): T`, + + // converters/ + `declare export function ensureBlock(node: ${NODE_PREFIX}, key: string): ${NODE_PREFIX}BlockStatement`, + `declare export function toBindingIdentifierName(name?: ?string): string`, + // eslint-disable-next-line max-len + `declare export function toBlock(node: ${NODE_PREFIX}Statement | ${NODE_PREFIX}Expression, parent?: ${NODE_PREFIX}Function | null): ${NODE_PREFIX}BlockStatement`, + // eslint-disable-next-line max-len + `declare export function toComputedKey(node: ${NODE_PREFIX}Method | ${NODE_PREFIX}Property, key?: ${NODE_PREFIX}Expression | ${NODE_PREFIX}Identifier): ${NODE_PREFIX}Expression`, + // eslint-disable-next-line max-len + `declare export function toExpression(node: ${NODE_PREFIX}ExpressionStatement | ${NODE_PREFIX}Expression | ${NODE_PREFIX}Class | ${NODE_PREFIX}Function): ${NODE_PREFIX}Expression`, + `declare export function toIdentifier(name?: ?string): string`, + // eslint-disable-next-line max-len + `declare export function toKeyAlias(node: ${NODE_PREFIX}Method | ${NODE_PREFIX}Property, key?: ${NODE_PREFIX}): string`, + // toSequenceExpression relies on types that aren't declared in flow + // eslint-disable-next-line max-len + `declare export function toStatement(node: ${NODE_PREFIX}Statement | ${NODE_PREFIX}Class | ${NODE_PREFIX}Function | ${NODE_PREFIX}AssignmentExpression, ignore?: boolean): ${NODE_PREFIX}Statement | void`, + `declare export function valueToNode(value: any): ${NODE_PREFIX}Expression`, + + // modifications/ + // eslint-disable-next-line max-len + `declare export function removeTypeDuplicates(types: Array<${NODE_PREFIX}FlowType>): Array<${NODE_PREFIX}FlowType>`, + // eslint-disable-next-line max-len + `declare export function appendToMemberExpression(member: ${NODE_PREFIX}MemberExpression, append: ${NODE_PREFIX}, computed?: boolean): ${NODE_PREFIX}MemberExpression`, + // eslint-disable-next-line max-len + `declare export function inherits(child: T, parent: ${NODE_PREFIX} | null | void): T`, + // eslint-disable-next-line max-len + `declare export function prependToMemberExpression(member: ${NODE_PREFIX}MemberExpression, prepend: ${NODE_PREFIX}Expression): ${NODE_PREFIX}MemberExpression`, + `declare export function removeProperties(n: T, opts: ?{}): void;`, + `declare export function removePropertiesDeep(n: T, opts: ?{}): T;`, + + // retrievers/ + // eslint-disable-next-line max-len + `declare export var getBindingIdentifiers: { + (node: ${NODE_PREFIX}, duplicates?: boolean, outerOnly?: boolean): { [key: string]: ${NODE_PREFIX}Identifier | Array<${NODE_PREFIX}Identifier> }, + keys: { [type: string]: string[] } + }`, + // eslint-disable-next-line max-len + `declare export function getOuterBindingIdentifiers(node: BabelNode, duplicates?: boolean): { [key: string]: ${NODE_PREFIX}Identifier | Array<${NODE_PREFIX}Identifier> }`, + + // traverse/ + `declare type TraversalAncestors = Array<{ + node: BabelNode, + key: string, + index?: number, + }>; + declare type TraversalHandler = (BabelNode, TraversalAncestors, T) => void; + declare type TraversalHandlers = { + enter?: TraversalHandler, + exit?: TraversalHandler, + };`.replace(/(^|\n) {2}/g, "$1"), + // eslint-disable-next-line + `declare export function traverse(n: BabelNode, TraversalHandler | TraversalHandlers, state?: T): void;`, + `declare export function traverseFast(n: BabelNode, h: TraversalHandler, state?: T): void;`, + + // utils/ + // cleanJSXElementLiteralChild is not exported + // inherit is not exported + `declare export function shallowEqual(actual: Object, expected: Object): boolean`, + + // validators/ + // eslint-disable-next-line max-len + `declare export function buildMatchMemberExpression(match: string, allowPartial?: boolean): (?BabelNode) => boolean`, + `declare export function is(type: string, n: BabelNode, opts: Object): boolean;`, + `declare export function isBinding(node: BabelNode, parent: BabelNode, grandparent?: BabelNode): boolean`, + `declare export function isBlockScoped(node: BabelNode): boolean`, + `declare export function isImmutable(node: BabelNode): boolean`, + `declare export function isLet(node: BabelNode): boolean`, + `declare export function isNode(node: ?Object): boolean`, + `declare export function isNodesEquivalent(a: any, b: any): boolean`, + `declare export function isPlaceholderType(placeholderType: string, targetType: string): boolean`, + `declare export function isReferenced(node: BabelNode, parent: BabelNode, grandparent?: BabelNode): boolean`, + `declare export function isScope(node: BabelNode, parent: BabelNode): boolean`, + `declare export function isSpecifierDefault(specifier: BabelNodeModuleSpecifier): boolean`, + `declare export function isType(nodetype: ?string, targetType: string): boolean`, + `declare export function isValidES3Identifier(name: string): boolean`, + `declare export function isValidES3Identifier(name: string): boolean`, + `declare export function isValidIdentifier(name: string): boolean`, + `declare export function isVar(node: BabelNode): boolean`, + // eslint-disable-next-line max-len + `declare export function matchesPattern(node: ?BabelNode, match: string | Array, allowPartial?: boolean): boolean`, + `declare export function validate(n: BabelNode, key: string, value: mixed): void;` +); + +for (const type in t.FLIPPED_ALIAS_KEYS) { + const types = t.FLIPPED_ALIAS_KEYS[type]; + code += `type ${NODE_PREFIX}${type} = ${types + .map(type => `${NODE_PREFIX}${type}`) + .join(" | ")};\n`; +} + +code += `\ndeclare module "@babel/types" { + ${lines.join("\n").replace(/\n/g, "\n ").trim()} +}\n`; + +// + +process.stdout.write(code); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/typescript-legacy.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/typescript-legacy.js" new file mode 100644 index 0000000000000000000000000000000000000000..40da48f4e7d5fe6b9e869f3620633b8ae94481ac --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/typescript-legacy.js" @@ -0,0 +1,369 @@ +import t from "../../lib/index.js"; +import stringifyValidator from "../utils/stringifyValidator.js"; +import toFunctionName from "../utils/toFunctionName.js"; + +let code = `// NOTE: This file is autogenerated. Do not modify. +// See packages/babel-types/scripts/generators/typescript-legacy.js for script used. + +interface BaseComment { + value: string; + start: number; + end: number; + loc: SourceLocation; + type: "CommentBlock" | "CommentLine"; +} + +export interface CommentBlock extends BaseComment { + type: "CommentBlock"; +} + +export interface CommentLine extends BaseComment { + type: "CommentLine"; +} + +export type Comment = CommentBlock | CommentLine; + +export interface SourceLocation { + start: { + line: number; + column: number; + }; + + end: { + line: number; + column: number; + }; +} + +interface BaseNode { + leadingComments: ReadonlyArray | null; + innerComments: ReadonlyArray | null; + trailingComments: ReadonlyArray | null; + start: number | null; + end: number | null; + loc: SourceLocation | null; + type: Node["type"]; + extra?: Record; +} + +export type Node = ${t.TYPES.sort().join(" | ")};\n\n`; + +// + +const lines = []; + +for (const type in t.NODE_FIELDS) { + const fields = t.NODE_FIELDS[type]; + const fieldNames = sortFieldNames(Object.keys(t.NODE_FIELDS[type]), type); + const builderNames = t.BUILDER_KEYS[type]; + + const struct = ['type: "' + type + '";']; + const args = []; + + fieldNames.forEach(fieldName => { + const field = fields[fieldName]; + // Future / annoying TODO: + // MemberExpression.property, ObjectProperty.key and ObjectMethod.key need special cases; either: + // - convert the declaration to chain() like ClassProperty.key and ClassMethod.key, + // - declare an alias type for valid keys, detect the case and reuse it here, + // - declare a disjoint union with, for example, ObjectPropertyBase, + // ObjectPropertyLiteralKey and ObjectPropertyComputedKey, and declare ObjectProperty + // as "ObjectPropertyBase & (ObjectPropertyLiteralKey | ObjectPropertyComputedKey)" + let typeAnnotation = stringifyValidator(field.validate, ""); + + if (isNullable(field) && !hasDefault(field)) { + typeAnnotation += " | null"; + } + + if (builderNames.includes(fieldName)) { + if (areAllRemainingFieldsNullable(fieldName, builderNames, fields)) { + args.push( + `${t.toBindingIdentifierName(fieldName)}${ + isNullable(field) ? "?:" : ":" + } ${typeAnnotation}` + ); + } else { + args.push( + `${t.toBindingIdentifierName(fieldName)}: ${typeAnnotation}${ + isNullable(field) ? " | undefined" : "" + }` + ); + } + } + + const alphaNumeric = /^\w+$/; + + if (t.isValidIdentifier(fieldName) || alphaNumeric.test(fieldName)) { + struct.push(`${fieldName}: ${typeAnnotation};`); + } else { + struct.push(`"${fieldName}": ${typeAnnotation};`); + } + }); + + code += `export interface ${type} extends BaseNode { + ${struct.join("\n ").trim()} +}\n\n`; + + // super and import are reserved words in JavaScript + if (type !== "Super" && type !== "Import") { + lines.push( + `export function ${toFunctionName(type)}(${args.join(", ")}): ${type};` + ); + } else { + const functionName = toFunctionName(type); + lines.push( + `declare function _${functionName}(${args.join(", ")}): ${type};`, + `export { _${functionName} as ${functionName}}` + ); + } +} + +for (const typeName of t.TYPES) { + const isDeprecated = !!t.DEPRECATED_KEYS[typeName]; + const realName = isDeprecated ? t.DEPRECATED_KEYS[typeName] : typeName; + + const result = + t.NODE_FIELDS[realName] || t.FLIPPED_ALIAS_KEYS[realName] + ? `node is ${realName}` + : "boolean"; + + if (isDeprecated) { + lines.push(`/** @deprecated Use \`is${realName}\` */`); + } + lines.push( + `export function is${typeName}(node: object | null | undefined, opts?: object | null): ${result};` + ); + + if (isDeprecated) { + lines.push(`/** @deprecated Use \`assert${realName}\` */`); + } + lines.push( + `export function assert${typeName}(node: object | null | undefined, opts?: object | null): void;` + ); +} + +lines.push( + // assert/ + `export function assertNode(obj: any): void`, + + // builders/ + // eslint-disable-next-line max-len + `export function createTypeAnnotationBasedOnTypeof(type: 'string' | 'number' | 'undefined' | 'boolean' | 'function' | 'object' | 'symbol'): StringTypeAnnotation | VoidTypeAnnotation | NumberTypeAnnotation | BooleanTypeAnnotation | GenericTypeAnnotation`, + `export function createUnionTypeAnnotation(types: [T]): T`, + `export function createFlowUnionType(types: [T]): T`, + // this probably misbehaves if there are 0 elements, and it's not a UnionTypeAnnotation if there's only 1 + // it is possible to require "2 or more" for this overload ([T, T, ...T[]]) but it requires typescript 3.0 + `export function createUnionTypeAnnotation(types: ReadonlyArray): UnionTypeAnnotation`, + `export function createFlowUnionType(types: ReadonlyArray): UnionTypeAnnotation`, + // this smells like "internal API" + // eslint-disable-next-line max-len + `export function buildChildren(node: { children: ReadonlyArray }): JSXElement['children']`, + + // clone/ + `export function clone(n: T): T;`, + `export function cloneDeep(n: T): T;`, + `export function cloneDeepWithoutLoc(n: T): T;`, + `export function cloneNode(n: T, deep?: boolean, withoutLoc?: boolean): T;`, + `export function cloneWithoutLoc(n: T): T;`, + + // comments/ + `export type CommentTypeShorthand = 'leading' | 'inner' | 'trailing'`, + // eslint-disable-next-line max-len + `export function addComment(node: T, type: CommentTypeShorthand, content: string, line?: boolean): T`, + // eslint-disable-next-line max-len + `export function addComments(node: T, type: CommentTypeShorthand, comments: ReadonlyArray): T`, + `export function inheritInnerComments(node: Node, parent: Node): void`, + `export function inheritLeadingComments(node: Node, parent: Node): void`, + `export function inheritsComments(node: T, parent: Node): void`, + `export function inheritTrailingComments(node: Node, parent: Node): void`, + `export function removeComments(node: T): T`, + + // converters/ + // eslint-disable-next-line max-len + `export function ensureBlock(node: Extract): BlockStatement`, + // too complex? + // eslint-disable-next-line max-len + `export function ensureBlock = 'body'>(node: Extract>, key: K): BlockStatement`, + // gatherSequenceExpressions is not exported + `export function toBindingIdentifierName(name: { toString(): string } | null | undefined): string`, + `export function toBlock(node: Statement | Expression, parent?: Function | null): BlockStatement`, + // it is possible for `node` to be an arbitrary object if `key` is always provided, + // but that doesn't look like intended API + // eslint-disable-next-line max-len + `export function toComputedKey>(node: T, key?: Expression | Identifier): Expression`, + `export function toExpression(node: Function): FunctionExpression`, + `export function toExpression(node: Class): ClassExpression`, + `export function toExpression(node: ExpressionStatement | Expression | Class | Function): Expression`, + `export function toIdentifier(name: { toString(): string } | null | undefined): string`, + `export function toKeyAlias(node: Method | Property, key?: Node): string`, + // NOTE: this actually uses Scope from @babel/traverse, but we can't add a dependency on its types, + // as they live in @types. Declare the structural subset that is required. + // eslint-disable-next-line max-len + `export function toSequenceExpression(nodes: ReadonlyArray, scope: { push(value: { id: LVal; kind: 'var'; init?: Expression}): void; buildUndefinedNode(): Node }): SequenceExpression | undefined`, + `export function toStatement(node: AssignmentExpression, ignore?: boolean): ExpressionStatement`, + `export function toStatement(node: Statement | AssignmentExpression, ignore?: boolean): Statement`, + `export function toStatement(node: Class, ignore: true): ClassDeclaration | undefined`, + `export function toStatement(node: Class, ignore?: boolean): ClassDeclaration`, + `export function toStatement(node: Function, ignore: true): FunctionDeclaration | undefined`, + `export function toStatement(node: Function, ignore?: boolean): FunctionDeclaration`, + // eslint-disable-next-line max-len + `export function toStatement(node: Statement | Class | Function | AssignmentExpression, ignore: true): Statement | undefined`, + // eslint-disable-next-line max-len + `export function toStatement(node: Statement | Class | Function | AssignmentExpression, ignore?: boolean): Statement`, + // eslint-disable-next-line max-len + `export function valueToNode(value: undefined): Identifier`, // (should this not be a UnaryExpression to avoid shadowing?) + `export function valueToNode(value: boolean): BooleanLiteral`, + `export function valueToNode(value: null): NullLiteral`, + `export function valueToNode(value: string): StringLiteral`, + // Infinities and NaN need to use a BinaryExpression; negative values must be wrapped in UnaryExpression + `export function valueToNode(value: number): NumericLiteral | BinaryExpression | UnaryExpression`, + `export function valueToNode(value: RegExp): RegExpLiteral`, + // eslint-disable-next-line max-len + `export function valueToNode(value: ReadonlyArray): ArrayExpression`, + // this throws with objects that are not PlainObject according to lodash, + // or if there are non-valueToNode-able values + `export function valueToNode(value: object): ObjectExpression`, + // eslint-disable-next-line max-len + `export function valueToNode(value: undefined | boolean | null | string | number | RegExp | object): Expression`, + + // modifications/ + // eslint-disable-next-line max-len + `export function removeTypeDuplicates(types: ReadonlyArray): FlowType[]`, + // eslint-disable-next-line max-len + `export function appendToMemberExpression>(member: T, append: MemberExpression['property'], computed?: boolean): T`, + // eslint-disable-next-line max-len + `export function inherits(child: T, parent: Node | null | undefined): T`, + // eslint-disable-next-line max-len + `export function prependToMemberExpression>(member: T, prepend: MemberExpression['object']): T`, + `export function removeProperties( + n: Node, + opts?: { preserveComments: boolean } | null +): void;`, + `export function removePropertiesDeep( + n: T, + opts?: { preserveComments: boolean } | null +): T;`, + + // retrievers/ + // eslint-disable-next-line max-len + `export function getBindingIdentifiers(node: Node, duplicates: true, outerOnly?: boolean): Record>`, + // eslint-disable-next-line max-len + `export function getBindingIdentifiers(node: Node, duplicates?: false, outerOnly?: boolean): Record`, + // eslint-disable-next-line max-len + `export function getBindingIdentifiers(node: Node, duplicates: boolean, outerOnly?: boolean): Record>`, + // eslint-disable-next-line max-len + `export function getOuterBindingIdentifiers(node: Node, duplicates: true): Record>`, + `export function getOuterBindingIdentifiers(node: Node, duplicates?: false): Record`, + // eslint-disable-next-line max-len + `export function getOuterBindingIdentifiers(node: Node, duplicates: boolean): Record>`, + + // traverse/ + `export type TraversalAncestors = ReadonlyArray<{ + node: Node, + key: string, + index?: number, + }>; + export type TraversalHandler = ( + this: undefined, node: Node, parent: TraversalAncestors, type: T + ) => void; + export type TraversalHandlers = { + enter?: TraversalHandler, + exit?: TraversalHandler, + };`.replace(/(^|\n) {2}/g, "$1"), + // eslint-disable-next-line + `export function traverse(n: Node, h: TraversalHandler | TraversalHandlers, state?: T): void;`, + `export function traverseFast(n: Node, h: TraversalHandler, state?: T): void;`, + + // utils/ + // cleanJSXElementLiteralChild is not exported + // inherit is not exported + `export function shallowEqual(actual: object, expected: T): actual is T`, + + // validators/ + // eslint-disable-next-line max-len + `export function buildMatchMemberExpression(match: string, allowPartial?: boolean): (node: Node | null | undefined) => node is MemberExpression`, + // eslint-disable-next-line max-len + `export function is(type: T, n: Node | null | undefined, required?: undefined): n is Extract`, + // eslint-disable-next-line max-len + `export function is>(type: T, n: Node | null | undefined, required: Partial

): n is P`, + // eslint-disable-next-line max-len + `export function is

(type: string, n: Node | null | undefined, required: Partial

): n is P`, + `export function is(type: string, n: Node | null | undefined, required?: Partial): n is Node`, + `export function isBinding(node: Node, parent: Node, grandparent?: Node): boolean`, + // eslint-disable-next-line max-len + `export function isBlockScoped(node: Node): node is FunctionDeclaration | ClassDeclaration | VariableDeclaration`, + `export function isImmutable(node: Node): node is Immutable`, + `export function isLet(node: Node): node is VariableDeclaration`, + `export function isNode(node: object | null | undefined): node is Node`, + `export function isNodesEquivalent>(a: T, b: any): b is T`, + `export function isNodesEquivalent(a: any, b: any): boolean`, + `export function isPlaceholderType(placeholderType: Node['type'], targetType: Node['type']): boolean`, + `export function isReferenced(node: Node, parent: Node, grandparent?: Node): boolean`, + `export function isScope(node: Node, parent: Node): node is Scopable`, + `export function isSpecifierDefault(specifier: ModuleSpecifier): boolean`, + `export function isType(nodetype: string, targetType: T): nodetype is T`, + `export function isType(nodetype: string | null | undefined, targetType: string): boolean`, + `export function isValidES3Identifier(name: string): boolean`, + `export function isValidIdentifier(name: string): boolean`, + `export function isVar(node: Node): node is VariableDeclaration`, + // the MemberExpression implication is incidental, but it follows from the implementation + // eslint-disable-next-line max-len + `export function matchesPattern(node: Node | null | undefined, match: string | ReadonlyArray, allowPartial?: boolean): node is MemberExpression`, + // eslint-disable-next-line max-len + `export function validate(n: Node | null | undefined, key: K, value: T[K]): void;`, + `export function validate(n: Node, key: string, value: any): void;` +); + +for (const type in t.DEPRECATED_KEYS) { + code += `/** + * @deprecated Use \`${t.DEPRECATED_KEYS[type]}\` + */ +export type ${type} = ${t.DEPRECATED_KEYS[type]};\n +`; +} + +for (const type in t.FLIPPED_ALIAS_KEYS) { + const types = t.FLIPPED_ALIAS_KEYS[type]; + code += `export type ${type} = ${types + .map(type => `${type}`) + .join(" | ")};\n`; +} +code += "\n"; + +code += "export interface Aliases {\n"; +for (const type in t.FLIPPED_ALIAS_KEYS) { + code += ` ${type}: ${type};\n`; +} +code += "}\n\n"; + +code += lines.join("\n") + "\n"; + +// + +process.stdout.write(code); + +// + +function areAllRemainingFieldsNullable(fieldName, fieldNames, fields) { + const index = fieldNames.indexOf(fieldName); + return fieldNames.slice(index).every(_ => isNullable(fields[_])); +} + +function hasDefault(field) { + return field.default != null; +} + +function isNullable(field) { + return field.optional || hasDefault(field); +} + +function sortFieldNames(fields, type) { + return fields.sort((fieldA, fieldB) => { + const indexA = t.BUILDER_KEYS[type].indexOf(fieldA); + const indexB = t.BUILDER_KEYS[type].indexOf(fieldB); + if (indexA === indexB) return fieldA < fieldB ? -1 : 1; + if (indexA === -1) return 1; + if (indexB === -1) return -1; + return indexA - indexB; + }); +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/validators.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/validators.js" new file mode 100644 index 0000000000000000000000000000000000000000..acd6da657504103fcf12cba2bc532afffa681a88 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/generators/validators.js" @@ -0,0 +1,87 @@ +import definitions from "../../lib/definitions/index.js"; + +const has = Function.call.bind(Object.prototype.hasOwnProperty); + +function joinComparisons(leftArr, right) { + return ( + leftArr.map(JSON.stringify).join(` === ${right} || `) + ` === ${right}` + ); +} + +function addIsHelper(type, aliasKeys, deprecated) { + const targetType = JSON.stringify(type); + let aliasSource = ""; + if (aliasKeys) { + aliasSource = joinComparisons(aliasKeys, "nodeType"); + } + + let placeholderSource = ""; + const placeholderTypes = []; + if ( + definitions.PLACEHOLDERS.includes(type) && + has(definitions.FLIPPED_ALIAS_KEYS, type) + ) { + placeholderTypes.push(type); + } + if (has(definitions.PLACEHOLDERS_FLIPPED_ALIAS, type)) { + placeholderTypes.push(...definitions.PLACEHOLDERS_FLIPPED_ALIAS[type]); + } + if (placeholderTypes.length > 0) { + placeholderSource = + ' || nodeType === "Placeholder" && (' + + joinComparisons( + placeholderTypes, + "(node as t.Placeholder).expectedNode" + ) + + ")"; + } + + const result = + definitions.NODE_FIELDS[type] || definitions.FLIPPED_ALIAS_KEYS[type] + ? `node is t.${type}` + : "boolean"; + + return `export function is${type}(node: object | null | undefined, opts?: object | null): ${result} { + ${deprecated || ""} + if (!node) return false; + + const nodeType = (node as t.Node).type; + if (${ + aliasSource ? aliasSource : `nodeType === ${targetType}` + }${placeholderSource}) { + if (typeof opts === "undefined") { + return true; + } else { + return shallowEqual(node, opts); + } + } + + return false; + } + `; +} + +export default function generateValidators() { + let output = `/* + * This file is auto-generated! Do not modify it directly. + * To re-generate run 'make build' + */ +import shallowEqual from "../../utils/shallowEqual"; +import type * as t from "../..";\n\n`; + + Object.keys(definitions.VISITOR_KEYS).forEach(type => { + output += addIsHelper(type); + }); + + Object.keys(definitions.FLIPPED_ALIAS_KEYS).forEach(type => { + output += addIsHelper(type, definitions.FLIPPED_ALIAS_KEYS[type]); + }); + + Object.keys(definitions.DEPRECATED_KEYS).forEach(type => { + const newType = definitions.DEPRECATED_KEYS[type]; + const deprecated = `console.trace("The node type ${type} has been renamed to ${newType}");`; + output += addIsHelper(type, null, deprecated); + }); + + return output; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..5ffd9800b97cf26f3962c0fcda77cdb56cb946a8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/package.json" @@ -0,0 +1 @@ +{ "type": "module" } diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/utils/formatBuilderName.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/utils/formatBuilderName.js" new file mode 100644 index 0000000000000000000000000000000000000000..f00a3c4a610e22eb9711fa986f2dcf089f7cfda1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/utils/formatBuilderName.js" @@ -0,0 +1,8 @@ +const toLowerCase = Function.call.bind("".toLowerCase); + +export default function formatBuilderName(type) { + // FunctionExpression -> functionExpression + // JSXIdentifier -> jsxIdentifier + // V8IntrinsicIdentifier -> v8IntrinsicIdentifier + return type.replace(/^([A-Z](?=[a-z0-9])|[A-Z]+(?=[A-Z]))/, toLowerCase); +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/utils/lowerFirst.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/utils/lowerFirst.js" new file mode 100644 index 0000000000000000000000000000000000000000..012f252a7f6d28c081d074a2a2048131eeb4123a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/utils/lowerFirst.js" @@ -0,0 +1,3 @@ +export default function lowerFirst(string) { + return string[0].toLowerCase() + string.slice(1); +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/utils/stringifyValidator.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/utils/stringifyValidator.js" new file mode 100644 index 0000000000000000000000000000000000000000..4b8d29c12c3049c3832a19b24fa04de05834395c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/utils/stringifyValidator.js" @@ -0,0 +1,66 @@ +export default function stringifyValidator(validator, nodePrefix) { + if (validator === undefined) { + return "any"; + } + + if (validator.each) { + return `Array<${stringifyValidator(validator.each, nodePrefix)}>`; + } + + if (validator.chainOf) { + return stringifyValidator(validator.chainOf[1], nodePrefix); + } + + if (validator.oneOf) { + return validator.oneOf.map(JSON.stringify).join(" | "); + } + + if (validator.oneOfNodeTypes) { + return validator.oneOfNodeTypes.map(_ => nodePrefix + _).join(" | "); + } + + if (validator.oneOfNodeOrValueTypes) { + return validator.oneOfNodeOrValueTypes + .map(_ => { + return isValueType(_) ? _ : nodePrefix + _; + }) + .join(" | "); + } + + if (validator.type) { + return validator.type; + } + + if (validator.shapeOf) { + return ( + "{ " + + Object.keys(validator.shapeOf) + .map(shapeKey => { + const propertyDefinition = validator.shapeOf[shapeKey]; + if (propertyDefinition.validate) { + const isOptional = + propertyDefinition.optional || propertyDefinition.default != null; + return ( + shapeKey + + (isOptional ? "?: " : ": ") + + stringifyValidator(propertyDefinition.validate) + ); + } + return null; + }) + .filter(Boolean) + .join(", ") + + " }" + ); + } + + return ["any"]; +} + +/** + * Heuristic to decide whether or not the given type is a value type (eg. "null") + * or a Node type (eg. "Expression"). + */ +function isValueType(type) { + return type.charAt(0).toLowerCase() === type.charAt(0); +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/utils/toFunctionName.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/utils/toFunctionName.js" new file mode 100644 index 0000000000000000000000000000000000000000..2b645780ec623fe19f7d18e83c2a0f10b399ce9d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@babel/types/scripts/utils/toFunctionName.js" @@ -0,0 +1,4 @@ +export default function toFunctionName(typeName) { + const _ = typeName.replace(/^TS/, "ts").replace(/^JSX/, "jsx"); + return _.slice(0, 1).toLowerCase() + _.slice(1); +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/LICENSE.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/LICENSE.md" new file mode 100644 index 0000000000000000000000000000000000000000..0c95a4c7bb7ef8d695bea8ee011f5e22cf656137 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/LICENSE.md" @@ -0,0 +1,12 @@ +Copyright (c) 2011-2020, Sideway Inc, and project contributors +Copyright (c) 2011-2014, Walmart +Copyright (c) 2011, Yahoo Inc. + +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +* The names of any contributors may not be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS OFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..8771dbfddebd6e10f70eeb311367b2cd7164523e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/README.md" @@ -0,0 +1,19 @@ + + +# @hapi/hoek + +#### Utility methods for the hapi ecosystem. + +**hoek** is part of the **hapi** ecosystem and was designed to work seamlessly with the [hapi web framework](https://hapi.dev) and its other components (but works great on its own or with other frameworks). If you are using a different web framework and find this module useful, check out [hapi](https://hapi.dev) – they work even better together. + +This module is not intended to solve every problem for everyone, but rather as a central place to store hapi-specific methods. If you're looking for a general purpose utility module, check out [lodash](https://github.com/lodash/lodash). + +### Visit the [hapi.dev](https://hapi.dev) Developer Portal for tutorials, documentation, and support + +## Useful resources + +- [Documentation and API](https://hapi.dev/family/hoek/) +- [Version status](https://hapi.dev/resources/status/#hoek) (builds, dependencies, node versions, licenses, eol) +- [Changelog](https://hapi.dev/family/hoek/changelog/) +- [Project policies](https://hapi.dev/policies/) +- [Free and commercial support options](https://hapi.dev/support/) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/applyToDefaults.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/applyToDefaults.js" new file mode 100644 index 0000000000000000000000000000000000000000..9881247b98068f78d77c072c173d8baee8bfbff0 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/applyToDefaults.js" @@ -0,0 +1,102 @@ +'use strict'; + +const Assert = require('./assert'); +const Clone = require('./clone'); +const Merge = require('./merge'); +const Reach = require('./reach'); + + +const internals = {}; + + +module.exports = function (defaults, source, options = {}) { + + Assert(defaults && typeof defaults === 'object', 'Invalid defaults value: must be an object'); + Assert(!source || source === true || typeof source === 'object', 'Invalid source value: must be true, falsy or an object'); + Assert(typeof options === 'object', 'Invalid options: must be an object'); + + if (!source) { // If no source, return null + return null; + } + + if (options.shallow) { + return internals.applyToDefaultsWithShallow(defaults, source, options); + } + + const copy = Clone(defaults); + + if (source === true) { // If source is set to true, use defaults + return copy; + } + + const nullOverride = options.nullOverride !== undefined ? options.nullOverride : false; + return Merge(copy, source, { nullOverride, mergeArrays: false }); +}; + + +internals.applyToDefaultsWithShallow = function (defaults, source, options) { + + const keys = options.shallow; + Assert(Array.isArray(keys), 'Invalid keys'); + + const seen = new Map(); + const merge = source === true ? null : new Set(); + + for (let key of keys) { + key = Array.isArray(key) ? key : key.split('.'); // Pre-split optimization + + const ref = Reach(defaults, key); + if (ref && + typeof ref === 'object') { + + seen.set(ref, merge && Reach(source, key) || ref); + } + else if (merge) { + merge.add(key); + } + } + + const copy = Clone(defaults, {}, seen); + + if (!merge) { + return copy; + } + + for (const key of merge) { + internals.reachCopy(copy, source, key); + } + + const nullOverride = options.nullOverride !== undefined ? options.nullOverride : false; + return Merge(copy, source, { nullOverride, mergeArrays: false }); +}; + + +internals.reachCopy = function (dst, src, path) { + + for (const segment of path) { + if (!(segment in src)) { + return; + } + + const val = src[segment]; + + if (typeof val !== 'object' || val === null) { + return; + } + + src = val; + } + + const value = src; + let ref = dst; + for (let i = 0; i < path.length - 1; ++i) { + const segment = path[i]; + if (typeof ref[segment] !== 'object') { + ref[segment] = {}; + } + + ref = ref[segment]; + } + + ref[path[path.length - 1]] = value; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/assert.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/assert.js" new file mode 100644 index 0000000000000000000000000000000000000000..6a11e9336df2ec79437e8e2715e7a970f5a0f286 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/assert.js" @@ -0,0 +1,21 @@ +'use strict'; + +const AssertError = require('./error'); + +const internals = {}; + + +module.exports = function (condition, ...args) { + + if (condition) { + return; + } + + if (args.length === 1 && + args[0] instanceof Error) { + + throw args[0]; + } + + throw new AssertError(args); +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/bench.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/bench.js" new file mode 100644 index 0000000000000000000000000000000000000000..26ee19624dc093ef5096b67cf7161ca958fbf359 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/bench.js" @@ -0,0 +1,29 @@ +'use strict'; + +const internals = {}; + + +module.exports = internals.Bench = class { + + constructor() { + + this.ts = 0; + this.reset(); + } + + reset() { + + this.ts = internals.Bench.now(); + } + + elapsed() { + + return internals.Bench.now() - this.ts; + } + + static now() { + + const ts = process.hrtime(); + return (ts[0] * 1e3) + (ts[1] / 1e6); + } +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/block.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/block.js" new file mode 100644 index 0000000000000000000000000000000000000000..73fb9a537860521e11158ce1e7b1b531fa5fbf1f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/block.js" @@ -0,0 +1,12 @@ +'use strict'; + +const Ignore = require('./ignore'); + + +const internals = {}; + + +module.exports = function () { + + return new Promise(Ignore); +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/clone.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/clone.js" new file mode 100644 index 0000000000000000000000000000000000000000..e64defb86a9ba60ee4c21d39702edbdb77a1ed67 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/clone.js" @@ -0,0 +1,176 @@ +'use strict'; + +const Reach = require('./reach'); +const Types = require('./types'); +const Utils = require('./utils'); + + +const internals = { + needsProtoHack: new Set([Types.set, Types.map, Types.weakSet, Types.weakMap]) +}; + + +module.exports = internals.clone = function (obj, options = {}, _seen = null) { + + if (typeof obj !== 'object' || + obj === null) { + + return obj; + } + + let clone = internals.clone; + let seen = _seen; + + if (options.shallow) { + if (options.shallow !== true) { + return internals.cloneWithShallow(obj, options); + } + + clone = (value) => value; + } + else if (seen) { + const lookup = seen.get(obj); + if (lookup) { + return lookup; + } + } + else { + seen = new Map(); + } + + // Built-in object types + + const baseProto = Types.getInternalProto(obj); + if (baseProto === Types.buffer) { + return Buffer && Buffer.from(obj); // $lab:coverage:ignore$ + } + + if (baseProto === Types.date) { + return new Date(obj.getTime()); + } + + if (baseProto === Types.regex) { + return new RegExp(obj); + } + + // Generic objects + + const newObj = internals.base(obj, baseProto, options); + if (newObj === obj) { + return obj; + } + + if (seen) { + seen.set(obj, newObj); // Set seen, since obj could recurse + } + + if (baseProto === Types.set) { + for (const value of obj) { + newObj.add(clone(value, options, seen)); + } + } + else if (baseProto === Types.map) { + for (const [key, value] of obj) { + newObj.set(key, clone(value, options, seen)); + } + } + + const keys = Utils.keys(obj, options); + for (const key of keys) { + if (key === '__proto__') { + continue; + } + + if (baseProto === Types.array && + key === 'length') { + + newObj.length = obj.length; + continue; + } + + const descriptor = Object.getOwnPropertyDescriptor(obj, key); + if (descriptor) { + if (descriptor.get || + descriptor.set) { + + Object.defineProperty(newObj, key, descriptor); + } + else if (descriptor.enumerable) { + newObj[key] = clone(obj[key], options, seen); + } + else { + Object.defineProperty(newObj, key, { enumerable: false, writable: true, configurable: true, value: clone(obj[key], options, seen) }); + } + } + else { + Object.defineProperty(newObj, key, { + enumerable: true, + writable: true, + configurable: true, + value: clone(obj[key], options, seen) + }); + } + } + + return newObj; +}; + + +internals.cloneWithShallow = function (source, options) { + + const keys = options.shallow; + options = Object.assign({}, options); + options.shallow = false; + + const seen = new Map(); + + for (const key of keys) { + const ref = Reach(source, key); + if (typeof ref === 'object' || + typeof ref === 'function') { + + seen.set(ref, ref); + } + } + + return internals.clone(source, options, seen); +}; + + +internals.base = function (obj, baseProto, options) { + + if (options.prototype === false) { // Defaults to true + if (internals.needsProtoHack.has(baseProto)) { + return new baseProto.constructor(); + } + + return baseProto === Types.array ? [] : {}; + } + + const proto = Object.getPrototypeOf(obj); + if (proto && + proto.isImmutable) { + + return obj; + } + + if (baseProto === Types.array) { + const newObj = []; + if (proto !== baseProto) { + Object.setPrototypeOf(newObj, proto); + } + + return newObj; + } + + if (internals.needsProtoHack.has(baseProto)) { + const newObj = new proto.constructor(); + if (proto !== baseProto) { + Object.setPrototypeOf(newObj, proto); + } + + return newObj; + } + + return Object.create(proto); +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/contain.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/contain.js" new file mode 100644 index 0000000000000000000000000000000000000000..162ea3e8334059ed54b3be88f4993ff074cb7152 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/contain.js" @@ -0,0 +1,307 @@ +'use strict'; + +const Assert = require('./assert'); +const DeepEqual = require('./deepEqual'); +const EscapeRegex = require('./escapeRegex'); +const Utils = require('./utils'); + + +const internals = {}; + + +module.exports = function (ref, values, options = {}) { // options: { deep, once, only, part, symbols } + + /* + string -> string(s) + array -> item(s) + object -> key(s) + object -> object (key:value) + */ + + if (typeof values !== 'object') { + values = [values]; + } + + Assert(!Array.isArray(values) || values.length, 'Values array cannot be empty'); + + // String + + if (typeof ref === 'string') { + return internals.string(ref, values, options); + } + + // Array + + if (Array.isArray(ref)) { + return internals.array(ref, values, options); + } + + // Object + + Assert(typeof ref === 'object', 'Reference must be string or an object'); + return internals.object(ref, values, options); +}; + + +internals.array = function (ref, values, options) { + + if (!Array.isArray(values)) { + values = [values]; + } + + if (!ref.length) { + return false; + } + + if (options.only && + options.once && + ref.length !== values.length) { + + return false; + } + + let compare; + + // Map values + + const map = new Map(); + for (const value of values) { + if (!options.deep || + !value || + typeof value !== 'object') { + + const existing = map.get(value); + if (existing) { + ++existing.allowed; + } + else { + map.set(value, { allowed: 1, hits: 0 }); + } + } + else { + compare = compare || internals.compare(options); + + let found = false; + for (const [key, existing] of map.entries()) { + if (compare(key, value)) { + ++existing.allowed; + found = true; + break; + } + } + + if (!found) { + map.set(value, { allowed: 1, hits: 0 }); + } + } + } + + // Lookup values + + let hits = 0; + for (const item of ref) { + let match; + if (!options.deep || + !item || + typeof item !== 'object') { + + match = map.get(item); + } + else { + compare = compare || internals.compare(options); + + for (const [key, existing] of map.entries()) { + if (compare(key, item)) { + match = existing; + break; + } + } + } + + if (match) { + ++match.hits; + ++hits; + + if (options.once && + match.hits > match.allowed) { + + return false; + } + } + } + + // Validate results + + if (options.only && + hits !== ref.length) { + + return false; + } + + for (const match of map.values()) { + if (match.hits === match.allowed) { + continue; + } + + if (match.hits < match.allowed && + !options.part) { + + return false; + } + } + + return !!hits; +}; + + +internals.object = function (ref, values, options) { + + Assert(options.once === undefined, 'Cannot use option once with object'); + + const keys = Utils.keys(ref, options); + if (!keys.length) { + return false; + } + + // Keys list + + if (Array.isArray(values)) { + return internals.array(keys, values, options); + } + + // Key value pairs + + const symbols = Object.getOwnPropertySymbols(values).filter((sym) => values.propertyIsEnumerable(sym)); + const targets = [...Object.keys(values), ...symbols]; + + const compare = internals.compare(options); + const set = new Set(targets); + + for (const key of keys) { + if (!set.has(key)) { + if (options.only) { + return false; + } + + continue; + } + + if (!compare(values[key], ref[key])) { + return false; + } + + set.delete(key); + } + + if (set.size) { + return options.part ? set.size < targets.length : false; + } + + return true; +}; + + +internals.string = function (ref, values, options) { + + // Empty string + + if (ref === '') { + return values.length === 1 && values[0] === '' || // '' contains '' + !options.once && !values.some((v) => v !== ''); // '' contains multiple '' if !once + } + + // Map values + + const map = new Map(); + const patterns = []; + + for (const value of values) { + Assert(typeof value === 'string', 'Cannot compare string reference to non-string value'); + + if (value) { + const existing = map.get(value); + if (existing) { + ++existing.allowed; + } + else { + map.set(value, { allowed: 1, hits: 0 }); + patterns.push(EscapeRegex(value)); + } + } + else if (options.once || + options.only) { + + return false; + } + } + + if (!patterns.length) { // Non-empty string contains unlimited empty string + return true; + } + + // Match patterns + + const regex = new RegExp(`(${patterns.join('|')})`, 'g'); + const leftovers = ref.replace(regex, ($0, $1) => { + + ++map.get($1).hits; + return ''; // Remove from string + }); + + // Validate results + + if (options.only && + leftovers) { + + return false; + } + + let any = false; + for (const match of map.values()) { + if (match.hits) { + any = true; + } + + if (match.hits === match.allowed) { + continue; + } + + if (match.hits < match.allowed && + !options.part) { + + return false; + } + + // match.hits > match.allowed + + if (options.once) { + return false; + } + } + + return !!any; +}; + + +internals.compare = function (options) { + + if (!options.deep) { + return internals.shallow; + } + + const hasOnly = options.only !== undefined; + const hasPart = options.part !== undefined; + + const flags = { + prototype: hasOnly ? options.only : hasPart ? !options.part : false, + part: hasOnly ? !options.only : hasPart ? options.part : false + }; + + return (a, b) => DeepEqual(a, b, flags); +}; + + +internals.shallow = function (a, b) { + + return a === b; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/deepEqual.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/deepEqual.js" new file mode 100644 index 0000000000000000000000000000000000000000..a82647bea888693721d1383c2cc1bdabf02a1848 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/deepEqual.js" @@ -0,0 +1,317 @@ +'use strict'; + +const Types = require('./types'); + + +const internals = { + mismatched: null +}; + + +module.exports = function (obj, ref, options) { + + options = Object.assign({ prototype: true }, options); + + return !!internals.isDeepEqual(obj, ref, options, []); +}; + + +internals.isDeepEqual = function (obj, ref, options, seen) { + + if (obj === ref) { // Copied from Deep-eql, copyright(c) 2013 Jake Luer, jake@alogicalparadox.com, MIT Licensed, https://github.com/chaijs/deep-eql + return obj !== 0 || 1 / obj === 1 / ref; + } + + const type = typeof obj; + + if (type !== typeof ref) { + return false; + } + + if (obj === null || + ref === null) { + + return false; + } + + if (type === 'function') { + if (!options.deepFunction || + obj.toString() !== ref.toString()) { + + return false; + } + + // Continue as object + } + else if (type !== 'object') { + return obj !== obj && ref !== ref; // NaN + } + + const instanceType = internals.getSharedType(obj, ref, !!options.prototype); + switch (instanceType) { + case Types.buffer: + return Buffer && Buffer.prototype.equals.call(obj, ref); // $lab:coverage:ignore$ + case Types.promise: + return obj === ref; + case Types.regex: + return obj.toString() === ref.toString(); + case internals.mismatched: + return false; + } + + for (let i = seen.length - 1; i >= 0; --i) { + if (seen[i].isSame(obj, ref)) { + return true; // If previous comparison failed, it would have stopped execution + } + } + + seen.push(new internals.SeenEntry(obj, ref)); + + try { + return !!internals.isDeepEqualObj(instanceType, obj, ref, options, seen); + } + finally { + seen.pop(); + } +}; + + +internals.getSharedType = function (obj, ref, checkPrototype) { + + if (checkPrototype) { + if (Object.getPrototypeOf(obj) !== Object.getPrototypeOf(ref)) { + return internals.mismatched; + } + + return Types.getInternalProto(obj); + } + + const type = Types.getInternalProto(obj); + if (type !== Types.getInternalProto(ref)) { + return internals.mismatched; + } + + return type; +}; + + +internals.valueOf = function (obj) { + + const objValueOf = obj.valueOf; + if (objValueOf === undefined) { + return obj; + } + + try { + return objValueOf.call(obj); + } + catch (err) { + return err; + } +}; + + +internals.hasOwnEnumerableProperty = function (obj, key) { + + return Object.prototype.propertyIsEnumerable.call(obj, key); +}; + + +internals.isSetSimpleEqual = function (obj, ref) { + + for (const entry of Set.prototype.values.call(obj)) { + if (!Set.prototype.has.call(ref, entry)) { + return false; + } + } + + return true; +}; + + +internals.isDeepEqualObj = function (instanceType, obj, ref, options, seen) { + + const { isDeepEqual, valueOf, hasOwnEnumerableProperty } = internals; + const { keys, getOwnPropertySymbols } = Object; + + if (instanceType === Types.array) { + if (options.part) { + + // Check if any index match any other index + + for (const objValue of obj) { + for (const refValue of ref) { + if (isDeepEqual(objValue, refValue, options, seen)) { + return true; + } + } + } + } + else { + if (obj.length !== ref.length) { + return false; + } + + for (let i = 0; i < obj.length; ++i) { + if (!isDeepEqual(obj[i], ref[i], options, seen)) { + return false; + } + } + + return true; + } + } + else if (instanceType === Types.set) { + if (obj.size !== ref.size) { + return false; + } + + if (!internals.isSetSimpleEqual(obj, ref)) { + + // Check for deep equality + + const ref2 = new Set(Set.prototype.values.call(ref)); + for (const objEntry of Set.prototype.values.call(obj)) { + if (ref2.delete(objEntry)) { + continue; + } + + let found = false; + for (const refEntry of ref2) { + if (isDeepEqual(objEntry, refEntry, options, seen)) { + ref2.delete(refEntry); + found = true; + break; + } + } + + if (!found) { + return false; + } + } + } + } + else if (instanceType === Types.map) { + if (obj.size !== ref.size) { + return false; + } + + for (const [key, value] of Map.prototype.entries.call(obj)) { + if (value === undefined && !Map.prototype.has.call(ref, key)) { + return false; + } + + if (!isDeepEqual(value, Map.prototype.get.call(ref, key), options, seen)) { + return false; + } + } + } + else if (instanceType === Types.error) { + + // Always check name and message + + if (obj.name !== ref.name || + obj.message !== ref.message) { + + return false; + } + } + + // Check .valueOf() + + const valueOfObj = valueOf(obj); + const valueOfRef = valueOf(ref); + if ((obj !== valueOfObj || ref !== valueOfRef) && + !isDeepEqual(valueOfObj, valueOfRef, options, seen)) { + + return false; + } + + // Check properties + + const objKeys = keys(obj); + if (!options.part && + objKeys.length !== keys(ref).length && + !options.skip) { + + return false; + } + + let skipped = 0; + for (const key of objKeys) { + if (options.skip && + options.skip.includes(key)) { + + if (ref[key] === undefined) { + ++skipped; + } + + continue; + } + + if (!hasOwnEnumerableProperty(ref, key)) { + return false; + } + + if (!isDeepEqual(obj[key], ref[key], options, seen)) { + return false; + } + } + + if (!options.part && + objKeys.length - skipped !== keys(ref).length) { + + return false; + } + + // Check symbols + + if (options.symbols !== false) { // Defaults to true + const objSymbols = getOwnPropertySymbols(obj); + const refSymbols = new Set(getOwnPropertySymbols(ref)); + + for (const key of objSymbols) { + if (!options.skip || + !options.skip.includes(key)) { + + if (hasOwnEnumerableProperty(obj, key)) { + if (!hasOwnEnumerableProperty(ref, key)) { + return false; + } + + if (!isDeepEqual(obj[key], ref[key], options, seen)) { + return false; + } + } + else if (hasOwnEnumerableProperty(ref, key)) { + return false; + } + } + + refSymbols.delete(key); + } + + for (const key of refSymbols) { + if (hasOwnEnumerableProperty(ref, key)) { + return false; + } + } + } + + return true; +}; + + +internals.SeenEntry = class { + + constructor(obj, ref) { + + this.obj = obj; + this.ref = ref; + } + + isSame(obj, ref) { + + return this.obj === obj && this.ref === ref; + } +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/error.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/error.js" new file mode 100644 index 0000000000000000000000000000000000000000..9fc4f5df486c44a3fb9e8441030fa32a7a1a8abc --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/error.js" @@ -0,0 +1,26 @@ +'use strict'; + +const Stringify = require('./stringify'); + + +const internals = {}; + + +module.exports = class extends Error { + + constructor(args) { + + const msgs = args + .filter((arg) => arg !== '') + .map((arg) => { + + return typeof arg === 'string' ? arg : arg instanceof Error ? arg.message : Stringify(arg); + }); + + super(msgs.join(' ') || 'Unknown error'); + + if (typeof Error.captureStackTrace === 'function') { // $lab:coverage:ignore$ + Error.captureStackTrace(this, exports.assert); + } + } +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/escapeHeaderAttribute.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/escapeHeaderAttribute.js" new file mode 100644 index 0000000000000000000000000000000000000000..a0a4deea4a112349d98ef5497ee318ae863f07f7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/escapeHeaderAttribute.js" @@ -0,0 +1,16 @@ +'use strict'; + +const Assert = require('./assert'); + + +const internals = {}; + + +module.exports = function (attribute) { + + // Allowed value characters: !#$%&'()*+,-./:;<=>?@[]^_`{|}~ and space, a-z, A-Z, 0-9, \, " + + Assert(/^[ \w\!#\$%&'\(\)\*\+,\-\.\/\:;<\=>\?@\[\]\^`\{\|\}~\"\\]*$/.test(attribute), 'Bad attribute value (' + attribute + ')'); + + return attribute.replace(/\\/g, '\\\\').replace(/\"/g, '\\"'); // Escape quotes and slash +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/escapeHtml.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/escapeHtml.js" new file mode 100644 index 0000000000000000000000000000000000000000..ddef2b61fcfcaf4a3078e96f408aa51719228754 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/escapeHtml.js" @@ -0,0 +1,87 @@ +'use strict'; + +const internals = {}; + + +module.exports = function (input) { + + if (!input) { + return ''; + } + + let escaped = ''; + + for (let i = 0; i < input.length; ++i) { + + const charCode = input.charCodeAt(i); + + if (internals.isSafe(charCode)) { + escaped += input[i]; + } + else { + escaped += internals.escapeHtmlChar(charCode); + } + } + + return escaped; +}; + + +internals.escapeHtmlChar = function (charCode) { + + const namedEscape = internals.namedHtml[charCode]; + if (typeof namedEscape !== 'undefined') { + return namedEscape; + } + + if (charCode >= 256) { + return '&#' + charCode + ';'; + } + + const hexValue = charCode.toString(16).padStart(2, '0'); + return `&#x${hexValue};`; +}; + + +internals.isSafe = function (charCode) { + + return (typeof internals.safeCharCodes[charCode] !== 'undefined'); +}; + + +internals.namedHtml = { + '38': '&', + '60': '<', + '62': '>', + '34': '"', + '160': ' ', + '162': '¢', + '163': '£', + '164': '¤', + '169': '©', + '174': '®' +}; + + +internals.safeCharCodes = (function () { + + const safe = {}; + + for (let i = 32; i < 123; ++i) { + + if ((i >= 97) || // a-z + (i >= 65 && i <= 90) || // A-Z + (i >= 48 && i <= 57) || // 0-9 + i === 32 || // space + i === 46 || // . + i === 44 || // , + i === 45 || // - + i === 58 || // : + i === 95) { // _ + + safe[i] = null; + } + } + + return safe; +}()); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/escapeJson.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/escapeJson.js" new file mode 100644 index 0000000000000000000000000000000000000000..e6e94b38d8d26f26bbde33fb35a45c13c3ccecbe --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/escapeJson.js" @@ -0,0 +1,41 @@ +'use strict'; + +const internals = {}; + + +module.exports = function (input) { + + if (!input) { + return ''; + } + + const lessThan = 0x3C; + const greaterThan = 0x3E; + const andSymbol = 0x26; + const lineSeperator = 0x2028; + + // replace method + let charCode; + return input.replace(/[<>&\u2028\u2029]/g, (match) => { + + charCode = match.charCodeAt(0); + + if (charCode === lessThan) { + return '\\u003c'; + } + + if (charCode === greaterThan) { + return '\\u003e'; + } + + if (charCode === andSymbol) { + return '\\u0026'; + } + + if (charCode === lineSeperator) { + return '\\u2028'; + } + + return '\\u2029'; + }); +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/escapeRegex.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/escapeRegex.js" new file mode 100644 index 0000000000000000000000000000000000000000..3272497ef9953544226ab0028f596dbac84575b7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/escapeRegex.js" @@ -0,0 +1,11 @@ +'use strict'; + +const internals = {}; + + +module.exports = function (string) { + + // Escape ^$.*+-?=!:|\/()[]{}, + + return string.replace(/[\^\$\.\*\+\-\?\=\!\:\|\\\/\(\)\[\]\{\}\,]/g, '\\$&'); +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/flatten.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/flatten.js" new file mode 100644 index 0000000000000000000000000000000000000000..726e231403974a83dd4254482f4a4d3137455f4e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/flatten.js" @@ -0,0 +1,20 @@ +'use strict'; + +const internals = {}; + + +module.exports = internals.flatten = function (array, target) { + + const result = target || []; + + for (let i = 0; i < array.length; ++i) { + if (Array.isArray(array[i])) { + internals.flatten(array[i], result); + } + else { + result.push(array[i]); + } + } + + return result; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/ignore.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/ignore.js" new file mode 100644 index 0000000000000000000000000000000000000000..21ad144390d855575f98c50dd4bee2dd373a8e13 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/ignore.js" @@ -0,0 +1,6 @@ +'use strict'; + +const internals = {}; + + +module.exports = function () { }; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..e9bcdc286c6afdae0b6eadf2306e4f2323c55599 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/index.d.ts" @@ -0,0 +1,471 @@ +/// + + +/** + * Performs a deep comparison of the two values including support for circular dependencies, prototype, and enumerable properties. + * + * @param obj - The value being compared. + * @param ref - The reference value used for comparison. + * + * @return true when the two values are equal, otherwise false. + */ +export function deepEqual(obj: any, ref: any, options?: deepEqual.Options): boolean; + +export namespace deepEqual { + + interface Options { + + /** + * Compare functions with difference references by comparing their internal code and properties. + * + * @default false + */ + readonly deepFunction?: boolean; + + /** + * Allow partial match. + * + * @default false + */ + readonly part?: boolean; + + /** + * Compare the objects' prototypes. + * + * @default true + */ + readonly prototype?: boolean; + + /** + * List of object keys to ignore different values of. + * + * @default null + */ + readonly skip?: (string | symbol)[]; + + /** + * Compare symbol properties. + * + * @default true + */ + readonly symbols?: boolean; + } +} + + +/** + * Clone any value, object, or array. + * + * @param obj - The value being cloned. + * @param options - Optional settings. + * + * @returns A deep clone of `obj`. + */ +export function clone(obj: T, options?: clone.Options): T; + +export namespace clone { + + interface Options { + + /** + * Clone the object's prototype. + * + * @default true + */ + readonly prototype?: boolean; + + /** + * Include symbol properties. + * + * @default true + */ + readonly symbols?: boolean; + + /** + * Shallow clone the specified keys. + * + * @default undefined + */ + readonly shallow?: string[] | string[][] | boolean; + } +} + + +/** + * Merge all the properties of source into target. + * + * @param target - The object being modified. + * @param source - The object used to copy properties from. + * @param options - Optional settings. + * + * @returns The `target` object. + */ +export function merge(target: T1, source: T2, options?: merge.Options): T1 & T2; + +export namespace merge { + + interface Options { + + /** + * When true, null value from `source` overrides existing value in `target`. + * + * @default true + */ + readonly nullOverride?: boolean; + + /** + * When true, array value from `source` is merged with the existing value in `target`. + * + * @default false + */ + readonly mergeArrays?: boolean; + + /** + * Compare symbol properties. + * + * @default true + */ + readonly symbols?: boolean; + } +} + + +/** + * Apply source to a copy of the defaults. + * + * @param defaults - An object with the default values to use of `options` does not contain the same keys. + * @param source - The source used to override the `defaults`. + * @param options - Optional settings. + * + * @returns A copy of `defaults` with `source` keys overriding any conflicts. + */ +export function applyToDefaults(defaults: Partial, source: Partial | boolean | null, options?: applyToDefaults.Options): Partial; + +export namespace applyToDefaults { + + interface Options { + + /** + * When true, null value from `source` overrides existing value in `target`. + * + * @default true + */ + readonly nullOverride?: boolean; + + /** + * Shallow clone the specified keys. + * + * @default undefined + */ + readonly shallow?: string[] | string[][]; + } +} + + +/** + * Find the common unique items in two arrays. + * + * @param array1 - The first array to compare. + * @param array2 - The second array to compare. + * @param options - Optional settings. + * + * @return - An array of the common items. If `justFirst` is true, returns the first common item. + */ +export function intersect(array1: intersect.Array, array2: intersect.Array, options?: intersect.Options): Array; +export function intersect(array1: intersect.Array, array2: intersect.Array, options?: intersect.Options): T1 | T2; + +export namespace intersect { + + type Array = ArrayLike | Set | null; + + interface Options { + + /** + * When true, return the first overlapping value. + * + * @default false + */ + readonly first?: boolean; + } +} + + +/** + * Checks if the reference value contains the provided values. + * + * @param ref - The reference string, array, or object. + * @param values - A single or array of values to find within `ref`. If `ref` is an object, `values` can be a key name, an array of key names, or an object with key-value pairs to compare. + * + * @return true if the value contains the provided values, otherwise false. + */ +export function contain(ref: string, values: string | string[], options?: contain.Options): boolean; +export function contain(ref: any[], values: any, options?: contain.Options): boolean; +export function contain(ref: object, values: string | string[] | object, options?: Omit): boolean; + +export namespace contain { + + interface Options { + + /** + * Perform a deep comparison. + * + * @default false + */ + readonly deep?: boolean; + + /** + * Allow only one occurrence of each value. + * + * @default false + */ + readonly once?: boolean; + + /** + * Allow only values explicitly listed. + * + * @default false + */ + readonly only?: boolean; + + /** + * Allow partial match. + * + * @default false + */ + readonly part?: boolean; + + /** + * Include symbol properties. + * + * @default true + */ + readonly symbols?: boolean; + } +} + + +/** + * Flatten an array with sub arrays + * + * @param array - an array of items or other arrays to flatten. + * @param target - if provided, an array to shallow copy the flattened `array` items to + * + * @return a flat array of the provided values (appended to `target` is provided). + */ +export function flatten(array: ArrayLike>, target?: ArrayLike>): T[]; + + +/** + * Convert an object key chain string to reference. + * + * @param obj - the object from which to look up the value. + * @param chain - the string path of the requested value. The chain string is split into key names using `options.separator`, or an array containing each individual key name. A chain including negative numbers will work like a negative index on an array. + * + * @return The value referenced by the chain if found, otherwise undefined. If chain is null, undefined, or false, the object itself will be returned. + */ +export function reach(obj: object | null, chain: string | (string | number)[] | false | null | undefined, options?: reach.Options): any; + +export namespace reach { + + interface Options { + + /** + * String to split chain path on. Defaults to '.'. + * + * @default false + */ + readonly separator?: string; + + /** + * Value to return if the path or value is not present. No default value. + * + * @default false + */ + readonly default?: any; + + /** + * If true, will throw an error on missing member in the chain. Default to false. + * + * @default false + */ + readonly strict?: boolean; + + /** + * If true, allows traversing functions for properties. false will throw an error if a function is part of the chain. + * + * @default true + */ + readonly functions?: boolean; + + /** + * If true, allows traversing Set and Map objects for properties. false will return undefined regardless of the Set or Map passed. + * + * @default false + */ + readonly iterables?: boolean; + } +} + + +/** + * Replace string parameters (using format "{path.to.key}") with their corresponding object key values using `Hoek.reach()`. + * + * @param obj - the object from which to look up the value. + * @param template - the string containing {} enclosed key paths to be replaced. + * + * @return The template string with the {} enclosed keys replaced with looked-up values. + */ +export function reachTemplate(obj: object | null, template: string, options?: reach.Options): string; + + +/** + * Throw an error if condition is falsy. + * + * @param condition - If `condition` is not truthy, an exception is thrown. + * @param error - The error thrown if the condition fails. + * + * @return Does not return a value but throws if the `condition` is falsy. + */ +export function assert(condition: any, error: Error): void; + + +/** + * Throw an error if condition is falsy. + * + * @param condition - If `condition` is not truthy, an exception is thrown. + * @param args - Any number of values, concatenated together (space separated) to create the error message. + * + * @return Does not return a value but throws if the `condition` is falsy. + */ +export function assert(condition: any, ...args: any): void; + + +/** + * A benchmarking timer, using the internal node clock for maximum accuracy. + */ +export class Bench { + + constructor(); + + /** The starting timestamp expressed in the number of milliseconds since the epoch. */ + ts: number; + + /** The time in milliseconds since the object was created. */ + elapsed(): number; + + /** Reset the `ts` value to now. */ + reset(): void; + + /** The current time in milliseconds since the epoch. */ + static now(): number; +} + + +/** + * Escape string for Regex construction by prefixing all reserved characters with a backslash. + * + * @param string - The string to be escaped. + * + * @return The escaped string. + */ +export function escapeRegex(string: string): string; + + +/** + * Escape string for usage as an attribute value in HTTP headers. + * + * @param attribute - The string to be escaped. + * + * @return The escaped string. Will throw on invalid characters that are not supported to be escaped. + */ +export function escapeHeaderAttribute(attribute: string): string; + + +/** + * Escape string for usage in HTML. + * + * @param string - The string to be escaped. + * + * @return The escaped string. + */ +export function escapeHtml(string: string): string; + + +/** + * Escape string for usage in JSON. + * + * @param string - The string to be escaped. + * + * @return The escaped string. + */ +export function escapeJson(string: string): string; + + +/** + * Wraps a function to ensure it can only execute once. + * + * @param method - The function to be wrapped. + * + * @return The wrapped function. + */ +export function once(method: T): T; + + +/** + * A reusable no-op function. + */ +export function ignore(...ignore: any): void; + + +/** + * Converts a JavaScript value to a JavaScript Object Notation (JSON) string with protection against thrown errors. + * + * @param value A JavaScript value, usually an object or array, to be converted. + * @param replacer The JSON.stringify() `replacer` argument. + * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read. + * + * @return The JSON string. If the operation fails, an error string value is returned (no exception thrown). + */ +export function stringify(value: any, replacer?: any, space?: string | number): string; + + +/** + * Returns a Promise that resolves after the requested timeout. + * + * @param timeout - The number of milliseconds to wait before resolving the Promise. + * @param returnValue - The value that the Promise will resolve to. + * + * @return A Promise that resolves with `returnValue`. + */ +export function wait(timeout?: number, returnValue?: T): Promise; + + +/** + * Returns a Promise that never resolves. + */ +export function block(): Promise; + + +/** + * Determines if an object is a promise. + * + * @param promise - the object tested. + * + * @returns true if the object is a promise, otherwise false. + */ +export function isPromise(promise: any): boolean; + + +export namespace ts { + + /** + * Defines a type that can must be one of T or U but not both. + */ + type XOR = (T | U) extends object ? (internals.Without & U) | (internals.Without & T) : T | U; +} + + +declare namespace internals { + + type Without = { [P in Exclude]?: never }; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..2062f180322f422d0e3fc35e1c31d83a5cf14b53 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/index.js" @@ -0,0 +1,45 @@ +'use strict'; + +exports.applyToDefaults = require('./applyToDefaults'); + +exports.assert = require('./assert'); + +exports.Bench = require('./bench'); + +exports.block = require('./block'); + +exports.clone = require('./clone'); + +exports.contain = require('./contain'); + +exports.deepEqual = require('./deepEqual'); + +exports.Error = require('./error'); + +exports.escapeHeaderAttribute = require('./escapeHeaderAttribute'); + +exports.escapeHtml = require('./escapeHtml'); + +exports.escapeJson = require('./escapeJson'); + +exports.escapeRegex = require('./escapeRegex'); + +exports.flatten = require('./flatten'); + +exports.ignore = require('./ignore'); + +exports.intersect = require('./intersect'); + +exports.isPromise = require('./isPromise'); + +exports.merge = require('./merge'); + +exports.once = require('./once'); + +exports.reach = require('./reach'); + +exports.reachTemplate = require('./reachTemplate'); + +exports.stringify = require('./stringify'); + +exports.wait = require('./wait'); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/intersect.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/intersect.js" new file mode 100644 index 0000000000000000000000000000000000000000..59e6aaf16b430b278d8ae2df406e98888088f99e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/intersect.js" @@ -0,0 +1,41 @@ +'use strict'; + +const internals = {}; + + +module.exports = function (array1, array2, options = {}) { + + if (!array1 || + !array2) { + + return (options.first ? null : []); + } + + const common = []; + const hash = (Array.isArray(array1) ? new Set(array1) : array1); + const found = new Set(); + for (const value of array2) { + if (internals.has(hash, value) && + !found.has(value)) { + + if (options.first) { + return value; + } + + common.push(value); + found.add(value); + } + } + + return (options.first ? null : common); +}; + + +internals.has = function (ref, key) { + + if (typeof ref.has === 'function') { + return ref.has(key); + } + + return ref[key] !== undefined; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/isPromise.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/isPromise.js" new file mode 100644 index 0000000000000000000000000000000000000000..402980404de055c51ebbb068b71ca4e60004ce2c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/isPromise.js" @@ -0,0 +1,9 @@ +'use strict'; + +const internals = {}; + + +module.exports = function (promise) { + + return !!promise && typeof promise.then === 'function'; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/merge.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/merge.js" new file mode 100644 index 0000000000000000000000000000000000000000..47a1e1e9d0b09f601f92a3cf90b67a9cf2446470 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/merge.js" @@ -0,0 +1,78 @@ +'use strict'; + +const Assert = require('./assert'); +const Clone = require('./clone'); +const Utils = require('./utils'); + + +const internals = {}; + + +module.exports = internals.merge = function (target, source, options) { + + Assert(target && typeof target === 'object', 'Invalid target value: must be an object'); + Assert(source === null || source === undefined || typeof source === 'object', 'Invalid source value: must be null, undefined, or an object'); + + if (!source) { + return target; + } + + options = Object.assign({ nullOverride: true, mergeArrays: true }, options); + + if (Array.isArray(source)) { + Assert(Array.isArray(target), 'Cannot merge array onto an object'); + if (!options.mergeArrays) { + target.length = 0; // Must not change target assignment + } + + for (let i = 0; i < source.length; ++i) { + target.push(Clone(source[i], { symbols: options.symbols })); + } + + return target; + } + + const keys = Utils.keys(source, options); + for (let i = 0; i < keys.length; ++i) { + const key = keys[i]; + if (key === '__proto__' || + !Object.prototype.propertyIsEnumerable.call(source, key)) { + + continue; + } + + const value = source[key]; + if (value && + typeof value === 'object') { + + if (target[key] === value) { + continue; // Can occur for shallow merges + } + + if (!target[key] || + typeof target[key] !== 'object' || + (Array.isArray(target[key]) !== Array.isArray(value)) || + value instanceof Date || + (Buffer && Buffer.isBuffer(value)) || // $lab:coverage:ignore$ + value instanceof RegExp) { + + target[key] = Clone(value, { symbols: options.symbols }); + } + else { + internals.merge(target[key], value, options); + } + } + else { + if (value !== null && + value !== undefined) { // Explicit to preserve empty strings + + target[key] = value; + } + else if (options.nullOverride) { + target[key] = value; + } + } + } + + return target; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/once.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/once.js" new file mode 100644 index 0000000000000000000000000000000000000000..de94ea0ab065a9397f0389b90f5186c5d7fd9e67 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/once.js" @@ -0,0 +1,23 @@ +'use strict'; + +const internals = {}; + + +module.exports = function (method) { + + if (method._hoekOnce) { + return method; + } + + let once = false; + const wrapped = function (...args) { + + if (!once) { + once = true; + method(...args); + } + }; + + wrapped._hoekOnce = true; + return wrapped; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/reach.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/reach.js" new file mode 100644 index 0000000000000000000000000000000000000000..3791b37b20276440fbbd26be13d5cbbec6069d96 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/reach.js" @@ -0,0 +1,76 @@ +'use strict'; + +const Assert = require('./assert'); + + +const internals = {}; + + +module.exports = function (obj, chain, options) { + + if (chain === false || + chain === null || + chain === undefined) { + + return obj; + } + + options = options || {}; + if (typeof options === 'string') { + options = { separator: options }; + } + + const isChainArray = Array.isArray(chain); + + Assert(!isChainArray || !options.separator, 'Separator option no valid for array-based chain'); + + const path = isChainArray ? chain : chain.split(options.separator || '.'); + let ref = obj; + for (let i = 0; i < path.length; ++i) { + let key = path[i]; + const type = options.iterables && internals.iterables(ref); + + if (Array.isArray(ref) || + type === 'set') { + + const number = Number(key); + if (Number.isInteger(number)) { + key = number < 0 ? ref.length + number : number; + } + } + + if (!ref || + typeof ref === 'function' && options.functions === false || // Defaults to true + !type && ref[key] === undefined) { + + Assert(!options.strict || i + 1 === path.length, 'Missing segment', key, 'in reach path ', chain); + Assert(typeof ref === 'object' || options.functions === true || typeof ref !== 'function', 'Invalid segment', key, 'in reach path ', chain); + ref = options.default; + break; + } + + if (!type) { + ref = ref[key]; + } + else if (type === 'set') { + ref = [...ref][key]; + } + else { // type === 'map' + ref = ref.get(key); + } + } + + return ref; +}; + + +internals.iterables = function (ref) { + + if (ref instanceof Set) { + return 'set'; + } + + if (ref instanceof Map) { + return 'map'; + } +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/reachTemplate.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/reachTemplate.js" new file mode 100644 index 0000000000000000000000000000000000000000..e382d50c128c80c5c315a314ceea7f3ecefc5f40 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/reachTemplate.js" @@ -0,0 +1,16 @@ +'use strict'; + +const Reach = require('./reach'); + + +const internals = {}; + + +module.exports = function (obj, template, options) { + + return template.replace(/{([^{}]+)}/g, ($0, chain) => { + + const value = Reach(obj, chain, options); + return (value === undefined || value === null ? '' : value); + }); +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/stringify.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/stringify.js" new file mode 100644 index 0000000000000000000000000000000000000000..88d0fc4ed9d72a930efc39c81395e453aa095c63 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/stringify.js" @@ -0,0 +1,14 @@ +'use strict'; + +const internals = {}; + + +module.exports = function (...args) { + + try { + return JSON.stringify.apply(null, args); + } + catch (err) { + return '[Cannot display object: ' + err.message + ']'; + } +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/types.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/types.js" new file mode 100644 index 0000000000000000000000000000000000000000..c291b6578d0fd1a7fe30943b35372d9e55711807 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/types.js" @@ -0,0 +1,55 @@ +'use strict'; + +const internals = {}; + + +exports = module.exports = { + array: Array.prototype, + buffer: Buffer && Buffer.prototype, // $lab:coverage:ignore$ + date: Date.prototype, + error: Error.prototype, + generic: Object.prototype, + map: Map.prototype, + promise: Promise.prototype, + regex: RegExp.prototype, + set: Set.prototype, + weakMap: WeakMap.prototype, + weakSet: WeakSet.prototype +}; + + +internals.typeMap = new Map([ + ['[object Error]', exports.error], + ['[object Map]', exports.map], + ['[object Promise]', exports.promise], + ['[object Set]', exports.set], + ['[object WeakMap]', exports.weakMap], + ['[object WeakSet]', exports.weakSet] +]); + + +exports.getInternalProto = function (obj) { + + if (Array.isArray(obj)) { + return exports.array; + } + + if (Buffer && obj instanceof Buffer) { // $lab:coverage:ignore$ + return exports.buffer; + } + + if (obj instanceof Date) { + return exports.date; + } + + if (obj instanceof RegExp) { + return exports.regex; + } + + if (obj instanceof Error) { + return exports.error; + } + + const objName = Object.prototype.toString.call(obj); + return internals.typeMap.get(objName) || exports.generic; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/utils.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/utils.js" new file mode 100644 index 0000000000000000000000000000000000000000..bab1e8c414dca91fd8c94f311d1e50654195d202 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/utils.js" @@ -0,0 +1,9 @@ +'use strict'; + +const internals = {}; + + +exports.keys = function (obj, options = {}) { + + return options.symbols !== false ? Reflect.ownKeys(obj) : Object.getOwnPropertyNames(obj); // Defaults to true +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/wait.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/wait.js" new file mode 100644 index 0000000000000000000000000000000000000000..f34585efe5249ba123653e7637645fbcbcf0189b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/lib/wait.js" @@ -0,0 +1,13 @@ +'use strict'; + +const internals = {}; + + +module.exports = function (timeout, returnValue) { + + if (typeof timeout !== 'number' && timeout !== undefined) { + throw new TypeError('Timeout must be a number'); + } + + return new Promise((resolve) => setTimeout(resolve, timeout, returnValue)); +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..237c698826dbc4ca74ec643a7976c0c15438b629 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/hoek/package.json" @@ -0,0 +1,31 @@ +{ + "name": "@hapi/hoek", + "description": "General purpose node utilities", + "version": "9.2.1", + "repository": "git://github.com/hapijs/hoek", + "main": "lib/index.js", + "types": "lib/index.d.ts", + "keywords": [ + "utilities" + ], + "files": [ + "lib" + ], + "eslintConfig": { + "extends": [ + "plugin:@hapi/module" + ] + }, + "dependencies": {}, + "devDependencies": { + "@hapi/code": "8.x.x", + "@hapi/eslint-plugin": "*", + "@hapi/lab": "^24.0.0", + "typescript": "~4.0.2" + }, + "scripts": { + "test": "lab -a @hapi/code -t 100 -L -Y", + "test-cov-html": "lab -a @hapi/code -t 100 -L -r html -o coverage.html" + }, + "license": "BSD-3-Clause" +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/topo/LICENSE.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/topo/LICENSE.md" new file mode 100644 index 0000000000000000000000000000000000000000..0d96bf8fd94e6f708f10151588f40d3a5c5b2c09 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/topo/LICENSE.md" @@ -0,0 +1,10 @@ +Copyright (c) 2012-2020, Sideway Inc, and project contributors +Copyright (c) 2012-2014, Walmart. +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +* The names of any contributors may not be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS OFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/topo/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/topo/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..118bacba62e1d392b7ca4b3359011674ea48ef67 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/topo/README.md" @@ -0,0 +1,17 @@ + + +# @hapi/topo + +#### Topological sorting with grouping support. + +**topo** is part of the **hapi** ecosystem and was designed to work seamlessly with the [hapi web framework](https://hapi.dev) and its other components (but works great on its own or with other frameworks). If you are using a different web framework and find this module useful, check out [hapi](https://hapi.dev) – they work even better together. + +### Visit the [hapi.dev](https://hapi.dev) Developer Portal for tutorials, documentation, and support + +## Useful resources + +- [Documentation and API](https://hapi.dev/family/topo/) +- [Version status](https://hapi.dev/resources/status/#topo) (builds, dependencies, node versions, licenses, eol) +- [Changelog](https://hapi.dev/family/topo/changelog/) +- [Project policies](https://hapi.dev/policies/) +- [Free and commercial support options](https://hapi.dev/support/) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/topo/lib/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/topo/lib/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..e3367befe9e077a2405b0bb3f5c6ec8ef72ec064 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/topo/lib/index.d.ts" @@ -0,0 +1,60 @@ +export class Sorter { + + /** + * An array of the topologically sorted nodes. This list is renewed upon each call to topo.add(). + */ + nodes: T[]; + + /** + * Adds a node or list of nodes to be added and topologically sorted + * + * @param nodes - A mixed value or array of mixed values to be added as nodes to the topologically sorted list. + * @param options - Optional sorting information about the nodes. + * + * @returns Returns an array of the topologically sorted nodes. + */ + add(nodes: T | T[], options?: Options): T[]; + + /** + * Merges another Sorter object into the current object. + * + * @param others - The other object or array of objects to be merged into the current one. + * + * @returns Returns an array of the topologically sorted nodes. + */ + merge(others: Sorter | Sorter[]): T[]; + + /** + * Sorts the nodes array (only required if the manual option is used when adding items) + */ + sort(): T[]; +} + + +export interface Options { + + /** + * The sorting group the added items belong to + */ + readonly group?: string; + + /** + * The group or groups the added items must come before + */ + readonly before?: string | string[]; + + /** + * The group or groups the added items must come after + */ + readonly after?: string | string[]; + + /** + * A number used to sort items with equal before/after requirements + */ + readonly sort?: number; + + /** + * If true, the array is not sorted automatically until sort() is called + */ + readonly manual?: boolean; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/topo/lib/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/topo/lib/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..48c19dd217849b97af03d89035edef9c27223629 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/topo/lib/index.js" @@ -0,0 +1,225 @@ +'use strict'; + +const Assert = require('@hapi/hoek/lib/assert'); + + +const internals = {}; + + +exports.Sorter = class { + + constructor() { + + this._items = []; + this.nodes = []; + } + + add(nodes, options) { + + options = options || {}; + + // Validate rules + + const before = [].concat(options.before || []); + const after = [].concat(options.after || []); + const group = options.group || '?'; + const sort = options.sort || 0; // Used for merging only + + Assert(!before.includes(group), `Item cannot come before itself: ${group}`); + Assert(!before.includes('?'), 'Item cannot come before unassociated items'); + Assert(!after.includes(group), `Item cannot come after itself: ${group}`); + Assert(!after.includes('?'), 'Item cannot come after unassociated items'); + + if (!Array.isArray(nodes)) { + nodes = [nodes]; + } + + for (const node of nodes) { + const item = { + seq: this._items.length, + sort, + before, + after, + group, + node + }; + + this._items.push(item); + } + + // Insert event + + if (!options.manual) { + const valid = this._sort(); + Assert(valid, 'item', group !== '?' ? `added into group ${group}` : '', 'created a dependencies error'); + } + + return this.nodes; + } + + merge(others) { + + if (!Array.isArray(others)) { + others = [others]; + } + + for (const other of others) { + if (other) { + for (const item of other._items) { + this._items.push(Object.assign({}, item)); // Shallow cloned + } + } + } + + // Sort items + + this._items.sort(internals.mergeSort); + for (let i = 0; i < this._items.length; ++i) { + this._items[i].seq = i; + } + + const valid = this._sort(); + Assert(valid, 'merge created a dependencies error'); + + return this.nodes; + } + + sort() { + + const valid = this._sort(); + Assert(valid, 'sort created a dependencies error'); + + return this.nodes; + } + + _sort() { + + // Construct graph + + const graph = {}; + const graphAfters = Object.create(null); // A prototype can bungle lookups w/ false positives + const groups = Object.create(null); + + for (const item of this._items) { + const seq = item.seq; // Unique across all items + const group = item.group; + + // Determine Groups + + groups[group] = groups[group] || []; + groups[group].push(seq); + + // Build intermediary graph using 'before' + + graph[seq] = item.before; + + // Build second intermediary graph with 'after' + + for (const after of item.after) { + graphAfters[after] = graphAfters[after] || []; + graphAfters[after].push(seq); + } + } + + // Expand intermediary graph + + for (const node in graph) { + const expandedGroups = []; + + for (const graphNodeItem in graph[node]) { + const group = graph[node][graphNodeItem]; + groups[group] = groups[group] || []; + expandedGroups.push(...groups[group]); + } + + graph[node] = expandedGroups; + } + + // Merge intermediary graph using graphAfters into final graph + + for (const group in graphAfters) { + if (groups[group]) { + for (const node of groups[group]) { + graph[node].push(...graphAfters[group]); + } + } + } + + // Compile ancestors + + const ancestors = {}; + for (const node in graph) { + const children = graph[node]; + for (const child of children) { + ancestors[child] = ancestors[child] || []; + ancestors[child].push(node); + } + } + + // Topo sort + + const visited = {}; + const sorted = []; + + for (let i = 0; i < this._items.length; ++i) { // Looping through item.seq values out of order + let next = i; + + if (ancestors[i]) { + next = null; + for (let j = 0; j < this._items.length; ++j) { // As above, these are item.seq values + if (visited[j] === true) { + continue; + } + + if (!ancestors[j]) { + ancestors[j] = []; + } + + const shouldSeeCount = ancestors[j].length; + let seenCount = 0; + for (let k = 0; k < shouldSeeCount; ++k) { + if (visited[ancestors[j][k]]) { + ++seenCount; + } + } + + if (seenCount === shouldSeeCount) { + next = j; + break; + } + } + } + + if (next !== null) { + visited[next] = true; + sorted.push(next); + } + } + + if (sorted.length !== this._items.length) { + return false; + } + + const seqIndex = {}; + for (const item of this._items) { + seqIndex[item.seq] = item; + } + + this._items = []; + this.nodes = []; + + for (const value of sorted) { + const sortedItem = seqIndex[value]; + this.nodes.push(sortedItem.node); + this._items.push(sortedItem); + } + + return true; + } +}; + + +internals.mergeSort = (a, b) => { + + return a.sort === b.sort ? 0 : (a.sort < b.sort ? -1 : 1); +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/topo/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/topo/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..19e7783d7047b0122266999e75aa8ed5dbe32f87 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@hapi/topo/package.json" @@ -0,0 +1,30 @@ +{ + "name": "@hapi/topo", + "description": "Topological sorting with grouping support", + "version": "5.1.0", + "repository": "git://github.com/hapijs/topo", + "main": "lib/index.js", + "types": "lib/index.d.ts", + "files": [ + "lib" + ], + "keywords": [ + "topological", + "sort", + "toposort", + "topsort" + ], + "dependencies": { + "@hapi/hoek": "^9.0.0" + }, + "devDependencies": { + "@hapi/code": "8.x.x", + "@hapi/lab": "24.x.x", + "typescript": "~4.0.2" + }, + "scripts": { + "test": "lab -a @hapi/code -t 100 -L -Y", + "test-cov-html": "lab -a @hapi/code -t 100 -L -r html -o coverage.html" + }, + "license": "BSD-3-Clause" +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..26a182d25951133615cba9fe3075731fe7033ee0 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/LICENSE" @@ -0,0 +1,13 @@ +Copyright 2019 Joseph Gentle + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..79e129f0b5abe48f00661170b49edf0e40b0163a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/README.md" @@ -0,0 +1,19 @@ +# Resolvable promise wrapper + +This is a tiny promise wrapper which gives you promises which have explicit `promise.resolve()` / `promise.reject()` methods. + +Eg: + +```javascript +const resolvable = require('resolvable') + +const myPromise = resolvable() + +;(async () => { + doThingA() + await myPromise + doThingB() +})() + +setTimeout(() => myPromise.resolve(), 1000) +``` diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..f1508afcd76d302e68b45dbec447e3635915bf76 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/index.d.ts" @@ -0,0 +1,6 @@ +export declare type Resolvable = Promise & { + resolve: (t: T) => void; + reject: (e: any) => void; +}; +declare const resolvablePromise: () => Resolvable; +export default resolvablePromise; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..18cf11ce2a1ef742c3a6c540bf5fc4274cbe90a2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/index.js" @@ -0,0 +1,16 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const resolvablePromise = () => { + let resolve; + let reject; + const promise = new Promise((_resolve, _reject) => { + resolve = _resolve; + reject = _reject; + }); + promise.resolve = resolve; + promise.reject = reject; + return promise; +}; +exports.default = resolvablePromise; +module.exports = resolvablePromise; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/index.js.map" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/index.js.map" new file mode 100644 index 0000000000000000000000000000000000000000..efcaf66f3bbdb364df13eaf8d10ddc11aa1eaeb4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/index.js.map" @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;AAIA,MAAM,iBAAiB,GAAG,GAA4B,EAAE;IACtD,IAAI,OAAyB,CAAA;IAC7B,IAAI,MAA0B,CAAA;IAC9B,MAAM,OAAO,GAAG,IAAI,OAAO,CAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE;QACnD,OAAO,GAAG,QAAQ,CAAA;QAClB,MAAM,GAAG,OAAO,CAAA;IAClB,CAAC,CAAkB,CAAA;IACnB,OAAO,CAAC,OAAO,GAAG,OAAQ,CAAA;IAC1B,OAAO,CAAC,MAAM,GAAG,MAAO,CAAA;IACxB,OAAO,OAAO,CAAA;AAChB,CAAC,CAAA;AACD,kBAAe,iBAAiB,CAAA;AAChC,MAAM,CAAC,OAAO,GAAG,iBAAiB,CAAA"} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/index.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/index.ts" new file mode 100644 index 0000000000000000000000000000000000000000..eecf9098adf02d9dee40d1fad2a83778cca5f898 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/index.ts" @@ -0,0 +1,17 @@ +export type Resolvable = Promise & { + resolve: (t: T) => void, + reject: (e: any) => void, +} +const resolvablePromise = (): Resolvable => { + let resolve: (val: T) => void + let reject: (err: any) => void + const promise = new Promise((_resolve, _reject) => { + resolve = _resolve + reject = _reject + }) as Resolvable + promise.resolve = resolve! + promise.reject = reject! + return promise +} +export default resolvablePromise +module.exports = resolvablePromise diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..68b76ad6714d1fb99b443e6520bc66db632e11ba --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@josephg/resolvable/package.json" @@ -0,0 +1,21 @@ +{ + "name": "@josephg/resolvable", + "version": "1.0.1", + "description": "Promise with .resolve() and .reject() methods", + "main": "index.js", + "types": "index.d.ts", + "scripts": { + "prepare": "npm run build", + "build": "tsc" + }, + "files": [ + "index.*" + ], + "repository": "git@github.com:josephg/resolvable.git", + "author": "Joseph Gentle ", + "license": "ISC", + "devDependencies": { + "@types/node": "^15.0.1", + "typescript": "^4.2.4" + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..0a81b2ade1c77efc8ed0e73172efd07ea1c73539 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/LICENSE" @@ -0,0 +1,19 @@ +Copyright 2019 Justin Ridgewell + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..2fe70df77ec8e109faf2bc857e9893d486ad9eb1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/README.md" @@ -0,0 +1,40 @@ +# @jridgewell/resolve-uri + +> Resolve a URI relative to an optional base URI + +Resolve any combination of absolute URIs, protocol-realtive URIs, absolute paths, or relative paths. + +## Installation + +```sh +npm install @jridgewell/resolve-uri +``` + +## Usage + +```typescript +function resolve(input: string, base?: string): string; +``` + +```js +import resolve from '@jridgewell/resolve-uri'; + +resolve('foo', 'https://example.com'); // => 'https://example.com/foo' +``` + +| Input | Base | Resolution | Explanation | +|-----------------------|-------------------------|--------------------------------|--------------------------------------------------------------| +| `https://example.com` | _any_ | `https://example.com/` | Input is normalized only | +| `//example.com` | `https://base.com/` | `https://example.com/` | Input inherits the base's protocol | +| `//example.com` | _rest_ | `//example.com/` | Input is normalized only | +| `/example` | `https://base.com/` | `https://base.com/example` | Input inherits the base's origin | +| `/example` | `//base.com/` | `//base.com/example` | Input inherits the base's host and remains protocol relative | +| `/example` | _rest_ | `/example` | Input is normalized only | +| `example` | `https://base.com/dir/` | `https://base.com/dir/example` | Input is joined with the base | +| `example` | `https://base.com/file` | `https://base.com/example` | Input is joined with the base without its file | +| `example` | `//base.com/dir/` | `//base.com/dir/example` | Input is joined with the base's last directory | +| `example` | `//base.com/file` | `//base.com/example` | Input is joined with the base without its file | +| `example` | `/base/dir/` | `/base/dir/example` | Input is joined with the base's last directory | +| `example` | `/base/file` | `/base/example` | Input is joined with the base without its file | +| `example` | `base/dir/` | `base/dir/example` | Input is joined with the base's last directory | +| `example` | `base/file` | `base/example` | Input is joined with the base without its file | diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs" new file mode 100644 index 0000000000000000000000000000000000000000..b7fa4bd8208cc2e4036c2dc9144873458683b93d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs" @@ -0,0 +1,177 @@ +// Matches the scheme of a URL, eg "http://" +const schemeRegex = /^[\w+.-]+:\/\//; +/** + * Matches the parts of a URL: + * 1. Scheme, including ":", guaranteed. + * 2. User/password, including "@", optional. + * 3. Host, guaranteed. + * 4. Port, including ":", optional. + * 5. Path, including "/", optional. + */ +const urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?/; +function isAbsoluteUrl(input) { + return schemeRegex.test(input); +} +function isSchemeRelativeUrl(input) { + return input.startsWith('//'); +} +function isAbsolutePath(input) { + return input.startsWith('/'); +} +function parseAbsoluteUrl(input) { + const match = urlRegex.exec(input); + return { + scheme: match[1], + user: match[2] || '', + host: match[3], + port: match[4] || '', + path: match[5] || '/', + relativePath: false, + }; +} +function parseUrl(input) { + if (isSchemeRelativeUrl(input)) { + const url = parseAbsoluteUrl('http:' + input); + url.scheme = ''; + return url; + } + if (isAbsolutePath(input)) { + const url = parseAbsoluteUrl('http://foo.com' + input); + url.scheme = ''; + url.host = ''; + return url; + } + if (!isAbsoluteUrl(input)) { + const url = parseAbsoluteUrl('http://foo.com/' + input); + url.scheme = ''; + url.host = ''; + url.relativePath = true; + return url; + } + return parseAbsoluteUrl(input); +} +function stripPathFilename(path) { + // If a path ends with a parent directory "..", then it's a relative path with excess parent + // paths. It's not a file, so we can't strip it. + if (path.endsWith('/..')) + return path; + const index = path.lastIndexOf('/'); + return path.slice(0, index + 1); +} +function mergePaths(url, base) { + // If we're not a relative path, then we're an absolute path, and it doesn't matter what base is. + if (!url.relativePath) + return; + normalizePath(base); + // If the path is just a "/", then it was an empty path to begin with (remember, we're a relative + // path). + if (url.path === '/') { + url.path = base.path; + } + else { + // Resolution happens relative to the base path's directory, not the file. + url.path = stripPathFilename(base.path) + url.path; + } + // If the base path is absolute, then our path is now absolute too. + url.relativePath = base.relativePath; +} +/** + * The path can have empty directories "//", unneeded parents "foo/..", or current directory + * "foo/.". We need to normalize to a standard representation. + */ +function normalizePath(url) { + const { relativePath } = url; + const pieces = url.path.split('/'); + // We need to preserve the first piece always, so that we output a leading slash. The item at + // pieces[0] is an empty string. + let pointer = 1; + // Positive is the number of real directories we've output, used for popping a parent directory. + // Eg, "foo/bar/.." will have a positive 2, and we can decrement to be left with just "foo". + let positive = 0; + // We need to keep a trailing slash if we encounter an empty directory (eg, splitting "foo/" will + // generate `["foo", ""]` pieces). And, if we pop a parent directory. But once we encounter a + // real directory, we won't need to append, unless the other conditions happen again. + let addTrailingSlash = false; + for (let i = 1; i < pieces.length; i++) { + const piece = pieces[i]; + // An empty directory, could be a trailing slash, or just a double "//" in the path. + if (!piece) { + addTrailingSlash = true; + continue; + } + // If we encounter a real directory, then we don't need to append anymore. + addTrailingSlash = false; + // A current directory, which we can always drop. + if (piece === '.') + continue; + // A parent directory, we need to see if there are any real directories we can pop. Else, we + // have an excess of parents, and we'll need to keep the "..". + if (piece === '..') { + if (positive) { + addTrailingSlash = true; + positive--; + pointer--; + } + else if (relativePath) { + // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute + // URL, protocol relative URL, or an absolute path, we don't need to keep excess. + pieces[pointer++] = piece; + } + continue; + } + // We've encountered a real directory. Move it to the next insertion pointer, which accounts for + // any popped or dropped directories. + pieces[pointer++] = piece; + positive++; + } + let path = ''; + for (let i = 1; i < pointer; i++) { + path += '/' + pieces[i]; + } + if (!path || (addTrailingSlash && !path.endsWith('/..'))) { + path += '/'; + } + url.path = path; +} +/** + * Attempts to resolve `input` URL/path relative to `base`. + */ +function resolve(input, base) { + if (!input && !base) + return ''; + const url = parseUrl(input); + // If we have a base, and the input isn't already an absolute URL, then we need to merge. + if (base && !url.scheme) { + const baseUrl = parseUrl(base); + url.scheme = baseUrl.scheme; + // If there's no host, then we were just a path. + if (!url.host || baseUrl.scheme === 'file:') { + // The host, user, and port are joined, you can't copy one without the others. + url.user = baseUrl.user; + url.host = baseUrl.host; + url.port = baseUrl.port; + } + mergePaths(url, baseUrl); + } + normalizePath(url); + // If the input (and base, if there was one) are both relative, then we need to output a relative. + if (url.relativePath) { + // The first char is always a "/". + const path = url.path.slice(1); + if (!path) + return '.'; + // If base started with a leading ".", or there is no base and input started with a ".", then we + // need to ensure that the relative path starts with a ".". We don't know if relative starts + // with a "..", though, so check before prepending. + const keepRelative = (base || input).startsWith('.'); + return !keepRelative || path.startsWith('.') ? path : './' + path; + } + // If there's no host (and no scheme/user/port), then we need to output an absolute path. + if (!url.scheme && !url.host) + return url.path; + // We're outputting either an absolute URL, or a protocol relative one. + return `${url.scheme}//${url.user}${url.host}${url.port}${url.path}`; +} + +export { resolve as default }; +//# sourceMappingURL=resolve-uri.mjs.map diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map" new file mode 100644 index 0000000000000000000000000000000000000000..e66071147f207145a07a6a2a67fecaaa165fe8e1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map" @@ -0,0 +1 @@ +{"version":3,"file":"resolve-uri.mjs","sources":["../../src/resolve-uri.ts"],"sourcesContent":["// Matches the scheme of a URL, eg \"http://\"\nconst schemeRegex = /^[\\w+.-]+:\\/\\//;\n\n/**\n * Matches the parts of a URL:\n * 1. Scheme, including \":\", guaranteed.\n * 2. User/password, including \"@\", optional.\n * 3. Host, guaranteed.\n * 4. Port, including \":\", optional.\n * 5. Path, including \"/\", optional.\n */\nconst urlRegex = /^([\\w+.-]+:)\\/\\/([^@/#?]*@)?([^:/#?]*)(:\\d+)?(\\/[^#?]*)?/;\n\ntype Url = {\n scheme: string;\n user: string;\n host: string;\n port: string;\n path: string;\n relativePath: boolean;\n};\n\nfunction isAbsoluteUrl(input: string): boolean {\n return schemeRegex.test(input);\n}\n\nfunction isSchemeRelativeUrl(input: string): boolean {\n return input.startsWith('//');\n}\n\nfunction isAbsolutePath(input: string): boolean {\n return input.startsWith('/');\n}\n\nfunction parseAbsoluteUrl(input: string): Url {\n const match = urlRegex.exec(input)!;\n return {\n scheme: match[1],\n user: match[2] || '',\n host: match[3],\n port: match[4] || '',\n path: match[5] || '/',\n relativePath: false,\n };\n}\n\nfunction parseUrl(input: string): Url {\n if (isSchemeRelativeUrl(input)) {\n const url = parseAbsoluteUrl('http:' + input);\n url.scheme = '';\n return url;\n }\n if (isAbsolutePath(input)) {\n const url = parseAbsoluteUrl('http://foo.com' + input);\n url.scheme = '';\n url.host = '';\n return url;\n }\n if (!isAbsoluteUrl(input)) {\n const url = parseAbsoluteUrl('http://foo.com/' + input);\n url.scheme = '';\n url.host = '';\n url.relativePath = true;\n return url;\n }\n return parseAbsoluteUrl(input);\n}\n\nfunction stripPathFilename(path: string): string {\n // If a path ends with a parent directory \"..\", then it's a relative path with excess parent\n // paths. It's not a file, so we can't strip it.\n if (path.endsWith('/..')) return path;\n const index = path.lastIndexOf('/');\n return path.slice(0, index + 1);\n}\n\nfunction mergePaths(url: Url, base: Url) {\n // If we're not a relative path, then we're an absolute path, and it doesn't matter what base is.\n if (!url.relativePath) return;\n\n normalizePath(base);\n\n // If the path is just a \"/\", then it was an empty path to begin with (remember, we're a relative\n // path).\n if (url.path === '/') {\n url.path = base.path;\n } else {\n // Resolution happens relative to the base path's directory, not the file.\n url.path = stripPathFilename(base.path) + url.path;\n }\n\n // If the base path is absolute, then our path is now absolute too.\n url.relativePath = base.relativePath;\n}\n\n/**\n * The path can have empty directories \"//\", unneeded parents \"foo/..\", or current directory\n * \"foo/.\". We need to normalize to a standard representation.\n */\nfunction normalizePath(url: Url) {\n const { relativePath } = url;\n const pieces = url.path.split('/');\n\n // We need to preserve the first piece always, so that we output a leading slash. The item at\n // pieces[0] is an empty string.\n let pointer = 1;\n\n // Positive is the number of real directories we've output, used for popping a parent directory.\n // Eg, \"foo/bar/..\" will have a positive 2, and we can decrement to be left with just \"foo\".\n let positive = 0;\n\n // We need to keep a trailing slash if we encounter an empty directory (eg, splitting \"foo/\" will\n // generate `[\"foo\", \"\"]` pieces). And, if we pop a parent directory. But once we encounter a\n // real directory, we won't need to append, unless the other conditions happen again.\n let addTrailingSlash = false;\n\n for (let i = 1; i < pieces.length; i++) {\n const piece = pieces[i];\n\n // An empty directory, could be a trailing slash, or just a double \"//\" in the path.\n if (!piece) {\n addTrailingSlash = true;\n continue;\n }\n\n // If we encounter a real directory, then we don't need to append anymore.\n addTrailingSlash = false;\n\n // A current directory, which we can always drop.\n if (piece === '.') continue;\n\n // A parent directory, we need to see if there are any real directories we can pop. Else, we\n // have an excess of parents, and we'll need to keep the \"..\".\n if (piece === '..') {\n if (positive) {\n addTrailingSlash = true;\n positive--;\n pointer--;\n } else if (relativePath) {\n // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute\n // URL, protocol relative URL, or an absolute path, we don't need to keep excess.\n pieces[pointer++] = piece;\n }\n continue;\n }\n\n // We've encountered a real directory. Move it to the next insertion pointer, which accounts for\n // any popped or dropped directories.\n pieces[pointer++] = piece;\n positive++;\n }\n\n let path = '';\n for (let i = 1; i < pointer; i++) {\n path += '/' + pieces[i];\n }\n if (!path || (addTrailingSlash && !path.endsWith('/..'))) {\n path += '/';\n }\n url.path = path;\n}\n\n/**\n * Attempts to resolve `input` URL/path relative to `base`.\n */\nexport default function resolve(input: string, base: string | undefined): string {\n if (!input && !base) return '';\n\n const url = parseUrl(input);\n\n // If we have a base, and the input isn't already an absolute URL, then we need to merge.\n if (base && !url.scheme) {\n const baseUrl = parseUrl(base);\n url.scheme = baseUrl.scheme;\n // If there's no host, then we were just a path.\n if (!url.host || baseUrl.scheme === 'file:') {\n // The host, user, and port are joined, you can't copy one without the others.\n url.user = baseUrl.user;\n url.host = baseUrl.host;\n url.port = baseUrl.port;\n }\n mergePaths(url, baseUrl);\n }\n\n normalizePath(url);\n\n // If the input (and base, if there was one) are both relative, then we need to output a relative.\n if (url.relativePath) {\n // The first char is always a \"/\".\n const path = url.path.slice(1);\n if (!path) return '.';\n\n // If base started with a leading \".\", or there is no base and input started with a \".\", then we\n // need to ensure that the relative path starts with a \".\". We don't know if relative starts\n // with a \"..\", though, so check before prepending.\n const keepRelative = (base || input).startsWith('.');\n return !keepRelative || path.startsWith('.') ? path : './' + path;\n }\n // If there's no host (and no scheme/user/port), then we need to output an absolute path.\n if (!url.scheme && !url.host) return url.path;\n // We're outputting either an absolute URL, or a protocol relative one.\n return `${url.scheme}//${url.user}${url.host}${url.port}${url.path}`;\n}\n"],"names":[],"mappings":"AAAA;AACA,MAAM,WAAW,GAAG,gBAAgB,CAAC;AAErC;;;;;;;;AAQA,MAAM,QAAQ,GAAG,0DAA0D,CAAC;AAW5E,SAAS,aAAa,CAAC,KAAa;IAClC,OAAO,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACjC,CAAC;AAED,SAAS,mBAAmB,CAAC,KAAa;IACxC,OAAO,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;AAED,SAAS,cAAc,CAAC,KAAa;IACnC,OAAO,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;AAC/B,CAAC;AAED,SAAS,gBAAgB,CAAC,KAAa;IACrC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAE,CAAC;IACpC,OAAO;QACL,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;QAChB,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE;QACpB,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;QACd,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE;QACpB,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,GAAG;QACrB,YAAY,EAAE,KAAK;KACpB,CAAC;AACJ,CAAC;AAED,SAAS,QAAQ,CAAC,KAAa;IAC7B,IAAI,mBAAmB,CAAC,KAAK,CAAC,EAAE;QAC9B,MAAM,GAAG,GAAG,gBAAgB,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC;QAC9C,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;QAChB,OAAO,GAAG,CAAC;KACZ;IACD,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE;QACzB,MAAM,GAAG,GAAG,gBAAgB,CAAC,gBAAgB,GAAG,KAAK,CAAC,CAAC;QACvD,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;QAChB,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC;QACd,OAAO,GAAG,CAAC;KACZ;IACD,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE;QACzB,MAAM,GAAG,GAAG,gBAAgB,CAAC,iBAAiB,GAAG,KAAK,CAAC,CAAC;QACxD,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;QAChB,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC;QACd,GAAG,CAAC,YAAY,GAAG,IAAI,CAAC;QACxB,OAAO,GAAG,CAAC;KACZ;IACD,OAAO,gBAAgB,CAAC,KAAK,CAAC,CAAC;AACjC,CAAC;AAED,SAAS,iBAAiB,CAAC,IAAY;;;IAGrC,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACtC,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACpC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;AAClC,CAAC;AAED,SAAS,UAAU,CAAC,GAAQ,EAAE,IAAS;;IAErC,IAAI,CAAC,GAAG,CAAC,YAAY;QAAE,OAAO;IAE9B,aAAa,CAAC,IAAI,CAAC,CAAC;;;IAIpB,IAAI,GAAG,CAAC,IAAI,KAAK,GAAG,EAAE;QACpB,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;KACtB;SAAM;;QAEL,GAAG,CAAC,IAAI,GAAG,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC;KACpD;;IAGD,GAAG,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;AACvC,CAAC;AAED;;;;AAIA,SAAS,aAAa,CAAC,GAAQ;IAC7B,MAAM,EAAE,YAAY,EAAE,GAAG,GAAG,CAAC;IAC7B,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;;;IAInC,IAAI,OAAO,GAAG,CAAC,CAAC;;;IAIhB,IAAI,QAAQ,GAAG,CAAC,CAAC;;;;IAKjB,IAAI,gBAAgB,GAAG,KAAK,CAAC;IAE7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACtC,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;;QAGxB,IAAI,CAAC,KAAK,EAAE;YACV,gBAAgB,GAAG,IAAI,CAAC;YACxB,SAAS;SACV;;QAGD,gBAAgB,GAAG,KAAK,CAAC;;QAGzB,IAAI,KAAK,KAAK,GAAG;YAAE,SAAS;;;QAI5B,IAAI,KAAK,KAAK,IAAI,EAAE;YAClB,IAAI,QAAQ,EAAE;gBACZ,gBAAgB,GAAG,IAAI,CAAC;gBACxB,QAAQ,EAAE,CAAC;gBACX,OAAO,EAAE,CAAC;aACX;iBAAM,IAAI,YAAY,EAAE;;;gBAGvB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC;aAC3B;YACD,SAAS;SACV;;;QAID,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC;QAC1B,QAAQ,EAAE,CAAC;KACZ;IAED,IAAI,IAAI,GAAG,EAAE,CAAC;IACd,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC,EAAE,EAAE;QAChC,IAAI,IAAI,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;KACzB;IACD,IAAI,CAAC,IAAI,KAAK,gBAAgB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE;QACxD,IAAI,IAAI,GAAG,CAAC;KACb;IACD,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC;AAClB,CAAC;AAED;;;SAGwB,OAAO,CAAC,KAAa,EAAE,IAAwB;IACrE,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAC;IAE/B,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;;IAG5B,IAAI,IAAI,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE;QACvB,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;QAC/B,GAAG,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;;QAE5B,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,OAAO,CAAC,MAAM,KAAK,OAAO,EAAE;;YAE3C,GAAG,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;YACxB,GAAG,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;YACxB,GAAG,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;SACzB;QACD,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;KAC1B;IAED,aAAa,CAAC,GAAG,CAAC,CAAC;;IAGnB,IAAI,GAAG,CAAC,YAAY,EAAE;;QAEpB,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC/B,IAAI,CAAC,IAAI;YAAE,OAAO,GAAG,CAAC;;;;QAKtB,MAAM,YAAY,GAAG,CAAC,IAAI,IAAI,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC;QACrD,OAAO,CAAC,YAAY,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;KACnE;;IAED,IAAI,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI;QAAE,OAAO,GAAG,CAAC,IAAI,CAAC;;IAE9C,OAAO,GAAG,GAAG,CAAC,MAAM,KAAK,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;AACvE;;;;"} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js" new file mode 100644 index 0000000000000000000000000000000000000000..015f1af3264e395a53cc2e347085e90dd2bc3847 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js" @@ -0,0 +1,185 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : + typeof define === 'function' && define.amd ? define(factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.resolveURI = factory()); +})(this, (function () { 'use strict'; + + // Matches the scheme of a URL, eg "http://" + const schemeRegex = /^[\w+.-]+:\/\//; + /** + * Matches the parts of a URL: + * 1. Scheme, including ":", guaranteed. + * 2. User/password, including "@", optional. + * 3. Host, guaranteed. + * 4. Port, including ":", optional. + * 5. Path, including "/", optional. + */ + const urlRegex = /^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?/; + function isAbsoluteUrl(input) { + return schemeRegex.test(input); + } + function isSchemeRelativeUrl(input) { + return input.startsWith('//'); + } + function isAbsolutePath(input) { + return input.startsWith('/'); + } + function parseAbsoluteUrl(input) { + const match = urlRegex.exec(input); + return { + scheme: match[1], + user: match[2] || '', + host: match[3], + port: match[4] || '', + path: match[5] || '/', + relativePath: false, + }; + } + function parseUrl(input) { + if (isSchemeRelativeUrl(input)) { + const url = parseAbsoluteUrl('http:' + input); + url.scheme = ''; + return url; + } + if (isAbsolutePath(input)) { + const url = parseAbsoluteUrl('http://foo.com' + input); + url.scheme = ''; + url.host = ''; + return url; + } + if (!isAbsoluteUrl(input)) { + const url = parseAbsoluteUrl('http://foo.com/' + input); + url.scheme = ''; + url.host = ''; + url.relativePath = true; + return url; + } + return parseAbsoluteUrl(input); + } + function stripPathFilename(path) { + // If a path ends with a parent directory "..", then it's a relative path with excess parent + // paths. It's not a file, so we can't strip it. + if (path.endsWith('/..')) + return path; + const index = path.lastIndexOf('/'); + return path.slice(0, index + 1); + } + function mergePaths(url, base) { + // If we're not a relative path, then we're an absolute path, and it doesn't matter what base is. + if (!url.relativePath) + return; + normalizePath(base); + // If the path is just a "/", then it was an empty path to begin with (remember, we're a relative + // path). + if (url.path === '/') { + url.path = base.path; + } + else { + // Resolution happens relative to the base path's directory, not the file. + url.path = stripPathFilename(base.path) + url.path; + } + // If the base path is absolute, then our path is now absolute too. + url.relativePath = base.relativePath; + } + /** + * The path can have empty directories "//", unneeded parents "foo/..", or current directory + * "foo/.". We need to normalize to a standard representation. + */ + function normalizePath(url) { + const { relativePath } = url; + const pieces = url.path.split('/'); + // We need to preserve the first piece always, so that we output a leading slash. The item at + // pieces[0] is an empty string. + let pointer = 1; + // Positive is the number of real directories we've output, used for popping a parent directory. + // Eg, "foo/bar/.." will have a positive 2, and we can decrement to be left with just "foo". + let positive = 0; + // We need to keep a trailing slash if we encounter an empty directory (eg, splitting "foo/" will + // generate `["foo", ""]` pieces). And, if we pop a parent directory. But once we encounter a + // real directory, we won't need to append, unless the other conditions happen again. + let addTrailingSlash = false; + for (let i = 1; i < pieces.length; i++) { + const piece = pieces[i]; + // An empty directory, could be a trailing slash, or just a double "//" in the path. + if (!piece) { + addTrailingSlash = true; + continue; + } + // If we encounter a real directory, then we don't need to append anymore. + addTrailingSlash = false; + // A current directory, which we can always drop. + if (piece === '.') + continue; + // A parent directory, we need to see if there are any real directories we can pop. Else, we + // have an excess of parents, and we'll need to keep the "..". + if (piece === '..') { + if (positive) { + addTrailingSlash = true; + positive--; + pointer--; + } + else if (relativePath) { + // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute + // URL, protocol relative URL, or an absolute path, we don't need to keep excess. + pieces[pointer++] = piece; + } + continue; + } + // We've encountered a real directory. Move it to the next insertion pointer, which accounts for + // any popped or dropped directories. + pieces[pointer++] = piece; + positive++; + } + let path = ''; + for (let i = 1; i < pointer; i++) { + path += '/' + pieces[i]; + } + if (!path || (addTrailingSlash && !path.endsWith('/..'))) { + path += '/'; + } + url.path = path; + } + /** + * Attempts to resolve `input` URL/path relative to `base`. + */ + function resolve(input, base) { + if (!input && !base) + return ''; + const url = parseUrl(input); + // If we have a base, and the input isn't already an absolute URL, then we need to merge. + if (base && !url.scheme) { + const baseUrl = parseUrl(base); + url.scheme = baseUrl.scheme; + // If there's no host, then we were just a path. + if (!url.host || baseUrl.scheme === 'file:') { + // The host, user, and port are joined, you can't copy one without the others. + url.user = baseUrl.user; + url.host = baseUrl.host; + url.port = baseUrl.port; + } + mergePaths(url, baseUrl); + } + normalizePath(url); + // If the input (and base, if there was one) are both relative, then we need to output a relative. + if (url.relativePath) { + // The first char is always a "/". + const path = url.path.slice(1); + if (!path) + return '.'; + // If base started with a leading ".", or there is no base and input started with a ".", then we + // need to ensure that the relative path starts with a ".". We don't know if relative starts + // with a "..", though, so check before prepending. + const keepRelative = (base || input).startsWith('.'); + return !keepRelative || path.startsWith('.') ? path : './' + path; + } + // If there's no host (and no scheme/user/port), then we need to output an absolute path. + if (!url.scheme && !url.host) + return url.path; + // We're outputting either an absolute URL, or a protocol relative one. + return `${url.scheme}//${url.user}${url.host}${url.port}${url.path}`; + } + + return resolve; + +})); +//# sourceMappingURL=resolve-uri.umd.js.map diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map" new file mode 100644 index 0000000000000000000000000000000000000000..fbbbaae701f6cc2bbff30f22a0aaf8bb47885ef7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map" @@ -0,0 +1 @@ +{"version":3,"file":"resolve-uri.umd.js","sources":["../../src/resolve-uri.ts"],"sourcesContent":["// Matches the scheme of a URL, eg \"http://\"\nconst schemeRegex = /^[\\w+.-]+:\\/\\//;\n\n/**\n * Matches the parts of a URL:\n * 1. Scheme, including \":\", guaranteed.\n * 2. User/password, including \"@\", optional.\n * 3. Host, guaranteed.\n * 4. Port, including \":\", optional.\n * 5. Path, including \"/\", optional.\n */\nconst urlRegex = /^([\\w+.-]+:)\\/\\/([^@/#?]*@)?([^:/#?]*)(:\\d+)?(\\/[^#?]*)?/;\n\ntype Url = {\n scheme: string;\n user: string;\n host: string;\n port: string;\n path: string;\n relativePath: boolean;\n};\n\nfunction isAbsoluteUrl(input: string): boolean {\n return schemeRegex.test(input);\n}\n\nfunction isSchemeRelativeUrl(input: string): boolean {\n return input.startsWith('//');\n}\n\nfunction isAbsolutePath(input: string): boolean {\n return input.startsWith('/');\n}\n\nfunction parseAbsoluteUrl(input: string): Url {\n const match = urlRegex.exec(input)!;\n return {\n scheme: match[1],\n user: match[2] || '',\n host: match[3],\n port: match[4] || '',\n path: match[5] || '/',\n relativePath: false,\n };\n}\n\nfunction parseUrl(input: string): Url {\n if (isSchemeRelativeUrl(input)) {\n const url = parseAbsoluteUrl('http:' + input);\n url.scheme = '';\n return url;\n }\n if (isAbsolutePath(input)) {\n const url = parseAbsoluteUrl('http://foo.com' + input);\n url.scheme = '';\n url.host = '';\n return url;\n }\n if (!isAbsoluteUrl(input)) {\n const url = parseAbsoluteUrl('http://foo.com/' + input);\n url.scheme = '';\n url.host = '';\n url.relativePath = true;\n return url;\n }\n return parseAbsoluteUrl(input);\n}\n\nfunction stripPathFilename(path: string): string {\n // If a path ends with a parent directory \"..\", then it's a relative path with excess parent\n // paths. It's not a file, so we can't strip it.\n if (path.endsWith('/..')) return path;\n const index = path.lastIndexOf('/');\n return path.slice(0, index + 1);\n}\n\nfunction mergePaths(url: Url, base: Url) {\n // If we're not a relative path, then we're an absolute path, and it doesn't matter what base is.\n if (!url.relativePath) return;\n\n normalizePath(base);\n\n // If the path is just a \"/\", then it was an empty path to begin with (remember, we're a relative\n // path).\n if (url.path === '/') {\n url.path = base.path;\n } else {\n // Resolution happens relative to the base path's directory, not the file.\n url.path = stripPathFilename(base.path) + url.path;\n }\n\n // If the base path is absolute, then our path is now absolute too.\n url.relativePath = base.relativePath;\n}\n\n/**\n * The path can have empty directories \"//\", unneeded parents \"foo/..\", or current directory\n * \"foo/.\". We need to normalize to a standard representation.\n */\nfunction normalizePath(url: Url) {\n const { relativePath } = url;\n const pieces = url.path.split('/');\n\n // We need to preserve the first piece always, so that we output a leading slash. The item at\n // pieces[0] is an empty string.\n let pointer = 1;\n\n // Positive is the number of real directories we've output, used for popping a parent directory.\n // Eg, \"foo/bar/..\" will have a positive 2, and we can decrement to be left with just \"foo\".\n let positive = 0;\n\n // We need to keep a trailing slash if we encounter an empty directory (eg, splitting \"foo/\" will\n // generate `[\"foo\", \"\"]` pieces). And, if we pop a parent directory. But once we encounter a\n // real directory, we won't need to append, unless the other conditions happen again.\n let addTrailingSlash = false;\n\n for (let i = 1; i < pieces.length; i++) {\n const piece = pieces[i];\n\n // An empty directory, could be a trailing slash, or just a double \"//\" in the path.\n if (!piece) {\n addTrailingSlash = true;\n continue;\n }\n\n // If we encounter a real directory, then we don't need to append anymore.\n addTrailingSlash = false;\n\n // A current directory, which we can always drop.\n if (piece === '.') continue;\n\n // A parent directory, we need to see if there are any real directories we can pop. Else, we\n // have an excess of parents, and we'll need to keep the \"..\".\n if (piece === '..') {\n if (positive) {\n addTrailingSlash = true;\n positive--;\n pointer--;\n } else if (relativePath) {\n // If we're in a relativePath, then we need to keep the excess parents. Else, in an absolute\n // URL, protocol relative URL, or an absolute path, we don't need to keep excess.\n pieces[pointer++] = piece;\n }\n continue;\n }\n\n // We've encountered a real directory. Move it to the next insertion pointer, which accounts for\n // any popped or dropped directories.\n pieces[pointer++] = piece;\n positive++;\n }\n\n let path = '';\n for (let i = 1; i < pointer; i++) {\n path += '/' + pieces[i];\n }\n if (!path || (addTrailingSlash && !path.endsWith('/..'))) {\n path += '/';\n }\n url.path = path;\n}\n\n/**\n * Attempts to resolve `input` URL/path relative to `base`.\n */\nexport default function resolve(input: string, base: string | undefined): string {\n if (!input && !base) return '';\n\n const url = parseUrl(input);\n\n // If we have a base, and the input isn't already an absolute URL, then we need to merge.\n if (base && !url.scheme) {\n const baseUrl = parseUrl(base);\n url.scheme = baseUrl.scheme;\n // If there's no host, then we were just a path.\n if (!url.host || baseUrl.scheme === 'file:') {\n // The host, user, and port are joined, you can't copy one without the others.\n url.user = baseUrl.user;\n url.host = baseUrl.host;\n url.port = baseUrl.port;\n }\n mergePaths(url, baseUrl);\n }\n\n normalizePath(url);\n\n // If the input (and base, if there was one) are both relative, then we need to output a relative.\n if (url.relativePath) {\n // The first char is always a \"/\".\n const path = url.path.slice(1);\n if (!path) return '.';\n\n // If base started with a leading \".\", or there is no base and input started with a \".\", then we\n // need to ensure that the relative path starts with a \".\". We don't know if relative starts\n // with a \"..\", though, so check before prepending.\n const keepRelative = (base || input).startsWith('.');\n return !keepRelative || path.startsWith('.') ? path : './' + path;\n }\n // If there's no host (and no scheme/user/port), then we need to output an absolute path.\n if (!url.scheme && !url.host) return url.path;\n // We're outputting either an absolute URL, or a protocol relative one.\n return `${url.scheme}//${url.user}${url.host}${url.port}${url.path}`;\n}\n"],"names":[],"mappings":";;;;;;IAAA;IACA,MAAM,WAAW,GAAG,gBAAgB,CAAC;IAErC;;;;;;;;IAQA,MAAM,QAAQ,GAAG,0DAA0D,CAAC;IAW5E,SAAS,aAAa,CAAC,KAAa;QAClC,OAAO,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAED,SAAS,mBAAmB,CAAC,KAAa;QACxC,OAAO,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAChC,CAAC;IAED,SAAS,cAAc,CAAC,KAAa;QACnC,OAAO,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IAC/B,CAAC;IAED,SAAS,gBAAgB,CAAC,KAAa;QACrC,MAAM,KAAK,GAAG,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAE,CAAC;QACpC,OAAO;YACL,MAAM,EAAE,KAAK,CAAC,CAAC,CAAC;YAChB,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE;YACpB,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;YACd,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE;YACpB,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,IAAI,GAAG;YACrB,YAAY,EAAE,KAAK;SACpB,CAAC;IACJ,CAAC;IAED,SAAS,QAAQ,CAAC,KAAa;QAC7B,IAAI,mBAAmB,CAAC,KAAK,CAAC,EAAE;YAC9B,MAAM,GAAG,GAAG,gBAAgB,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC;YAC9C,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;YAChB,OAAO,GAAG,CAAC;SACZ;QACD,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE;YACzB,MAAM,GAAG,GAAG,gBAAgB,CAAC,gBAAgB,GAAG,KAAK,CAAC,CAAC;YACvD,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;YAChB,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC;YACd,OAAO,GAAG,CAAC;SACZ;QACD,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE;YACzB,MAAM,GAAG,GAAG,gBAAgB,CAAC,iBAAiB,GAAG,KAAK,CAAC,CAAC;YACxD,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC;YAChB,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC;YACd,GAAG,CAAC,YAAY,GAAG,IAAI,CAAC;YACxB,OAAO,GAAG,CAAC;SACZ;QACD,OAAO,gBAAgB,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAED,SAAS,iBAAiB,CAAC,IAAY;;;QAGrC,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC;YAAE,OAAO,IAAI,CAAC;QACtC,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACpC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;IAClC,CAAC;IAED,SAAS,UAAU,CAAC,GAAQ,EAAE,IAAS;;QAErC,IAAI,CAAC,GAAG,CAAC,YAAY;YAAE,OAAO;QAE9B,aAAa,CAAC,IAAI,CAAC,CAAC;;;QAIpB,IAAI,GAAG,CAAC,IAAI,KAAK,GAAG,EAAE;YACpB,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;SACtB;aAAM;;YAEL,GAAG,CAAC,IAAI,GAAG,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,CAAC,IAAI,CAAC;SACpD;;QAGD,GAAG,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;IACvC,CAAC;IAED;;;;IAIA,SAAS,aAAa,CAAC,GAAQ;QAC7B,MAAM,EAAE,YAAY,EAAE,GAAG,GAAG,CAAC;QAC7B,MAAM,MAAM,GAAG,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;;;QAInC,IAAI,OAAO,GAAG,CAAC,CAAC;;;QAIhB,IAAI,QAAQ,GAAG,CAAC,CAAC;;;;QAKjB,IAAI,gBAAgB,GAAG,KAAK,CAAC;QAE7B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACtC,MAAM,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;;YAGxB,IAAI,CAAC,KAAK,EAAE;gBACV,gBAAgB,GAAG,IAAI,CAAC;gBACxB,SAAS;aACV;;YAGD,gBAAgB,GAAG,KAAK,CAAC;;YAGzB,IAAI,KAAK,KAAK,GAAG;gBAAE,SAAS;;;YAI5B,IAAI,KAAK,KAAK,IAAI,EAAE;gBAClB,IAAI,QAAQ,EAAE;oBACZ,gBAAgB,GAAG,IAAI,CAAC;oBACxB,QAAQ,EAAE,CAAC;oBACX,OAAO,EAAE,CAAC;iBACX;qBAAM,IAAI,YAAY,EAAE;;;oBAGvB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC;iBAC3B;gBACD,SAAS;aACV;;;YAID,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,KAAK,CAAC;YAC1B,QAAQ,EAAE,CAAC;SACZ;QAED,IAAI,IAAI,GAAG,EAAE,CAAC;QACd,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC,EAAE,EAAE;YAChC,IAAI,IAAI,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;SACzB;QACD,IAAI,CAAC,IAAI,KAAK,gBAAgB,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE;YACxD,IAAI,IAAI,GAAG,CAAC;SACb;QACD,GAAG,CAAC,IAAI,GAAG,IAAI,CAAC;IAClB,CAAC;IAED;;;aAGwB,OAAO,CAAC,KAAa,EAAE,IAAwB;QACrE,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI;YAAE,OAAO,EAAE,CAAC;QAE/B,MAAM,GAAG,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;;QAG5B,IAAI,IAAI,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE;YACvB,MAAM,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC/B,GAAG,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;;YAE5B,IAAI,CAAC,GAAG,CAAC,IAAI,IAAI,OAAO,CAAC,MAAM,KAAK,OAAO,EAAE;;gBAE3C,GAAG,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;gBACxB,GAAG,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;gBACxB,GAAG,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;aACzB;YACD,UAAU,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC;SAC1B;QAED,aAAa,CAAC,GAAG,CAAC,CAAC;;QAGnB,IAAI,GAAG,CAAC,YAAY,EAAE;;YAEpB,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAC/B,IAAI,CAAC,IAAI;gBAAE,OAAO,GAAG,CAAC;;;;YAKtB,MAAM,YAAY,GAAG,CAAC,IAAI,IAAI,KAAK,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC;YACrD,OAAO,CAAC,YAAY,IAAI,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;SACnE;;QAED,IAAI,CAAC,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI;YAAE,OAAO,GAAG,CAAC,IAAI,CAAC;;QAE9C,OAAO,GAAG,GAAG,CAAC,MAAM,KAAK,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC;IACvE;;;;;;;;"} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..b7f0b3b2d7d2eba98141e8b346328b1ff6d6118c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts" @@ -0,0 +1,4 @@ +/** + * Attempts to resolve `input` URL/path relative to `base`. + */ +export default function resolve(input: string, base: string | undefined): string; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..40266386cb1aded3144472fa4152f2939d8564a5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/resolve-uri/package.json" @@ -0,0 +1,64 @@ +{ + "name": "@jridgewell/resolve-uri", + "version": "3.0.5", + "description": "Resolve a URI relative to an optional base URI", + "keywords": [ + "resolve", + "uri", + "url", + "path" + ], + "author": "Justin Ridgewell ", + "license": "MIT", + "repository": "https://github.com/jridgewell/resolve-uri", + "main": "dist/resolve-uri.umd.js", + "module": "dist/resolve-uri.mjs", + "typings": "dist/types/resolve-uri.d.ts", + "exports": { + ".": { + "browser": "./dist/resolve-uri.umd.js", + "require": "./dist/resolve-uri.umd.js", + "import": "./dist/resolve-uri.mjs" + }, + "./package.json": "./package.json" + }, + "files": [ + "dist" + ], + "engines": { + "node": ">=6.0.0" + }, + "scripts": { + "prebuild": "rm -rf dist", + "build": "run-s -n build:*", + "build:rollup": "rollup -c rollup.config.js", + "build:ts": "tsc --project tsconfig.build.json", + "lint": "run-s -n lint:*", + "lint:prettier": "npm run test:lint:prettier -- --write", + "lint:ts": "npm run test:lint:ts -- --fix", + "pretest": "run-s build:rollup", + "test": "run-s -n test:lint test:only", + "test:debug": "mocha --inspect-brk", + "test:lint": "run-s -n test:lint:*", + "test:lint:prettier": "prettier --check '{src,test}/**/*.ts'", + "test:lint:ts": "eslint '{src,test}/**/*.ts'", + "test:only": "mocha", + "test:coverage": "c8 mocha", + "test:watch": "mocha --watch", + "prepublishOnly": "npm run preversion", + "preversion": "run-s test build" + }, + "devDependencies": { + "@rollup/plugin-typescript": "8.3.0", + "@typescript-eslint/eslint-plugin": "5.10.0", + "@typescript-eslint/parser": "5.10.0", + "c8": "7.11.0", + "eslint": "8.7.0", + "eslint-config-prettier": "8.3.0", + "mocha": "9.2.0", + "npm-run-all": "4.1.5", + "prettier": "2.5.1", + "rollup": "2.66.0", + "typescript": "4.5.5" + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..a331065a46b90f36f82834a40086eca10d6979c5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/LICENSE" @@ -0,0 +1,21 @@ +The MIT License + +Copyright (c) 2015 Rich Harris + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..e4373aa92a57961dde7ba4c772f65c5b2ec27180 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/README.md" @@ -0,0 +1,63 @@ +# sourcemap-codec + +Encode/decode the `mappings` property of a [sourcemap](https://docs.google.com/document/d/1U1RGAehQwRypUTovF1KRlpiOFze0b-_2gc6fAH0KY0k/edit). + + +## Why? + +Sourcemaps are difficult to generate and manipulate, because the `mappings` property – the part that actually links the generated code back to the original source – is encoded using an obscure method called [Variable-length quantity](https://en.wikipedia.org/wiki/Variable-length_quantity). On top of that, each segment in the mapping contains offsets rather than absolute indices, which means that you can't look at a segment in isolation – you have to understand the whole sourcemap. + +This package makes the process slightly easier. + + +## Installation + +```bash +npm install sourcemap-codec +``` + + +## Usage + +```js +import { encode, decode } from 'sourcemap-codec'; + +var decoded = decode( ';EAEEA,EAAE,EAAC,CAAE;ECQY,UACC' ); + +assert.deepEqual( decoded, [ + // the first line (of the generated code) has no mappings, + // as shown by the starting semi-colon (which separates lines) + [], + + // the second line contains four (comma-separated) segments + [ + // segments are encoded as you'd expect: + // [ generatedCodeColumn, sourceIndex, sourceCodeLine, sourceCodeColumn, nameIndex ] + + // i.e. the first segment begins at column 2, and maps back to the second column + // of the second line (both zero-based) of the 0th source, and uses the 0th + // name in the `map.names` array + [ 2, 0, 2, 2, 0 ], + + // the remaining segments are 4-length rather than 5-length, + // because they don't map a name + [ 4, 0, 2, 4 ], + [ 6, 0, 2, 5 ], + [ 7, 0, 2, 7 ] + ], + + // the final line contains two segments + [ + [ 2, 1, 10, 19 ], + [ 12, 1, 11, 20 ] + ] +]); + +var encoded = encode( decoded ); +assert.equal( encoded, ';EAEEA,EAAE,EAAC,CAAE;ECQY,UACC' ); +``` + + +# License + +MIT diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs" new file mode 100644 index 0000000000000000000000000000000000000000..4e92c1e658ccd5bd1f355e7c0d0d6b7e176caf47 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs" @@ -0,0 +1,164 @@ +const comma = ','.charCodeAt(0); +const semicolon = ';'.charCodeAt(0); +const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; +const intToChar = new Uint8Array(64); // 64 possible chars. +const charToInteger = new Uint8Array(128); // z is 122 in ASCII +for (let i = 0; i < chars.length; i++) { + const c = chars.charCodeAt(i); + charToInteger[c] = i; + intToChar[i] = c; +} +// Provide a fallback for older environments. +const td = typeof TextDecoder !== 'undefined' + ? new TextDecoder() + : typeof Buffer !== 'undefined' + ? { + decode(buf) { + const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength); + return out.toString(); + }, + } + : { + decode(buf) { + let out = ''; + for (let i = 0; i < buf.length; i++) { + out += String.fromCharCode(buf[i]); + } + return out; + }, + }; +function decode(mappings) { + const state = new Int32Array(5); + const decoded = []; + let line = []; + let sorted = true; + let lastCol = 0; + for (let i = 0; i < mappings.length;) { + const c = mappings.charCodeAt(i); + if (c === comma) { + i++; + } + else if (c === semicolon) { + state[0] = lastCol = 0; + if (!sorted) + sort(line); + sorted = true; + decoded.push(line); + line = []; + i++; + } + else { + i = decodeInteger(mappings, i, state, 0); // generatedCodeColumn + const col = state[0]; + if (col < lastCol) + sorted = false; + lastCol = col; + if (!hasMoreSegments(mappings, i)) { + line.push([col]); + continue; + } + i = decodeInteger(mappings, i, state, 1); // sourceFileIndex + i = decodeInteger(mappings, i, state, 2); // sourceCodeLine + i = decodeInteger(mappings, i, state, 3); // sourceCodeColumn + if (!hasMoreSegments(mappings, i)) { + line.push([col, state[1], state[2], state[3]]); + continue; + } + i = decodeInteger(mappings, i, state, 4); // nameIndex + line.push([col, state[1], state[2], state[3], state[4]]); + } + } + if (!sorted) + sort(line); + decoded.push(line); + return decoded; +} +function decodeInteger(mappings, pos, state, j) { + let value = 0; + let shift = 0; + let integer = 0; + do { + const c = mappings.charCodeAt(pos++); + integer = charToInteger[c]; + value |= (integer & 31) << shift; + shift += 5; + } while (integer & 32); + const shouldNegate = value & 1; + value >>>= 1; + if (shouldNegate) { + value = -0x80000000 | -value; + } + state[j] += value; + return pos; +} +function hasMoreSegments(mappings, i) { + if (i >= mappings.length) + return false; + const c = mappings.charCodeAt(i); + if (c === comma || c === semicolon) + return false; + return true; +} +function sort(line) { + line.sort(sortComparator); +} +function sortComparator(a, b) { + return a[0] - b[0]; +} +function encode(decoded) { + const state = new Int32Array(5); + let buf = new Uint8Array(1024); + let pos = 0; + for (let i = 0; i < decoded.length; i++) { + const line = decoded[i]; + if (i > 0) { + buf = reserve(buf, pos, 1); + buf[pos++] = semicolon; + } + if (line.length === 0) + continue; + state[0] = 0; + for (let j = 0; j < line.length; j++) { + const segment = line[j]; + // We can push up to 5 ints, each int can take at most 7 chars, and we + // may push a comma. + buf = reserve(buf, pos, 36); + if (j > 0) + buf[pos++] = comma; + pos = encodeInteger(buf, pos, state, segment, 0); // generatedCodeColumn + if (segment.length === 1) + continue; + pos = encodeInteger(buf, pos, state, segment, 1); // sourceFileIndex + pos = encodeInteger(buf, pos, state, segment, 2); // sourceCodeLine + pos = encodeInteger(buf, pos, state, segment, 3); // sourceCodeColumn + if (segment.length === 4) + continue; + pos = encodeInteger(buf, pos, state, segment, 4); // nameIndex + } + } + return td.decode(buf.subarray(0, pos)); +} +function reserve(buf, pos, count) { + if (buf.length > pos + count) + return buf; + const swap = new Uint8Array(buf.length * 2); + swap.set(buf); + return swap; +} +function encodeInteger(buf, pos, state, segment, j) { + const next = segment[j]; + let num = next - state[j]; + state[j] = next; + num = num < 0 ? (-num << 1) | 1 : num << 1; + do { + let clamped = num & 0b011111; + num >>>= 5; + if (num > 0) + clamped |= 0b100000; + buf[pos++] = intToChar[clamped]; + } while (num > 0); + return pos; +} + +export { decode, encode }; +//# sourceMappingURL=sourcemap-codec.mjs.map diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map" new file mode 100644 index 0000000000000000000000000000000000000000..f3f6e2d40f58f3e2cec6af8172cadb79e068a0f6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map" @@ -0,0 +1 @@ +{"version":3,"file":"sourcemap-codec.mjs","sources":["../../src/sourcemap-codec.ts"],"sourcesContent":[null],"names":[],"mappings":"AAOA,MAAM,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,SAAS,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;AACpC,MAAM,KAAK,GAAG,kEAAkE,CAAC;AACjF,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;AACrC,MAAM,aAAa,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC;AAE1C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;IACrC,MAAM,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAC9B,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACrB,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CAClB;AAED;AACA,MAAM,EAAE,GACN,OAAO,WAAW,KAAK,WAAW;MAC9B,IAAI,WAAW,EAAE;MACjB,OAAO,MAAM,KAAK,WAAW;UAC7B;YACE,MAAM,CAAC,GAAe;gBACpB,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;gBACpE,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;aACvB;SACF;UACD;YACE,MAAM,CAAC,GAAe;gBACpB,IAAI,GAAG,GAAG,EAAE,CAAC;gBACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;oBACnC,GAAG,IAAI,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;iBACpC;gBACD,OAAO,GAAG,CAAC;aACZ;SACF,CAAC;SAEQ,MAAM,CAAC,QAAgB;IACrC,MAAM,KAAK,GAA6C,IAAI,UAAU,CAAC,CAAC,CAAQ,CAAC;IACjF,MAAM,OAAO,GAAsB,EAAE,CAAC;IACtC,IAAI,IAAI,GAAkB,EAAE,CAAC;IAC7B,IAAI,MAAM,GAAG,IAAI,CAAC;IAClB,IAAI,OAAO,GAAG,CAAC,CAAC;IAEhB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,GAAI;QACrC,MAAM,CAAC,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAEjC,IAAI,CAAC,KAAK,KAAK,EAAE;YACf,CAAC,EAAE,CAAC;SACL;aAAM,IAAI,CAAC,KAAK,SAAS,EAAE;YAC1B,KAAK,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,CAAC,CAAC;YACvB,IAAI,CAAC,MAAM;gBAAE,IAAI,CAAC,IAAI,CAAC,CAAC;YACxB,MAAM,GAAG,IAAI,CAAC;YACd,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACnB,IAAI,GAAG,EAAE,CAAC;YACV,CAAC,EAAE,CAAC;SACL;aAAM;YACL,CAAC,GAAG,aAAa,CAAC,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;YACzC,MAAM,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YACrB,IAAI,GAAG,GAAG,OAAO;gBAAE,MAAM,GAAG,KAAK,CAAC;YAClC,OAAO,GAAG,GAAG,CAAC;YAEd,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE;gBACjC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;gBACjB,SAAS;aACV;YAED,CAAC,GAAG,aAAa,CAAC,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;YACzC,CAAC,GAAG,aAAa,CAAC,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;YACzC,CAAC,GAAG,aAAa,CAAC,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;YAEzC,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE;gBACjC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAC/C,SAAS;aACV;YAED,CAAC,GAAG,aAAa,CAAC,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;YACzC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;SAC1D;KACF;IAED,IAAI,CAAC,MAAM;QAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACxB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEnB,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,aAAa,CAAC,QAAgB,EAAE,GAAW,EAAE,KAAuB,EAAE,CAAS;IACtF,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,OAAO,GAAG,CAAC,CAAC;IAEhB,GAAG;QACD,MAAM,CAAC,GAAG,QAAQ,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC;QACrC,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;QAC3B,KAAK,IAAI,CAAC,OAAO,GAAG,EAAE,KAAK,KAAK,CAAC;QACjC,KAAK,IAAI,CAAC,CAAC;KACZ,QAAQ,OAAO,GAAG,EAAE,EAAE;IAEvB,MAAM,YAAY,GAAG,KAAK,GAAG,CAAC,CAAC;IAC/B,KAAK,MAAM,CAAC,CAAC;IAEb,IAAI,YAAY,EAAE;QAChB,KAAK,GAAG,CAAC,UAAU,GAAG,CAAC,KAAK,CAAC;KAC9B;IAED,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC;IAClB,OAAO,GAAG,CAAC;AACb,CAAC;AAED,SAAS,eAAe,CAAC,QAAgB,EAAE,CAAS;IAClD,IAAI,CAAC,IAAI,QAAQ,CAAC,MAAM;QAAE,OAAO,KAAK,CAAC;IAEvC,MAAM,CAAC,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACjC,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACjD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,IAAI,CAAC,IAAwB;IACpC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AAC5B,CAAC;AAED,SAAS,cAAc,CAAC,CAAmB,EAAE,CAAmB;IAC9D,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACrB,CAAC;SAEe,MAAM,CAAC,OAA0B;IAC/C,MAAM,KAAK,GAA6C,IAAI,UAAU,CAAC,CAAC,CAAQ,CAAC;IACjF,IAAI,GAAG,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;IAC/B,IAAI,GAAG,GAAG,CAAC,CAAC;IAEZ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACvC,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;QACxB,IAAI,CAAC,GAAG,CAAC,EAAE;YACT,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;YAC3B,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,SAAS,CAAC;SACxB;QACD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;YAAE,SAAS;QAEhC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAEb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACpC,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;;;YAGxB,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;YAC5B,IAAI,CAAC,GAAG,CAAC;gBAAE,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,KAAK,CAAC;YAE9B,GAAG,GAAG,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;YAEjD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;gBAAE,SAAS;YACnC,GAAG,GAAG,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;YACjD,GAAG,GAAG,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;YACjD,GAAG,GAAG,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;YAEjD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;gBAAE,SAAS;YACnC,GAAG,GAAG,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;SAClD;KACF;IAED,OAAO,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;AACzC,CAAC;AAED,SAAS,OAAO,CAAC,GAAe,EAAE,GAAW,EAAE,KAAa;IAC1D,IAAI,GAAG,CAAC,MAAM,GAAG,GAAG,GAAG,KAAK;QAAE,OAAO,GAAG,CAAC;IAEzC,MAAM,IAAI,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;IAC5C,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACd,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,aAAa,CACpB,GAAe,EACf,GAAW,EACX,KAAuB,EACvB,OAAyB,EACzB,CAAS;IAET,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IACxB,IAAI,GAAG,GAAG,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC1B,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;IAEhB,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,CAAC;IAC3C,GAAG;QACD,IAAI,OAAO,GAAG,GAAG,GAAG,QAAQ,CAAC;QAC7B,GAAG,MAAM,CAAC,CAAC;QACX,IAAI,GAAG,GAAG,CAAC;YAAE,OAAO,IAAI,QAAQ,CAAC;QACjC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;KACjC,QAAQ,GAAG,GAAG,CAAC,EAAE;IAElB,OAAO,GAAG,CAAC;AACb;;;;"} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js" new file mode 100644 index 0000000000000000000000000000000000000000..b5aa0c43c3e8e79d8126c3ed49602f94254c3636 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js" @@ -0,0 +1,175 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : + typeof define === 'function' && define.amd ? define(['exports'], factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.sourcemapCodec = {})); +})(this, (function (exports) { 'use strict'; + + const comma = ','.charCodeAt(0); + const semicolon = ';'.charCodeAt(0); + const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'; + const intToChar = new Uint8Array(64); // 64 possible chars. + const charToInteger = new Uint8Array(128); // z is 122 in ASCII + for (let i = 0; i < chars.length; i++) { + const c = chars.charCodeAt(i); + charToInteger[c] = i; + intToChar[i] = c; + } + // Provide a fallback for older environments. + const td = typeof TextDecoder !== 'undefined' + ? new TextDecoder() + : typeof Buffer !== 'undefined' + ? { + decode(buf) { + const out = Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength); + return out.toString(); + }, + } + : { + decode(buf) { + let out = ''; + for (let i = 0; i < buf.length; i++) { + out += String.fromCharCode(buf[i]); + } + return out; + }, + }; + function decode(mappings) { + const state = new Int32Array(5); + const decoded = []; + let line = []; + let sorted = true; + let lastCol = 0; + for (let i = 0; i < mappings.length;) { + const c = mappings.charCodeAt(i); + if (c === comma) { + i++; + } + else if (c === semicolon) { + state[0] = lastCol = 0; + if (!sorted) + sort(line); + sorted = true; + decoded.push(line); + line = []; + i++; + } + else { + i = decodeInteger(mappings, i, state, 0); // generatedCodeColumn + const col = state[0]; + if (col < lastCol) + sorted = false; + lastCol = col; + if (!hasMoreSegments(mappings, i)) { + line.push([col]); + continue; + } + i = decodeInteger(mappings, i, state, 1); // sourceFileIndex + i = decodeInteger(mappings, i, state, 2); // sourceCodeLine + i = decodeInteger(mappings, i, state, 3); // sourceCodeColumn + if (!hasMoreSegments(mappings, i)) { + line.push([col, state[1], state[2], state[3]]); + continue; + } + i = decodeInteger(mappings, i, state, 4); // nameIndex + line.push([col, state[1], state[2], state[3], state[4]]); + } + } + if (!sorted) + sort(line); + decoded.push(line); + return decoded; + } + function decodeInteger(mappings, pos, state, j) { + let value = 0; + let shift = 0; + let integer = 0; + do { + const c = mappings.charCodeAt(pos++); + integer = charToInteger[c]; + value |= (integer & 31) << shift; + shift += 5; + } while (integer & 32); + const shouldNegate = value & 1; + value >>>= 1; + if (shouldNegate) { + value = -0x80000000 | -value; + } + state[j] += value; + return pos; + } + function hasMoreSegments(mappings, i) { + if (i >= mappings.length) + return false; + const c = mappings.charCodeAt(i); + if (c === comma || c === semicolon) + return false; + return true; + } + function sort(line) { + line.sort(sortComparator); + } + function sortComparator(a, b) { + return a[0] - b[0]; + } + function encode(decoded) { + const state = new Int32Array(5); + let buf = new Uint8Array(1024); + let pos = 0; + for (let i = 0; i < decoded.length; i++) { + const line = decoded[i]; + if (i > 0) { + buf = reserve(buf, pos, 1); + buf[pos++] = semicolon; + } + if (line.length === 0) + continue; + state[0] = 0; + for (let j = 0; j < line.length; j++) { + const segment = line[j]; + // We can push up to 5 ints, each int can take at most 7 chars, and we + // may push a comma. + buf = reserve(buf, pos, 36); + if (j > 0) + buf[pos++] = comma; + pos = encodeInteger(buf, pos, state, segment, 0); // generatedCodeColumn + if (segment.length === 1) + continue; + pos = encodeInteger(buf, pos, state, segment, 1); // sourceFileIndex + pos = encodeInteger(buf, pos, state, segment, 2); // sourceCodeLine + pos = encodeInteger(buf, pos, state, segment, 3); // sourceCodeColumn + if (segment.length === 4) + continue; + pos = encodeInteger(buf, pos, state, segment, 4); // nameIndex + } + } + return td.decode(buf.subarray(0, pos)); + } + function reserve(buf, pos, count) { + if (buf.length > pos + count) + return buf; + const swap = new Uint8Array(buf.length * 2); + swap.set(buf); + return swap; + } + function encodeInteger(buf, pos, state, segment, j) { + const next = segment[j]; + let num = next - state[j]; + state[j] = next; + num = num < 0 ? (-num << 1) | 1 : num << 1; + do { + let clamped = num & 0b011111; + num >>>= 5; + if (num > 0) + clamped |= 0b100000; + buf[pos++] = intToChar[clamped]; + } while (num > 0); + return pos; + } + + exports.decode = decode; + exports.encode = encode; + + Object.defineProperty(exports, '__esModule', { value: true }); + +})); +//# sourceMappingURL=sourcemap-codec.umd.js.map diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map" new file mode 100644 index 0000000000000000000000000000000000000000..fce7c4b846df124236ab15d7fd8bfae1424feab8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map" @@ -0,0 +1 @@ +{"version":3,"file":"sourcemap-codec.umd.js","sources":["../../src/sourcemap-codec.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;IAOA,MAAM,KAAK,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IAChC,MAAM,SAAS,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;IACpC,MAAM,KAAK,GAAG,kEAAkE,CAAC;IACjF,MAAM,SAAS,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;IACrC,MAAM,aAAa,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC;IAE1C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACrC,MAAM,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QAC9B,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QACrB,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;KAClB;IAED;IACA,MAAM,EAAE,GACN,OAAO,WAAW,KAAK,WAAW;UAC9B,IAAI,WAAW,EAAE;UACjB,OAAO,MAAM,KAAK,WAAW;cAC7B;gBACE,MAAM,CAAC,GAAe;oBACpB,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;oBACpE,OAAO,GAAG,CAAC,QAAQ,EAAE,CAAC;iBACvB;aACF;cACD;gBACE,MAAM,CAAC,GAAe;oBACpB,IAAI,GAAG,GAAG,EAAE,CAAC;oBACb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;wBACnC,GAAG,IAAI,MAAM,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;qBACpC;oBACD,OAAO,GAAG,CAAC;iBACZ;aACF,CAAC;aAEQ,MAAM,CAAC,QAAgB;QACrC,MAAM,KAAK,GAA6C,IAAI,UAAU,CAAC,CAAC,CAAQ,CAAC;QACjF,MAAM,OAAO,GAAsB,EAAE,CAAC;QACtC,IAAI,IAAI,GAAkB,EAAE,CAAC;QAC7B,IAAI,MAAM,GAAG,IAAI,CAAC;QAClB,IAAI,OAAO,GAAG,CAAC,CAAC;QAEhB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,GAAI;YACrC,MAAM,CAAC,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YAEjC,IAAI,CAAC,KAAK,KAAK,EAAE;gBACf,CAAC,EAAE,CAAC;aACL;iBAAM,IAAI,CAAC,KAAK,SAAS,EAAE;gBAC1B,KAAK,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,CAAC,CAAC;gBACvB,IAAI,CAAC,MAAM;oBAAE,IAAI,CAAC,IAAI,CAAC,CAAC;gBACxB,MAAM,GAAG,IAAI,CAAC;gBACd,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACnB,IAAI,GAAG,EAAE,CAAC;gBACV,CAAC,EAAE,CAAC;aACL;iBAAM;gBACL,CAAC,GAAG,aAAa,CAAC,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;gBACzC,MAAM,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;gBACrB,IAAI,GAAG,GAAG,OAAO;oBAAE,MAAM,GAAG,KAAK,CAAC;gBAClC,OAAO,GAAG,GAAG,CAAC;gBAEd,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE;oBACjC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;oBACjB,SAAS;iBACV;gBAED,CAAC,GAAG,aAAa,CAAC,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;gBACzC,CAAC,GAAG,aAAa,CAAC,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;gBACzC,CAAC,GAAG,aAAa,CAAC,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;gBAEzC,IAAI,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE;oBACjC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;oBAC/C,SAAS;iBACV;gBAED,CAAC,GAAG,aAAa,CAAC,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC;gBACzC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;aAC1D;SACF;QAED,IAAI,CAAC,MAAM;YAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QACxB,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAEnB,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,SAAS,aAAa,CAAC,QAAgB,EAAE,GAAW,EAAE,KAAuB,EAAE,CAAS;QACtF,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,IAAI,OAAO,GAAG,CAAC,CAAC;QAEhB,GAAG;YACD,MAAM,CAAC,GAAG,QAAQ,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC;YACrC,OAAO,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;YAC3B,KAAK,IAAI,CAAC,OAAO,GAAG,EAAE,KAAK,KAAK,CAAC;YACjC,KAAK,IAAI,CAAC,CAAC;SACZ,QAAQ,OAAO,GAAG,EAAE,EAAE;QAEvB,MAAM,YAAY,GAAG,KAAK,GAAG,CAAC,CAAC;QAC/B,KAAK,MAAM,CAAC,CAAC;QAEb,IAAI,YAAY,EAAE;YAChB,KAAK,GAAG,CAAC,UAAU,GAAG,CAAC,KAAK,CAAC;SAC9B;QAED,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC;QAClB,OAAO,GAAG,CAAC;IACb,CAAC;IAED,SAAS,eAAe,CAAC,QAAgB,EAAE,CAAS;QAClD,IAAI,CAAC,IAAI,QAAQ,CAAC,MAAM;YAAE,OAAO,KAAK,CAAC;QAEvC,MAAM,CAAC,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACjC,IAAI,CAAC,KAAK,KAAK,IAAI,CAAC,KAAK,SAAS;YAAE,OAAO,KAAK,CAAC;QACjD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,IAAI,CAAC,IAAwB;QACpC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IAC5B,CAAC;IAED,SAAS,cAAc,CAAC,CAAmB,EAAE,CAAmB;QAC9D,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACrB,CAAC;aAEe,MAAM,CAAC,OAA0B;QAC/C,MAAM,KAAK,GAA6C,IAAI,UAAU,CAAC,CAAC,CAAQ,CAAC;QACjF,IAAI,GAAG,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;QAC/B,IAAI,GAAG,GAAG,CAAC,CAAC;QAEZ,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACvC,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YACxB,IAAI,CAAC,GAAG,CAAC,EAAE;gBACT,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;gBAC3B,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,SAAS,CAAC;aACxB;YACD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC;gBAAE,SAAS;YAEhC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;YAEb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACpC,MAAM,OAAO,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;;;gBAGxB,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC;gBAC5B,IAAI,CAAC,GAAG,CAAC;oBAAE,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,KAAK,CAAC;gBAE9B,GAAG,GAAG,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;gBAEjD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;oBAAE,SAAS;gBACnC,GAAG,GAAG,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;gBACjD,GAAG,GAAG,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;gBACjD,GAAG,GAAG,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;gBAEjD,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC;oBAAE,SAAS;gBACnC,GAAG,GAAG,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC;aAClD;SACF;QAED,OAAO,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;IACzC,CAAC;IAED,SAAS,OAAO,CAAC,GAAe,EAAE,GAAW,EAAE,KAAa;QAC1D,IAAI,GAAG,CAAC,MAAM,GAAG,GAAG,GAAG,KAAK;YAAE,OAAO,GAAG,CAAC;QAEzC,MAAM,IAAI,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QAC5C,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACd,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,aAAa,CACpB,GAAe,EACf,GAAW,EACX,KAAuB,EACvB,OAAyB,EACzB,CAAS;QAET,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;QACxB,IAAI,GAAG,GAAG,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1B,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;QAEhB,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,CAAC;QAC3C,GAAG;YACD,IAAI,OAAO,GAAG,GAAG,GAAG,QAAQ,CAAC;YAC7B,GAAG,MAAM,CAAC,CAAC;YACX,IAAI,GAAG,GAAG,CAAC;gBAAE,OAAO,IAAI,QAAQ,CAAC;YACjC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC,CAAC;SACjC,QAAQ,GAAG,GAAG,CAAC,EAAE;QAElB,OAAO,GAAG,CAAC;IACb;;;;;;;;;;;"} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..6ac3c1d525f65c0322b3e25f672a6a728d38d094 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/dist/types/sourcemap-codec.d.ts" @@ -0,0 +1,5 @@ +export declare type SourceMapSegment = [number] | [number, number, number, number] | [number, number, number, number, number]; +export declare type SourceMapLine = SourceMapSegment[]; +export declare type SourceMapMappings = SourceMapLine[]; +export declare function decode(mappings: string): SourceMapMappings; +export declare function encode(decoded: SourceMapMappings): string; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..0dc07c9103776a20813a78d97e3e95e074a63e61 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/sourcemap-codec/package.json" @@ -0,0 +1,69 @@ +{ + "name": "@jridgewell/sourcemap-codec", + "version": "1.4.11", + "description": "Encode/decode sourcemap mappings", + "keywords": [ + "sourcemap", + "vlq" + ], + "main": "dist/sourcemap-codec.umd.js", + "module": "dist/sourcemap-codec.mjs", + "typings": "dist/types/sourcemap-codec.d.ts", + "files": [ + "dist" + ], + "exports": { + ".": { + "browser": "./dist/sourcemap-codec.umd.js", + "import": "./dist/sourcemap-codec.mjs", + "require": "./dist/sourcemap-codec.umd.js" + }, + "./package.json": "./package.json" + }, + "scripts": { + "benchmark": "run-s build:rollup benchmark:only", + "benchmark:only": "node benchmark/index.js", + "build": "run-s -n build:*", + "build:rollup": "rollup -c rollup.config.js", + "build:ts": "tsc --project tsconfig.build.json", + "lint": "run-s -n lint:*", + "lint:prettier": "npm run test:lint:prettier -- --write", + "lint:ts": "npm run test:lint:ts -- --fix", + "prebuild": "rm -rf dist", + "prepublishOnly": "npm run preversion", + "preversion": "run-s test build", + "pretest": "run-s build:rollup", + "test": "run-s -n test:lint test:only", + "test:debug": "mocha --inspect-brk", + "test:lint": "run-s -n test:lint:*", + "test:lint:prettier": "prettier --check '{src,test}/**/*.ts'", + "test:lint:ts": "eslint '{src,test}/**/*.ts'", + "test:only": "mocha", + "test:coverage": "c8 mocha", + "test:watch": "mocha --watch" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/jridgewell/sourcemap-codec.git" + }, + "author": "Rich Harris", + "license": "MIT", + "devDependencies": { + "@rollup/plugin-typescript": "8.3.0", + "@types/node": "17.0.15", + "@typescript-eslint/eslint-plugin": "5.10.0", + "@typescript-eslint/parser": "5.10.0", + "benchmark": "2.1.4", + "c8": "7.11.0", + "eslint": "8.7.0", + "eslint-config-prettier": "8.3.0", + "mocha": "9.2.0", + "npm-run-all": "4.1.5", + "prettier": "2.5.1", + "rollup": "2.64.0", + "source-map": "0.6.1", + "source-map-js": "1.0.2", + "sourcemap-codec": "1.4.8", + "typescript": "4.5.4" + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..37bb488f08a1297216557d4197fa33de9908d8c8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/LICENSE" @@ -0,0 +1,19 @@ +Copyright 2022 Justin Ridgewell + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..90aafc7ccad15d387a46d8175ea80f16f55b84a4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/README.md" @@ -0,0 +1,77 @@ +# @jridgewell/trace-mapping + +> Trace the original position through a source map + +`trace-mapping` allows you to take the line and column of an output file and trace it to the +original location in the source file through a source map. + +You may already be familiar with the [`source-map`][source-map] package's `SourceMapConsumer`. This +provides the same `originalPositionFor` API, without requires WASM. + +## Installation + +```sh +npm install @jridgewell/trace-mapping +``` + +## Usage + +```typescript +import { TraceMap, originalPositionFor } from '@jridgewell/trace-mapping'; + +const tracer = new TraceMap({ + version: 3, + sources: ['input.js'], + names: ['foo'], + mappings: 'KAyCIA', +}); + +// Lines start at line 1, columns at column 0. +const traced = originalPositionFor(tracer, { line: 1, column: 5 }); +assert.deepEqual(traced, { + source: 'input.js', + line: 42, + column: 4, + name: 'foo', +}); +``` + +We also provide a lower level API to get the actual segment that matches our line and column. Unlike +`originalPositionFor`, `traceSegment` uses a 0-base for `line`: + +```typescript +import { originalPositionFor } from '@jridgewell/trace-mapping'; + +// line is 0-base. +const traced = traceSegment(tracer, /* line */ 0, /* column */ 5); + +// Segments are [outputColumn, sourcesIndex, sourceLine, sourceColumn, namesIndex] +// Again, line is 0-base and so is sourceLine +assert.deepEqual(traced, [5, 0, 41, 4, 0]); +``` + +## Benchmarks + +`trace-mapping` is the fastest source map tracing library, by a factor of 4-10x when +constructing/parsing source maps and another 6-10x when using `originalPositionFor` on an already +constructed instance. + +``` +node v16.13.2 + +trace-mapping: decoded JSON input x 7,224 ops/sec ±0.24% (99 runs sampled) +trace-mapping: encoded JSON input x 22,539 ops/sec ±0.17% (98 runs sampled) +trace-mapping: decoded Object input x 161,786 ops/sec ±0.11% (101 runs sampled) +trace-mapping: encoded Object input x 24,485 ops/sec ±0.10% (100 runs sampled) +source-map-js: encoded Object input x 6,195 ops/sec ±0.36% (100 runs sampled) +source-map: encoded Object input x 2,602 ops/sec ±0.16% (100 runs sampled) +Fastest is trace-mapping: decoded Object input + +trace-mapping: decoded originalPositionFor x 19,860 ops/sec ±0.11% (101 runs sampled) +trace-mapping: encoded originalPositionFor x 19,250 ops/sec ±0.23% (100 runs sampled) +source-map-js: encoded originalPositionFor x 2,897 ops/sec ±0.09% (100 runs sampled) +source-map: encoded originalPositionFor x 1,571 ops/sec ±0.10% (100 runs sampled) +Fastest is trace-mapping: decoded originalPositionFor +``` + +[source-map]: https://www.npmjs.com/package/source-map diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs" new file mode 100644 index 0000000000000000000000000000000000000000..fd59d7605634cb7d4d04d930123f37747be6be89 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs" @@ -0,0 +1,269 @@ +import { decode, encode } from '@jridgewell/sourcemap-codec'; +import resolveUri from '@jridgewell/resolve-uri'; + +function resolve(input, base) { + // The base is always treated as a directory, if it's not empty. + // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327 + // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401 + if (base && !base.endsWith('/')) + base += '/'; + return resolveUri(input, base); +} + +/** + * Removes everything after the last "/", but leaves the slash. + */ +function stripFilename(path) { + if (!path) + return ''; + const index = path.lastIndexOf('/'); + return path.slice(0, index + 1); +} + +function maybeSort(mappings, owned) { + const unsortedIndex = nextUnsortedSegmentLine(mappings, 0); + if (unsortedIndex === mappings.length) + return mappings; + // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If + // not, we do not want to modify the consumer's input array. + if (!owned) + mappings = mappings.slice(); + for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) { + mappings[i] = sortSegments(mappings[i], owned); + } + return mappings; +} +function nextUnsortedSegmentLine(mappings, start) { + for (let i = start; i < mappings.length; i++) { + if (!isSorted(mappings[i])) + return i; + } + return mappings.length; +} +function isSorted(line) { + for (let j = 1; j < line.length; j++) { + if (line[j][0] < line[j - 1][0]) { + return false; + } + } + return true; +} +function sortSegments(line, owned) { + if (!owned) + line = line.slice(); + return line.sort(sortComparator); +} +function sortComparator(a, b) { + return a[0] - b[0]; +} + +/** + * A binary search implementation that returns the index if a match is found. + * If no match is found, then the left-index (the index associated with the item that comes just + * before the desired index) is returned. To maintain proper sort order, a splice would happen at + * the next index: + * + * ```js + * const array = [1, 3]; + * const needle = 2; + * const index = binarySearch(array, needle, (item, needle) => item - needle); + * + * assert.equal(index, 0); + * array.splice(index + 1, 0, needle); + * assert.deepEqual(array, [1, 2, 3]); + * ``` + */ +function binarySearch(haystack, needle, low, high) { + while (low <= high) { + const mid = low + ((high - low) >> 1); + const cmp = haystack[mid][0] - needle; + if (cmp === 0) { + return mid; + } + if (cmp < 0) { + low = mid + 1; + } + else { + high = mid - 1; + } + } + return low - 1; +} +function memoizedState() { + return { + lastKey: -1, + lastNeedle: -1, + lastIndex: -1, + }; +} +/** + * This overly complicated beast is just to record the last tested line/column and the resulting + * index, allowing us to skip a few tests if mappings are monotonically increasing. + */ +function memoizedBinarySearch(haystack, needle, state, key) { + const { lastKey, lastNeedle, lastIndex } = state; + let low = 0; + let high = haystack.length - 1; + if (key === lastKey) { + if (needle === lastNeedle) { + return lastIndex; + } + if (needle >= lastNeedle) { + // lastIndex may be -1 if the previous needle was not found. + low = Math.max(lastIndex, 0); + } + else { + high = lastIndex; + } + } + state.lastKey = key; + state.lastNeedle = needle; + return (state.lastIndex = binarySearch(haystack, needle, low, high)); +} + +const INVALID_MAPPING = Object.freeze({ + source: null, + line: null, + column: null, + name: null, +}); +/** + * Returns the encoded (VLQ string) form of the SourceMap's mappings field. + */ +let encodedMappings; +/** + * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field. + */ +let decodedMappings; +/** + * A low-level API to find the segment associated with a generated line/column (think, from a + * stack trace). Line and column here are 0-based, unlike `originalPositionFor`. + */ +let traceSegment; +/** + * A higher-level API to find the source/line/column associated with a generated line/column + * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in + * `source-map` library. + */ +let originalPositionFor; +/** + * Iterates each mapping in generated position order. + */ +let eachMapping; +/** + * A helper that skips sorting of the input map's mappings array, which can be expensive for larger + * maps. + */ +let presortedDecodedMap; +class TraceMap { + constructor(map, mapUrl) { + this._binarySearchMemo = memoizedState(); + const isString = typeof map === 'string'; + const parsed = isString ? JSON.parse(map) : map; + const { version, file, names, sourceRoot, sources, sourcesContent } = parsed; + this.version = version; + this.file = file; + this.names = names; + this.sourceRoot = sourceRoot; + this.sources = sources; + this.sourcesContent = sourcesContent; + if (sourceRoot || mapUrl) { + const from = resolve(sourceRoot || '', stripFilename(mapUrl)); + this.resolvedSources = sources.map((s) => resolve(s || '', from)); + } + else { + this.resolvedSources = sources.map((s) => s || ''); + } + const { mappings } = parsed; + if (typeof mappings === 'string') { + this._encoded = mappings; + this._decoded = decode(mappings); + } + else { + this._encoded = undefined; + this._decoded = maybeSort(mappings, isString); + } + } +} +(() => { + encodedMappings = (map) => { + var _a; + return ((_a = map._encoded) !== null && _a !== void 0 ? _a : (map._encoded = encode(map._decoded))); + }; + decodedMappings = (map) => { + return map._decoded; + }; + traceSegment = (map, line, column) => { + const decoded = map._decoded; + // It's common for parent source maps to have pointers to lines that have no + // mapping (like a "//# sourceMappingURL=") at the end of the child file. + if (line >= decoded.length) + return null; + const segments = decoded[line]; + const index = memoizedBinarySearch(segments, column, map._binarySearchMemo, line); + // we come before any mapped segment + if (index < 0) + return null; + return segments[index]; + }; + originalPositionFor = (map, { line, column }) => { + if (line < 1) + throw new Error('`line` must be greater than 0 (lines start at line 1)'); + if (column < 0) { + throw new Error('`column` must be greater than or equal to 0 (columns start at column 0)'); + } + const segment = traceSegment(map, line - 1, column); + if (segment == null) + return INVALID_MAPPING; + if (segment.length == 1) + return INVALID_MAPPING; + const { names, resolvedSources } = map; + return { + source: resolvedSources[segment[1]], + line: segment[2] + 1, + column: segment[3], + name: segment.length === 5 ? names[segment[4]] : null, + }; + }; + eachMapping = (map, cb) => { + const decoded = map._decoded; + const { names, resolvedSources } = map; + for (let i = 0; i < decoded.length; i++) { + const line = decoded[i]; + for (let j = 0; j < line.length; j++) { + const seg = line[j]; + const generatedLine = i + 1; + const generatedColumn = seg[0]; + let source = null; + let originalLine = null; + let originalColumn = null; + let name = null; + if (seg.length !== 1) { + source = resolvedSources[seg[1]]; + originalLine = seg[2] + 1; + originalColumn = seg[3]; + } + if (seg.length === 5) + name = names[seg[4]]; + cb({ + generatedLine, + generatedColumn, + source, + originalLine, + originalColumn, + name, + }); + } + } + }; + presortedDecodedMap = (map, mapUrl) => { + const clone = Object.assign({}, map); + clone.mappings = []; + const tracer = new TraceMap(clone, mapUrl); + tracer._decoded = map.mappings; + return tracer; + }; +})(); + +export { TraceMap, decodedMappings, eachMapping, encodedMappings, originalPositionFor, presortedDecodedMap, traceSegment }; +//# sourceMappingURL=trace-mapping.mjs.map diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map" new file mode 100644 index 0000000000000000000000000000000000000000..df1463652a2f5c44e3844805c57e6a7f1d780b5d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map" @@ -0,0 +1 @@ +{"version":3,"file":"trace-mapping.mjs","sources":["../../src/resolve.ts","../../src/strip-filename.ts","../../src/sort.ts","../../src/binary-search.ts","../../src/trace-mapping.ts"],"sourcesContent":[null,null,null,null,null],"names":[],"mappings":";;;SAEwB,OAAO,CAAC,KAAa,EAAE,IAAwB;;;;IAIrE,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC;QAAE,IAAI,IAAI,GAAG,CAAC;IAE7C,OAAO,UAAU,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;AACjC;;ACTA;;;SAGwB,aAAa,CAAC,IAA+B;IACnE,IAAI,CAAC,IAAI;QAAE,OAAO,EAAE,CAAC;IACrB,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IACpC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;AAClC;;SCLwB,SAAS,CAC/B,QAA8B,EAC9B,KAAc;IAEd,MAAM,aAAa,GAAG,uBAAuB,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;IAC3D,IAAI,aAAa,KAAK,QAAQ,CAAC,MAAM;QAAE,OAAO,QAAQ,CAAC;;;IAIvD,IAAI,CAAC,KAAK;QAAE,QAAQ,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC;IAExC,KAAK,IAAI,CAAC,GAAG,aAAa,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,uBAAuB,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE;QAC7F,QAAQ,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;KAChD;IACD,OAAO,QAAQ,CAAC;AAClB,CAAC;AAED,SAAS,uBAAuB,CAAC,QAA8B,EAAE,KAAa;IAC5E,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QAC5C,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YAAE,OAAO,CAAC,CAAC;KACtC;IACD,OAAO,QAAQ,CAAC,MAAM,CAAC;AACzB,CAAC;AAED,SAAS,QAAQ,CAAC,IAAwB;IACxC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACpC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;YAC/B,OAAO,KAAK,CAAC;SACd;KACF;IACD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,SAAS,YAAY,CAAC,IAAwB,EAAE,KAAc;IAC5D,IAAI,CAAC,KAAK;QAAE,IAAI,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;IAChC,OAAO,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;AACnC,CAAC;AAED,SAAS,cAAc,CAAC,CAAmB,EAAE,CAAmB;IAC9D,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;AACrB;;AClCA;;;;;;;;;;;;;;;;SAgBgB,YAAY,CAC1B,QAA4B,EAC5B,MAAc,EACd,GAAW,EACX,IAAY;IAEZ,OAAO,GAAG,IAAI,IAAI,EAAE;QAClB,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,IAAI,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC;QACtC,MAAM,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;QAEtC,IAAI,GAAG,KAAK,CAAC,EAAE;YACb,OAAO,GAAG,CAAC;SACZ;QAED,IAAI,GAAG,GAAG,CAAC,EAAE;YACX,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;SACf;aAAM;YACL,IAAI,GAAG,GAAG,GAAG,CAAC,CAAC;SAChB;KACF;IAED,OAAO,GAAG,GAAG,CAAC,CAAC;AACjB,CAAC;SAEe,aAAa;IAC3B,OAAO;QACL,OAAO,EAAE,CAAC,CAAC;QACX,UAAU,EAAE,CAAC,CAAC;QACd,SAAS,EAAE,CAAC,CAAC;KACd,CAAC;AACJ,CAAC;AAED;;;;SAIgB,oBAAoB,CAClC,QAA4B,EAC5B,MAAc,EACd,KAAgB,EAChB,GAAW;IAEX,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEjD,IAAI,GAAG,GAAG,CAAC,CAAC;IACZ,IAAI,IAAI,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;IAC/B,IAAI,GAAG,KAAK,OAAO,EAAE;QACnB,IAAI,MAAM,KAAK,UAAU,EAAE;YACzB,OAAO,SAAS,CAAC;SAClB;QAED,IAAI,MAAM,IAAI,UAAU,EAAE;;YAExB,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;SAC9B;aAAM;YACL,IAAI,GAAG,SAAS,CAAC;SAClB;KACF;IACD,KAAK,CAAC,OAAO,GAAG,GAAG,CAAC;IACpB,KAAK,CAAC,UAAU,GAAG,MAAM,CAAC;IAE1B,QAAQ,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE;AACvE;;ACvDA,MAAM,eAAe,GAAmB,MAAM,CAAC,MAAM,CAAC;IACpD,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,IAAI;IACV,MAAM,EAAE,IAAI;IACZ,IAAI,EAAE,IAAI;CACX,CAAC,CAAC;AAEH;;;IAGW,gBAAiE;AAE5E;;;IAGW,gBAA2E;AAEtF;;;;IAIW,aAI4B;AAEvC;;;;;IAKW,oBAAyF;AAEpG;;;IAGW,YAAyE;AAEpF;;;;IAIW,oBAA0E;MAExE,QAAQ;IAcnB,YAAY,GAAmB,EAAE,MAAsB;QAF/C,sBAAiB,GAAG,aAAa,EAAE,CAAC;QAG1C,MAAM,QAAQ,GAAG,OAAO,GAAG,KAAK,QAAQ,CAAC;QACzC,MAAM,MAAM,GAAG,QAAQ,GAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAqC,GAAG,GAAG,CAAC;QAErF,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;QAC7E,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QAErC,IAAI,UAAU,IAAI,MAAM,EAAE;YACxB,MAAM,IAAI,GAAG,OAAO,CAAC,UAAU,IAAI,EAAE,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;YAC9D,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;SACnE;aAAM;YACL,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;SACpD;QAED,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;YAChC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;YACzB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;SAClC;aAAM;YACL,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;YAC1B,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;SAC/C;KACF;CAuFF;AArFC;IACE,eAAe,GAAG,CAAC,GAAG;;QACpB,cAAQ,GAAG,CAAC,QAAQ,oCAAZ,GAAG,CAAC,QAAQ,GAAK,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAE;KAChD,CAAC;IAEF,eAAe,GAAG,CAAC,GAAG;QACpB,OAAO,GAAG,CAAC,QAAQ,CAAC;KACrB,CAAC;IAEF,YAAY,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM;QAC/B,MAAM,OAAO,GAAG,GAAG,CAAC,QAAQ,CAAC;;;QAI7B,IAAI,IAAI,IAAI,OAAO,CAAC,MAAM;YAAE,OAAO,IAAI,CAAC;QAExC,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;QAC/B,MAAM,KAAK,GAAG,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC;;QAGlF,IAAI,KAAK,GAAG,CAAC;YAAE,OAAO,IAAI,CAAC;QAC3B,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;KACxB,CAAC;IAEF,mBAAmB,GAAG,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QAC1C,IAAI,IAAI,GAAG,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;QACvF,IAAI,MAAM,GAAG,CAAC,EAAE;YACd,MAAM,IAAI,KAAK,CAAC,yEAAyE,CAAC,CAAC;SAC5F;QAED,MAAM,OAAO,GAAG,YAAY,CAAC,GAAG,EAAE,IAAI,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC;QACpD,IAAI,OAAO,IAAI,IAAI;YAAE,OAAO,eAAe,CAAC;QAC5C,IAAI,OAAO,CAAC,MAAM,IAAI,CAAC;YAAE,OAAO,eAAe,CAAC;QAEhD,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,GAAG,GAAG,CAAC;QACvC,OAAO;YACL,MAAM,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;YACnC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;YACpB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;YAClB,IAAI,EAAE,OAAO,CAAC,MAAM,KAAK,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;SACtD,CAAC;KACH,CAAC;IAEF,WAAW,GAAG,CAAC,GAAG,EAAE,EAAE;QACpB,MAAM,OAAO,GAAG,GAAG,CAAC,QAAQ,CAAC;QAC7B,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,GAAG,GAAG,CAAC;QAEvC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACvC,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;YACxB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACpC,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;gBAEpB,MAAM,aAAa,GAAG,CAAC,GAAG,CAAC,CAAC;gBAC5B,MAAM,eAAe,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;gBAC/B,IAAI,MAAM,GAAG,IAAI,CAAC;gBAClB,IAAI,YAAY,GAAG,IAAI,CAAC;gBACxB,IAAI,cAAc,GAAG,IAAI,CAAC;gBAC1B,IAAI,IAAI,GAAG,IAAI,CAAC;gBAChB,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE;oBACpB,MAAM,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;oBACjC,YAAY,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;oBAC1B,cAAc,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;iBACzB;gBACD,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC;oBAAE,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;gBAE3C,EAAE,CAAC;oBACD,aAAa;oBACb,eAAe;oBACf,MAAM;oBACN,YAAY;oBACZ,cAAc;oBACd,IAAI;iBACU,CAAC,CAAC;aACnB;SACF;KACF,CAAC;IAEF,mBAAmB,GAAG,CAAC,GAAG,EAAE,MAAM;QAChC,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;QACrC,KAAK,CAAC,QAAQ,GAAG,EAAE,CAAC;QACpB,MAAM,MAAM,GAAG,IAAI,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;QAC3C,MAAM,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;QAC/B,OAAO,MAAM,CAAC;KACf,CAAC;AACJ,CAAC,GAAA;;;;"} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js" new file mode 100644 index 0000000000000000000000000000000000000000..19f8f26a3e3cb6e6ee1218f1122bf2ca64422479 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js" @@ -0,0 +1,280 @@ +(function (global, factory) { + typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@jridgewell/sourcemap-codec'), require('@jridgewell/resolve-uri')) : + typeof define === 'function' && define.amd ? define(['exports', '@jridgewell/sourcemap-codec', '@jridgewell/resolve-uri'], factory) : + (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.traceMapping = {}, global.sourcemapCodec, global.resolveURI)); +})(this, (function (exports, sourcemapCodec, resolveUri) { 'use strict'; + + function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } + + var resolveUri__default = /*#__PURE__*/_interopDefaultLegacy(resolveUri); + + function resolve(input, base) { + // The base is always treated as a directory, if it's not empty. + // https://github.com/mozilla/source-map/blob/8cb3ee57/lib/util.js#L327 + // https://github.com/chromium/chromium/blob/da4adbb3/third_party/blink/renderer/devtools/front_end/sdk/SourceMap.js#L400-L401 + if (base && !base.endsWith('/')) + base += '/'; + return resolveUri__default["default"](input, base); + } + + /** + * Removes everything after the last "/", but leaves the slash. + */ + function stripFilename(path) { + if (!path) + return ''; + const index = path.lastIndexOf('/'); + return path.slice(0, index + 1); + } + + function maybeSort(mappings, owned) { + const unsortedIndex = nextUnsortedSegmentLine(mappings, 0); + if (unsortedIndex === mappings.length) + return mappings; + // If we own the array (meaning we parsed it from JSON), then we're free to directly mutate it. If + // not, we do not want to modify the consumer's input array. + if (!owned) + mappings = mappings.slice(); + for (let i = unsortedIndex; i < mappings.length; i = nextUnsortedSegmentLine(mappings, i + 1)) { + mappings[i] = sortSegments(mappings[i], owned); + } + return mappings; + } + function nextUnsortedSegmentLine(mappings, start) { + for (let i = start; i < mappings.length; i++) { + if (!isSorted(mappings[i])) + return i; + } + return mappings.length; + } + function isSorted(line) { + for (let j = 1; j < line.length; j++) { + if (line[j][0] < line[j - 1][0]) { + return false; + } + } + return true; + } + function sortSegments(line, owned) { + if (!owned) + line = line.slice(); + return line.sort(sortComparator); + } + function sortComparator(a, b) { + return a[0] - b[0]; + } + + /** + * A binary search implementation that returns the index if a match is found. + * If no match is found, then the left-index (the index associated with the item that comes just + * before the desired index) is returned. To maintain proper sort order, a splice would happen at + * the next index: + * + * ```js + * const array = [1, 3]; + * const needle = 2; + * const index = binarySearch(array, needle, (item, needle) => item - needle); + * + * assert.equal(index, 0); + * array.splice(index + 1, 0, needle); + * assert.deepEqual(array, [1, 2, 3]); + * ``` + */ + function binarySearch(haystack, needle, low, high) { + while (low <= high) { + const mid = low + ((high - low) >> 1); + const cmp = haystack[mid][0] - needle; + if (cmp === 0) { + return mid; + } + if (cmp < 0) { + low = mid + 1; + } + else { + high = mid - 1; + } + } + return low - 1; + } + function memoizedState() { + return { + lastKey: -1, + lastNeedle: -1, + lastIndex: -1, + }; + } + /** + * This overly complicated beast is just to record the last tested line/column and the resulting + * index, allowing us to skip a few tests if mappings are monotonically increasing. + */ + function memoizedBinarySearch(haystack, needle, state, key) { + const { lastKey, lastNeedle, lastIndex } = state; + let low = 0; + let high = haystack.length - 1; + if (key === lastKey) { + if (needle === lastNeedle) { + return lastIndex; + } + if (needle >= lastNeedle) { + // lastIndex may be -1 if the previous needle was not found. + low = Math.max(lastIndex, 0); + } + else { + high = lastIndex; + } + } + state.lastKey = key; + state.lastNeedle = needle; + return (state.lastIndex = binarySearch(haystack, needle, low, high)); + } + + const INVALID_MAPPING = Object.freeze({ + source: null, + line: null, + column: null, + name: null, + }); + /** + * Returns the encoded (VLQ string) form of the SourceMap's mappings field. + */ + exports.encodedMappings = void 0; + /** + * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field. + */ + exports.decodedMappings = void 0; + /** + * A low-level API to find the segment associated with a generated line/column (think, from a + * stack trace). Line and column here are 0-based, unlike `originalPositionFor`. + */ + exports.traceSegment = void 0; + /** + * A higher-level API to find the source/line/column associated with a generated line/column + * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in + * `source-map` library. + */ + exports.originalPositionFor = void 0; + /** + * Iterates each mapping in generated position order. + */ + exports.eachMapping = void 0; + /** + * A helper that skips sorting of the input map's mappings array, which can be expensive for larger + * maps. + */ + exports.presortedDecodedMap = void 0; + class TraceMap { + constructor(map, mapUrl) { + this._binarySearchMemo = memoizedState(); + const isString = typeof map === 'string'; + const parsed = isString ? JSON.parse(map) : map; + const { version, file, names, sourceRoot, sources, sourcesContent } = parsed; + this.version = version; + this.file = file; + this.names = names; + this.sourceRoot = sourceRoot; + this.sources = sources; + this.sourcesContent = sourcesContent; + if (sourceRoot || mapUrl) { + const from = resolve(sourceRoot || '', stripFilename(mapUrl)); + this.resolvedSources = sources.map((s) => resolve(s || '', from)); + } + else { + this.resolvedSources = sources.map((s) => s || ''); + } + const { mappings } = parsed; + if (typeof mappings === 'string') { + this._encoded = mappings; + this._decoded = sourcemapCodec.decode(mappings); + } + else { + this._encoded = undefined; + this._decoded = maybeSort(mappings, isString); + } + } + } + (() => { + exports.encodedMappings = (map) => { + var _a; + return ((_a = map._encoded) !== null && _a !== void 0 ? _a : (map._encoded = sourcemapCodec.encode(map._decoded))); + }; + exports.decodedMappings = (map) => { + return map._decoded; + }; + exports.traceSegment = (map, line, column) => { + const decoded = map._decoded; + // It's common for parent source maps to have pointers to lines that have no + // mapping (like a "//# sourceMappingURL=") at the end of the child file. + if (line >= decoded.length) + return null; + const segments = decoded[line]; + const index = memoizedBinarySearch(segments, column, map._binarySearchMemo, line); + // we come before any mapped segment + if (index < 0) + return null; + return segments[index]; + }; + exports.originalPositionFor = (map, { line, column }) => { + if (line < 1) + throw new Error('`line` must be greater than 0 (lines start at line 1)'); + if (column < 0) { + throw new Error('`column` must be greater than or equal to 0 (columns start at column 0)'); + } + const segment = exports.traceSegment(map, line - 1, column); + if (segment == null) + return INVALID_MAPPING; + if (segment.length == 1) + return INVALID_MAPPING; + const { names, resolvedSources } = map; + return { + source: resolvedSources[segment[1]], + line: segment[2] + 1, + column: segment[3], + name: segment.length === 5 ? names[segment[4]] : null, + }; + }; + exports.eachMapping = (map, cb) => { + const decoded = map._decoded; + const { names, resolvedSources } = map; + for (let i = 0; i < decoded.length; i++) { + const line = decoded[i]; + for (let j = 0; j < line.length; j++) { + const seg = line[j]; + const generatedLine = i + 1; + const generatedColumn = seg[0]; + let source = null; + let originalLine = null; + let originalColumn = null; + let name = null; + if (seg.length !== 1) { + source = resolvedSources[seg[1]]; + originalLine = seg[2] + 1; + originalColumn = seg[3]; + } + if (seg.length === 5) + name = names[seg[4]]; + cb({ + generatedLine, + generatedColumn, + source, + originalLine, + originalColumn, + name, + }); + } + } + }; + exports.presortedDecodedMap = (map, mapUrl) => { + const clone = Object.assign({}, map); + clone.mappings = []; + const tracer = new TraceMap(clone, mapUrl); + tracer._decoded = map.mappings; + return tracer; + }; + })(); + + exports.TraceMap = TraceMap; + + Object.defineProperty(exports, '__esModule', { value: true }); + +})); +//# sourceMappingURL=trace-mapping.umd.js.map diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map" new file mode 100644 index 0000000000000000000000000000000000000000..02a91d9cfbd00f9d657f5a3200248c9110bfeb7e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map" @@ -0,0 +1 @@ +{"version":3,"file":"trace-mapping.umd.js","sources":["../../src/resolve.ts","../../src/strip-filename.ts","../../src/sort.ts","../../src/binary-search.ts","../../src/trace-mapping.ts"],"sourcesContent":[null,null,null,null,null],"names":["resolveUri","encodedMappings","decodedMappings","traceSegment","originalPositionFor","eachMapping","presortedDecodedMap","decode","encode"],"mappings":";;;;;;;;;;aAEwB,OAAO,CAAC,KAAa,EAAE,IAAwB;;;;QAIrE,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC;YAAE,IAAI,IAAI,GAAG,CAAC;QAE7C,OAAOA,8BAAU,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IACjC;;ICTA;;;aAGwB,aAAa,CAAC,IAA+B;QACnE,IAAI,CAAC,IAAI;YAAE,OAAO,EAAE,CAAC;QACrB,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;QACpC,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC;IAClC;;aCLwB,SAAS,CAC/B,QAA8B,EAC9B,KAAc;QAEd,MAAM,aAAa,GAAG,uBAAuB,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;QAC3D,IAAI,aAAa,KAAK,QAAQ,CAAC,MAAM;YAAE,OAAO,QAAQ,CAAC;;;QAIvD,IAAI,CAAC,KAAK;YAAE,QAAQ,GAAG,QAAQ,CAAC,KAAK,EAAE,CAAC;QAExC,KAAK,IAAI,CAAC,GAAG,aAAa,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,GAAG,uBAAuB,CAAC,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE;YAC7F,QAAQ,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;SAChD;QACD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,SAAS,uBAAuB,CAAC,QAA8B,EAAE,KAAa;QAC5E,KAAK,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YAC5C,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;gBAAE,OAAO,CAAC,CAAC;SACtC;QACD,OAAO,QAAQ,CAAC,MAAM,CAAC;IACzB,CAAC;IAED,SAAS,QAAQ,CAAC,IAAwB;QACxC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;YACpC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;gBAC/B,OAAO,KAAK,CAAC;aACd;SACF;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,SAAS,YAAY,CAAC,IAAwB,EAAE,KAAc;QAC5D,IAAI,CAAC,KAAK;YAAE,IAAI,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;QAChC,OAAO,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IACnC,CAAC;IAED,SAAS,cAAc,CAAC,CAAmB,EAAE,CAAmB;QAC9D,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACrB;;IClCA;;;;;;;;;;;;;;;;aAgBgB,YAAY,CAC1B,QAA4B,EAC5B,MAAc,EACd,GAAW,EACX,IAAY;QAEZ,OAAO,GAAG,IAAI,IAAI,EAAE;YAClB,MAAM,GAAG,GAAG,GAAG,IAAI,CAAC,IAAI,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC;YACtC,MAAM,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,MAAM,CAAC;YAEtC,IAAI,GAAG,KAAK,CAAC,EAAE;gBACb,OAAO,GAAG,CAAC;aACZ;YAED,IAAI,GAAG,GAAG,CAAC,EAAE;gBACX,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC;aACf;iBAAM;gBACL,IAAI,GAAG,GAAG,GAAG,CAAC,CAAC;aAChB;SACF;QAED,OAAO,GAAG,GAAG,CAAC,CAAC;IACjB,CAAC;aAEe,aAAa;QAC3B,OAAO;YACL,OAAO,EAAE,CAAC,CAAC;YACX,UAAU,EAAE,CAAC,CAAC;YACd,SAAS,EAAE,CAAC,CAAC;SACd,CAAC;IACJ,CAAC;IAED;;;;aAIgB,oBAAoB,CAClC,QAA4B,EAC5B,MAAc,EACd,KAAgB,EAChB,GAAW;QAEX,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;QAEjD,IAAI,GAAG,GAAG,CAAC,CAAC;QACZ,IAAI,IAAI,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;QAC/B,IAAI,GAAG,KAAK,OAAO,EAAE;YACnB,IAAI,MAAM,KAAK,UAAU,EAAE;gBACzB,OAAO,SAAS,CAAC;aAClB;YAED,IAAI,MAAM,IAAI,UAAU,EAAE;;gBAExB,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;aAC9B;iBAAM;gBACL,IAAI,GAAG,SAAS,CAAC;aAClB;SACF;QACD,KAAK,CAAC,OAAO,GAAG,GAAG,CAAC;QACpB,KAAK,CAAC,UAAU,GAAG,MAAM,CAAC;QAE1B,QAAQ,KAAK,CAAC,SAAS,GAAG,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE;IACvE;;ICvDA,MAAM,eAAe,GAAmB,MAAM,CAAC,MAAM,CAAC;QACpD,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,IAAI;QACZ,IAAI,EAAE,IAAI;KACX,CAAC,CAAC;IAEH;;;AAGWC,qCAAiE;IAE5E;;;AAGWC,qCAA2E;IAEtF;;;;AAIWC,kCAI4B;IAEvC;;;;;AAKWC,yCAAyF;IAEpG;;;AAGWC,iCAAyE;IAEpF;;;;AAIWC,yCAA0E;UAExE,QAAQ;QAcnB,YAAY,GAAmB,EAAE,MAAsB;YAF/C,sBAAiB,GAAG,aAAa,EAAE,CAAC;YAG1C,MAAM,QAAQ,GAAG,OAAO,GAAG,KAAK,QAAQ,CAAC;YACzC,MAAM,MAAM,GAAG,QAAQ,GAAI,IAAI,CAAC,KAAK,CAAC,GAAG,CAAqC,GAAG,GAAG,CAAC;YAErF,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,MAAM,CAAC;YAC7E,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;YACvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;YACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACnB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;YAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;YACvB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;YAErC,IAAI,UAAU,IAAI,MAAM,EAAE;gBACxB,MAAM,IAAI,GAAG,OAAO,CAAC,UAAU,IAAI,EAAE,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;gBAC9D,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,IAAI,CAAC,CAAC,CAAC;aACnE;iBAAM;gBACL,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC;aACpD;YAED,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;YAC5B,IAAI,OAAO,QAAQ,KAAK,QAAQ,EAAE;gBAChC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;gBACzB,IAAI,CAAC,QAAQ,GAAGC,qBAAM,CAAC,QAAQ,CAAC,CAAC;aAClC;iBAAM;gBACL,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC;gBAC1B,IAAI,CAAC,QAAQ,GAAG,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;aAC/C;SACF;KAuFF;IArFC;QACEN,uBAAe,GAAG,CAAC,GAAG;;YACpB,cAAQ,GAAG,CAAC,QAAQ,oCAAZ,GAAG,CAAC,QAAQ,GAAKO,qBAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAE;SAChD,CAAC;QAEFN,uBAAe,GAAG,CAAC,GAAG;YACpB,OAAO,GAAG,CAAC,QAAQ,CAAC;SACrB,CAAC;QAEFC,oBAAY,GAAG,CAAC,GAAG,EAAE,IAAI,EAAE,MAAM;YAC/B,MAAM,OAAO,GAAG,GAAG,CAAC,QAAQ,CAAC;;;YAI7B,IAAI,IAAI,IAAI,OAAO,CAAC,MAAM;gBAAE,OAAO,IAAI,CAAC;YAExC,MAAM,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;YAC/B,MAAM,KAAK,GAAG,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,CAAC,iBAAiB,EAAE,IAAI,CAAC,CAAC;;YAGlF,IAAI,KAAK,GAAG,CAAC;gBAAE,OAAO,IAAI,CAAC;YAC3B,OAAO,QAAQ,CAAC,KAAK,CAAC,CAAC;SACxB,CAAC;QAEFC,2BAAmB,GAAG,CAAC,GAAG,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YAC1C,IAAI,IAAI,GAAG,CAAC;gBAAE,MAAM,IAAI,KAAK,CAAC,uDAAuD,CAAC,CAAC;YACvF,IAAI,MAAM,GAAG,CAAC,EAAE;gBACd,MAAM,IAAI,KAAK,CAAC,yEAAyE,CAAC,CAAC;aAC5F;YAED,MAAM,OAAO,GAAGD,oBAAY,CAAC,GAAG,EAAE,IAAI,GAAG,CAAC,EAAE,MAAM,CAAC,CAAC;YACpD,IAAI,OAAO,IAAI,IAAI;gBAAE,OAAO,eAAe,CAAC;YAC5C,IAAI,OAAO,CAAC,MAAM,IAAI,CAAC;gBAAE,OAAO,eAAe,CAAC;YAEhD,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,GAAG,GAAG,CAAC;YACvC,OAAO;gBACL,MAAM,EAAE,eAAe,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;gBACnC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;gBACpB,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;gBAClB,IAAI,EAAE,OAAO,CAAC,MAAM,KAAK,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI;aACtD,CAAC;SACH,CAAC;QAEFE,mBAAW,GAAG,CAAC,GAAG,EAAE,EAAE;YACpB,MAAM,OAAO,GAAG,GAAG,CAAC,QAAQ,CAAC;YAC7B,MAAM,EAAE,KAAK,EAAE,eAAe,EAAE,GAAG,GAAG,CAAC;YAEvC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;gBACvC,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;gBACxB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;oBACpC,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;oBAEpB,MAAM,aAAa,GAAG,CAAC,GAAG,CAAC,CAAC;oBAC5B,MAAM,eAAe,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;oBAC/B,IAAI,MAAM,GAAG,IAAI,CAAC;oBAClB,IAAI,YAAY,GAAG,IAAI,CAAC;oBACxB,IAAI,cAAc,GAAG,IAAI,CAAC;oBAC1B,IAAI,IAAI,GAAG,IAAI,CAAC;oBAChB,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE;wBACpB,MAAM,GAAG,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;wBACjC,YAAY,GAAG,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;wBAC1B,cAAc,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;qBACzB;oBACD,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC;wBAAE,IAAI,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;oBAE3C,EAAE,CAAC;wBACD,aAAa;wBACb,eAAe;wBACf,MAAM;wBACN,YAAY;wBACZ,cAAc;wBACd,IAAI;qBACU,CAAC,CAAC;iBACnB;aACF;SACF,CAAC;QAEFC,2BAAmB,GAAG,CAAC,GAAG,EAAE,MAAM;YAChC,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;YACrC,KAAK,CAAC,QAAQ,GAAG,EAAE,CAAC;YACpB,MAAM,MAAM,GAAG,IAAI,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;YAC3C,MAAM,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;YAC/B,OAAO,MAAM,CAAC;SACf,CAAC;IACJ,CAAC,GAAA;;;;;;;;;;"} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..29f860eaed3459a75f6dc15a2b6aa42a4399237f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts" @@ -0,0 +1,30 @@ +import type { SourceMapSegment } from './types'; +declare type MemoState = { + lastKey: number; + lastNeedle: number; + lastIndex: number; +}; +/** + * A binary search implementation that returns the index if a match is found. + * If no match is found, then the left-index (the index associated with the item that comes just + * before the desired index) is returned. To maintain proper sort order, a splice would happen at + * the next index: + * + * ```js + * const array = [1, 3]; + * const needle = 2; + * const index = binarySearch(array, needle, (item, needle) => item - needle); + * + * assert.equal(index, 0); + * array.splice(index + 1, 0, needle); + * assert.deepEqual(array, [1, 2, 3]); + * ``` + */ +export declare function binarySearch(haystack: SourceMapSegment[], needle: number, low: number, high: number): number; +export declare function memoizedState(): MemoState; +/** + * This overly complicated beast is just to record the last tested line/column and the resulting + * index, allowing us to skip a few tests if mappings are monotonically increasing. + */ +export declare function memoizedBinarySearch(haystack: SourceMapSegment[], needle: number, state: MemoState, key: number): number; +export {}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..cf7d4f8a5a6105ee8d10361bc031303d5c30f730 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts" @@ -0,0 +1 @@ +export default function resolve(input: string, base: string | undefined): string; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..bcc13951b860bfb99cb63891a883713311b056fb --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts" @@ -0,0 +1,2 @@ +import type { SourceMapSegment } from './types'; +export default function maybeSort(mappings: SourceMapSegment[][], owned: boolean): SourceMapSegment[][]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..bead5c12c3fe8da9bde28562c7088b48fdf8719f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts" @@ -0,0 +1,4 @@ +/** + * Removes everything after the last "/", but leaves the slash. + */ +export default function stripFilename(path: string | undefined | null): string; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..b4dd9538ed5cfcaa4ae34f65fbf7e81ce4dbf491 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts" @@ -0,0 +1,43 @@ +import type { SourceMapV3, DecodedSourceMap, EncodedSourceMap, InvalidMapping, OriginalMapping, SourceMapSegment, SourceMapInput, Needle, SourceMap, EachMapping } from './types'; +export type { SourceMapSegment, SourceMapInput, DecodedSourceMap, EncodedSourceMap, InvalidMapping, OriginalMapping as Mapping, OriginalMapping, EachMapping, } from './types'; +/** + * Returns the encoded (VLQ string) form of the SourceMap's mappings field. + */ +export declare let encodedMappings: (map: TraceMap) => EncodedSourceMap['mappings']; +/** + * Returns the decoded (array of lines of segments) form of the SourceMap's mappings field. + */ +export declare let decodedMappings: (map: TraceMap) => Readonly; +/** + * A low-level API to find the segment associated with a generated line/column (think, from a + * stack trace). Line and column here are 0-based, unlike `originalPositionFor`. + */ +export declare let traceSegment: (map: TraceMap, line: number, column: number) => Readonly | null; +/** + * A higher-level API to find the source/line/column associated with a generated line/column + * (think, from a stack trace). Line is 1-based, but column is 0-based, due to legacy behavior in + * `source-map` library. + */ +export declare let originalPositionFor: (map: TraceMap, needle: Needle) => OriginalMapping | InvalidMapping; +/** + * Iterates each mapping in generated position order. + */ +export declare let eachMapping: (map: TraceMap, cb: (mapping: EachMapping) => void) => void; +/** + * A helper that skips sorting of the input map's mappings array, which can be expensive for larger + * maps. + */ +export declare let presortedDecodedMap: (map: DecodedSourceMap, mapUrl?: string) => TraceMap; +export declare class TraceMap implements SourceMap { + version: SourceMapV3['version']; + file: SourceMapV3['file']; + names: SourceMapV3['names']; + sourceRoot: SourceMapV3['sourceRoot']; + sources: SourceMapV3['sources']; + sourcesContent: SourceMapV3['sourcesContent']; + resolvedSources: string[]; + private _encoded; + private _decoded; + private _binarySearchMemo; + constructor(map: SourceMapInput, mapUrl?: string | null); +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..97adfbfb2fdabd421166784a0f283c03e00a91ea --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts" @@ -0,0 +1,62 @@ +export interface SourceMapV3 { + file?: string | null; + names: string[]; + sourceRoot?: string; + sources: (string | null)[]; + sourcesContent?: (string | null)[]; + version: 3; +} +declare type Column = number; +declare type SourcesIndex = number; +declare type SourceLine = number; +declare type SourceColumn = number; +declare type NamesIndex = number; +export declare type SourceMapSegment = [Column] | [Column, SourcesIndex, SourceLine, SourceColumn] | [Column, SourcesIndex, SourceLine, SourceColumn, NamesIndex]; +export interface EncodedSourceMap extends SourceMapV3 { + mappings: string; +} +export interface DecodedSourceMap extends SourceMapV3 { + mappings: SourceMapSegment[][]; +} +export declare type OriginalMapping = { + source: string | null; + line: number; + column: number; + name: string | null; +}; +export declare type InvalidMapping = { + source: null; + line: null; + column: null; + name: null; +}; +export declare type SourceMapInput = string | EncodedSourceMap | DecodedSourceMap; +export declare type Needle = { + line: number; + column: number; +}; +export declare type EachMapping = { + generatedLine: number; + generatedColumn: number; + source: null; + originalLine: null; + originalColumn: null; + name: null; +} | { + generatedLine: number; + generatedColumn: number; + source: string | null; + originalLine: number; + originalColumn: number; + name: string | null; +}; +export declare abstract class SourceMap { + version: SourceMapV3['version']; + file: SourceMapV3['file']; + names: SourceMapV3['names']; + sourceRoot: SourceMapV3['sourceRoot']; + sources: SourceMapV3['sources']; + sourcesContent: SourceMapV3['sourcesContent']; + resolvedSources: SourceMapV3['sources']; +} +export {}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..4e51edd88c9c410acce46ede8e1634c730fd80f6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@jridgewell/trace-mapping/package.json" @@ -0,0 +1,71 @@ +{ + "name": "@jridgewell/trace-mapping", + "version": "0.3.4", + "description": "Trace the original position through a source map", + "keywords": [ + "source", + "map" + ], + "main": "dist/trace-mapping.umd.js", + "module": "dist/trace-mapping.mjs", + "typings": "dist/types/trace-mapping.d.ts", + "files": [ + "dist" + ], + "exports": { + ".": { + "browser": "./dist/trace-mapping.umd.js", + "require": "./dist/trace-mapping.umd.js", + "import": "./dist/trace-mapping.mjs" + }, + "./package.json": "./package.json" + }, + "author": "Justin Ridgewell ", + "repository": { + "type": "git", + "url": "git+https://github.com/jridgewell/trace-mapping.git" + }, + "license": "MIT", + "scripts": { + "benchmark": "run-s build:rollup benchmark:only", + "benchmark:only": "node benchmark/index.mjs", + "build": "run-s -n build:*", + "build:rollup": "rollup -c rollup.config.js", + "build:ts": "tsc --project tsconfig.build.json", + "lint": "run-s -n lint:*", + "lint:prettier": "npm run test:lint:prettier -- --write", + "lint:ts": "npm run test:lint:ts -- --fix", + "prebuild": "rm -rf dist", + "prepublishOnly": "npm run preversion", + "preversion": "run-s test build", + "test": "run-s -n test:lint test:only", + "test:debug": "ava debug", + "test:lint": "run-s -n test:lint:*", + "test:lint:prettier": "prettier --check '{src,test}/**/*.ts'", + "test:lint:ts": "eslint '{src,test}/**/*.ts'", + "test:only": "c8 ava", + "test:watch": "ava --watch" + }, + "devDependencies": { + "@rollup/plugin-typescript": "8.3.0", + "@typescript-eslint/eslint-plugin": "5.10.0", + "@typescript-eslint/parser": "5.10.0", + "ava": "4.0.1", + "benchmark": "2.1.4", + "c8": "7.11.0", + "esbuild": "0.14.14", + "esbuild-node-loader": "0.6.4", + "eslint": "8.7.0", + "eslint-config-prettier": "8.3.0", + "npm-run-all": "4.1.5", + "prettier": "2.5.1", + "rollup": "2.64.0", + "source-map": "0.6.1", + "source-map-js": "1.0.2", + "typescript": "4.5.4" + }, + "dependencies": { + "@jridgewell/resolve-uri": "^3.0.3", + "@jridgewell/sourcemap-codec": "^1.4.10" + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@node-ipc/js-queue/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@node-ipc/js-queue/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..f47d876a949f8c183abff900407b88fcaca9cb24 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@node-ipc/js-queue/README.md" @@ -0,0 +1,238 @@ +# js-queue Is Great for any queue + +1. socket message queuing +2. async operations +3. synchronous operations +4. atomic operations +3. code with requirements before executing +4. queues you want to start running any time you add new items +5. any simple or complex queue operations +6. base class to extend +7. anything else that needs a queue +8. Anything which needs a stack instead of a queue. + + +# Stable and easy to use +Works great in node.js, webpack, browserify, or any other commonjs loader or compiler. To use in plain old vanilla browser javascript without common js just replace the requires in the examples with script tags. We show that below too. + +` js-queue ` also exposes the ` easy-stack ` stack via ` require('js-queue/stack.js') ` this file exposes an ES6 stack which allows for Last In First Out (LIFO) queuing. This can come in handy depending on your application needs, check out the [easy-stack javascript documentation](https://github.com/RIAEvangelist/easy-stack) it follows the ` js-queue ` interface but is node 6 or greater as it uses ES6 classes. + +**npm install js-queue** + +npm info : [See npm trends and stats for js-queue](http://npm-stat.com/charts.html?package=@node-ipc/js-queue&author=&from=&to=) +![js-queue npm version](https://img.shields.io/npm/v/js-queue.svg) ![supported node version for js-queue](https://img.shields.io/node/v/js-queue.svg) ![total npm downloads for js-queue](https://img.shields.io/npm/dt/js-queue.svg) ![monthly npm downloads for @node-ipc/js-queue](https://img.shields.io/npm/dm/@node-ipc/js-queue.svg) ![npm licence for @node-ipc/js-queue](https://img.shields.io/npm/l/@node-ipc/js-queue.svg) + +GitHub info : +![js-queue GitHub Release](https://img.shields.io/github/release/node-ipc/js-queue.svg) ![GitHub license js-queue license](https://img.shields.io/github/license/node-ipc/js-queue.svg) ![open issues for js-queue on GitHub](https://img.shields.io/github/issues/node-ipc/js-queue.svg) + +Package details websites : +* [GitHub.io site](http://node-ipc.github.io/js-queue/ "js-queue documentation"). A prettier version of this site. +* [NPM Module](https://www.npmjs.org/package/@node-ipc/js-queue "js-queue npm module"). The npm page for the js-queue module. + +This work is licenced via the MIT Licence. + +## Exposed methods and values + +|key|type|paramaters|default|description| +|----|----|----|----|----| +|add|function|any number of functions| |adds all parameter functions to queue and starts execution if autoRun is true, queue is not already running and queue is not forcibly stopped | +|next|function| | |executes next item in queue if queue is not forcibly stopped| +|clear|function| | |removes remaining items in the queue| +|contents|Array| | | Queue instance contents | +|autoRun|Bool| | true |should autoRun queue when new item added| +|stop|Bool| | false |setting this to true will forcibly prevent the queue from executing| + +### Basic queue use in node, react, browserify, webpack or any other commonjs implementation + +```javascript + + var Queue=require('js-queue'); + //create a new queue instance + var queue=new Queue; + + for(var i=0; i<50; i++){ + //add a bunch of stuff to the queue + queue.add(makeRequest); + } + + function makeRequest(){ + //do stuff + console.log('making some request'); + + this.next(); + } + +``` + +### Basic browser use + +The only difference is including via a script tag instead of using require. + +```html + + + + + + + + + + + +``` + +### Basic use with websockets in node, react, browserify, webpack or any other commonjs implementation + +This allows you to start adding requests immediately and only execute if the websocket is connected. To use in plain browser based JS without webpack or browserify just replace the requires with the script tag. + +```javascript + + var Queue=require('js-queue'); + + //ws-share just makes it easier to share websocket code and ensure you don't open a websocket more than once + var WS=require('ws-share'); + + //js-message makes it easy to create and parse normalized JSON messages. + var Message=require('js-message'); + + //create a new queue instance + var queue=new Queue; + + //force stop until websocket opened + queue.stop=true; + + var ws=null; + + function startWS(){ + //websocket.org rocks + ws=new WS('wss://echo.websocket.org/?encoding=text'); + + ws.on( + 'open', + function(){ + ws.on( + 'message', + handleResponse + ); + + //now that websocket is opened allow auto execution + queue.stop=false; + queue.next(); + } + ); + + ws.on( + 'error', + function(err){ + //stop execution of queue if there is an error because the websocket is likely closed + queue.stop=true; + //remove remaining items in the queue + queue.clear(); + throw(err); + } + ); + + ws.on( + 'close', + function(){ + //stop execution of queue when the websocket closed + queue.stop=true; + } + ); + } + + //simulate a lot of requests being queued up for the websocket + for(var i=0; i<50; i++){ + queue.add(makeRequest); + } + + var messageID=0; + + function handleResponse(e){ + var message=new Message; + message.load(e.data); + + console.log(message.type,message.data); + } + + function makeRequest(){ + messageID++; + var message=new Message; + message.type='testMessage'; + message.data=messageID; + + ws.send(message.JSON); + + this.next(); + } + + startWS(); + +``` + + +# Extending Queue + +```javascript + + var Queue=require('js-queue'); + + //MyAwesomeQueue inherits from Queue + MyAwesomeQueue.prototype = new Queue; + //Constructor will extend Queue + MyAwesomeQueue.prototype.constructor = MyAwesomeQueue; + + function MyAwesomeQueue(){ + //extend with some stuff your app needs, + //maybe npm publish your extention with js-queue as a dependancy? + Object.defineProperties( + this, + { + isStopped:{ + enumerable:true, + get:checkStopped, + set:checkStopped + }, + removeThirdItem:{ + enumerable:true, + writable:false, + value:removeThird + } + } + ); + + //enforce Object.assign for extending by locking down Class structure + //no willy nilly cowboy coding + Object.seal(this); + + function checkStopped(){ + return this.stop; + } + + function removeThird(){ + //get the queue content + var list=this.contents; + //modify the queue content + list.splice(2,1); + //save the modified queue content + this.contents=list; + + return this.contents; + } + } + +``` diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@node-ipc/js-queue/licence.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@node-ipc/js-queue/licence.md" new file mode 100644 index 0000000000000000000000000000000000000000..5306f275d56a208c4b686f26073cc9f2d4f8d3d6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@node-ipc/js-queue/licence.md" @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020 Brandon Nozaki Miller + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@node-ipc/js-queue/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@node-ipc/js-queue/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..763d5ccec122cc9e3c9e2e0f39ceaac2cb11aeb8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@node-ipc/js-queue/package.json" @@ -0,0 +1,36 @@ +{ + "name": "@node-ipc/js-queue", + "version": "2.0.3", + "description": "Simple JS queue with auto run for node and browsers", + "main": "queue.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "engines": { + "node": ">=1.0.0" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/node-ipc/js-queue.git" + }, + "keywords": [ + "queue", + "node", + "js", + "auto", + "run", + "execute", + "browser", + "react" + ], + "author": "Brandon Nozaki Miller", + "license": "MIT", + "bugs": { + "url": "https://github.com/node-ipc/js-queue/issues" + }, + "homepage": "https://github.com/node-ipc/js-queue#readme", + "dependencies": { + "easy-stack": "1.0.1" + }, + "packageManager": "yarn@3.2.0" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@node-ipc/js-queue/queue-vanilla.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@node-ipc/js-queue/queue-vanilla.js" new file mode 100644 index 0000000000000000000000000000000000000000..6f15495ae1704d7c5e4182ea905d3adfd3852ab3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@node-ipc/js-queue/queue-vanilla.js" @@ -0,0 +1,74 @@ +function Queue(){ + Object.defineProperties( + this, + { + add:{ + enumerable:true, + writable:false, + value:addToQueue + }, + next:{ + enumerable:true, + writable:false, + value:run + }, + clear:{ + enumerable:true, + writable:false, + value:clearQueue + }, + contents:{ + enumerable:false, + get:getQueue, + set:setQueue + }, + autoRun:{ + enumerable:true, + writable:true, + value:true + }, + stop:{ + enumerable:true, + writable:true, + value:false + } + } + ); + + var queue=[]; + var running=false; + var stop=false; + + function clearQueue(){ + queue=[]; + return queue; + } + + function getQueue(){ + return queue; + } + + function setQueue(val){ + queue=val; + return queue; + } + + function addToQueue(){ + for(var i in arguments){ + queue.push(arguments[i]); + } + if(!running && !this.stop && this.autoRun){ + this.next(); + } + } + + function run(){ + running=true; + if(queue.length<1 || this.stop){ + running=false; + return; + } + + queue.shift().bind(this)(); + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@node-ipc/js-queue/queue.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@node-ipc/js-queue/queue.js" new file mode 100644 index 0000000000000000000000000000000000000000..a8698d7e9abfb21838d5eb6b07af2c130b245e7f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@node-ipc/js-queue/queue.js" @@ -0,0 +1,76 @@ +function Queue(asStack){ + Object.defineProperties( + this, + { + add:{ + enumerable:true, + writable:false, + value:addToQueue + }, + next:{ + enumerable:true, + writable:false, + value:run + }, + clear:{ + enumerable:true, + writable:false, + value:clearQueue + }, + contents:{ + enumerable:false, + get:getQueue, + set:setQueue + }, + autoRun:{ + enumerable:true, + writable:true, + value:true + }, + stop:{ + enumerable:true, + writable:true, + value:false + } + } + ); + + var queue=[]; + var running=false; + var stop=false; + + function clearQueue(){ + queue=[]; + return queue; + } + + function getQueue(){ + return queue; + } + + function setQueue(val){ + queue=val; + return queue; + } + + function addToQueue(){ + for(var i in arguments){ + queue.push(arguments[i]); + } + if(!running && !this.stop && this.autoRun){ + this.next(); + } + } + + function run(){ + running=true; + if(queue.length<1 || this.stop){ + running=false; + return; + } + + queue.shift().bind(this)(); + } +} + +module.exports=Queue; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@node-ipc/js-queue/stack.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@node-ipc/js-queue/stack.js" new file mode 100644 index 0000000000000000000000000000000000000000..a9c25640ec14c4c09f00fd36cd2bb9ba9ed9265c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@node-ipc/js-queue/stack.js" @@ -0,0 +1,3 @@ +const Stack=require('easy-stack'); + +module.exports = Stack; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..65a999460170355f6383b8f122da09e66e485165 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/LICENSE" @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Denis Malinochkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..e0b218b9f090cbf38b4a75f1f6b83b46bf8e4476 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/README.md" @@ -0,0 +1,171 @@ +# @nodelib/fs.scandir + +> List files and directories inside the specified directory. + +## :bulb: Highlights + +The package is aimed at obtaining information about entries in the directory. + +* :moneybag: Returns useful information: `name`, `path`, `dirent` and `stats` (optional). +* :gear: On Node.js 10.10+ uses the mechanism without additional calls to determine the entry type. See [`old` and `modern` mode](#old-and-modern-mode). +* :link: Can safely work with broken symbolic links. + +## Install + +```console +npm install @nodelib/fs.scandir +``` + +## Usage + +```ts +import * as fsScandir from '@nodelib/fs.scandir'; + +fsScandir.scandir('path', (error, stats) => { /* … */ }); +``` + +## API + +### .scandir(path, [optionsOrSettings], callback) + +Returns an array of plain objects ([`Entry`](#entry)) with information about entry for provided path with standard callback-style. + +```ts +fsScandir.scandir('path', (error, entries) => { /* … */ }); +fsScandir.scandir('path', {}, (error, entries) => { /* … */ }); +fsScandir.scandir('path', new fsScandir.Settings(), (error, entries) => { /* … */ }); +``` + +### .scandirSync(path, [optionsOrSettings]) + +Returns an array of plain objects ([`Entry`](#entry)) with information about entry for provided path. + +```ts +const entries = fsScandir.scandirSync('path'); +const entries = fsScandir.scandirSync('path', {}); +const entries = fsScandir.scandirSync(('path', new fsScandir.Settings()); +``` + +#### path + +* Required: `true` +* Type: `string | Buffer | URL` + +A path to a file. If a URL is provided, it must use the `file:` protocol. + +#### optionsOrSettings + +* Required: `false` +* Type: `Options | Settings` +* Default: An instance of `Settings` class + +An [`Options`](#options) object or an instance of [`Settings`](#settingsoptions) class. + +> :book: When you pass a plain object, an instance of the `Settings` class will be created automatically. If you plan to call the method frequently, use a pre-created instance of the `Settings` class. + +### Settings([options]) + +A class of full settings of the package. + +```ts +const settings = new fsScandir.Settings({ followSymbolicLinks: false }); + +const entries = fsScandir.scandirSync('path', settings); +``` + +## Entry + +* `name` — The name of the entry (`unknown.txt`). +* `path` — The path of the entry relative to call directory (`root/unknown.txt`). +* `dirent` — An instance of [`fs.Dirent`](./src/types/index.ts) class. On Node.js below 10.10 will be emulated by [`DirentFromStats`](./src/utils/fs.ts) class. +* `stats` (optional) — An instance of `fs.Stats` class. + +For example, the `scandir` call for `tools` directory with one directory inside: + +```ts +{ + dirent: Dirent { name: 'typedoc', /* … */ }, + name: 'typedoc', + path: 'tools/typedoc' +} +``` + +## Options + +### stats + +* Type: `boolean` +* Default: `false` + +Adds an instance of `fs.Stats` class to the [`Entry`](#entry). + +> :book: Always use `fs.readdir` without the `withFileTypes` option. ??TODO?? + +### followSymbolicLinks + +* Type: `boolean` +* Default: `false` + +Follow symbolic links or not. Call `fs.stat` on symbolic link if `true`. + +### `throwErrorOnBrokenSymbolicLink` + +* Type: `boolean` +* Default: `true` + +Throw an error when symbolic link is broken if `true` or safely use `lstat` call if `false`. + +### `pathSegmentSeparator` + +* Type: `string` +* Default: `path.sep` + +By default, this package uses the correct path separator for your OS (`\` on Windows, `/` on Unix-like systems). But you can set this option to any separator character(s) that you want to use instead. + +### `fs` + +* Type: [`FileSystemAdapter`](./src/adapters/fs.ts) +* Default: A default FS methods + +By default, the built-in Node.js module (`fs`) is used to work with the file system. You can replace any method with your own. + +```ts +interface FileSystemAdapter { + lstat?: typeof fs.lstat; + stat?: typeof fs.stat; + lstatSync?: typeof fs.lstatSync; + statSync?: typeof fs.statSync; + readdir?: typeof fs.readdir; + readdirSync?: typeof fs.readdirSync; +} + +const settings = new fsScandir.Settings({ + fs: { lstat: fakeLstat } +}); +``` + +## `old` and `modern` mode + +This package has two modes that are used depending on the environment and parameters of use. + +### old + +* Node.js below `10.10` or when the `stats` option is enabled + +When working in the old mode, the directory is read first (`fs.readdir`), then the type of entries is determined (`fs.lstat` and/or `fs.stat` for symbolic links). + +### modern + +* Node.js 10.10+ and the `stats` option is disabled + +In the modern mode, reading the directory (`fs.readdir` with the `withFileTypes` option) is combined with obtaining information about its entries. An additional call for symbolic links (`fs.stat`) is still present. + +This mode makes fewer calls to the file system. It's faster. + +## Changelog + +See the [Releases section of our GitHub project](https://github.com/nodelib/nodelib/releases) for changelog for each release version. + +## License + +This software is released under the terms of the MIT license. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..827f1db09aac5d9f6b2e63d56a509ae67faaf0e6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts" @@ -0,0 +1,20 @@ +import type * as fsStat from '@nodelib/fs.stat'; +import type { Dirent, ErrnoException } from '../types'; +export interface ReaddirAsynchronousMethod { + (filepath: string, options: { + withFileTypes: true; + }, callback: (error: ErrnoException | null, files: Dirent[]) => void): void; + (filepath: string, callback: (error: ErrnoException | null, files: string[]) => void): void; +} +export interface ReaddirSynchronousMethod { + (filepath: string, options: { + withFileTypes: true; + }): Dirent[]; + (filepath: string): string[]; +} +export declare type FileSystemAdapter = fsStat.FileSystemAdapter & { + readdir: ReaddirAsynchronousMethod; + readdirSync: ReaddirSynchronousMethod; +}; +export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter; +export declare function createFileSystemAdapter(fsMethods?: Partial): FileSystemAdapter; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/adapters/fs.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/adapters/fs.js" new file mode 100644 index 0000000000000000000000000000000000000000..f0fe022023e6dfd5b56c33f2bac6d2d3b180e1c5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/adapters/fs.js" @@ -0,0 +1,19 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0; +const fs = require("fs"); +exports.FILE_SYSTEM_ADAPTER = { + lstat: fs.lstat, + stat: fs.stat, + lstatSync: fs.lstatSync, + statSync: fs.statSync, + readdir: fs.readdir, + readdirSync: fs.readdirSync +}; +function createFileSystemAdapter(fsMethods) { + if (fsMethods === undefined) { + return exports.FILE_SYSTEM_ADAPTER; + } + return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods); +} +exports.createFileSystemAdapter = createFileSystemAdapter; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/constants.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/constants.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..33f17497d43b391287e2c9fc65d1c7cb4668ea50 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/constants.d.ts" @@ -0,0 +1,4 @@ +/** + * IS `true` for Node.js 10.10 and greater. + */ +export declare const IS_SUPPORT_READDIR_WITH_FILE_TYPES: boolean; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/constants.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/constants.js" new file mode 100644 index 0000000000000000000000000000000000000000..7e3d4411f751e190be8794b687e9fa60ef5fae06 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/constants.js" @@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0; +const NODE_PROCESS_VERSION_PARTS = process.versions.node.split('.'); +if (NODE_PROCESS_VERSION_PARTS[0] === undefined || NODE_PROCESS_VERSION_PARTS[1] === undefined) { + throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`); +} +const MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10); +const MINOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[1], 10); +const SUPPORTED_MAJOR_VERSION = 10; +const SUPPORTED_MINOR_VERSION = 10; +const IS_MATCHED_BY_MAJOR = MAJOR_VERSION > SUPPORTED_MAJOR_VERSION; +const IS_MATCHED_BY_MAJOR_AND_MINOR = MAJOR_VERSION === SUPPORTED_MAJOR_VERSION && MINOR_VERSION >= SUPPORTED_MINOR_VERSION; +/** + * IS `true` for Node.js 10.10 and greater. + */ +exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_BY_MAJOR_AND_MINOR; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..b9da83ed172315106269d96bb9043c922af68cc5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/index.d.ts" @@ -0,0 +1,12 @@ +import type { FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod } from './adapters/fs'; +import * as async from './providers/async'; +import Settings, { Options } from './settings'; +import type { Dirent, Entry } from './types'; +declare type AsyncCallback = async.AsyncCallback; +declare function scandir(path: string, callback: AsyncCallback): void; +declare function scandir(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void; +declare namespace scandir { + function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise; +} +declare function scandirSync(path: string, optionsOrSettings?: Options | Settings): Entry[]; +export { scandir, scandirSync, Settings, AsyncCallback, Dirent, Entry, FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod, Options }; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..99c70d3d635f73d2704b02695933770401b14d37 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/index.js" @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Settings = exports.scandirSync = exports.scandir = void 0; +const async = require("./providers/async"); +const sync = require("./providers/sync"); +const settings_1 = require("./settings"); +exports.Settings = settings_1.default; +function scandir(path, optionsOrSettingsOrCallback, callback) { + if (typeof optionsOrSettingsOrCallback === 'function') { + async.read(path, getSettings(), optionsOrSettingsOrCallback); + return; + } + async.read(path, getSettings(optionsOrSettingsOrCallback), callback); +} +exports.scandir = scandir; +function scandirSync(path, optionsOrSettings) { + const settings = getSettings(optionsOrSettings); + return sync.read(path, settings); +} +exports.scandirSync = scandirSync; +function getSettings(settingsOrOptions = {}) { + if (settingsOrOptions instanceof settings_1.default) { + return settingsOrOptions; + } + return new settings_1.default(settingsOrOptions); +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..5829676df7e302e14b87edf2d99c04b58384d0af --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts" @@ -0,0 +1,7 @@ +/// +import type Settings from '../settings'; +import type { Entry } from '../types'; +export declare type AsyncCallback = (error: NodeJS.ErrnoException, entries: Entry[]) => void; +export declare function read(directory: string, settings: Settings, callback: AsyncCallback): void; +export declare function readdirWithFileTypes(directory: string, settings: Settings, callback: AsyncCallback): void; +export declare function readdir(directory: string, settings: Settings, callback: AsyncCallback): void; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/providers/async.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/providers/async.js" new file mode 100644 index 0000000000000000000000000000000000000000..e8e2f0a9cba94ed06b7762f2846ab88330aaa44e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/providers/async.js" @@ -0,0 +1,104 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.readdir = exports.readdirWithFileTypes = exports.read = void 0; +const fsStat = require("@nodelib/fs.stat"); +const rpl = require("run-parallel"); +const constants_1 = require("../constants"); +const utils = require("../utils"); +const common = require("./common"); +function read(directory, settings, callback) { + if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) { + readdirWithFileTypes(directory, settings, callback); + return; + } + readdir(directory, settings, callback); +} +exports.read = read; +function readdirWithFileTypes(directory, settings, callback) { + settings.fs.readdir(directory, { withFileTypes: true }, (readdirError, dirents) => { + if (readdirError !== null) { + callFailureCallback(callback, readdirError); + return; + } + const entries = dirents.map((dirent) => ({ + dirent, + name: dirent.name, + path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator) + })); + if (!settings.followSymbolicLinks) { + callSuccessCallback(callback, entries); + return; + } + const tasks = entries.map((entry) => makeRplTaskEntry(entry, settings)); + rpl(tasks, (rplError, rplEntries) => { + if (rplError !== null) { + callFailureCallback(callback, rplError); + return; + } + callSuccessCallback(callback, rplEntries); + }); + }); +} +exports.readdirWithFileTypes = readdirWithFileTypes; +function makeRplTaskEntry(entry, settings) { + return (done) => { + if (!entry.dirent.isSymbolicLink()) { + done(null, entry); + return; + } + settings.fs.stat(entry.path, (statError, stats) => { + if (statError !== null) { + if (settings.throwErrorOnBrokenSymbolicLink) { + done(statError); + return; + } + done(null, entry); + return; + } + entry.dirent = utils.fs.createDirentFromStats(entry.name, stats); + done(null, entry); + }); + }; +} +function readdir(directory, settings, callback) { + settings.fs.readdir(directory, (readdirError, names) => { + if (readdirError !== null) { + callFailureCallback(callback, readdirError); + return; + } + const tasks = names.map((name) => { + const path = common.joinPathSegments(directory, name, settings.pathSegmentSeparator); + return (done) => { + fsStat.stat(path, settings.fsStatSettings, (error, stats) => { + if (error !== null) { + done(error); + return; + } + const entry = { + name, + path, + dirent: utils.fs.createDirentFromStats(name, stats) + }; + if (settings.stats) { + entry.stats = stats; + } + done(null, entry); + }); + }; + }); + rpl(tasks, (rplError, entries) => { + if (rplError !== null) { + callFailureCallback(callback, rplError); + return; + } + callSuccessCallback(callback, entries); + }); + }); +} +exports.readdir = readdir; +function callFailureCallback(callback, error) { + callback(error); +} +function callSuccessCallback(callback, result) { + callback(null, result); +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..2b4d08b57a0de23a030b494abbb236239638b122 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts" @@ -0,0 +1 @@ +export declare function joinPathSegments(a: string, b: string, separator: string): string; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/providers/common.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/providers/common.js" new file mode 100644 index 0000000000000000000000000000000000000000..8724cb59afe97cdfebdf6b50bdf36534537e781c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/providers/common.js" @@ -0,0 +1,13 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.joinPathSegments = void 0; +function joinPathSegments(a, b, separator) { + /** + * The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`). + */ + if (a.endsWith(separator)) { + return a + b; + } + return a + separator + b; +} +exports.joinPathSegments = joinPathSegments; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..e05c8f072cb5766844c31f6d8424c692f0caacac --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts" @@ -0,0 +1,5 @@ +import type Settings from '../settings'; +import type { Entry } from '../types'; +export declare function read(directory: string, settings: Settings): Entry[]; +export declare function readdirWithFileTypes(directory: string, settings: Settings): Entry[]; +export declare function readdir(directory: string, settings: Settings): Entry[]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/providers/sync.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/providers/sync.js" new file mode 100644 index 0000000000000000000000000000000000000000..146db3434f42252e4071db1624074a666fe21b4a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/providers/sync.js" @@ -0,0 +1,54 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.readdir = exports.readdirWithFileTypes = exports.read = void 0; +const fsStat = require("@nodelib/fs.stat"); +const constants_1 = require("../constants"); +const utils = require("../utils"); +const common = require("./common"); +function read(directory, settings) { + if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) { + return readdirWithFileTypes(directory, settings); + } + return readdir(directory, settings); +} +exports.read = read; +function readdirWithFileTypes(directory, settings) { + const dirents = settings.fs.readdirSync(directory, { withFileTypes: true }); + return dirents.map((dirent) => { + const entry = { + dirent, + name: dirent.name, + path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator) + }; + if (entry.dirent.isSymbolicLink() && settings.followSymbolicLinks) { + try { + const stats = settings.fs.statSync(entry.path); + entry.dirent = utils.fs.createDirentFromStats(entry.name, stats); + } + catch (error) { + if (settings.throwErrorOnBrokenSymbolicLink) { + throw error; + } + } + } + return entry; + }); +} +exports.readdirWithFileTypes = readdirWithFileTypes; +function readdir(directory, settings) { + const names = settings.fs.readdirSync(directory); + return names.map((name) => { + const entryPath = common.joinPathSegments(directory, name, settings.pathSegmentSeparator); + const stats = fsStat.statSync(entryPath, settings.fsStatSettings); + const entry = { + name, + path: entryPath, + dirent: utils.fs.createDirentFromStats(name, stats) + }; + if (settings.stats) { + entry.stats = stats; + } + return entry; + }); +} +exports.readdir = readdir; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/settings.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/settings.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..a0db11559914a553d8e2da52b612bf48f2d5dd74 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/settings.d.ts" @@ -0,0 +1,20 @@ +import * as fsStat from '@nodelib/fs.stat'; +import * as fs from './adapters/fs'; +export interface Options { + followSymbolicLinks?: boolean; + fs?: Partial; + pathSegmentSeparator?: string; + stats?: boolean; + throwErrorOnBrokenSymbolicLink?: boolean; +} +export default class Settings { + private readonly _options; + readonly followSymbolicLinks: boolean; + readonly fs: fs.FileSystemAdapter; + readonly pathSegmentSeparator: string; + readonly stats: boolean; + readonly throwErrorOnBrokenSymbolicLink: boolean; + readonly fsStatSettings: fsStat.Settings; + constructor(_options?: Options); + private _getValue; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/settings.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/settings.js" new file mode 100644 index 0000000000000000000000000000000000000000..15a3e8cde7704afdc4d66723ac440c2acb7e3519 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/settings.js" @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const path = require("path"); +const fsStat = require("@nodelib/fs.stat"); +const fs = require("./adapters/fs"); +class Settings { + constructor(_options = {}) { + this._options = _options; + this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false); + this.fs = fs.createFileSystemAdapter(this._options.fs); + this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep); + this.stats = this._getValue(this._options.stats, false); + this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true); + this.fsStatSettings = new fsStat.Settings({ + followSymbolicLink: this.followSymbolicLinks, + fs: this.fs, + throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink + }); + } + _getValue(option, value) { + return option !== null && option !== void 0 ? option : value; + } +} +exports.default = Settings; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/types/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/types/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..f326c5e5e41f3288779c97c777e782e5642aed1f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/types/index.d.ts" @@ -0,0 +1,20 @@ +/// +import type * as fs from 'fs'; +export interface Entry { + dirent: Dirent; + name: string; + path: string; + stats?: Stats; +} +export declare type Stats = fs.Stats; +export declare type ErrnoException = NodeJS.ErrnoException; +export interface Dirent { + isBlockDevice: () => boolean; + isCharacterDevice: () => boolean; + isDirectory: () => boolean; + isFIFO: () => boolean; + isFile: () => boolean; + isSocket: () => boolean; + isSymbolicLink: () => boolean; + name: string; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/types/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/types/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..c8ad2e549bdc6801e0d1c80b0308d4b9bd4985ce --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/types/index.js" @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..bb863f1573e99fe2fe287dcdd8d22c075dd014e1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts" @@ -0,0 +1,2 @@ +import type { Dirent, Stats } from '../types'; +export declare function createDirentFromStats(name: string, stats: Stats): Dirent; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/utils/fs.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/utils/fs.js" new file mode 100644 index 0000000000000000000000000000000000000000..ace7c74d63f6da763b2711a4119d6005f5c3b187 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/utils/fs.js" @@ -0,0 +1,19 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createDirentFromStats = void 0; +class DirentFromStats { + constructor(name, stats) { + this.name = name; + this.isBlockDevice = stats.isBlockDevice.bind(stats); + this.isCharacterDevice = stats.isCharacterDevice.bind(stats); + this.isDirectory = stats.isDirectory.bind(stats); + this.isFIFO = stats.isFIFO.bind(stats); + this.isFile = stats.isFile.bind(stats); + this.isSocket = stats.isSocket.bind(stats); + this.isSymbolicLink = stats.isSymbolicLink.bind(stats); + } +} +function createDirentFromStats(name, stats) { + return new DirentFromStats(name, stats); +} +exports.createDirentFromStats = createDirentFromStats; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..1b41954e79d847e0f085ce4235b8ee62fddb1977 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts" @@ -0,0 +1,2 @@ +import * as fs from './fs'; +export { fs }; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/utils/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/utils/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..f5de129f47b80353304d3219c96f73f59a390397 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/out/utils/index.js" @@ -0,0 +1,5 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.fs = void 0; +const fs = require("./fs"); +exports.fs = fs; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..d3a89241b3c1891339651dfdeb9495813587e289 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.scandir/package.json" @@ -0,0 +1,44 @@ +{ + "name": "@nodelib/fs.scandir", + "version": "2.1.5", + "description": "List files and directories inside the specified directory", + "license": "MIT", + "repository": "https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.scandir", + "keywords": [ + "NodeLib", + "fs", + "FileSystem", + "file system", + "scandir", + "readdir", + "dirent" + ], + "engines": { + "node": ">= 8" + }, + "files": [ + "out/**", + "!out/**/*.map", + "!out/**/*.spec.*" + ], + "main": "out/index.js", + "typings": "out/index.d.ts", + "scripts": { + "clean": "rimraf {tsconfig.tsbuildinfo,out}", + "lint": "eslint \"src/**/*.ts\" --cache", + "compile": "tsc -b .", + "compile:watch": "tsc -p . --watch --sourceMap", + "test": "mocha \"out/**/*.spec.js\" -s 0", + "build": "npm run clean && npm run compile && npm run lint && npm test", + "watch": "npm run clean && npm run compile:watch" + }, + "dependencies": { + "@nodelib/fs.stat": "2.0.5", + "run-parallel": "^1.1.9" + }, + "devDependencies": { + "@nodelib/fs.macchiato": "1.0.4", + "@types/run-parallel": "^1.1.0" + }, + "gitHead": "d6a7960d5281d3dd5f8e2efba49bb552d090f562" +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..65a999460170355f6383b8f122da09e66e485165 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/LICENSE" @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Denis Malinochkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..686f0471d40f2f522e53db44f5a5b7a73a65e9df --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/README.md" @@ -0,0 +1,126 @@ +# @nodelib/fs.stat + +> Get the status of a file with some features. + +## :bulb: Highlights + +Wrapper around standard method `fs.lstat` and `fs.stat` with some features. + +* :beginner: Normally follows symbolic link. +* :gear: Can safely work with broken symbolic link. + +## Install + +```console +npm install @nodelib/fs.stat +``` + +## Usage + +```ts +import * as fsStat from '@nodelib/fs.stat'; + +fsStat.stat('path', (error, stats) => { /* … */ }); +``` + +## API + +### .stat(path, [optionsOrSettings], callback) + +Returns an instance of `fs.Stats` class for provided path with standard callback-style. + +```ts +fsStat.stat('path', (error, stats) => { /* … */ }); +fsStat.stat('path', {}, (error, stats) => { /* … */ }); +fsStat.stat('path', new fsStat.Settings(), (error, stats) => { /* … */ }); +``` + +### .statSync(path, [optionsOrSettings]) + +Returns an instance of `fs.Stats` class for provided path. + +```ts +const stats = fsStat.stat('path'); +const stats = fsStat.stat('path', {}); +const stats = fsStat.stat('path', new fsStat.Settings()); +``` + +#### path + +* Required: `true` +* Type: `string | Buffer | URL` + +A path to a file. If a URL is provided, it must use the `file:` protocol. + +#### optionsOrSettings + +* Required: `false` +* Type: `Options | Settings` +* Default: An instance of `Settings` class + +An [`Options`](#options) object or an instance of [`Settings`](#settings) class. + +> :book: When you pass a plain object, an instance of the `Settings` class will be created automatically. If you plan to call the method frequently, use a pre-created instance of the `Settings` class. + +### Settings([options]) + +A class of full settings of the package. + +```ts +const settings = new fsStat.Settings({ followSymbolicLink: false }); + +const stats = fsStat.stat('path', settings); +``` + +## Options + +### `followSymbolicLink` + +* Type: `boolean` +* Default: `true` + +Follow symbolic link or not. Call `fs.stat` on symbolic link if `true`. + +### `markSymbolicLink` + +* Type: `boolean` +* Default: `false` + +Mark symbolic link by setting the return value of `isSymbolicLink` function to always `true` (even after `fs.stat`). + +> :book: Can be used if you want to know what is hidden behind a symbolic link, but still continue to know that it is a symbolic link. + +### `throwErrorOnBrokenSymbolicLink` + +* Type: `boolean` +* Default: `true` + +Throw an error when symbolic link is broken if `true` or safely return `lstat` call if `false`. + +### `fs` + +* Type: [`FileSystemAdapter`](./src/adapters/fs.ts) +* Default: A default FS methods + +By default, the built-in Node.js module (`fs`) is used to work with the file system. You can replace any method with your own. + +```ts +interface FileSystemAdapter { + lstat?: typeof fs.lstat; + stat?: typeof fs.stat; + lstatSync?: typeof fs.lstatSync; + statSync?: typeof fs.statSync; +} + +const settings = new fsStat.Settings({ + fs: { lstat: fakeLstat } +}); +``` + +## Changelog + +See the [Releases section of our GitHub project](https://github.com/nodelib/nodelib/releases) for changelog for each release version. + +## License + +This software is released under the terms of the MIT license. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..3af759c95fb85c927bc8204a49c5eaca37d691d2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts" @@ -0,0 +1,13 @@ +/// +import * as fs from 'fs'; +import type { ErrnoException } from '../types'; +export declare type StatAsynchronousMethod = (path: string, callback: (error: ErrnoException | null, stats: fs.Stats) => void) => void; +export declare type StatSynchronousMethod = (path: string) => fs.Stats; +export interface FileSystemAdapter { + lstat: StatAsynchronousMethod; + stat: StatAsynchronousMethod; + lstatSync: StatSynchronousMethod; + statSync: StatSynchronousMethod; +} +export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter; +export declare function createFileSystemAdapter(fsMethods?: Partial): FileSystemAdapter; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/adapters/fs.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/adapters/fs.js" new file mode 100644 index 0000000000000000000000000000000000000000..8dc08c8ca1f1c72aa9622352ca5d55f65198767d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/adapters/fs.js" @@ -0,0 +1,17 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0; +const fs = require("fs"); +exports.FILE_SYSTEM_ADAPTER = { + lstat: fs.lstat, + stat: fs.stat, + lstatSync: fs.lstatSync, + statSync: fs.statSync +}; +function createFileSystemAdapter(fsMethods) { + if (fsMethods === undefined) { + return exports.FILE_SYSTEM_ADAPTER; + } + return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods); +} +exports.createFileSystemAdapter = createFileSystemAdapter; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..f95db995c7f8fd07939359f4885835eebcd9e0fc --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/index.d.ts" @@ -0,0 +1,12 @@ +import type { FileSystemAdapter, StatAsynchronousMethod, StatSynchronousMethod } from './adapters/fs'; +import * as async from './providers/async'; +import Settings, { Options } from './settings'; +import type { Stats } from './types'; +declare type AsyncCallback = async.AsyncCallback; +declare function stat(path: string, callback: AsyncCallback): void; +declare function stat(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void; +declare namespace stat { + function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise; +} +declare function statSync(path: string, optionsOrSettings?: Options | Settings): Stats; +export { Settings, stat, statSync, AsyncCallback, FileSystemAdapter, StatAsynchronousMethod, StatSynchronousMethod, Options, Stats }; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..b23f7510d050fe830d40765ad49fe72b21ebef5b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/index.js" @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.statSync = exports.stat = exports.Settings = void 0; +const async = require("./providers/async"); +const sync = require("./providers/sync"); +const settings_1 = require("./settings"); +exports.Settings = settings_1.default; +function stat(path, optionsOrSettingsOrCallback, callback) { + if (typeof optionsOrSettingsOrCallback === 'function') { + async.read(path, getSettings(), optionsOrSettingsOrCallback); + return; + } + async.read(path, getSettings(optionsOrSettingsOrCallback), callback); +} +exports.stat = stat; +function statSync(path, optionsOrSettings) { + const settings = getSettings(optionsOrSettings); + return sync.read(path, settings); +} +exports.statSync = statSync; +function getSettings(settingsOrOptions = {}) { + if (settingsOrOptions instanceof settings_1.default) { + return settingsOrOptions; + } + return new settings_1.default(settingsOrOptions); +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/providers/async.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/providers/async.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..85423ce11e2efb74a86e9477405e1976fec6b7c5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/providers/async.d.ts" @@ -0,0 +1,4 @@ +import type Settings from '../settings'; +import type { ErrnoException, Stats } from '../types'; +export declare type AsyncCallback = (error: ErrnoException, stats: Stats) => void; +export declare function read(path: string, settings: Settings, callback: AsyncCallback): void; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/providers/async.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/providers/async.js" new file mode 100644 index 0000000000000000000000000000000000000000..983ff0e6cb79f6e4442be70c43e79c6b406dd9bb --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/providers/async.js" @@ -0,0 +1,36 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.read = void 0; +function read(path, settings, callback) { + settings.fs.lstat(path, (lstatError, lstat) => { + if (lstatError !== null) { + callFailureCallback(callback, lstatError); + return; + } + if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) { + callSuccessCallback(callback, lstat); + return; + } + settings.fs.stat(path, (statError, stat) => { + if (statError !== null) { + if (settings.throwErrorOnBrokenSymbolicLink) { + callFailureCallback(callback, statError); + return; + } + callSuccessCallback(callback, lstat); + return; + } + if (settings.markSymbolicLink) { + stat.isSymbolicLink = () => true; + } + callSuccessCallback(callback, stat); + }); + }); +} +exports.read = read; +function callFailureCallback(callback, error) { + callback(error); +} +function callSuccessCallback(callback, result) { + callback(null, result); +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..428c3d792b385664fe3fe4770c46e558d7ca5285 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts" @@ -0,0 +1,3 @@ +import type Settings from '../settings'; +import type { Stats } from '../types'; +export declare function read(path: string, settings: Settings): Stats; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/providers/sync.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/providers/sync.js" new file mode 100644 index 0000000000000000000000000000000000000000..1521c3616eaee4439c5cd1a855c97d029d4dab38 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/providers/sync.js" @@ -0,0 +1,23 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.read = void 0; +function read(path, settings) { + const lstat = settings.fs.lstatSync(path); + if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) { + return lstat; + } + try { + const stat = settings.fs.statSync(path); + if (settings.markSymbolicLink) { + stat.isSymbolicLink = () => true; + } + return stat; + } + catch (error) { + if (!settings.throwErrorOnBrokenSymbolicLink) { + return lstat; + } + throw error; + } +} +exports.read = read; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/settings.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/settings.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..f4b3d444302ff6b5715a79341156f61350bd0a1b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/settings.d.ts" @@ -0,0 +1,16 @@ +import * as fs from './adapters/fs'; +export interface Options { + followSymbolicLink?: boolean; + fs?: Partial; + markSymbolicLink?: boolean; + throwErrorOnBrokenSymbolicLink?: boolean; +} +export default class Settings { + private readonly _options; + readonly followSymbolicLink: boolean; + readonly fs: fs.FileSystemAdapter; + readonly markSymbolicLink: boolean; + readonly throwErrorOnBrokenSymbolicLink: boolean; + constructor(_options?: Options); + private _getValue; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/settings.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/settings.js" new file mode 100644 index 0000000000000000000000000000000000000000..111ec09ca6491ae6d8d9a9c9bdcb32c8408afcc4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/settings.js" @@ -0,0 +1,16 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const fs = require("./adapters/fs"); +class Settings { + constructor(_options = {}) { + this._options = _options; + this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true); + this.fs = fs.createFileSystemAdapter(this._options.fs); + this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false); + this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true); + } + _getValue(option, value) { + return option !== null && option !== void 0 ? option : value; + } +} +exports.default = Settings; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/types/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/types/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..74c08ed2f7a1201d2e28453602b83241d83ade82 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/types/index.d.ts" @@ -0,0 +1,4 @@ +/// +import type * as fs from 'fs'; +export declare type Stats = fs.Stats; +export declare type ErrnoException = NodeJS.ErrnoException; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/types/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/types/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..c8ad2e549bdc6801e0d1c80b0308d4b9bd4985ce --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/out/types/index.js" @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..f2540c2894ea9181f73274a493df0dc3789d6128 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.stat/package.json" @@ -0,0 +1,37 @@ +{ + "name": "@nodelib/fs.stat", + "version": "2.0.5", + "description": "Get the status of a file with some features", + "license": "MIT", + "repository": "https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.stat", + "keywords": [ + "NodeLib", + "fs", + "FileSystem", + "file system", + "stat" + ], + "engines": { + "node": ">= 8" + }, + "files": [ + "out/**", + "!out/**/*.map", + "!out/**/*.spec.*" + ], + "main": "out/index.js", + "typings": "out/index.d.ts", + "scripts": { + "clean": "rimraf {tsconfig.tsbuildinfo,out}", + "lint": "eslint \"src/**/*.ts\" --cache", + "compile": "tsc -b .", + "compile:watch": "tsc -p . --watch --sourceMap", + "test": "mocha \"out/**/*.spec.js\" -s 0", + "build": "npm run clean && npm run compile && npm run lint && npm test", + "watch": "npm run clean && npm run compile:watch" + }, + "devDependencies": { + "@nodelib/fs.macchiato": "1.0.4" + }, + "gitHead": "d6a7960d5281d3dd5f8e2efba49bb552d090f562" +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..65a999460170355f6383b8f122da09e66e485165 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/LICENSE" @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) Denis Malinochkin + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..6ccc08db4a10bca492f2db7b547b98a7f22a4e8c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/README.md" @@ -0,0 +1,215 @@ +# @nodelib/fs.walk + +> A library for efficiently walking a directory recursively. + +## :bulb: Highlights + +* :moneybag: Returns useful information: `name`, `path`, `dirent` and `stats` (optional). +* :rocket: On Node.js 10.10+ uses the mechanism without additional calls to determine the entry type for performance reasons. See [`old` and `modern` mode](https://github.com/nodelib/nodelib/blob/master/packages/fs/fs.scandir/README.md#old-and-modern-mode). +* :gear: Built-in directories/files and error filtering system. +* :link: Can safely work with broken symbolic links. + +## Install + +```console +npm install @nodelib/fs.walk +``` + +## Usage + +```ts +import * as fsWalk from '@nodelib/fs.walk'; + +fsWalk.walk('path', (error, entries) => { /* … */ }); +``` + +## API + +### .walk(path, [optionsOrSettings], callback) + +Reads the directory recursively and asynchronously. Requires a callback function. + +> :book: If you want to use the Promise API, use `util.promisify`. + +```ts +fsWalk.walk('path', (error, entries) => { /* … */ }); +fsWalk.walk('path', {}, (error, entries) => { /* … */ }); +fsWalk.walk('path', new fsWalk.Settings(), (error, entries) => { /* … */ }); +``` + +### .walkStream(path, [optionsOrSettings]) + +Reads the directory recursively and asynchronously. [Readable Stream](https://nodejs.org/dist/latest-v12.x/docs/api/stream.html#stream_readable_streams) is used as a provider. + +```ts +const stream = fsWalk.walkStream('path'); +const stream = fsWalk.walkStream('path', {}); +const stream = fsWalk.walkStream('path', new fsWalk.Settings()); +``` + +### .walkSync(path, [optionsOrSettings]) + +Reads the directory recursively and synchronously. Returns an array of entries. + +```ts +const entries = fsWalk.walkSync('path'); +const entries = fsWalk.walkSync('path', {}); +const entries = fsWalk.walkSync('path', new fsWalk.Settings()); +``` + +#### path + +* Required: `true` +* Type: `string | Buffer | URL` + +A path to a file. If a URL is provided, it must use the `file:` protocol. + +#### optionsOrSettings + +* Required: `false` +* Type: `Options | Settings` +* Default: An instance of `Settings` class + +An [`Options`](#options) object or an instance of [`Settings`](#settings) class. + +> :book: When you pass a plain object, an instance of the `Settings` class will be created automatically. If you plan to call the method frequently, use a pre-created instance of the `Settings` class. + +### Settings([options]) + +A class of full settings of the package. + +```ts +const settings = new fsWalk.Settings({ followSymbolicLinks: true }); + +const entries = fsWalk.walkSync('path', settings); +``` + +## Entry + +* `name` — The name of the entry (`unknown.txt`). +* `path` — The path of the entry relative to call directory (`root/unknown.txt`). +* `dirent` — An instance of [`fs.Dirent`](./src/types/index.ts) class. +* [`stats`] — An instance of `fs.Stats` class. + +## Options + +### basePath + +* Type: `string` +* Default: `undefined` + +By default, all paths are built relative to the root path. You can use this option to set custom root path. + +In the example below we read the files from the `root` directory, but in the results the root path will be `custom`. + +```ts +fsWalk.walkSync('root'); // → ['root/file.txt'] +fsWalk.walkSync('root', { basePath: 'custom' }); // → ['custom/file.txt'] +``` + +### concurrency + +* Type: `number` +* Default: `Infinity` + +The maximum number of concurrent calls to `fs.readdir`. + +> :book: The higher the number, the higher performance and the load on the File System. If you want to read in quiet mode, set the value to `4 * os.cpus().length` (4 is default size of [thread pool work scheduling](http://docs.libuv.org/en/v1.x/threadpool.html#thread-pool-work-scheduling)). + +### deepFilter + +* Type: [`DeepFilterFunction`](./src/settings.ts) +* Default: `undefined` + +A function that indicates whether the directory will be read deep or not. + +```ts +// Skip all directories that starts with `node_modules` +const filter: DeepFilterFunction = (entry) => !entry.path.startsWith('node_modules'); +``` + +### entryFilter + +* Type: [`EntryFilterFunction`](./src/settings.ts) +* Default: `undefined` + +A function that indicates whether the entry will be included to results or not. + +```ts +// Exclude all `.js` files from results +const filter: EntryFilterFunction = (entry) => !entry.name.endsWith('.js'); +``` + +### errorFilter + +* Type: [`ErrorFilterFunction`](./src/settings.ts) +* Default: `undefined` + +A function that allows you to skip errors that occur when reading directories. + +For example, you can skip `ENOENT` errors if required: + +```ts +// Skip all ENOENT errors +const filter: ErrorFilterFunction = (error) => error.code == 'ENOENT'; +``` + +### stats + +* Type: `boolean` +* Default: `false` + +Adds an instance of `fs.Stats` class to the [`Entry`](#entry). + +> :book: Always use `fs.readdir` with additional `fs.lstat/fs.stat` calls to determine the entry type. + +### followSymbolicLinks + +* Type: `boolean` +* Default: `false` + +Follow symbolic links or not. Call `fs.stat` on symbolic link if `true`. + +### `throwErrorOnBrokenSymbolicLink` + +* Type: `boolean` +* Default: `true` + +Throw an error when symbolic link is broken if `true` or safely return `lstat` call if `false`. + +### `pathSegmentSeparator` + +* Type: `string` +* Default: `path.sep` + +By default, this package uses the correct path separator for your OS (`\` on Windows, `/` on Unix-like systems). But you can set this option to any separator character(s) that you want to use instead. + +### `fs` + +* Type: `FileSystemAdapter` +* Default: A default FS methods + +By default, the built-in Node.js module (`fs`) is used to work with the file system. You can replace any method with your own. + +```ts +interface FileSystemAdapter { + lstat: typeof fs.lstat; + stat: typeof fs.stat; + lstatSync: typeof fs.lstatSync; + statSync: typeof fs.statSync; + readdir: typeof fs.readdir; + readdirSync: typeof fs.readdirSync; +} + +const settings = new fsWalk.Settings({ + fs: { lstat: fakeLstat } +}); +``` + +## Changelog + +See the [Releases section of our GitHub project](https://github.com/nodelib/nodelib/releases) for changelog for each release version. + +## License + +This software is released under the terms of the MIT license. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..8864c7bff5d8cb4a3db399a957f5eb49031d3248 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/index.d.ts" @@ -0,0 +1,14 @@ +/// +import type { Readable } from 'stream'; +import type { Dirent, FileSystemAdapter } from '@nodelib/fs.scandir'; +import { AsyncCallback } from './providers/async'; +import Settings, { DeepFilterFunction, EntryFilterFunction, ErrorFilterFunction, Options } from './settings'; +import type { Entry } from './types'; +declare function walk(directory: string, callback: AsyncCallback): void; +declare function walk(directory: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void; +declare namespace walk { + function __promisify__(directory: string, optionsOrSettings?: Options | Settings): Promise; +} +declare function walkSync(directory: string, optionsOrSettings?: Options | Settings): Entry[]; +declare function walkStream(directory: string, optionsOrSettings?: Options | Settings): Readable; +export { walk, walkSync, walkStream, Settings, AsyncCallback, Dirent, Entry, FileSystemAdapter, Options, DeepFilterFunction, EntryFilterFunction, ErrorFilterFunction }; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..15207874afa1dadac7f7655545b4b1f75ee87a78 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/index.js" @@ -0,0 +1,34 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0; +const async_1 = require("./providers/async"); +const stream_1 = require("./providers/stream"); +const sync_1 = require("./providers/sync"); +const settings_1 = require("./settings"); +exports.Settings = settings_1.default; +function walk(directory, optionsOrSettingsOrCallback, callback) { + if (typeof optionsOrSettingsOrCallback === 'function') { + new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback); + return; + } + new async_1.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback); +} +exports.walk = walk; +function walkSync(directory, optionsOrSettings) { + const settings = getSettings(optionsOrSettings); + const provider = new sync_1.default(directory, settings); + return provider.read(); +} +exports.walkSync = walkSync; +function walkStream(directory, optionsOrSettings) { + const settings = getSettings(optionsOrSettings); + const provider = new stream_1.default(directory, settings); + return provider.read(); +} +exports.walkStream = walkStream; +function getSettings(settingsOrOptions = {}) { + if (settingsOrOptions instanceof settings_1.default) { + return settingsOrOptions; + } + return new settings_1.default(settingsOrOptions); +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/async.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/async.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..0f6717d780f64fd49f31ba1cfccabb40eb5aafea --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/async.d.ts" @@ -0,0 +1,12 @@ +import AsyncReader from '../readers/async'; +import type Settings from '../settings'; +import type { Entry, Errno } from '../types'; +export declare type AsyncCallback = (error: Errno, entries: Entry[]) => void; +export default class AsyncProvider { + private readonly _root; + private readonly _settings; + protected readonly _reader: AsyncReader; + private readonly _storage; + constructor(_root: string, _settings: Settings); + read(callback: AsyncCallback): void; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/async.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/async.js" new file mode 100644 index 0000000000000000000000000000000000000000..51d3be51a85d46c5ab53f5b7d92675996d02887c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/async.js" @@ -0,0 +1,30 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const async_1 = require("../readers/async"); +class AsyncProvider { + constructor(_root, _settings) { + this._root = _root; + this._settings = _settings; + this._reader = new async_1.default(this._root, this._settings); + this._storage = []; + } + read(callback) { + this._reader.onError((error) => { + callFailureCallback(callback, error); + }); + this._reader.onEntry((entry) => { + this._storage.push(entry); + }); + this._reader.onEnd(() => { + callSuccessCallback(callback, this._storage); + }); + this._reader.read(); + } +} +exports.default = AsyncProvider; +function callFailureCallback(callback, error) { + callback(error); +} +function callSuccessCallback(callback, entries) { + callback(null, entries); +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..874f60c5a10b2f8fdfca1725fc1e8ff335e7549c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/index.d.ts" @@ -0,0 +1,4 @@ +import AsyncProvider from './async'; +import StreamProvider from './stream'; +import SyncProvider from './sync'; +export { AsyncProvider, StreamProvider, SyncProvider }; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..4c2529ce8a385a0215ddf188b8a46163b2e18842 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/index.js" @@ -0,0 +1,9 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SyncProvider = exports.StreamProvider = exports.AsyncProvider = void 0; +const async_1 = require("./async"); +exports.AsyncProvider = async_1.default; +const stream_1 = require("./stream"); +exports.StreamProvider = stream_1.default; +const sync_1 = require("./sync"); +exports.SyncProvider = sync_1.default; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..294185f85dc59d2a40eec8b0fea2d87958e41cdf --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts" @@ -0,0 +1,12 @@ +/// +import { Readable } from 'stream'; +import AsyncReader from '../readers/async'; +import type Settings from '../settings'; +export default class StreamProvider { + private readonly _root; + private readonly _settings; + protected readonly _reader: AsyncReader; + protected readonly _stream: Readable; + constructor(_root: string, _settings: Settings); + read(): Readable; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/stream.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/stream.js" new file mode 100644 index 0000000000000000000000000000000000000000..51298b0f58f14b0c9b9f36061cdd0c0b950ba2f3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/stream.js" @@ -0,0 +1,34 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const stream_1 = require("stream"); +const async_1 = require("../readers/async"); +class StreamProvider { + constructor(_root, _settings) { + this._root = _root; + this._settings = _settings; + this._reader = new async_1.default(this._root, this._settings); + this._stream = new stream_1.Readable({ + objectMode: true, + read: () => { }, + destroy: () => { + if (!this._reader.isDestroyed) { + this._reader.destroy(); + } + } + }); + } + read() { + this._reader.onError((error) => { + this._stream.emit('error', error); + }); + this._reader.onEntry((entry) => { + this._stream.push(entry); + }); + this._reader.onEnd(() => { + this._stream.push(null); + }); + this._reader.read(); + return this._stream; + } +} +exports.default = StreamProvider; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..551c42e41293756691160855d122f365710ac007 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts" @@ -0,0 +1,10 @@ +import SyncReader from '../readers/sync'; +import type Settings from '../settings'; +import type { Entry } from '../types'; +export default class SyncProvider { + private readonly _root; + private readonly _settings; + protected readonly _reader: SyncReader; + constructor(_root: string, _settings: Settings); + read(): Entry[]; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/sync.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/sync.js" new file mode 100644 index 0000000000000000000000000000000000000000..faab6ca2ad4262e2d9d5539b8c6ce0017090fd29 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/providers/sync.js" @@ -0,0 +1,14 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const sync_1 = require("../readers/sync"); +class SyncProvider { + constructor(_root, _settings) { + this._root = _root; + this._settings = _settings; + this._reader = new sync_1.default(this._root, this._settings); + } + read() { + return this._reader.read(); + } +} +exports.default = SyncProvider; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/async.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/async.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..9acf4e6c25f383ab22f55ff79a7f2022f6238773 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/async.d.ts" @@ -0,0 +1,30 @@ +/// +import { EventEmitter } from 'events'; +import * as fsScandir from '@nodelib/fs.scandir'; +import type Settings from '../settings'; +import type { Entry, Errno } from '../types'; +import Reader from './reader'; +declare type EntryEventCallback = (entry: Entry) => void; +declare type ErrorEventCallback = (error: Errno) => void; +declare type EndEventCallback = () => void; +export default class AsyncReader extends Reader { + protected readonly _settings: Settings; + protected readonly _scandir: typeof fsScandir.scandir; + protected readonly _emitter: EventEmitter; + private readonly _queue; + private _isFatalError; + private _isDestroyed; + constructor(_root: string, _settings: Settings); + read(): EventEmitter; + get isDestroyed(): boolean; + destroy(): void; + onEntry(callback: EntryEventCallback): void; + onError(callback: ErrorEventCallback): void; + onEnd(callback: EndEventCallback): void; + private _pushToQueue; + private _worker; + private _handleError; + private _handleEntry; + private _emitEntry; +} +export {}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/async.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/async.js" new file mode 100644 index 0000000000000000000000000000000000000000..ebe8dd5735858b58c0d6a38cdb925c85c7c03651 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/async.js" @@ -0,0 +1,97 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const events_1 = require("events"); +const fsScandir = require("@nodelib/fs.scandir"); +const fastq = require("fastq"); +const common = require("./common"); +const reader_1 = require("./reader"); +class AsyncReader extends reader_1.default { + constructor(_root, _settings) { + super(_root, _settings); + this._settings = _settings; + this._scandir = fsScandir.scandir; + this._emitter = new events_1.EventEmitter(); + this._queue = fastq(this._worker.bind(this), this._settings.concurrency); + this._isFatalError = false; + this._isDestroyed = false; + this._queue.drain = () => { + if (!this._isFatalError) { + this._emitter.emit('end'); + } + }; + } + read() { + this._isFatalError = false; + this._isDestroyed = false; + setImmediate(() => { + this._pushToQueue(this._root, this._settings.basePath); + }); + return this._emitter; + } + get isDestroyed() { + return this._isDestroyed; + } + destroy() { + if (this._isDestroyed) { + throw new Error('The reader is already destroyed'); + } + this._isDestroyed = true; + this._queue.killAndDrain(); + } + onEntry(callback) { + this._emitter.on('entry', callback); + } + onError(callback) { + this._emitter.once('error', callback); + } + onEnd(callback) { + this._emitter.once('end', callback); + } + _pushToQueue(directory, base) { + const queueItem = { directory, base }; + this._queue.push(queueItem, (error) => { + if (error !== null) { + this._handleError(error); + } + }); + } + _worker(item, done) { + this._scandir(item.directory, this._settings.fsScandirSettings, (error, entries) => { + if (error !== null) { + done(error, undefined); + return; + } + for (const entry of entries) { + this._handleEntry(entry, item.base); + } + done(null, undefined); + }); + } + _handleError(error) { + if (this._isDestroyed || !common.isFatalError(this._settings, error)) { + return; + } + this._isFatalError = true; + this._isDestroyed = true; + this._emitter.emit('error', error); + } + _handleEntry(entry, base) { + if (this._isDestroyed || this._isFatalError) { + return; + } + const fullpath = entry.path; + if (base !== undefined) { + entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator); + } + if (common.isAppliedFilter(this._settings.entryFilter, entry)) { + this._emitEntry(entry); + } + if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) { + this._pushToQueue(fullpath, base === undefined ? undefined : entry.path); + } + } + _emitEntry(entry) { + this._emitter.emit('entry', entry); + } +} +exports.default = AsyncReader; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/common.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/common.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..5985f97c402e5a92edf987d791821650c9b66f3b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/common.d.ts" @@ -0,0 +1,7 @@ +import type { FilterFunction } from '../settings'; +import type Settings from '../settings'; +import type { Errno } from '../types'; +export declare function isFatalError(settings: Settings, error: Errno): boolean; +export declare function isAppliedFilter(filter: FilterFunction | null, value: T): boolean; +export declare function replacePathSegmentSeparator(filepath: string, separator: string): string; +export declare function joinPathSegments(a: string, b: string, separator: string): string; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/common.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/common.js" new file mode 100644 index 0000000000000000000000000000000000000000..a93572f48a79ecd394339f6b27768a3b49332912 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/common.js" @@ -0,0 +1,31 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0; +function isFatalError(settings, error) { + if (settings.errorFilter === null) { + return true; + } + return !settings.errorFilter(error); +} +exports.isFatalError = isFatalError; +function isAppliedFilter(filter, value) { + return filter === null || filter(value); +} +exports.isAppliedFilter = isAppliedFilter; +function replacePathSegmentSeparator(filepath, separator) { + return filepath.split(/[/\\]/).join(separator); +} +exports.replacePathSegmentSeparator = replacePathSegmentSeparator; +function joinPathSegments(a, b, separator) { + if (a === '') { + return b; + } + /** + * The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`). + */ + if (a.endsWith(separator)) { + return a + b; + } + return a + separator + b; +} +exports.joinPathSegments = joinPathSegments; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..e1f383b25192216249d67456b437f7ea0ae5db24 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts" @@ -0,0 +1,6 @@ +import type Settings from '../settings'; +export default class Reader { + protected readonly _root: string; + protected readonly _settings: Settings; + constructor(_root: string, _settings: Settings); +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/reader.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/reader.js" new file mode 100644 index 0000000000000000000000000000000000000000..782f07cbfab62ff2469f26b2fc98050a38b21f27 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/reader.js" @@ -0,0 +1,11 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const common = require("./common"); +class Reader { + constructor(_root, _settings) { + this._root = _root; + this._settings = _settings; + this._root = common.replacePathSegmentSeparator(_root, _settings.pathSegmentSeparator); + } +} +exports.default = Reader; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..af410335363f14e3d0bdd44054917e08c6ba57ad --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts" @@ -0,0 +1,15 @@ +import * as fsScandir from '@nodelib/fs.scandir'; +import type { Entry } from '../types'; +import Reader from './reader'; +export default class SyncReader extends Reader { + protected readonly _scandir: typeof fsScandir.scandirSync; + private readonly _storage; + private readonly _queue; + read(): Entry[]; + private _pushToQueue; + private _handleQueue; + private _handleDirectory; + private _handleError; + private _handleEntry; + private _pushToStorage; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/sync.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/sync.js" new file mode 100644 index 0000000000000000000000000000000000000000..9a8d5a6f1e18e826bc8930d03b5ef9e05b8738b3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/readers/sync.js" @@ -0,0 +1,59 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const fsScandir = require("@nodelib/fs.scandir"); +const common = require("./common"); +const reader_1 = require("./reader"); +class SyncReader extends reader_1.default { + constructor() { + super(...arguments); + this._scandir = fsScandir.scandirSync; + this._storage = []; + this._queue = new Set(); + } + read() { + this._pushToQueue(this._root, this._settings.basePath); + this._handleQueue(); + return this._storage; + } + _pushToQueue(directory, base) { + this._queue.add({ directory, base }); + } + _handleQueue() { + for (const item of this._queue.values()) { + this._handleDirectory(item.directory, item.base); + } + } + _handleDirectory(directory, base) { + try { + const entries = this._scandir(directory, this._settings.fsScandirSettings); + for (const entry of entries) { + this._handleEntry(entry, base); + } + } + catch (error) { + this._handleError(error); + } + } + _handleError(error) { + if (!common.isFatalError(this._settings, error)) { + return; + } + throw error; + } + _handleEntry(entry, base) { + const fullpath = entry.path; + if (base !== undefined) { + entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator); + } + if (common.isAppliedFilter(this._settings.entryFilter, entry)) { + this._pushToStorage(entry); + } + if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) { + this._pushToQueue(fullpath, base === undefined ? undefined : entry.path); + } + } + _pushToStorage(entry) { + this._storage.push(entry); + } +} +exports.default = SyncReader; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/settings.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/settings.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..d1c4b45f6b52bd167482312568a4ba7f4b9bba74 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/settings.d.ts" @@ -0,0 +1,30 @@ +import * as fsScandir from '@nodelib/fs.scandir'; +import type { Entry, Errno } from './types'; +export declare type FilterFunction = (value: T) => boolean; +export declare type DeepFilterFunction = FilterFunction; +export declare type EntryFilterFunction = FilterFunction; +export declare type ErrorFilterFunction = FilterFunction; +export interface Options { + basePath?: string; + concurrency?: number; + deepFilter?: DeepFilterFunction; + entryFilter?: EntryFilterFunction; + errorFilter?: ErrorFilterFunction; + followSymbolicLinks?: boolean; + fs?: Partial; + pathSegmentSeparator?: string; + stats?: boolean; + throwErrorOnBrokenSymbolicLink?: boolean; +} +export default class Settings { + private readonly _options; + readonly basePath?: string; + readonly concurrency: number; + readonly deepFilter: DeepFilterFunction | null; + readonly entryFilter: EntryFilterFunction | null; + readonly errorFilter: ErrorFilterFunction | null; + readonly pathSegmentSeparator: string; + readonly fsScandirSettings: fsScandir.Settings; + constructor(_options?: Options); + private _getValue; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/settings.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/settings.js" new file mode 100644 index 0000000000000000000000000000000000000000..d7a85c81eeecf8fd230e6fecedc9550bddb2ff93 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/settings.js" @@ -0,0 +1,26 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const path = require("path"); +const fsScandir = require("@nodelib/fs.scandir"); +class Settings { + constructor(_options = {}) { + this._options = _options; + this.basePath = this._getValue(this._options.basePath, undefined); + this.concurrency = this._getValue(this._options.concurrency, Number.POSITIVE_INFINITY); + this.deepFilter = this._getValue(this._options.deepFilter, null); + this.entryFilter = this._getValue(this._options.entryFilter, null); + this.errorFilter = this._getValue(this._options.errorFilter, null); + this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep); + this.fsScandirSettings = new fsScandir.Settings({ + followSymbolicLinks: this._options.followSymbolicLinks, + fs: this._options.fs, + pathSegmentSeparator: this._options.pathSegmentSeparator, + stats: this._options.stats, + throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink + }); + } + _getValue(option, value) { + return option !== null && option !== void 0 ? option : value; + } +} +exports.default = Settings; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/types/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/types/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..6ee9bd3f9bf81ccaf9abde0f329e38b075344056 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/types/index.d.ts" @@ -0,0 +1,8 @@ +/// +import type * as scandir from '@nodelib/fs.scandir'; +export declare type Entry = scandir.Entry; +export declare type Errno = NodeJS.ErrnoException; +export interface QueueItem { + directory: string; + base?: string; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/types/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/types/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..c8ad2e549bdc6801e0d1c80b0308d4b9bd4985ce --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/out/types/index.js" @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..86bfce48b59e41fa4985ac837c5ba8a9dacabe37 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@nodelib/fs.walk/package.json" @@ -0,0 +1,44 @@ +{ + "name": "@nodelib/fs.walk", + "version": "1.2.8", + "description": "A library for efficiently walking a directory recursively", + "license": "MIT", + "repository": "https://github.com/nodelib/nodelib/tree/master/packages/fs/fs.walk", + "keywords": [ + "NodeLib", + "fs", + "FileSystem", + "file system", + "walk", + "scanner", + "crawler" + ], + "engines": { + "node": ">= 8" + }, + "files": [ + "out/**", + "!out/**/*.map", + "!out/**/*.spec.*", + "!out/**/tests/**" + ], + "main": "out/index.js", + "typings": "out/index.d.ts", + "scripts": { + "clean": "rimraf {tsconfig.tsbuildinfo,out}", + "lint": "eslint \"src/**/*.ts\" --cache", + "compile": "tsc -b .", + "compile:watch": "tsc -p . --watch --sourceMap", + "test": "mocha \"out/**/*.spec.js\" -s 0", + "build": "npm run clean && npm run compile && npm run lint && npm test", + "watch": "npm run clean && npm run compile:watch" + }, + "dependencies": { + "@nodelib/fs.scandir": "2.1.5", + "fastq": "^1.6.0" + }, + "devDependencies": { + "@nodelib/fs.macchiato": "1.0.4" + }, + "gitHead": "1e5bad48565da2b06b8600e744324ea240bf49d8" +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/aspromise/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/aspromise/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..be2b397e3c3557c0f0eaf342a66df8414c9bc309 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/aspromise/LICENSE" @@ -0,0 +1,26 @@ +Copyright (c) 2016, Daniel Wirtz All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of its author, nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/aspromise/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/aspromise/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..c7ae36f0e691e48bb879ef50bb291db7cb7ef67c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/aspromise/README.md" @@ -0,0 +1,13 @@ +@protobufjs/aspromise +===================== +[![npm](https://img.shields.io/npm/v/@protobufjs/aspromise.svg)](https://www.npmjs.com/package/@protobufjs/aspromise) + +Returns a promise from a node-style callback function. + +API +--- + +* **asPromise(fn: `function`, ctx: `Object`, ...params: `*`): `Promise<*>`**
+ Returns a promise from a node-style callback function. + +**License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/aspromise/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/aspromise/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..3db03dbee77754f1b03986a6a059cdbbb47eb1d1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/aspromise/index.d.ts" @@ -0,0 +1,13 @@ +export = asPromise; + +type asPromiseCallback = (error: Error | null, ...params: any[]) => {}; + +/** + * Returns a promise from a node-style callback function. + * @memberof util + * @param {asPromiseCallback} fn Function to call + * @param {*} ctx Function context + * @param {...*} params Function arguments + * @returns {Promise<*>} Promisified function + */ +declare function asPromise(fn: asPromiseCallback, ctx: any, ...params: any[]): Promise; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/aspromise/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/aspromise/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..d6f642cb705543dd156190fc3a81fe90e1085901 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/aspromise/index.js" @@ -0,0 +1,52 @@ +"use strict"; +module.exports = asPromise; + +/** + * Callback as used by {@link util.asPromise}. + * @typedef asPromiseCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {...*} params Additional arguments + * @returns {undefined} + */ + +/** + * Returns a promise from a node-style callback function. + * @memberof util + * @param {asPromiseCallback} fn Function to call + * @param {*} ctx Function context + * @param {...*} params Function arguments + * @returns {Promise<*>} Promisified function + */ +function asPromise(fn, ctx/*, varargs */) { + var params = new Array(arguments.length - 1), + offset = 0, + index = 2, + pending = true; + while (index < arguments.length) + params[offset++] = arguments[index++]; + return new Promise(function executor(resolve, reject) { + params[offset] = function callback(err/*, varargs */) { + if (pending) { + pending = false; + if (err) + reject(err); + else { + var params = new Array(arguments.length - 1), + offset = 0; + while (offset < params.length) + params[offset++] = arguments[offset]; + resolve.apply(null, params); + } + } + }; + try { + fn.apply(ctx || null, params); + } catch (err) { + if (pending) { + pending = false; + reject(err); + } + } + }); +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/aspromise/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/aspromise/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..aa8eaefea9bb35cb6a8c88a1ff025bec0b7da924 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/aspromise/package.json" @@ -0,0 +1,21 @@ +{ + "name": "@protobufjs/aspromise", + "description": "Returns a promise from a node-style callback function.", + "version": "1.1.2", + "author": "Daniel Wirtz ", + "repository": { + "type": "git", + "url": "https://github.com/dcodeIO/protobuf.js.git" + }, + "license": "BSD-3-Clause", + "main": "index.js", + "types": "index.d.ts", + "devDependencies": { + "istanbul": "^0.4.5", + "tape": "^4.6.3" + }, + "scripts": { + "test": "tape tests/*.js", + "coverage": "istanbul cover node_modules/tape/bin/tape tests/*.js" + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/aspromise/tests/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/aspromise/tests/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..cfdb258a6fc96824330e07ed322e4cbcb8d778c0 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/aspromise/tests/index.js" @@ -0,0 +1,130 @@ +var tape = require("tape"); + +var asPromise = require(".."); + +tape.test("aspromise", function(test) { + + test.test(this.name + " - resolve", function(test) { + + function fn(arg1, arg2, callback) { + test.equal(this, ctx, "function should be called with this = ctx"); + test.equal(arg1, 1, "function should be called with arg1 = 1"); + test.equal(arg2, 2, "function should be called with arg2 = 2"); + callback(null, arg2); + } + + var ctx = {}; + + var promise = asPromise(fn, ctx, 1, 2); + promise.then(function(arg2) { + test.equal(arg2, 2, "promise should be resolved with arg2 = 2"); + test.end(); + }).catch(function(err) { + test.fail("promise should not be rejected (" + err + ")"); + }); + }); + + test.test(this.name + " - reject", function(test) { + + function fn(arg1, arg2, callback) { + test.equal(this, ctx, "function should be called with this = ctx"); + test.equal(arg1, 1, "function should be called with arg1 = 1"); + test.equal(arg2, 2, "function should be called with arg2 = 2"); + callback(arg1); + } + + var ctx = {}; + + var promise = asPromise(fn, ctx, 1, 2); + promise.then(function() { + test.fail("promise should not be resolved"); + }).catch(function(err) { + test.equal(err, 1, "promise should be rejected with err = 1"); + test.end(); + }); + }); + + test.test(this.name + " - resolve twice", function(test) { + + function fn(arg1, arg2, callback) { + test.equal(this, ctx, "function should be called with this = ctx"); + test.equal(arg1, 1, "function should be called with arg1 = 1"); + test.equal(arg2, 2, "function should be called with arg2 = 2"); + callback(null, arg2); + callback(null, arg1); + } + + var ctx = {}; + var count = 0; + + var promise = asPromise(fn, ctx, 1, 2); + promise.then(function(arg2) { + test.equal(arg2, 2, "promise should be resolved with arg2 = 2"); + if (++count > 1) + test.fail("promise should not be resolved twice"); + test.end(); + }).catch(function(err) { + test.fail("promise should not be rejected (" + err + ")"); + }); + }); + + test.test(this.name + " - reject twice", function(test) { + + function fn(arg1, arg2, callback) { + test.equal(this, ctx, "function should be called with this = ctx"); + test.equal(arg1, 1, "function should be called with arg1 = 1"); + test.equal(arg2, 2, "function should be called with arg2 = 2"); + callback(arg1); + callback(arg2); + } + + var ctx = {}; + var count = 0; + + var promise = asPromise(fn, ctx, 1, 2); + promise.then(function() { + test.fail("promise should not be resolved"); + }).catch(function(err) { + test.equal(err, 1, "promise should be rejected with err = 1"); + if (++count > 1) + test.fail("promise should not be rejected twice"); + test.end(); + }); + }); + + test.test(this.name + " - reject error", function(test) { + + function fn(callback) { + test.ok(arguments.length === 1 && typeof callback === "function", "function should be called with just a callback"); + throw 3; + } + + var promise = asPromise(fn, null); + promise.then(function() { + test.fail("promise should not be resolved"); + }).catch(function(err) { + test.equal(err, 3, "promise should be rejected with err = 3"); + test.end(); + }); + }); + + test.test(this.name + " - reject and error", function(test) { + + function fn(callback) { + callback(3); + throw 4; + } + + var count = 0; + + var promise = asPromise(fn, null); + promise.then(function() { + test.fail("promise should not be resolved"); + }).catch(function(err) { + test.equal(err, 3, "promise should be rejected with err = 3"); + if (++count > 1) + test.fail("promise should not be rejected twice"); + test.end(); + }); + }); +}); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/base64/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/base64/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..be2b397e3c3557c0f0eaf342a66df8414c9bc309 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/base64/LICENSE" @@ -0,0 +1,26 @@ +Copyright (c) 2016, Daniel Wirtz All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of its author, nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/base64/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/base64/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..b06cb0a27765c2a823bb1b3db594f0ba173a8cbd --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/base64/README.md" @@ -0,0 +1,19 @@ +@protobufjs/base64 +================== +[![npm](https://img.shields.io/npm/v/@protobufjs/base64.svg)](https://www.npmjs.com/package/@protobufjs/base64) + +A minimal base64 implementation for number arrays. + +API +--- + +* **base64.length(string: `string`): `number`**
+ Calculates the byte length of a base64 encoded string. + +* **base64.encode(buffer: `Uint8Array`, start: `number`, end: `number`): `string`**
+ Encodes a buffer to a base64 encoded string. + +* **base64.decode(string: `string`, buffer: `Uint8Array`, offset: `number`): `number`**
+ Decodes a base64 encoded string to a buffer. + +**License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/base64/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/base64/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..085d0a7a01688302e822f8c08de2fb48608c3ec1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/base64/index.d.ts" @@ -0,0 +1,32 @@ +/** + * Calculates the byte length of a base64 encoded string. + * @param {string} string Base64 encoded string + * @returns {number} Byte length + */ +export function length(string: string): number; + +/** + * Encodes a buffer to a base64 encoded string. + * @param {Uint8Array} buffer Source buffer + * @param {number} start Source start + * @param {number} end Source end + * @returns {string} Base64 encoded string + */ +export function encode(buffer: Uint8Array, start: number, end: number): string; + +/** + * Decodes a base64 encoded string to a buffer. + * @param {string} string Source string + * @param {Uint8Array} buffer Destination buffer + * @param {number} offset Destination offset + * @returns {number} Number of bytes written + * @throws {Error} If encoding is invalid + */ +export function decode(string: string, buffer: Uint8Array, offset: number): number; + +/** + * Tests if the specified string appears to be base64 encoded. + * @param {string} string String to test + * @returns {boolean} `true` if it appears to be base64 encoded, otherwise false + */ +export function test(string: string): boolean; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/base64/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/base64/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..6146f5430f9819700e9a58296ffa66cc8fe3e351 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/base64/index.js" @@ -0,0 +1,139 @@ +"use strict"; + +/** + * A minimal base64 implementation for number arrays. + * @memberof util + * @namespace + */ +var base64 = exports; + +/** + * Calculates the byte length of a base64 encoded string. + * @param {string} string Base64 encoded string + * @returns {number} Byte length + */ +base64.length = function length(string) { + var p = string.length; + if (!p) + return 0; + var n = 0; + while (--p % 4 > 1 && string.charAt(p) === "=") + ++n; + return Math.ceil(string.length * 3) / 4 - n; +}; + +// Base64 encoding table +var b64 = new Array(64); + +// Base64 decoding table +var s64 = new Array(123); + +// 65..90, 97..122, 48..57, 43, 47 +for (var i = 0; i < 64;) + s64[b64[i] = i < 26 ? i + 65 : i < 52 ? i + 71 : i < 62 ? i - 4 : i - 59 | 43] = i++; + +/** + * Encodes a buffer to a base64 encoded string. + * @param {Uint8Array} buffer Source buffer + * @param {number} start Source start + * @param {number} end Source end + * @returns {string} Base64 encoded string + */ +base64.encode = function encode(buffer, start, end) { + var parts = null, + chunk = []; + var i = 0, // output index + j = 0, // goto index + t; // temporary + while (start < end) { + var b = buffer[start++]; + switch (j) { + case 0: + chunk[i++] = b64[b >> 2]; + t = (b & 3) << 4; + j = 1; + break; + case 1: + chunk[i++] = b64[t | b >> 4]; + t = (b & 15) << 2; + j = 2; + break; + case 2: + chunk[i++] = b64[t | b >> 6]; + chunk[i++] = b64[b & 63]; + j = 0; + break; + } + if (i > 8191) { + (parts || (parts = [])).push(String.fromCharCode.apply(String, chunk)); + i = 0; + } + } + if (j) { + chunk[i++] = b64[t]; + chunk[i++] = 61; + if (j === 1) + chunk[i++] = 61; + } + if (parts) { + if (i) + parts.push(String.fromCharCode.apply(String, chunk.slice(0, i))); + return parts.join(""); + } + return String.fromCharCode.apply(String, chunk.slice(0, i)); +}; + +var invalidEncoding = "invalid encoding"; + +/** + * Decodes a base64 encoded string to a buffer. + * @param {string} string Source string + * @param {Uint8Array} buffer Destination buffer + * @param {number} offset Destination offset + * @returns {number} Number of bytes written + * @throws {Error} If encoding is invalid + */ +base64.decode = function decode(string, buffer, offset) { + var start = offset; + var j = 0, // goto index + t; // temporary + for (var i = 0; i < string.length;) { + var c = string.charCodeAt(i++); + if (c === 61 && j > 1) + break; + if ((c = s64[c]) === undefined) + throw Error(invalidEncoding); + switch (j) { + case 0: + t = c; + j = 1; + break; + case 1: + buffer[offset++] = t << 2 | (c & 48) >> 4; + t = c; + j = 2; + break; + case 2: + buffer[offset++] = (t & 15) << 4 | (c & 60) >> 2; + t = c; + j = 3; + break; + case 3: + buffer[offset++] = (t & 3) << 6 | c; + j = 0; + break; + } + } + if (j === 1) + throw Error(invalidEncoding); + return offset - start; +}; + +/** + * Tests if the specified string appears to be base64 encoded. + * @param {string} string String to test + * @returns {boolean} `true` if probably base64 encoded, otherwise false + */ +base64.test = function test(string) { + return /^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(string); +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/base64/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/base64/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..f119811bc5e272bc4f9230caf9addda76a99483a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/base64/package.json" @@ -0,0 +1,21 @@ +{ + "name": "@protobufjs/base64", + "description": "A minimal base64 implementation for number arrays.", + "version": "1.1.2", + "author": "Daniel Wirtz ", + "repository": { + "type": "git", + "url": "https://github.com/dcodeIO/protobuf.js.git" + }, + "license": "BSD-3-Clause", + "main": "index.js", + "types": "index.d.ts", + "devDependencies": { + "istanbul": "^0.4.5", + "tape": "^4.6.3" + }, + "scripts": { + "test": "tape tests/*.js", + "coverage": "istanbul cover node_modules/tape/bin/tape tests/*.js" + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/base64/tests/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/base64/tests/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..6ede32c26a11c76382fbbccdc1da72d979abbb81 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/base64/tests/index.js" @@ -0,0 +1,46 @@ +var tape = require("tape"); + +var base64 = require(".."); + +var strings = { + "": "", + "a": "YQ==", + "ab": "YWI=", + "abcdefg": "YWJjZGVmZw==", + "abcdefgh": "YWJjZGVmZ2g=", + "abcdefghi": "YWJjZGVmZ2hp" +}; + +tape.test("base64", function(test) { + + Object.keys(strings).forEach(function(str) { + var enc = strings[str]; + + test.equal(base64.test(enc), true, "should detect '" + enc + "' to be base64 encoded"); + + var len = base64.length(enc); + test.equal(len, str.length, "should calculate '" + enc + "' as " + str.length + " bytes"); + + var buf = new Array(len); + var len2 = base64.decode(enc, buf, 0); + test.equal(len2, len, "should decode '" + enc + "' to " + len + " bytes"); + + test.equal(String.fromCharCode.apply(String, buf), str, "should decode '" + enc + "' to '" + str + "'"); + + var enc2 = base64.encode(buf, 0, buf.length); + test.equal(enc2, enc, "should encode '" + str + "' to '" + enc + "'"); + + }); + + test.throws(function() { + var buf = new Array(10); + base64.decode("YQ!", buf, 0); + }, Error, "should throw if encoding is invalid"); + + test.throws(function() { + var buf = new Array(10); + base64.decode("Y", buf, 0); + }, Error, "should throw if string is truncated"); + + test.end(); +}); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/codegen/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/codegen/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..be2b397e3c3557c0f0eaf342a66df8414c9bc309 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/codegen/LICENSE" @@ -0,0 +1,26 @@ +Copyright (c) 2016, Daniel Wirtz All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of its author, nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/codegen/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/codegen/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..577c43ed028ccaa0e0e16bffb5d377d901bb8846 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/codegen/README.md" @@ -0,0 +1,49 @@ +@protobufjs/codegen +=================== +[![npm](https://img.shields.io/npm/v/@protobufjs/codegen.svg)](https://www.npmjs.com/package/@protobufjs/codegen) + +A minimalistic code generation utility. + +API +--- + +* **codegen([functionParams: `string[]`], [functionName: string]): `Codegen`**
+ Begins generating a function. + +* **codegen.verbose = `false`**
+ When set to true, codegen will log generated code to console. Useful for debugging. + +Invoking **codegen** returns an appender function that appends code to the function's body and returns itself: + +* **Codegen(formatString: `string`, [...formatParams: `any`]): Codegen**
+ Appends code to the function's body. The format string can contain placeholders specifying the types of inserted format parameters: + + * `%d`: Number (integer or floating point value) + * `%f`: Floating point value + * `%i`: Integer value + * `%j`: JSON.stringify'ed value + * `%s`: String value + * `%%`: Percent sign
+ +* **Codegen([scope: `Object.`]): `Function`**
+ Finishes the function and returns it. + +* **Codegen.toString([functionNameOverride: `string`]): `string`**
+ Returns the function as a string. + +Example +------- + +```js +var codegen = require("@protobufjs/codegen"); + +var add = codegen(["a", "b"], "add") // A function with parameters "a" and "b" named "add" + ("// awesome comment") // adds the line to the function's body + ("return a + b - c + %d", 1) // replaces %d with 1 and adds the line to the body + ({ c: 1 }); // adds "c" with a value of 1 to the function's scope + +console.log(add.toString()); // function add(a, b) { return a + b - c + 1 } +console.log(add(1, 2)); // calculates 1 + 2 - 1 + 1 = 3 +``` + +**License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/codegen/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/codegen/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..f8ed9089cb7d554be7b1a2d915935de66edc1b90 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/codegen/index.d.ts" @@ -0,0 +1,31 @@ +export = codegen; + +/** + * Appends code to the function's body. + * @param [formatStringOrScope] Format string or, to finish the function, an object of additional scope variables, if any + * @param [formatParams] Format parameters + * @returns Itself or the generated function if finished + * @throws {Error} If format parameter counts do not match + */ +type Codegen = (formatStringOrScope?: (string|{ [k: string]: any }), ...formatParams: any[]) => (Codegen|Function); + +/** + * Begins generating a function. + * @param functionParams Function parameter names + * @param [functionName] Function name if not anonymous + * @returns Appender that appends code to the function's body + */ +declare function codegen(functionParams: string[], functionName?: string): Codegen; + +/** + * Begins generating a function. + * @param [functionName] Function name if not anonymous + * @returns Appender that appends code to the function's body + */ +declare function codegen(functionName?: string): Codegen; + +declare namespace codegen { + + /** When set to `true`, codegen will log generated code to console. Useful for debugging. */ + let verbose: boolean; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/codegen/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/codegen/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..af005cb0f141383af5b179ba0a9c3de0f4bfe8dc --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/codegen/index.js" @@ -0,0 +1,99 @@ +"use strict"; +module.exports = codegen; + +/** + * Begins generating a function. + * @memberof util + * @param {string[]} functionParams Function parameter names + * @param {string} [functionName] Function name if not anonymous + * @returns {Codegen} Appender that appends code to the function's body + */ +function codegen(functionParams, functionName) { + + /* istanbul ignore if */ + if (typeof functionParams === "string") { + functionName = functionParams; + functionParams = undefined; + } + + var body = []; + + /** + * Appends code to the function's body or finishes generation. + * @typedef Codegen + * @type {function} + * @param {string|Object.} [formatStringOrScope] Format string or, to finish the function, an object of additional scope variables, if any + * @param {...*} [formatParams] Format parameters + * @returns {Codegen|Function} Itself or the generated function if finished + * @throws {Error} If format parameter counts do not match + */ + + function Codegen(formatStringOrScope) { + // note that explicit array handling below makes this ~50% faster + + // finish the function + if (typeof formatStringOrScope !== "string") { + var source = toString(); + if (codegen.verbose) + console.log("codegen: " + source); // eslint-disable-line no-console + source = "return " + source; + if (formatStringOrScope) { + var scopeKeys = Object.keys(formatStringOrScope), + scopeParams = new Array(scopeKeys.length + 1), + scopeValues = new Array(scopeKeys.length), + scopeOffset = 0; + while (scopeOffset < scopeKeys.length) { + scopeParams[scopeOffset] = scopeKeys[scopeOffset]; + scopeValues[scopeOffset] = formatStringOrScope[scopeKeys[scopeOffset++]]; + } + scopeParams[scopeOffset] = source; + return Function.apply(null, scopeParams).apply(null, scopeValues); // eslint-disable-line no-new-func + } + return Function(source)(); // eslint-disable-line no-new-func + } + + // otherwise append to body + var formatParams = new Array(arguments.length - 1), + formatOffset = 0; + while (formatOffset < formatParams.length) + formatParams[formatOffset] = arguments[++formatOffset]; + formatOffset = 0; + formatStringOrScope = formatStringOrScope.replace(/%([%dfijs])/g, function replace($0, $1) { + var value = formatParams[formatOffset++]; + switch ($1) { + case "d": case "f": return String(Number(value)); + case "i": return String(Math.floor(value)); + case "j": return JSON.stringify(value); + case "s": return String(value); + } + return "%"; + }); + if (formatOffset !== formatParams.length) + throw Error("parameter count mismatch"); + body.push(formatStringOrScope); + return Codegen; + } + + function toString(functionNameOverride) { + return "function " + (functionNameOverride || functionName || "") + "(" + (functionParams && functionParams.join(",") || "") + "){\n " + body.join("\n ") + "\n}"; + } + + Codegen.toString = toString; + return Codegen; +} + +/** + * Begins generating a function. + * @memberof util + * @function codegen + * @param {string} [functionName] Function name if not anonymous + * @returns {Codegen} Appender that appends code to the function's body + * @variation 2 + */ + +/** + * When set to `true`, codegen will log generated code to console. Useful for debugging. + * @name util.codegen.verbose + * @type {boolean} + */ +codegen.verbose = false; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/codegen/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/codegen/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..4e82f956255c41287a4389b752ff0e3b4cbbf87b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/codegen/package.json" @@ -0,0 +1,13 @@ +{ + "name": "@protobufjs/codegen", + "description": "A minimalistic code generation utility.", + "version": "2.0.4", + "author": "Daniel Wirtz ", + "repository": { + "type": "git", + "url": "https://github.com/dcodeIO/protobuf.js.git" + }, + "license": "BSD-3-Clause", + "main": "index.js", + "types": "index.d.ts" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/codegen/tests/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/codegen/tests/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..b189117d14ef777d73f681d20bf0efee196cbebc --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/codegen/tests/index.js" @@ -0,0 +1,13 @@ +var codegen = require(".."); + +// new require("benchmark").Suite().add("add", function() { + +var add = codegen(["a", "b"], "add") + ("// awesome comment") + ("return a + b - c + %d", 1) + ({ c: 1 }); + +if (add(1, 2) !== 3) + throw Error("failed"); + +// }).on("cycle", function(event) { process.stdout.write(String(event.target) + "\n"); }).run(); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/eventemitter/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/eventemitter/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..be2b397e3c3557c0f0eaf342a66df8414c9bc309 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/eventemitter/LICENSE" @@ -0,0 +1,26 @@ +Copyright (c) 2016, Daniel Wirtz All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of its author, nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/eventemitter/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/eventemitter/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..528e725e4d2e9fd1f52153c971e663b2511f3556 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/eventemitter/README.md" @@ -0,0 +1,22 @@ +@protobufjs/eventemitter +======================== +[![npm](https://img.shields.io/npm/v/@protobufjs/eventemitter.svg)](https://www.npmjs.com/package/@protobufjs/eventemitter) + +A minimal event emitter. + +API +--- + +* **new EventEmitter()**
+ Constructs a new event emitter instance. + +* **EventEmitter#on(evt: `string`, fn: `function`, [ctx: `Object`]): `EventEmitter`**
+ Registers an event listener. + +* **EventEmitter#off([evt: `string`], [fn: `function`]): `EventEmitter`**
+ Removes an event listener or any matching listeners if arguments are omitted. + +* **EventEmitter#emit(evt: `string`, ...args: `*`): `EventEmitter`**
+ Emits an event by calling its listeners with the specified arguments. + +**License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/eventemitter/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/eventemitter/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..f177823854461c0f8b66922e5dd50dcf7dbf4bc9 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/eventemitter/index.d.ts" @@ -0,0 +1,43 @@ +export = EventEmitter; + +/** + * Constructs a new event emitter instance. + * @classdesc A minimal event emitter. + * @memberof util + * @constructor + */ +declare class EventEmitter { + + /** + * Constructs a new event emitter instance. + * @classdesc A minimal event emitter. + * @memberof util + * @constructor + */ + constructor(); + + /** + * Registers an event listener. + * @param {string} evt Event name + * @param {function} fn Listener + * @param {*} [ctx] Listener context + * @returns {util.EventEmitter} `this` + */ + on(evt: string, fn: () => any, ctx?: any): EventEmitter; + + /** + * Removes an event listener or any matching listeners if arguments are omitted. + * @param {string} [evt] Event name. Removes all listeners if omitted. + * @param {function} [fn] Listener to remove. Removes all listeners of `evt` if omitted. + * @returns {util.EventEmitter} `this` + */ + off(evt?: string, fn?: () => any): EventEmitter; + + /** + * Emits an event by calling its listeners with the specified arguments. + * @param {string} evt Event name + * @param {...*} args Arguments + * @returns {util.EventEmitter} `this` + */ + emit(evt: string, ...args: any[]): EventEmitter; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/eventemitter/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/eventemitter/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..f766fd07aeaf2fe6a003ec13ed7699c9924f20f8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/eventemitter/index.js" @@ -0,0 +1,76 @@ +"use strict"; +module.exports = EventEmitter; + +/** + * Constructs a new event emitter instance. + * @classdesc A minimal event emitter. + * @memberof util + * @constructor + */ +function EventEmitter() { + + /** + * Registered listeners. + * @type {Object.} + * @private + */ + this._listeners = {}; +} + +/** + * Registers an event listener. + * @param {string} evt Event name + * @param {function} fn Listener + * @param {*} [ctx] Listener context + * @returns {util.EventEmitter} `this` + */ +EventEmitter.prototype.on = function on(evt, fn, ctx) { + (this._listeners[evt] || (this._listeners[evt] = [])).push({ + fn : fn, + ctx : ctx || this + }); + return this; +}; + +/** + * Removes an event listener or any matching listeners if arguments are omitted. + * @param {string} [evt] Event name. Removes all listeners if omitted. + * @param {function} [fn] Listener to remove. Removes all listeners of `evt` if omitted. + * @returns {util.EventEmitter} `this` + */ +EventEmitter.prototype.off = function off(evt, fn) { + if (evt === undefined) + this._listeners = {}; + else { + if (fn === undefined) + this._listeners[evt] = []; + else { + var listeners = this._listeners[evt]; + for (var i = 0; i < listeners.length;) + if (listeners[i].fn === fn) + listeners.splice(i, 1); + else + ++i; + } + } + return this; +}; + +/** + * Emits an event by calling its listeners with the specified arguments. + * @param {string} evt Event name + * @param {...*} args Arguments + * @returns {util.EventEmitter} `this` + */ +EventEmitter.prototype.emit = function emit(evt) { + var listeners = this._listeners[evt]; + if (listeners) { + var args = [], + i = 1; + for (; i < arguments.length;) + args.push(arguments[i++]); + for (i = 0; i < listeners.length;) + listeners[i].fn.apply(listeners[i++].ctx, args); + } + return this; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/eventemitter/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/eventemitter/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..b333e997027040a86ec6cdb61f46014776ad0113 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/eventemitter/package.json" @@ -0,0 +1,21 @@ +{ + "name": "@protobufjs/eventemitter", + "description": "A minimal event emitter.", + "version": "1.1.0", + "author": "Daniel Wirtz ", + "repository": { + "type": "git", + "url": "https://github.com/dcodeIO/protobuf.js.git" + }, + "license": "BSD-3-Clause", + "main": "index.js", + "types": "index.d.ts", + "devDependencies": { + "istanbul": "^0.4.5", + "tape": "^4.6.3" + }, + "scripts": { + "test": "tape tests/*.js", + "coverage": "istanbul cover node_modules/tape/bin/tape tests/*.js" + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/eventemitter/tests/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/eventemitter/tests/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..390958fd810be35137369d1f285952a1905526ff --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/eventemitter/tests/index.js" @@ -0,0 +1,47 @@ +var tape = require("tape"); + +var EventEmitter = require(".."); + +tape.test("eventemitter", function(test) { + + var ee = new EventEmitter(); + var fn; + var ctx = {}; + + test.doesNotThrow(function() { + ee.emit("a", 1); + ee.off(); + ee.off("a"); + ee.off("a", function() {}); + }, "should not throw if no listeners are registered"); + + test.equal(ee.on("a", function(arg1) { + test.equal(this, ctx, "should be called with this = ctx"); + test.equal(arg1, 1, "should be called with arg1 = 1"); + }, ctx), ee, "should return itself when registering events"); + ee.emit("a", 1); + + ee.off("a"); + test.same(ee._listeners, { a: [] }, "should remove all listeners of the respective event when calling off(evt)"); + + ee.off(); + test.same(ee._listeners, {}, "should remove all listeners when just calling off()"); + + ee.on("a", fn = function(arg1) { + test.equal(this, ctx, "should be called with this = ctx"); + test.equal(arg1, 1, "should be called with arg1 = 1"); + }, ctx).emit("a", 1); + + ee.off("a", fn); + test.same(ee._listeners, { a: [] }, "should remove the exact listener when calling off(evt, fn)"); + + ee.on("a", function() { + test.equal(this, ee, "should be called with this = ee"); + }).emit("a"); + + test.doesNotThrow(function() { + ee.off("a", fn); + }, "should not throw if no such listener is found"); + + test.end(); +}); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/fetch/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/fetch/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..be2b397e3c3557c0f0eaf342a66df8414c9bc309 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/fetch/LICENSE" @@ -0,0 +1,26 @@ +Copyright (c) 2016, Daniel Wirtz All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of its author, nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/fetch/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/fetch/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..1ebf4d4f52485c069ec17f289296ab336bf10bf0 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/fetch/README.md" @@ -0,0 +1,13 @@ +@protobufjs/fetch +================= +[![npm](https://img.shields.io/npm/v/@protobufjs/fetch.svg)](https://www.npmjs.com/package/@protobufjs/fetch) + +Fetches the contents of a file accross node and browsers. + +API +--- + +* **fetch(path: `string`, [options: { binary: boolean } ], [callback: `function(error: ?Error, [contents: string])`]): `Promise|undefined`** + Fetches the contents of a file. + +**License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/fetch/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/fetch/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..ab0820cdfba17fa815d3ab007e2ce192b7d67280 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/fetch/index.d.ts" @@ -0,0 +1,56 @@ +export = fetch; + +/** + * Node-style callback as used by {@link util.fetch}. + * @typedef FetchCallback + * @type {function} + * @param {?Error} error Error, if any, otherwise `null` + * @param {string} [contents] File contents, if there hasn't been an error + * @returns {undefined} + */ +type FetchCallback = (error: Error, contents?: string) => void; + +/** + * Options as used by {@link util.fetch}. + * @typedef FetchOptions + * @type {Object} + * @property {boolean} [binary=false] Whether expecting a binary response + * @property {boolean} [xhr=false] If `true`, forces the use of XMLHttpRequest + */ + +interface FetchOptions { + binary?: boolean; + xhr?: boolean +} + +/** + * Fetches the contents of a file. + * @memberof util + * @param {string} filename File path or url + * @param {FetchOptions} options Fetch options + * @param {FetchCallback} callback Callback function + * @returns {undefined} + */ +declare function fetch(filename: string, options: FetchOptions, callback: FetchCallback): void; + +/** + * Fetches the contents of a file. + * @name util.fetch + * @function + * @param {string} path File path or url + * @param {FetchCallback} callback Callback function + * @returns {undefined} + * @variation 2 + */ +declare function fetch(path: string, callback: FetchCallback): void; + +/** + * Fetches the contents of a file. + * @name util.fetch + * @function + * @param {string} path File path or url + * @param {FetchOptions} [options] Fetch options + * @returns {Promise} Promise + * @variation 3 + */ +declare function fetch(path: string, options?: FetchOptions): Promise<(string|Uint8Array)>; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/fetch/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/fetch/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..d92aa689709ed07302029763c86fc25915126653 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/fetch/index.js" @@ -0,0 +1,115 @@ +"use strict"; +module.exports = fetch; + +var asPromise = require("@protobufjs/aspromise"), + inquire = require("@protobufjs/inquire"); + +var fs = inquire("fs"); + +/** + * Node-style callback as used by {@link util.fetch}. + * @typedef FetchCallback + * @type {function} + * @param {?Error} error Error, if any, otherwise `null` + * @param {string} [contents] File contents, if there hasn't been an error + * @returns {undefined} + */ + +/** + * Options as used by {@link util.fetch}. + * @typedef FetchOptions + * @type {Object} + * @property {boolean} [binary=false] Whether expecting a binary response + * @property {boolean} [xhr=false] If `true`, forces the use of XMLHttpRequest + */ + +/** + * Fetches the contents of a file. + * @memberof util + * @param {string} filename File path or url + * @param {FetchOptions} options Fetch options + * @param {FetchCallback} callback Callback function + * @returns {undefined} + */ +function fetch(filename, options, callback) { + if (typeof options === "function") { + callback = options; + options = {}; + } else if (!options) + options = {}; + + if (!callback) + return asPromise(fetch, this, filename, options); // eslint-disable-line no-invalid-this + + // if a node-like filesystem is present, try it first but fall back to XHR if nothing is found. + if (!options.xhr && fs && fs.readFile) + return fs.readFile(filename, function fetchReadFileCallback(err, contents) { + return err && typeof XMLHttpRequest !== "undefined" + ? fetch.xhr(filename, options, callback) + : err + ? callback(err) + : callback(null, options.binary ? contents : contents.toString("utf8")); + }); + + // use the XHR version otherwise. + return fetch.xhr(filename, options, callback); +} + +/** + * Fetches the contents of a file. + * @name util.fetch + * @function + * @param {string} path File path or url + * @param {FetchCallback} callback Callback function + * @returns {undefined} + * @variation 2 + */ + +/** + * Fetches the contents of a file. + * @name util.fetch + * @function + * @param {string} path File path or url + * @param {FetchOptions} [options] Fetch options + * @returns {Promise} Promise + * @variation 3 + */ + +/**/ +fetch.xhr = function fetch_xhr(filename, options, callback) { + var xhr = new XMLHttpRequest(); + xhr.onreadystatechange /* works everywhere */ = function fetchOnReadyStateChange() { + + if (xhr.readyState !== 4) + return undefined; + + // local cors security errors return status 0 / empty string, too. afaik this cannot be + // reliably distinguished from an actually empty file for security reasons. feel free + // to send a pull request if you are aware of a solution. + if (xhr.status !== 0 && xhr.status !== 200) + return callback(Error("status " + xhr.status)); + + // if binary data is expected, make sure that some sort of array is returned, even if + // ArrayBuffers are not supported. the binary string fallback, however, is unsafe. + if (options.binary) { + var buffer = xhr.response; + if (!buffer) { + buffer = []; + for (var i = 0; i < xhr.responseText.length; ++i) + buffer.push(xhr.responseText.charCodeAt(i) & 255); + } + return callback(null, typeof Uint8Array !== "undefined" ? new Uint8Array(buffer) : buffer); + } + return callback(null, xhr.responseText); + }; + + if (options.binary) { + // ref: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/Sending_and_Receiving_Binary_Data#Receiving_binary_data_in_older_browsers + if ("overrideMimeType" in xhr) + xhr.overrideMimeType("text/plain; charset=x-user-defined"); + xhr.responseType = "arraybuffer"; + } + + xhr.open("GET", filename); + xhr.send(); +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/fetch/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/fetch/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..14ee25fdce5e0b82b2022612944fec0f6e2ab870 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/fetch/package.json" @@ -0,0 +1,25 @@ +{ + "name": "@protobufjs/fetch", + "description": "Fetches the contents of a file accross node and browsers.", + "version": "1.1.0", + "author": "Daniel Wirtz ", + "repository": { + "type": "git", + "url": "https://github.com/dcodeIO/protobuf.js.git" + }, + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + }, + "license": "BSD-3-Clause", + "main": "index.js", + "types": "index.d.ts", + "devDependencies": { + "istanbul": "^0.4.5", + "tape": "^4.6.3" + }, + "scripts": { + "test": "tape tests/*.js", + "coverage": "istanbul cover node_modules/tape/bin/tape tests/*.js" + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/fetch/tests/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/fetch/tests/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..b7fbf81766d95bf82085e82cc316facd1c08cead --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/fetch/tests/index.js" @@ -0,0 +1,16 @@ +var tape = require("tape"); + +var fetch = require(".."); + +tape.test("fetch", function(test) { + + if (typeof Promise !== "undefined") { + var promise = fetch("NOTFOUND"); + promise.catch(function() {}); + test.ok(promise instanceof Promise, "should return a promise if callback has been omitted"); + } + + // TODO - some way to test this properly? + + test.end(); +}); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..be2b397e3c3557c0f0eaf342a66df8414c9bc309 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/LICENSE" @@ -0,0 +1,26 @@ +Copyright (c) 2016, Daniel Wirtz All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of its author, nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..e475fc921b9155b67bd5c88dbe61b817317f39cc --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/README.md" @@ -0,0 +1,102 @@ +@protobufjs/float +================= +[![npm](https://img.shields.io/npm/v/@protobufjs/float.svg)](https://www.npmjs.com/package/@protobufjs/float) + +Reads / writes floats / doubles from / to buffers in both modern and ancient browsers. Fast. + +API +--- + +* **writeFloatLE(val: `number`, buf: `Uint8Array`, pos: `number`)**
+ Writes a 32 bit float to a buffer using little endian byte order. + +* **writeFloatBE(val: `number`, buf: `Uint8Array`, pos: `number`)**
+ Writes a 32 bit float to a buffer using big endian byte order. + +* **readFloatLE(buf: `Uint8Array`, pos: `number`): `number`**
+ Reads a 32 bit float from a buffer using little endian byte order. + +* **readFloatBE(buf: `Uint8Array`, pos: `number`): `number`**
+ Reads a 32 bit float from a buffer using big endian byte order. + +* **writeDoubleLE(val: `number`, buf: `Uint8Array`, pos: `number`)**
+ Writes a 64 bit double to a buffer using little endian byte order. + +* **writeDoubleBE(val: `number`, buf: `Uint8Array`, pos: `number`)**
+ Writes a 64 bit double to a buffer using big endian byte order. + +* **readDoubleLE(buf: `Uint8Array`, pos: `number`): `number`**
+ Reads a 64 bit double from a buffer using little endian byte order. + +* **readDoubleBE(buf: `Uint8Array`, pos: `number`): `number`**
+ Reads a 64 bit double from a buffer using big endian byte order. + +Performance +----------- +There is a simple benchmark included comparing raw read/write performance of this library (float), float's fallback for old browsers, the [ieee754](https://www.npmjs.com/package/ieee754) module and node's [buffer](https://nodejs.org/api/buffer.html). On an i7-2600k running node 6.9.1 it yields: + +``` +benchmarking writeFloat performance ... + +float x 42,741,625 ops/sec ±1.75% (81 runs sampled) +float (fallback) x 11,272,532 ops/sec ±1.12% (85 runs sampled) +ieee754 x 8,653,337 ops/sec ±1.18% (84 runs sampled) +buffer x 12,412,414 ops/sec ±1.41% (83 runs sampled) +buffer (noAssert) x 13,471,149 ops/sec ±1.09% (84 runs sampled) + + float was fastest + float (fallback) was 73.5% slower + ieee754 was 79.6% slower + buffer was 70.9% slower + buffer (noAssert) was 68.3% slower + +benchmarking readFloat performance ... + +float x 44,382,729 ops/sec ±1.70% (84 runs sampled) +float (fallback) x 20,925,938 ops/sec ±0.86% (87 runs sampled) +ieee754 x 17,189,009 ops/sec ±1.01% (87 runs sampled) +buffer x 10,518,437 ops/sec ±1.04% (83 runs sampled) +buffer (noAssert) x 11,031,636 ops/sec ±1.15% (87 runs sampled) + + float was fastest + float (fallback) was 52.5% slower + ieee754 was 61.0% slower + buffer was 76.1% slower + buffer (noAssert) was 75.0% slower + +benchmarking writeDouble performance ... + +float x 38,624,906 ops/sec ±0.93% (83 runs sampled) +float (fallback) x 10,457,811 ops/sec ±1.54% (85 runs sampled) +ieee754 x 7,681,130 ops/sec ±1.11% (83 runs sampled) +buffer x 12,657,876 ops/sec ±1.03% (83 runs sampled) +buffer (noAssert) x 13,372,795 ops/sec ±0.84% (85 runs sampled) + + float was fastest + float (fallback) was 73.1% slower + ieee754 was 80.1% slower + buffer was 67.3% slower + buffer (noAssert) was 65.3% slower + +benchmarking readDouble performance ... + +float x 40,527,888 ops/sec ±1.05% (84 runs sampled) +float (fallback) x 18,696,480 ops/sec ±0.84% (86 runs sampled) +ieee754 x 14,074,028 ops/sec ±1.04% (87 runs sampled) +buffer x 10,092,367 ops/sec ±1.15% (84 runs sampled) +buffer (noAssert) x 10,623,793 ops/sec ±0.96% (84 runs sampled) + + float was fastest + float (fallback) was 53.8% slower + ieee754 was 65.3% slower + buffer was 75.1% slower + buffer (noAssert) was 73.8% slower +``` + +To run it yourself: + +``` +$> npm run bench +``` + +**License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/bench/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/bench/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..911f4617b645bd532ab83d37675cc4599770e2cd --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/bench/index.js" @@ -0,0 +1,87 @@ +"use strict"; + +var float = require(".."), + ieee754 = require("ieee754"), + newSuite = require("./suite"); + +var F32 = Float32Array; +var F64 = Float64Array; +delete global.Float32Array; +delete global.Float64Array; +var floatFallback = float({}); +global.Float32Array = F32; +global.Float64Array = F64; + +var buf = new Buffer(8); + +newSuite("writeFloat") +.add("float", function() { + float.writeFloatLE(0.1, buf, 0); +}) +.add("float (fallback)", function() { + floatFallback.writeFloatLE(0.1, buf, 0); +}) +.add("ieee754", function() { + ieee754.write(buf, 0.1, 0, true, 23, 4); +}) +.add("buffer", function() { + buf.writeFloatLE(0.1, 0); +}) +.add("buffer (noAssert)", function() { + buf.writeFloatLE(0.1, 0, true); +}) +.run(); + +newSuite("readFloat") +.add("float", function() { + float.readFloatLE(buf, 0); +}) +.add("float (fallback)", function() { + floatFallback.readFloatLE(buf, 0); +}) +.add("ieee754", function() { + ieee754.read(buf, 0, true, 23, 4); +}) +.add("buffer", function() { + buf.readFloatLE(0); +}) +.add("buffer (noAssert)", function() { + buf.readFloatLE(0, true); +}) +.run(); + +newSuite("writeDouble") +.add("float", function() { + float.writeDoubleLE(0.1, buf, 0); +}) +.add("float (fallback)", function() { + floatFallback.writeDoubleLE(0.1, buf, 0); +}) +.add("ieee754", function() { + ieee754.write(buf, 0.1, 0, true, 52, 8); +}) +.add("buffer", function() { + buf.writeDoubleLE(0.1, 0); +}) +.add("buffer (noAssert)", function() { + buf.writeDoubleLE(0.1, 0, true); +}) +.run(); + +newSuite("readDouble") +.add("float", function() { + float.readDoubleLE(buf, 0); +}) +.add("float (fallback)", function() { + floatFallback.readDoubleLE(buf, 0); +}) +.add("ieee754", function() { + ieee754.read(buf, 0, true, 52, 8); +}) +.add("buffer", function() { + buf.readDoubleLE(0); +}) +.add("buffer (noAssert)", function() { + buf.readDoubleLE(0, true); +}) +.run(); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/bench/suite.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/bench/suite.js" new file mode 100644 index 0000000000000000000000000000000000000000..e8016d23e97702862f34529a94dbde9448e7e1a5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/bench/suite.js" @@ -0,0 +1,46 @@ +"use strict"; +module.exports = newSuite; + +var benchmark = require("benchmark"), + chalk = require("chalk"); + +var padSize = 27; + +function newSuite(name) { + var benches = []; + return new benchmark.Suite(name) + .on("add", function(event) { + benches.push(event.target); + }) + .on("start", function() { + process.stdout.write("benchmarking " + name + " performance ...\n\n"); + }) + .on("cycle", function(event) { + process.stdout.write(String(event.target) + "\n"); + }) + .on("complete", function() { + if (benches.length > 1) { + var fastest = this.filter("fastest"), // eslint-disable-line no-invalid-this + fastestHz = getHz(fastest[0]); + process.stdout.write("\n" + chalk.white(pad(fastest[0].name, padSize)) + " was " + chalk.green("fastest") + "\n"); + benches.forEach(function(bench) { + if (fastest.indexOf(bench) === 0) + return; + var hz = hz = getHz(bench); + var percent = (1 - hz / fastestHz) * 100; + process.stdout.write(chalk.white(pad(bench.name, padSize)) + " was " + chalk.red(percent.toFixed(1) + "% slower") + "\n"); + }); + } + process.stdout.write("\n"); + }); +} + +function getHz(bench) { + return 1 / (bench.stats.mean + bench.stats.moe); +} + +function pad(str, len, l) { + while (str.length < len) + str = l ? str + " " : " " + str; + return str; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..ab05de3612c16cc6b6a77dee2b02f9073f6acac6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/index.d.ts" @@ -0,0 +1,83 @@ +/** + * Writes a 32 bit float to a buffer using little endian byte order. + * @name writeFloatLE + * @function + * @param {number} val Value to write + * @param {Uint8Array} buf Target buffer + * @param {number} pos Target buffer offset + * @returns {undefined} + */ +export function writeFloatLE(val: number, buf: Uint8Array, pos: number): void; + +/** + * Writes a 32 bit float to a buffer using big endian byte order. + * @name writeFloatBE + * @function + * @param {number} val Value to write + * @param {Uint8Array} buf Target buffer + * @param {number} pos Target buffer offset + * @returns {undefined} + */ +export function writeFloatBE(val: number, buf: Uint8Array, pos: number): void; + +/** + * Reads a 32 bit float from a buffer using little endian byte order. + * @name readFloatLE + * @function + * @param {Uint8Array} buf Source buffer + * @param {number} pos Source buffer offset + * @returns {number} Value read + */ +export function readFloatLE(buf: Uint8Array, pos: number): number; + +/** + * Reads a 32 bit float from a buffer using big endian byte order. + * @name readFloatBE + * @function + * @param {Uint8Array} buf Source buffer + * @param {number} pos Source buffer offset + * @returns {number} Value read + */ +export function readFloatBE(buf: Uint8Array, pos: number): number; + +/** + * Writes a 64 bit double to a buffer using little endian byte order. + * @name writeDoubleLE + * @function + * @param {number} val Value to write + * @param {Uint8Array} buf Target buffer + * @param {number} pos Target buffer offset + * @returns {undefined} + */ +export function writeDoubleLE(val: number, buf: Uint8Array, pos: number): void; + +/** + * Writes a 64 bit double to a buffer using big endian byte order. + * @name writeDoubleBE + * @function + * @param {number} val Value to write + * @param {Uint8Array} buf Target buffer + * @param {number} pos Target buffer offset + * @returns {undefined} + */ +export function writeDoubleBE(val: number, buf: Uint8Array, pos: number): void; + +/** + * Reads a 64 bit double from a buffer using little endian byte order. + * @name readDoubleLE + * @function + * @param {Uint8Array} buf Source buffer + * @param {number} pos Source buffer offset + * @returns {number} Value read + */ +export function readDoubleLE(buf: Uint8Array, pos: number): number; + +/** + * Reads a 64 bit double from a buffer using big endian byte order. + * @name readDoubleBE + * @function + * @param {Uint8Array} buf Source buffer + * @param {number} pos Source buffer offset + * @returns {number} Value read + */ +export function readDoubleBE(buf: Uint8Array, pos: number): number; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..52ba3aa2377cbfa96f3ffcf11fe0dc95e532ca61 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/index.js" @@ -0,0 +1,335 @@ +"use strict"; + +module.exports = factory(factory); + +/** + * Reads / writes floats / doubles from / to buffers. + * @name util.float + * @namespace + */ + +/** + * Writes a 32 bit float to a buffer using little endian byte order. + * @name util.float.writeFloatLE + * @function + * @param {number} val Value to write + * @param {Uint8Array} buf Target buffer + * @param {number} pos Target buffer offset + * @returns {undefined} + */ + +/** + * Writes a 32 bit float to a buffer using big endian byte order. + * @name util.float.writeFloatBE + * @function + * @param {number} val Value to write + * @param {Uint8Array} buf Target buffer + * @param {number} pos Target buffer offset + * @returns {undefined} + */ + +/** + * Reads a 32 bit float from a buffer using little endian byte order. + * @name util.float.readFloatLE + * @function + * @param {Uint8Array} buf Source buffer + * @param {number} pos Source buffer offset + * @returns {number} Value read + */ + +/** + * Reads a 32 bit float from a buffer using big endian byte order. + * @name util.float.readFloatBE + * @function + * @param {Uint8Array} buf Source buffer + * @param {number} pos Source buffer offset + * @returns {number} Value read + */ + +/** + * Writes a 64 bit double to a buffer using little endian byte order. + * @name util.float.writeDoubleLE + * @function + * @param {number} val Value to write + * @param {Uint8Array} buf Target buffer + * @param {number} pos Target buffer offset + * @returns {undefined} + */ + +/** + * Writes a 64 bit double to a buffer using big endian byte order. + * @name util.float.writeDoubleBE + * @function + * @param {number} val Value to write + * @param {Uint8Array} buf Target buffer + * @param {number} pos Target buffer offset + * @returns {undefined} + */ + +/** + * Reads a 64 bit double from a buffer using little endian byte order. + * @name util.float.readDoubleLE + * @function + * @param {Uint8Array} buf Source buffer + * @param {number} pos Source buffer offset + * @returns {number} Value read + */ + +/** + * Reads a 64 bit double from a buffer using big endian byte order. + * @name util.float.readDoubleBE + * @function + * @param {Uint8Array} buf Source buffer + * @param {number} pos Source buffer offset + * @returns {number} Value read + */ + +// Factory function for the purpose of node-based testing in modified global environments +function factory(exports) { + + // float: typed array + if (typeof Float32Array !== "undefined") (function() { + + var f32 = new Float32Array([ -0 ]), + f8b = new Uint8Array(f32.buffer), + le = f8b[3] === 128; + + function writeFloat_f32_cpy(val, buf, pos) { + f32[0] = val; + buf[pos ] = f8b[0]; + buf[pos + 1] = f8b[1]; + buf[pos + 2] = f8b[2]; + buf[pos + 3] = f8b[3]; + } + + function writeFloat_f32_rev(val, buf, pos) { + f32[0] = val; + buf[pos ] = f8b[3]; + buf[pos + 1] = f8b[2]; + buf[pos + 2] = f8b[1]; + buf[pos + 3] = f8b[0]; + } + + /* istanbul ignore next */ + exports.writeFloatLE = le ? writeFloat_f32_cpy : writeFloat_f32_rev; + /* istanbul ignore next */ + exports.writeFloatBE = le ? writeFloat_f32_rev : writeFloat_f32_cpy; + + function readFloat_f32_cpy(buf, pos) { + f8b[0] = buf[pos ]; + f8b[1] = buf[pos + 1]; + f8b[2] = buf[pos + 2]; + f8b[3] = buf[pos + 3]; + return f32[0]; + } + + function readFloat_f32_rev(buf, pos) { + f8b[3] = buf[pos ]; + f8b[2] = buf[pos + 1]; + f8b[1] = buf[pos + 2]; + f8b[0] = buf[pos + 3]; + return f32[0]; + } + + /* istanbul ignore next */ + exports.readFloatLE = le ? readFloat_f32_cpy : readFloat_f32_rev; + /* istanbul ignore next */ + exports.readFloatBE = le ? readFloat_f32_rev : readFloat_f32_cpy; + + // float: ieee754 + })(); else (function() { + + function writeFloat_ieee754(writeUint, val, buf, pos) { + var sign = val < 0 ? 1 : 0; + if (sign) + val = -val; + if (val === 0) + writeUint(1 / val > 0 ? /* positive */ 0 : /* negative 0 */ 2147483648, buf, pos); + else if (isNaN(val)) + writeUint(2143289344, buf, pos); + else if (val > 3.4028234663852886e+38) // +-Infinity + writeUint((sign << 31 | 2139095040) >>> 0, buf, pos); + else if (val < 1.1754943508222875e-38) // denormal + writeUint((sign << 31 | Math.round(val / 1.401298464324817e-45)) >>> 0, buf, pos); + else { + var exponent = Math.floor(Math.log(val) / Math.LN2), + mantissa = Math.round(val * Math.pow(2, -exponent) * 8388608) & 8388607; + writeUint((sign << 31 | exponent + 127 << 23 | mantissa) >>> 0, buf, pos); + } + } + + exports.writeFloatLE = writeFloat_ieee754.bind(null, writeUintLE); + exports.writeFloatBE = writeFloat_ieee754.bind(null, writeUintBE); + + function readFloat_ieee754(readUint, buf, pos) { + var uint = readUint(buf, pos), + sign = (uint >> 31) * 2 + 1, + exponent = uint >>> 23 & 255, + mantissa = uint & 8388607; + return exponent === 255 + ? mantissa + ? NaN + : sign * Infinity + : exponent === 0 // denormal + ? sign * 1.401298464324817e-45 * mantissa + : sign * Math.pow(2, exponent - 150) * (mantissa + 8388608); + } + + exports.readFloatLE = readFloat_ieee754.bind(null, readUintLE); + exports.readFloatBE = readFloat_ieee754.bind(null, readUintBE); + + })(); + + // double: typed array + if (typeof Float64Array !== "undefined") (function() { + + var f64 = new Float64Array([-0]), + f8b = new Uint8Array(f64.buffer), + le = f8b[7] === 128; + + function writeDouble_f64_cpy(val, buf, pos) { + f64[0] = val; + buf[pos ] = f8b[0]; + buf[pos + 1] = f8b[1]; + buf[pos + 2] = f8b[2]; + buf[pos + 3] = f8b[3]; + buf[pos + 4] = f8b[4]; + buf[pos + 5] = f8b[5]; + buf[pos + 6] = f8b[6]; + buf[pos + 7] = f8b[7]; + } + + function writeDouble_f64_rev(val, buf, pos) { + f64[0] = val; + buf[pos ] = f8b[7]; + buf[pos + 1] = f8b[6]; + buf[pos + 2] = f8b[5]; + buf[pos + 3] = f8b[4]; + buf[pos + 4] = f8b[3]; + buf[pos + 5] = f8b[2]; + buf[pos + 6] = f8b[1]; + buf[pos + 7] = f8b[0]; + } + + /* istanbul ignore next */ + exports.writeDoubleLE = le ? writeDouble_f64_cpy : writeDouble_f64_rev; + /* istanbul ignore next */ + exports.writeDoubleBE = le ? writeDouble_f64_rev : writeDouble_f64_cpy; + + function readDouble_f64_cpy(buf, pos) { + f8b[0] = buf[pos ]; + f8b[1] = buf[pos + 1]; + f8b[2] = buf[pos + 2]; + f8b[3] = buf[pos + 3]; + f8b[4] = buf[pos + 4]; + f8b[5] = buf[pos + 5]; + f8b[6] = buf[pos + 6]; + f8b[7] = buf[pos + 7]; + return f64[0]; + } + + function readDouble_f64_rev(buf, pos) { + f8b[7] = buf[pos ]; + f8b[6] = buf[pos + 1]; + f8b[5] = buf[pos + 2]; + f8b[4] = buf[pos + 3]; + f8b[3] = buf[pos + 4]; + f8b[2] = buf[pos + 5]; + f8b[1] = buf[pos + 6]; + f8b[0] = buf[pos + 7]; + return f64[0]; + } + + /* istanbul ignore next */ + exports.readDoubleLE = le ? readDouble_f64_cpy : readDouble_f64_rev; + /* istanbul ignore next */ + exports.readDoubleBE = le ? readDouble_f64_rev : readDouble_f64_cpy; + + // double: ieee754 + })(); else (function() { + + function writeDouble_ieee754(writeUint, off0, off1, val, buf, pos) { + var sign = val < 0 ? 1 : 0; + if (sign) + val = -val; + if (val === 0) { + writeUint(0, buf, pos + off0); + writeUint(1 / val > 0 ? /* positive */ 0 : /* negative 0 */ 2147483648, buf, pos + off1); + } else if (isNaN(val)) { + writeUint(0, buf, pos + off0); + writeUint(2146959360, buf, pos + off1); + } else if (val > 1.7976931348623157e+308) { // +-Infinity + writeUint(0, buf, pos + off0); + writeUint((sign << 31 | 2146435072) >>> 0, buf, pos + off1); + } else { + var mantissa; + if (val < 2.2250738585072014e-308) { // denormal + mantissa = val / 5e-324; + writeUint(mantissa >>> 0, buf, pos + off0); + writeUint((sign << 31 | mantissa / 4294967296) >>> 0, buf, pos + off1); + } else { + var exponent = Math.floor(Math.log(val) / Math.LN2); + if (exponent === 1024) + exponent = 1023; + mantissa = val * Math.pow(2, -exponent); + writeUint(mantissa * 4503599627370496 >>> 0, buf, pos + off0); + writeUint((sign << 31 | exponent + 1023 << 20 | mantissa * 1048576 & 1048575) >>> 0, buf, pos + off1); + } + } + } + + exports.writeDoubleLE = writeDouble_ieee754.bind(null, writeUintLE, 0, 4); + exports.writeDoubleBE = writeDouble_ieee754.bind(null, writeUintBE, 4, 0); + + function readDouble_ieee754(readUint, off0, off1, buf, pos) { + var lo = readUint(buf, pos + off0), + hi = readUint(buf, pos + off1); + var sign = (hi >> 31) * 2 + 1, + exponent = hi >>> 20 & 2047, + mantissa = 4294967296 * (hi & 1048575) + lo; + return exponent === 2047 + ? mantissa + ? NaN + : sign * Infinity + : exponent === 0 // denormal + ? sign * 5e-324 * mantissa + : sign * Math.pow(2, exponent - 1075) * (mantissa + 4503599627370496); + } + + exports.readDoubleLE = readDouble_ieee754.bind(null, readUintLE, 0, 4); + exports.readDoubleBE = readDouble_ieee754.bind(null, readUintBE, 4, 0); + + })(); + + return exports; +} + +// uint helpers + +function writeUintLE(val, buf, pos) { + buf[pos ] = val & 255; + buf[pos + 1] = val >>> 8 & 255; + buf[pos + 2] = val >>> 16 & 255; + buf[pos + 3] = val >>> 24; +} + +function writeUintBE(val, buf, pos) { + buf[pos ] = val >>> 24; + buf[pos + 1] = val >>> 16 & 255; + buf[pos + 2] = val >>> 8 & 255; + buf[pos + 3] = val & 255; +} + +function readUintLE(buf, pos) { + return (buf[pos ] + | buf[pos + 1] << 8 + | buf[pos + 2] << 16 + | buf[pos + 3] << 24) >>> 0; +} + +function readUintBE(buf, pos) { + return (buf[pos ] << 24 + | buf[pos + 1] << 16 + | buf[pos + 2] << 8 + | buf[pos + 3]) >>> 0; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..aaebccf0972bd49bd7025869c716858e0f13ce0f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/package.json" @@ -0,0 +1,26 @@ +{ + "name": "@protobufjs/float", + "description": "Reads / writes floats / doubles from / to buffers in both modern and ancient browsers.", + "version": "1.0.2", + "author": "Daniel Wirtz ", + "repository": { + "type": "git", + "url": "https://github.com/dcodeIO/protobuf.js.git" + }, + "dependencies": {}, + "license": "BSD-3-Clause", + "main": "index.js", + "types": "index.d.ts", + "devDependencies": { + "benchmark": "^2.1.4", + "chalk": "^1.1.3", + "ieee754": "^1.1.8", + "istanbul": "^0.4.5", + "tape": "^4.6.3" + }, + "scripts": { + "test": "tape tests/*.js", + "coverage": "istanbul cover node_modules/tape/bin/tape tests/*.js", + "bench": "node bench" + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/tests/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/tests/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..62f08275f8ad92cf4dcf9d8b0bf96520d45261e6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/float/tests/index.js" @@ -0,0 +1,100 @@ +var tape = require("tape"); + +var float = require(".."); + +tape.test("float", function(test) { + + // default + test.test(test.name + " - typed array", function(test) { + runTest(float, test); + }); + + // ieee754 + test.test(test.name + " - fallback", function(test) { + var F32 = global.Float32Array, + F64 = global.Float64Array; + delete global.Float32Array; + delete global.Float64Array; + runTest(float({}), test); + global.Float32Array = F32; + global.Float64Array = F64; + }); +}); + +function runTest(float, test) { + + var common = [ + 0, + -0, + Infinity, + -Infinity, + 0.125, + 1024.5, + -4096.5, + NaN + ]; + + test.test(test.name + " - using 32 bits", function(test) { + common.concat([ + 3.4028234663852886e+38, + 1.1754943508222875e-38, + 1.1754946310819804e-39 + ]) + .forEach(function(value) { + var strval = value === 0 && 1 / value < 0 ? "-0" : value.toString(); + test.ok( + checkValue(value, 4, float.readFloatLE, float.writeFloatLE, Buffer.prototype.writeFloatLE), + "should write and read back " + strval + " (32 bit LE)" + ); + test.ok( + checkValue(value, 4, float.readFloatBE, float.writeFloatBE, Buffer.prototype.writeFloatBE), + "should write and read back " + strval + " (32 bit BE)" + ); + }); + test.end(); + }); + + test.test(test.name + " - using 64 bits", function(test) { + common.concat([ + 1.7976931348623157e+308, + 2.2250738585072014e-308, + 2.2250738585072014e-309 + ]) + .forEach(function(value) { + var strval = value === 0 && 1 / value < 0 ? "-0" : value.toString(); + test.ok( + checkValue(value, 8, float.readDoubleLE, float.writeDoubleLE, Buffer.prototype.writeDoubleLE), + "should write and read back " + strval + " (64 bit LE)" + ); + test.ok( + checkValue(value, 8, float.readDoubleBE, float.writeDoubleBE, Buffer.prototype.writeDoubleBE), + "should write and read back " + strval + " (64 bit BE)" + ); + }); + test.end(); + }); + + test.end(); +} + +function checkValue(value, size, read, write, write_comp) { + var buffer = new Buffer(size); + write(value, buffer, 0); + var value_comp = read(buffer, 0); + var strval = value === 0 && 1 / value < 0 ? "-0" : value.toString(); + if (value !== value) { + if (value_comp === value_comp) + return false; + } else if (value_comp !== value) + return false; + + var buffer_comp = new Buffer(size); + write_comp.call(buffer_comp, value, 0); + for (var i = 0; i < size; ++i) + if (buffer[i] !== buffer_comp[i]) { + console.error(">", buffer, buffer_comp); + return false; + } + + return true; +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/.npmignore" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/.npmignore" new file mode 100644 index 0000000000000000000000000000000000000000..c3fc82ecb37ddb3f651f505720918bba3869dfc8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/.npmignore" @@ -0,0 +1,3 @@ +npm-debug.* +node_modules/ +coverage/ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..be2b397e3c3557c0f0eaf342a66df8414c9bc309 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/LICENSE" @@ -0,0 +1,26 @@ +Copyright (c) 2016, Daniel Wirtz All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of its author, nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..3eabd864f004984ea3d85dc6940043d9cd0e4c95 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/README.md" @@ -0,0 +1,13 @@ +@protobufjs/inquire +=================== +[![npm](https://img.shields.io/npm/v/@protobufjs/inquire.svg)](https://www.npmjs.com/package/@protobufjs/inquire) + +Requires a module only if available and hides the require call from bundlers. + +API +--- + +* **inquire(moduleName: `string`): `?Object`**
+ Requires a module only if available. + +**License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..1f5a865c9008f4d53113178a3523974845d14f74 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/index.d.ts" @@ -0,0 +1,9 @@ +export = inquire; + +/** + * Requires a module only if available. + * @memberof util + * @param {string} moduleName Module to require + * @returns {?Object} Required module if available and not empty, otherwise `null` + */ +declare function inquire(moduleName: string): Object; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..1a1f238a42ec1762893c12fe6f000e7986742014 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/index.js" @@ -0,0 +1,17 @@ +"use strict"; +module.exports = inquire; + +/** + * Requires a module only if available. + * @memberof util + * @param {string} moduleName Module to require + * @returns {?Object} Required module if available and not empty, otherwise `null` + */ +function inquire(moduleName) { + try { + var mod = eval("quire".replace(/^/,"re"))(moduleName); // eslint-disable-line no-eval + if (mod && (mod.length || Object.keys(mod).length)) + return mod; + } catch (e) {} // eslint-disable-line no-empty + return null; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..6a64d665b5d2239ab3a6a25073eeea7dc682ffb3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/package.json" @@ -0,0 +1,21 @@ +{ + "name": "@protobufjs/inquire", + "description": "Requires a module only if available and hides the require call from bundlers.", + "version": "1.1.0", + "author": "Daniel Wirtz ", + "repository": { + "type": "git", + "url": "https://github.com/dcodeIO/protobuf.js.git" + }, + "license": "BSD-3-Clause", + "main": "index.js", + "types": "index.d.ts", + "devDependencies": { + "istanbul": "^0.4.5", + "tape": "^4.6.3" + }, + "scripts": { + "test": "tape tests/*.js", + "coverage": "istanbul cover node_modules/tape/bin/tape tests/*.js" + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/tests/data/array.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/tests/data/array.js" new file mode 100644 index 0000000000000000000000000000000000000000..0847b28b2f3df29edac7b626b3a1dc3e902805bd --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/tests/data/array.js" @@ -0,0 +1 @@ +module.exports = [1]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/tests/data/emptyArray.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/tests/data/emptyArray.js" new file mode 100644 index 0000000000000000000000000000000000000000..e0a30c5dfa3e4f0dd8c1caea82e48913288af9b4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/tests/data/emptyArray.js" @@ -0,0 +1 @@ +module.exports = []; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/tests/data/emptyObject.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/tests/data/emptyObject.js" new file mode 100644 index 0000000000000000000000000000000000000000..f053ebf7976e3726d11f3c03fade2170903889a5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/tests/data/emptyObject.js" @@ -0,0 +1 @@ +module.exports = {}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/tests/data/object.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/tests/data/object.js" new file mode 100644 index 0000000000000000000000000000000000000000..3b75bcaca3e9a843a74376bddf667bcbc584002d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/tests/data/object.js" @@ -0,0 +1 @@ +module.exports = { a: 1 }; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/tests/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/tests/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..4a555ca2249227eef274cdbec73a4648b13cfcc9 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/inquire/tests/index.js" @@ -0,0 +1,20 @@ +var tape = require("tape"); + +var inquire = require(".."); + +tape.test("inquire", function(test) { + + test.equal(inquire("buffer").Buffer, Buffer, "should be able to require \"buffer\""); + + test.equal(inquire("%invalid"), null, "should not be able to require \"%invalid\""); + + test.equal(inquire("./tests/data/emptyObject"), null, "should return null when requiring a module exporting an empty object"); + + test.equal(inquire("./tests/data/emptyArray"), null, "should return null when requiring a module exporting an empty array"); + + test.same(inquire("./tests/data/object"), { a: 1 }, "should return the object if a non-empty object"); + + test.same(inquire("./tests/data/array"), [ 1 ], "should return the module if a non-empty array"); + + test.end(); +}); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/path/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/path/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..be2b397e3c3557c0f0eaf342a66df8414c9bc309 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/path/LICENSE" @@ -0,0 +1,26 @@ +Copyright (c) 2016, Daniel Wirtz All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of its author, nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/path/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/path/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..1c1a2ba2f5ed9c8077b3c1f96ec93784f8f94b10 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/path/README.md" @@ -0,0 +1,19 @@ +@protobufjs/path +================ +[![npm](https://img.shields.io/npm/v/@protobufjs/path.svg)](https://www.npmjs.com/package/@protobufjs/path) + +A minimal path module to resolve Unix, Windows and URL paths alike. + +API +--- + +* **path.isAbsolute(path: `string`): `boolean`**
+ Tests if the specified path is absolute. + +* **path.normalize(path: `string`): `string`**
+ Normalizes the specified path. + +* **path.resolve(originPath: `string`, includePath: `string`, [alreadyNormalized=false: `boolean`]): `string`**
+ Resolves the specified include path against the specified origin path. + +**License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/path/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/path/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..b664d81f63e861679d90a9953805c01f71cedc11 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/path/index.d.ts" @@ -0,0 +1,22 @@ +/** + * Tests if the specified path is absolute. + * @param {string} path Path to test + * @returns {boolean} `true` if path is absolute + */ +export function isAbsolute(path: string): boolean; + +/** + * Normalizes the specified path. + * @param {string} path Path to normalize + * @returns {string} Normalized path + */ +export function normalize(path: string): string; + +/** + * Resolves the specified include path against the specified origin path. + * @param {string} originPath Path to the origin file + * @param {string} includePath Include path relative to origin path + * @param {boolean} [alreadyNormalized=false] `true` if both paths are already known to be normalized + * @returns {string} Path to the include file + */ +export function resolve(originPath: string, includePath: string, alreadyNormalized?: boolean): string; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/path/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/path/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..7c7fb723e934e1bd103b8972e31cab920a83bcdc --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/path/index.js" @@ -0,0 +1,65 @@ +"use strict"; + +/** + * A minimal path module to resolve Unix, Windows and URL paths alike. + * @memberof util + * @namespace + */ +var path = exports; + +var isAbsolute = +/** + * Tests if the specified path is absolute. + * @param {string} path Path to test + * @returns {boolean} `true` if path is absolute + */ +path.isAbsolute = function isAbsolute(path) { + return /^(?:\/|\w+:)/.test(path); +}; + +var normalize = +/** + * Normalizes the specified path. + * @param {string} path Path to normalize + * @returns {string} Normalized path + */ +path.normalize = function normalize(path) { + path = path.replace(/\\/g, "/") + .replace(/\/{2,}/g, "/"); + var parts = path.split("/"), + absolute = isAbsolute(path), + prefix = ""; + if (absolute) + prefix = parts.shift() + "/"; + for (var i = 0; i < parts.length;) { + if (parts[i] === "..") { + if (i > 0 && parts[i - 1] !== "..") + parts.splice(--i, 2); + else if (absolute) + parts.splice(i, 1); + else + ++i; + } else if (parts[i] === ".") + parts.splice(i, 1); + else + ++i; + } + return prefix + parts.join("/"); +}; + +/** + * Resolves the specified include path against the specified origin path. + * @param {string} originPath Path to the origin file + * @param {string} includePath Include path relative to origin path + * @param {boolean} [alreadyNormalized=false] `true` if both paths are already known to be normalized + * @returns {string} Path to the include file + */ +path.resolve = function resolve(originPath, includePath, alreadyNormalized) { + if (!alreadyNormalized) + includePath = normalize(includePath); + if (isAbsolute(includePath)) + return includePath; + if (!alreadyNormalized) + originPath = normalize(originPath); + return (originPath = originPath.replace(/(?:\/|^)[^/]+$/, "")).length ? normalize(originPath + "/" + includePath) : includePath; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/path/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/path/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..2262e0118183ab4070f02f21e4a538ff415950ec --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/path/package.json" @@ -0,0 +1,21 @@ +{ + "name": "@protobufjs/path", + "description": "A minimal path module to resolve Unix, Windows and URL paths alike.", + "version": "1.1.2", + "author": "Daniel Wirtz ", + "repository": { + "type": "git", + "url": "https://github.com/dcodeIO/protobuf.js.git" + }, + "license": "BSD-3-Clause", + "main": "index.js", + "types": "index.d.ts", + "devDependencies": { + "istanbul": "^0.4.5", + "tape": "^4.6.3" + }, + "scripts": { + "test": "tape tests/*.js", + "coverage": "istanbul cover node_modules/tape/bin/tape tests/*.js" + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/path/tests/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/path/tests/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..9c23bc9697e3df3427db34a088ce25d48fb8daca --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/path/tests/index.js" @@ -0,0 +1,60 @@ +var tape = require("tape"); + +var path = require(".."); + +tape.test("path", function(test) { + + test.ok(path.isAbsolute("X:\\some\\path\\file.js"), "should identify absolute windows paths"); + test.ok(path.isAbsolute("/some/path/file.js"), "should identify absolute unix paths"); + + test.notOk(path.isAbsolute("some\\path\\file.js"), "should identify relative windows paths"); + test.notOk(path.isAbsolute("some/path/file.js"), "should identify relative unix paths"); + + var paths = [ + { + actual: "X:\\some\\..\\.\\path\\\\file.js", + normal: "X:/path/file.js", + resolve: { + origin: "X:/path/origin.js", + expected: "X:/path/file.js" + } + }, { + actual: "some\\..\\.\\path\\\\file.js", + normal: "path/file.js", + resolve: { + origin: "X:/path/origin.js", + expected: "X:/path/path/file.js" + } + }, { + actual: "/some/.././path//file.js", + normal: "/path/file.js", + resolve: { + origin: "/path/origin.js", + expected: "/path/file.js" + } + }, { + actual: "some/.././path//file.js", + normal: "path/file.js", + resolve: { + origin: "", + expected: "path/file.js" + } + }, { + actual: ".././path//file.js", + normal: "../path/file.js" + }, { + actual: "/.././path//file.js", + normal: "/path/file.js" + } + ]; + + paths.forEach(function(p) { + test.equal(path.normalize(p.actual), p.normal, "should normalize " + p.actual); + if (p.resolve) { + test.equal(path.resolve(p.resolve.origin, p.actual), p.resolve.expected, "should resolve " + p.actual); + test.equal(path.resolve(p.resolve.origin, p.normal, true), p.resolve.expected, "should resolve " + p.normal + " (already normalized)"); + } + }); + + test.end(); +}); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/.npmignore" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/.npmignore" new file mode 100644 index 0000000000000000000000000000000000000000..c3fc82ecb37ddb3f651f505720918bba3869dfc8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/.npmignore" @@ -0,0 +1,3 @@ +npm-debug.* +node_modules/ +coverage/ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..be2b397e3c3557c0f0eaf342a66df8414c9bc309 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/LICENSE" @@ -0,0 +1,26 @@ +Copyright (c) 2016, Daniel Wirtz All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of its author, nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..9fb0e9734d3024ccdcf63b2c6efce305d63a0212 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/README.md" @@ -0,0 +1,13 @@ +@protobufjs/pool +================ +[![npm](https://img.shields.io/npm/v/@protobufjs/pool.svg)](https://www.npmjs.com/package/@protobufjs/pool) + +A general purpose buffer pool. + +API +--- + +* **pool(alloc: `function(size: number): Uint8Array`, slice: `function(this: Uint8Array, start: number, end: number): Uint8Array`, [size=8192: `number`]): `function(size: number): Uint8Array`**
+ Creates a pooled allocator. + +**License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..23fe38c5a0e6442ab32819e0caa7c6553cbe868e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/index.d.ts" @@ -0,0 +1,32 @@ +export = pool; + +/** + * An allocator as used by {@link util.pool}. + * @typedef PoolAllocator + * @type {function} + * @param {number} size Buffer size + * @returns {Uint8Array} Buffer + */ +type PoolAllocator = (size: number) => Uint8Array; + +/** + * A slicer as used by {@link util.pool}. + * @typedef PoolSlicer + * @type {function} + * @param {number} start Start offset + * @param {number} end End offset + * @returns {Uint8Array} Buffer slice + * @this {Uint8Array} + */ +type PoolSlicer = (this: Uint8Array, start: number, end: number) => Uint8Array; + +/** + * A general purpose buffer pool. + * @memberof util + * @function + * @param {PoolAllocator} alloc Allocator + * @param {PoolSlicer} slice Slicer + * @param {number} [size=8192] Slab size + * @returns {PoolAllocator} Pooled allocator + */ +declare function pool(alloc: PoolAllocator, slice: PoolSlicer, size?: number): PoolAllocator; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..6c666f652b2921721545bb520bbe8af6d5805cb5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/index.js" @@ -0,0 +1,48 @@ +"use strict"; +module.exports = pool; + +/** + * An allocator as used by {@link util.pool}. + * @typedef PoolAllocator + * @type {function} + * @param {number} size Buffer size + * @returns {Uint8Array} Buffer + */ + +/** + * A slicer as used by {@link util.pool}. + * @typedef PoolSlicer + * @type {function} + * @param {number} start Start offset + * @param {number} end End offset + * @returns {Uint8Array} Buffer slice + * @this {Uint8Array} + */ + +/** + * A general purpose buffer pool. + * @memberof util + * @function + * @param {PoolAllocator} alloc Allocator + * @param {PoolSlicer} slice Slicer + * @param {number} [size=8192] Slab size + * @returns {PoolAllocator} Pooled allocator + */ +function pool(alloc, slice, size) { + var SIZE = size || 8192; + var MAX = SIZE >>> 1; + var slab = null; + var offset = SIZE; + return function pool_alloc(size) { + if (size < 1 || size > MAX) + return alloc(size); + if (offset + size > SIZE) { + slab = alloc(SIZE); + offset = 0; + } + var buf = slice.call(slab, offset, offset += size); + if (offset & 7) // align to 32 bit + offset = (offset | 7) + 1; + return buf; + }; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..f025e033ace242e79ef4e46e569c7eb0198cba7a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/package.json" @@ -0,0 +1,21 @@ +{ + "name": "@protobufjs/pool", + "description": "A general purpose buffer pool.", + "version": "1.1.0", + "author": "Daniel Wirtz ", + "repository": { + "type": "git", + "url": "https://github.com/dcodeIO/protobuf.js.git" + }, + "license": "BSD-3-Clause", + "main": "index.js", + "types": "index.d.ts", + "devDependencies": { + "istanbul": "^0.4.5", + "tape": "^4.6.3" + }, + "scripts": { + "test": "tape tests/*.js", + "coverage": "istanbul cover node_modules/tape/bin/tape tests/*.js" + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/tests/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/tests/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..5d1a921fe43bc40362c13edf8d513e3d6b5f1b2d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/pool/tests/index.js" @@ -0,0 +1,33 @@ +var tape = require("tape"); + +var pool = require(".."); + +if (typeof Uint8Array !== "undefined") +tape.test("pool", function(test) { + + var alloc = pool(function(size) { return new Uint8Array(size); }, Uint8Array.prototype.subarray); + + var buf1 = alloc(0); + test.equal(buf1.length, 0, "should allocate a buffer of size 0"); + + var buf2 = alloc(1); + test.equal(buf2.length, 1, "should allocate a buffer of size 1 (initializes slab)"); + + test.notEqual(buf2.buffer, buf1.buffer, "should not reference the same backing buffer if previous buffer had size 0"); + test.equal(buf2.byteOffset, 0, "should allocate at byteOffset 0 when using a new slab"); + + buf1 = alloc(1); + test.equal(buf1.buffer, buf2.buffer, "should reference the same backing buffer when allocating a chunk fitting into the slab"); + test.equal(buf1.byteOffset, 8, "should align slices to 32 bit and this allocate at byteOffset 8"); + + var buf3 = alloc(4097); + test.notEqual(buf3.buffer, buf2.buffer, "should not reference the same backing buffer when allocating a buffer larger than half the backing buffer's size"); + + buf2 = alloc(4096); + test.equal(buf2.buffer, buf1.buffer, "should reference the same backing buffer when allocating a buffer smaller or equal than half the backing buffer's size"); + + buf1 = alloc(4096); + test.notEqual(buf1.buffer, buf2.buffer, "should not reference the same backing buffer when the slab is exhausted (initializes new slab)"); + + test.end(); +}); \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/.npmignore" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/.npmignore" new file mode 100644 index 0000000000000000000000000000000000000000..c3fc82ecb37ddb3f651f505720918bba3869dfc8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/.npmignore" @@ -0,0 +1,3 @@ +npm-debug.* +node_modules/ +coverage/ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..be2b397e3c3557c0f0eaf342a66df8414c9bc309 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/LICENSE" @@ -0,0 +1,26 @@ +Copyright (c) 2016, Daniel Wirtz All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +* Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +* Neither the name of its author, nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..c936d9b041a30247ca611d2766a45334e2f33ebf --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/README.md" @@ -0,0 +1,20 @@ +@protobufjs/utf8 +================ +[![npm](https://img.shields.io/npm/v/@protobufjs/utf8.svg)](https://www.npmjs.com/package/@protobufjs/utf8) + +A minimal UTF8 implementation for number arrays. + +API +--- + +* **utf8.length(string: `string`): `number`**
+ Calculates the UTF8 byte length of a string. + +* **utf8.read(buffer: `Uint8Array`, start: `number`, end: `number`): `string`**
+ Reads UTF8 bytes as a string. + +* **utf8.write(string: `string`, buffer: `Uint8Array`, offset: `number`): `number`**
+ Writes a string as UTF8 bytes. + + +**License:** [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..2f1d0ab1cb6494fcc320c547ddd7c7d6c1413864 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/index.d.ts" @@ -0,0 +1,24 @@ +/** + * Calculates the UTF8 byte length of a string. + * @param {string} string String + * @returns {number} Byte length + */ +export function length(string: string): number; + +/** + * Reads UTF8 bytes as a string. + * @param {Uint8Array} buffer Source buffer + * @param {number} start Source start + * @param {number} end Source end + * @returns {string} String read + */ +export function read(buffer: Uint8Array, start: number, end: number): string; + +/** + * Writes a string as UTF8 bytes. + * @param {string} string Source string + * @param {Uint8Array} buffer Destination buffer + * @param {number} offset Destination offset + * @returns {number} Bytes written + */ +export function write(string: string, buffer: Uint8Array, offset: number): number; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..43c529812f98f557d895dbffdfb75af03af38145 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/index.js" @@ -0,0 +1,105 @@ +"use strict"; + +/** + * A minimal UTF8 implementation for number arrays. + * @memberof util + * @namespace + */ +var utf8 = exports; + +/** + * Calculates the UTF8 byte length of a string. + * @param {string} string String + * @returns {number} Byte length + */ +utf8.length = function utf8_length(string) { + var len = 0, + c = 0; + for (var i = 0; i < string.length; ++i) { + c = string.charCodeAt(i); + if (c < 128) + len += 1; + else if (c < 2048) + len += 2; + else if ((c & 0xFC00) === 0xD800 && (string.charCodeAt(i + 1) & 0xFC00) === 0xDC00) { + ++i; + len += 4; + } else + len += 3; + } + return len; +}; + +/** + * Reads UTF8 bytes as a string. + * @param {Uint8Array} buffer Source buffer + * @param {number} start Source start + * @param {number} end Source end + * @returns {string} String read + */ +utf8.read = function utf8_read(buffer, start, end) { + var len = end - start; + if (len < 1) + return ""; + var parts = null, + chunk = [], + i = 0, // char offset + t; // temporary + while (start < end) { + t = buffer[start++]; + if (t < 128) + chunk[i++] = t; + else if (t > 191 && t < 224) + chunk[i++] = (t & 31) << 6 | buffer[start++] & 63; + else if (t > 239 && t < 365) { + t = ((t & 7) << 18 | (buffer[start++] & 63) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63) - 0x10000; + chunk[i++] = 0xD800 + (t >> 10); + chunk[i++] = 0xDC00 + (t & 1023); + } else + chunk[i++] = (t & 15) << 12 | (buffer[start++] & 63) << 6 | buffer[start++] & 63; + if (i > 8191) { + (parts || (parts = [])).push(String.fromCharCode.apply(String, chunk)); + i = 0; + } + } + if (parts) { + if (i) + parts.push(String.fromCharCode.apply(String, chunk.slice(0, i))); + return parts.join(""); + } + return String.fromCharCode.apply(String, chunk.slice(0, i)); +}; + +/** + * Writes a string as UTF8 bytes. + * @param {string} string Source string + * @param {Uint8Array} buffer Destination buffer + * @param {number} offset Destination offset + * @returns {number} Bytes written + */ +utf8.write = function utf8_write(string, buffer, offset) { + var start = offset, + c1, // character 1 + c2; // character 2 + for (var i = 0; i < string.length; ++i) { + c1 = string.charCodeAt(i); + if (c1 < 128) { + buffer[offset++] = c1; + } else if (c1 < 2048) { + buffer[offset++] = c1 >> 6 | 192; + buffer[offset++] = c1 & 63 | 128; + } else if ((c1 & 0xFC00) === 0xD800 && ((c2 = string.charCodeAt(i + 1)) & 0xFC00) === 0xDC00) { + c1 = 0x10000 + ((c1 & 0x03FF) << 10) + (c2 & 0x03FF); + ++i; + buffer[offset++] = c1 >> 18 | 240; + buffer[offset++] = c1 >> 12 & 63 | 128; + buffer[offset++] = c1 >> 6 & 63 | 128; + buffer[offset++] = c1 & 63 | 128; + } else { + buffer[offset++] = c1 >> 12 | 224; + buffer[offset++] = c1 >> 6 & 63 | 128; + buffer[offset++] = c1 & 63 | 128; + } + } + return offset - start; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..80881c51ae137f37188d090b85130917af53d84c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/package.json" @@ -0,0 +1,21 @@ +{ + "name": "@protobufjs/utf8", + "description": "A minimal UTF8 implementation for number arrays.", + "version": "1.1.0", + "author": "Daniel Wirtz ", + "repository": { + "type": "git", + "url": "https://github.com/dcodeIO/protobuf.js.git" + }, + "license": "BSD-3-Clause", + "main": "index.js", + "types": "index.d.ts", + "devDependencies": { + "istanbul": "^0.4.5", + "tape": "^4.6.3" + }, + "scripts": { + "test": "tape tests/*.js", + "coverage": "istanbul cover node_modules/tape/bin/tape tests/*.js" + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/tests/data/utf8.txt" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/tests/data/utf8.txt" new file mode 100644 index 0000000000000000000000000000000000000000..580b4c4e624ce054b0ec3d99d6c85629676ea8cc --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/tests/data/utf8.txt" @@ -0,0 +1,216 @@ +UTF-8 encoded sample plain-text file +‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾ + +Markus Kuhn [ˈmaʳkʊs kuːn] — 2002-07-25 CC BY + + +The ASCII compatible UTF-8 encoding used in this plain-text file +is defined in Unicode, ISO 10646-1, and RFC 2279. + + +Using Unicode/UTF-8, you can write in emails and source code things such as + +Mathematics and sciences: + + ∮ E⋅da = Q, n → ∞, ∑ f(i) = ∏ g(i), ⎧⎡⎛┌─────┐⎞⎤⎫ + ⎪⎢⎜│a²+b³ ⎟⎥⎪ + ∀x∈ℝ: ⌈x⌉ = −⌊−x⌋, α ∧ ¬β = ¬(¬α ∨ β), ⎪⎢⎜│───── ⎟⎥⎪ + ⎪⎢⎜⎷ c₈ ⎟⎥⎪ + ℕ ⊆ ℕ₀ ⊂ ℤ ⊂ ℚ ⊂ ℝ ⊂ ℂ, ⎨⎢⎜ ⎟⎥⎬ + ⎪⎢⎜ ∞ ⎟⎥⎪ + ⊥ < a ≠ b ≡ c ≤ d ≪ ⊤ ⇒ (⟦A⟧ ⇔ ⟪B⟫), ⎪⎢⎜ ⎲ ⎟⎥⎪ + ⎪⎢⎜ ⎳aⁱ-bⁱ⎟⎥⎪ + 2H₂ + O₂ ⇌ 2H₂O, R = 4.7 kΩ, ⌀ 200 mm ⎩⎣⎝i=1 ⎠⎦⎭ + +Linguistics and dictionaries: + + ði ıntəˈnæʃənəl fəˈnɛtık əsoʊsiˈeıʃn + Y [ˈʏpsilɔn], Yen [jɛn], Yoga [ˈjoːgɑ] + +APL: + + ((V⍳V)=⍳⍴V)/V←,V ⌷←⍳→⍴∆∇⊃‾⍎⍕⌈ + +Nicer typography in plain text files: + + ╔══════════════════════════════════════════╗ + ║ ║ + ║ • ‘single’ and “double” quotes ║ + ║ ║ + ║ • Curly apostrophes: “We’ve been here” ║ + ║ ║ + ║ • Latin-1 apostrophe and accents: '´` ║ + ║ ║ + ║ • ‚deutsche‘ „Anführungszeichen“ ║ + ║ ║ + ║ • †, ‡, ‰, •, 3–4, —, −5/+5, ™, … ║ + ║ ║ + ║ • ASCII safety test: 1lI|, 0OD, 8B ║ + ║ ╭─────────╮ ║ + ║ • the euro symbol: │ 14.95 € │ ║ + ║ ╰─────────╯ ║ + ╚══════════════════════════════════════════╝ + +Combining characters: + + STARGΛ̊TE SG-1, a = v̇ = r̈, a⃑ ⊥ b⃑ + +Greek (in Polytonic): + + The Greek anthem: + + Σὲ γνωρίζω ἀπὸ τὴν κόψη + τοῦ σπαθιοῦ τὴν τρομερή, + σὲ γνωρίζω ἀπὸ τὴν ὄψη + ποὺ μὲ βία μετράει τὴ γῆ. + + ᾿Απ᾿ τὰ κόκκαλα βγαλμένη + τῶν ῾Ελλήνων τὰ ἱερά + καὶ σὰν πρῶτα ἀνδρειωμένη + χαῖρε, ὦ χαῖρε, ᾿Ελευθεριά! + + From a speech of Demosthenes in the 4th century BC: + + Οὐχὶ ταὐτὰ παρίσταταί μοι γιγνώσκειν, ὦ ἄνδρες ᾿Αθηναῖοι, + ὅταν τ᾿ εἰς τὰ πράγματα ἀποβλέψω καὶ ὅταν πρὸς τοὺς + λόγους οὓς ἀκούω· τοὺς μὲν γὰρ λόγους περὶ τοῦ + τιμωρήσασθαι Φίλιππον ὁρῶ γιγνομένους, τὰ δὲ πράγματ᾿ + εἰς τοῦτο προήκοντα, ὥσθ᾿ ὅπως μὴ πεισόμεθ᾿ αὐτοὶ + πρότερον κακῶς σκέψασθαι δέον. οὐδέν οὖν ἄλλο μοι δοκοῦσιν + οἱ τὰ τοιαῦτα λέγοντες ἢ τὴν ὑπόθεσιν, περὶ ἧς βουλεύεσθαι, + οὐχὶ τὴν οὖσαν παριστάντες ὑμῖν ἁμαρτάνειν. ἐγὼ δέ, ὅτι μέν + ποτ᾿ ἐξῆν τῇ πόλει καὶ τὰ αὑτῆς ἔχειν ἀσφαλῶς καὶ Φίλιππον + τιμωρήσασθαι, καὶ μάλ᾿ ἀκριβῶς οἶδα· ἐπ᾿ ἐμοῦ γάρ, οὐ πάλαι + γέγονεν ταῦτ᾿ ἀμφότερα· νῦν μέντοι πέπεισμαι τοῦθ᾿ ἱκανὸν + προλαβεῖν ἡμῖν εἶναι τὴν πρώτην, ὅπως τοὺς συμμάχους + σώσομεν. ἐὰν γὰρ τοῦτο βεβαίως ὑπάρξῃ, τότε καὶ περὶ τοῦ + τίνα τιμωρήσεταί τις καὶ ὃν τρόπον ἐξέσται σκοπεῖν· πρὶν δὲ + τὴν ἀρχὴν ὀρθῶς ὑποθέσθαι, μάταιον ἡγοῦμαι περὶ τῆς + τελευτῆς ὁντινοῦν ποιεῖσθαι λόγον. + + Δημοσθένους, Γ´ ᾿Ολυνθιακὸς + +Georgian: + + From a Unicode conference invitation: + + გთხოვთ ახლავე გაიაროთ რეგისტრაცია Unicode-ის მეათე საერთაშორისო + კონფერენციაზე დასასწრებად, რომელიც გაიმართება 10-12 მარტს, + ქ. მაინცში, გერმანიაში. კონფერენცია შეჰკრებს ერთად მსოფლიოს + ექსპერტებს ისეთ დარგებში როგორიცაა ინტერნეტი და Unicode-ი, + ინტერნაციონალიზაცია და ლოკალიზაცია, Unicode-ის გამოყენება + ოპერაციულ სისტემებსა, და გამოყენებით პროგრამებში, შრიფტებში, + ტექსტების დამუშავებასა და მრავალენოვან კომპიუტერულ სისტემებში. + +Russian: + + From a Unicode conference invitation: + + Зарегистрируйтесь сейчас на Десятую Международную Конференцию по + Unicode, которая состоится 10-12 марта 1997 года в Майнце в Германии. + Конференция соберет широкий круг экспертов по вопросам глобального + Интернета и Unicode, локализации и интернационализации, воплощению и + применению Unicode в различных операционных системах и программных + приложениях, шрифтах, верстке и многоязычных компьютерных системах. + +Thai (UCS Level 2): + + Excerpt from a poetry on The Romance of The Three Kingdoms (a Chinese + classic 'San Gua'): + + [----------------------------|------------------------] + ๏ แผ่นดินฮั่นเสื่อมโทรมแสนสังเวช พระปกเกศกองบู๊กู้ขึ้นใหม่ + สิบสองกษัตริย์ก่อนหน้าแลถัดไป สององค์ไซร้โง่เขลาเบาปัญญา + ทรงนับถือขันทีเป็นที่พึ่ง บ้านเมืองจึงวิปริตเป็นนักหนา + โฮจิ๋นเรียกทัพทั่วหัวเมืองมา หมายจะฆ่ามดชั่วตัวสำคัญ + เหมือนขับไสไล่เสือจากเคหา รับหมาป่าเข้ามาเลยอาสัญ + ฝ่ายอ้องอุ้นยุแยกให้แตกกัน ใช้สาวนั้นเป็นชนวนชื่นชวนใจ + พลันลิฉุยกุยกีกลับก่อเหตุ ช่างอาเพศจริงหนาฟ้าร้องไห้ + ต้องรบราฆ่าฟันจนบรรลัย ฤๅหาใครค้ำชูกู้บรรลังก์ ฯ + + (The above is a two-column text. If combining characters are handled + correctly, the lines of the second column should be aligned with the + | character above.) + +Ethiopian: + + Proverbs in the Amharic language: + + ሰማይ አይታረስ ንጉሥ አይከሰስ። + ብላ ካለኝ እንደአባቴ በቆመጠኝ። + ጌጥ ያለቤቱ ቁምጥና ነው። + ደሀ በሕልሙ ቅቤ ባይጠጣ ንጣት በገደለው። + የአፍ ወለምታ በቅቤ አይታሽም። + አይጥ በበላ ዳዋ ተመታ። + ሲተረጉሙ ይደረግሙ። + ቀስ በቀስ፥ ዕንቁላል በእግሩ ይሄዳል። + ድር ቢያብር አንበሳ ያስር። + ሰው እንደቤቱ እንጅ እንደ ጉረቤቱ አይተዳደርም። + እግዜር የከፈተውን ጉሮሮ ሳይዘጋው አይድርም። + የጎረቤት ሌባ፥ ቢያዩት ይስቅ ባያዩት ያጠልቅ። + ሥራ ከመፍታት ልጄን ላፋታት። + ዓባይ ማደሪያ የለው፥ ግንድ ይዞ ይዞራል። + የእስላም አገሩ መካ የአሞራ አገሩ ዋርካ። + ተንጋሎ ቢተፉ ተመልሶ ባፉ። + ወዳጅህ ማር ቢሆን ጨርስህ አትላሰው። + እግርህን በፍራሽህ ልክ ዘርጋ። + +Runes: + + ᚻᛖ ᚳᚹᚫᚦ ᚦᚫᛏ ᚻᛖ ᛒᚢᛞᛖ ᚩᚾ ᚦᚫᛗ ᛚᚪᚾᛞᛖ ᚾᚩᚱᚦᚹᛖᚪᚱᛞᚢᛗ ᚹᛁᚦ ᚦᚪ ᚹᛖᛥᚫ + + (Old English, which transcribed into Latin reads 'He cwaeth that he + bude thaem lande northweardum with tha Westsae.' and means 'He said + that he lived in the northern land near the Western Sea.') + +Braille: + + ⡌⠁⠧⠑ ⠼⠁⠒ ⡍⠜⠇⠑⠹⠰⠎ ⡣⠕⠌ + + ⡍⠜⠇⠑⠹ ⠺⠁⠎ ⠙⠑⠁⠙⠒ ⠞⠕ ⠃⠑⠛⠔ ⠺⠊⠹⠲ ⡹⠻⠑ ⠊⠎ ⠝⠕ ⠙⠳⠃⠞ + ⠱⠁⠞⠑⠧⠻ ⠁⠃⠳⠞ ⠹⠁⠞⠲ ⡹⠑ ⠗⠑⠛⠊⠌⠻ ⠕⠋ ⠙⠊⠎ ⠃⠥⠗⠊⠁⠇ ⠺⠁⠎ + ⠎⠊⠛⠝⠫ ⠃⠹ ⠹⠑ ⠊⠇⠻⠛⠹⠍⠁⠝⠂ ⠹⠑ ⠊⠇⠻⠅⠂ ⠹⠑ ⠥⠝⠙⠻⠞⠁⠅⠻⠂ + ⠁⠝⠙ ⠹⠑ ⠡⠊⠑⠋ ⠍⠳⠗⠝⠻⠲ ⡎⠊⠗⠕⠕⠛⠑ ⠎⠊⠛⠝⠫ ⠊⠞⠲ ⡁⠝⠙ + ⡎⠊⠗⠕⠕⠛⠑⠰⠎ ⠝⠁⠍⠑ ⠺⠁⠎ ⠛⠕⠕⠙ ⠥⠏⠕⠝ ⠰⡡⠁⠝⠛⠑⠂ ⠋⠕⠗ ⠁⠝⠹⠹⠔⠛ ⠙⠑ + ⠡⠕⠎⠑ ⠞⠕ ⠏⠥⠞ ⠙⠊⠎ ⠙⠁⠝⠙ ⠞⠕⠲ + + ⡕⠇⠙ ⡍⠜⠇⠑⠹ ⠺⠁⠎ ⠁⠎ ⠙⠑⠁⠙ ⠁⠎ ⠁ ⠙⠕⠕⠗⠤⠝⠁⠊⠇⠲ + + ⡍⠔⠙⠖ ⡊ ⠙⠕⠝⠰⠞ ⠍⠑⠁⠝ ⠞⠕ ⠎⠁⠹ ⠹⠁⠞ ⡊ ⠅⠝⠪⠂ ⠕⠋ ⠍⠹ + ⠪⠝ ⠅⠝⠪⠇⠫⠛⠑⠂ ⠱⠁⠞ ⠹⠻⠑ ⠊⠎ ⠏⠜⠞⠊⠊⠥⠇⠜⠇⠹ ⠙⠑⠁⠙ ⠁⠃⠳⠞ + ⠁ ⠙⠕⠕⠗⠤⠝⠁⠊⠇⠲ ⡊ ⠍⠊⠣⠞ ⠙⠁⠧⠑ ⠃⠑⠲ ⠔⠊⠇⠔⠫⠂ ⠍⠹⠎⠑⠇⠋⠂ ⠞⠕ + ⠗⠑⠛⠜⠙ ⠁ ⠊⠕⠋⠋⠔⠤⠝⠁⠊⠇ ⠁⠎ ⠹⠑ ⠙⠑⠁⠙⠑⠌ ⠏⠊⠑⠊⠑ ⠕⠋ ⠊⠗⠕⠝⠍⠕⠝⠛⠻⠹ + ⠔ ⠹⠑ ⠞⠗⠁⠙⠑⠲ ⡃⠥⠞ ⠹⠑ ⠺⠊⠎⠙⠕⠍ ⠕⠋ ⠳⠗ ⠁⠝⠊⠑⠌⠕⠗⠎ + ⠊⠎ ⠔ ⠹⠑ ⠎⠊⠍⠊⠇⠑⠆ ⠁⠝⠙ ⠍⠹ ⠥⠝⠙⠁⠇⠇⠪⠫ ⠙⠁⠝⠙⠎ + ⠩⠁⠇⠇ ⠝⠕⠞ ⠙⠊⠌⠥⠗⠃ ⠊⠞⠂ ⠕⠗ ⠹⠑ ⡊⠳⠝⠞⠗⠹⠰⠎ ⠙⠕⠝⠑ ⠋⠕⠗⠲ ⡹⠳ + ⠺⠊⠇⠇ ⠹⠻⠑⠋⠕⠗⠑ ⠏⠻⠍⠊⠞ ⠍⠑ ⠞⠕ ⠗⠑⠏⠑⠁⠞⠂ ⠑⠍⠏⠙⠁⠞⠊⠊⠁⠇⠇⠹⠂ ⠹⠁⠞ + ⡍⠜⠇⠑⠹ ⠺⠁⠎ ⠁⠎ ⠙⠑⠁⠙ ⠁⠎ ⠁ ⠙⠕⠕⠗⠤⠝⠁⠊⠇⠲ + + (The first couple of paragraphs of "A Christmas Carol" by Dickens) + +Compact font selection example text: + + ABCDEFGHIJKLMNOPQRSTUVWXYZ /0123456789 + abcdefghijklmnopqrstuvwxyz £©µÀÆÖÞßéöÿ + –—‘“”„†•…‰™œŠŸž€ ΑΒΓΔΩαβγδω АБВГДабвгд + ∀∂∈ℝ∧∪≡∞ ↑↗↨↻⇣ ┐┼╔╘░►☺♀ fi�⑀₂ἠḂӥẄɐː⍎אԱა + +Greetings in various languages: + + Hello world, Καλημέρα κόσμε, コンニチハ + +Box drawing alignment tests: █ + ▉ + ╔══╦══╗ ┌──┬──┐ ╭──┬──╮ ╭──┬──╮ ┏━━┳━━┓ ┎┒┏┑ ╷ ╻ ┏┯┓ ┌┰┐ ▊ ╱╲╱╲╳╳╳ + ║┌─╨─┐║ │╔═╧═╗│ │╒═╪═╕│ │╓─╁─╖│ ┃┌─╂─┐┃ ┗╃╄┙ ╶┼╴╺╋╸┠┼┨ ┝╋┥ ▋ ╲╱╲╱╳╳╳ + ║│╲ ╱│║ │║ ║│ ││ │ ││ │║ ┃ ║│ ┃│ ╿ │┃ ┍╅╆┓ ╵ ╹ ┗┷┛ └┸┘ ▌ ╱╲╱╲╳╳╳ + ╠╡ ╳ ╞╣ ├╢ ╟┤ ├┼─┼─┼┤ ├╫─╂─╫┤ ┣┿╾┼╼┿┫ ┕┛┖┚ ┌┄┄┐ ╎ ┏┅┅┓ ┋ ▍ ╲╱╲╱╳╳╳ + ║│╱ ╲│║ │║ ║│ ││ │ ││ │║ ┃ ║│ ┃│ ╽ │┃ ░░▒▒▓▓██ ┊ ┆ ╎ ╏ ┇ ┋ ▎ + ║└─╥─┘║ │╚═╤═╝│ │╘═╪═╛│ │╙─╀─╜│ ┃└─╂─┘┃ ░░▒▒▓▓██ ┊ ┆ ╎ ╏ ┇ ┋ ▏ + ╚══╩══╝ └──┴──┘ ╰──┴──╯ ╰──┴──╯ ┗━━┻━━┛ ▗▄▖▛▀▜ └╌╌┘ ╎ ┗╍╍┛ ┋ ▁▂▃▄▅▆▇█ + ▝▀▘▙▄▟ + +Surrogates: + +𠜎 𠜱 𠝹 𠱓 𠱸 𠲖 𠳏 𠳕 𠴕 𠵼 𠵿 𠸎 𠸏 𠹷 𠺝 𠺢 𠻗 𠻹 𠻺 𠼭 𠼮 𠽌 𠾴 𠾼 𠿪 𡁜 𡁯 𡁵 𡁶 𡁻 𡃁 +𡃉 𡇙 𢃇 𢞵 𢫕 𢭃 𢯊 𢱑 𢱕 𢳂 𢴈 𢵌 𢵧 𢺳 𣲷 𤓓 𤶸 𤷪 𥄫 𦉘 𦟌 𦧲 𦧺 𧨾 𨅝 𨈇 𨋢 𨳊 𨳍 𨳒 𩶘 diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/tests/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/tests/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..16d169e02eaba9fe1d486ca826d248ab309086f9 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@protobufjs/utf8/tests/index.js" @@ -0,0 +1,57 @@ +var tape = require("tape"); + +var utf8 = require(".."); + +var data = require("fs").readFileSync(require.resolve("./data/utf8.txt")), + dataStr = data.toString("utf8"); + +tape.test("utf8", function(test) { + + test.test(test.name + " - length", function(test) { + test.equal(utf8.length(""), 0, "should return a byte length of zero for an empty string"); + + test.equal(utf8.length(dataStr), Buffer.byteLength(dataStr), "should return the same byte length as node buffers"); + + test.end(); + }); + + test.test(test.name + " - read", function(test) { + var comp = utf8.read([], 0, 0); + test.equal(comp, "", "should decode an empty buffer to an empty string"); + + comp = utf8.read(data, 0, data.length); + test.equal(comp, data.toString("utf8"), "should decode to the same byte data as node buffers"); + + var longData = Buffer.concat([data, data, data, data]); + comp = utf8.read(longData, 0, longData.length); + test.equal(comp, longData.toString("utf8"), "should decode to the same byte data as node buffers (long)"); + + var chunkData = new Buffer(data.toString("utf8").substring(0, 8192)); + comp = utf8.read(chunkData, 0, chunkData.length); + test.equal(comp, chunkData.toString("utf8"), "should decode to the same byte data as node buffers (chunk size)"); + + test.end(); + }); + + test.test(test.name + " - write", function(test) { + var buf = new Buffer(0); + test.equal(utf8.write("", buf, 0), 0, "should encode an empty string to an empty buffer"); + + var len = utf8.length(dataStr); + buf = new Buffer(len); + test.equal(utf8.write(dataStr, buf, 0), len, "should encode to exactly " + len + " bytes"); + + test.equal(buf.length, data.length, "should encode to a buffer length equal to that of node buffers"); + + for (var i = 0; i < buf.length; ++i) { + if (buf[i] !== data[i]) { + test.fail("should encode to the same buffer data as node buffers (offset " + i + ")"); + return; + } + } + test.pass("should encode to the same buffer data as node buffers"); + + test.end(); + }); + +}); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/LICENSE.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/LICENSE.md" new file mode 100644 index 0000000000000000000000000000000000000000..0c6e658d59aa50f025dea98d5b3967436c48db80 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/LICENSE.md" @@ -0,0 +1,9 @@ +Copyright (c) 2019-2020, Sideway, Inc. and Project contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + * The names of any contributors may not be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..c26895fea68322d8e6aaacea75b0365451f18da7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/README.md" @@ -0,0 +1,14 @@ +# @sideway/address + +#### Validate email address and domain. + +**address** is part of the **joi** ecosystem. + +### Visit the [joi.dev](https://joi.dev) Developer Portal for tutorials, documentation, and support + +## Useful resources + +- [Documentation and API](https://joi.dev/module/address/) +- [Versions status](https://joi.dev/resources/status/#address) +- [Changelog](https://joi.dev/module/address/changelog/) +- [Project policies](https://joi.dev/policies/) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/decode.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/decode.js" new file mode 100644 index 0000000000000000000000000000000000000000..06a123694161d3913f82398d5eaac7730babfdd1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/decode.js" @@ -0,0 +1,120 @@ +'use strict'; + +// Adapted from: +// Copyright (c) 2017-2019 Justin Ridgewell, MIT Licensed, https://github.com/jridgewell/safe-decode-string-component +// Copyright (c) 2008-2009 Bjoern Hoehrmann , MIT Licensed, http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ + + +const internals = {}; + + +exports.decode = function (string) { + + let percentPos = string.indexOf('%'); + if (percentPos === -1) { + return string; + } + + let decoded = ''; + let last = 0; + let codepoint = 0; + let startOfOctets = percentPos; + let state = internals.utf8.accept; + + while (percentPos > -1 && + percentPos < string.length) { + + const high = internals.resolveHex(string[percentPos + 1], 4); + const low = internals.resolveHex(string[percentPos + 2], 0); + const byte = high | low; + const type = internals.utf8.data[byte]; + state = internals.utf8.data[256 + state + type]; + codepoint = (codepoint << 6) | (byte & internals.utf8.data[364 + type]); + + if (state === internals.utf8.accept) { + decoded += string.slice(last, startOfOctets); + decoded += codepoint <= 0xFFFF + ? String.fromCharCode(codepoint) + : String.fromCharCode(0xD7C0 + (codepoint >> 10), 0xDC00 + (codepoint & 0x3FF)); + + codepoint = 0; + last = percentPos + 3; + percentPos = string.indexOf('%', last); + startOfOctets = percentPos; + continue; + } + + if (state === internals.utf8.reject) { + return null; + } + + percentPos += 3; + + if (percentPos >= string.length || + string[percentPos] !== '%') { + + return null; + } + } + + return decoded + string.slice(last); +}; + + +internals.resolveHex = function (char, shift) { + + const i = internals.hex[char]; + return i === undefined ? 255 : i << shift; +}; + + +internals.hex = { + '0': 0, '1': 1, '2': 2, '3': 3, '4': 4, + '5': 5, '6': 6, '7': 7, '8': 8, '9': 9, + 'a': 10, 'A': 10, 'b': 11, 'B': 11, 'c': 12, + 'C': 12, 'd': 13, 'D': 13, 'e': 14, 'E': 14, + 'f': 15, 'F': 15 +}; + + +internals.utf8 = { + accept: 12, + reject: 0, + data: [ + + // Maps bytes to character to a transition + + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, + 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, + 4, 4, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, + 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, + 6, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 7, 8, 7, 7, + 10, 9, 9, 9, 11, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, + + // Maps a state to a new state when adding a transition + + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 12, 0, 0, 0, 0, 24, 36, 48, 60, 72, 84, 96, + 0, 12, 12, 12, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 24, 24, 24, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 24, 24, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 48, 48, 48, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 48, 48, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 48, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + + // Maps the current transition to a mask that needs to apply to the byte + + 0x7F, 0x3F, 0x3F, 0x3F, 0x00, 0x1F, 0x0F, 0x0F, 0x0F, 0x07, 0x07, 0x07 + ] +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/domain.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/domain.js" new file mode 100644 index 0000000000000000000000000000000000000000..5b2a84e0c8ea3517b839da5cb867dc68dec11cba --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/domain.js" @@ -0,0 +1,123 @@ +'use strict'; + +const Url = require('url'); + +const Errors = require('./errors'); + + +const internals = { + minDomainSegments: 2, + nonAsciiRx: /[^\x00-\x7f]/, + domainControlRx: /[\x00-\x20@\:\/\\#!\$&\'\(\)\*\+,;=\?]/, // Control + space + separators + tldSegmentRx: /^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/, + domainSegmentRx: /^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/, + URL: Url.URL || URL // $lab:coverage:ignore$ +}; + + +exports.analyze = function (domain, options = {}) { + + if (!domain) { // Catch null / undefined + return Errors.code('DOMAIN_NON_EMPTY_STRING'); + } + + if (typeof domain !== 'string') { + throw new Error('Invalid input: domain must be a string'); + } + + if (domain.length > 256) { + return Errors.code('DOMAIN_TOO_LONG'); + } + + const ascii = !internals.nonAsciiRx.test(domain); + if (!ascii) { + if (options.allowUnicode === false) { // Defaults to true + return Errors.code('DOMAIN_INVALID_UNICODE_CHARS'); + } + + domain = domain.normalize('NFC'); + } + + if (internals.domainControlRx.test(domain)) { + return Errors.code('DOMAIN_INVALID_CHARS'); + } + + domain = internals.punycode(domain); + + // https://tools.ietf.org/html/rfc1035 section 2.3.1 + + if (options.allowFullyQualified && + domain[domain.length - 1] === '.') { + + domain = domain.slice(0, -1); + } + + const minDomainSegments = options.minDomainSegments || internals.minDomainSegments; + + const segments = domain.split('.'); + if (segments.length < minDomainSegments) { + return Errors.code('DOMAIN_SEGMENTS_COUNT'); + } + + if (options.maxDomainSegments) { + if (segments.length > options.maxDomainSegments) { + return Errors.code('DOMAIN_SEGMENTS_COUNT_MAX'); + } + } + + const tlds = options.tlds; + if (tlds) { + const tld = segments[segments.length - 1].toLowerCase(); + if (tlds.deny && tlds.deny.has(tld) || + tlds.allow && !tlds.allow.has(tld)) { + + return Errors.code('DOMAIN_FORBIDDEN_TLDS'); + } + } + + for (let i = 0; i < segments.length; ++i) { + const segment = segments[i]; + + if (!segment.length) { + return Errors.code('DOMAIN_EMPTY_SEGMENT'); + } + + if (segment.length > 63) { + return Errors.code('DOMAIN_LONG_SEGMENT'); + } + + if (i < segments.length - 1) { + if (!internals.domainSegmentRx.test(segment)) { + return Errors.code('DOMAIN_INVALID_CHARS'); + } + } + else { + if (!internals.tldSegmentRx.test(segment)) { + return Errors.code('DOMAIN_INVALID_TLDS_CHARS'); + } + } + } + + return null; +}; + + +exports.isValid = function (domain, options) { + + return !exports.analyze(domain, options); +}; + + +internals.punycode = function (domain) { + + if (domain.includes('%')) { + domain = domain.replace(/%/g, '%25'); + } + + try { + return new internals.URL(`http://${domain}`).host; + } + catch (err) { + return domain; + } +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/email.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/email.js" new file mode 100644 index 0000000000000000000000000000000000000000..8343ab7e17bac36acd2111ee6488760cf7faf1a3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/email.js" @@ -0,0 +1,170 @@ +'use strict'; + +const Util = require('util'); + +const Domain = require('./domain'); +const Errors = require('./errors'); + + +const internals = { + nonAsciiRx: /[^\x00-\x7f]/, + encoder: new (Util.TextEncoder || TextEncoder)() // $lab:coverage:ignore$ +}; + + +exports.analyze = function (email, options) { + + return internals.email(email, options); +}; + + +exports.isValid = function (email, options) { + + return !internals.email(email, options); +}; + + +internals.email = function (email, options = {}) { + + if (typeof email !== 'string') { + throw new Error('Invalid input: email must be a string'); + } + + if (!email) { + return Errors.code('EMPTY_STRING'); + } + + // Unicode + + const ascii = !internals.nonAsciiRx.test(email); + if (!ascii) { + if (options.allowUnicode === false) { // Defaults to true + return Errors.code('FORBIDDEN_UNICODE'); + } + + email = email.normalize('NFC'); + } + + // Basic structure + + const parts = email.split('@'); + if (parts.length !== 2) { + return parts.length > 2 ? Errors.code('MULTIPLE_AT_CHAR') : Errors.code('MISSING_AT_CHAR'); + } + + const [local, domain] = parts; + + if (!local) { + return Errors.code('EMPTY_LOCAL'); + } + + if (!options.ignoreLength) { + if (email.length > 254) { // http://tools.ietf.org/html/rfc5321#section-4.5.3.1.3 + return Errors.code('ADDRESS_TOO_LONG'); + } + + if (internals.encoder.encode(local).length > 64) { // http://tools.ietf.org/html/rfc5321#section-4.5.3.1.1 + return Errors.code('LOCAL_TOO_LONG'); + } + } + + // Validate parts + + return internals.local(local, ascii) || Domain.analyze(domain, options); +}; + + +internals.local = function (local, ascii) { + + const segments = local.split('.'); + for (const segment of segments) { + if (!segment.length) { + return Errors.code('EMPTY_LOCAL_SEGMENT'); + } + + if (ascii) { + if (!internals.atextRx.test(segment)) { + return Errors.code('INVALID_LOCAL_CHARS'); + } + + continue; + } + + for (const char of segment) { + if (internals.atextRx.test(char)) { + continue; + } + + const binary = internals.binary(char); + if (!internals.atomRx.test(binary)) { + return Errors.code('INVALID_LOCAL_CHARS'); + } + } + } +}; + + +internals.binary = function (char) { + + return Array.from(internals.encoder.encode(char)).map((v) => String.fromCharCode(v)).join(''); +}; + + +/* + From RFC 5321: + + Mailbox = Local-part "@" ( Domain / address-literal ) + + Local-part = Dot-string / Quoted-string + Dot-string = Atom *("." Atom) + Atom = 1*atext + atext = ALPHA / DIGIT / "!" / "#" / "$" / "%" / "&" / "'" / "*" / "+" / "-" / "/" / "=" / "?" / "^" / "_" / "`" / "{" / "|" / "}" / "~" + + Domain = sub-domain *("." sub-domain) + sub-domain = Let-dig [Ldh-str] + Let-dig = ALPHA / DIGIT + Ldh-str = *( ALPHA / DIGIT / "-" ) Let-dig + + ALPHA = %x41-5A / %x61-7A ; a-z, A-Z + DIGIT = %x30-39 ; 0-9 + + From RFC 6531: + + sub-domain =/ U-label + atext =/ UTF8-non-ascii + + UTF8-non-ascii = UTF8-2 / UTF8-3 / UTF8-4 + + UTF8-2 = %xC2-DF UTF8-tail + UTF8-3 = %xE0 %xA0-BF UTF8-tail / + %xE1-EC 2( UTF8-tail ) / + %xED %x80-9F UTF8-tail / + %xEE-EF 2( UTF8-tail ) + UTF8-4 = %xF0 %x90-BF 2( UTF8-tail ) / + %xF1-F3 3( UTF8-tail ) / + %xF4 %x80-8F 2( UTF8-tail ) + + UTF8-tail = %x80-BF + + Note: The following are not supported: + + RFC 5321: address-literal, Quoted-string + RFC 5322: obs-*, CFWS +*/ + + +internals.atextRx = /^[\w!#\$%&'\*\+\-/=\?\^`\{\|\}~]+$/; // _ included in \w + + +internals.atomRx = new RegExp([ + + // %xC2-DF UTF8-tail + '(?:[\\xc2-\\xdf][\\x80-\\xbf])', + + // %xE0 %xA0-BF UTF8-tail %xE1-EC 2( UTF8-tail ) %xED %x80-9F UTF8-tail %xEE-EF 2( UTF8-tail ) + '(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})', + + // %xF0 %x90-BF 2( UTF8-tail ) %xF1-F3 3( UTF8-tail ) %xF4 %x80-8F 2( UTF8-tail ) + '(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})' + +].join('|')); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/errors.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/errors.js" new file mode 100644 index 0000000000000000000000000000000000000000..001dd1068b692cda3bc7d52b257e86485c36203f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/errors.js" @@ -0,0 +1,29 @@ +'use strict'; + +exports.codes = { + EMPTY_STRING: 'Address must be a non-empty string', + FORBIDDEN_UNICODE: 'Address contains forbidden Unicode characters', + MULTIPLE_AT_CHAR: 'Address cannot contain more than one @ character', + MISSING_AT_CHAR: 'Address must contain one @ character', + EMPTY_LOCAL: 'Address local part cannot be empty', + ADDRESS_TOO_LONG: 'Address too long', + LOCAL_TOO_LONG: 'Address local part too long', + EMPTY_LOCAL_SEGMENT: 'Address local part contains empty dot-separated segment', + INVALID_LOCAL_CHARS: 'Address local part contains invalid character', + DOMAIN_NON_EMPTY_STRING: 'Domain must be a non-empty string', + DOMAIN_TOO_LONG: 'Domain too long', + DOMAIN_INVALID_UNICODE_CHARS: 'Domain contains forbidden Unicode characters', + DOMAIN_INVALID_CHARS: 'Domain contains invalid character', + DOMAIN_INVALID_TLDS_CHARS: 'Domain contains invalid tld character', + DOMAIN_SEGMENTS_COUNT: 'Domain lacks the minimum required number of segments', + DOMAIN_SEGMENTS_COUNT_MAX: 'Domain contains too many segments', + DOMAIN_FORBIDDEN_TLDS: 'Domain uses forbidden TLD', + DOMAIN_EMPTY_SEGMENT: 'Domain contains empty dot-separated segment', + DOMAIN_LONG_SEGMENT: 'Domain contains dot-separated segment that is too long' +}; + + +exports.code = function (code) { + + return { code, error: exports.codes[code] }; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..a533d7371815fa3726899421929bfcc93e533506 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/index.d.ts" @@ -0,0 +1,255 @@ +/// + +import * as Hoek from '@hapi/hoek'; + + +export namespace domain { + + /** + * Analyzes a string to verify it is a valid domain name. + * + * @param domain - the domain name to validate. + * @param options - optional settings. + * + * @return - undefined when valid, otherwise an object with single error key with a string message value. + */ + function analyze(domain: string, options?: Options): Analysis | null; + + /** + * Analyzes a string to verify it is a valid domain name. + * + * @param domain - the domain name to validate. + * @param options - optional settings. + * + * @return - true when valid, otherwise false. + */ + function isValid(domain: string, options?: Options): boolean; + + interface Options { + + /** + * Determines whether Unicode characters are allowed. + * + * @default true + */ + readonly allowUnicode?: boolean; + + /** + * The minimum number of domain segments (e.g. `x.y.z` has 3 segments) required. + * + * @default 2 + */ + readonly minDomainSegments?: number; + + /** + * Top-level-domain options + * + * @default true + */ + readonly tlds?: Tlds.Allow | Tlds.Deny | boolean; + } + + namespace Tlds { + + interface Allow { + + readonly allow: Set | true; + } + + interface Deny { + + readonly deny: Set; + } + } +} + + +export namespace email { + + /** + * Analyzes a string to verify it is a valid email address. + * + * @param email - the email address to validate. + * @param options - optional settings. + * + * @return - undefined when valid, otherwise an object with single error key with a string message value. + */ + function analyze(email: string, options?: Options): Analysis | null; + + /** + * Analyzes a string to verify it is a valid email address. + * + * @param email - the email address to validate. + * @param options - optional settings. + * + * @return - true when valid, otherwise false. + */ + function isValid(email: string, options?: Options): boolean; + + interface Options extends domain.Options { + + /** + * Determines whether to ignore the standards maximum email length limit. + * + * @default false + */ + readonly ignoreLength?: boolean; + } +} + + +export interface Analysis { + + /** + * The reason validation failed. + */ + error: string; + + /** + * The error code. + */ + code: string; +} + + +export const errors: Record; + + +export namespace ip { + + /** + * Generates a regular expression used to validate IP addresses. + * + * @param options - optional settings. + * + * @returns an object with the regular expression and meta data. + */ + function regex(options?: Options): Expression; + + interface Options { + + /** + * The required CIDR mode. + * + * @default 'optional' + */ + readonly cidr?: Cidr; + + /** + * The allowed versions. + * + * @default ['ipv4', 'ipv6', 'ipvfuture'] + */ + readonly version?: Version | Version[]; + } + + type Cidr = 'optional' | 'required' | 'forbidden'; + type Version = 'ipv4' | 'ipv6' | 'ipvfuture'; + + interface Expression { + + /** + * The CIDR mode. + */ + cidr: Cidr; + + /** + * The raw regular expression string. + */ + raw: string; + + /** + * The regular expression. + */ + regex: RegExp; + + /** + * The array of versions allowed. + */ + versions: Version[]; + } +} + + +export namespace uri { + + /** + * Faster version of decodeURIComponent() that does not throw. + * + * @param string - the URL string to decode. + * + * @returns the decoded string or null if invalid. + */ + function decode(string: string): string | null; + + /** + * Generates a regular expression used to validate URI addresses. + * + * @param options - optional settings. + * + * @returns an object with the regular expression and meta data. + */ + function regex(options?: Options): Expression; + + type Options = Hoek.ts.XOR; + + namespace Options { + + interface Query { + + /** + * Allow the use of [] in query parameters. + * + * @default false + */ + readonly allowQuerySquareBrackets?: boolean; + } + + interface Relative extends Query { + + /** + * Requires the URI to be relative. + * + * @default false + */ + readonly relativeOnly?: boolean; + } + + interface Options extends Query { + + /** + * Allow relative URIs. + * + * @default false + */ + readonly allowRelative?: boolean; + + /** + * Capture domain segment ($1). + * + * @default false + */ + readonly domain?: boolean; + + /** + * The allowed URI schemes. + */ + readonly scheme?: Scheme | Scheme[]; + } + + type Scheme = string | RegExp; + } + + interface Expression { + + /** + * The raw regular expression string. + */ + raw: string; + + /** + * The regular expression. + */ + regex: RegExp; + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..b93a9c5c2cddf423f3e4cdcc768dcef9bc56fc94 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/index.js" @@ -0,0 +1,97 @@ +'use strict'; + +const Decode = require('./decode'); +const Domain = require('./domain'); +const Email = require('./email'); +const Errors = require('./errors'); +const Ip = require('./ip'); +const Tlds = require('./tlds'); +const Uri = require('./uri'); + + +const internals = { + defaultTlds: { allow: Tlds, deny: null } +}; + + +module.exports = { + errors: Errors.codes, + + domain: { + analyze(domain, options) { + + options = internals.options(options); + return Domain.analyze(domain, options); + }, + + isValid(domain, options) { + + options = internals.options(options); + return Domain.isValid(domain, options); + } + }, + email: { + analyze(email, options) { + + options = internals.options(options); + return Email.analyze(email, options); + }, + + isValid(email, options) { + + options = internals.options(options); + return Email.isValid(email, options); + } + }, + ip: { + regex: Ip.regex + }, + uri: { + decode: Decode.decode, + regex: Uri.regex + } +}; + + +internals.options = function (options) { + + if (!options) { + return { tlds: internals.defaultTlds }; + } + + if (options.tlds === false) { // Defaults to true + return options; + } + + if (!options.tlds || + options.tlds === true) { + + return Object.assign({}, options, { tlds: internals.defaultTlds }); + } + + if (typeof options.tlds !== 'object') { + throw new Error('Invalid options: tlds must be a boolean or an object'); + } + + if (options.tlds.deny) { + if (options.tlds.deny instanceof Set === false) { + throw new Error('Invalid options: tlds.deny must be a Set object'); + } + + if (options.tlds.allow) { + throw new Error('Invalid options: cannot specify both tlds.allow and tlds.deny lists'); + } + + return options; + } + + if (options.tlds.allow === true) { + return Object.assign({}, options, { tlds: internals.defaultTlds }); + } + + if (options.tlds.allow instanceof Set === false) { + throw new Error('Invalid options: tlds.allow must be a Set object or true'); + } + + return options; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/ip.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/ip.js" new file mode 100644 index 0000000000000000000000000000000000000000..541b72cc73d22fdd1ab49c60d79964f605e8be97 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/ip.js" @@ -0,0 +1,63 @@ +'use strict'; + +const Assert = require('@hapi/hoek/lib/assert'); + +const Uri = require('./uri'); + + +const internals = {}; + + +exports.regex = function (options = {}) { + + // CIDR + + Assert(options.cidr === undefined || typeof options.cidr === 'string', 'options.cidr must be a string'); + const cidr = options.cidr ? options.cidr.toLowerCase() : 'optional'; + Assert(['required', 'optional', 'forbidden'].includes(cidr), 'options.cidr must be one of required, optional, forbidden'); + + // Versions + + Assert(options.version === undefined || typeof options.version === 'string' || Array.isArray(options.version), 'options.version must be a string or an array of string'); + let versions = options.version || ['ipv4', 'ipv6', 'ipvfuture']; + if (!Array.isArray(versions)) { + versions = [versions]; + } + + Assert(versions.length >= 1, 'options.version must have at least 1 version specified'); + + for (let i = 0; i < versions.length; ++i) { + Assert(typeof versions[i] === 'string', 'options.version must only contain strings'); + versions[i] = versions[i].toLowerCase(); + Assert(['ipv4', 'ipv6', 'ipvfuture'].includes(versions[i]), 'options.version contains unknown version ' + versions[i] + ' - must be one of ipv4, ipv6, ipvfuture'); + } + + versions = Array.from(new Set(versions)); + + // Regex + + const parts = versions.map((version) => { + + // Forbidden + + if (cidr === 'forbidden') { + return Uri.ip[version]; + } + + // Required + + const cidrpart = `\\/${version === 'ipv4' ? Uri.ip.v4Cidr : Uri.ip.v6Cidr}`; + + if (cidr === 'required') { + return `${Uri.ip[version]}${cidrpart}`; + } + + // Optional + + return `${Uri.ip[version]}(?:${cidrpart})?`; + }); + + const raw = `(?:${parts.join('|')})`; + const regex = new RegExp(`^${raw}$`); + return { cidr, versions, regex, raw }; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/tlds.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/tlds.js" new file mode 100644 index 0000000000000000000000000000000000000000..fd6074467287eec582675bb1f860649e3e7c6a98 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/tlds.js" @@ -0,0 +1,1502 @@ +'use strict'; + +const internals = {}; + + +// http://data.iana.org/TLD/tlds-alpha-by-domain.txt +// # Version 2022032102, Last Updated Tue Mar 22 07:07:01 2022 UTC + + +internals.tlds = [ + 'AAA', + 'AARP', + 'ABARTH', + 'ABB', + 'ABBOTT', + 'ABBVIE', + 'ABC', + 'ABLE', + 'ABOGADO', + 'ABUDHABI', + 'AC', + 'ACADEMY', + 'ACCENTURE', + 'ACCOUNTANT', + 'ACCOUNTANTS', + 'ACO', + 'ACTOR', + 'AD', + 'ADAC', + 'ADS', + 'ADULT', + 'AE', + 'AEG', + 'AERO', + 'AETNA', + 'AF', + 'AFL', + 'AFRICA', + 'AG', + 'AGAKHAN', + 'AGENCY', + 'AI', + 'AIG', + 'AIRBUS', + 'AIRFORCE', + 'AIRTEL', + 'AKDN', + 'AL', + 'ALFAROMEO', + 'ALIBABA', + 'ALIPAY', + 'ALLFINANZ', + 'ALLSTATE', + 'ALLY', + 'ALSACE', + 'ALSTOM', + 'AM', + 'AMAZON', + 'AMERICANEXPRESS', + 'AMERICANFAMILY', + 'AMEX', + 'AMFAM', + 'AMICA', + 'AMSTERDAM', + 'ANALYTICS', + 'ANDROID', + 'ANQUAN', + 'ANZ', + 'AO', + 'AOL', + 'APARTMENTS', + 'APP', + 'APPLE', + 'AQ', + 'AQUARELLE', + 'AR', + 'ARAB', + 'ARAMCO', + 'ARCHI', + 'ARMY', + 'ARPA', + 'ART', + 'ARTE', + 'AS', + 'ASDA', + 'ASIA', + 'ASSOCIATES', + 'AT', + 'ATHLETA', + 'ATTORNEY', + 'AU', + 'AUCTION', + 'AUDI', + 'AUDIBLE', + 'AUDIO', + 'AUSPOST', + 'AUTHOR', + 'AUTO', + 'AUTOS', + 'AVIANCA', + 'AW', + 'AWS', + 'AX', + 'AXA', + 'AZ', + 'AZURE', + 'BA', + 'BABY', + 'BAIDU', + 'BANAMEX', + 'BANANAREPUBLIC', + 'BAND', + 'BANK', + 'BAR', + 'BARCELONA', + 'BARCLAYCARD', + 'BARCLAYS', + 'BAREFOOT', + 'BARGAINS', + 'BASEBALL', + 'BASKETBALL', + 'BAUHAUS', + 'BAYERN', + 'BB', + 'BBC', + 'BBT', + 'BBVA', + 'BCG', + 'BCN', + 'BD', + 'BE', + 'BEATS', + 'BEAUTY', + 'BEER', + 'BENTLEY', + 'BERLIN', + 'BEST', + 'BESTBUY', + 'BET', + 'BF', + 'BG', + 'BH', + 'BHARTI', + 'BI', + 'BIBLE', + 'BID', + 'BIKE', + 'BING', + 'BINGO', + 'BIO', + 'BIZ', + 'BJ', + 'BLACK', + 'BLACKFRIDAY', + 'BLOCKBUSTER', + 'BLOG', + 'BLOOMBERG', + 'BLUE', + 'BM', + 'BMS', + 'BMW', + 'BN', + 'BNPPARIBAS', + 'BO', + 'BOATS', + 'BOEHRINGER', + 'BOFA', + 'BOM', + 'BOND', + 'BOO', + 'BOOK', + 'BOOKING', + 'BOSCH', + 'BOSTIK', + 'BOSTON', + 'BOT', + 'BOUTIQUE', + 'BOX', + 'BR', + 'BRADESCO', + 'BRIDGESTONE', + 'BROADWAY', + 'BROKER', + 'BROTHER', + 'BRUSSELS', + 'BS', + 'BT', + 'BUGATTI', + 'BUILD', + 'BUILDERS', + 'BUSINESS', + 'BUY', + 'BUZZ', + 'BV', + 'BW', + 'BY', + 'BZ', + 'BZH', + 'CA', + 'CAB', + 'CAFE', + 'CAL', + 'CALL', + 'CALVINKLEIN', + 'CAM', + 'CAMERA', + 'CAMP', + 'CANCERRESEARCH', + 'CANON', + 'CAPETOWN', + 'CAPITAL', + 'CAPITALONE', + 'CAR', + 'CARAVAN', + 'CARDS', + 'CARE', + 'CAREER', + 'CAREERS', + 'CARS', + 'CASA', + 'CASE', + 'CASH', + 'CASINO', + 'CAT', + 'CATERING', + 'CATHOLIC', + 'CBA', + 'CBN', + 'CBRE', + 'CBS', + 'CC', + 'CD', + 'CENTER', + 'CEO', + 'CERN', + 'CF', + 'CFA', + 'CFD', + 'CG', + 'CH', + 'CHANEL', + 'CHANNEL', + 'CHARITY', + 'CHASE', + 'CHAT', + 'CHEAP', + 'CHINTAI', + 'CHRISTMAS', + 'CHROME', + 'CHURCH', + 'CI', + 'CIPRIANI', + 'CIRCLE', + 'CISCO', + 'CITADEL', + 'CITI', + 'CITIC', + 'CITY', + 'CITYEATS', + 'CK', + 'CL', + 'CLAIMS', + 'CLEANING', + 'CLICK', + 'CLINIC', + 'CLINIQUE', + 'CLOTHING', + 'CLOUD', + 'CLUB', + 'CLUBMED', + 'CM', + 'CN', + 'CO', + 'COACH', + 'CODES', + 'COFFEE', + 'COLLEGE', + 'COLOGNE', + 'COM', + 'COMCAST', + 'COMMBANK', + 'COMMUNITY', + 'COMPANY', + 'COMPARE', + 'COMPUTER', + 'COMSEC', + 'CONDOS', + 'CONSTRUCTION', + 'CONSULTING', + 'CONTACT', + 'CONTRACTORS', + 'COOKING', + 'COOKINGCHANNEL', + 'COOL', + 'COOP', + 'CORSICA', + 'COUNTRY', + 'COUPON', + 'COUPONS', + 'COURSES', + 'CPA', + 'CR', + 'CREDIT', + 'CREDITCARD', + 'CREDITUNION', + 'CRICKET', + 'CROWN', + 'CRS', + 'CRUISE', + 'CRUISES', + 'CU', + 'CUISINELLA', + 'CV', + 'CW', + 'CX', + 'CY', + 'CYMRU', + 'CYOU', + 'CZ', + 'DABUR', + 'DAD', + 'DANCE', + 'DATA', + 'DATE', + 'DATING', + 'DATSUN', + 'DAY', + 'DCLK', + 'DDS', + 'DE', + 'DEAL', + 'DEALER', + 'DEALS', + 'DEGREE', + 'DELIVERY', + 'DELL', + 'DELOITTE', + 'DELTA', + 'DEMOCRAT', + 'DENTAL', + 'DENTIST', + 'DESI', + 'DESIGN', + 'DEV', + 'DHL', + 'DIAMONDS', + 'DIET', + 'DIGITAL', + 'DIRECT', + 'DIRECTORY', + 'DISCOUNT', + 'DISCOVER', + 'DISH', + 'DIY', + 'DJ', + 'DK', + 'DM', + 'DNP', + 'DO', + 'DOCS', + 'DOCTOR', + 'DOG', + 'DOMAINS', + 'DOT', + 'DOWNLOAD', + 'DRIVE', + 'DTV', + 'DUBAI', + 'DUNLOP', + 'DUPONT', + 'DURBAN', + 'DVAG', + 'DVR', + 'DZ', + 'EARTH', + 'EAT', + 'EC', + 'ECO', + 'EDEKA', + 'EDU', + 'EDUCATION', + 'EE', + 'EG', + 'EMAIL', + 'EMERCK', + 'ENERGY', + 'ENGINEER', + 'ENGINEERING', + 'ENTERPRISES', + 'EPSON', + 'EQUIPMENT', + 'ER', + 'ERICSSON', + 'ERNI', + 'ES', + 'ESQ', + 'ESTATE', + 'ET', + 'ETISALAT', + 'EU', + 'EUROVISION', + 'EUS', + 'EVENTS', + 'EXCHANGE', + 'EXPERT', + 'EXPOSED', + 'EXPRESS', + 'EXTRASPACE', + 'FAGE', + 'FAIL', + 'FAIRWINDS', + 'FAITH', + 'FAMILY', + 'FAN', + 'FANS', + 'FARM', + 'FARMERS', + 'FASHION', + 'FAST', + 'FEDEX', + 'FEEDBACK', + 'FERRARI', + 'FERRERO', + 'FI', + 'FIAT', + 'FIDELITY', + 'FIDO', + 'FILM', + 'FINAL', + 'FINANCE', + 'FINANCIAL', + 'FIRE', + 'FIRESTONE', + 'FIRMDALE', + 'FISH', + 'FISHING', + 'FIT', + 'FITNESS', + 'FJ', + 'FK', + 'FLICKR', + 'FLIGHTS', + 'FLIR', + 'FLORIST', + 'FLOWERS', + 'FLY', + 'FM', + 'FO', + 'FOO', + 'FOOD', + 'FOODNETWORK', + 'FOOTBALL', + 'FORD', + 'FOREX', + 'FORSALE', + 'FORUM', + 'FOUNDATION', + 'FOX', + 'FR', + 'FREE', + 'FRESENIUS', + 'FRL', + 'FROGANS', + 'FRONTDOOR', + 'FRONTIER', + 'FTR', + 'FUJITSU', + 'FUN', + 'FUND', + 'FURNITURE', + 'FUTBOL', + 'FYI', + 'GA', + 'GAL', + 'GALLERY', + 'GALLO', + 'GALLUP', + 'GAME', + 'GAMES', + 'GAP', + 'GARDEN', + 'GAY', + 'GB', + 'GBIZ', + 'GD', + 'GDN', + 'GE', + 'GEA', + 'GENT', + 'GENTING', + 'GEORGE', + 'GF', + 'GG', + 'GGEE', + 'GH', + 'GI', + 'GIFT', + 'GIFTS', + 'GIVES', + 'GIVING', + 'GL', + 'GLASS', + 'GLE', + 'GLOBAL', + 'GLOBO', + 'GM', + 'GMAIL', + 'GMBH', + 'GMO', + 'GMX', + 'GN', + 'GODADDY', + 'GOLD', + 'GOLDPOINT', + 'GOLF', + 'GOO', + 'GOODYEAR', + 'GOOG', + 'GOOGLE', + 'GOP', + 'GOT', + 'GOV', + 'GP', + 'GQ', + 'GR', + 'GRAINGER', + 'GRAPHICS', + 'GRATIS', + 'GREEN', + 'GRIPE', + 'GROCERY', + 'GROUP', + 'GS', + 'GT', + 'GU', + 'GUARDIAN', + 'GUCCI', + 'GUGE', + 'GUIDE', + 'GUITARS', + 'GURU', + 'GW', + 'GY', + 'HAIR', + 'HAMBURG', + 'HANGOUT', + 'HAUS', + 'HBO', + 'HDFC', + 'HDFCBANK', + 'HEALTH', + 'HEALTHCARE', + 'HELP', + 'HELSINKI', + 'HERE', + 'HERMES', + 'HGTV', + 'HIPHOP', + 'HISAMITSU', + 'HITACHI', + 'HIV', + 'HK', + 'HKT', + 'HM', + 'HN', + 'HOCKEY', + 'HOLDINGS', + 'HOLIDAY', + 'HOMEDEPOT', + 'HOMEGOODS', + 'HOMES', + 'HOMESENSE', + 'HONDA', + 'HORSE', + 'HOSPITAL', + 'HOST', + 'HOSTING', + 'HOT', + 'HOTELES', + 'HOTELS', + 'HOTMAIL', + 'HOUSE', + 'HOW', + 'HR', + 'HSBC', + 'HT', + 'HU', + 'HUGHES', + 'HYATT', + 'HYUNDAI', + 'IBM', + 'ICBC', + 'ICE', + 'ICU', + 'ID', + 'IE', + 'IEEE', + 'IFM', + 'IKANO', + 'IL', + 'IM', + 'IMAMAT', + 'IMDB', + 'IMMO', + 'IMMOBILIEN', + 'IN', + 'INC', + 'INDUSTRIES', + 'INFINITI', + 'INFO', + 'ING', + 'INK', + 'INSTITUTE', + 'INSURANCE', + 'INSURE', + 'INT', + 'INTERNATIONAL', + 'INTUIT', + 'INVESTMENTS', + 'IO', + 'IPIRANGA', + 'IQ', + 'IR', + 'IRISH', + 'IS', + 'ISMAILI', + 'IST', + 'ISTANBUL', + 'IT', + 'ITAU', + 'ITV', + 'JAGUAR', + 'JAVA', + 'JCB', + 'JE', + 'JEEP', + 'JETZT', + 'JEWELRY', + 'JIO', + 'JLL', + 'JM', + 'JMP', + 'JNJ', + 'JO', + 'JOBS', + 'JOBURG', + 'JOT', + 'JOY', + 'JP', + 'JPMORGAN', + 'JPRS', + 'JUEGOS', + 'JUNIPER', + 'KAUFEN', + 'KDDI', + 'KE', + 'KERRYHOTELS', + 'KERRYLOGISTICS', + 'KERRYPROPERTIES', + 'KFH', + 'KG', + 'KH', + 'KI', + 'KIA', + 'KIM', + 'KINDER', + 'KINDLE', + 'KITCHEN', + 'KIWI', + 'KM', + 'KN', + 'KOELN', + 'KOMATSU', + 'KOSHER', + 'KP', + 'KPMG', + 'KPN', + 'KR', + 'KRD', + 'KRED', + 'KUOKGROUP', + 'KW', + 'KY', + 'KYOTO', + 'KZ', + 'LA', + 'LACAIXA', + 'LAMBORGHINI', + 'LAMER', + 'LANCASTER', + 'LANCIA', + 'LAND', + 'LANDROVER', + 'LANXESS', + 'LASALLE', + 'LAT', + 'LATINO', + 'LATROBE', + 'LAW', + 'LAWYER', + 'LB', + 'LC', + 'LDS', + 'LEASE', + 'LECLERC', + 'LEFRAK', + 'LEGAL', + 'LEGO', + 'LEXUS', + 'LGBT', + 'LI', + 'LIDL', + 'LIFE', + 'LIFEINSURANCE', + 'LIFESTYLE', + 'LIGHTING', + 'LIKE', + 'LILLY', + 'LIMITED', + 'LIMO', + 'LINCOLN', + 'LINDE', + 'LINK', + 'LIPSY', + 'LIVE', + 'LIVING', + 'LK', + 'LLC', + 'LLP', + 'LOAN', + 'LOANS', + 'LOCKER', + 'LOCUS', + 'LOFT', + 'LOL', + 'LONDON', + 'LOTTE', + 'LOTTO', + 'LOVE', + 'LPL', + 'LPLFINANCIAL', + 'LR', + 'LS', + 'LT', + 'LTD', + 'LTDA', + 'LU', + 'LUNDBECK', + 'LUXE', + 'LUXURY', + 'LV', + 'LY', + 'MA', + 'MACYS', + 'MADRID', + 'MAIF', + 'MAISON', + 'MAKEUP', + 'MAN', + 'MANAGEMENT', + 'MANGO', + 'MAP', + 'MARKET', + 'MARKETING', + 'MARKETS', + 'MARRIOTT', + 'MARSHALLS', + 'MASERATI', + 'MATTEL', + 'MBA', + 'MC', + 'MCKINSEY', + 'MD', + 'ME', + 'MED', + 'MEDIA', + 'MEET', + 'MELBOURNE', + 'MEME', + 'MEMORIAL', + 'MEN', + 'MENU', + 'MERCKMSD', + 'MG', + 'MH', + 'MIAMI', + 'MICROSOFT', + 'MIL', + 'MINI', + 'MINT', + 'MIT', + 'MITSUBISHI', + 'MK', + 'ML', + 'MLB', + 'MLS', + 'MM', + 'MMA', + 'MN', + 'MO', + 'MOBI', + 'MOBILE', + 'MODA', + 'MOE', + 'MOI', + 'MOM', + 'MONASH', + 'MONEY', + 'MONSTER', + 'MORMON', + 'MORTGAGE', + 'MOSCOW', + 'MOTO', + 'MOTORCYCLES', + 'MOV', + 'MOVIE', + 'MP', + 'MQ', + 'MR', + 'MS', + 'MSD', + 'MT', + 'MTN', + 'MTR', + 'MU', + 'MUSEUM', + 'MUSIC', + 'MUTUAL', + 'MV', + 'MW', + 'MX', + 'MY', + 'MZ', + 'NA', + 'NAB', + 'NAGOYA', + 'NAME', + 'NATURA', + 'NAVY', + 'NBA', + 'NC', + 'NE', + 'NEC', + 'NET', + 'NETBANK', + 'NETFLIX', + 'NETWORK', + 'NEUSTAR', + 'NEW', + 'NEWS', + 'NEXT', + 'NEXTDIRECT', + 'NEXUS', + 'NF', + 'NFL', + 'NG', + 'NGO', + 'NHK', + 'NI', + 'NICO', + 'NIKE', + 'NIKON', + 'NINJA', + 'NISSAN', + 'NISSAY', + 'NL', + 'NO', + 'NOKIA', + 'NORTHWESTERNMUTUAL', + 'NORTON', + 'NOW', + 'NOWRUZ', + 'NOWTV', + 'NP', + 'NR', + 'NRA', + 'NRW', + 'NTT', + 'NU', + 'NYC', + 'NZ', + 'OBI', + 'OBSERVER', + 'OFFICE', + 'OKINAWA', + 'OLAYAN', + 'OLAYANGROUP', + 'OLDNAVY', + 'OLLO', + 'OM', + 'OMEGA', + 'ONE', + 'ONG', + 'ONL', + 'ONLINE', + 'OOO', + 'OPEN', + 'ORACLE', + 'ORANGE', + 'ORG', + 'ORGANIC', + 'ORIGINS', + 'OSAKA', + 'OTSUKA', + 'OTT', + 'OVH', + 'PA', + 'PAGE', + 'PANASONIC', + 'PARIS', + 'PARS', + 'PARTNERS', + 'PARTS', + 'PARTY', + 'PASSAGENS', + 'PAY', + 'PCCW', + 'PE', + 'PET', + 'PF', + 'PFIZER', + 'PG', + 'PH', + 'PHARMACY', + 'PHD', + 'PHILIPS', + 'PHONE', + 'PHOTO', + 'PHOTOGRAPHY', + 'PHOTOS', + 'PHYSIO', + 'PICS', + 'PICTET', + 'PICTURES', + 'PID', + 'PIN', + 'PING', + 'PINK', + 'PIONEER', + 'PIZZA', + 'PK', + 'PL', + 'PLACE', + 'PLAY', + 'PLAYSTATION', + 'PLUMBING', + 'PLUS', + 'PM', + 'PN', + 'PNC', + 'POHL', + 'POKER', + 'POLITIE', + 'PORN', + 'POST', + 'PR', + 'PRAMERICA', + 'PRAXI', + 'PRESS', + 'PRIME', + 'PRO', + 'PROD', + 'PRODUCTIONS', + 'PROF', + 'PROGRESSIVE', + 'PROMO', + 'PROPERTIES', + 'PROPERTY', + 'PROTECTION', + 'PRU', + 'PRUDENTIAL', + 'PS', + 'PT', + 'PUB', + 'PW', + 'PWC', + 'PY', + 'QA', + 'QPON', + 'QUEBEC', + 'QUEST', + 'RACING', + 'RADIO', + 'RE', + 'READ', + 'REALESTATE', + 'REALTOR', + 'REALTY', + 'RECIPES', + 'RED', + 'REDSTONE', + 'REDUMBRELLA', + 'REHAB', + 'REISE', + 'REISEN', + 'REIT', + 'RELIANCE', + 'REN', + 'RENT', + 'RENTALS', + 'REPAIR', + 'REPORT', + 'REPUBLICAN', + 'REST', + 'RESTAURANT', + 'REVIEW', + 'REVIEWS', + 'REXROTH', + 'RICH', + 'RICHARDLI', + 'RICOH', + 'RIL', + 'RIO', + 'RIP', + 'RO', + 'ROCHER', + 'ROCKS', + 'RODEO', + 'ROGERS', + 'ROOM', + 'RS', + 'RSVP', + 'RU', + 'RUGBY', + 'RUHR', + 'RUN', + 'RW', + 'RWE', + 'RYUKYU', + 'SA', + 'SAARLAND', + 'SAFE', + 'SAFETY', + 'SAKURA', + 'SALE', + 'SALON', + 'SAMSCLUB', + 'SAMSUNG', + 'SANDVIK', + 'SANDVIKCOROMANT', + 'SANOFI', + 'SAP', + 'SARL', + 'SAS', + 'SAVE', + 'SAXO', + 'SB', + 'SBI', + 'SBS', + 'SC', + 'SCA', + 'SCB', + 'SCHAEFFLER', + 'SCHMIDT', + 'SCHOLARSHIPS', + 'SCHOOL', + 'SCHULE', + 'SCHWARZ', + 'SCIENCE', + 'SCOT', + 'SD', + 'SE', + 'SEARCH', + 'SEAT', + 'SECURE', + 'SECURITY', + 'SEEK', + 'SELECT', + 'SENER', + 'SERVICES', + 'SES', + 'SEVEN', + 'SEW', + 'SEX', + 'SEXY', + 'SFR', + 'SG', + 'SH', + 'SHANGRILA', + 'SHARP', + 'SHAW', + 'SHELL', + 'SHIA', + 'SHIKSHA', + 'SHOES', + 'SHOP', + 'SHOPPING', + 'SHOUJI', + 'SHOW', + 'SHOWTIME', + 'SI', + 'SILK', + 'SINA', + 'SINGLES', + 'SITE', + 'SJ', + 'SK', + 'SKI', + 'SKIN', + 'SKY', + 'SKYPE', + 'SL', + 'SLING', + 'SM', + 'SMART', + 'SMILE', + 'SN', + 'SNCF', + 'SO', + 'SOCCER', + 'SOCIAL', + 'SOFTBANK', + 'SOFTWARE', + 'SOHU', + 'SOLAR', + 'SOLUTIONS', + 'SONG', + 'SONY', + 'SOY', + 'SPA', + 'SPACE', + 'SPORT', + 'SPOT', + 'SR', + 'SRL', + 'SS', + 'ST', + 'STADA', + 'STAPLES', + 'STAR', + 'STATEBANK', + 'STATEFARM', + 'STC', + 'STCGROUP', + 'STOCKHOLM', + 'STORAGE', + 'STORE', + 'STREAM', + 'STUDIO', + 'STUDY', + 'STYLE', + 'SU', + 'SUCKS', + 'SUPPLIES', + 'SUPPLY', + 'SUPPORT', + 'SURF', + 'SURGERY', + 'SUZUKI', + 'SV', + 'SWATCH', + 'SWISS', + 'SX', + 'SY', + 'SYDNEY', + 'SYSTEMS', + 'SZ', + 'TAB', + 'TAIPEI', + 'TALK', + 'TAOBAO', + 'TARGET', + 'TATAMOTORS', + 'TATAR', + 'TATTOO', + 'TAX', + 'TAXI', + 'TC', + 'TCI', + 'TD', + 'TDK', + 'TEAM', + 'TECH', + 'TECHNOLOGY', + 'TEL', + 'TEMASEK', + 'TENNIS', + 'TEVA', + 'TF', + 'TG', + 'TH', + 'THD', + 'THEATER', + 'THEATRE', + 'TIAA', + 'TICKETS', + 'TIENDA', + 'TIFFANY', + 'TIPS', + 'TIRES', + 'TIROL', + 'TJ', + 'TJMAXX', + 'TJX', + 'TK', + 'TKMAXX', + 'TL', + 'TM', + 'TMALL', + 'TN', + 'TO', + 'TODAY', + 'TOKYO', + 'TOOLS', + 'TOP', + 'TORAY', + 'TOSHIBA', + 'TOTAL', + 'TOURS', + 'TOWN', + 'TOYOTA', + 'TOYS', + 'TR', + 'TRADE', + 'TRADING', + 'TRAINING', + 'TRAVEL', + 'TRAVELCHANNEL', + 'TRAVELERS', + 'TRAVELERSINSURANCE', + 'TRUST', + 'TRV', + 'TT', + 'TUBE', + 'TUI', + 'TUNES', + 'TUSHU', + 'TV', + 'TVS', + 'TW', + 'TZ', + 'UA', + 'UBANK', + 'UBS', + 'UG', + 'UK', + 'UNICOM', + 'UNIVERSITY', + 'UNO', + 'UOL', + 'UPS', + 'US', + 'UY', + 'UZ', + 'VA', + 'VACATIONS', + 'VANA', + 'VANGUARD', + 'VC', + 'VE', + 'VEGAS', + 'VENTURES', + 'VERISIGN', + 'VERSICHERUNG', + 'VET', + 'VG', + 'VI', + 'VIAJES', + 'VIDEO', + 'VIG', + 'VIKING', + 'VILLAS', + 'VIN', + 'VIP', + 'VIRGIN', + 'VISA', + 'VISION', + 'VIVA', + 'VIVO', + 'VLAANDEREN', + 'VN', + 'VODKA', + 'VOLKSWAGEN', + 'VOLVO', + 'VOTE', + 'VOTING', + 'VOTO', + 'VOYAGE', + 'VU', + 'VUELOS', + 'WALES', + 'WALMART', + 'WALTER', + 'WANG', + 'WANGGOU', + 'WATCH', + 'WATCHES', + 'WEATHER', + 'WEATHERCHANNEL', + 'WEBCAM', + 'WEBER', + 'WEBSITE', + 'WED', + 'WEDDING', + 'WEIBO', + 'WEIR', + 'WF', + 'WHOSWHO', + 'WIEN', + 'WIKI', + 'WILLIAMHILL', + 'WIN', + 'WINDOWS', + 'WINE', + 'WINNERS', + 'WME', + 'WOLTERSKLUWER', + 'WOODSIDE', + 'WORK', + 'WORKS', + 'WORLD', + 'WOW', + 'WS', + 'WTC', + 'WTF', + 'XBOX', + 'XEROX', + 'XFINITY', + 'XIHUAN', + 'XIN', + 'XN--11B4C3D', + 'XN--1CK2E1B', + 'XN--1QQW23A', + 'XN--2SCRJ9C', + 'XN--30RR7Y', + 'XN--3BST00M', + 'XN--3DS443G', + 'XN--3E0B707E', + 'XN--3HCRJ9C', + 'XN--3PXU8K', + 'XN--42C2D9A', + 'XN--45BR5CYL', + 'XN--45BRJ9C', + 'XN--45Q11C', + 'XN--4DBRK0CE', + 'XN--4GBRIM', + 'XN--54B7FTA0CC', + 'XN--55QW42G', + 'XN--55QX5D', + 'XN--5SU34J936BGSG', + 'XN--5TZM5G', + 'XN--6FRZ82G', + 'XN--6QQ986B3XL', + 'XN--80ADXHKS', + 'XN--80AO21A', + 'XN--80AQECDR1A', + 'XN--80ASEHDB', + 'XN--80ASWG', + 'XN--8Y0A063A', + 'XN--90A3AC', + 'XN--90AE', + 'XN--90AIS', + 'XN--9DBQ2A', + 'XN--9ET52U', + 'XN--9KRT00A', + 'XN--B4W605FERD', + 'XN--BCK1B9A5DRE4C', + 'XN--C1AVG', + 'XN--C2BR7G', + 'XN--CCK2B3B', + 'XN--CCKWCXETD', + 'XN--CG4BKI', + 'XN--CLCHC0EA0B2G2A9GCD', + 'XN--CZR694B', + 'XN--CZRS0T', + 'XN--CZRU2D', + 'XN--D1ACJ3B', + 'XN--D1ALF', + 'XN--E1A4C', + 'XN--ECKVDTC9D', + 'XN--EFVY88H', + 'XN--FCT429K', + 'XN--FHBEI', + 'XN--FIQ228C5HS', + 'XN--FIQ64B', + 'XN--FIQS8S', + 'XN--FIQZ9S', + 'XN--FJQ720A', + 'XN--FLW351E', + 'XN--FPCRJ9C3D', + 'XN--FZC2C9E2C', + 'XN--FZYS8D69UVGM', + 'XN--G2XX48C', + 'XN--GCKR3F0F', + 'XN--GECRJ9C', + 'XN--GK3AT1E', + 'XN--H2BREG3EVE', + 'XN--H2BRJ9C', + 'XN--H2BRJ9C8C', + 'XN--HXT814E', + 'XN--I1B6B1A6A2E', + 'XN--IMR513N', + 'XN--IO0A7I', + 'XN--J1AEF', + 'XN--J1AMH', + 'XN--J6W193G', + 'XN--JLQ480N2RG', + 'XN--JLQ61U9W7B', + 'XN--JVR189M', + 'XN--KCRX77D1X4A', + 'XN--KPRW13D', + 'XN--KPRY57D', + 'XN--KPUT3I', + 'XN--L1ACC', + 'XN--LGBBAT1AD8J', + 'XN--MGB9AWBF', + 'XN--MGBA3A3EJT', + 'XN--MGBA3A4F16A', + 'XN--MGBA7C0BBN0A', + 'XN--MGBAAKC7DVF', + 'XN--MGBAAM7A8H', + 'XN--MGBAB2BD', + 'XN--MGBAH1A3HJKRD', + 'XN--MGBAI9AZGQP6J', + 'XN--MGBAYH7GPA', + 'XN--MGBBH1A', + 'XN--MGBBH1A71E', + 'XN--MGBC0A9AZCG', + 'XN--MGBCA7DZDO', + 'XN--MGBCPQ6GPA1A', + 'XN--MGBERP4A5D4AR', + 'XN--MGBGU82A', + 'XN--MGBI4ECEXP', + 'XN--MGBPL2FH', + 'XN--MGBT3DHD', + 'XN--MGBTX2B', + 'XN--MGBX4CD0AB', + 'XN--MIX891F', + 'XN--MK1BU44C', + 'XN--MXTQ1M', + 'XN--NGBC5AZD', + 'XN--NGBE9E0A', + 'XN--NGBRX', + 'XN--NODE', + 'XN--NQV7F', + 'XN--NQV7FS00EMA', + 'XN--NYQY26A', + 'XN--O3CW4H', + 'XN--OGBPF8FL', + 'XN--OTU796D', + 'XN--P1ACF', + 'XN--P1AI', + 'XN--PGBS0DH', + 'XN--PSSY2U', + 'XN--Q7CE6A', + 'XN--Q9JYB4C', + 'XN--QCKA1PMC', + 'XN--QXA6A', + 'XN--QXAM', + 'XN--RHQV96G', + 'XN--ROVU88B', + 'XN--RVC1E0AM3E', + 'XN--S9BRJ9C', + 'XN--SES554G', + 'XN--T60B56A', + 'XN--TCKWE', + 'XN--TIQ49XQYJ', + 'XN--UNUP4Y', + 'XN--VERMGENSBERATER-CTB', + 'XN--VERMGENSBERATUNG-PWB', + 'XN--VHQUV', + 'XN--VUQ861B', + 'XN--W4R85EL8FHU5DNRA', + 'XN--W4RS40L', + 'XN--WGBH1C', + 'XN--WGBL6A', + 'XN--XHQ521B', + 'XN--XKC2AL3HYE2A', + 'XN--XKC2DL3A5EE0H', + 'XN--Y9A3AQ', + 'XN--YFRO4I67O', + 'XN--YGBI2AMMX', + 'XN--ZFR164B', + 'XXX', + 'XYZ', + 'YACHTS', + 'YAHOO', + 'YAMAXUN', + 'YANDEX', + 'YE', + 'YODOBASHI', + 'YOGA', + 'YOKOHAMA', + 'YOU', + 'YOUTUBE', + 'YT', + 'YUN', + 'ZA', + 'ZAPPOS', + 'ZARA', + 'ZERO', + 'ZIP', + 'ZM', + 'ZONE', + 'ZUERICH', + 'ZW' +]; + + +// Keep as upper-case to make updating from source easier + +module.exports = new Set(internals.tlds.map((tld) => tld.toLowerCase())); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/uri.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/uri.js" new file mode 100644 index 0000000000000000000000000000000000000000..ef9dc50c3cec686dedf3488ba05aece33be82dca --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/lib/uri.js" @@ -0,0 +1,207 @@ +'use strict'; + +const Assert = require('@hapi/hoek/lib/assert'); +const EscapeRegex = require('@hapi/hoek/lib/escapeRegex'); + + +const internals = {}; + + +internals.generate = function () { + + const rfc3986 = {}; + + const hexDigit = '\\dA-Fa-f'; // HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" + const hexDigitOnly = '[' + hexDigit + ']'; + + const unreserved = '\\w-\\.~'; // unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" + const subDelims = '!\\$&\'\\(\\)\\*\\+,;='; // sub-delims = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "=" + const pctEncoded = '%' + hexDigit; // pct-encoded = "%" HEXDIG HEXDIG + const pchar = unreserved + pctEncoded + subDelims + ':@'; // pchar = unreserved / pct-encoded / sub-delims / ":" / "@" + const pcharOnly = '[' + pchar + ']'; + const decOctect = '(?:0{0,2}\\d|0?[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])'; // dec-octet = DIGIT / %x31-39 DIGIT / "1" 2DIGIT / "2" %x30-34 DIGIT / "25" %x30-35 ; 0-9 / 10-99 / 100-199 / 200-249 / 250-255 + + rfc3986.ipv4address = '(?:' + decOctect + '\\.){3}' + decOctect; // IPv4address = dec-octet "." dec-octet "." dec-octet "." dec-octet + + /* + h16 = 1*4HEXDIG ; 16 bits of address represented in hexadecimal + ls32 = ( h16 ":" h16 ) / IPv4address ; least-significant 32 bits of address + IPv6address = 6( h16 ":" ) ls32 + / "::" 5( h16 ":" ) ls32 + / [ h16 ] "::" 4( h16 ":" ) ls32 + / [ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32 + / [ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32 + / [ *3( h16 ":" ) h16 ] "::" h16 ":" ls32 + / [ *4( h16 ":" ) h16 ] "::" ls32 + / [ *5( h16 ":" ) h16 ] "::" h16 + / [ *6( h16 ":" ) h16 ] "::" + */ + + const h16 = hexDigitOnly + '{1,4}'; + const ls32 = '(?:' + h16 + ':' + h16 + '|' + rfc3986.ipv4address + ')'; + const IPv6SixHex = '(?:' + h16 + ':){6}' + ls32; + const IPv6FiveHex = '::(?:' + h16 + ':){5}' + ls32; + const IPv6FourHex = '(?:' + h16 + ')?::(?:' + h16 + ':){4}' + ls32; + const IPv6ThreeHex = '(?:(?:' + h16 + ':){0,1}' + h16 + ')?::(?:' + h16 + ':){3}' + ls32; + const IPv6TwoHex = '(?:(?:' + h16 + ':){0,2}' + h16 + ')?::(?:' + h16 + ':){2}' + ls32; + const IPv6OneHex = '(?:(?:' + h16 + ':){0,3}' + h16 + ')?::' + h16 + ':' + ls32; + const IPv6NoneHex = '(?:(?:' + h16 + ':){0,4}' + h16 + ')?::' + ls32; + const IPv6NoneHex2 = '(?:(?:' + h16 + ':){0,5}' + h16 + ')?::' + h16; + const IPv6NoneHex3 = '(?:(?:' + h16 + ':){0,6}' + h16 + ')?::'; + + rfc3986.ipv4Cidr = '(?:\\d|[1-2]\\d|3[0-2])'; // IPv4 cidr = DIGIT / %x31-32 DIGIT / "3" %x30-32 ; 0-9 / 10-29 / 30-32 + rfc3986.ipv6Cidr = '(?:0{0,2}\\d|0?[1-9]\\d|1[01]\\d|12[0-8])'; // IPv6 cidr = DIGIT / %x31-39 DIGIT / "1" %x0-1 DIGIT / "12" %x0-8; 0-9 / 10-99 / 100-119 / 120-128 + rfc3986.ipv6address = '(?:' + IPv6SixHex + '|' + IPv6FiveHex + '|' + IPv6FourHex + '|' + IPv6ThreeHex + '|' + IPv6TwoHex + '|' + IPv6OneHex + '|' + IPv6NoneHex + '|' + IPv6NoneHex2 + '|' + IPv6NoneHex3 + ')'; + rfc3986.ipvFuture = 'v' + hexDigitOnly + '+\\.[' + unreserved + subDelims + ':]+'; // IPvFuture = "v" 1*HEXDIG "." 1*( unreserved / sub-delims / ":" ) + + rfc3986.scheme = '[a-zA-Z][a-zA-Z\\d+-\\.]*'; // scheme = ALPHA *( ALPHA / DIGIT / "+" / "-" / "." ) + rfc3986.schemeRegex = new RegExp(rfc3986.scheme); + + const userinfo = '[' + unreserved + pctEncoded + subDelims + ':]*'; // userinfo = *( unreserved / pct-encoded / sub-delims / ":" ) + const IPLiteral = '\\[(?:' + rfc3986.ipv6address + '|' + rfc3986.ipvFuture + ')\\]'; // IP-literal = "[" ( IPv6address / IPvFuture ) "]" + const regName = '[' + unreserved + pctEncoded + subDelims + ']{1,255}'; // reg-name = *( unreserved / pct-encoded / sub-delims ) + const host = '(?:' + IPLiteral + '|' + rfc3986.ipv4address + '|' + regName + ')'; // host = IP-literal / IPv4address / reg-name + const port = '\\d*'; // port = *DIGIT + const authority = '(?:' + userinfo + '@)?' + host + '(?::' + port + ')?'; // authority = [ userinfo "@" ] host [ ":" port ] + const authorityCapture = '(?:' + userinfo + '@)?(' + host + ')(?::' + port + ')?'; + + /* + segment = *pchar + segment-nz = 1*pchar + path = path-abempty ; begins with "/" '|' is empty + / path-absolute ; begins with "/" but not "//" + / path-noscheme ; begins with a non-colon segment + / path-rootless ; begins with a segment + / path-empty ; zero characters + path-abempty = *( "/" segment ) + path-absolute = "/" [ segment-nz *( "/" segment ) ] + path-rootless = segment-nz *( "/" segment ) + */ + + const segment = pcharOnly + '*'; + const segmentNz = pcharOnly + '+'; + const segmentNzNc = '[' + unreserved + pctEncoded + subDelims + '@' + ']+'; + const pathEmpty = ''; + const pathAbEmpty = '(?:\\/' + segment + ')*'; + const pathAbsolute = '\\/(?:' + segmentNz + pathAbEmpty + ')?'; + const pathRootless = segmentNz + pathAbEmpty; + const pathNoScheme = segmentNzNc + pathAbEmpty; + const pathAbNoAuthority = '(?:\\/\\/\\/' + segment + pathAbEmpty + ')'; // Used by file:/// + + // hier-part = "//" authority path + + rfc3986.hierPart = '(?:' + '(?:\\/\\/' + authority + pathAbEmpty + ')' + '|' + pathAbsolute + '|' + pathRootless + '|' + pathAbNoAuthority + ')'; + rfc3986.hierPartCapture = '(?:' + '(?:\\/\\/' + authorityCapture + pathAbEmpty + ')' + '|' + pathAbsolute + '|' + pathRootless + ')'; + + // relative-part = "//" authority path-abempty / path-absolute / path-noscheme / path-empty + + rfc3986.relativeRef = '(?:' + '(?:\\/\\/' + authority + pathAbEmpty + ')' + '|' + pathAbsolute + '|' + pathNoScheme + '|' + pathEmpty + ')'; + rfc3986.relativeRefCapture = '(?:' + '(?:\\/\\/' + authorityCapture + pathAbEmpty + ')' + '|' + pathAbsolute + '|' + pathNoScheme + '|' + pathEmpty + ')'; + + // query = *( pchar / "/" / "?" ) + // query = *( pchar / "[" / "]" / "/" / "?" ) + + rfc3986.query = '[' + pchar + '\\/\\?]*(?=#|$)'; //Finish matching either at the fragment part '|' end of the line. + rfc3986.queryWithSquareBrackets = '[' + pchar + '\\[\\]\\/\\?]*(?=#|$)'; + + // fragment = *( pchar / "/" / "?" ) + + rfc3986.fragment = '[' + pchar + '\\/\\?]*'; + + return rfc3986; +}; + +internals.rfc3986 = internals.generate(); + + +exports.ip = { + v4Cidr: internals.rfc3986.ipv4Cidr, + v6Cidr: internals.rfc3986.ipv6Cidr, + ipv4: internals.rfc3986.ipv4address, + ipv6: internals.rfc3986.ipv6address, + ipvfuture: internals.rfc3986.ipvFuture +}; + + +internals.createRegex = function (options) { + + const rfc = internals.rfc3986; + + // Construct expression + + const query = options.allowQuerySquareBrackets ? rfc.queryWithSquareBrackets : rfc.query; + const suffix = '(?:\\?' + query + ')?' + '(?:#' + rfc.fragment + ')?'; + + // relative-ref = relative-part [ "?" query ] [ "#" fragment ] + + const relative = options.domain ? rfc.relativeRefCapture : rfc.relativeRef; + + if (options.relativeOnly) { + return internals.wrap(relative + suffix); + } + + // Custom schemes + + let customScheme = ''; + if (options.scheme) { + Assert(options.scheme instanceof RegExp || typeof options.scheme === 'string' || Array.isArray(options.scheme), 'scheme must be a RegExp, String, or Array'); + + const schemes = [].concat(options.scheme); + Assert(schemes.length >= 1, 'scheme must have at least 1 scheme specified'); + + // Flatten the array into a string to be used to match the schemes + + const selections = []; + for (let i = 0; i < schemes.length; ++i) { + const scheme = schemes[i]; + Assert(scheme instanceof RegExp || typeof scheme === 'string', 'scheme at position ' + i + ' must be a RegExp or String'); + + if (scheme instanceof RegExp) { + selections.push(scheme.source.toString()); + } + else { + Assert(rfc.schemeRegex.test(scheme), 'scheme at position ' + i + ' must be a valid scheme'); + selections.push(EscapeRegex(scheme)); + } + } + + customScheme = selections.join('|'); + } + + // URI = scheme ":" hier-part [ "?" query ] [ "#" fragment ] + + const scheme = customScheme ? '(?:' + customScheme + ')' : rfc.scheme; + const absolute = '(?:' + scheme + ':' + (options.domain ? rfc.hierPartCapture : rfc.hierPart) + ')'; + const prefix = options.allowRelative ? '(?:' + absolute + '|' + relative + ')' : absolute; + return internals.wrap(prefix + suffix, customScheme); +}; + + +internals.wrap = function (raw, scheme) { + + raw = `(?=.)(?!https?\:/(?:$|[^/]))(?!https?\:///)(?!https?\:[^/])${raw}`; // Require at least one character and explicitly forbid 'http:/' or HTTP with empty domain + + return { + raw, + regex: new RegExp(`^${raw}$`), + scheme + }; +}; + + +internals.uriRegex = internals.createRegex({}); + + +exports.regex = function (options = {}) { + + if (options.scheme || + options.allowRelative || + options.relativeOnly || + options.allowQuerySquareBrackets || + options.domain) { + + return internals.createRegex(options); + } + + return internals.uriRegex; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..68633691c9c409a8330863122522b3d1dbacac32 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/address/package.json" @@ -0,0 +1,30 @@ +{ + "name": "@sideway/address", + "description": "Email address and domain validation", + "version": "4.1.4", + "repository": "git://github.com/sideway/address", + "main": "lib/index.js", + "types": "lib/index.d.ts", + "files": [ + "lib" + ], + "keywords": [ + "email", + "domain", + "address", + "validation" + ], + "dependencies": { + "@hapi/hoek": "^9.0.0" + }, + "devDependencies": { + "typescript": "4.0.x", + "@hapi/code": "8.x.x", + "@hapi/lab": "24.x.x" + }, + "scripts": { + "test": "lab -a @hapi/code -t 100 -L -Y", + "test-cov-html": "lab -a @hapi/code -t 100 -L -r html -o coverage.html" + }, + "license": "BSD-3-Clause" +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/formula/LICENSE.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/formula/LICENSE.md" new file mode 100644 index 0000000000000000000000000000000000000000..995d34079845d7018bae13eed27674152a57e192 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/formula/LICENSE.md" @@ -0,0 +1,9 @@ +Copyright (c) 2019-2020, Sideway. Inc, and project contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. + * The names of any contributors may not be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/formula/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/formula/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..13da3afaee29d245fa6bdd00726c7d5c199b0a8d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/formula/README.md" @@ -0,0 +1,18 @@ +# @sideway/formula + +#### Math and string formula parser. + +**formula** is part of the **joi** ecosystem. + +### Visit the [joi.dev](https://joi.dev) Developer Portal for tutorials, documentation, and support + +## Useful resources + +- [Documentation and API](https://joi.dev/module/formula/) +- [Version status](https://joi.dev/resources/status/#formula) (builds, dependencies, node versions, licenses, eol) +- [Changelog](https://joi.dev/module/formula/changelog/) +- [Project policies](https://joi.dev/policies/) + +## Acknowledgements + +Inspired by [**fparse**](https://github.com/bylexus/fparse), copyright 2012-2018 Alexander Schenkel diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/formula/lib/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/formula/lib/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..d78cc1d47b09cfe01f6a61fc178bda5fc093d1f5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/formula/lib/index.d.ts" @@ -0,0 +1,52 @@ +/** + * Formula parser + */ +export class Parser { + + /** + * Create a new formula parser. + * + * @param formula - the formula string to parse. + * @param options - optional settings. + */ + constructor(formula: string, options?: Options); + + /** + * Evaluate the formula. + * + * @param context - optional object with runtime formula context used to resolve variables. + * + * @returns the string or number outcome of the resolved formula. + */ + evaluate(context?: any): T; +} + + +export interface Options { + + /** + * A hash of key - value pairs used to convert constants to values. + */ + readonly constants?: Record; + + /** + * A regular expression used to validate token variables. + */ + readonly tokenRx?: RegExp; + + /** + * A variable resolver factory function. + */ + readonly reference?: Options.Reference; + + /** + * A hash of key-value pairs used to resolve formula functions. + */ + readonly functions?: Record; +} + + +export namespace Options { + + type Reference = (name: string) => (context: any) => any; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/formula/lib/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/formula/lib/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..871ab1bbbcf1c274e5a95d22b5407bba4c3ef634 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/formula/lib/index.js" @@ -0,0 +1,456 @@ +'use strict'; + +const internals = { + operators: ['!', '^', '*', '/', '%', '+', '-', '<', '<=', '>', '>=', '==', '!=', '&&', '||', '??'], + operatorCharacters: ['!', '^', '*', '/', '%', '+', '-', '<', '=', '>', '&', '|', '?'], + operatorsOrder: [['^'], ['*', '/', '%'], ['+', '-'], ['<', '<=', '>', '>='], ['==', '!='], ['&&'], ['||', '??']], + operatorsPrefix: ['!', 'n'], + + literals: { + '"': '"', + '`': '`', + '\'': '\'', + '[': ']' + }, + + numberRx: /^(?:[0-9]*\.?[0-9]*){1}$/, + tokenRx: /^[\w\$\#\.\@\:\{\}]+$/, + + symbol: Symbol('formula'), + settings: Symbol('settings') +}; + + +exports.Parser = class { + + constructor(string, options = {}) { + + if (!options[internals.settings] && + options.constants) { + + for (const constant in options.constants) { + const value = options.constants[constant]; + if (value !== null && + !['boolean', 'number', 'string'].includes(typeof value)) { + + throw new Error(`Formula constant ${constant} contains invalid ${typeof value} value type`); + } + } + } + + this.settings = options[internals.settings] ? options : Object.assign({ [internals.settings]: true, constants: {}, functions: {} }, options); + this.single = null; + + this._parts = null; + this._parse(string); + } + + _parse(string) { + + let parts = []; + let current = ''; + let parenthesis = 0; + let literal = false; + + const flush = (inner) => { + + if (parenthesis) { + throw new Error('Formula missing closing parenthesis'); + } + + const last = parts.length ? parts[parts.length - 1] : null; + + if (!literal && + !current && + !inner) { + + return; + } + + if (last && + last.type === 'reference' && + inner === ')') { // Function + + last.type = 'function'; + last.value = this._subFormula(current, last.value); + current = ''; + return; + } + + if (inner === ')') { // Segment + const sub = new exports.Parser(current, this.settings); + parts.push({ type: 'segment', value: sub }); + } + else if (literal) { + if (literal === ']') { // Reference + parts.push({ type: 'reference', value: current }); + current = ''; + return; + } + + parts.push({ type: 'literal', value: current }); // Literal + } + else if (internals.operatorCharacters.includes(current)) { // Operator + if (last && + last.type === 'operator' && + internals.operators.includes(last.value + current)) { // 2 characters operator + + last.value += current; + } + else { + parts.push({ type: 'operator', value: current }); + } + } + else if (current.match(internals.numberRx)) { // Number + parts.push({ type: 'constant', value: parseFloat(current) }); + } + else if (this.settings.constants[current] !== undefined) { // Constant + parts.push({ type: 'constant', value: this.settings.constants[current] }); + } + else { // Reference + if (!current.match(internals.tokenRx)) { + throw new Error(`Formula contains invalid token: ${current}`); + } + + parts.push({ type: 'reference', value: current }); + } + + current = ''; + }; + + for (const c of string) { + if (literal) { + if (c === literal) { + flush(); + literal = false; + } + else { + current += c; + } + } + else if (parenthesis) { + if (c === '(') { + current += c; + ++parenthesis; + } + else if (c === ')') { + --parenthesis; + if (!parenthesis) { + flush(c); + } + else { + current += c; + } + } + else { + current += c; + } + } + else if (c in internals.literals) { + literal = internals.literals[c]; + } + else if (c === '(') { + flush(); + ++parenthesis; + } + else if (internals.operatorCharacters.includes(c)) { + flush(); + current = c; + flush(); + } + else if (c !== ' ') { + current += c; + } + else { + flush(); + } + } + + flush(); + + // Replace prefix - to internal negative operator + + parts = parts.map((part, i) => { + + if (part.type !== 'operator' || + part.value !== '-' || + i && parts[i - 1].type !== 'operator') { + + return part; + } + + return { type: 'operator', value: 'n' }; + }); + + // Validate tokens order + + let operator = false; + for (const part of parts) { + if (part.type === 'operator') { + if (internals.operatorsPrefix.includes(part.value)) { + continue; + } + + if (!operator) { + throw new Error('Formula contains an operator in invalid position'); + } + + if (!internals.operators.includes(part.value)) { + throw new Error(`Formula contains an unknown operator ${part.value}`); + } + } + else if (operator) { + throw new Error('Formula missing expected operator'); + } + + operator = !operator; + } + + if (!operator) { + throw new Error('Formula contains invalid trailing operator'); + } + + // Identify single part + + if (parts.length === 1 && + ['reference', 'literal', 'constant'].includes(parts[0].type)) { + + this.single = { type: parts[0].type === 'reference' ? 'reference' : 'value', value: parts[0].value }; + } + + // Process parts + + this._parts = parts.map((part) => { + + // Operators + + if (part.type === 'operator') { + return internals.operatorsPrefix.includes(part.value) ? part : part.value; + } + + // Literals, constants, segments + + if (part.type !== 'reference') { + return part.value; + } + + // References + + if (this.settings.tokenRx && + !this.settings.tokenRx.test(part.value)) { + + throw new Error(`Formula contains invalid reference ${part.value}`); + } + + if (this.settings.reference) { + return this.settings.reference(part.value); + } + + return internals.reference(part.value); + }); + } + + _subFormula(string, name) { + + const method = this.settings.functions[name]; + if (typeof method !== 'function') { + throw new Error(`Formula contains unknown function ${name}`); + } + + let args = []; + if (string) { + let current = ''; + let parenthesis = 0; + let literal = false; + + const flush = () => { + + if (!current) { + throw new Error(`Formula contains function ${name} with invalid arguments ${string}`); + } + + args.push(current); + current = ''; + }; + + for (let i = 0; i < string.length; ++i) { + const c = string[i]; + if (literal) { + current += c; + if (c === literal) { + literal = false; + } + } + else if (c in internals.literals && + !parenthesis) { + + current += c; + literal = internals.literals[c]; + } + else if (c === ',' && + !parenthesis) { + + flush(); + } + else { + current += c; + if (c === '(') { + ++parenthesis; + } + else if (c === ')') { + --parenthesis; + } + } + } + + flush(); + } + + args = args.map((arg) => new exports.Parser(arg, this.settings)); + + return function (context) { + + const innerValues = []; + for (const arg of args) { + innerValues.push(arg.evaluate(context)); + } + + return method.call(context, ...innerValues); + }; + } + + evaluate(context) { + + const parts = this._parts.slice(); + + // Prefix operators + + for (let i = parts.length - 2; i >= 0; --i) { + const part = parts[i]; + if (part && + part.type === 'operator') { + + const current = parts[i + 1]; + parts.splice(i + 1, 1); + const value = internals.evaluate(current, context); + parts[i] = internals.single(part.value, value); + } + } + + // Left-right operators + + internals.operatorsOrder.forEach((set) => { + + for (let i = 1; i < parts.length - 1;) { + if (set.includes(parts[i])) { + const operator = parts[i]; + const left = internals.evaluate(parts[i - 1], context); + const right = internals.evaluate(parts[i + 1], context); + + parts.splice(i, 2); + const result = internals.calculate(operator, left, right); + parts[i - 1] = result === 0 ? 0 : result; // Convert -0 + } + else { + i += 2; + } + } + }); + + return internals.evaluate(parts[0], context); + } +}; + + +exports.Parser.prototype[internals.symbol] = true; + + +internals.reference = function (name) { + + return function (context) { + + return context && context[name] !== undefined ? context[name] : null; + }; +}; + + +internals.evaluate = function (part, context) { + + if (part === null) { + return null; + } + + if (typeof part === 'function') { + return part(context); + } + + if (part[internals.symbol]) { + return part.evaluate(context); + } + + return part; +}; + + +internals.single = function (operator, value) { + + if (operator === '!') { + return value ? false : true; + } + + // operator === 'n' + + const negative = -value; + if (negative === 0) { // Override -0 + return 0; + } + + return negative; +}; + + +internals.calculate = function (operator, left, right) { + + if (operator === '??') { + return internals.exists(left) ? left : right; + } + + if (typeof left === 'string' || + typeof right === 'string') { + + if (operator === '+') { + left = internals.exists(left) ? left : ''; + right = internals.exists(right) ? right : ''; + return left + right; + } + } + else { + switch (operator) { + case '^': return Math.pow(left, right); + case '*': return left * right; + case '/': return left / right; + case '%': return left % right; + case '+': return left + right; + case '-': return left - right; + } + } + + switch (operator) { + case '<': return left < right; + case '<=': return left <= right; + case '>': return left > right; + case '>=': return left >= right; + case '==': return left === right; + case '!=': return left !== right; + case '&&': return left && right; + case '||': return left || right; + } + + return null; +}; + + +internals.exists = function (value) { + + return value !== null && value !== undefined; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/formula/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/formula/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..7721f6114a8acf565c0bfe7ebabb39ab7302fa7f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/formula/package.json" @@ -0,0 +1,28 @@ +{ + "name": "@sideway/formula", + "description": "Math and string formula parser.", + "version": "3.0.0", + "repository": "git://github.com/sideway/formula", + "main": "lib/index.js", + "types": "lib/index.d.ts", + "keywords": [ + "formula", + "parser", + "math", + "string" + ], + "files": [ + "lib" + ], + "dependencies": {}, + "devDependencies": { + "typescript": "4.0.x", + "@hapi/code": "8.x.x", + "@hapi/lab": "24.x.x" + }, + "scripts": { + "test": "lab -a @hapi/code -t 100 -L -Y", + "test-cov-html": "lab -a @hapi/code -t 100 -L -r html -o coverage.html" + }, + "license": "BSD-3-Clause" +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/pinpoint/LICENSE.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/pinpoint/LICENSE.md" new file mode 100644 index 0000000000000000000000000000000000000000..f0dfb1717aea9c9fb801d7d7280000807ef884e9 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/pinpoint/LICENSE.md" @@ -0,0 +1,10 @@ +Copyright (c) 2019-2020, Sideway. Inc, and project contributors + +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: +* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. +* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. +* The names of any contributors may not be used to endorse or promote products derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS OFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/pinpoint/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/pinpoint/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..2996c82116df14e2411a39ea6d2ed6800e23854a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/pinpoint/README.md" @@ -0,0 +1,14 @@ +# @sideway/pinpoint + +#### Return the filename and line number of the calling function. + +**pinpoint** is part of the **joi** ecosystem. + +### Visit the [joi.dev](https://joi.dev) Developer Portal for tutorials, documentation, and support + +## Useful resources + +- [Documentation and API](https://joi.dev/module/pinpoint/) +- [Version status](https://joi.dev/resources/status/#pinpoint) (builds, dependencies, node versions, licenses, eol) +- [Changelog](https://joi.dev/module/pinpoint/changelog/) +- [Project policies](https://joi.dev/policies/) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/pinpoint/lib/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/pinpoint/lib/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..38fadaa3f74c52059a1364a43e9ff11c673a4c85 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/pinpoint/lib/index.d.ts" @@ -0,0 +1,24 @@ +/** +Returns the filename and line number of the caller in the call stack + +@param depth - The distance from the location function in the call stack. Defaults to 1 (caller). + +@return an object with the filename and line number. +*/ +export function location(depth?: number): location.Location; + +declare namespace location { + + interface Location { + + /** + The fully qualified filename. + */ + readonly filename: string; + + /** + The file line number. + */ + readonly line: number; + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/pinpoint/lib/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/pinpoint/lib/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..482055097c32211998f1c66dcaa7a9eacc988e14 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/pinpoint/lib/index.js" @@ -0,0 +1,21 @@ +'use strict'; + +const internals = {}; + + +exports.location = function (depth = 0) { + + const orig = Error.prepareStackTrace; + Error.prepareStackTrace = (ignore, stack) => stack; + + const capture = {}; + Error.captureStackTrace(capture, this); + const line = capture.stack[depth + 1]; + + Error.prepareStackTrace = orig; + + return { + filename: line.getFileName(), + line: line.getLineNumber() + }; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/pinpoint/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/pinpoint/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..b2f09a62037b2ebc436cc6605bc25c5f75882e45 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sideway/pinpoint/package.json" @@ -0,0 +1,25 @@ +{ + "name": "@sideway/pinpoint", + "description": "Return the filename and line number of the calling function", + "version": "2.0.0", + "repository": "git://github.com/sideway/pinpoint", + "main": "lib/index.js", + "types": "lib/index.d.ts", + "files": [ + "lib" + ], + "keywords": [ + "utilities" + ], + "dependencies": {}, + "devDependencies": { + "typescript": "4.0.x", + "@hapi/code": "8.x.x", + "@hapi/lab": "24.x.x" + }, + "scripts": { + "test": "lab -a @hapi/code -t 100 -L -Y", + "test-cov-html": "lab -a @hapi/code -t 100 -L -r html -o coverage.html" + }, + "license": "BSD-3-Clause" +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/example.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/example.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/example.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/example.js" new file mode 100644 index 0000000000000000000000000000000000000000..4d575fc1a9f28c686ccce0ab95c57dba27cb5539 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/example.js" @@ -0,0 +1,3 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +//# sourceMappingURL=example.js.map \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/example.js.map" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/example.js.map" new file mode 100644 index 0000000000000000000000000000000000000000..1677c0dd42854e7a3d93c855f813a41171987b97 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/example.js.map" @@ -0,0 +1 @@ +{"version":3,"file":"example.js","sourceRoot":"","sources":["../example.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..fc54f3aa8cf224f2874d18ea84af4bbe2d1b40cd --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/index.d.ts" @@ -0,0 +1,95 @@ +/// +export declare const enum TypeName { + null = "null", + boolean = "boolean", + undefined = "undefined", + string = "string", + number = "number", + symbol = "symbol", + Function = "Function", + Array = "Array", + Buffer = "Buffer", + Object = "Object", + RegExp = "RegExp", + Date = "Date", + Error = "Error", + Map = "Map", + Set = "Set", + WeakMap = "WeakMap", + WeakSet = "WeakSet", + Int8Array = "Int8Array", + Uint8Array = "Uint8Array", + Uint8ClampedArray = "Uint8ClampedArray", + Int16Array = "Int16Array", + Uint16Array = "Uint16Array", + Int32Array = "Int32Array", + Uint32Array = "Uint32Array", + Float32Array = "Float32Array", + Float64Array = "Float64Array", + ArrayBuffer = "ArrayBuffer", + SharedArrayBuffer = "SharedArrayBuffer", + DataView = "DataView", + Promise = "Promise", +} +declare function is(value: any): TypeName; +declare namespace is { + const undefined: (value: any) => boolean; + const string: (value: any) => boolean; + const number: (value: any) => boolean; + const function_: (value: any) => boolean; + const null_: (value: any) => boolean; + const class_: (value: any) => any; + const boolean: (value: any) => boolean; + const symbol: (value: any) => boolean; + const array: (arg: any) => arg is any[]; + const buffer: (obj: any) => obj is Buffer; + const nullOrUndefined: (value: any) => boolean; + const object: (value: any) => boolean; + const iterable: (value: any) => boolean; + const generator: (value: any) => boolean; + const nativePromise: (value: any) => boolean; + const promise: (value: any) => boolean; + const generatorFunction: (value: any) => boolean; + const asyncFunction: (value: any) => boolean; + const boundFunction: (value: any) => boolean; + const regExp: (value: any) => boolean; + const date: (value: any) => boolean; + const error: (value: any) => boolean; + const map: (value: any) => boolean; + const set: (value: any) => boolean; + const weakMap: (value: any) => boolean; + const weakSet: (value: any) => boolean; + const int8Array: (value: any) => boolean; + const uint8Array: (value: any) => boolean; + const uint8ClampedArray: (value: any) => boolean; + const int16Array: (value: any) => boolean; + const uint16Array: (value: any) => boolean; + const int32Array: (value: any) => boolean; + const uint32Array: (value: any) => boolean; + const float32Array: (value: any) => boolean; + const float64Array: (value: any) => boolean; + const arrayBuffer: (value: any) => boolean; + const sharedArrayBuffer: (value: any) => boolean; + const dataView: (value: any) => boolean; + const directInstanceOf: (instance: any, klass: any) => boolean; + const truthy: (value: any) => boolean; + const falsy: (value: any) => boolean; + const nan: (value: any) => boolean; + const primitive: (value: any) => boolean; + const integer: (value: any) => boolean; + const safeInteger: (value: any) => boolean; + const plainObject: (value: any) => boolean; + const typedArray: (value: any) => boolean; + const arrayLike: (value: any) => boolean; + const inRange: (value: number, range: number | number[]) => boolean; + const domElement: (value: any) => boolean; + const nodeStream: (value: any) => boolean; + const infinite: (value: any) => boolean; + const even: (rem: number) => boolean; + const odd: (rem: number) => boolean; + const empty: (value: any) => boolean; + const emptyOrWhitespace: (value: any) => boolean; + function any(...predicate: any[]): any; + function all(...predicate: any[]): any; +} +export default is; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..d613b67a8a5807deabef2d12ad3192d1cb84abe6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/index.js" @@ -0,0 +1,215 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const util = require("util"); +const toString = Object.prototype.toString; +const isOfType = (type) => (value) => typeof value === type; // tslint:disable-line:strict-type-predicates +const getObjectType = (value) => { + const objectName = toString.call(value).slice(8, -1); + if (objectName) { + return objectName; + } + return null; +}; +const isObjectOfType = (typeName) => (value) => { + return getObjectType(value) === typeName; +}; +function is(value) { + if (value === null) { + return "null" /* null */; + } + if (value === true || value === false) { + return "boolean" /* boolean */; + } + const type = typeof value; + if (type === 'undefined') { + return "undefined" /* undefined */; + } + if (type === 'string') { + return "string" /* string */; + } + if (type === 'number') { + return "number" /* number */; + } + if (type === 'symbol') { + return "symbol" /* symbol */; + } + if (is.function_(value)) { + return "Function" /* Function */; + } + if (Array.isArray(value)) { + return "Array" /* Array */; + } + if (Buffer.isBuffer(value)) { + return "Buffer" /* Buffer */; + } + const tagType = getObjectType(value); + if (tagType) { + return tagType; + } + if (value instanceof String || value instanceof Boolean || value instanceof Number) { + throw new TypeError('Please don\'t use object wrappers for primitive types'); + } + return "Object" /* Object */; +} +(function (is) { + const isObject = (value) => typeof value === 'object'; + // tslint:disable:variable-name + is.undefined = isOfType('undefined'); + is.string = isOfType('string'); + is.number = isOfType('number'); + is.function_ = isOfType('function'); + is.null_ = (value) => value === null; + is.class_ = (value) => is.function_(value) && value.toString().startsWith('class '); + is.boolean = (value) => value === true || value === false; + // tslint:enable:variable-name + is.symbol = isOfType('symbol'); + is.array = Array.isArray; + is.buffer = Buffer.isBuffer; + is.nullOrUndefined = (value) => is.null_(value) || is.undefined(value); + is.object = (value) => !is.nullOrUndefined(value) && (is.function_(value) || isObject(value)); + is.iterable = (value) => !is.nullOrUndefined(value) && is.function_(value[Symbol.iterator]); + is.generator = (value) => is.iterable(value) && is.function_(value.next) && is.function_(value.throw); + is.nativePromise = isObjectOfType("Promise" /* Promise */); + const hasPromiseAPI = (value) => !is.null_(value) && + isObject(value) && + is.function_(value.then) && + is.function_(value.catch); + is.promise = (value) => is.nativePromise(value) || hasPromiseAPI(value); + // TODO: Change to use `isObjectOfType` once Node.js 6 or higher is targeted + const isFunctionOfType = (type) => (value) => is.function_(value) && is.function_(value.constructor) && value.constructor.name === type; + is.generatorFunction = isFunctionOfType('GeneratorFunction'); + is.asyncFunction = isFunctionOfType('AsyncFunction'); + is.boundFunction = (value) => is.function_(value) && !value.hasOwnProperty('prototype'); + is.regExp = isObjectOfType("RegExp" /* RegExp */); + is.date = isObjectOfType("Date" /* Date */); + is.error = isObjectOfType("Error" /* Error */); + is.map = isObjectOfType("Map" /* Map */); + is.set = isObjectOfType("Set" /* Set */); + is.weakMap = isObjectOfType("WeakMap" /* WeakMap */); + is.weakSet = isObjectOfType("WeakSet" /* WeakSet */); + is.int8Array = isObjectOfType("Int8Array" /* Int8Array */); + is.uint8Array = isObjectOfType("Uint8Array" /* Uint8Array */); + is.uint8ClampedArray = isObjectOfType("Uint8ClampedArray" /* Uint8ClampedArray */); + is.int16Array = isObjectOfType("Int16Array" /* Int16Array */); + is.uint16Array = isObjectOfType("Uint16Array" /* Uint16Array */); + is.int32Array = isObjectOfType("Int32Array" /* Int32Array */); + is.uint32Array = isObjectOfType("Uint32Array" /* Uint32Array */); + is.float32Array = isObjectOfType("Float32Array" /* Float32Array */); + is.float64Array = isObjectOfType("Float64Array" /* Float64Array */); + is.arrayBuffer = isObjectOfType("ArrayBuffer" /* ArrayBuffer */); + is.sharedArrayBuffer = isObjectOfType("SharedArrayBuffer" /* SharedArrayBuffer */); + is.dataView = isObjectOfType("DataView" /* DataView */); + // TODO: Remove `object` checks when targeting ES2015 or higher + // See `Notes`: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf + is.directInstanceOf = (instance, klass) => is.object(instance) && is.object(klass) && Object.getPrototypeOf(instance) === klass.prototype; + is.truthy = (value) => Boolean(value); + is.falsy = (value) => !value; + is.nan = (value) => Number.isNaN(value); + const primitiveTypes = new Set([ + 'undefined', + 'string', + 'number', + 'boolean', + 'symbol' + ]); + is.primitive = (value) => is.null_(value) || primitiveTypes.has(typeof value); + is.integer = (value) => Number.isInteger(value); + is.safeInteger = (value) => Number.isSafeInteger(value); + is.plainObject = (value) => { + // From: https://github.com/sindresorhus/is-plain-obj/blob/master/index.js + let prototype; + return getObjectType(value) === "Object" /* Object */ && + (prototype = Object.getPrototypeOf(value), prototype === null || // tslint:disable-line:ban-comma-operator + prototype === Object.getPrototypeOf({})); + }; + const typedArrayTypes = new Set([ + "Int8Array" /* Int8Array */, + "Uint8Array" /* Uint8Array */, + "Uint8ClampedArray" /* Uint8ClampedArray */, + "Int16Array" /* Int16Array */, + "Uint16Array" /* Uint16Array */, + "Int32Array" /* Int32Array */, + "Uint32Array" /* Uint32Array */, + "Float32Array" /* Float32Array */, + "Float64Array" /* Float64Array */ + ]); + is.typedArray = (value) => { + const objectType = getObjectType(value); + if (objectType === null) { + return false; + } + return typedArrayTypes.has(objectType); + }; + const isValidLength = (value) => is.safeInteger(value) && value > -1; + is.arrayLike = (value) => !is.nullOrUndefined(value) && !is.function_(value) && isValidLength(value.length); + is.inRange = (value, range) => { + if (is.number(range)) { + return value >= Math.min(0, range) && value <= Math.max(range, 0); + } + if (is.array(range) && range.length === 2) { + // TODO: Use spread operator here when targeting Node.js 6 or higher + return value >= Math.min.apply(null, range) && value <= Math.max.apply(null, range); + } + throw new TypeError(`Invalid range: ${util.inspect(range)}`); + }; + const NODE_TYPE_ELEMENT = 1; + const DOM_PROPERTIES_TO_CHECK = [ + 'innerHTML', + 'ownerDocument', + 'style', + 'attributes', + 'nodeValue' + ]; + is.domElement = (value) => is.object(value) && value.nodeType === NODE_TYPE_ELEMENT && is.string(value.nodeName) && + !is.plainObject(value) && DOM_PROPERTIES_TO_CHECK.every(property => property in value); + is.nodeStream = (value) => !is.nullOrUndefined(value) && isObject(value) && is.function_(value.pipe); + is.infinite = (value) => value === Infinity || value === -Infinity; + const isAbsoluteMod2 = (value) => (rem) => is.integer(rem) && Math.abs(rem % 2) === value; + is.even = isAbsoluteMod2(0); + is.odd = isAbsoluteMod2(1); + const isWhiteSpaceString = (value) => is.string(value) && /\S/.test(value) === false; + const isEmptyStringOrArray = (value) => (is.string(value) || is.array(value)) && value.length === 0; + const isEmptyObject = (value) => !is.map(value) && !is.set(value) && is.object(value) && Object.keys(value).length === 0; + const isEmptyMapOrSet = (value) => (is.map(value) || is.set(value)) && value.size === 0; + is.empty = (value) => is.falsy(value) || isEmptyStringOrArray(value) || isEmptyObject(value) || isEmptyMapOrSet(value); + is.emptyOrWhitespace = (value) => is.empty(value) || isWhiteSpaceString(value); + const predicateOnArray = (method, predicate, args) => { + // `args` is the calling function's "arguments object". + // We have to do it this way to keep node v4 support. + // So here we convert it to an array and slice off the first item. + const values = Array.prototype.slice.call(args, 1); + if (is.function_(predicate) === false) { + throw new TypeError(`Invalid predicate: ${util.inspect(predicate)}`); + } + if (values.length === 0) { + throw new TypeError('Invalid number of values'); + } + return method.call(values, predicate); + }; + function any(predicate) { + return predicateOnArray(Array.prototype.some, predicate, arguments); + } + is.any = any; + function all(predicate) { + return predicateOnArray(Array.prototype.every, predicate, arguments); + } + is.all = all; + // tslint:enable:only-arrow-functions no-function-expression +})(is || (is = {})); +// Some few keywords are reserved, but we'll populate them for Node.js users +// See https://github.com/Microsoft/TypeScript/issues/2536 +Object.defineProperties(is, { + class: { + value: is.class_ + }, + function: { + value: is.function_ + }, + null: { + value: is.null_ + } +}); +exports.default = is; +// For CommonJS default export support +module.exports = is; +module.exports.default = is; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/index.js.map" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/index.js.map" new file mode 100644 index 0000000000000000000000000000000000000000..7461e68c18eef1a5b2d78729cfdf94076a0e6dc3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/index.js.map" @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../source/index.ts"],"names":[],"mappings":";;AAAA,6BAA6B;AAE7B,MAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC;AAC3C,MAAM,aAAa,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAW,CAAC;AAClF,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,OAAO,KAAK,KAAK,IAAI,CAAC;AACzE,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;AAEvF,YAAY,KAAU;IACrB,EAAE,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC;QACpB,MAAM,CAAC,MAAM,CAAC;IACf,CAAC;IAED,EAAE,CAAC,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,CAAC,CAAC,CAAC;QACvC,MAAM,CAAC,SAAS,CAAC;IAClB,CAAC;IAED,MAAM,IAAI,GAAG,OAAO,KAAK,CAAC;IAE1B,EAAE,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC;QAC1B,MAAM,CAAC,WAAW,CAAC;IACpB,CAAC;IAED,EAAE,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC;QACvB,MAAM,CAAC,QAAQ,CAAC;IACjB,CAAC;IAED,EAAE,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC;QACvB,MAAM,CAAC,QAAQ,CAAC;IACjB,CAAC;IAED,EAAE,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC;QACvB,MAAM,CAAC,QAAQ,CAAC;IACjB,CAAC;IAED,EAAE,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACzB,MAAM,CAAC,UAAU,CAAC;IACnB,CAAC;IAED,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1B,MAAM,CAAC,OAAO,CAAC;IAChB,CAAC;IAED,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC5B,MAAM,CAAC,QAAQ,CAAC;IACjB,CAAC;IAED,MAAM,OAAO,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IACrC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QACb,MAAM,CAAC,OAAO,CAAC;IAChB,CAAC;IAED,EAAE,CAAC,CAAC,KAAK,YAAY,MAAM,IAAI,KAAK,YAAY,OAAO,IAAI,KAAK,YAAY,MAAM,CAAC,CAAC,CAAC;QACpF,MAAM,IAAI,SAAS,CAAC,uDAAuD,CAAC,CAAC;IAC9E,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC;AACjB,CAAC;AAED,WAAU,EAAE;IACX,MAAM,QAAQ,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC;IAG9C,YAAS,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;IAClC,SAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC5B,SAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC5B,YAAS,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;IACjC,QAAK,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC;IAEvC,SAAM,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IACnF,UAAO,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,CAAC;IAG5D,SAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAE5B,QAAK,GAAG,KAAK,CAAC,OAAO,CAAC;IACtB,SAAM,GAAG,MAAM,CAAC,QAAQ,CAAC;IAEzB,kBAAe,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,KAAK,CAAC,KAAK,CAAC,IAAI,GAAA,SAAS,CAAC,KAAK,CAAC,CAAC;IACnE,SAAM,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,GAAA,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,GAAA,SAAS,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1F,WAAQ,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,GAAA,eAAe,CAAC,KAAK,CAAC,IAAI,GAAA,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxF,YAAS,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,QAAQ,CAAC,KAAK,CAAC,IAAI,GAAA,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAA,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAE/F,gBAAa,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;IAEvD,MAAM,aAAa,GAAG,CAAC,KAAU,EAAE,EAAE,CACpC,CAAC,GAAA,KAAK,CAAC,KAAK,CAAC;QACb,QAAQ,CAAC,KAAK,CAAC;QACf,GAAA,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC;QACrB,GAAA,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAEX,UAAO,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,aAAa,CAAC,KAAK,CAAC,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC;IAGpF,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,SAAS,CAAC,KAAK,CAAC,IAAI,GAAA,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,IAAI,KAAK,IAAI,CAAC;IAElI,oBAAiB,GAAG,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IAC1D,gBAAa,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC;IAElD,SAAM,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;IAClC,OAAI,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;IAC9B,QAAK,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;IAChC,MAAG,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;IAC5B,MAAG,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;IAC5B,UAAO,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;IACpC,UAAO,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;IAEpC,YAAS,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;IACxC,aAAU,GAAG,cAAc,CAAC,YAAY,CAAC,CAAC;IAC1C,oBAAiB,GAAG,cAAc,CAAC,mBAAmB,CAAC,CAAC;IACxD,aAAU,GAAG,cAAc,CAAC,YAAY,CAAC,CAAC;IAC1C,cAAW,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;IAC5C,aAAU,GAAG,cAAc,CAAC,YAAY,CAAC,CAAC;IAC1C,cAAW,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;IAC5C,eAAY,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;IAC9C,eAAY,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;IAE9C,cAAW,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;IAC5C,oBAAiB,GAAG,cAAc,CAAC,mBAAmB,CAAC,CAAC;IAExD,SAAM,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACxC,QAAK,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC;IAE/B,MAAG,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAEvD,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC;QAC9B,WAAW;QACX,QAAQ;QACR,QAAQ;QACR,SAAS;QACT,QAAQ;KACR,CAAC,CAAC;IAEU,YAAS,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,KAAK,CAAC,KAAK,CAAC,IAAI,cAAc,CAAC,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC;IAE7E,UAAO,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAClD,cAAW,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAE1D,cAAW,GAAG,CAAC,KAAU,EAAE,EAAE;QAEzC,IAAI,SAAS,CAAC;QAEd,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,QAAQ;YACvC,CAAC,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,SAAS,KAAK,IAAI;gBAC5D,SAAS,KAAK,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC;IAC5C,CAAC,CAAC;IAEF,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC;QAC/B,WAAW;QACX,YAAY;QACZ,mBAAmB;QACnB,YAAY;QACZ,aAAa;QACb,YAAY;QACZ,aAAa;QACb,cAAc;QACd,cAAc;KACd,CAAC,CAAC;IACU,aAAU,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,eAAe,CAAC,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IAEpF,MAAM,aAAa,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,WAAW,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC;IAC1D,YAAS,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,GAAA,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,GAAA,SAAS,CAAC,KAAK,CAAC,IAAI,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAExG,UAAO,GAAG,CAAC,KAAa,EAAE,KAAwB,EAAE,EAAE;QAClE,EAAE,CAAC,CAAC,GAAA,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACnB,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAe,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,KAAe,EAAE,CAAC,CAAC,CAAC;QACvF,CAAC;QAED,EAAE,CAAC,CAAC,GAAA,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC;YAExC,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACrF,CAAC;QAED,MAAM,IAAI,SAAS,CAAC,kBAAkB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC9D,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,CAAC,CAAC;IAC5B,MAAM,uBAAuB,GAAG;QAC/B,WAAW;QACX,eAAe;QACf,OAAO;QACP,YAAY;QACZ,WAAW;KACX,CAAC;IAEW,aAAU,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,MAAM,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,KAAK,iBAAiB,IAAI,GAAA,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;QACxH,CAAC,GAAA,WAAW,CAAC,KAAK,CAAC,IAAI,uBAAuB,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,IAAI,KAAK,CAAC,CAAC;IAExE,WAAQ,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,CAAC,QAAQ,CAAC;IAElF,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,GAAW,EAAE,EAAE,CAAC,GAAA,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,KAAK,CAAC;IAC1F,OAAI,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;IACzB,MAAG,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;IAErC,MAAM,kBAAkB,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,MAAM,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC;IACvF,MAAM,oBAAoB,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,GAAA,MAAM,CAAC,KAAK,CAAC,IAAI,GAAA,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;IACnG,MAAM,aAAa,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,GAAA,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAA,GAAG,CAAC,KAAK,CAAC,IAAI,GAAA,MAAM,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;IACrH,MAAM,eAAe,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,GAAA,GAAG,CAAC,KAAK,CAAC,IAAI,GAAA,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC;IAE1E,QAAK,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,KAAK,CAAC,KAAK,CAAC,IAAI,oBAAoB,CAAC,KAAK,CAAC,IAAI,aAAa,CAAC,KAAK,CAAC,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC;IACtH,oBAAiB,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,KAAK,CAAC,KAAK,CAAC,IAAI,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAG3F,MAAM,gBAAgB,GAAG,CAAC,MAAmB,EAAE,SAAc,EAAE,IAAgB,EAAE,EAAE;QAIlF,MAAM,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QAEnD,EAAE,CAAC,CAAC,GAAA,SAAS,CAAC,SAAS,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC;YACpC,MAAM,IAAI,SAAS,CAAC,sBAAsB,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;QACtE,CAAC;QAED,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC;YACzB,MAAM,IAAI,SAAS,CAAC,0BAA0B,CAAC,CAAC;QACjD,CAAC;QAED,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACvC,CAAC,CAAC;IAMF,aAAoB,SAAc;QACjC,MAAM,CAAC,gBAAgB,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IACrE,CAAC;IAFe,MAAG,MAElB,CAAA;IAGD,aAAoB,SAAc;QACjC,MAAM,CAAC,gBAAgB,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IACtE,CAAC;IAFe,MAAG,MAElB,CAAA;AAEF,CAAC,EA9KS,EAAE,KAAF,EAAE,QA8KX;AAID,MAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE;IAC3B,KAAK,EAAE;QACN,KAAK,EAAE,EAAE,CAAC,MAAM;KAChB;IACD,QAAQ,EAAE;QACT,KAAK,EAAE,EAAE,CAAC,SAAS;KACnB;IACD,IAAI,EAAE;QACL,KAAK,EAAE,EAAE,CAAC,KAAK;KACf;CACD,CAAC,CAAC;AAEH,kBAAe,EAAE,CAAC;AAGlB,MAAM,CAAC,OAAO,GAAG,EAAE,CAAC;AACpB,MAAM,CAAC,OAAO,CAAC,OAAO,GAAG,EAAE,CAAC"} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/source/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/source/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..f5fe7225eac87cece9b55af1a6798343eacae43c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/source/index.d.ts" @@ -0,0 +1,59 @@ +/// +declare function is(value: any): string; +declare namespace is { + const undefined: (value: any) => boolean; + const string: (value: any) => boolean; + const number: (value: any) => boolean; + const function_: (value: any) => boolean; + const null_: (value: any) => boolean; + const class_: (value: any) => any; + const boolean: (value: any) => boolean; + const symbol: (value: any) => boolean; + const array: (arg: any) => arg is any[]; + const buffer: (obj: any) => obj is Buffer; + const nullOrUndefined: (value: any) => boolean; + const object: (value: any) => boolean; + const iterable: (value: any) => boolean; + const generator: (value: any) => boolean; + const nativePromise: (value: any) => boolean; + const promise: (value: any) => boolean; + const generatorFunction: (value: any) => boolean; + const asyncFunction: (value: any) => boolean; + const regExp: (value: any) => boolean; + const date: (value: any) => boolean; + const error: (value: any) => boolean; + const map: (value: any) => boolean; + const set: (value: any) => boolean; + const weakMap: (value: any) => boolean; + const weakSet: (value: any) => boolean; + const int8Array: (value: any) => boolean; + const uint8Array: (value: any) => boolean; + const uint8ClampedArray: (value: any) => boolean; + const int16Array: (value: any) => boolean; + const uint16Array: (value: any) => boolean; + const int32Array: (value: any) => boolean; + const uint32Array: (value: any) => boolean; + const float32Array: (value: any) => boolean; + const float64Array: (value: any) => boolean; + const arrayBuffer: (value: any) => boolean; + const sharedArrayBuffer: (value: any) => boolean; + const truthy: (value: any) => boolean; + const falsy: (value: any) => boolean; + const nan: (value: any) => boolean; + const primitive: (value: any) => boolean; + const integer: (value: any) => boolean; + const safeInteger: (value: any) => boolean; + const plainObject: (value: any) => boolean; + const typedArray: (value: any) => boolean; + const arrayLike: (value: any) => boolean; + const inRange: (value: number, range: number | number[]) => boolean; + const domElement: (value: any) => boolean; + const infinite: (value: any) => boolean; + const even: (rem: number) => boolean; + const odd: (rem: number) => boolean; + const empty: (value: any) => boolean; + const emptyOrWhitespace: (value: any) => boolean; + function any(...predicate: any[]): any; + function all(...predicate: any[]): any; +} +export default is; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/source/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/source/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..2ff01c9c7f1c2b06171ed469c91c2e7a164923a1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/source/index.js" @@ -0,0 +1,182 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const util = require("util"); +const toString = Object.prototype.toString; +const getObjectType = (value) => toString.call(value).slice(8, -1); +const isOfType = (type) => (value) => typeof value === type; +const isObjectOfType = (type) => (value) => getObjectType(value) === type; +function is(value) { + if (value === null) { + return 'null'; + } + if (value === true || value === false) { + return 'boolean'; + } + const type = typeof value; + if (type === 'undefined') { + return 'undefined'; + } + if (type === 'string') { + return 'string'; + } + if (type === 'number') { + return 'number'; + } + if (type === 'symbol') { + return 'symbol'; + } + if (is.function_(value)) { + return 'Function'; + } + if (Array.isArray(value)) { + return 'Array'; + } + if (Buffer.isBuffer(value)) { + return 'Buffer'; + } + const tagType = getObjectType(value); + if (tagType) { + return tagType; + } + if (value instanceof String || value instanceof Boolean || value instanceof Number) { + throw new TypeError('Please don\'t use object wrappers for primitive types'); + } + return 'Object'; +} +(function (is) { + const isObject = (value) => typeof value === 'object'; + is.undefined = isOfType('undefined'); + is.string = isOfType('string'); + is.number = isOfType('number'); + is.function_ = isOfType('function'); + is.null_ = (value) => value === null; + is.class_ = (value) => is.function_(value) && value.toString().startsWith('class '); + is.boolean = (value) => value === true || value === false; + is.symbol = isOfType('symbol'); + is.array = Array.isArray; + is.buffer = Buffer.isBuffer; + is.nullOrUndefined = (value) => is.null_(value) || is.undefined(value); + is.object = (value) => !is.nullOrUndefined(value) && (is.function_(value) || isObject(value)); + is.iterable = (value) => !is.nullOrUndefined(value) && is.function_(value[Symbol.iterator]); + is.generator = (value) => is.iterable(value) && is.function_(value.next) && is.function_(value.throw); + is.nativePromise = isObjectOfType('Promise'); + const hasPromiseAPI = (value) => !is.null_(value) && + isObject(value) && + is.function_(value.then) && + is.function_(value.catch); + is.promise = (value) => is.nativePromise(value) || hasPromiseAPI(value); + const isFunctionOfType = (type) => (value) => is.function_(value) && is.function_(value.constructor) && value.constructor.name === type; + is.generatorFunction = isFunctionOfType('GeneratorFunction'); + is.asyncFunction = isFunctionOfType('AsyncFunction'); + is.regExp = isObjectOfType('RegExp'); + is.date = isObjectOfType('Date'); + is.error = isObjectOfType('Error'); + is.map = isObjectOfType('Map'); + is.set = isObjectOfType('Set'); + is.weakMap = isObjectOfType('WeakMap'); + is.weakSet = isObjectOfType('WeakSet'); + is.int8Array = isObjectOfType('Int8Array'); + is.uint8Array = isObjectOfType('Uint8Array'); + is.uint8ClampedArray = isObjectOfType('Uint8ClampedArray'); + is.int16Array = isObjectOfType('Int16Array'); + is.uint16Array = isObjectOfType('Uint16Array'); + is.int32Array = isObjectOfType('Int32Array'); + is.uint32Array = isObjectOfType('Uint32Array'); + is.float32Array = isObjectOfType('Float32Array'); + is.float64Array = isObjectOfType('Float64Array'); + is.arrayBuffer = isObjectOfType('ArrayBuffer'); + is.sharedArrayBuffer = isObjectOfType('SharedArrayBuffer'); + is.truthy = (value) => Boolean(value); + is.falsy = (value) => !value; + is.nan = (value) => Number.isNaN(value); + const primitiveTypes = new Set([ + 'undefined', + 'string', + 'number', + 'boolean', + 'symbol' + ]); + is.primitive = (value) => is.null_(value) || primitiveTypes.has(typeof value); + is.integer = (value) => Number.isInteger(value); + is.safeInteger = (value) => Number.isSafeInteger(value); + is.plainObject = (value) => { + let prototype; + return getObjectType(value) === 'Object' && + (prototype = Object.getPrototypeOf(value), prototype === null || + prototype === Object.getPrototypeOf({})); + }; + const typedArrayTypes = new Set([ + 'Int8Array', + 'Uint8Array', + 'Uint8ClampedArray', + 'Int16Array', + 'Uint16Array', + 'Int32Array', + 'Uint32Array', + 'Float32Array', + 'Float64Array' + ]); + is.typedArray = (value) => typedArrayTypes.has(getObjectType(value)); + const isValidLength = (value) => is.safeInteger(value) && value > -1; + is.arrayLike = (value) => !is.nullOrUndefined(value) && !is.function_(value) && isValidLength(value.length); + is.inRange = (value, range) => { + if (is.number(range)) { + return value >= Math.min(0, range) && value <= Math.max(range, 0); + } + if (is.array(range) && range.length === 2) { + return value >= Math.min.apply(null, range) && value <= Math.max.apply(null, range); + } + throw new TypeError(`Invalid range: ${util.inspect(range)}`); + }; + const NODE_TYPE_ELEMENT = 1; + const DOM_PROPERTIES_TO_CHECK = [ + 'innerHTML', + 'ownerDocument', + 'style', + 'attributes', + 'nodeValue' + ]; + is.domElement = (value) => is.object(value) && value.nodeType === NODE_TYPE_ELEMENT && is.string(value.nodeName) && + !is.plainObject(value) && DOM_PROPERTIES_TO_CHECK.every(property => property in value); + is.infinite = (value) => value === Infinity || value === -Infinity; + const isAbsoluteMod2 = (value) => (rem) => is.integer(rem) && Math.abs(rem % 2) === value; + is.even = isAbsoluteMod2(0); + is.odd = isAbsoluteMod2(1); + const isWhiteSpaceString = (value) => is.string(value) && /\S/.test(value) === false; + const isEmptyStringOrArray = (value) => (is.string(value) || is.array(value)) && value.length === 0; + const isEmptyObject = (value) => !is.map(value) && !is.set(value) && is.object(value) && Object.keys(value).length === 0; + const isEmptyMapOrSet = (value) => (is.map(value) || is.set(value)) && value.size === 0; + is.empty = (value) => is.falsy(value) || isEmptyStringOrArray(value) || isEmptyObject(value) || isEmptyMapOrSet(value); + is.emptyOrWhitespace = (value) => is.empty(value) || isWhiteSpaceString(value); + const predicateOnArray = (method, predicate, args) => { + const values = Array.prototype.slice.call(args, 1); + if (is.function_(predicate) === false) { + throw new TypeError(`Invalid predicate: ${util.inspect(predicate)}`); + } + if (values.length === 0) { + throw new TypeError('Invalid number of values'); + } + return method.call(values, predicate); + }; + function any(predicate) { + return predicateOnArray(Array.prototype.some, predicate, arguments); + } + is.any = any; + function all(predicate) { + return predicateOnArray(Array.prototype.every, predicate, arguments); + } + is.all = all; +})(is || (is = {})); +Object.defineProperties(is, { + class: { + value: is.class_ + }, + function: { + value: is.function_ + }, + null: { + value: is.null_ + } +}); +exports.default = is; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/source/index.js.map" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/source/index.js.map" new file mode 100644 index 0000000000000000000000000000000000000000..5cb0e0c877f829933a19a69f9a244b81f72ebe1b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/source/index.js.map" @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/index.ts"],"names":[],"mappings":";;AAAA,6BAA6B;AAE7B,MAAM,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC;AAC3C,MAAM,aAAa,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAW,CAAC;AAClF,MAAM,QAAQ,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,OAAO,KAAK,KAAK,IAAI,CAAC;AACzE,MAAM,cAAc,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;AAEvF,YAAY,KAAU;IACrB,EAAE,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC;QACpB,MAAM,CAAC,MAAM,CAAC;IACf,CAAC;IAED,EAAE,CAAC,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,CAAC,CAAC,CAAC;QACvC,MAAM,CAAC,SAAS,CAAC;IAClB,CAAC;IAED,MAAM,IAAI,GAAG,OAAO,KAAK,CAAC;IAE1B,EAAE,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC,CAAC;QAC1B,MAAM,CAAC,WAAW,CAAC;IACpB,CAAC;IAED,EAAE,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC;QACvB,MAAM,CAAC,QAAQ,CAAC;IACjB,CAAC;IAED,EAAE,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC;QACvB,MAAM,CAAC,QAAQ,CAAC;IACjB,CAAC;IAED,EAAE,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC;QACvB,MAAM,CAAC,QAAQ,CAAC;IACjB,CAAC;IAED,EAAE,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QACzB,MAAM,CAAC,UAAU,CAAC;IACnB,CAAC;IAED,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC1B,MAAM,CAAC,OAAO,CAAC;IAChB,CAAC;IAED,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;QAC5B,MAAM,CAAC,QAAQ,CAAC;IACjB,CAAC;IAED,MAAM,OAAO,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IACrC,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QACb,MAAM,CAAC,OAAO,CAAC;IAChB,CAAC;IAED,EAAE,CAAC,CAAC,KAAK,YAAY,MAAM,IAAI,KAAK,YAAY,OAAO,IAAI,KAAK,YAAY,MAAM,CAAC,CAAC,CAAC;QACpF,MAAM,IAAI,SAAS,CAAC,uDAAuD,CAAC,CAAC;IAC9E,CAAC;IAED,MAAM,CAAC,QAAQ,CAAC;AACjB,CAAC;AAED,WAAU,EAAE;IACX,MAAM,QAAQ,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC;IAG9C,YAAS,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;IAClC,SAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC5B,SAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC5B,YAAS,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC;IACjC,QAAK,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,CAAC;IAEvC,SAAM,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,SAAS,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;IACnF,UAAO,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,KAAK,CAAC;IAG5D,SAAM,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAE5B,QAAK,GAAG,KAAK,CAAC,OAAO,CAAC;IACtB,SAAM,GAAG,MAAM,CAAC,QAAQ,CAAC;IAEzB,kBAAe,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,KAAK,CAAC,KAAK,CAAC,IAAI,GAAA,SAAS,CAAC,KAAK,CAAC,CAAC;IACnE,SAAM,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,GAAA,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,GAAA,SAAS,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC;IAC1F,WAAQ,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,GAAA,eAAe,CAAC,KAAK,CAAC,IAAI,GAAA,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;IACxF,YAAS,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,QAAQ,CAAC,KAAK,CAAC,IAAI,GAAA,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,GAAA,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAE/F,gBAAa,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;IAEvD,MAAM,aAAa,GAAG,CAAC,KAAU,EAAE,EAAE,CACpC,CAAC,GAAA,KAAK,CAAC,KAAK,CAAC;QACb,QAAQ,CAAC,KAAK,CAAC;QACf,GAAA,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC;QACrB,GAAA,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAEX,UAAO,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,aAAa,CAAC,KAAK,CAAC,IAAI,aAAa,CAAC,KAAK,CAAC,CAAC;IAGpF,MAAM,gBAAgB,GAAG,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,SAAS,CAAC,KAAK,CAAC,IAAI,GAAA,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,IAAI,KAAK,IAAI,CAAC;IAElI,oBAAiB,GAAG,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;IAC1D,gBAAa,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC;IAElD,SAAM,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;IAClC,OAAI,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;IAC9B,QAAK,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;IAChC,MAAG,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;IAC5B,MAAG,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;IAC5B,UAAO,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;IACpC,UAAO,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;IAEpC,YAAS,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC;IACxC,aAAU,GAAG,cAAc,CAAC,YAAY,CAAC,CAAC;IAC1C,oBAAiB,GAAG,cAAc,CAAC,mBAAmB,CAAC,CAAC;IACxD,aAAU,GAAG,cAAc,CAAC,YAAY,CAAC,CAAC;IAC1C,cAAW,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;IAC5C,aAAU,GAAG,cAAc,CAAC,YAAY,CAAC,CAAC;IAC1C,cAAW,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;IAC5C,eAAY,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;IAC9C,eAAY,GAAG,cAAc,CAAC,cAAc,CAAC,CAAC;IAE9C,cAAW,GAAG,cAAc,CAAC,aAAa,CAAC,CAAC;IAC5C,oBAAiB,GAAG,cAAc,CAAC,mBAAmB,CAAC,CAAC;IAExD,SAAM,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IACxC,QAAK,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC;IAE/B,MAAG,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAEvD,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC;QAC9B,WAAW;QACX,QAAQ;QACR,QAAQ;QACR,SAAS;QACT,QAAQ;KACR,CAAC,CAAC;IAEU,YAAS,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,KAAK,CAAC,KAAK,CAAC,IAAI,cAAc,CAAC,GAAG,CAAC,OAAO,KAAK,CAAC,CAAC;IAE7E,UAAO,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;IAClD,cAAW,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAE1D,cAAW,GAAG,CAAC,KAAU,EAAE,EAAE;QAEzC,IAAI,SAAS,CAAC;QAEd,MAAM,CAAC,aAAa,CAAC,KAAK,CAAC,KAAK,QAAQ;YACvC,CAAC,SAAS,GAAG,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,SAAS,KAAK,IAAI;gBAC5D,SAAS,KAAK,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC,CAAC;IAC5C,CAAC,CAAC;IAEF,MAAM,eAAe,GAAG,IAAI,GAAG,CAAC;QAC/B,WAAW;QACX,YAAY;QACZ,mBAAmB;QACnB,YAAY;QACZ,aAAa;QACb,YAAY;QACZ,aAAa;QACb,cAAc;QACd,cAAc;KACd,CAAC,CAAC;IACU,aAAU,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,eAAe,CAAC,GAAG,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC;IAEpF,MAAM,aAAa,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,WAAW,CAAC,KAAK,CAAC,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC;IAC1D,YAAS,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,GAAA,eAAe,CAAC,KAAK,CAAC,IAAI,CAAC,GAAA,SAAS,CAAC,KAAK,CAAC,IAAI,aAAa,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAExG,UAAO,GAAG,CAAC,KAAa,EAAE,KAAwB,EAAE,EAAE;QAClE,EAAE,CAAC,CAAC,GAAA,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACnB,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAe,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,KAAe,EAAE,CAAC,CAAC,CAAC;QACvF,CAAC;QAED,EAAE,CAAC,CAAC,GAAA,KAAK,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC;YAExC,MAAM,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,KAAK,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QACrF,CAAC;QAED,MAAM,IAAI,SAAS,CAAC,kBAAkB,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC9D,CAAC,CAAC;IAEF,MAAM,iBAAiB,GAAG,CAAC,CAAC;IAC5B,MAAM,uBAAuB,GAAG;QAC/B,WAAW;QACX,eAAe;QACf,OAAO;QACP,YAAY;QACZ,WAAW;KACX,CAAC;IAEW,aAAU,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,MAAM,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,KAAK,iBAAiB,IAAI,GAAA,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC;QACxH,CAAC,GAAA,WAAW,CAAC,KAAK,CAAC,IAAI,uBAAuB,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,IAAI,KAAK,CAAC,CAAC;IAExE,WAAQ,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,CAAC,QAAQ,CAAC;IAElF,MAAM,cAAc,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,GAAW,EAAE,EAAE,CAAC,GAAA,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,CAAC,KAAK,KAAK,CAAC;IAC1F,OAAI,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;IACzB,MAAG,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC;IAErC,MAAM,kBAAkB,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,MAAM,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,KAAK,CAAC;IACvF,MAAM,oBAAoB,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,GAAA,MAAM,CAAC,KAAK,CAAC,IAAI,GAAA,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;IACnG,MAAM,aAAa,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,GAAA,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,GAAA,GAAG,CAAC,KAAK,CAAC,IAAI,GAAA,MAAM,CAAC,KAAK,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC;IACrH,MAAM,eAAe,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,CAAC,GAAA,GAAG,CAAC,KAAK,CAAC,IAAI,GAAA,GAAG,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC;IAE1E,QAAK,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,KAAK,CAAC,KAAK,CAAC,IAAI,oBAAoB,CAAC,KAAK,CAAC,IAAI,aAAa,CAAC,KAAK,CAAC,IAAI,eAAe,CAAC,KAAK,CAAC,CAAC;IACtH,oBAAiB,GAAG,CAAC,KAAU,EAAE,EAAE,CAAC,GAAA,KAAK,CAAC,KAAK,CAAC,IAAI,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAG3F,MAAM,gBAAgB,GAAG,CAAC,MAAmB,EAAE,SAAc,EAAE,IAAgB,EAAE,EAAE;QAIlF,MAAM,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;QAEnD,EAAE,CAAC,CAAC,GAAA,SAAS,CAAC,SAAS,CAAC,KAAK,KAAK,CAAC,CAAC,CAAC;YACpC,MAAM,IAAI,SAAS,CAAC,sBAAsB,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;QACtE,CAAC;QAED,EAAE,CAAC,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC;YACzB,MAAM,IAAI,SAAS,CAAC,0BAA0B,CAAC,CAAC;QACjD,CAAC;QAED,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IACvC,CAAC,CAAC;IAMF,aAAoB,SAAc;QACjC,MAAM,CAAC,gBAAgB,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IACrE,CAAC;IAFe,MAAG,MAElB,CAAA;IAGD,aAAoB,SAAc;QACjC,MAAM,CAAC,gBAAgB,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;IACtE,CAAC;IAFe,MAAG,MAElB,CAAA;AAEF,CAAC,EA9KS,EAAE,KAAF,EAAE,QA8KX;AAID,MAAM,CAAC,gBAAgB,CAAC,EAAE,EAAE;IAC3B,KAAK,EAAE;QACN,KAAK,EAAE,EAAE,CAAC,MAAM;KAChB;IACD,QAAQ,EAAE;QACT,KAAK,EAAE,EAAE,CAAC,SAAS;KACnB;IACD,IAAI,EAAE;QACL,KAAK,EAAE,EAAE,CAAC,KAAK;KACf;CACD,CAAC,CAAC;AAEH,kBAAe,EAAE,CAAC"} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/source/tests/test.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/source/tests/test.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/source/tests/test.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/source/tests/test.js" new file mode 100644 index 0000000000000000000000000000000000000000..7a35b4d9ba3659c7e93ab08309557c95224097cd --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/source/tests/test.js" @@ -0,0 +1,622 @@ +"use strict"; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", { value: true }); +const util = require("util"); +const ava_1 = require("ava"); +const jsdom_1 = require("jsdom"); +const __1 = require(".."); +const isNode8orHigher = Number(process.versions.node.split('.')[0]) >= 8; +class ErrorSubclassFixture extends Error { +} +const document = jsdom_1.jsdom(); +const createDomElement = (el) => document.createElement(el); +const types = new Map([ + ['undefined', { + is: __1.default.undefined, + fixtures: [ + undefined + ] + }], + ['null', { + is: __1.default.null_, + fixtures: [ + null + ] + }], + ['string', { + is: __1.default.string, + fixtures: [ + '🦄', + 'hello world', + '' + ] + }], + ['number', { + is: __1.default.number, + fixtures: [ + 6, + 1.4, + 0, + -0, + Infinity, + -Infinity + ] + }], + ['boolean', { + is: __1.default.boolean, + fixtures: [ + true, false + ] + }], + ['symbol', { + is: __1.default.symbol, + fixtures: [ + Symbol('🦄') + ] + }], + ['array', { + is: __1.default.array, + fixtures: [ + [1, 2], + new Array(2) + ] + }], + ['function', { + is: __1.default.function_, + fixtures: [ + function foo() { }, + function () { }, + () => { }, + function () { + return __awaiter(this, void 0, void 0, function* () { }); + }, + function* () { } + ] + }], + ['buffer', { + is: __1.default.buffer, + fixtures: [ + Buffer.from('🦄') + ] + }], + ['object', { + is: __1.default.object, + fixtures: [ + { x: 1 }, + Object.create({ x: 1 }) + ] + }], + ['regExp', { + is: __1.default.regExp, + fixtures: [ + /\w/, + new RegExp('\\w') + ] + }], + ['date', { + is: __1.default.date, + fixtures: [ + new Date() + ] + }], + ['error', { + is: __1.default.error, + fixtures: [ + new Error('🦄'), + new ErrorSubclassFixture() + ] + }], + ['nativePromise', { + is: __1.default.nativePromise, + fixtures: [ + Promise.resolve(), + ] + }], + ['promise', { + is: __1.default.promise, + fixtures: [ + { then() { }, catch() { } } + ] + }], + ['generator', { + is: __1.default.generator, + fixtures: [ + (function* () { yield 4; })() + ] + }], + ['generatorFunction', { + is: __1.default.generatorFunction, + fixtures: [ + function* () { yield 4; } + ] + }], + ['asyncFunction', { + is: __1.default.asyncFunction, + fixtures: [ + function () { + return __awaiter(this, void 0, void 0, function* () { }); + }, + () => __awaiter(this, void 0, void 0, function* () { }) + ] + }], + ['map', { + is: __1.default.map, + fixtures: [ + new Map() + ] + }], + ['set', { + is: __1.default.set, + fixtures: [ + new Set() + ] + }], + ['weakSet', { + is: __1.default.weakSet, + fixtures: [ + new WeakSet() + ] + }], + ['weakMap', { + is: __1.default.weakMap, + fixtures: [ + new WeakMap() + ] + }], + ['int8Array', { + is: __1.default.int8Array, + fixtures: [ + new Int8Array(0) + ] + }], + ['uint8Array', { + is: __1.default.uint8Array, + fixtures: [ + new Uint8Array(0) + ] + }], + ['uint8ClampedArray', { + is: __1.default.uint8ClampedArray, + fixtures: [ + new Uint8ClampedArray(0) + ] + }], + ['int16Array', { + is: __1.default.int16Array, + fixtures: [ + new Int16Array(0) + ] + }], + ['uint16Array', { + is: __1.default.uint16Array, + fixtures: [ + new Uint16Array(0) + ] + }], + ['int32Array', { + is: __1.default.int32Array, + fixtures: [ + new Int32Array(0) + ] + }], + ['uint32Array', { + is: __1.default.uint32Array, + fixtures: [ + new Uint32Array(0) + ] + }], + ['float32Array', { + is: __1.default.float32Array, + fixtures: [ + new Float32Array(0) + ] + }], + ['float64Array', { + is: __1.default.float64Array, + fixtures: [ + new Float64Array(0) + ] + }], + ['arrayBuffer', { + is: __1.default.arrayBuffer, + fixtures: [ + new ArrayBuffer(10) + ] + }], + ['nan', { + is: __1.default.nan, + fixtures: [ + NaN, + Number.NaN + ] + }], + ['nullOrUndefined', { + is: __1.default.nullOrUndefined, + fixtures: [ + null, + undefined + ] + }], + ['plainObject', { + is: __1.default.plainObject, + fixtures: [ + { x: 1 }, + Object.create(null), + new Object() + ] + }], + ['integer', { + is: __1.default.integer, + fixtures: [ + 6 + ] + }], + ['safeInteger', { + is: __1.default.safeInteger, + fixtures: [ + Math.pow(2, 53) - 1, + -Math.pow(2, 53) + 1 + ] + }], + ['domElement', { + is: __1.default.domElement, + fixtures: [ + 'div', + 'input', + 'span', + 'img', + 'canvas', + 'script' + ].map(createDomElement) + } + ], ['non-domElements', { + is: value => !__1.default.domElement(value), + fixtures: [ + document.createTextNode('data'), + document.createProcessingInstruction('xml-stylesheet', 'href="mycss.css" type="text/css"'), + document.createComment('This is a comment'), + document, + document.implementation.createDocumentType('svg:svg', '-//W3C//DTD SVG 1.1//EN', 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'), + document.createDocumentFragment() + ] + }], + ['infinite', { + is: __1.default.infinite, + fixtures: [ + Infinity, + -Infinity + ] + }] +]); +const testType = (t, type, exclude) => { + const testData = types.get(type); + if (testData === undefined) { + t.fail(`is.${type} not defined`); + return; + } + const { is } = testData; + for (const [key, { fixtures }] of types) { + if (exclude && exclude.indexOf(key) !== -1) { + continue; + } + const assert = key === type ? t.true.bind(t) : t.false.bind(t); + for (const fixture of fixtures) { + assert(is(fixture), `Value: ${util.inspect(fixture)}`); + } + } +}; +ava_1.default('is', t => { + t.is(__1.default(null), 'null'); + t.is(__1.default(undefined), 'undefined'); +}); +ava_1.default('is.undefined', t => { + testType(t, 'undefined', ['nullOrUndefined']); +}); +ava_1.default('is.null', t => { + testType(t, 'null', ['nullOrUndefined']); +}); +ava_1.default('is.string', t => { + testType(t, 'string'); +}); +ava_1.default('is.number', t => { + testType(t, 'number', ['nan', 'integer', 'safeInteger', 'infinite']); +}); +ava_1.default('is.boolean', t => { + testType(t, 'boolean'); +}); +ava_1.default('is.symbol', t => { + testType(t, 'symbol'); +}); +ava_1.default('is.array', t => { + testType(t, 'array'); +}); +ava_1.default('is.function', t => { + testType(t, 'function', ['generatorFunction', 'asyncFunction']); +}); +ava_1.default('is.buffer', t => { + testType(t, 'buffer'); +}); +ava_1.default('is.object', t => { + const testData = types.get('object'); + if (testData === undefined) { + t.fail('is.object not defined'); + return; + } + for (const el of testData.fixtures) { + t.true(__1.default.object(el)); + } +}); +ava_1.default('is.regExp', t => { + testType(t, 'regExp'); +}); +ava_1.default('is.date', t => { + testType(t, 'date'); +}); +ava_1.default('is.error', t => { + testType(t, 'error'); +}); +if (isNode8orHigher) { + ava_1.default('is.nativePromise', t => { + testType(t, 'nativePromise'); + }); + ava_1.default('is.promise', t => { + testType(t, 'promise', ['nativePromise']); + }); +} +ava_1.default('is.generator', t => { + testType(t, 'generator'); +}); +ava_1.default('is.generatorFunction', t => { + testType(t, 'generatorFunction', ['function']); +}); +ava_1.default('is.map', t => { + testType(t, 'map'); +}); +ava_1.default('is.set', t => { + testType(t, 'set'); +}); +ava_1.default('is.weakMap', t => { + testType(t, 'weakMap'); +}); +ava_1.default('is.weakSet', t => { + testType(t, 'weakSet'); +}); +ava_1.default('is.int8Array', t => { + testType(t, 'int8Array'); +}); +ava_1.default('is.uint8Array', t => { + testType(t, 'uint8Array', ['buffer']); +}); +ava_1.default('is.uint8ClampedArray', t => { + testType(t, 'uint8ClampedArray'); +}); +ava_1.default('is.int16Array', t => { + testType(t, 'int16Array'); +}); +ava_1.default('is.uint16Array', t => { + testType(t, 'uint16Array'); +}); +ava_1.default('is.int32Array', t => { + testType(t, 'int32Array'); +}); +ava_1.default('is.uint32Array', t => { + testType(t, 'uint32Array'); +}); +ava_1.default('is.float32Array', t => { + testType(t, 'float32Array'); +}); +ava_1.default('is.float64Array', t => { + testType(t, 'float64Array'); +}); +ava_1.default('is.arrayBuffer', t => { + testType(t, 'arrayBuffer'); +}); +ava_1.default('is.dataView', t => { + testType(t, 'arrayBuffer'); +}); +ava_1.default('is.truthy', t => { + t.true(__1.default.truthy('unicorn')); + t.true(__1.default.truthy('🦄')); + t.true(__1.default.truthy(new Set())); + t.true(__1.default.truthy(Symbol('🦄'))); + t.true(__1.default.truthy(true)); +}); +ava_1.default('is.falsy', t => { + t.true(__1.default.falsy(false)); + t.true(__1.default.falsy(0)); + t.true(__1.default.falsy('')); + t.true(__1.default.falsy(null)); + t.true(__1.default.falsy(undefined)); + t.true(__1.default.falsy(NaN)); +}); +ava_1.default('is.nan', t => { + testType(t, 'nan'); +}); +ava_1.default('is.nullOrUndefined', t => { + testType(t, 'nullOrUndefined', ['undefined', 'null']); +}); +ava_1.default('is.primitive', t => { + const primitives = [ + undefined, + null, + '🦄', + 6, + Infinity, + -Infinity, + true, + false, + Symbol('🦄') + ]; + for (const el of primitives) { + t.true(__1.default.primitive(el)); + } +}); +ava_1.default('is.integer', t => { + testType(t, 'integer', ['number', 'safeInteger']); + t.false(__1.default.integer(1.4)); +}); +ava_1.default('is.safeInteger', t => { + testType(t, 'safeInteger', ['number', 'integer']); + t.false(__1.default.safeInteger(Math.pow(2, 53))); + t.false(__1.default.safeInteger(-Math.pow(2, 53))); +}); +ava_1.default('is.plainObject', t => { + testType(t, 'plainObject', ['object', 'promise']); +}); +ava_1.default('is.iterable', t => { + t.true(__1.default.iterable('')); + t.true(__1.default.iterable([])); + t.true(__1.default.iterable(new Map())); + t.false(__1.default.iterable(null)); + t.false(__1.default.iterable(undefined)); + t.false(__1.default.iterable(0)); + t.false(__1.default.iterable(NaN)); + t.false(__1.default.iterable(Infinity)); + t.false(__1.default.iterable({})); +}); +ava_1.default('is.class', t => { + class Foo { + } + const classDeclarations = [ + Foo, + class Bar extends Foo { + } + ]; + for (const x of classDeclarations) { + t.true(__1.default.class_(x)); + } +}); +ava_1.default('is.typedArray', t => { + const typedArrays = [ + new Int8Array(0), + new Uint8Array(0), + new Uint8ClampedArray(0), + new Uint16Array(0), + new Int32Array(0), + new Uint32Array(0), + new Float32Array(0), + new Float64Array(0) + ]; + for (const el of typedArrays) { + t.true(__1.default.typedArray(el)); + } + t.false(__1.default.typedArray(new ArrayBuffer(1))); + t.false(__1.default.typedArray([])); + t.false(__1.default.typedArray({})); +}); +ava_1.default('is.arrayLike', t => { + (() => { + t.true(__1.default.arrayLike(arguments)); + })(); + t.true(__1.default.arrayLike([])); + t.true(__1.default.arrayLike('unicorn')); + t.false(__1.default.arrayLike({})); + t.false(__1.default.arrayLike(() => { })); + t.false(__1.default.arrayLike(new Map())); +}); +ava_1.default('is.inRange', t => { + const x = 3; + t.true(__1.default.inRange(x, [0, 5])); + t.true(__1.default.inRange(x, [5, 0])); + t.true(__1.default.inRange(x, [-5, 5])); + t.true(__1.default.inRange(x, [5, -5])); + t.false(__1.default.inRange(x, [4, 8])); + t.true(__1.default.inRange(-7, [-5, -10])); + t.true(__1.default.inRange(-5, [-5, -10])); + t.true(__1.default.inRange(-10, [-5, -10])); + t.true(__1.default.inRange(x, 10)); + t.true(__1.default.inRange(0, 0)); + t.true(__1.default.inRange(-2, -3)); + t.false(__1.default.inRange(x, 2)); + t.false(__1.default.inRange(-3, -2)); + t.throws(() => { + __1.default.inRange(0, []); + }); + t.throws(() => { + __1.default.inRange(0, [5]); + }); + t.throws(() => { + __1.default.inRange(0, [1, 2, 3]); + }); +}); +ava_1.default('is.domElement', t => { + testType(t, 'domElement'); + t.false(__1.default.domElement({ nodeType: 1, nodeName: 'div' })); +}); +ava_1.default('is.infinite', t => { + testType(t, 'infinite', ['number']); +}); +ava_1.default('is.even', t => { + for (const el of [-6, 2, 4]) { + t.true(__1.default.even(el)); + } + for (const el of [-3, 1, 5]) { + t.false(__1.default.even(el)); + } +}); +ava_1.default('is.odd', t => { + for (const el of [-5, 7, 13]) { + t.true(__1.default.odd(el)); + } + for (const el of [-8, 8, 10]) { + t.false(__1.default.odd(el)); + } +}); +ava_1.default('is.empty', t => { + t.true(__1.default.empty(null)); + t.true(__1.default.empty(undefined)); + t.true(__1.default.empty(false)); + t.false(__1.default.empty(true)); + t.true(__1.default.empty('')); + t.false(__1.default.empty('🦄')); + t.true(__1.default.empty([])); + t.false(__1.default.empty(['🦄'])); + t.true(__1.default.empty({})); + t.false(__1.default.empty({ unicorn: '🦄' })); + const tempMap = new Map(); + t.true(__1.default.empty(tempMap)); + tempMap.set('unicorn', '🦄'); + t.false(__1.default.empty(tempMap)); + const tempSet = new Set(); + t.true(__1.default.empty(tempSet)); + tempSet.add(1); + t.false(__1.default.empty(tempSet)); +}); +ava_1.default('is.emptyOrWhitespace', t => { + t.true(__1.default.emptyOrWhitespace('')); + t.true(__1.default.emptyOrWhitespace(' ')); + t.false(__1.default.emptyOrWhitespace('🦄')); + t.false(__1.default.emptyOrWhitespace('unicorn')); +}); +ava_1.default('is.any', t => { + t.true(__1.default.any(__1.default.string, {}, true, '🦄')); + t.true(__1.default.any(__1.default.object, false, {}, 'unicorns')); + t.false(__1.default.any(__1.default.boolean, '🦄', [], 3)); + t.false(__1.default.any(__1.default.integer, true, 'lol', {})); + t.throws(() => { + __1.default.any(null, true); + }); + t.throws(() => { + __1.default.any(__1.default.string); + }); +}); +ava_1.default('is.all', t => { + t.true(__1.default.all(__1.default.object, {}, new Set(), new Map())); + t.true(__1.default.all(__1.default.boolean, true, false)); + t.false(__1.default.all(__1.default.string, '🦄', [])); + t.false(__1.default.all(__1.default.set, new Map(), {})); + t.throws(() => { + __1.default.all(null, true); + }); + t.throws(() => { + __1.default.all(__1.default.string); + }); +}); +//# sourceMappingURL=test.js.map \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/source/tests/test.js.map" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/source/tests/test.js.map" new file mode 100644 index 0000000000000000000000000000000000000000..ab9ec153117bbc7c8267ed76baa5d5c98990d0af --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/dist/source/tests/test.js.map" @@ -0,0 +1 @@ +{"version":3,"file":"test.js","sourceRoot":"","sources":["../../../source/tests/test.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,6BAA6B;AAC7B,6BAA+C;AAC/C,iCAA4B;AAC5B,0BAAmB;AAEnB,MAAM,eAAe,GAAG,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;AAKzE,0BAA2B,SAAQ,KAAK;CAAG;AAE3C,MAAM,QAAQ,GAAG,aAAK,EAAE,CAAC;AACzB,MAAM,gBAAgB,GAAG,CAAC,EAAU,EAAE,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;AAOpE,MAAM,KAAK,GAAG,IAAI,GAAG,CAAe;IACnC,CAAC,WAAW,EAAE;YACb,EAAE,EAAE,WAAC,CAAC,SAAS;YACf,QAAQ,EAAE;gBACT,SAAS;aACT;SACD,CAAC;IACF,CAAC,MAAM,EAAE;YACR,EAAE,EAAE,WAAC,CAAC,KAAK;YACX,QAAQ,EAAE;gBACT,IAAI;aACJ;SACD,CAAC;IACF,CAAC,QAAQ,EAAE;YACV,EAAE,EAAE,WAAC,CAAC,MAAM;YACZ,QAAQ,EAAE;gBACT,IAAI;gBACJ,aAAa;gBACb,EAAE;aACF;SACD,CAAC;IACF,CAAC,QAAQ,EAAE;YACV,EAAE,EAAE,WAAC,CAAC,MAAM;YACZ,QAAQ,EAAE;gBACT,CAAC;gBACD,GAAG;gBACH,CAAC;gBACD,CAAC,CAAC;gBACF,QAAQ;gBACR,CAAC,QAAQ;aACT;SACD,CAAC;IACF,CAAC,SAAS,EAAE;YACX,EAAE,EAAE,WAAC,CAAC,OAAO;YACb,QAAQ,EAAE;gBACT,IAAI,EAAE,KAAK;aACX;SACD,CAAC;IACF,CAAC,QAAQ,EAAE;YACV,EAAE,EAAE,WAAC,CAAC,MAAM;YACZ,QAAQ,EAAE;gBACT,MAAM,CAAC,IAAI,CAAC;aACZ;SACD,CAAC;IACF,CAAC,OAAO,EAAE;YACT,EAAE,EAAE,WAAC,CAAC,KAAK;YACX,QAAQ,EAAE;gBACT,CAAC,CAAC,EAAE,CAAC,CAAC;gBACN,IAAI,KAAK,CAAC,CAAC,CAAC;aACZ;SACD,CAAC;IACF,CAAC,UAAU,EAAE;YACZ,EAAE,EAAE,WAAC,CAAC,SAAS;YACf,QAAQ,EAAE;gBAET,iBAAgB,CAAC;gBACjB,cAAY,CAAC;gBACb,GAAG,EAAE,GAAE,CAAC;gBACR;0EAAkB,CAAC;iBAAA;gBACnB,QAAS,CAAC,MAAS,CAAC;aAEpB;SACD,CAAC;IACF,CAAC,QAAQ,EAAE;YACV,EAAE,EAAE,WAAC,CAAC,MAAM;YACZ,QAAQ,EAAE;gBACT,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC;aACjB;SACD,CAAC;IACF,CAAC,QAAQ,EAAE;YACV,EAAE,EAAE,WAAC,CAAC,MAAM;YACZ,QAAQ,EAAE;gBACT,EAAC,CAAC,EAAE,CAAC,EAAC;gBACN,MAAM,CAAC,MAAM,CAAC,EAAC,CAAC,EAAE,CAAC,EAAC,CAAC;aACrB;SACD,CAAC;IACF,CAAC,QAAQ,EAAE;YACV,EAAE,EAAE,WAAC,CAAC,MAAM;YACZ,QAAQ,EAAE;gBACT,IAAI;gBACJ,IAAI,MAAM,CAAC,KAAK,CAAC;aACjB;SACD,CAAC;IACF,CAAC,MAAM,EAAE;YACR,EAAE,EAAE,WAAC,CAAC,IAAI;YACV,QAAQ,EAAE;gBACT,IAAI,IAAI,EAAE;aACV;SACD,CAAC;IACF,CAAC,OAAO,EAAE;YACT,EAAE,EAAE,WAAC,CAAC,KAAK;YACX,QAAQ,EAAE;gBACT,IAAI,KAAK,CAAC,IAAI,CAAC;gBACf,IAAI,oBAAoB,EAAE;aAC1B;SACD,CAAC;IACF,CAAC,eAAe,EAAE;YACjB,EAAE,EAAE,WAAC,CAAC,aAAa;YACnB,QAAQ,EAAE;gBACT,OAAO,CAAC,OAAO,EAAE;aAEjB;SACD,CAAC;IACF,CAAC,SAAS,EAAE;YACX,EAAE,EAAE,WAAC,CAAC,OAAO;YACb,QAAQ,EAAE;gBACT,EAAC,IAAI,KAAI,CAAC,EAAE,KAAK,KAAI,CAAC,EAAC;aACvB;SACD,CAAC;IACF,CAAC,WAAW,EAAE;YACb,EAAE,EAAE,WAAC,CAAC,SAAS;YACf,QAAQ,EAAE;gBACT,CAAC,QAAS,CAAC,MAAK,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE;aAC7B;SACD,CAAC;IACF,CAAC,mBAAmB,EAAE;YACrB,EAAE,EAAE,WAAC,CAAC,iBAAiB;YACvB,QAAQ,EAAE;gBACT,QAAS,CAAC,MAAK,MAAM,CAAC,CAAC,CAAC,CAAC;aACzB;SACD,CAAC;IACF,CAAC,eAAe,EAAE;YACjB,EAAE,EAAE,WAAC,CAAC,aAAa;YACnB,QAAQ,EAAE;gBACT;0EAAkB,CAAC;iBAAA;gBACnB,GAAS,EAAE,gDAAE,CAAC,CAAA;aACd;SACD,CAAC;IACF,CAAC,KAAK,EAAE;YACP,EAAE,EAAE,WAAC,CAAC,GAAG;YACT,QAAQ,EAAE;gBACT,IAAI,GAAG,EAAE;aACT;SACD,CAAC;IACF,CAAC,KAAK,EAAE;YACP,EAAE,EAAE,WAAC,CAAC,GAAG;YACT,QAAQ,EAAE;gBACT,IAAI,GAAG,EAAE;aACT;SACD,CAAC;IACF,CAAC,SAAS,EAAE;YACX,EAAE,EAAE,WAAC,CAAC,OAAO;YACb,QAAQ,EAAE;gBACT,IAAI,OAAO,EAAE;aACb;SACD,CAAC;IACF,CAAC,SAAS,EAAE;YACX,EAAE,EAAE,WAAC,CAAC,OAAO;YACb,QAAQ,EAAE;gBACT,IAAI,OAAO,EAAE;aACb;SACD,CAAC;IACF,CAAC,WAAW,EAAE;YACb,EAAE,EAAE,WAAC,CAAC,SAAS;YACf,QAAQ,EAAE;gBACT,IAAI,SAAS,CAAC,CAAC,CAAC;aAChB;SACD,CAAC;IACF,CAAC,YAAY,EAAE;YACd,EAAE,EAAE,WAAC,CAAC,UAAU;YAChB,QAAQ,EAAE;gBACT,IAAI,UAAU,CAAC,CAAC,CAAC;aACjB;SACD,CAAC;IACF,CAAC,mBAAmB,EAAE;YACrB,EAAE,EAAE,WAAC,CAAC,iBAAiB;YACvB,QAAQ,EAAE;gBACT,IAAI,iBAAiB,CAAC,CAAC,CAAC;aACxB;SACD,CAAC;IACF,CAAC,YAAY,EAAE;YACd,EAAE,EAAE,WAAC,CAAC,UAAU;YAChB,QAAQ,EAAE;gBACT,IAAI,UAAU,CAAC,CAAC,CAAC;aACjB;SACD,CAAC;IACF,CAAC,aAAa,EAAE;YACf,EAAE,EAAE,WAAC,CAAC,WAAW;YACjB,QAAQ,EAAE;gBACT,IAAI,WAAW,CAAC,CAAC,CAAC;aAClB;SACD,CAAC;IACF,CAAC,YAAY,EAAE;YACd,EAAE,EAAE,WAAC,CAAC,UAAU;YAChB,QAAQ,EAAE;gBACT,IAAI,UAAU,CAAC,CAAC,CAAC;aACjB;SACD,CAAC;IACF,CAAC,aAAa,EAAE;YACf,EAAE,EAAE,WAAC,CAAC,WAAW;YACjB,QAAQ,EAAE;gBACT,IAAI,WAAW,CAAC,CAAC,CAAC;aAClB;SACD,CAAC;IACF,CAAC,cAAc,EAAE;YAChB,EAAE,EAAE,WAAC,CAAC,YAAY;YAClB,QAAQ,EAAE;gBACT,IAAI,YAAY,CAAC,CAAC,CAAC;aACnB;SACD,CAAC;IACF,CAAC,cAAc,EAAE;YAChB,EAAE,EAAE,WAAC,CAAC,YAAY;YAClB,QAAQ,EAAE;gBACT,IAAI,YAAY,CAAC,CAAC,CAAC;aACnB;SACD,CAAC;IACF,CAAC,aAAa,EAAE;YACf,EAAE,EAAE,WAAC,CAAC,WAAW;YACjB,QAAQ,EAAE;gBACT,IAAI,WAAW,CAAC,EAAE,CAAC;aACnB;SACD,CAAC;IACF,CAAC,KAAK,EAAE;YACP,EAAE,EAAE,WAAC,CAAC,GAAG;YACT,QAAQ,EAAE;gBACT,GAAG;gBACH,MAAM,CAAC,GAAG;aACV;SACD,CAAC;IACF,CAAC,iBAAiB,EAAE;YACnB,EAAE,EAAE,WAAC,CAAC,eAAe;YACrB,QAAQ,EAAE;gBACT,IAAI;gBACJ,SAAS;aACT;SACD,CAAC;IACF,CAAC,aAAa,EAAE;YACf,EAAE,EAAE,WAAC,CAAC,WAAW;YACjB,QAAQ,EAAE;gBACT,EAAC,CAAC,EAAE,CAAC,EAAC;gBACN,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;gBACnB,IAAI,MAAM,EAAE;aACZ;SACD,CAAC;IACF,CAAC,SAAS,EAAE;YACX,EAAE,EAAE,WAAC,CAAC,OAAO;YACb,QAAQ,EAAE;gBACT,CAAC;aACD;SACD,CAAC;IACF,CAAC,aAAa,EAAE;YACf,EAAE,EAAE,WAAC,CAAC,WAAW;YACjB,QAAQ,EAAE;gBACT,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC;gBACnB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC;aACpB;SACD,CAAC;IACF,CAAC,YAAY,EAAE;YACd,EAAE,EAAE,WAAC,CAAC,UAAU;YAChB,QAAQ,EAAE;gBACT,KAAK;gBACL,OAAO;gBACP,MAAM;gBACN,KAAK;gBACL,QAAQ;gBACR,QAAQ;aACR,CAAC,GAAG,CAAC,gBAAgB,CAAC;SAAE;KACzB,EAAE,CAAC,iBAAiB,EAAE;YACtB,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC,WAAC,CAAC,UAAU,CAAC,KAAK,CAAC;YACjC,QAAQ,EAAE;gBACT,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC;gBAC/B,QAAQ,CAAC,2BAA2B,CAAC,gBAAgB,EAAE,kCAAkC,CAAC;gBAC1F,QAAQ,CAAC,aAAa,CAAC,mBAAmB,CAAC;gBAC3C,QAAQ;gBACR,QAAQ,CAAC,cAAc,CAAC,kBAAkB,CAAC,SAAS,EAAE,yBAAyB,EAAE,kDAAkD,CAAC;gBACpI,QAAQ,CAAC,sBAAsB,EAAE;aACjC;SACD,CAAC;IACF,CAAC,UAAU,EAAE;YACZ,EAAE,EAAG,WAAC,CAAC,QAAQ;YACf,QAAQ,EAAE;gBACT,QAAQ;gBACR,CAAC,QAAQ;aACT;SACD,CAAC;CACF,CAAC,CAAC;AAGH,MAAM,QAAQ,GAAG,CAAC,CAA6B,EAAE,IAAY,EAAE,OAAkB,EAAE,EAAE;IACpF,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAEjC,EAAE,CAAC,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC;QAC5B,CAAC,CAAC,IAAI,CAAC,MAAM,IAAI,cAAc,CAAC,CAAC;QAEjC,MAAM,CAAC;IACR,CAAC;IAED,MAAM,EAAC,EAAE,EAAC,GAAG,QAAQ,CAAC;IAEtB,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,EAAC,QAAQ,EAAC,CAAC,IAAI,KAAK,CAAC,CAAC,CAAC;QAGvC,EAAE,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YAC5C,QAAQ,CAAC;QACV,CAAC;QAED,MAAM,MAAM,GAAG,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAE/D,GAAG,CAAC,CAAC,MAAM,OAAO,IAAI,QAAQ,CAAC,CAAC,CAAC;YAChC,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,UAAU,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;QACxD,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,aAAI,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE;IACd,CAAC,CAAC,EAAE,CAAC,WAAC,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,CAAC;IACtB,CAAC,CAAC,EAAE,CAAC,WAAC,CAAC,SAAS,CAAC,EAAE,WAAW,CAAC,CAAC;AAGjC,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,cAAc,EAAE,CAAC,CAAC,EAAE;IACxB,QAAQ,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAC/C,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,SAAS,EAAE,CAAC,CAAC,EAAE;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC;AAC1C,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE;IACrB,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE;IACrB,QAAQ,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,CAAC,CAAC,CAAC;AACtE,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE;IACtB,QAAQ,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AACxB,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE;IACrB,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,UAAU,EAAE,CAAC,CAAC,EAAE;IACpB,QAAQ,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AACtB,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,aAAa,EAAE,CAAC,CAAC,EAAE;IACvB,QAAQ,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,mBAAmB,EAAE,eAAe,CAAC,CAAC,CAAC;AACjE,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE;IACrB,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE;IACrB,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAErC,EAAE,CAAC,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC;QAC5B,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAAC,CAAC;QAEhC,MAAM,CAAC;IACR,CAAC;IAED,GAAG,CAAC,CAAC,MAAM,EAAE,IAAI,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;QACpC,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC;IACtB,CAAC;AACF,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE;IACrB,QAAQ,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC;AACvB,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,SAAS,EAAE,CAAC,CAAC,EAAE;IACnB,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AACrB,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,UAAU,EAAE,CAAC,CAAC,EAAE;IACpB,QAAQ,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;AACtB,CAAC,CAAC,CAAC;AAEH,EAAE,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;IACrB,aAAI,CAAC,kBAAkB,EAAE,CAAC,CAAC,EAAE;QAC5B,QAAQ,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC;IAC9B,CAAC,CAAC,CAAC;IAEH,aAAI,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE;QACtB,QAAQ,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,eAAe,CAAC,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;AAKJ,CAAC;AAED,aAAI,CAAC,cAAc,EAAE,CAAC,CAAC,EAAE;IACxB,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;AAC1B,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,sBAAsB,EAAE,CAAC,CAAC,EAAE;IAChC,QAAQ,CAAC,CAAC,EAAE,mBAAmB,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC;AAChD,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE;IAClB,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE;IAClB,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE;IACtB,QAAQ,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AACxB,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE;IACtB,QAAQ,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;AACxB,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,cAAc,EAAE,CAAC,CAAC,EAAE;IACxB,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;AAC1B,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,eAAe,EAAE,CAAC,CAAC,EAAE;IACzB,QAAQ,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;AACvC,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,sBAAsB,EAAE,CAAC,CAAC,EAAE;IAChC,QAAQ,CAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC;AAClC,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,eAAe,EAAE,CAAC,CAAC,EAAE;IACzB,QAAQ,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC;AAC3B,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC,EAAE;IAC1B,QAAQ,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC;AAC5B,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,eAAe,EAAE,CAAC,CAAC,EAAE;IACzB,QAAQ,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC;AAC3B,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC,EAAE;IAC1B,QAAQ,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC;AAC5B,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,iBAAiB,EAAE,CAAC,CAAC,EAAE;IAC3B,QAAQ,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC;AAC7B,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,iBAAiB,EAAE,CAAC,CAAC,EAAE;IAC3B,QAAQ,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC;AAC7B,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC,EAAE;IAC1B,QAAQ,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC;AAC5B,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,aAAa,EAAE,CAAC,CAAC,EAAE;IACvB,QAAQ,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC;AAC5B,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE;IACrB,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5B,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IACvB,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,MAAM,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC;IAC5B,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AACxB,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,UAAU,EAAE,CAAC,CAAC,EAAE;IACpB,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IACvB,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACnB,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IACtB,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;IAC3B,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC;AACtB,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE;IAClB,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AACpB,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,oBAAoB,EAAE,CAAC,CAAC,EAAE;IAC9B,QAAQ,CAAC,CAAC,EAAE,iBAAiB,EAAE,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;AACvD,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,cAAc,EAAE,CAAC,CAAC,EAAE;IACxB,MAAM,UAAU,GAAG;QAClB,SAAS;QACT,IAAI;QACJ,IAAI;QACJ,CAAC;QACD,QAAQ;QACR,CAAC,QAAQ;QACT,IAAI;QACJ,KAAK;QACL,MAAM,CAAC,IAAI,CAAC;KACZ,CAAC;IAEF,GAAG,CAAC,CAAC,MAAM,EAAE,IAAI,UAAU,CAAC,CAAC,CAAC;QAC7B,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC;IACzB,CAAC;AACF,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE;IACtB,QAAQ,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC;IAClD,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;AACzB,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC,EAAE;IAC1B,QAAQ,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;IAClD,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IACxC,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;AAC1C,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC,EAAE;IAC1B,QAAQ,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC;AACnD,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,aAAa,EAAE,CAAC,CAAC,EAAE;IACvB,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;IACvB,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;IACvB,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,QAAQ,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC;IAC9B,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC;IAC1B,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACvB,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;IACzB,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC9B,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;AACzB,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,UAAU,EAAE,CAAC,CAAC,EAAE;IACpB;KAAY;IACZ,MAAM,iBAAiB,GAAG;QACzB,GAAG;QACH,SAAU,SAAQ,GAAG;SAAG;KACxB,CAAC;IAEF,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,iBAAiB,CAAC,CAAC,CAAC;QACnC,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IACrB,CAAC;AACF,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,eAAe,EAAE,CAAC,CAAC,EAAE;IAGzB,MAAM,WAAW,GAAG;QACnB,IAAI,SAAS,CAAC,CAAC,CAAC;QAChB,IAAI,UAAU,CAAC,CAAC,CAAC;QACjB,IAAI,iBAAiB,CAAC,CAAC,CAAC;QACxB,IAAI,WAAW,CAAC,CAAC,CAAC;QAClB,IAAI,UAAU,CAAC,CAAC,CAAC;QACjB,IAAI,WAAW,CAAC,CAAC,CAAC;QAClB,IAAI,YAAY,CAAC,CAAC,CAAC;QACnB,IAAI,YAAY,CAAC,CAAC,CAAC;KACnB,CAAC;IAEF,GAAG,CAAC,CAAC,MAAM,EAAE,IAAI,WAAW,CAAC,CAAC,CAAC;QAC9B,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1B,CAAC;IAED,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,UAAU,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1C,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1B,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC;AAC3B,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,cAAc,EAAE,CAAC,CAAC,EAAE;IACxB,CAAC,GAAG,EAAE;QACL,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IAChC,CAAC,CAAC,EAAE,CAAC;IACL,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC;IACxB,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IAE/B,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAC;IACzB,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,SAAS,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAC,CAAC;IAC/B,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,SAAS,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC;AACjC,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE;IACtB,MAAM,CAAC,GAAG,CAAC,CAAC;IAEZ,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7B,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7B,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9B,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9B,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9B,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACjC,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACjC,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IAElC,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IACzB,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACxB,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAC1B,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACzB,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAE3B,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE;QACb,WAAC,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;IAEH,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE;QACb,WAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IACnB,CAAC,CAAC,CAAC;IAEH,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE;QACb,WAAC,CAAC,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,eAAe,EAAE,CAAC,CAAC,EAAE;IACzB,QAAQ,CAAC,CAAC,EAAE,YAAY,CAAC,CAAC;IAC1B,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,UAAU,CAAC,EAAC,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAC,CAAC,CAAC,CAAC;AACvD,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,aAAa,EAAE,CAAC,CAAC,EAAE;IACvB,QAAQ,CAAC,CAAC,EAAE,UAAU,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;AACrC,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,SAAS,EAAE,CAAC,CAAC,EAAE;IACnB,GAAG,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7B,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;IACpB,CAAC;IAED,GAAG,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;QAC7B,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;IACrB,CAAC;AACF,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE;IAClB,GAAG,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;QAC9B,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IACnB,CAAC;IAED,GAAG,CAAC,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;QAC9B,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC;IACpB,CAAC;AACF,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,UAAU,EAAE,CAAC,CAAC,EAAE;IACpB,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IACtB,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;IAE3B,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC;IACvB,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IAEvB,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC;IAEvB,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAEzB,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IACpB,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,KAAK,CAAC,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC,CAAC,CAAC;IAElC,MAAM,OAAO,GAAG,IAAI,GAAG,EAAE,CAAC;IAC1B,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;IAEzB,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;IAC7B,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;IAE1B,MAAM,OAAO,GAAG,IAAI,GAAG,EAAE,CAAC;IAC1B,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;IAEzB,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IACf,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;AAC3B,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,sBAAsB,EAAE,CAAC,CAAC,EAAE;IAChC,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;IAClC,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC;IACnC,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC;AACzC,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE;IAClB,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,GAAG,CAAC,WAAC,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC,CAAC;IACxC,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,GAAG,CAAC,WAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC;IAC/C,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,GAAG,CAAC,WAAC,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IACvC,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,GAAG,CAAC,WAAC,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC;IAE3C,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE;QACb,WAAC,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACnB,CAAC,CAAC,CAAC;IAEH,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE;QACb,WAAC,CAAC,GAAG,CAAC,WAAC,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,aAAI,CAAC,QAAQ,EAAE,CAAC,CAAC,EAAE;IAClB,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,GAAG,CAAC,WAAC,CAAC,MAAM,EAAE,EAAE,EAAE,IAAI,GAAG,EAAE,EAAE,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC;IAClD,CAAC,CAAC,IAAI,CAAC,WAAC,CAAC,GAAG,CAAC,WAAC,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC;IACtC,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,GAAG,CAAC,WAAC,CAAC,MAAM,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC,CAAC;IACnC,CAAC,CAAC,KAAK,CAAC,WAAC,CAAC,GAAG,CAAC,WAAC,CAAC,GAAG,EAAE,IAAI,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;IAErC,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE;QACb,WAAC,CAAC,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;IACnB,CAAC,CAAC,CAAC;IAEH,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE;QACb,WAAC,CAAC,GAAG,CAAC,WAAC,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/license" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/license" new file mode 100644 index 0000000000000000000000000000000000000000..e7af2f77107d73046421ef56c4684cbfdd3c1e89 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/license" @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) Sindre Sorhus (sindresorhus.com) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..c4a3a24f843682ad12b8a620118f06fd87a4a189 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/package.json" @@ -0,0 +1,62 @@ +{ + "name": "@sindresorhus/is", + "version": "0.7.0", + "description": "Type check values: `is.string('🦄') //=> true`", + "license": "MIT", + "repository": "sindresorhus/is", + "author": { + "name": "Sindre Sorhus", + "email": "sindresorhus@gmail.com", + "url": "sindresorhus.com" + }, + "publishConfig": { + "access": "public" + }, + "main": "dist/index.js", + "engines": { + "node": ">=4" + }, + "scripts": { + "lint": "tslint --format stylish --project .", + "build": "tsc", + "test": "npm run lint && npm run build && ava dist/tests", + "prepublish": "npm run build && del dist/tests" + }, + "files": [ + "dist" + ], + "keywords": [ + "type", + "types", + "is", + "check", + "checking", + "validate", + "validation", + "utility", + "util", + "typeof", + "instanceof", + "object", + "assert", + "assertion", + "test", + "kind", + "primitive", + "verify", + "compare" + ], + "devDependencies": { + "@types/jsdom": "^2.0.31", + "@types/node": "^8.0.47", + "@types/tempy": "^0.1.0", + "ava": "*", + "del-cli": "^1.1.0", + "jsdom": "^9.12.0", + "tempy": "^0.2.1", + "tslint": "^5.8.0", + "tslint-xo": "^0.3.0", + "typescript": "^2.6.1" + }, + "types": "dist/index.d.ts" +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/readme.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/readme.md" new file mode 100644 index 0000000000000000000000000000000000000000..67fad06e53463416609fbcf765e2de4066ef0d2a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@sindresorhus/is/readme.md" @@ -0,0 +1,323 @@ +# is [![Build Status](https://travis-ci.org/sindresorhus/is.svg?branch=master)](https://travis-ci.org/sindresorhus/is) + +> Type check values: `is.string('🦄') //=> true` + + + + +## Install + +``` +$ npm install @sindresorhus/is +``` + + +## Usage + +```js +const is = require('@sindresorhus/is'); + +is('🦄'); +//=> 'string' + +is(new Map()); +//=> 'Map' + +is.number(6); +//=> true +``` + + +## API + +### is(value) + +Returns the type of `value`. + +Primitives are lowercase and object types are camelcase. + +Example: + +- `'undefined'` +- `'null'` +- `'string'` +- `'symbol'` +- `'Array'` +- `'Function'` +- `'Object'` + +Note: It will throw if you try to feed it object-wrapped primitives, as that's a bad practice. For example `new String('foo')`. + +### is.{method} + +All the below methods accept a value and returns a boolean for whether the value is of the desired type. + +#### Primitives + +##### .undefined(value) +##### .null(value) +##### .string(value) +##### .number(value) +##### .boolean(value) +##### .symbol(value) + +#### Built-in types + +##### .array(value) +##### .function(value) +##### .buffer(value) +##### .object(value) + +Keep in mind that [functions are objects too](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions). + +##### .regExp(value) +##### .date(value) +##### .error(value) +##### .nativePromise(value) +##### .promise(value) + +Returns `true` for any object with a `.then()` and `.catch()` method. Prefer this one over `.nativePromise()` as you usually want to allow userland promise implementations too. + +##### .generator(value) + +Returns `true` for any object that implements its own `.next()` and `.throw()` methods and has a function definition for `Symbol.iterator`. + +##### .generatorFunction(value) + +##### .asyncFunction(value) + +Returns `true` for any `async` function that can be called with the `await` operator. + +```js +is.asyncFunction(async () => {}); +// => true + +is.asyncFunction(() => {}); +// => false +``` + +##### .boundFunction(value) + +Returns `true` for any `bound` function. + +```js +is.boundFunction(() => {}); +// => true + +is.boundFunction(function () {}.bind(null)); +// => true + +is.boundFunction(function () {}); +// => false +``` + +##### .map(value) +##### .set(value) +##### .weakMap(value) +##### .weakSet(value) + +#### Typed arrays + +##### .int8Array(value) +##### .uint8Array(value) +##### .uint8ClampedArray(value) +##### .int16Array(value) +##### .uint16Array(value) +##### .int32Array(value) +##### .uint32Array(value) +##### .float32Array(value) +##### .float64Array(value) + +#### Structured data + +##### .arrayBuffer(value) +##### .sharedArrayBuffer(value) +##### .dataView(value) + +#### Miscellaneous + +##### .directInstanceOf(value, class) + +Returns `true` if `value` is a direct instance of `class`. + +```js +is.directInstanceOf(new Error(), Error); +//=> true + +class UnicornError extends Error {}; + +is.directInstanceOf(new UnicornError(), Error); +//=> false +``` + +##### .truthy(value) + +Returns `true` for all values that evaluate to true in a boolean context: + +```js +is.truthy('🦄'); +//=> true + +is.truthy(undefined); +//=> false +``` + +##### .falsy(value) + +Returns `true` if `value` is one of: `false`, `0`, `''`, `null`, `undefined`, `NaN`. + +##### .nan(value) +##### .nullOrUndefined(value) +##### .primitive(value) + +JavaScript primitives are as follows: `null`, `undefined`, `string`, `number`, `boolean`, `symbol`. + +##### .integer(value) + +##### .safeInteger(value) + +Returns `true` if `value` is a [safe integer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger). + +##### .plainObject(value) + +An object is plain if it's created by either `{}`, `new Object()`, or `Object.create(null)`. + +##### .iterable(value) +##### .class(value) + +Returns `true` for instances created by a ES2015 class. + +##### .typedArray(value) + +##### .arrayLike(value) + +A `value` is array-like if it is not a function and has a `value.length` that is a safe integer greater than or equal to 0. + +```js +is.arrayLike(document.forms); +//=> true + +function () { + is.arrayLike(arguments); + //=> true +} +``` + +##### .inRange(value, range) + +Check if `value` (number) is in the given `range`. The range is an array of two values, lower bound and upper bound, in no specific order. + +```js +is.inRange(3, [0, 5]); +is.inRange(3, [5, 0]); +is.inRange(0, [-2, 2]); +``` + +##### .inRange(value, upperBound) + +Check if `value` (number) is in the range of `0` to `upperBound`. + +```js +is.inRange(3, 10); +``` + +##### .domElement(value) + +Returns `true` if `value` is a DOM Element. + +##### .nodeStream(value) + +Returns `true` if `value` is a Node.js [stream](https://nodejs.org/api/stream.html). + +```js +const fs = require('fs'); +is.nodeStream(fs.createReadStream('unicorn.png')); +//=> true +``` + +##### .infinite(value) + +Check if `value` is `Infinity` or `-Infinity`. + +##### .even(value) + +Returns `true` if `value` is an even integer. + +##### .odd(value) + +Returns `true` if `value` is an odd integer. + +##### .empty(value) + +Returns `true` if `value` is falsy or an empty string, array, object, map, or set. + +##### .emptyOrWhitespace(value) + +Returns `true` if `is.empty(value)` or a string that is all whitespace. + + +##### .any(predicate, ...values) + +Returns `true` if **any** of the input `values` returns true in the `predicate`: + +```js +is.any(is.string, {}, true, '🦄'); +//=> true + +is.any(is.boolean, 'unicorns', [], new Map()); +//=> false +``` + +##### .all(predicate, ...values) + +Returns `true` if **all** of the input `values` returns true in the `predicate`: + +```js +is.all(is.object, {}, new Map(), new Set()); +//=> true + +is.all(is.string, '🦄', [], 'unicorns'); +//=> false +``` + +## FAQ + +### Why yet another type checking module? + +There are hundreds of type checking modules on npm, unfortunately, I couldn't find any that fit my needs: + +- Includes both type methods and ability to get the type +- Types of primitives returned as lowercase and object types as camelcase +- Covers all built-ins +- Unsurprising behavior +- Well-maintained +- Comprehensive test suite + +For the ones I found, pick 3 of these. + +The most common mistakes I noticed in these modules was using `instanceof` for type checking, forgetting that functions are objects, and omitting `symbol` as a primitive. + + +## Related + +- [is-stream](https://github.com/sindresorhus/is-stream) - Check if something is a Node.js stream +- [is-observable](https://github.com/sindresorhus/is-observable) - Check if a value is an Observable +- [file-type](https://github.com/sindresorhus/file-type) - Detect the file type of a Buffer/Uint8Array +- [is-ip](https://github.com/sindresorhus/is-ip) - Check if a string is an IP address +- [is-array-sorted](https://github.com/sindresorhus/is-array-sorted) - Check if an Array is sorted +- [is-error-constructor](https://github.com/sindresorhus/is-error-constructor) - Check if a value is an error constructor +- [is-empty-iterable](https://github.com/sindresorhus/is-empty-iterable) - Check if an Iterable is empty +- [is-blob](https://github.com/sindresorhus/is-blob) - Check if a value is a Blob - File-like object of immutable, raw data +- [has-emoji](https://github.com/sindresorhus/has-emoji) - Check whether a string has any emoji + + +## Created by + +- [Sindre Sorhus](https://github.com/sindresorhus) +- [Giora Guttsait](https://github.com/gioragutt) +- [Brandon Smith](https://github.com/brandon93s) + + +## License + +MIT diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/accepts/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/accepts/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..21071075c24599ee98254f702bcfc504cdc275a6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/accepts/LICENSE" @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/accepts/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/accepts/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..d28c312ab493f998097cc4ab77457c72857082a3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/accepts/README.md" @@ -0,0 +1,16 @@ +# Installation +> `npm install --save @types/accepts` + +# Summary +This package contains type definitions for accepts (https://github.com/jshttp/accepts). + +# Details +Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/accepts + +Additional Details + * Last updated: Tue, 13 Feb 2018 02:54:18 GMT + * Dependencies: http, node + * Global values: none + +# Credits +These definitions were written by Stefan Reichel , Brice BERNARD . diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/accepts/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/accepts/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..02cb0fbb970ebf95ac0a72a97991a49802814e88 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/accepts/index.d.ts" @@ -0,0 +1,100 @@ +// Type definitions for accepts 1.3 +// Project: https://github.com/jshttp/accepts +// Definitions by: Stefan Reichel +// Brice BERNARD +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +import { IncomingMessage } from "http"; + +declare namespace accepts { + interface Accepts { + /** + * Return the first accepted charset. If nothing in `charsets` is accepted, then `false` is returned. + * If no charsets are supplied, all accepted charsets are returned, in the order of the client's preference + * (most preferred first). + */ + charset(): string[]; + charset(charsets: string[]): string | false; + charset(...charsets: string[]): string | false; + + /** + * Return the first accepted charset. If nothing in `charsets` is accepted, then `false` is returned. + * If no charsets are supplied, all accepted charsets are returned, in the order of the client's preference + * (most preferred first). + */ + charsets(): string[]; + charsets(charsets: string[]): string | false; + charsets(...charsets: string[]): string | false; + + /** + * Return the first accepted encoding. If nothing in `encodings` is accepted, then `false` is returned. + * If no encodings are supplied, all accepted encodings are returned, in the order of the client's preference + * (most preferred first). + */ + encoding(): string[]; + encoding(encodings: string[]): string | false; + encoding(...encodings: string[]): string | false; + + /** + * Return the first accepted encoding. If nothing in `encodings` is accepted, then `false` is returned. + * If no encodings are supplied, all accepted encodings are returned, in the order of the client's preference + * (most preferred first). + */ + encodings(): string[]; + encodings(encodings: string[]): string | false; + encodings(...encodings: string[]): string | false; + + /** + * Return the first accepted language. If nothing in `languages` is accepted, then `false` is returned. + * If no languaes are supplied, all accepted languages are returned, in the order of the client's preference + * (most preferred first). + */ + language(): string[]; + language(languages: string[]): string | false; + language(...languages: string[]): string | false; + + /** + * Return the first accepted language. If nothing in `languages` is accepted, then `false` is returned. + * If no languaes are supplied, all accepted languages are returned, in the order of the client's preference + * (most preferred first). + */ + languages(): string[]; + languages(languages: string[]): string | false; + languages(...languages: string[]): string | false; + + /** + * Return the first accepted language. If nothing in `languages` is accepted, then `false` is returned. + * If no languaes are supplied, all accepted languages are returned, in the order of the client's preference + * (most preferred first). + */ + lang(): string[]; + lang(languages: string[]): string | false; + lang(...languages: string[]): string | false; + + /** + * Return the first accepted language. If nothing in `languages` is accepted, then `false` is returned. + * If no languaes are supplied, all accepted languages are returned, in the order of the client's preference + * (most preferred first). + */ + langs(): string[]; + langs(languages: string[]): string | false; + langs(...languages: string[]): string | false; + + /** + * Return the first accepted type (and it is returned as the same text as what appears in the `types` array). If nothing in `types` is accepted, then `false` is returned. + * If no types are supplied, return the entire set of acceptable types. + * + * The `types` array can contain full MIME types or file extensions. Any value that is not a full MIME types is passed to `require('mime-types').lookup`. + */ + type(types: string[]): string[] | string | false; + type(...types: string[]): string[] | string | false; + types(types: string[]): string[] | string | false; + types(...types: string[]): string[] | string | false; + } +} + +declare function accepts(req: IncomingMessage): accepts.Accepts; + +export = accepts; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/accepts/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/accepts/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..3548c41438b0e7a5abd5f1b4d782f40fb0827d3f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/accepts/package.json" @@ -0,0 +1,29 @@ +{ + "name": "@types/accepts", + "version": "1.3.5", + "description": "TypeScript definitions for accepts", + "license": "MIT", + "contributors": [ + { + "name": "Stefan Reichel", + "url": "https://github.com/bomret", + "githubUsername": "bomret" + }, + { + "name": "Brice BERNARD", + "url": "https://github.com/brikou", + "githubUsername": "brikou" + } + ], + "main": "", + "repository": { + "type": "git", + "url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git" + }, + "scripts": {}, + "dependencies": { + "@types/node": "*" + }, + "typesPublisherContentHash": "0c1b369f923466e74bec6da148c76a05cc138923a142ea737eff8cf2b29b559f", + "typeScriptVersion": "2.0" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/body-parser/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/body-parser/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..21071075c24599ee98254f702bcfc504cdc275a6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/body-parser/LICENSE" @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/body-parser/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/body-parser/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..b7cdc868debe3113ed7ee17742618e1173d0fbfd --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/body-parser/README.md" @@ -0,0 +1,16 @@ +# Installation +> `npm install --save @types/body-parser` + +# Summary +This package contains type definitions for body-parser (https://github.com/expressjs/body-parser). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/body-parser. + +### Additional Details + * Last updated: Mon, 10 Feb 2020 21:19:04 GMT + * Dependencies: [@types/connect](https://npmjs.com/package/@types/connect), [@types/node](https://npmjs.com/package/@types/node) + * Global values: none + +# Credits +These definitions were written by Santi Albo (https://github.com/santialbo), Vilic Vane (https://github.com/vilic), Jonathan Häberle (https://github.com/dreampulse), Gevik Babakhani (https://github.com/blendsdk), Tomasz Łaziuk (https://github.com/tlaziuk), Jason Walton (https://github.com/jwalton), and Piotr Błażejewicz (https://github.com/peterblazejewicz). diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/body-parser/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/body-parser/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..c3196bb911d3f759707f94ecbbea81579ae0e70b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/body-parser/index.d.ts" @@ -0,0 +1,104 @@ +// Type definitions for body-parser 1.19 +// Project: https://github.com/expressjs/body-parser +// Definitions by: Santi Albo +// Vilic Vane +// Jonathan Häberle +// Gevik Babakhani +// Tomasz Łaziuk +// Jason Walton +// Piotr Błażejewicz +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +import { NextHandleFunction } from 'connect'; +import * as http from 'http'; + +// for docs go to https://github.com/expressjs/body-parser/tree/1.19.0#body-parser + +/** @deprecated */ +declare function bodyParser( + options?: bodyParser.OptionsJson & bodyParser.OptionsText & bodyParser.OptionsUrlencoded, +): NextHandleFunction; + +declare namespace bodyParser { + interface Options { + /** When set to true, then deflated (compressed) bodies will be inflated; when false, deflated bodies are rejected. Defaults to true. */ + inflate?: boolean; + /** + * Controls the maximum request body size. If this is a number, + * then the value specifies the number of bytes; if it is a string, + * the value is passed to the bytes library for parsing. Defaults to '100kb'. + */ + limit?: number | string; + /** + * The type option is used to determine what media type the middleware will parse + */ + type?: string | string[] | ((req: http.IncomingMessage) => any); + /** + * The verify option, if supplied, is called as verify(req, res, buf, encoding), + * where buf is a Buffer of the raw request body and encoding is the encoding of the request. + */ + verify?(req: http.IncomingMessage, res: http.ServerResponse, buf: Buffer, encoding: string): void; + } + + interface OptionsJson extends Options { + /** + * + * The reviver option is passed directly to JSON.parse as the second argument. + */ + reviver?(key: string, value: any): any; + /** + * When set to `true`, will only accept arrays and objects; + * when `false` will accept anything JSON.parse accepts. Defaults to `true`. + */ + strict?: boolean; + } + + interface OptionsText extends Options { + /** + * Specify the default character set for the text content if the charset + * is not specified in the Content-Type header of the request. + * Defaults to `utf-8`. + */ + defaultCharset?: string; + } + + interface OptionsUrlencoded extends Options { + /** + * The extended option allows to choose between parsing the URL-encoded data + * with the querystring library (when `false`) or the qs library (when `true`). + */ + extended?: boolean; + /** + * The parameterLimit option controls the maximum number of parameters + * that are allowed in the URL-encoded data. If a request contains more parameters than this value, + * a 413 will be returned to the client. Defaults to 1000. + */ + parameterLimit?: number; + } + + /** + * Returns middleware that only parses json and only looks at requests + * where the Content-Type header matches the type option. + */ + function json(options?: OptionsJson): NextHandleFunction; + /** + * Returns middleware that parses all bodies as a Buffer and only looks at requests + * where the Content-Type header matches the type option. + */ + function raw(options?: Options): NextHandleFunction; + + /** + * Returns middleware that parses all bodies as a string and only looks at requests + * where the Content-Type header matches the type option. + */ + function text(options?: OptionsText): NextHandleFunction; + /** + * Returns middleware that only parses urlencoded bodies and only looks at requests + * where the Content-Type header matches the type option + */ + function urlencoded(options?: OptionsUrlencoded): NextHandleFunction; +} + +export = bodyParser; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/body-parser/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/body-parser/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..d49920d4e474658595c25e96ee4ea56edfb7958b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/body-parser/package.json" @@ -0,0 +1,57 @@ +{ + "name": "@types/body-parser", + "version": "1.19.0", + "description": "TypeScript definitions for body-parser", + "license": "MIT", + "contributors": [ + { + "name": "Santi Albo", + "url": "https://github.com/santialbo", + "githubUsername": "santialbo" + }, + { + "name": "Vilic Vane", + "url": "https://github.com/vilic", + "githubUsername": "vilic" + }, + { + "name": "Jonathan Häberle", + "url": "https://github.com/dreampulse", + "githubUsername": "dreampulse" + }, + { + "name": "Gevik Babakhani", + "url": "https://github.com/blendsdk", + "githubUsername": "blendsdk" + }, + { + "name": "Tomasz Łaziuk", + "url": "https://github.com/tlaziuk", + "githubUsername": "tlaziuk" + }, + { + "name": "Jason Walton", + "url": "https://github.com/jwalton", + "githubUsername": "jwalton" + }, + { + "name": "Piotr Błażejewicz", + "url": "https://github.com/peterblazejewicz", + "githubUsername": "peterblazejewicz" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/body-parser" + }, + "scripts": {}, + "dependencies": { + "@types/connect": "*", + "@types/node": "*" + }, + "typesPublisherContentHash": "4257cff3580f6064eb283c690c28aa3a5347cd3cae2a2e208b8f23c61705724a", + "typeScriptVersion": "2.8" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/connect/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/connect/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..9e841e7a26e4eb057b24511e7b92d42b257a80e5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/connect/LICENSE" @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/connect/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/connect/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..0edaf73c420f08efe4d95fd6f6788cdfc7b51bd7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/connect/README.md" @@ -0,0 +1,16 @@ +# Installation +> `npm install --save @types/connect` + +# Summary +This package contains type definitions for connect (https://github.com/senchalabs/connect). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/connect. + +### Additional Details + * Last updated: Tue, 06 Jul 2021 20:32:28 GMT + * Dependencies: [@types/node](https://npmjs.com/package/@types/node) + * Global values: none + +# Credits +These definitions were written by [Maxime LUCE](https://github.com/SomaticIT), and [Evan Hahn](https://github.com/EvanHahn). diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/connect/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/connect/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..c1d5aa86631720b3ccd29e0b74d01a5fd17b26de --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/connect/index.d.ts" @@ -0,0 +1,93 @@ +// Type definitions for connect v3.4.0 +// Project: https://github.com/senchalabs/connect +// Definitions by: Maxime LUCE +// Evan Hahn +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + + +import * as http from "http"; + +/** + * Create a new connect server. + */ +declare function createServer(): createServer.Server; + +declare namespace createServer { + export type ServerHandle = HandleFunction | http.Server; + + export class IncomingMessage extends http.IncomingMessage { + originalUrl?: http.IncomingMessage["url"] | undefined; + } + + type NextFunction = (err?: any) => void; + + export type SimpleHandleFunction = (req: IncomingMessage, res: http.ServerResponse) => void; + export type NextHandleFunction = (req: IncomingMessage, res: http.ServerResponse, next: NextFunction) => void; + export type ErrorHandleFunction = (err: any, req: IncomingMessage, res: http.ServerResponse, next: NextFunction) => void; + export type HandleFunction = SimpleHandleFunction | NextHandleFunction | ErrorHandleFunction; + + export interface ServerStackItem { + route: string; + handle: ServerHandle; + } + + export interface Server extends NodeJS.EventEmitter { + (req: http.IncomingMessage, res: http.ServerResponse, next?: Function): void; + + route: string; + stack: ServerStackItem[]; + + /** + * Utilize the given middleware `handle` to the given `route`, + * defaulting to _/_. This "route" is the mount-point for the + * middleware, when given a value other than _/_ the middleware + * is only effective when that segment is present in the request's + * pathname. + * + * For example if we were to mount a function at _/admin_, it would + * be invoked on _/admin_, and _/admin/settings_, however it would + * not be invoked for _/_, or _/posts_. + */ + use(fn: NextHandleFunction): Server; + use(fn: HandleFunction): Server; + use(route: string, fn: NextHandleFunction): Server; + use(route: string, fn: HandleFunction): Server; + + /** + * Handle server requests, punting them down + * the middleware stack. + */ + handle(req: http.IncomingMessage, res: http.ServerResponse, next: Function): void; + + /** + * Listen for connections. + * + * This method takes the same arguments + * as node's `http.Server#listen()`. + * + * HTTP and HTTPS: + * + * If you run your application both as HTTP + * and HTTPS you may wrap them individually, + * since your Connect "server" is really just + * a JavaScript `Function`. + * + * var connect = require('connect') + * , http = require('http') + * , https = require('https'); + * + * var app = connect(); + * + * http.createServer(app).listen(80); + * https.createServer(options, app).listen(443); + */ + listen(port: number, hostname?: string, backlog?: number, callback?: Function): http.Server; + listen(port: number, hostname?: string, callback?: Function): http.Server; + listen(path: string, callback?: Function): http.Server; + listen(handle: any, listeningListener?: Function): http.Server; + } +} + +export = createServer; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/connect/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/connect/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..dff5f1040105560443000b8d643df9b328c0e9a8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/connect/package.json" @@ -0,0 +1,32 @@ +{ + "name": "@types/connect", + "version": "3.4.35", + "description": "TypeScript definitions for connect", + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/connect", + "license": "MIT", + "contributors": [ + { + "name": "Maxime LUCE", + "url": "https://github.com/SomaticIT", + "githubUsername": "SomaticIT" + }, + { + "name": "Evan Hahn", + "url": "https://github.com/EvanHahn", + "githubUsername": "EvanHahn" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/connect" + }, + "scripts": {}, + "dependencies": { + "@types/node": "*" + }, + "typesPublisherContentHash": "09c0dcec5f675cb2bdd7487a85447955f769ef4ab174294478c4f055b528fecc", + "typeScriptVersion": "3.6" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/content-disposition/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/content-disposition/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..9e841e7a26e4eb057b24511e7b92d42b257a80e5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/content-disposition/LICENSE" @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/content-disposition/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/content-disposition/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..bf177a4a2d96758778b480765d7c1462cc1bafc5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/content-disposition/README.md" @@ -0,0 +1,73 @@ +# Installation +> `npm install --save @types/content-disposition` + +# Summary +This package contains type definitions for content-disposition (https://github.com/jshttp/content-disposition). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/content-disposition. +## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/content-disposition/index.d.ts) +````ts +// Type definitions for content-disposition 0.5 +// Project: https://github.com/jshttp/content-disposition +// Definitions by: Stefan Reichel +// Piotr Błażejewicz +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare namespace contentDisposition { + /** + * Class for parsed Content-Disposition header for v8 optimization + */ + interface ContentDisposition { + /** + * The disposition type (always lower case) + */ + type: 'attachment' | 'inline' | string; + /** + * An object of the parameters in the disposition + * (name of parameter always lower case and extended versions replace non-extended versions) + */ + parameters: any; + } + + interface Options { + /** + * Specifies the disposition type. + * This can also be "inline", or any other value (all values except `inline` are treated like attachment, + * but can convey additional information if both parties agree to it). + * The `type` is normalized to lower-case. + * @default 'attachment' + */ + type?: 'attachment' | 'inline' | string | undefined; + /** + * If the filename option is outside ISO-8859-1, + * then the file name is actually stored in a supplemental field for clients + * that support Unicode file names and a ISO-8859-1 version of the file name is automatically generated + * @default true + */ + fallback?: string | boolean | undefined; + } + + /** + * Parse a Content-Disposition header string + */ + function parse(contentDispositionHeader: string): ContentDisposition; +} + +/** + * Create an attachment `Content-Disposition` header value using the given file name, if supplied. + * The `filename` is optional and if no file name is desired, but you want to specify options, set `filename` to undefined. + */ +declare function contentDisposition(filename?: string, options?: contentDisposition.Options): string; + +export = contentDisposition; + +```` + +### Additional Details + * Last updated: Tue, 06 Jul 2021 20:32:29 GMT + * Dependencies: none + * Global values: none + +# Credits +These definitions were written by [Stefan Reichel](https://github.com/bomret), and [Piotr Błażejewicz](https://github.com/peterblazejewicz). diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/content-disposition/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/content-disposition/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..ebcf98f876cd562a57b42da8a3f733178dd53b04 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/content-disposition/index.d.ts" @@ -0,0 +1,53 @@ +// Type definitions for content-disposition 0.5 +// Project: https://github.com/jshttp/content-disposition +// Definitions by: Stefan Reichel +// Piotr Błażejewicz +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare namespace contentDisposition { + /** + * Class for parsed Content-Disposition header for v8 optimization + */ + interface ContentDisposition { + /** + * The disposition type (always lower case) + */ + type: 'attachment' | 'inline' | string; + /** + * An object of the parameters in the disposition + * (name of parameter always lower case and extended versions replace non-extended versions) + */ + parameters: any; + } + + interface Options { + /** + * Specifies the disposition type. + * This can also be "inline", or any other value (all values except `inline` are treated like attachment, + * but can convey additional information if both parties agree to it). + * The `type` is normalized to lower-case. + * @default 'attachment' + */ + type?: 'attachment' | 'inline' | string | undefined; + /** + * If the filename option is outside ISO-8859-1, + * then the file name is actually stored in a supplemental field for clients + * that support Unicode file names and a ISO-8859-1 version of the file name is automatically generated + * @default true + */ + fallback?: string | boolean | undefined; + } + + /** + * Parse a Content-Disposition header string + */ + function parse(contentDispositionHeader: string): ContentDisposition; +} + +/** + * Create an attachment `Content-Disposition` header value using the given file name, if supplied. + * The `filename` is optional and if no file name is desired, but you want to specify options, set `filename` to undefined. + */ +declare function contentDisposition(filename?: string, options?: contentDisposition.Options): string; + +export = contentDisposition; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/content-disposition/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/content-disposition/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..6e710057adc6b2b7e3e6cb07e5af2376baec4346 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/content-disposition/package.json" @@ -0,0 +1,30 @@ +{ + "name": "@types/content-disposition", + "version": "0.5.4", + "description": "TypeScript definitions for content-disposition", + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/content-disposition", + "license": "MIT", + "contributors": [ + { + "name": "Stefan Reichel", + "url": "https://github.com/bomret", + "githubUsername": "bomret" + }, + { + "name": "Piotr Błażejewicz", + "url": "https://github.com/peterblazejewicz", + "githubUsername": "peterblazejewicz" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/content-disposition" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "e1c455e670bbbdbc786d061c9397d4cd278d4d3848dfae1a6583f04b6a93633c", + "typeScriptVersion": "3.6" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cookies/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cookies/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..9e841e7a26e4eb057b24511e7b92d42b257a80e5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cookies/LICENSE" @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cookies/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cookies/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..73fd396eda442f36d08c0378c8223910f1204b51 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cookies/README.md" @@ -0,0 +1,16 @@ +# Installation +> `npm install --save @types/cookies` + +# Summary +This package contains type definitions for cookies (https://github.com/pillarjs/cookies). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cookies. + +### Additional Details + * Last updated: Tue, 06 Jul 2021 20:32:31 GMT + * Dependencies: [@types/keygrip](https://npmjs.com/package/@types/keygrip), [@types/express](https://npmjs.com/package/@types/express), [@types/connect](https://npmjs.com/package/@types/connect), [@types/node](https://npmjs.com/package/@types/node) + * Global values: none + +# Credits +These definitions were written by [Wang Zishi](https://github.com/WangZishi), [jKey Lu](https://github.com/jkeylu), and [BendingBender](https://github.com/BendingBender). diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cookies/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cookies/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..30014bf409d8e258f84a9b7052fa94495eb09471 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cookies/index.d.ts" @@ -0,0 +1,165 @@ +// Type definitions for cookies 0.7 +// Project: https://github.com/pillarjs/cookies +// Definitions by: Wang Zishi +// jKey Lu +// BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/// +import { IncomingMessage, ServerResponse } from 'http'; +import * as Keygrip from 'keygrip'; +import * as express from 'express'; +import * as connect from 'connect'; + +interface Cookies { + secure: boolean; + request: IncomingMessage; + response: ServerResponse; + + /** + * This extracts the cookie with the given name from the + * Cookie header in the request. If such a cookie exists, + * its value is returned. Otherwise, nothing is returned. + */ + get(name: string, opts?: Cookies.GetOption): string | undefined; + + /** + * This sets the given cookie in the response and returns + * the current context to allow chaining.If the value is omitted, + * an outbound header with an expired date is used to delete the cookie. + */ + set(name: string, value?: string | null, opts?: Cookies.SetOption): this; +} + +declare namespace Cookies { + /** + * for backward-compatibility + */ + type ICookies = Cookies; + /** + * for backward-compatibility + */ + type IOptions = SetOption; + + interface Option { + keys?: string[] | Keygrip | undefined; + secure?: boolean | undefined; + } + + interface GetOption { + signed: boolean; + } + + interface SetOption { + /** + * a number representing the milliseconds from Date.now() for expiry + */ + maxAge?: number | undefined; + /** + * a Date object indicating the cookie's expiration + * date (expires at the end of session by default). + */ + expires?: Date | undefined; + /** + * a string indicating the path of the cookie (/ by default). + */ + path?: string | undefined; + /** + * a string indicating the domain of the cookie (no default). + */ + domain?: string | undefined; + /** + * a boolean indicating whether the cookie is only to be sent + * over HTTPS (false by default for HTTP, true by default for HTTPS). + */ + secure?: boolean | undefined; + /** + * "secureProxy" option is deprecated; use "secure" option, provide "secure" to constructor if needed + */ + secureProxy?: boolean | undefined; + /** + * a boolean indicating whether the cookie is only to be sent over HTTP(S), + * and not made available to client JavaScript (true by default). + */ + httpOnly?: boolean | undefined; + /** + * a boolean or string indicating whether the cookie is a "same site" cookie (false by default). + * This can be set to 'strict', 'lax', or true (which maps to 'strict'). + */ + sameSite?: 'strict' | 'lax' | 'none' | boolean | undefined; + /** + * a boolean indicating whether the cookie is to be signed (false by default). + * If this is true, another cookie of the same name with the .sig suffix + * appended will also be sent, with a 27-byte url-safe base64 SHA1 value + * representing the hash of cookie-name=cookie-value against the first Keygrip key. + * This signature key is used to detect tampering the next time a cookie is received. + */ + signed?: boolean | undefined; + /** + * a boolean indicating whether to overwrite previously set + * cookies of the same name (false by default). If this is true, + * all cookies set during the same request with the same + * name (regardless of path or domain) are filtered out of + * the Set-Cookie header when setting this cookie. + */ + overwrite?: boolean | undefined; + } + + type CookieAttr = SetOption; + + interface Cookie { + name: string; + value: string; + /** + * "maxage" is deprecated, use "maxAge" instead + */ + maxage: number; + maxAge: number; + expires: Date; + path: string; + domain: string; + secure: boolean; + httpOnly: boolean; + sameSite: boolean; + overwrite: boolean; + + toString(): string; + toHeader(): string; + } +} + +interface CookiesFunction { + (request: IncomingMessage, response: ServerResponse, options?: Cookies.Option): Cookies; + /** + * "options" array of key strings is deprecated, provide using options {"keys": keygrip} + */ + (request: IncomingMessage, response: ServerResponse, options: string[]): Cookies; + /** + * "options" instance of Keygrip is deprecated, provide using options {"keys": keygrip} + */ + // tslint:disable-next-line:unified-signatures + (request: IncomingMessage, response: ServerResponse, options: Keygrip): Cookies; + + new (request: IncomingMessage, response: ServerResponse, options?: Cookies.Option): Cookies; + /** + * "options" array of key strings is deprecated, provide using options {"keys": keygrip} + */ + new (request: IncomingMessage, response: ServerResponse, options: string[]): Cookies; + /** + * "options" instance of Keygrip is deprecated, provide using options {"keys": keygrip} + */ + // tslint:disable-next-line:unified-signatures + new (request: IncomingMessage, response: ServerResponse, options: Keygrip): Cookies; + + Cookie: { + new (name: string, value?: string, attrs?: Cookies.CookieAttr): Cookies.Cookie; + }; + + express(keys: string[] | Keygrip): express.Handler; + connect(keys: string[] | Keygrip): connect.NextHandleFunction; +} + +declare const Cookies: CookiesFunction; + +export = Cookies; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cookies/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cookies/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..4530620ae88023d0b75fa36788f8b6e09a64531a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cookies/package.json" @@ -0,0 +1,40 @@ +{ + "name": "@types/cookies", + "version": "0.7.7", + "description": "TypeScript definitions for cookies", + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cookies", + "license": "MIT", + "contributors": [ + { + "name": "Wang Zishi", + "url": "https://github.com/WangZishi", + "githubUsername": "WangZishi" + }, + { + "name": "jKey Lu", + "url": "https://github.com/jkeylu", + "githubUsername": "jkeylu" + }, + { + "name": "BendingBender", + "url": "https://github.com/BendingBender", + "githubUsername": "BendingBender" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/cookies" + }, + "scripts": {}, + "dependencies": { + "@types/connect": "*", + "@types/express": "*", + "@types/keygrip": "*", + "@types/node": "*" + }, + "typesPublisherContentHash": "7f3377e80f3a99e1036f9ffd979c52c1934e00c1bbc9de51fb30b092c4e4d451", + "typeScriptVersion": "3.6" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cors/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cors/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..9e841e7a26e4eb057b24511e7b92d42b257a80e5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cors/LICENSE" @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cors/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cors/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..68931629313301a447188fea570a9093930c4d0a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cors/README.md" @@ -0,0 +1,16 @@ +# Installation +> `npm install --save @types/cors` + +# Summary +This package contains type definitions for cors (https://github.com/expressjs/cors/). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cors. + +### Additional Details + * Last updated: Sun, 14 Feb 2021 07:16:16 GMT + * Dependencies: none + * Global values: none + +# Credits +These definitions were written by [Alan Plum](https://github.com/pluma), and [Gaurav Sharma](https://github.com/gtpan77). diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cors/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cors/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..e499ab9fed8e47119c31150a6f2755d408d6513d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cors/index.d.ts" @@ -0,0 +1,58 @@ +// Type definitions for cors 2.8 +// Project: https://github.com/expressjs/cors/ +// Definitions by: Alan Plum +// Gaurav Sharma +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +import { IncomingHttpHeaders } from 'http'; + +type StaticOrigin = boolean | string | RegExp | (string | RegExp)[]; + +type CustomOrigin = (requestOrigin: string | undefined, callback: (err: Error | null, origin?: StaticOrigin) => void) => void; + +declare namespace e { + interface CorsRequest { + method?: string; + headers: IncomingHttpHeaders; + } + interface CorsOptions { + /** + * @default '*'' + */ + origin?: StaticOrigin | CustomOrigin; + /** + * @default 'GET,HEAD,PUT,PATCH,POST,DELETE' + */ + methods?: string | string[]; + allowedHeaders?: string | string[]; + exposedHeaders?: string | string[]; + credentials?: boolean; + maxAge?: number; + /** + * @default false + */ + preflightContinue?: boolean; + /** + * @default 204 + */ + optionsSuccessStatus?: number; + } + type CorsOptionsDelegate = ( + req: T, + callback: (err: Error | null, options?: CorsOptions) => void, + ) => void; +} + +declare function e( + options?: e.CorsOptions | e.CorsOptionsDelegate, +): ( + req: T, + res: { + statusCode?: number; + setHeader(key: string, value: string): any; + end(): any; + }, + next: (err?: any) => any, +) => void; +export = e; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cors/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cors/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..32315e8b1403361c7c4104049c2e15b296338b18 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/cors/package.json" @@ -0,0 +1,29 @@ +{ + "name": "@types/cors", + "version": "2.8.10", + "description": "TypeScript definitions for cors", + "license": "MIT", + "contributors": [ + { + "name": "Alan Plum", + "url": "https://github.com/pluma", + "githubUsername": "pluma" + }, + { + "name": "Gaurav Sharma", + "url": "https://github.com/gtpan77", + "githubUsername": "gtpan77" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/cors" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "211c1b2df33cf0e3701aaff798ccb87f0a813d275560208db31cee05483ae4d3", + "typeScriptVersion": "3.4" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/ejs/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/ejs/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..9e841e7a26e4eb057b24511e7b92d42b257a80e5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/ejs/LICENSE" @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/ejs/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/ejs/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..2a30a3fc7585cfdac38179d75b17ffc59189bad4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/ejs/README.md" @@ -0,0 +1,16 @@ +# Installation +> `npm install --save @types/ejs` + +# Summary +This package contains type definitions for ejs (http://ejs.co/). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ejs. + +### Additional Details + * Last updated: Tue, 17 Aug 2021 22:31:24 GMT + * Dependencies: none + * Global values: `ejs` + +# Credits +These definitions were written by [Ben Liddicott](https://github.com/benliddicott), [ExE Boss](https://github.com/ExE-Boss), and [Piotr Błażejewicz](https://github.com/peterblazejewicz). diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/ejs/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/ejs/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..b3da1812f6a6ff42ac239242244aa0af50884b84 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/ejs/index.d.ts" @@ -0,0 +1,484 @@ +// Type definitions for ejs 3.1 +// Project: http://ejs.co/, https://github.com/mde/ejs +// Definitions by: Ben Liddicott +// ExE Boss +// Piotr Błażejewicz +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.4 + +export as namespace ejs; + +/** + * Version of EJS. + */ +export const VERSION: string; + +/** + * Name for detection of EJS. + */ +export const name: 'ejs'; + +/** + * Get the path to the included file from the parent file path and the + * specified path. + * + * @param name specified path + * @param filename parent file path + * @param isDir whether the parent file path is a directory + */ +export function resolveInclude(name: string, filename: string, isDir?: boolean): string; + +/** + * Compile the given `str` of ejs into a template function. + */ +export function compile( + template: string, + opts: Options & { async: true; client?: false | undefined }, +): AsyncTemplateFunction; +export function compile(template: string, opts: Options & { async: true; client: true }): AsyncClientFunction; +export function compile( + template: string, + opts?: Options & { async?: false | undefined; client?: false | undefined }, +): TemplateFunction; +export function compile(template: string, opts?: Options & { async?: false | undefined; client: true }): ClientFunction; +export function compile(template: string, opts?: Options): TemplateFunction | AsyncTemplateFunction; + +/** + * Render the given `template` of ejs. + * + * If you would like to include options but not data, you need to explicitly + * call this function with `data` being an empty object or `null`. + */ +export function render(template: string, data?: Data, opts?: Options & { async: false }): string; +export function render(template: string, data: Data | undefined, opts: Options & { async: true }): Promise; +export function render(template: string, data: Data | undefined, opts: Options & { async?: never | undefined }): string; +export function render(template: string, data?: Data, opts?: Options): string | Promise; + +/** + * Callback for receiving data from `renderFile`. + * + * @param err error, if any resulted from the rendering process + * @param str output string, is `undefined` if there is an error + */ +export type RenderFileCallback = (err: Error | null, str: string) => T; + +/** + * Render an EJS file at the given `path` and callback `cb(err, str)`. + * + * If you would like to include options but not data, you need to explicitly + * call this function with `data` being an empty object or `null`. + */ +export function renderFile(path: string, cb: RenderFileCallback): T; +export function renderFile(path: string, data: Data, cb: RenderFileCallback): T; +export function renderFile(path: string, data: Data, opts: Options, cb: RenderFileCallback): T; +export function renderFile(path: string, data?: Data, opts?: Options): Promise; + +/** + * Clear intermediate JavaScript cache. Calls {@link Cache#reset}. + */ +export function clearCache(): void; + +/** + * EJS template function cache. This can be a LRU object from lru-cache + * NPM module. By default, it is `utils.cache`, a simple in-process + * cache that grows continuously. + */ +export let cache: Cache; + +/** + * Custom file loader. Useful for template preprocessing or restricting access + * to a certain part of the filesystem. + * + * @param path the path of the file to be read + * @return the contents of the file as a string or object that implements the toString() method + * + * @default fs.readFileSync + */ +export type fileLoader = (path: string) => string | { toString(): string }; +export let fileLoader: fileLoader; + +/** + * Name of the object containing the locals. + * + * This variable is overridden by {@link Options}`.localsName` if it is not + * `undefined`. + * + * @default 'locals' + */ +export let localsName: string; + +/** + * The opening delimiter for all statements. This allows you to clearly delinate + * the difference between template code and existing delimiters. (It is recommended + * to synchronize this with the closeDelimiter property.) + * + * @default '<' + */ +export let openDelimiter: string; + +/** + * The closing delimiter for all statements. This allows to to clearly delinate + * the difference between template code and existing delimiters. (It is recommended + * to synchronize this with the openDelimiter property.) + * + * @default '>' + */ +export let closeDelimiter: string; + +/** + * The delimiter used in template compilation. + * + * @default '%' + */ +export let delimiter: string | undefined; + +/** + * Promise implementation -- defaults to the native implementation if available + * This is mostly just for testability + * + * @default Promise + */ +export let promiseImpl: PromiseConstructorLike | undefined; + +/** + * Escape characters reserved in XML. + * + * This is simply an export of `utils.escapeXML`. + * + * If `markup` is `undefined` or `null`, the empty string is returned. + */ +export function escapeXML(markup?: any): string; + +export class Template { + /** + * The EJS template source text. + */ + readonly templateText: string; + + /** + * The compiled JavaScript function source, or the empty string + * if the template hasn't been compiled yet. + */ + readonly source: string; + + constructor(text: string, opts?: Options); + + /** + * Compiles the EJS template. + */ + compile(): TemplateFunction | AsyncTemplateFunction | ClientFunction | AsyncClientFunction; +} + +export namespace Template { + enum modes { + EVAL = 'eval', + ESCAPED = 'escaped', + RAW = 'raw', + COMMENT = 'comment', + LITERAL = 'literal', + } +} + +export interface Data { + [name: string]: any; +} + +/** + * This type of function is returned from `compile`, when + * `Options.client` is false. + * + * @param data an object of data to be passed into the template. + * @return Return type depends on `Options.async`. + */ +export type TemplateFunction = (data?: Data) => string; + +/** + * This type of function is returned from `compile`, when + * `Options.client` is false. + * + * @param data an object of data to be passed into the template. + * @return Return type depends on `Options.async`. + */ +export type AsyncTemplateFunction = (data?: Data) => Promise; + +/** + * This type of function is returned from `compile`, when + * `Options.client` is true. + * + * + * This is also used internally to generate a `TemplateFunction`. + * + * @param locals an object of data to be passed into the template. + * The name of this variable is adjustable through `localsName`. + * + * @param escape callback used to escape variables + * @param include callback used to include files at runtime with `include()` + * @param rethrow callback used to handle and rethrow errors + * + * @return Return type depends on `Options.async`. + */ +export type ClientFunction = ( + locals?: Data, + escape?: EscapeCallback, + include?: IncludeCallback, + rethrow?: RethrowCallback, +) => string; + +/** + * This type of function is returned from `compile`, when + * `Options.client` is true. + * + * + * This is also used internally to generate a `TemplateFunction`. + * + * @param locals an object of data to be passed into the template. + * The name of this variable is adjustable through `localsName`. + * + * @param escape callback used to escape variables + * @param include callback used to include files at runtime with `include()` + * @param rethrow callback used to handle and rethrow errors + * + * @return Return type depends on `Options.async`. + */ +export type AsyncClientFunction = ( + locals?: Data, + escape?: EscapeCallback, + include?: IncludeCallback, + rethrow?: RethrowCallback, +) => Promise; + +/** + * Escapes a string using HTML/XML escaping rules. + * + * Returns the empty string for `null` or `undefined`. + * + * @param markup Input string + * @return Escaped string + */ +export type EscapeCallback = (markup?: any) => string; + +/** + * This type of callback is used when `Options.compileDebug` + * is `true`, and an error in the template is thrown. + * + * By default it is used to rethrow an error in a better-formatted way. + * + * @param err Error object + * @param str full EJS source + * @param filename file name of the EJS source + * @param lineno line number of the error + */ +export type RethrowCallback = ( + err: Error, + str: string, + filename: string | null | undefined, + lineno: number, + esc: EscapeCallback, +) => never; + +/** + * The callback called by `ClientFunction` to include files at runtime with `include()` + * + * @param path Path to be included + * @param data Data passed to the template + * @return Contents of the file requested + */ +export type IncludeCallback = (path: string, data?: Data) => string; + +/** + * An object where {@link filename} is the final parsed path or {@link template} is the content of the included template + */ +export type IncluderResult = { filename: string; template?: never } | { template: string; filename?: never }; + +/** + * @param originalPath the path as it appears in the include statement + * @param parsedPath the previously resolved path + * + * @return An {@link IncluderResult} object containing the filename or template data. + */ +export type IncluderCallback = (originalPath: string, parsedPath: string) => IncluderResult; + +export interface Options { + /** + * Log the generated JavaScript source for the EJS template to the console. + * + * @default false + */ + debug?: boolean | undefined; + + /** + * Include additional runtime debugging information in generated template + * functions. + * + * @default true + */ + compileDebug?: boolean | undefined; + + /** + * Whether or not to use `with () {}` construct in the generated template + * functions. If set to `false`, data is still accessible through the object + * whose name is specified by `ejs.localsName` (defaults to `locals`). + * + * @default true + */ + _with?: boolean | undefined; + + /** + * Whether to run in strict mode or not. + * Enforces `_with=false`. + * + * @default false + */ + strict?: boolean | undefined; + + /** + * An array of local variables that are always destructured from `localsName`, + * available even in strict mode. + * + * @default [] + */ + destructuredLocals?: string[] | undefined; + + /** + * Remove all safe-to-remove whitespace, including leading and trailing + * whitespace. It also enables a safer version of `-%>` line slurping for all + * scriptlet tags (it does not strip new lines of tags in the middle of a + * line). + * + * @default false + */ + rmWhitespace?: boolean | undefined; + + /** + * Whether or not to compile a `ClientFunction` that can be rendered + * in the browser without depending on ejs.js. Otherwise, a `TemplateFunction` + * will be compiled. + * + * @default false + */ + client?: boolean | undefined; + + /** + * The escaping function used with `<%=` construct. It is used in rendering + * and is `.toString()`ed in the generation of client functions. + * + * @default ejs.escapeXML + */ + escape?: EscapeCallback | undefined; + + /** + * The filename of the template. Required for inclusion and caching unless + * you are using `renderFile`. Also used for error reporting. + * + * @default undefined + */ + filename?: string | undefined; + + /** + * The path to the project root. When this is set, absolute paths for includes + * (/filename.ejs) will be relative to the project root. + * + * @default undefined + */ + root?: string | undefined; + + /** + * The opening delimiter for all statements. This allows you to clearly delinate + * the difference between template code and existing delimiters. (It is recommended + * to synchronize this with the closeDelimiter property.) + * + * @default ejs.openDelimiter + */ + openDelimiter?: string | undefined; + + /** + * The closing delimiter for all statements. This allows to to clearly delinate + * the difference between template code and existing delimiters. (It is recommended + * to synchronize this with the openDelimiter property.) + * + * @default ejs.closeDelimiter + */ + closeDelimiter?: string | undefined; + + /** + * Character to use with angle brackets for open/close + * @default '%' + */ + delimiter?: string | undefined; + + /** + * Whether or not to enable caching of template functions. Beware that + * the options of compilation are not checked as being the same, so + * special handling is required if, for example, you want to cache client + * and regular functions of the same file. + * + * Requires `filename` to be set. Only works with rendering function. + * + * @default false + */ + cache?: boolean | undefined; + + /** + * The Object to which `this` is set during rendering. + * + * @default this + */ + context?: any; + + /** + * Whether or not to create an async function instead of a regular function. + * This requires language support. + * + * @default false + */ + async?: boolean | undefined; + + /** + * Make sure to set this to 'false' in order to skip UglifyJS parsing, + * when using ES6 features (`const`, etc) as UglifyJS doesn't understand them. + * @default true + */ + beautify?: boolean | undefined; + + /** + * Name to use for the object storing local variables when not using `with` or destructuring. + * + * @default ejs.localsName + */ + localsName?: string | undefined; + + /** Set to a string (e.g., 'echo' or 'print') for a function to print output inside scriptlet tags. */ + outputFunctionName?: string | undefined; + + /** + * An array of paths to use when resolving includes with relative paths + */ + views?: string[] | undefined; + + /** + * Custom function to handle EJS includes + */ + includer?: IncluderCallback; +} + +export interface Cache { + /** + * Cache the intermediate JavaScript function for a template. + * + * @param key key for caching + * @param val cached function + */ + set(key: string, val: TemplateFunction): void; + + /** + * Get the cached intermediate JavaScript function for a template. + * + * @param key key for caching + */ + get(key: string): TemplateFunction | undefined; + + /** + * Clear the entire cache. + */ + reset(): void; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/ejs/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/ejs/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..d4bb51a5a62a20ff8fcca7fe1dac9409ec4f2781 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/ejs/package.json" @@ -0,0 +1,35 @@ +{ + "name": "@types/ejs", + "version": "3.1.0", + "description": "TypeScript definitions for ejs", + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ejs", + "license": "MIT", + "contributors": [ + { + "name": "Ben Liddicott", + "url": "https://github.com/benliddicott", + "githubUsername": "benliddicott" + }, + { + "name": "ExE Boss", + "url": "https://github.com/ExE-Boss", + "githubUsername": "ExE-Boss" + }, + { + "name": "Piotr Błażejewicz", + "url": "https://github.com/peterblazejewicz", + "githubUsername": "peterblazejewicz" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/ejs" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "a21b359e45a41ade7b44c9af7e93461dfeda66731eb9e106816485078a98ca23", + "typeScriptVersion": "3.6" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express-serve-static-core/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express-serve-static-core/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..9e841e7a26e4eb057b24511e7b92d42b257a80e5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express-serve-static-core/LICENSE" @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express-serve-static-core/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express-serve-static-core/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..ce3e1cacfa247c58ff7cde45a8af0dd6cbac78e4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express-serve-static-core/README.md" @@ -0,0 +1,16 @@ +# Installation +> `npm install --save @types/express-serve-static-core` + +# Summary +This package contains type definitions for Express (http://expressjs.com). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-serve-static-core. + +### Additional Details + * Last updated: Tue, 11 Jan 2022 22:31:38 GMT + * Dependencies: [@types/range-parser](https://npmjs.com/package/@types/range-parser), [@types/qs](https://npmjs.com/package/@types/qs), [@types/node](https://npmjs.com/package/@types/node) + * Global values: none + +# Credits +These definitions were written by [Boris Yankov](https://github.com/borisyankov), [Satana Charuwichitratana](https://github.com/micksatana), [Sami Jaber](https://github.com/samijaber), [Jose Luis Leon](https://github.com/JoseLion), [David Stephens](https://github.com/dwrss), and [Shin Ando](https://github.com/andoshin11). diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express-serve-static-core/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express-serve-static-core/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..217e77a00dd2b2b9749aa74ec45ce1b6821ccb54 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express-serve-static-core/index.d.ts" @@ -0,0 +1,1252 @@ +// Type definitions for Express 4.17 +// Project: http://expressjs.com +// Definitions by: Boris Yankov +// Satana Charuwichitratana +// Sami Jaber +// Jose Luis Leon +// David Stephens +// Shin Ando +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +// This extracts the core definitions from express to prevent a circular dependency between express and serve-static +/// + +declare global { + namespace Express { + // These open interfaces may be extended in an application-specific manner via declaration merging. + // See for example method-override.d.ts (https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/method-override/index.d.ts) + interface Request {} + interface Response {} + interface Application {} + } +} + +import * as http from 'http'; +import { EventEmitter } from 'events'; +import { Options as RangeParserOptions, Result as RangeParserResult, Ranges as RangeParserRanges } from 'range-parser'; +import { ParsedQs } from 'qs'; + +export {}; + +export type Query = ParsedQs; + +export interface NextFunction { + (err?: any): void; + /** + * "Break-out" of a router by calling {next('router')}; + * @see {https://expressjs.com/en/guide/using-middleware.html#middleware.router} + */ + (deferToNext: 'router'): void; + /** + * "Break-out" of a route by calling {next('route')}; + * @see {https://expressjs.com/en/guide/using-middleware.html#middleware.application} + */ + (deferToNext: 'route'): void; +} + +export interface Dictionary { + [key: string]: T; +} + +export interface ParamsDictionary { + [key: string]: string; +} +export type ParamsArray = string[]; +export type Params = ParamsDictionary | ParamsArray; + +export interface RequestHandler< + P = ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = ParsedQs, + Locals extends Record = Record +> { + // tslint:disable-next-line callable-types (This is extended from and can't extend from a type alias in ts<2.2) + ( + req: Request, + res: Response, + next: NextFunction, + ): void; +} + +export type ErrorRequestHandler< + P = ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = ParsedQs, + Locals extends Record = Record +> = ( + err: any, + req: Request, + res: Response, + next: NextFunction, +) => void; + +export type PathParams = string | RegExp | Array; + +export type RequestHandlerParams< + P = ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = ParsedQs, + Locals extends Record = Record +> = + | RequestHandler + | ErrorRequestHandler + | Array | ErrorRequestHandler

>; + +type RemoveTail = S extends `${infer P}${Tail}` ? P : S; +type GetRouteParameter = RemoveTail< + RemoveTail, `-${string}`>, + `.${string}` +>; + +// prettier-ignore +export type RouteParameters = string extends Route + ? ParamsDictionary + : Route extends `${string}(${string}` + ? ParamsDictionary //TODO: handling for regex parameters + : Route extends `${string}:${infer Rest}` + ? ( + GetRouteParameter extends never + ? ParamsDictionary + : GetRouteParameter extends `${infer ParamName}?` + ? { [P in ParamName]?: string } + : { [P in GetRouteParameter]: string } + ) & + (Rest extends `${GetRouteParameter}${infer Next}` + ? RouteParameters : unknown) + : {}; + +export interface IRouterMatcher< + T, + Method extends 'all' | 'get' | 'post' | 'put' | 'delete' | 'patch' | 'options' | 'head' = any +> { + < + Route extends string, + P = RouteParameters, + ResBody = any, + ReqBody = any, + ReqQuery = ParsedQs, + Locals extends Record = Record + >( + // tslint:disable-next-line no-unnecessary-generics (it's used as the default type parameter for P) + path: Route, + // tslint:disable-next-line no-unnecessary-generics (This generic is meant to be passed explicitly.) + ...handlers: Array> + ): T; + < + Path extends string, + P = RouteParameters, + ResBody = any, + ReqBody = any, + ReqQuery = ParsedQs, + Locals extends Record = Record + >( + // tslint:disable-next-line no-unnecessary-generics (it's used as the default type parameter for P) + path: Path, + // tslint:disable-next-line no-unnecessary-generics (This generic is meant to be passed explicitly.) + ...handlers: Array> + ): T; + < + P = ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = ParsedQs, + Locals extends Record = Record + >( + path: PathParams, + // tslint:disable-next-line no-unnecessary-generics (This generic is meant to be passed explicitly.) + ...handlers: Array> + ): T; + < + P = ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = ParsedQs, + Locals extends Record = Record + >( + path: PathParams, + // tslint:disable-next-line no-unnecessary-generics (This generic is meant to be passed explicitly.) + ...handlers: Array> + ): T; + (path: PathParams, subApplication: Application): T; +} + +export interface IRouterHandler { + (...handlers: Array>>): T; + (...handlers: Array>>): T; + < + P = RouteParameters, + ResBody = any, + ReqBody = any, + ReqQuery = ParsedQs, + Locals extends Record = Record + >( + // tslint:disable-next-line no-unnecessary-generics (This generic is meant to be passed explicitly.) + ...handlers: Array> + ): T; + < + P = RouteParameters, + ResBody = any, + ReqBody = any, + ReqQuery = ParsedQs, + Locals extends Record = Record + >( + // tslint:disable-next-line no-unnecessary-generics (This generic is meant to be passed explicitly.) + ...handlers: Array> + ): T; + < + P = ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = ParsedQs, + Locals extends Record = Record + >( + // tslint:disable-next-line no-unnecessary-generics (This generic is meant to be passed explicitly.) + ...handlers: Array> + ): T; + < + P = ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = ParsedQs, + Locals extends Record = Record + >( + // tslint:disable-next-line no-unnecessary-generics (This generic is meant to be passed explicitly.) + ...handlers: Array> + ): T; +} + +export interface IRouter extends RequestHandler { + /** + * Map the given param placeholder `name`(s) to the given callback(s). + * + * Parameter mapping is used to provide pre-conditions to routes + * which use normalized placeholders. For example a _:user_id_ parameter + * could automatically load a user's information from the database without + * any additional code, + * + * The callback uses the samesignature as middleware, the only differencing + * being that the value of the placeholder is passed, in this case the _id_ + * of the user. Once the `next()` function is invoked, just like middleware + * it will continue on to execute the route, or subsequent parameter functions. + * + * app.param('user_id', function(req, res, next, id){ + * User.find(id, function(err, user){ + * if (err) { + * next(err); + * } else if (user) { + * req.user = user; + * next(); + * } else { + * next(new Error('failed to load user')); + * } + * }); + * }); + */ + param(name: string, handler: RequestParamHandler): this; + + /** + * Alternatively, you can pass only a callback, in which case you have the opportunity to alter the app.param() + * + * @deprecated since version 4.11 + */ + param(callback: (name: string, matcher: RegExp) => RequestParamHandler): this; + + /** + * Special-cased "all" method, applying the given route `path`, + * middleware, and callback to _every_ HTTP method. + */ + all: IRouterMatcher; + get: IRouterMatcher; + post: IRouterMatcher; + put: IRouterMatcher; + delete: IRouterMatcher; + patch: IRouterMatcher; + options: IRouterMatcher; + head: IRouterMatcher; + + checkout: IRouterMatcher; + connect: IRouterMatcher; + copy: IRouterMatcher; + lock: IRouterMatcher; + merge: IRouterMatcher; + mkactivity: IRouterMatcher; + mkcol: IRouterMatcher; + move: IRouterMatcher; + 'm-search': IRouterMatcher; + notify: IRouterMatcher; + propfind: IRouterMatcher; + proppatch: IRouterMatcher; + purge: IRouterMatcher; + report: IRouterMatcher; + search: IRouterMatcher; + subscribe: IRouterMatcher; + trace: IRouterMatcher; + unlock: IRouterMatcher; + unsubscribe: IRouterMatcher; + + use: IRouterHandler & IRouterMatcher; + + route(prefix: T): IRoute; + route(prefix: PathParams): IRoute; + /** + * Stack of configured routes + */ + stack: any[]; +} + +export interface IRoute { + path: string; + stack: any; + all: IRouterHandler; + get: IRouterHandler; + post: IRouterHandler; + put: IRouterHandler; + delete: IRouterHandler; + patch: IRouterHandler; + options: IRouterHandler; + head: IRouterHandler; + + checkout: IRouterHandler; + copy: IRouterHandler; + lock: IRouterHandler; + merge: IRouterHandler; + mkactivity: IRouterHandler; + mkcol: IRouterHandler; + move: IRouterHandler; + 'm-search': IRouterHandler; + notify: IRouterHandler; + purge: IRouterHandler; + report: IRouterHandler; + search: IRouterHandler; + subscribe: IRouterHandler; + trace: IRouterHandler; + unlock: IRouterHandler; + unsubscribe: IRouterHandler; +} + +export interface Router extends IRouter {} + +export interface CookieOptions { + maxAge?: number | undefined; + signed?: boolean | undefined; + expires?: Date | undefined; + httpOnly?: boolean | undefined; + path?: string | undefined; + domain?: string | undefined; + secure?: boolean | undefined; + encode?: ((val: string) => string) | undefined; + sameSite?: boolean | 'lax' | 'strict' | 'none' | undefined; +} + +export interface ByteRange { + start: number; + end: number; +} + +export interface RequestRanges extends RangeParserRanges {} + +export type Errback = (err: Error) => void; + +/** + * @param P For most requests, this should be `ParamsDictionary`, but if you're + * using this in a route handler for a route that uses a `RegExp` or a wildcard + * `string` path (e.g. `'/user/*'`), then `req.params` will be an array, in + * which case you should use `ParamsArray` instead. + * + * @see https://expressjs.com/en/api.html#req.params + * + * @example + * app.get('/user/:id', (req, res) => res.send(req.params.id)); // implicitly `ParamsDictionary` + * app.get(/user\/(.*)/, (req, res) => res.send(req.params[0])); + * app.get('/user/*', (req, res) => res.send(req.params[0])); + */ +export interface Request< + P = ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = ParsedQs, + Locals extends Record = Record +> extends http.IncomingMessage, + Express.Request { + /** + * Return request header. + * + * The `Referrer` header field is special-cased, + * both `Referrer` and `Referer` are interchangeable. + * + * Examples: + * + * req.get('Content-Type'); + * // => "text/plain" + * + * req.get('content-type'); + * // => "text/plain" + * + * req.get('Something'); + * // => undefined + * + * Aliased as `req.header()`. + */ + get(name: 'set-cookie'): string[] | undefined; + get(name: string): string | undefined; + + header(name: 'set-cookie'): string[] | undefined; + header(name: string): string | undefined; + + /** + * Check if the given `type(s)` is acceptable, returning + * the best match when true, otherwise `undefined`, in which + * case you should respond with 406 "Not Acceptable". + * + * The `type` value may be a single mime type string + * such as "application/json", the extension name + * such as "json", a comma-delimted list such as "json, html, text/plain", + * or an array `["json", "html", "text/plain"]`. When a list + * or array is given the _best_ match, if any is returned. + * + * Examples: + * + * // Accept: text/html + * req.accepts('html'); + * // => "html" + * + * // Accept: text/*, application/json + * req.accepts('html'); + * // => "html" + * req.accepts('text/html'); + * // => "text/html" + * req.accepts('json, text'); + * // => "json" + * req.accepts('application/json'); + * // => "application/json" + * + * // Accept: text/*, application/json + * req.accepts('image/png'); + * req.accepts('png'); + * // => undefined + * + * // Accept: text/*;q=.5, application/json + * req.accepts(['html', 'json']); + * req.accepts('html, json'); + * // => "json" + */ + accepts(): string[]; + accepts(type: string): string | false; + accepts(type: string[]): string | false; + accepts(...type: string[]): string | false; + + /** + * Returns the first accepted charset of the specified character sets, + * based on the request's Accept-Charset HTTP header field. + * If none of the specified charsets is accepted, returns false. + * + * For more information, or if you have issues or concerns, see accepts. + */ + acceptsCharsets(): string[]; + acceptsCharsets(charset: string): string | false; + acceptsCharsets(charset: string[]): string | false; + acceptsCharsets(...charset: string[]): string | false; + + /** + * Returns the first accepted encoding of the specified encodings, + * based on the request's Accept-Encoding HTTP header field. + * If none of the specified encodings is accepted, returns false. + * + * For more information, or if you have issues or concerns, see accepts. + */ + acceptsEncodings(): string[]; + acceptsEncodings(encoding: string): string | false; + acceptsEncodings(encoding: string[]): string | false; + acceptsEncodings(...encoding: string[]): string | false; + + /** + * Returns the first accepted language of the specified languages, + * based on the request's Accept-Language HTTP header field. + * If none of the specified languages is accepted, returns false. + * + * For more information, or if you have issues or concerns, see accepts. + */ + acceptsLanguages(): string[]; + acceptsLanguages(lang: string): string | false; + acceptsLanguages(lang: string[]): string | false; + acceptsLanguages(...lang: string[]): string | false; + + /** + * Parse Range header field, capping to the given `size`. + * + * Unspecified ranges such as "0-" require knowledge of your resource length. In + * the case of a byte range this is of course the total number of bytes. + * If the Range header field is not given `undefined` is returned. + * If the Range header field is given, return value is a result of range-parser. + * See more ./types/range-parser/index.d.ts + * + * NOTE: remember that ranges are inclusive, so for example "Range: users=0-3" + * should respond with 4 users when available, not 3. + * + */ + range(size: number, options?: RangeParserOptions): RangeParserRanges | RangeParserResult | undefined; + + /** + * Return an array of Accepted media types + * ordered from highest quality to lowest. + */ + accepted: MediaType[]; + + /** + * @deprecated since 4.11 Use either req.params, req.body or req.query, as applicable. + * + * Return the value of param `name` when present or `defaultValue`. + * + * - Checks route placeholders, ex: _/user/:id_ + * - Checks body params, ex: id=12, {"id":12} + * - Checks query string params, ex: ?id=12 + * + * To utilize request bodies, `req.body` + * should be an object. This can be done by using + * the `connect.bodyParser()` middleware. + */ + param(name: string, defaultValue?: any): string; + + /** + * Check if the incoming request contains the "Content-Type" + * header field, and it contains the give mime `type`. + * + * Examples: + * + * // With Content-Type: text/html; charset=utf-8 + * req.is('html'); + * req.is('text/html'); + * req.is('text/*'); + * // => true + * + * // When Content-Type is application/json + * req.is('json'); + * req.is('application/json'); + * req.is('application/*'); + * // => true + * + * req.is('html'); + * // => false + */ + is(type: string | string[]): string | false | null; + + /** + * Return the protocol string "http" or "https" + * when requested with TLS. When the "trust proxy" + * setting is enabled the "X-Forwarded-Proto" header + * field will be trusted. If you're running behind + * a reverse proxy that supplies https for you this + * may be enabled. + */ + protocol: string; + + /** + * Short-hand for: + * + * req.protocol == 'https' + */ + secure: boolean; + + /** + * Return the remote address, or when + * "trust proxy" is `true` return + * the upstream addr. + */ + ip: string; + + /** + * When "trust proxy" is `true`, parse + * the "X-Forwarded-For" ip address list. + * + * For example if the value were "client, proxy1, proxy2" + * you would receive the array `["client", "proxy1", "proxy2"]` + * where "proxy2" is the furthest down-stream. + */ + ips: string[]; + + /** + * Return subdomains as an array. + * + * Subdomains are the dot-separated parts of the host before the main domain of + * the app. By default, the domain of the app is assumed to be the last two + * parts of the host. This can be changed by setting "subdomain offset". + * + * For example, if the domain is "tobi.ferrets.example.com": + * If "subdomain offset" is not set, req.subdomains is `["ferrets", "tobi"]`. + * If "subdomain offset" is 3, req.subdomains is `["tobi"]`. + */ + subdomains: string[]; + + /** + * Short-hand for `url.parse(req.url).pathname`. + */ + path: string; + + /** + * Parse the "Host" header field hostname. + */ + hostname: string; + + /** + * @deprecated Use hostname instead. + */ + host: string; + + /** + * Check if the request is fresh, aka + * Last-Modified and/or the ETag + * still match. + */ + fresh: boolean; + + /** + * Check if the request is stale, aka + * "Last-Modified" and / or the "ETag" for the + * resource has changed. + */ + stale: boolean; + + /** + * Check if the request was an _XMLHttpRequest_. + */ + xhr: boolean; + + //body: { username: string; password: string; remember: boolean; title: string; }; + body: ReqBody; + + //cookies: { string; remember: boolean; }; + cookies: any; + + method: string; + + params: P; + + query: ReqQuery; + + route: any; + + signedCookies: any; + + originalUrl: string; + + url: string; + + baseUrl: string; + + app: Application; + + /** + * After middleware.init executed, Request will contain res and next properties + * See: express/lib/middleware/init.js + */ + res?: Response | undefined; + next?: NextFunction | undefined; +} + +export interface MediaType { + value: string; + quality: number; + type: string; + subtype: string; +} + +export type Send> = (body?: ResBody) => T; + +export interface Response< + ResBody = any, + Locals extends Record = Record, + StatusCode extends number = number +> extends http.ServerResponse, + Express.Response { + /** + * Set status `code`. + */ + status(code: StatusCode): this; + + /** + * Set the response HTTP status code to `statusCode` and send its string representation as the response body. + * @link http://expressjs.com/4x/api.html#res.sendStatus + * + * Examples: + * + * res.sendStatus(200); // equivalent to res.status(200).send('OK') + * res.sendStatus(403); // equivalent to res.status(403).send('Forbidden') + * res.sendStatus(404); // equivalent to res.status(404).send('Not Found') + * res.sendStatus(500); // equivalent to res.status(500).send('Internal Server Error') + */ + sendStatus(code: StatusCode): this; + + /** + * Set Link header field with the given `links`. + * + * Examples: + * + * res.links({ + * next: 'http://api.example.com/users?page=2', + * last: 'http://api.example.com/users?page=5' + * }); + */ + links(links: any): this; + + /** + * Send a response. + * + * Examples: + * + * res.send(new Buffer('wahoo')); + * res.send({ some: 'json' }); + * res.send('

some html

'); + * res.status(404).send('Sorry, cant find that'); + */ + send: Send; + + /** + * Send JSON response. + * + * Examples: + * + * res.json(null); + * res.json({ user: 'tj' }); + * res.status(500).json('oh noes!'); + * res.status(404).json('I dont have that'); + */ + json: Send; + + /** + * Send JSON response with JSONP callback support. + * + * Examples: + * + * res.jsonp(null); + * res.jsonp({ user: 'tj' }); + * res.status(500).jsonp('oh noes!'); + * res.status(404).jsonp('I dont have that'); + */ + jsonp: Send; + + /** + * Transfer the file at the given `path`. + * + * Automatically sets the _Content-Type_ response header field. + * The callback `fn(err)` is invoked when the transfer is complete + * or when an error occurs. Be sure to check `res.headersSent` + * if you wish to attempt responding, as the header and some data + * may have already been transferred. + * + * Options: + * + * - `maxAge` defaulting to 0 (can be string converted by `ms`) + * - `root` root directory for relative filenames + * - `headers` object of headers to serve with file + * - `dotfiles` serve dotfiles, defaulting to false; can be `"allow"` to send them + * + * Other options are passed along to `send`. + * + * Examples: + * + * The following example illustrates how `res.sendFile()` may + * be used as an alternative for the `static()` middleware for + * dynamic situations. The code backing `res.sendFile()` is actually + * the same code, so HTTP cache support etc is identical. + * + * app.get('/user/:uid/photos/:file', function(req, res){ + * var uid = req.params.uid + * , file = req.params.file; + * + * req.user.mayViewFilesFrom(uid, function(yes){ + * if (yes) { + * res.sendFile('/uploads/' + uid + '/' + file); + * } else { + * res.send(403, 'Sorry! you cant see that.'); + * } + * }); + * }); + * + * @api public + */ + sendFile(path: string, fn?: Errback): void; + sendFile(path: string, options: any, fn?: Errback): void; + + /** + * @deprecated Use sendFile instead. + */ + sendfile(path: string): void; + /** + * @deprecated Use sendFile instead. + */ + sendfile(path: string, options: any): void; + /** + * @deprecated Use sendFile instead. + */ + sendfile(path: string, fn: Errback): void; + /** + * @deprecated Use sendFile instead. + */ + sendfile(path: string, options: any, fn: Errback): void; + + /** + * Transfer the file at the given `path` as an attachment. + * + * Optionally providing an alternate attachment `filename`, + * and optional callback `fn(err)`. The callback is invoked + * when the data transfer is complete, or when an error has + * ocurred. Be sure to check `res.headersSent` if you plan to respond. + * + * The optional options argument passes through to the underlying + * res.sendFile() call, and takes the exact same parameters. + * + * This method uses `res.sendfile()`. + */ + download(path: string, fn?: Errback): void; + download(path: string, filename: string, fn?: Errback): void; + download(path: string, filename: string, options: any, fn?: Errback): void; + + /** + * Set _Content-Type_ response header with `type` through `mime.lookup()` + * when it does not contain "/", or set the Content-Type to `type` otherwise. + * + * Examples: + * + * res.type('.html'); + * res.type('html'); + * res.type('json'); + * res.type('application/json'); + * res.type('png'); + */ + contentType(type: string): this; + + /** + * Set _Content-Type_ response header with `type` through `mime.lookup()` + * when it does not contain "/", or set the Content-Type to `type` otherwise. + * + * Examples: + * + * res.type('.html'); + * res.type('html'); + * res.type('json'); + * res.type('application/json'); + * res.type('png'); + */ + type(type: string): this; + + /** + * Respond to the Acceptable formats using an `obj` + * of mime-type callbacks. + * + * This method uses `req.accepted`, an array of + * acceptable types ordered by their quality values. + * When "Accept" is not present the _first_ callback + * is invoked, otherwise the first match is used. When + * no match is performed the server responds with + * 406 "Not Acceptable". + * + * Content-Type is set for you, however if you choose + * you may alter this within the callback using `res.type()` + * or `res.set('Content-Type', ...)`. + * + * res.format({ + * 'text/plain': function(){ + * res.send('hey'); + * }, + * + * 'text/html': function(){ + * res.send('

hey

'); + * }, + * + * 'appliation/json': function(){ + * res.send({ message: 'hey' }); + * } + * }); + * + * In addition to canonicalized MIME types you may + * also use extnames mapped to these types: + * + * res.format({ + * text: function(){ + * res.send('hey'); + * }, + * + * html: function(){ + * res.send('

hey

'); + * }, + * + * json: function(){ + * res.send({ message: 'hey' }); + * } + * }); + * + * By default Express passes an `Error` + * with a `.status` of 406 to `next(err)` + * if a match is not made. If you provide + * a `.default` callback it will be invoked + * instead. + */ + format(obj: any): this; + + /** + * Set _Content-Disposition_ header to _attachment_ with optional `filename`. + */ + attachment(filename?: string): this; + + /** + * Set header `field` to `val`, or pass + * an object of header fields. + * + * Examples: + * + * res.set('Foo', ['bar', 'baz']); + * res.set('Accept', 'application/json'); + * res.set({ Accept: 'text/plain', 'X-API-Key': 'tobi' }); + * + * Aliased as `res.header()`. + */ + set(field: any): this; + set(field: string, value?: string | string[]): this; + + header(field: any): this; + header(field: string, value?: string | string[]): this; + + // Property indicating if HTTP headers has been sent for the response. + headersSent: boolean; + + /** Get value for header `field`. */ + get(field: string): string; + + /** Clear cookie `name`. */ + clearCookie(name: string, options?: CookieOptions): this; + + /** + * Set cookie `name` to `val`, with the given `options`. + * + * Options: + * + * - `maxAge` max-age in milliseconds, converted to `expires` + * - `signed` sign the cookie + * - `path` defaults to "/" + * + * Examples: + * + * // "Remember Me" for 15 minutes + * res.cookie('rememberme', '1', { expires: new Date(Date.now() + 900000), httpOnly: true }); + * + * // save as above + * res.cookie('rememberme', '1', { maxAge: 900000, httpOnly: true }) + */ + cookie(name: string, val: string, options: CookieOptions): this; + cookie(name: string, val: any, options: CookieOptions): this; + cookie(name: string, val: any): this; + + /** + * Set the location header to `url`. + * + * The given `url` can also be the name of a mapped url, for + * example by default express supports "back" which redirects + * to the _Referrer_ or _Referer_ headers or "/". + * + * Examples: + * + * res.location('/foo/bar').; + * res.location('http://example.com'); + * res.location('../login'); // /blog/post/1 -> /blog/login + * + * Mounting: + * + * When an application is mounted and `res.location()` + * is given a path that does _not_ lead with "/" it becomes + * relative to the mount-point. For example if the application + * is mounted at "/blog", the following would become "/blog/login". + * + * res.location('login'); + * + * While the leading slash would result in a location of "/login": + * + * res.location('/login'); + */ + location(url: string): this; + + /** + * Redirect to the given `url` with optional response `status` + * defaulting to 302. + * + * The resulting `url` is determined by `res.location()`, so + * it will play nicely with mounted apps, relative paths, + * `"back"` etc. + * + * Examples: + * + * res.redirect('/foo/bar'); + * res.redirect('http://example.com'); + * res.redirect(301, 'http://example.com'); + * res.redirect('http://example.com', 301); + * res.redirect('../login'); // /blog/post/1 -> /blog/login + */ + redirect(url: string): void; + redirect(status: number, url: string): void; + redirect(url: string, status: number): void; + + /** + * Render `view` with the given `options` and optional callback `fn`. + * When a callback function is given a response will _not_ be made + * automatically, otherwise a response of _200_ and _text/html_ is given. + * + * Options: + * + * - `cache` boolean hinting to the engine it should cache + * - `filename` filename of the view being rendered + */ + render(view: string, options?: object, callback?: (err: Error, html: string) => void): void; + render(view: string, callback?: (err: Error, html: string) => void): void; + + locals: Locals; + + charset: string; + + /** + * Adds the field to the Vary response header, if it is not there already. + * Examples: + * + * res.vary('User-Agent').render('docs'); + * + */ + vary(field: string): this; + + app: Application; + + /** + * Appends the specified value to the HTTP response header field. + * If the header is not already set, it creates the header with the specified value. + * The value parameter can be a string or an array. + * + * Note: calling res.set() after res.append() will reset the previously-set header value. + * + * @since 4.11.0 + */ + append(field: string, value?: string[] | string): this; + + /** + * After middleware.init executed, Response will contain req property + * See: express/lib/middleware/init.js + */ + req: Request; +} + +export interface Handler extends RequestHandler {} + +export type RequestParamHandler = (req: Request, res: Response, next: NextFunction, value: any, name: string) => any; + +export type ApplicationRequestHandler = IRouterHandler & + IRouterMatcher & + ((...handlers: RequestHandlerParams[]) => T); + +export interface Application< + Locals extends Record = Record +> extends EventEmitter, IRouter, Express.Application { + /** + * Express instance itself is a request handler, which could be invoked without + * third argument. + */ + (req: Request | http.IncomingMessage, res: Response | http.ServerResponse): any; + + /** + * Initialize the server. + * + * - setup default configuration + * - setup default middleware + * - setup route reflection methods + */ + init(): void; + + /** + * Initialize application configuration. + */ + defaultConfiguration(): void; + + /** + * Register the given template engine callback `fn` + * as `ext`. + * + * By default will `require()` the engine based on the + * file extension. For example if you try to render + * a "foo.jade" file Express will invoke the following internally: + * + * app.engine('jade', require('jade').__express); + * + * For engines that do not provide `.__express` out of the box, + * or if you wish to "map" a different extension to the template engine + * you may use this method. For example mapping the EJS template engine to + * ".html" files: + * + * app.engine('html', require('ejs').renderFile); + * + * In this case EJS provides a `.renderFile()` method with + * the same signature that Express expects: `(path, options, callback)`, + * though note that it aliases this method as `ejs.__express` internally + * so if you're using ".ejs" extensions you dont need to do anything. + * + * Some template engines do not follow this convention, the + * [Consolidate.js](https://github.com/visionmedia/consolidate.js) + * library was created to map all of node's popular template + * engines to follow this convention, thus allowing them to + * work seamlessly within Express. + */ + engine( + ext: string, + fn: (path: string, options: object, callback: (e: any, rendered?: string) => void) => void, + ): this; + + /** + * Assign `setting` to `val`, or return `setting`'s value. + * + * app.set('foo', 'bar'); + * app.get('foo'); + * // => "bar" + * app.set('foo', ['bar', 'baz']); + * app.get('foo'); + * // => ["bar", "baz"] + * + * Mounted servers inherit their parent server's settings. + */ + set(setting: string, val: any): this; + get: ((name: string) => any) & IRouterMatcher; + + param(name: string | string[], handler: RequestParamHandler): this; + + /** + * Alternatively, you can pass only a callback, in which case you have the opportunity to alter the app.param() + * + * @deprecated since version 4.11 + */ + param(callback: (name: string, matcher: RegExp) => RequestParamHandler): this; + + /** + * Return the app's absolute pathname + * based on the parent(s) that have + * mounted it. + * + * For example if the application was + * mounted as "/admin", which itself + * was mounted as "/blog" then the + * return value would be "/blog/admin". + */ + path(): string; + + /** + * Check if `setting` is enabled (truthy). + * + * app.enabled('foo') + * // => false + * + * app.enable('foo') + * app.enabled('foo') + * // => true + */ + enabled(setting: string): boolean; + + /** + * Check if `setting` is disabled. + * + * app.disabled('foo') + * // => true + * + * app.enable('foo') + * app.disabled('foo') + * // => false + */ + disabled(setting: string): boolean; + + /** Enable `setting`. */ + enable(setting: string): this; + + /** Disable `setting`. */ + disable(setting: string): this; + + /** + * Render the given view `name` name with `options` + * and a callback accepting an error and the + * rendered template string. + * + * Example: + * + * app.render('email', { name: 'Tobi' }, function(err, html){ + * // ... + * }) + */ + render(name: string, options?: object, callback?: (err: Error, html: string) => void): void; + render(name: string, callback: (err: Error, html: string) => void): void; + + /** + * Listen for connections. + * + * A node `http.Server` is returned, with this + * application (which is a `Function`) as its + * callback. If you wish to create both an HTTP + * and HTTPS server you may do so with the "http" + * and "https" modules as shown here: + * + * var http = require('http') + * , https = require('https') + * , express = require('express') + * , app = express(); + * + * http.createServer(app).listen(80); + * https.createServer({ ... }, app).listen(443); + */ + listen(port: number, hostname: string, backlog: number, callback?: () => void): http.Server; + listen(port: number, hostname: string, callback?: () => void): http.Server; + listen(port: number, callback?: () => void): http.Server; + listen(callback?: () => void): http.Server; + listen(path: string, callback?: () => void): http.Server; + listen(handle: any, listeningListener?: () => void): http.Server; + + router: string; + + settings: any; + + resource: any; + + map: any; + + locals: Locals; + + /** + * The app.routes object houses all of the routes defined mapped by the + * associated HTTP verb. This object may be used for introspection + * capabilities, for example Express uses this internally not only for + * routing but to provide default OPTIONS behaviour unless app.options() + * is used. Your application or framework may also remove routes by + * simply by removing them from this object. + */ + routes: any; + + /** + * Used to get all registered routes in Express Application + */ + _router: any; + + use: ApplicationRequestHandler; + + /** + * The mount event is fired on a sub-app, when it is mounted on a parent app. + * The parent app is passed to the callback function. + * + * NOTE: + * Sub-apps will: + * - Not inherit the value of settings that have a default value. You must set the value in the sub-app. + * - Inherit the value of settings with no default value. + */ + on: (event: string, callback: (parent: Application) => void) => this; + + /** + * The app.mountpath property contains one or more path patterns on which a sub-app was mounted. + */ + mountpath: string | string[]; +} + +export interface Express extends Application { + request: Request; + response: Response; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express-serve-static-core/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express-serve-static-core/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..0015f8660725e11da699549dc73002bac616cebc --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express-serve-static-core/package.json" @@ -0,0 +1,61 @@ +{ + "name": "@types/express-serve-static-core", + "version": "4.17.28", + "description": "TypeScript definitions for Express", + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express-serve-static-core", + "license": "MIT", + "contributors": [ + { + "name": "Boris Yankov", + "url": "https://github.com/borisyankov", + "githubUsername": "borisyankov" + }, + { + "name": "Satana Charuwichitratana", + "url": "https://github.com/micksatana", + "githubUsername": "micksatana" + }, + { + "name": "Sami Jaber", + "url": "https://github.com/samijaber", + "githubUsername": "samijaber" + }, + { + "name": "Jose Luis Leon", + "url": "https://github.com/JoseLion", + "githubUsername": "JoseLion" + }, + { + "name": "David Stephens", + "url": "https://github.com/dwrss", + "githubUsername": "dwrss" + }, + { + "name": "Shin Ando", + "url": "https://github.com/andoshin11", + "githubUsername": "andoshin11" + } + ], + "main": "", + "types": "index.d.ts", + "typesVersions": { + "<=4.0": { + "*": [ + "ts4.0/*" + ] + } + }, + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/express-serve-static-core" + }, + "scripts": {}, + "dependencies": { + "@types/node": "*", + "@types/qs": "*", + "@types/range-parser": "*" + }, + "typesPublisherContentHash": "e8b75bce16c2593d8d5f9521ddcf5db42875f8406701ed9eca5178f1b74e91b9", + "typeScriptVersion": "3.8" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express-serve-static-core/ts4.0/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express-serve-static-core/ts4.0/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..63e1d6d79f8c8e410701223bf001ebc400de7e36 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express-serve-static-core/ts4.0/index.d.ts" @@ -0,0 +1,1164 @@ +// This extracts the core definitions from express to prevent a circular dependency between express and serve-static +/// + +declare global { + namespace Express { + // These open interfaces may be extended in an application-specific manner via declaration merging. + // See for example method-override.d.ts (https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/method-override/index.d.ts) + interface Request {} + interface Response {} + interface Application {} + } +} + +import * as http from 'http'; +import { EventEmitter } from 'events'; +import { Options as RangeParserOptions, Result as RangeParserResult, Ranges as RangeParserRanges } from 'range-parser'; +import { ParsedQs } from 'qs'; + +export type Query = ParsedQs; + +export interface NextFunction { + (err?: any): void; + /** + * "Break-out" of a router by calling {next('router')}; + * @see {https://expressjs.com/en/guide/using-middleware.html#middleware.router} + */ + (deferToNext: 'router'): void; +} + +export interface Dictionary { + [key: string]: T; +} + +export interface ParamsDictionary { + [key: string]: string; +} +export type ParamsArray = string[]; +export type Params = ParamsDictionary | ParamsArray; + +export interface RequestHandler< + P = ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = ParsedQs, + Locals extends Record = Record + > { + // tslint:disable-next-line callable-types (This is extended from and can't extend from a type alias in ts<2.2) + ( + req: Request, + res: Response, + next: NextFunction, + ): void; +} + +export type ErrorRequestHandler< + P = ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = ParsedQs, + Locals extends Record = Record + > = ( + err: any, + req: Request, + res: Response, + next: NextFunction, +) => void; + +export type PathParams = string | RegExp | Array; + +export type RequestHandlerParams< + P = ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = ParsedQs, + Locals extends Record = Record + > = + | RequestHandler + | ErrorRequestHandler + | Array | ErrorRequestHandler

>; + +export interface IRouterMatcher< + T, + Method extends 'all' | 'get' | 'post' | 'put' | 'delete' | 'patch' | 'options' | 'head' = any + > { + < + P = ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = ParsedQs, + Locals extends Record = Record + >( + path: PathParams, + // tslint:disable-next-line no-unnecessary-generics (This generic is meant to be passed explicitly.) + ...handlers: Array> + ): T; + < + P = ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = ParsedQs, + Locals extends Record = Record + >( + path: PathParams, + // tslint:disable-next-line no-unnecessary-generics (This generic is meant to be passed explicitly.) + ...handlers: Array> + ): T; + (path: PathParams, subApplication: Application): T; +} + +export interface IRouterHandler { + (...handlers: RequestHandler[]): T; + (...handlers: RequestHandlerParams[]): T; + < + P = ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = ParsedQs, + Locals extends Record = Record + >( + // tslint:disable-next-line no-unnecessary-generics (This generic is meant to be passed explicitly.) + ...handlers: Array> + ): T; + < + P = ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = ParsedQs, + Locals extends Record = Record + >( + // tslint:disable-next-line no-unnecessary-generics (This generic is meant to be passed explicitly.) + ...handlers: Array> + ): T; +} + +export interface IRouter extends RequestHandler { + /** + * Map the given param placeholder `name`(s) to the given callback(s). + * + * Parameter mapping is used to provide pre-conditions to routes + * which use normalized placeholders. For example a _:user_id_ parameter + * could automatically load a user's information from the database without + * any additional code, + * + * The callback uses the samesignature as middleware, the only differencing + * being that the value of the placeholder is passed, in this case the _id_ + * of the user. Once the `next()` function is invoked, just like middleware + * it will continue on to execute the route, or subsequent parameter functions. + * + * app.param('user_id', function(req, res, next, id){ + * User.find(id, function(err, user){ + * if (err) { + * next(err); + * } else if (user) { + * req.user = user; + * next(); + * } else { + * next(new Error('failed to load user')); + * } + * }); + * }); + */ + param(name: string, handler: RequestParamHandler): this; + + /** + * Alternatively, you can pass only a callback, in which case you have the opportunity to alter the app.param() + * + * @deprecated since version 4.11 + */ + param(callback: (name: string, matcher: RegExp) => RequestParamHandler): this; + + /** + * Special-cased "all" method, applying the given route `path`, + * middleware, and callback to _every_ HTTP method. + */ + all: IRouterMatcher; + get: IRouterMatcher; + post: IRouterMatcher; + put: IRouterMatcher; + delete: IRouterMatcher; + patch: IRouterMatcher; + options: IRouterMatcher; + head: IRouterMatcher; + + checkout: IRouterMatcher; + connect: IRouterMatcher; + copy: IRouterMatcher; + lock: IRouterMatcher; + merge: IRouterMatcher; + mkactivity: IRouterMatcher; + mkcol: IRouterMatcher; + move: IRouterMatcher; + 'm-search': IRouterMatcher; + notify: IRouterMatcher; + propfind: IRouterMatcher; + proppatch: IRouterMatcher; + purge: IRouterMatcher; + report: IRouterMatcher; + search: IRouterMatcher; + subscribe: IRouterMatcher; + trace: IRouterMatcher; + unlock: IRouterMatcher; + unsubscribe: IRouterMatcher; + + use: IRouterHandler & IRouterMatcher; + + route(prefix: PathParams): IRoute; + /** + * Stack of configured routes + */ + stack: any[]; +} + +export interface IRoute { + path: string; + stack: any; + all: IRouterHandler; + get: IRouterHandler; + post: IRouterHandler; + put: IRouterHandler; + delete: IRouterHandler; + patch: IRouterHandler; + options: IRouterHandler; + head: IRouterHandler; + + checkout: IRouterHandler; + copy: IRouterHandler; + lock: IRouterHandler; + merge: IRouterHandler; + mkactivity: IRouterHandler; + mkcol: IRouterHandler; + move: IRouterHandler; + 'm-search': IRouterHandler; + notify: IRouterHandler; + purge: IRouterHandler; + report: IRouterHandler; + search: IRouterHandler; + subscribe: IRouterHandler; + trace: IRouterHandler; + unlock: IRouterHandler; + unsubscribe: IRouterHandler; +} + +export interface Router extends IRouter {} + +export interface CookieOptions { + maxAge?: number; + signed?: boolean; + expires?: Date; + httpOnly?: boolean; + path?: string; + domain?: string; + secure?: boolean; + encode?: (val: string) => string; + sameSite?: boolean | 'lax' | 'strict' | 'none'; +} + +export interface ByteRange { + start: number; + end: number; +} + +export interface RequestRanges extends RangeParserRanges {} + +export type Errback = (err: Error) => void; + +/** + * @param P For most requests, this should be `ParamsDictionary`, but if you're + * using this in a route handler for a route that uses a `RegExp` or a wildcard + * `string` path (e.g. `'/user/*'`), then `req.params` will be an array, in + * which case you should use `ParamsArray` instead. + * + * @see https://expressjs.com/en/api.html#req.params + * + * @example + * app.get('/user/:id', (req, res) => res.send(req.params.id)); // implicitly `ParamsDictionary` + * app.get(/user\/(.*)/, (req, res) => res.send(req.params[0])); + * app.get('/user/*', (req, res) => res.send(req.params[0])); + */ +export interface Request< + P = ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = ParsedQs, + Locals extends Record = Record + > extends http.IncomingMessage, + Express.Request { + /** + * Return request header. + * + * The `Referrer` header field is special-cased, + * both `Referrer` and `Referer` are interchangeable. + * + * Examples: + * + * req.get('Content-Type'); + * // => "text/plain" + * + * req.get('content-type'); + * // => "text/plain" + * + * req.get('Something'); + * // => undefined + * + * Aliased as `req.header()`. + */ + get(name: 'set-cookie'): string[] | undefined; + get(name: string): string | undefined; + + header(name: 'set-cookie'): string[] | undefined; + header(name: string): string | undefined; + + /** + * Check if the given `type(s)` is acceptable, returning + * the best match when true, otherwise `undefined`, in which + * case you should respond with 406 "Not Acceptable". + * + * The `type` value may be a single mime type string + * such as "application/json", the extension name + * such as "json", a comma-delimted list such as "json, html, text/plain", + * or an array `["json", "html", "text/plain"]`. When a list + * or array is given the _best_ match, if any is returned. + * + * Examples: + * + * // Accept: text/html + * req.accepts('html'); + * // => "html" + * + * // Accept: text/*, application/json + * req.accepts('html'); + * // => "html" + * req.accepts('text/html'); + * // => "text/html" + * req.accepts('json, text'); + * // => "json" + * req.accepts('application/json'); + * // => "application/json" + * + * // Accept: text/*, application/json + * req.accepts('image/png'); + * req.accepts('png'); + * // => undefined + * + * // Accept: text/*;q=.5, application/json + * req.accepts(['html', 'json']); + * req.accepts('html, json'); + * // => "json" + */ + accepts(): string[]; + accepts(type: string): string | false; + accepts(type: string[]): string | false; + accepts(...type: string[]): string | false; + + /** + * Returns the first accepted charset of the specified character sets, + * based on the request's Accept-Charset HTTP header field. + * If none of the specified charsets is accepted, returns false. + * + * For more information, or if you have issues or concerns, see accepts. + */ + acceptsCharsets(): string[]; + acceptsCharsets(charset: string): string | false; + acceptsCharsets(charset: string[]): string | false; + acceptsCharsets(...charset: string[]): string | false; + + /** + * Returns the first accepted encoding of the specified encodings, + * based on the request's Accept-Encoding HTTP header field. + * If none of the specified encodings is accepted, returns false. + * + * For more information, or if you have issues or concerns, see accepts. + */ + acceptsEncodings(): string[]; + acceptsEncodings(encoding: string): string | false; + acceptsEncodings(encoding: string[]): string | false; + acceptsEncodings(...encoding: string[]): string | false; + + /** + * Returns the first accepted language of the specified languages, + * based on the request's Accept-Language HTTP header field. + * If none of the specified languages is accepted, returns false. + * + * For more information, or if you have issues or concerns, see accepts. + */ + acceptsLanguages(): string[]; + acceptsLanguages(lang: string): string | false; + acceptsLanguages(lang: string[]): string | false; + acceptsLanguages(...lang: string[]): string | false; + + /** + * Parse Range header field, capping to the given `size`. + * + * Unspecified ranges such as "0-" require knowledge of your resource length. In + * the case of a byte range this is of course the total number of bytes. + * If the Range header field is not given `undefined` is returned. + * If the Range header field is given, return value is a result of range-parser. + * See more ./types/range-parser/index.d.ts + * + * NOTE: remember that ranges are inclusive, so for example "Range: users=0-3" + * should respond with 4 users when available, not 3. + * + */ + range(size: number, options?: RangeParserOptions): RangeParserRanges | RangeParserResult | undefined; + + /** + * Return an array of Accepted media types + * ordered from highest quality to lowest. + */ + accepted: MediaType[]; + + /** + * @deprecated since 4.11 Use either req.params, req.body or req.query, as applicable. + * + * Return the value of param `name` when present or `defaultValue`. + * + * - Checks route placeholders, ex: _/user/:id_ + * - Checks body params, ex: id=12, {"id":12} + * - Checks query string params, ex: ?id=12 + * + * To utilize request bodies, `req.body` + * should be an object. This can be done by using + * the `connect.bodyParser()` middleware. + */ + param(name: string, defaultValue?: any): string; + + /** + * Check if the incoming request contains the "Content-Type" + * header field, and it contains the give mime `type`. + * + * Examples: + * + * // With Content-Type: text/html; charset=utf-8 + * req.is('html'); + * req.is('text/html'); + * req.is('text/*'); + * // => true + * + * // When Content-Type is application/json + * req.is('json'); + * req.is('application/json'); + * req.is('application/*'); + * // => true + * + * req.is('html'); + * // => false + */ + is(type: string | string[]): string | false | null; + + /** + * Return the protocol string "http" or "https" + * when requested with TLS. When the "trust proxy" + * setting is enabled the "X-Forwarded-Proto" header + * field will be trusted. If you're running behind + * a reverse proxy that supplies https for you this + * may be enabled. + */ + protocol: string; + + /** + * Short-hand for: + * + * req.protocol == 'https' + */ + secure: boolean; + + /** + * Return the remote address, or when + * "trust proxy" is `true` return + * the upstream addr. + */ + ip: string; + + /** + * When "trust proxy" is `true`, parse + * the "X-Forwarded-For" ip address list. + * + * For example if the value were "client, proxy1, proxy2" + * you would receive the array `["client", "proxy1", "proxy2"]` + * where "proxy2" is the furthest down-stream. + */ + ips: string[]; + + /** + * Return subdomains as an array. + * + * Subdomains are the dot-separated parts of the host before the main domain of + * the app. By default, the domain of the app is assumed to be the last two + * parts of the host. This can be changed by setting "subdomain offset". + * + * For example, if the domain is "tobi.ferrets.example.com": + * If "subdomain offset" is not set, req.subdomains is `["ferrets", "tobi"]`. + * If "subdomain offset" is 3, req.subdomains is `["tobi"]`. + */ + subdomains: string[]; + + /** + * Short-hand for `url.parse(req.url).pathname`. + */ + path: string; + + /** + * Parse the "Host" header field hostname. + */ + hostname: string; + + /** + * @deprecated Use hostname instead. + */ + host: string; + + /** + * Check if the request is fresh, aka + * Last-Modified and/or the ETag + * still match. + */ + fresh: boolean; + + /** + * Check if the request is stale, aka + * "Last-Modified" and / or the "ETag" for the + * resource has changed. + */ + stale: boolean; + + /** + * Check if the request was an _XMLHttpRequest_. + */ + xhr: boolean; + + //body: { username: string; password: string; remember: boolean; title: string; }; + body: ReqBody; + + //cookies: { string; remember: boolean; }; + cookies: any; + + method: string; + + params: P; + + query: ReqQuery; + + route: any; + + signedCookies: any; + + originalUrl: string; + + url: string; + + baseUrl: string; + + app: Application; + + /** + * After middleware.init executed, Request will contain res and next properties + * See: express/lib/middleware/init.js + */ + res?: Response; + next?: NextFunction; +} + +export interface MediaType { + value: string; + quality: number; + type: string; + subtype: string; +} + +export type Send> = (body?: ResBody) => T; + +export interface Response< + ResBody = any, + Locals extends Record = Record, + StatusCode extends number = number + > extends http.ServerResponse, + Express.Response { + /** + * Set status `code`. + */ + status(code: StatusCode): this; + + /** + * Set the response HTTP status code to `statusCode` and send its string representation as the response body. + * @link http://expressjs.com/4x/api.html#res.sendStatus + * + * Examples: + * + * res.sendStatus(200); // equivalent to res.status(200).send('OK') + * res.sendStatus(403); // equivalent to res.status(403).send('Forbidden') + * res.sendStatus(404); // equivalent to res.status(404).send('Not Found') + * res.sendStatus(500); // equivalent to res.status(500).send('Internal Server Error') + */ + sendStatus(code: StatusCode): this; + + /** + * Set Link header field with the given `links`. + * + * Examples: + * + * res.links({ + * next: 'http://api.example.com/users?page=2', + * last: 'http://api.example.com/users?page=5' + * }); + */ + links(links: any): this; + + /** + * Send a response. + * + * Examples: + * + * res.send(new Buffer('wahoo')); + * res.send({ some: 'json' }); + * res.send('

some html

'); + * res.status(404).send('Sorry, cant find that'); + */ + send: Send; + + /** + * Send JSON response. + * + * Examples: + * + * res.json(null); + * res.json({ user: 'tj' }); + * res.status(500).json('oh noes!'); + * res.status(404).json('I dont have that'); + */ + json: Send; + + /** + * Send JSON response with JSONP callback support. + * + * Examples: + * + * res.jsonp(null); + * res.jsonp({ user: 'tj' }); + * res.status(500).jsonp('oh noes!'); + * res.status(404).jsonp('I dont have that'); + */ + jsonp: Send; + + /** + * Transfer the file at the given `path`. + * + * Automatically sets the _Content-Type_ response header field. + * The callback `fn(err)` is invoked when the transfer is complete + * or when an error occurs. Be sure to check `res.headersSent` + * if you wish to attempt responding, as the header and some data + * may have already been transferred. + * + * Options: + * + * - `maxAge` defaulting to 0 (can be string converted by `ms`) + * - `root` root directory for relative filenames + * - `headers` object of headers to serve with file + * - `dotfiles` serve dotfiles, defaulting to false; can be `"allow"` to send them + * + * Other options are passed along to `send`. + * + * Examples: + * + * The following example illustrates how `res.sendFile()` may + * be used as an alternative for the `static()` middleware for + * dynamic situations. The code backing `res.sendFile()` is actually + * the same code, so HTTP cache support etc is identical. + * + * app.get('/user/:uid/photos/:file', function(req, res){ + * var uid = req.params.uid + * , file = req.params.file; + * + * req.user.mayViewFilesFrom(uid, function(yes){ + * if (yes) { + * res.sendFile('/uploads/' + uid + '/' + file); + * } else { + * res.send(403, 'Sorry! you cant see that.'); + * } + * }); + * }); + * + * @api public + */ + sendFile(path: string, fn?: Errback): void; + sendFile(path: string, options: any, fn?: Errback): void; + + /** + * @deprecated Use sendFile instead. + */ + sendfile(path: string): void; + /** + * @deprecated Use sendFile instead. + */ + sendfile(path: string, options: any): void; + /** + * @deprecated Use sendFile instead. + */ + sendfile(path: string, fn: Errback): void; + /** + * @deprecated Use sendFile instead. + */ + sendfile(path: string, options: any, fn: Errback): void; + + /** + * Transfer the file at the given `path` as an attachment. + * + * Optionally providing an alternate attachment `filename`, + * and optional callback `fn(err)`. The callback is invoked + * when the data transfer is complete, or when an error has + * ocurred. Be sure to check `res.headersSent` if you plan to respond. + * + * The optional options argument passes through to the underlying + * res.sendFile() call, and takes the exact same parameters. + * + * This method uses `res.sendfile()`. + */ + download(path: string, fn?: Errback): void; + download(path: string, filename: string, fn?: Errback): void; + download(path: string, filename: string, options: any, fn?: Errback): void; + + /** + * Set _Content-Type_ response header with `type` through `mime.lookup()` + * when it does not contain "/", or set the Content-Type to `type` otherwise. + * + * Examples: + * + * res.type('.html'); + * res.type('html'); + * res.type('json'); + * res.type('application/json'); + * res.type('png'); + */ + contentType(type: string): this; + + /** + * Set _Content-Type_ response header with `type` through `mime.lookup()` + * when it does not contain "/", or set the Content-Type to `type` otherwise. + * + * Examples: + * + * res.type('.html'); + * res.type('html'); + * res.type('json'); + * res.type('application/json'); + * res.type('png'); + */ + type(type: string): this; + + /** + * Respond to the Acceptable formats using an `obj` + * of mime-type callbacks. + * + * This method uses `req.accepted`, an array of + * acceptable types ordered by their quality values. + * When "Accept" is not present the _first_ callback + * is invoked, otherwise the first match is used. When + * no match is performed the server responds with + * 406 "Not Acceptable". + * + * Content-Type is set for you, however if you choose + * you may alter this within the callback using `res.type()` + * or `res.set('Content-Type', ...)`. + * + * res.format({ + * 'text/plain': function(){ + * res.send('hey'); + * }, + * + * 'text/html': function(){ + * res.send('

hey

'); + * }, + * + * 'appliation/json': function(){ + * res.send({ message: 'hey' }); + * } + * }); + * + * In addition to canonicalized MIME types you may + * also use extnames mapped to these types: + * + * res.format({ + * text: function(){ + * res.send('hey'); + * }, + * + * html: function(){ + * res.send('

hey

'); + * }, + * + * json: function(){ + * res.send({ message: 'hey' }); + * } + * }); + * + * By default Express passes an `Error` + * with a `.status` of 406 to `next(err)` + * if a match is not made. If you provide + * a `.default` callback it will be invoked + * instead. + */ + format(obj: any): this; + + /** + * Set _Content-Disposition_ header to _attachment_ with optional `filename`. + */ + attachment(filename?: string): this; + + /** + * Set header `field` to `val`, or pass + * an object of header fields. + * + * Examples: + * + * res.set('Foo', ['bar', 'baz']); + * res.set('Accept', 'application/json'); + * res.set({ Accept: 'text/plain', 'X-API-Key': 'tobi' }); + * + * Aliased as `res.header()`. + */ + set(field: any): this; + set(field: string, value?: string | string[]): this; + + header(field: any): this; + header(field: string, value?: string | string[]): this; + + // Property indicating if HTTP headers has been sent for the response. + headersSent: boolean; + + /** Get value for header `field`. */ + get(field: string): string; + + /** Clear cookie `name`. */ + clearCookie(name: string, options?: CookieOptions): this; + + /** + * Set cookie `name` to `val`, with the given `options`. + * + * Options: + * + * - `maxAge` max-age in milliseconds, converted to `expires` + * - `signed` sign the cookie + * - `path` defaults to "/" + * + * Examples: + * + * // "Remember Me" for 15 minutes + * res.cookie('rememberme', '1', { expires: new Date(Date.now() + 900000), httpOnly: true }); + * + * // save as above + * res.cookie('rememberme', '1', { maxAge: 900000, httpOnly: true }) + */ + cookie(name: string, val: string, options: CookieOptions): this; + cookie(name: string, val: any, options: CookieOptions): this; + cookie(name: string, val: any): this; + + /** + * Set the location header to `url`. + * + * The given `url` can also be the name of a mapped url, for + * example by default express supports "back" which redirects + * to the _Referrer_ or _Referer_ headers or "/". + * + * Examples: + * + * res.location('/foo/bar').; + * res.location('http://example.com'); + * res.location('../login'); // /blog/post/1 -> /blog/login + * + * Mounting: + * + * When an application is mounted and `res.location()` + * is given a path that does _not_ lead with "/" it becomes + * relative to the mount-point. For example if the application + * is mounted at "/blog", the following would become "/blog/login". + * + * res.location('login'); + * + * While the leading slash would result in a location of "/login": + * + * res.location('/login'); + */ + location(url: string): this; + + /** + * Redirect to the given `url` with optional response `status` + * defaulting to 302. + * + * The resulting `url` is determined by `res.location()`, so + * it will play nicely with mounted apps, relative paths, + * `"back"` etc. + * + * Examples: + * + * res.redirect('/foo/bar'); + * res.redirect('http://example.com'); + * res.redirect(301, 'http://example.com'); + * res.redirect('http://example.com', 301); + * res.redirect('../login'); // /blog/post/1 -> /blog/login + */ + redirect(url: string): void; + redirect(status: number, url: string): void; + redirect(url: string, status: number): void; + + /** + * Render `view` with the given `options` and optional callback `fn`. + * When a callback function is given a response will _not_ be made + * automatically, otherwise a response of _200_ and _text/html_ is given. + * + * Options: + * + * - `cache` boolean hinting to the engine it should cache + * - `filename` filename of the view being rendered + */ + render(view: string, options?: object, callback?: (err: Error, html: string) => void): void; + render(view: string, callback?: (err: Error, html: string) => void): void; + + locals: Locals; + + charset: string; + + /** + * Adds the field to the Vary response header, if it is not there already. + * Examples: + * + * res.vary('User-Agent').render('docs'); + * + */ + vary(field: string): this; + + app: Application; + + /** + * Appends the specified value to the HTTP response header field. + * If the header is not already set, it creates the header with the specified value. + * The value parameter can be a string or an array. + * + * Note: calling res.set() after res.append() will reset the previously-set header value. + * + * @since 4.11.0 + */ + append(field: string, value?: string[] | string): this; + + /** + * After middleware.init executed, Response will contain req property + * See: express/lib/middleware/init.js + */ + req: Request; +} + +export interface Handler extends RequestHandler {} + +export type RequestParamHandler = (req: Request, res: Response, next: NextFunction, value: any, name: string) => any; + +export type ApplicationRequestHandler = IRouterHandler & + IRouterMatcher & + ((...handlers: RequestHandlerParams[]) => T); + +export interface Application< + Locals extends Record = Record +> extends EventEmitter, IRouter, Express.Application { + /** + * Express instance itself is a request handler, which could be invoked without + * third argument. + */ + (req: Request | http.IncomingMessage, res: Response | http.ServerResponse): any; + + /** + * Initialize the server. + * + * - setup default configuration + * - setup default middleware + * - setup route reflection methods + */ + init(): void; + + /** + * Initialize application configuration. + */ + defaultConfiguration(): void; + + /** + * Register the given template engine callback `fn` + * as `ext`. + * + * By default will `require()` the engine based on the + * file extension. For example if you try to render + * a "foo.jade" file Express will invoke the following internally: + * + * app.engine('jade', require('jade').__express); + * + * For engines that do not provide `.__express` out of the box, + * or if you wish to "map" a different extension to the template engine + * you may use this method. For example mapping the EJS template engine to + * ".html" files: + * + * app.engine('html', require('ejs').renderFile); + * + * In this case EJS provides a `.renderFile()` method with + * the same signature that Express expects: `(path, options, callback)`, + * though note that it aliases this method as `ejs.__express` internally + * so if you're using ".ejs" extensions you dont need to do anything. + * + * Some template engines do not follow this convention, the + * [Consolidate.js](https://github.com/visionmedia/consolidate.js) + * library was created to map all of node's popular template + * engines to follow this convention, thus allowing them to + * work seamlessly within Express. + */ + engine( + ext: string, + fn: (path: string, options: object, callback: (e: any, rendered?: string) => void) => void, + ): this; + + /** + * Assign `setting` to `val`, or return `setting`'s value. + * + * app.set('foo', 'bar'); + * app.get('foo'); + * // => "bar" + * app.set('foo', ['bar', 'baz']); + * app.get('foo'); + * // => ["bar", "baz"] + * + * Mounted servers inherit their parent server's settings. + */ + set(setting: string, val: any): this; + get: ((name: string) => any) & IRouterMatcher; + + param(name: string | string[], handler: RequestParamHandler): this; + + /** + * Alternatively, you can pass only a callback, in which case you have the opportunity to alter the app.param() + * + * @deprecated since version 4.11 + */ + param(callback: (name: string, matcher: RegExp) => RequestParamHandler): this; + + /** + * Return the app's absolute pathname + * based on the parent(s) that have + * mounted it. + * + * For example if the application was + * mounted as "/admin", which itself + * was mounted as "/blog" then the + * return value would be "/blog/admin". + */ + path(): string; + + /** + * Check if `setting` is enabled (truthy). + * + * app.enabled('foo') + * // => false + * + * app.enable('foo') + * app.enabled('foo') + * // => true + */ + enabled(setting: string): boolean; + + /** + * Check if `setting` is disabled. + * + * app.disabled('foo') + * // => true + * + * app.enable('foo') + * app.disabled('foo') + * // => false + */ + disabled(setting: string): boolean; + + /** Enable `setting`. */ + enable(setting: string): this; + + /** Disable `setting`. */ + disable(setting: string): this; + + /** + * Render the given view `name` name with `options` + * and a callback accepting an error and the + * rendered template string. + * + * Example: + * + * app.render('email', { name: 'Tobi' }, function(err, html){ + * // ... + * }) + */ + render(name: string, options?: object, callback?: (err: Error, html: string) => void): void; + render(name: string, callback: (err: Error, html: string) => void): void; + + /** + * Listen for connections. + * + * A node `http.Server` is returned, with this + * application (which is a `Function`) as its + * callback. If you wish to create both an HTTP + * and HTTPS server you may do so with the "http" + * and "https" modules as shown here: + * + * var http = require('http') + * , https = require('https') + * , express = require('express') + * , app = express(); + * + * http.createServer(app).listen(80); + * https.createServer({ ... }, app).listen(443); + */ + listen(port: number, hostname: string, backlog: number, callback?: () => void): http.Server; + listen(port: number, hostname: string, callback?: () => void): http.Server; + listen(port: number, callback?: () => void): http.Server; + listen(callback?: () => void): http.Server; + listen(path: string, callback?: () => void): http.Server; + listen(handle: any, listeningListener?: () => void): http.Server; + + router: string; + + settings: any; + + resource: any; + + map: any; + + locals: Locals; + + /** + * The app.routes object houses all of the routes defined mapped by the + * associated HTTP verb. This object may be used for introspection + * capabilities, for example Express uses this internally not only for + * routing but to provide default OPTIONS behaviour unless app.options() + * is used. Your application or framework may also remove routes by + * simply by removing them from this object. + */ + routes: any; + + /** + * Used to get all registered routes in Express Application + */ + _router: any; + + use: ApplicationRequestHandler; + + /** + * The mount event is fired on a sub-app, when it is mounted on a parent app. + * The parent app is passed to the callback function. + * + * NOTE: + * Sub-apps will: + * - Not inherit the value of settings that have a default value. You must set the value in the sub-app. + * - Inherit the value of settings with no default value. + */ + on: (event: string, callback: (parent: Application) => void) => this; + + /** + * The app.mountpath property contains one or more path patterns on which a sub-app was mounted. + */ + mountpath: string | string[]; +} + +export interface Express extends Application { + request: Request; + response: Response; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..9e841e7a26e4eb057b24511e7b92d42b257a80e5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express/LICENSE" @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..2069d498186468d795b719f8f808661914873023 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express/README.md" @@ -0,0 +1,16 @@ +# Installation +> `npm install --save @types/express` + +# Summary +This package contains type definitions for Express (http://expressjs.com). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express. + +### Additional Details + * Last updated: Tue, 06 Jul 2021 20:32:50 GMT + * Dependencies: [@types/body-parser](https://npmjs.com/package/@types/body-parser), [@types/serve-static](https://npmjs.com/package/@types/serve-static), [@types/express-serve-static-core](https://npmjs.com/package/@types/express-serve-static-core), [@types/qs](https://npmjs.com/package/@types/qs) + * Global values: none + +# Credits +These definitions were written by [Boris Yankov](https://github.com/borisyankov), [China Medical University Hospital](https://github.com/CMUH), [Puneet Arora](https://github.com/puneetar), and [Dylan Frankland](https://github.com/dfrankland). diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..8427f02a32083a433efb3957f35b6ea621477b34 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express/index.d.ts" @@ -0,0 +1,133 @@ +// Type definitions for Express 4.17 +// Project: http://expressjs.com +// Definitions by: Boris Yankov +// China Medical University Hospital +// Puneet Arora +// Dylan Frankland +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/* =================== USAGE =================== + + import express = require("express"); + var app = express(); + + =============================================== */ + +/// +/// + +import * as bodyParser from 'body-parser'; +import * as serveStatic from 'serve-static'; +import * as core from 'express-serve-static-core'; +import * as qs from 'qs'; + +/** + * Creates an Express application. The express() function is a top-level function exported by the express module. + */ +declare function e(): core.Express; + +declare namespace e { + /** + * This is a built-in middleware function in Express. It parses incoming requests with JSON payloads and is based on body-parser. + * @since 4.16.0 + */ + var json: typeof bodyParser.json; + + /** + * This is a built-in middleware function in Express. It parses incoming requests with Buffer payloads and is based on body-parser. + * @since 4.17.0 + */ + var raw: typeof bodyParser.raw; + + /** + * This is a built-in middleware function in Express. It parses incoming requests with text payloads and is based on body-parser. + * @since 4.17.0 + */ + var text: typeof bodyParser.text; + + /** + * These are the exposed prototypes. + */ + var application: Application; + var request: Request; + var response: Response; + + /** + * This is a built-in middleware function in Express. It serves static files and is based on serve-static. + */ + var static: serveStatic.RequestHandlerConstructor; + + /** + * This is a built-in middleware function in Express. It parses incoming requests with urlencoded payloads and is based on body-parser. + * @since 4.16.0 + */ + var urlencoded: typeof bodyParser.urlencoded; + + /** + * This is a built-in middleware function in Express. It parses incoming request query parameters. + */ + export function query(options: qs.IParseOptions | typeof qs.parse): Handler; + + export function Router(options?: RouterOptions): core.Router; + + interface RouterOptions { + /** + * Enable case sensitivity. + */ + caseSensitive?: boolean | undefined; + + /** + * Preserve the req.params values from the parent router. + * If the parent and the child have conflicting param names, the child’s value take precedence. + * + * @default false + * @since 4.5.0 + */ + mergeParams?: boolean | undefined; + + /** + * Enable strict routing. + */ + strict?: boolean | undefined; + } + + interface Application extends core.Application {} + interface CookieOptions extends core.CookieOptions {} + interface Errback extends core.Errback {} + interface ErrorRequestHandler< + P = core.ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = core.Query, + Locals extends Record = Record + > extends core.ErrorRequestHandler {} + interface Express extends core.Express {} + interface Handler extends core.Handler {} + interface IRoute extends core.IRoute {} + interface IRouter extends core.IRouter {} + interface IRouterHandler extends core.IRouterHandler {} + interface IRouterMatcher extends core.IRouterMatcher {} + interface MediaType extends core.MediaType {} + interface NextFunction extends core.NextFunction {} + interface Request< + P = core.ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = core.Query, + Locals extends Record = Record + > extends core.Request {} + interface RequestHandler< + P = core.ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = core.Query, + Locals extends Record = Record + > extends core.RequestHandler {} + interface RequestParamHandler extends core.RequestParamHandler {} + export interface Response = Record> + extends core.Response {} + interface Router extends core.Router {} + interface Send extends core.Send {} +} + +export = e; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..b7eb8898aa04cb54b939ed06cff7db49b15034a4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express/package.json" @@ -0,0 +1,52 @@ +{ + "name": "@types/express", + "version": "4.17.13", + "description": "TypeScript definitions for Express", + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/express", + "license": "MIT", + "contributors": [ + { + "name": "Boris Yankov", + "url": "https://github.com/borisyankov", + "githubUsername": "borisyankov" + }, + { + "name": "China Medical University Hospital", + "url": "https://github.com/CMUH", + "githubUsername": "CMUH" + }, + { + "name": "Puneet Arora", + "url": "https://github.com/puneetar", + "githubUsername": "puneetar" + }, + { + "name": "Dylan Frankland", + "url": "https://github.com/dfrankland", + "githubUsername": "dfrankland" + } + ], + "main": "", + "types": "index.d.ts", + "typesVersions": { + "<=4.0": { + "*": [ + "ts4.0/*" + ] + } + }, + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/express" + }, + "scripts": {}, + "dependencies": { + "@types/body-parser": "*", + "@types/express-serve-static-core": "^4.17.18", + "@types/qs": "*", + "@types/serve-static": "*" + }, + "typesPublisherContentHash": "df0c9de39b435f4152916282f0ae9e98f0548d6b50f6bb6aedddc52e4e3f25a7", + "typeScriptVersion": "3.6" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express/ts4.0/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express/ts4.0/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..fa5c6dfba8393242a1c0e98f97d17008b23fb825 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/express/ts4.0/index.d.ts" @@ -0,0 +1,118 @@ +/// +/// + +import * as bodyParser from 'body-parser'; +import * as serveStatic from 'serve-static'; +import * as core from 'express-serve-static-core'; +import * as qs from 'qs'; + +/** + * Creates an Express application. The express() function is a top-level function exported by the express module. + */ +declare function e(): core.Express; + +declare namespace e { + /** + * This is a built-in middleware function in Express. It parses incoming requests with JSON payloads and is based on body-parser. + * @since 4.16.0 + */ + var json: typeof bodyParser.json; + + /** + * This is a built-in middleware function in Express. It parses incoming requests with Buffer payloads and is based on body-parser. + * @since 4.17.0 + */ + var raw: typeof bodyParser.raw; + + /** + * This is a built-in middleware function in Express. It parses incoming requests with text payloads and is based on body-parser. + * @since 4.17.0 + */ + var text: typeof bodyParser.text; + + /** + * These are the exposed prototypes. + */ + var application: Application; + var request: Request; + var response: Response; + + /** + * This is a built-in middleware function in Express. It serves static files and is based on serve-static. + */ + var static: serveStatic.RequestHandlerConstructor; + + /** + * This is a built-in middleware function in Express. It parses incoming requests with urlencoded payloads and is based on body-parser. + * @since 4.16.0 + */ + var urlencoded: typeof bodyParser.urlencoded; + + /** + * This is a built-in middleware function in Express. It parses incoming request query parameters. + */ + export function query(options: qs.IParseOptions | typeof qs.parse): Handler; + + export function Router(options?: RouterOptions): core.Router; + + interface RouterOptions { + /** + * Enable case sensitivity. + */ + caseSensitive?: boolean; + + /** + * Preserve the req.params values from the parent router. + * If the parent and the child have conflicting param names, the child’s value take precedence. + * + * @default false + * @since 4.5.0 + */ + mergeParams?: boolean; + + /** + * Enable strict routing. + */ + strict?: boolean; + } + + interface Application extends core.Application {} + interface CookieOptions extends core.CookieOptions {} + interface Errback extends core.Errback {} + interface ErrorRequestHandler< + P = core.ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = core.Query, + Locals extends Record = Record + > extends core.ErrorRequestHandler {} + interface Express extends core.Express {} + interface Handler extends core.Handler {} + interface IRoute extends core.IRoute {} + interface IRouter extends core.IRouter {} + interface IRouterHandler extends core.IRouterHandler {} + interface IRouterMatcher extends core.IRouterMatcher {} + interface MediaType extends core.MediaType {} + interface NextFunction extends core.NextFunction {} + interface Request< + P = core.ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = core.Query, + Locals extends Record = Record + > extends core.Request {} + interface RequestHandler< + P = core.ParamsDictionary, + ResBody = any, + ReqBody = any, + ReqQuery = core.Query, + Locals extends Record = Record + > extends core.RequestHandler {} + interface RequestParamHandler extends core.RequestParamHandler {} + export interface Response = Record> + extends core.Response {} + interface Router extends core.Router {} + interface Send extends core.Send {} +} + +export = e; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/fs-capacitor/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/fs-capacitor/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..21071075c24599ee98254f702bcfc504cdc275a6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/fs-capacitor/LICENSE" @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/fs-capacitor/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/fs-capacitor/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..ca61e405f70c2edf1b3257e9eaff00eef804abe6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/fs-capacitor/README.md" @@ -0,0 +1,16 @@ +# Installation +> `npm install --save @types/fs-capacitor` + +# Summary +This package contains type definitions for fs-capacitor ( https://github.com/mike-marcacci/fs-capacitor#readme ). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fs-capacitor + +Additional Details + * Last updated: Thu, 09 May 2019 18:20:03 GMT + * Dependencies: @types/node + * Global values: none + +# Credits +These definitions were written by Mike Marcacci . diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/fs-capacitor/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/fs-capacitor/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..60034deb4016cec804a75aee71e1f256c2d8180e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/fs-capacitor/index.d.ts" @@ -0,0 +1,18 @@ +// Type definitions for fs-capacitor 2.0 +// Project: https://github.com/mike-marcacci/fs-capacitor#readme +// Definitions by: Mike Marcacci +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 3.3 + +/// + +import { ReadStream as FSReadStream, WriteStream as FSWriteStream } from "fs"; + +export class ReadAfterDestroyedError extends Error {} + +export class ReadStream extends FSReadStream {} + +export class WriteStream extends FSWriteStream { + constructor() + createReadStream(name?: string): ReadStream; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/fs-capacitor/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/fs-capacitor/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..a3e1b96b2bc402179fe0eccc4902d11f11c1e7fa --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/fs-capacitor/package.json" @@ -0,0 +1,26 @@ +{ + "name": "@types/fs-capacitor", + "version": "2.0.0", + "description": "TypeScript definitions for fs-capacitor", + "license": "MIT", + "contributors": [ + { + "name": "Mike Marcacci", + "url": "https://github.com/mike-marcacci", + "githubUsername": "mike-marcacci" + } + ], + "main": "", + "types": "index", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/fs-capacitor" + }, + "scripts": {}, + "dependencies": { + "@types/node": "*" + }, + "typesPublisherContentHash": "3e4d6805865fc141224964e6de2778191082475da98fdef3f81e0a9d2d6b12bf", + "typeScriptVersion": "3.3" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-assert/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-assert/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..9e841e7a26e4eb057b24511e7b92d42b257a80e5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-assert/LICENSE" @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-assert/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-assert/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..f9a720f276ecd24277eefcb459d9b8a4b9a96be6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-assert/README.md" @@ -0,0 +1,68 @@ +# Installation +> `npm install --save @types/http-assert` + +# Summary +This package contains type definitions for http-assert (https://github.com/jshttp/http-assert). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/http-assert. +## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/http-assert/index.d.ts) +````ts +// Type definitions for http-assert 1.5 +// Project: https://github.com/jshttp/http-assert +// Definitions by: jKey Lu +// Peter Squicciarini +// Alex Bulanov +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/** + * @param status the status code + * @param msg the message of the error, defaulting to node's text for that status code + * @param opts custom properties to attach to the error object + */ +declare function assert(value: any, status?: number, msg?: string, opts?: Record): asserts value; +declare function assert(value: any, status?: number, opts?: Record): asserts value; + +declare namespace assert { + /** + * @param status the status code + * @param msg the message of the error, defaulting to node's text for that status code + * @param opts custom properties to attach to the error object + */ + type Assert = (a: T, b: T, status?: number, msg?: string, opts?: Record) => void; + + /** + * @param status the status code + * @param msg the message of the error, defaulting to node's text for that status code + * @param opts custom properties to attach to the error object + */ + type AssertOK = (a: any, status?: number, msg?: string, opts?: Record) => asserts a; + + /** + * @param status the status code + * @param msg the message of the error, defaulting to node's text for that status code + * @param opts custom properties to attach to the error object + */ + type AssertEqual = (a: any, b: any, status?: number, msg?: string, opts?: Record) => void; + + const equal: Assert; + const notEqual: Assert; + const ok: AssertOK; + const strictEqual: AssertEqual; + const notStrictEqual: AssertEqual; + const deepEqual: AssertEqual; + const notDeepEqual: AssertEqual; +} + +export = assert; + +```` + +### Additional Details + * Last updated: Thu, 26 Aug 2021 01:01:28 GMT + * Dependencies: none + * Global values: none + +# Credits +These definitions were written by [jKey Lu](https://github.com/jkeylu), [Peter Squicciarini](https://github.com/stripedpajamas), and [Alex Bulanov](https://github.com/sapfear). diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-assert/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-assert/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..b51beeb6752a625771e115d49eb1fc4403976ffc --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-assert/index.d.ts" @@ -0,0 +1,48 @@ +// Type definitions for http-assert 1.5 +// Project: https://github.com/jshttp/http-assert +// Definitions by: jKey Lu +// Peter Squicciarini +// Alex Bulanov +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/** + * @param status the status code + * @param msg the message of the error, defaulting to node's text for that status code + * @param opts custom properties to attach to the error object + */ +declare function assert(value: any, status?: number, msg?: string, opts?: Record): asserts value; +declare function assert(value: any, status?: number, opts?: Record): asserts value; + +declare namespace assert { + /** + * @param status the status code + * @param msg the message of the error, defaulting to node's text for that status code + * @param opts custom properties to attach to the error object + */ + type Assert = (a: T, b: T, status?: number, msg?: string, opts?: Record) => void; + + /** + * @param status the status code + * @param msg the message of the error, defaulting to node's text for that status code + * @param opts custom properties to attach to the error object + */ + type AssertOK = (a: any, status?: number, msg?: string, opts?: Record) => asserts a; + + /** + * @param status the status code + * @param msg the message of the error, defaulting to node's text for that status code + * @param opts custom properties to attach to the error object + */ + type AssertEqual = (a: any, b: any, status?: number, msg?: string, opts?: Record) => void; + + const equal: Assert; + const notEqual: Assert; + const ok: AssertOK; + const strictEqual: AssertEqual; + const notStrictEqual: AssertEqual; + const deepEqual: AssertEqual; + const notDeepEqual: AssertEqual; +} + +export = assert; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-assert/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-assert/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..4bc111e1352c1ebb6691063fe5663480ee571148 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-assert/package.json" @@ -0,0 +1,35 @@ +{ + "name": "@types/http-assert", + "version": "1.5.3", + "description": "TypeScript definitions for http-assert", + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/http-assert", + "license": "MIT", + "contributors": [ + { + "name": "jKey Lu", + "url": "https://github.com/jkeylu", + "githubUsername": "jkeylu" + }, + { + "name": "Peter Squicciarini", + "url": "https://github.com/stripedpajamas", + "githubUsername": "stripedpajamas" + }, + { + "name": "Alex Bulanov", + "url": "https://github.com/sapfear", + "githubUsername": "sapfear" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/http-assert" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "7ad91b3d116c75bc8d2d07998ed8070e21592e70b3b42d86884d6168e8c7dc2b", + "typeScriptVersion": "3.7" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-errors/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-errors/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..9e841e7a26e4eb057b24511e7b92d42b257a80e5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-errors/LICENSE" @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-errors/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-errors/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..be95380d0c2acb905f6ce8a78afb626812ff245a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-errors/README.md" @@ -0,0 +1,16 @@ +# Installation +> `npm install --save @types/http-errors` + +# Summary +This package contains type definitions for http-errors (https://github.com/jshttp/http-errors). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/http-errors. + +### Additional Details + * Last updated: Thu, 13 Jan 2022 20:01:39 GMT + * Dependencies: none + * Global values: none + +# Credits +These definitions were written by [Tanguy Krotoff](https://github.com/tkrotoff), and [BendingBender](https://github.com/BendingBender). diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-errors/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-errors/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..cc2cb134351ca9f7c0c94017d593611862821428 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-errors/index.d.ts" @@ -0,0 +1,79 @@ +// Type definitions for http-errors 1.8 +// Project: https://github.com/jshttp/http-errors +// Definitions by: Tanguy Krotoff +// BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +export = createHttpError; + +declare const createHttpError: createHttpError.CreateHttpError & createHttpError.NamedConstructors & { + isHttpError: createHttpError.IsHttpError +}; + +declare namespace createHttpError { + interface HttpError extends Error { + status: N; + statusCode: N; + expose: boolean; + headers?: { + [key: string]: string; + } | undefined; + [key: string]: any; + } + + type UnknownError = Error | string | number | { [key: string]: any }; + + type HttpErrorConstructor = new (msg?: string) => HttpError; + + type CreateHttpError = (arg: N, ...rest: UnknownError[]) => HttpError; + + type IsHttpError = (error: unknown) => error is HttpError; + + type NamedConstructors = { + [code: string]: HttpErrorConstructor; + HttpError: HttpErrorConstructor; + } + & Record<'BadRequest' | '400', HttpErrorConstructor<400>> + & Record<'Unauthorized' | '401', HttpErrorConstructor<401>> + & Record<'PaymentRequired' | '402', HttpErrorConstructor<402>> + & Record<'Forbidden' | '403', HttpErrorConstructor<403>> + & Record<'NotFound' | '404', HttpErrorConstructor<404>> + & Record<'MethodNotAllowed' | '405', HttpErrorConstructor<405>> + & Record<'NotAcceptable' | '406', HttpErrorConstructor<406>> + & Record<'ProxyAuthenticationRequired' | '407', HttpErrorConstructor<407>> + & Record<'RequestTimeout' | '408', HttpErrorConstructor<408>> + & Record<'Conflict' | '409', HttpErrorConstructor<409>> + & Record<'Gone' | '410', HttpErrorConstructor<410>> + & Record<'LengthRequired' | '411', HttpErrorConstructor<411>> + & Record<'PreconditionFailed' | '412', HttpErrorConstructor<412>> + & Record<'PayloadTooLarge' | '413', HttpErrorConstructor<413>> + & Record<'URITooLong' | '414', HttpErrorConstructor<414>> + & Record<'UnsupportedMediaType' | '415', HttpErrorConstructor<415>> + & Record<'RangeNotSatisfiable' | '416', HttpErrorConstructor<416>> + & Record<'ExpectationFailed' | '417', HttpErrorConstructor<417>> + & Record<'ImATeapot' | '418', HttpErrorConstructor<418>> + & Record<'MisdirectedRequest' | '421', HttpErrorConstructor<421>> + & Record<'UnprocessableEntity' | '422', HttpErrorConstructor<422>> + & Record<'Locked' | '423', HttpErrorConstructor<423>> + & Record<'FailedDependency' | '424', HttpErrorConstructor<424>> + & Record<'UnorderedCollection' | '425', HttpErrorConstructor<425>> + & Record<'UpgradeRequired' | '426', HttpErrorConstructor<426>> + & Record<'PreconditionRequired' | '428', HttpErrorConstructor<428>> + & Record<'TooManyRequests' | '429', HttpErrorConstructor<429>> + & Record<'RequestHeaderFieldsTooLarge' | '431', HttpErrorConstructor<431>> + & Record<'UnavailableForLegalReasons' | '451', HttpErrorConstructor<451>> + & Record<'InternalServerError' | '500', HttpErrorConstructor<500>> + & Record<'NotImplemented' | '501', HttpErrorConstructor<501>> + & Record<'BadGateway' | '502', HttpErrorConstructor<502>> + & Record<'ServiceUnavailable' | '503', HttpErrorConstructor<500>> + & Record<'GatewayTimeout' | '504', HttpErrorConstructor<504>> + & Record<'HTTPVersionNotSupported' | '505', HttpErrorConstructor<505>> + & Record<'VariantAlsoNegotiates' | '506', HttpErrorConstructor<506>> + & Record<'InsufficientStorage' | '507', HttpErrorConstructor<507>> + & Record<'LoopDetected' | '508', HttpErrorConstructor<508>> + & Record<'BandwidthLimitExceeded' | '509', HttpErrorConstructor<509>> + & Record<'NotExtended' | '510', HttpErrorConstructor<510>> + & Record<'NetworkAuthenticationRequire' | '511', HttpErrorConstructor<511>> + ; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-errors/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-errors/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..fef80e3e2edd23147135ed445320fa09799f4671 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/http-errors/package.json" @@ -0,0 +1,30 @@ +{ + "name": "@types/http-errors", + "version": "1.8.2", + "description": "TypeScript definitions for http-errors", + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/http-errors", + "license": "MIT", + "contributors": [ + { + "name": "Tanguy Krotoff", + "url": "https://github.com/tkrotoff", + "githubUsername": "tkrotoff" + }, + { + "name": "BendingBender", + "url": "https://github.com/BendingBender", + "githubUsername": "BendingBender" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/http-errors" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "c2479b8b9d3c81b8d5e05a4e9af2847027b1274dadcdd92a5468f98c98449978", + "typeScriptVersion": "3.8" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..9e841e7a26e4eb057b24511e7b92d42b257a80e5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/LICENSE" @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..03372324ecee242558a8d0b4648f57d78a81159b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/README.md" @@ -0,0 +1,16 @@ +# Installation +> `npm install --save @types/inquirer` + +# Summary +This package contains type definitions for inquirer (https://github.com/SBoudrias/Inquirer.js). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/inquirer. + +### Additional Details + * Last updated: Wed, 30 Mar 2022 07:31:44 GMT + * Dependencies: [@types/rxjs](https://npmjs.com/package/@types/rxjs), [@types/through](https://npmjs.com/package/@types/through) + * Global values: none + +# Credits +These definitions were written by [Qubo](https://github.com/tkQubo), [Parvez](https://github.com/ppathan), [Jouderian](https://github.com/jouderianjr), [Qibang](https://github.com/bang88), [Jason Dreyzehner](https://github.com/bitjson), [Synarque](https://github.com/synarque), [Justin Rockwood](https://github.com/jrockwood), [Keith Kelly](https://github.com/kwkelly), [Richard Lea](https://github.com/chigix), [Jed Mao](https://github.com/jedmao), and [Manuel Thalmann](https://github.com/manuth). diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..2854637ac5396c72c29917b38bfbd2bcff14c379 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/index.d.ts" @@ -0,0 +1,997 @@ +// Type definitions for inquirer 8.2 +// Project: https://github.com/SBoudrias/Inquirer.js +// Definitions by: Qubo +// Parvez +// Jouderian +// Qibang +// Jason Dreyzehner +// Synarque +// Justin Rockwood +// Keith Kelly +// Richard Lea +// Jed Mao +// Manuel Thalmann +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 4.2 +import { Interface as ReadlineInterface } from 'readline'; +import { Observable } from 'rxjs'; +import Choice = require('./lib/objects/choice'); +import Choices = require('./lib/objects/choices'); +import Separator = require('./lib/objects/separator'); +import './lib/prompts/base'; +import './lib/prompts/checkbox'; +import './lib/prompts/confirm'; +import './lib/prompts/editor'; +import './lib/prompts/expand'; +import './lib/prompts/input'; +import './lib/prompts/list'; +import './lib/prompts/number'; +import './lib/prompts/password'; +import './lib/prompts/rawlist'; +import './lib/utils/events'; +import './lib/utils/paginator'; +import './lib/utils/readline'; +import './lib/utils/screen-manager'; +import './lib/utils/utils'; +import BottomBar = require('./lib/ui/bottom-bar'); +import PromptUI = require('./lib/ui/prompt'); + +/** + * Represents a union which preserves autocompletion. + * + * @template T + * The keys which are available for autocompletion. + * + * @template F + * The fallback-type. + */ +type LiteralUnion = T | (F & {}); + +/** + * Provides prompts for answering questions. + */ +interface PromptModuleBase { + /** + * Registers a new prompt-type. + * + * @param name + * The name of the prompt. + * + * @param prompt + * The constructor of the prompt. + */ + registerPrompt(name: string, prompt: inquirer.prompts.PromptConstructor): void; + + /** + * Registers the default prompts. + */ + restoreDefaultPrompts(): void; +} + +/** + * Represents a list-based question. + * + * @template T + * The type of the answers. + * + * @template TChoiceMap + * The valid choices for the question. + */ +interface ListQuestionOptionsBase extends inquirer.Question { + /** + * The choices of the prompt. + */ + choices?: inquirer.AsyncDynamicQuestionProperty>, T> | undefined; + + /** + * The number of elements to show on each page. + */ + pageSize?: number | undefined; +} + +/** + * Provides components for the module. + */ +declare namespace inquirer { + /** + * Represents either a key of `T` or a `string`. + * + * @template T + * The type of the keys to suggest. + */ + type KeyUnion = LiteralUnion>; + + /** + * Converts the specified union-type `U` to an intersection-type. + * + * @template U + * The union to convert to an intersection. + */ + type UnionToIntersection = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never; + + /** + * Provides an input and an output-stream. + */ + interface StreamOptions { + /** + * A stream to read the input from. + */ + input?: NodeJS.ReadStream | undefined; + + /** + * A stream to write the output to. + */ + output?: NodeJS.WriteStream | undefined; + } + + /** + * Provides the functionality to prompt questions to the user. + */ + interface PromptModule extends PromptModuleBase { + /** + * The prompts of the prompt-module. + */ + prompts: prompts.PromptCollection; + + /** + * Prompts the questions to the user. + */ + (questions: QuestionCollection, initialAnswers?: Partial): Promise & { ui: PromptUI }; + + /** + * Registers a new prompt-type. + * + * @param name + * The name of the prompt. + * + * @param prompt + * The constructor of the prompt. + */ + registerPrompt(name: string, prompt: prompts.PromptConstructor): this; + } + + interface Inquirer extends PromptModuleBase { + /** + * Registers a new prompt-type. + * + * @param name + * The name of the prompt. + * + * @param prompt + * The constructor of the prompt. + */ + registerPrompt(name: string, prompt: prompts.PromptConstructor): void; + + /** + * Creates a prompt-module. + * + * @param opt + * The streams for the prompt-module. + * + * @returns + * The new prompt-module. + */ + createPromptModule(opt?: StreamOptions): PromptModule; + + /** + * The default prompt-module. + */ + prompt: PromptModule; + + /** + * The prompts of the default prompt-module. + * + * @deprecated + */ + prompts: {}; + + /** + * Represents a choice-item separator. + */ + Separator: typeof Separator; + + /** + * Provides ui-components. + */ + ui: { + /** + * Represents the bottom-bar UI. + */ + BottomBar: typeof BottomBar; + + /** + * Represents the prompt ui. + */ + Prompt: typeof PromptUI; + }; + } + + /** + * A set of answers. + */ + interface Answers extends Record {} + + /** + * Provides the functionality to validate answers. + * + * @template T + * The type of the answers. + */ + type Validator = Question['validate']; + + /** + * Provides the functionality to transform an answer. + * + * @template T + * The type of the answers. + */ + type Transformer = InputQuestionOptions['transformer']; + + /** + * Represents a dynamic property for a question. + * + * @template T + * The type of the property. + * + * @template TAnswers + * The type of the answers. + */ + type DynamicQuestionProperty = T | ((answers: TAnswers) => T); + + /** + * Represents a dynamic property for a question which can be fetched asynchronously. + * + * @template T + * The type of the property. + * + * @template TAnswers + * The type of the answers. + */ + type AsyncDynamicQuestionProperty = DynamicQuestionProperty< + T | Promise, + TAnswers + >; + + /** + * Provides options for a question. + * + * @template T + * The type of the answers. + */ + interface Question { + /** + * The type of the question. + */ + type?: string | undefined; + + /** + * The key to save the answer to the answers-hash. + */ + name?: KeyUnion | undefined; + + /** + * The message to show to the user. + */ + message?: AsyncDynamicQuestionProperty | undefined; + + /** + * The default value of the question. + */ + default?: AsyncDynamicQuestionProperty | undefined; + + /** + * The prefix of the `message`. + */ + prefix?: string | undefined; + + /** + * The suffix of the `message`. + */ + suffix?: string | undefined; + + /** + * Post-processes the answer. + * + * @param input + * The answer provided by the user. + * + * @param answers + * The answers provided by the user. + */ + filter?(input: any, answers: T): any; + + /** + * A value indicating whether the question should be prompted. + */ + when?: AsyncDynamicQuestionProperty | undefined; + + /** + * Validates the integrity of the answer. + * + * @param input + * The answer provided by the user. + * + * @param answers + * The answers provided by the user. + * + * @returns + * Either a value indicating whether the answer is valid or a `string` which describes the error. + */ + validate?(input: any, answers?: T): boolean | string | Promise; + + /** + * Force to prompt the question if the answer already exists. + */ + askAnswered?: boolean; + } + + /** + * Represents the possible answers of each question in the prompt + */ + type QuestionAnswer = { + [K in keyof T]: { + name: K; + answer: T[K] + } + }[keyof T]; + + /** + * Represents a choice-item. + */ + interface ChoiceBase { + /** + * The type of the choice. + */ + type?: string | undefined; + } + + /** + * Provides options for a choice. + */ + interface ChoiceOptions extends ChoiceBase { + /** + * @inheritdoc + */ + type?: 'choice' | undefined; + + /** + * The name of the choice to show to the user. + */ + name?: string | undefined; + + /** + * The value of the choice. + */ + value?: any; + + /** + * The short form of the name of the choice. + */ + short?: string | undefined; + + /** + * The extra properties of the choice. + */ + extra?: any; + } + + /** + * Provides options for a choice of the `ListPrompt`. + * + * @template T + * The type of the answers. + */ + interface ListChoiceOptions extends ChoiceOptions { + /** + * A value indicating whether the choice is disabled. + */ + disabled?: DynamicQuestionProperty | undefined; + } + + /** + * Provides options for a choice of the `CheckboxPrompt`. + * + * @template T + * The type of the answers. + */ + interface CheckboxChoiceOptions extends ListChoiceOptions { + /** + * A value indicating whether the choice should be initially checked. + */ + checked?: boolean | undefined; + } + + /** + * Provides options for a choice of the `ExpandPrompt`. + */ + interface ExpandChoiceOptions extends ChoiceOptions { + /** + * The key to press for selecting the choice. + */ + key?: string | undefined; + } + + /** + * Represents a separator. + */ + interface SeparatorOptions extends ChoiceBase { + /** + * Gets the type of the choice. + */ + type: 'separator'; + + /** + * Gets or sets the text of the separator. + */ + line?: string | undefined; + } + + /** + * Provides all valid choice-types for any kind of question. + * + * @template T + * The type of the answers. + */ + interface BaseChoiceMap { + Choice: Choice; + ChoiceOptions: ChoiceOptions; + SeparatorOptions: SeparatorOptions; + Separator: Separator; + } + + /** + * Provides all valid choice-types for the `ListQuestion`. + * + * @template T + * The type of the answers. + */ + interface ListChoiceMap extends BaseChoiceMap { + ListChoiceOptions: ListChoiceOptions; + } + + /** + * Provides all valid choice-types for the `CheckboxQuestion`. + * + * @template T + * The type of the answers. + */ + interface CheckboxChoiceMap extends BaseChoiceMap { + CheckboxChoiceOptions: CheckboxChoiceOptions; + } + + /** + * Provides all valid choice-types for the `ExpandQuestion`. + * + * @template T + * The type of the answers. + */ + interface ExpandChoiceMap extends BaseChoiceMap { + ExpandChoiceOptions: ExpandChoiceOptions; + } + + /** + * Provides all valid choice-types. + * + * @template T + * The type of the answers. + */ + interface AllChoiceMap { + BaseChoiceMap: BaseChoiceMap[keyof BaseChoiceMap]; + ListChoiceMap: ListChoiceMap[keyof ListChoiceMap]; + CheckboxChoiceMap: CheckboxChoiceMap[keyof CheckboxChoiceMap]; + ExpandChoiceMap: ExpandChoiceMap[keyof ExpandChoiceMap]; + } + + /** + * Provides valid choices for the question of the `TChoiceMap`. + * + * @template TAnswers + * The type of the answers. + * + * @template TChoiceMap + * The choice-types to provide. + */ + type DistinctChoice> = + | string + | TChoiceMap[keyof TChoiceMap]; + + /** + * Represents a set of choices. + * + * @template T + * The type of the answers. + */ + type ChoiceCollection = Array>>; + + /** + * Provides options for a question for the `InputPrompt`. + * + * @template T + * The type of the answers. + */ + interface InputQuestionOptions extends Question { + /** + * Transforms the value to display to the user. + * + * @param input + * The input provided by the user. + * + * @param answers + * The answers provided by the users. + * + * @param flags + * Additional information about the value. + * + * @returns + * The value to display to the user. + */ + transformer?(input: any, answers: T, flags: { isFinal?: boolean | undefined }): string | Promise; + } + + /** + * Provides options for a question for the `InputPrompt`. + * + * @template T + * The type of the answers. + */ + interface InputQuestion extends InputQuestionOptions { + /** + * @inheritdoc + */ + type?: 'input' | undefined; + } + + /** + * Provides options for a question for the `NumberPrompt`. + * + * @template T + * The type of the answers. + */ + interface NumberQuestionOptions extends InputQuestionOptions {} + + /** + * Provides options for a question for the `NumberPrompt`. + * + * @template T + * The type of the answers. + */ + interface NumberQuestion extends NumberQuestionOptions { + /** + * @inheritdoc + */ + type: 'number'; + } + + /** + * Provides options for a question for the `PasswordPrompt`. + * + * @template T + * The type of the answers. + */ + interface PasswordQuestionOptions extends InputQuestionOptions { + /** + * The character to replace the user-input. + */ + mask?: string | undefined; + } + + /** + * Provides options for a question for the `PasswordPrompt`. + * + * @template T + * The type of the answers. + */ + interface PasswordQuestion extends PasswordQuestionOptions { + /** + * @inheritdoc + */ + type: 'password'; + } + + /** + * Represents a list-based question that can loop. + * + * @template T + * The type of the answers. + * + * @template TChoiceMap + * The valid choices for the question. + */ + interface LoopableListQuestionOptionsBase extends ListQuestionOptionsBase { + /** + * A value indicating whether choices in a list should be looped. + */ + loop?: boolean | undefined; + } + + /** + * Provides options for a question for the `ListPrompt`. + * + * @template T + * The type of the answers. + */ + interface ListQuestionOptions + extends LoopableListQuestionOptionsBase> {} + + /** + * Provides options for a question for the `ListPrompt`. + * + * @template T + * The type of the answers. + */ + interface ListQuestion extends ListQuestionOptions { + /** + * @inheritdoc + */ + type: 'list'; + } + + /** + * Provides options for a question for the `RawListPrompt`. + * + * @template T + * The type of the answers. + */ + interface RawListQuestionOptions extends ListQuestionOptions {} + + /** + * Provides options for a question for the `RawListPrompt`. + * + * @template T + * The type of the answers. + */ + interface RawListQuestion extends RawListQuestionOptions { + /** + * @inheritdoc + */ + type: 'rawlist'; + } + + /** + * Provides options for a question for the `ExpandPrompt`. + * + * @template T + * The type of the answers. + */ + interface ExpandQuestionOptions + extends ListQuestionOptionsBase> {} + + /** + * Provides options for a question for the `ExpandPrompt`. + * + * @template T + * The type of the answers. + */ + interface ExpandQuestion extends ExpandQuestionOptions { + /** + * @inheritdoc + */ + type: 'expand'; + } + + /** + * Provides options for a question for the `CheckboxPrompt`. + * + * @template T + * The type of the answers. + */ + interface CheckboxQuestionOptions + extends LoopableListQuestionOptionsBase> {} + + /** + * Provides options for a question for the `CheckboxPrompt`. + * + * @template T + * The type of the answers. + */ + interface CheckboxQuestion extends CheckboxQuestionOptions { + /** + * @inheritdoc + */ + type: 'checkbox'; + } + + /** + * Provides options for a question for the `ConfirmPrompt`. + * + * @template T + * The type of the answers. + */ + interface ConfirmQuestionOptions extends Question {} + + /** + * Provides options for a question for the `ConfirmPrompt`. + * + * @template T + * The type of the answers. + */ + interface ConfirmQuestion extends ConfirmQuestionOptions { + /** + * @inheritdoc + */ + type: 'confirm'; + } + + /** + * Provides options for a question for the `EditorPrompt`. + * + * @template T + * The type of the answers. + */ + interface EditorQuestionOptions extends Question {} + + /** + * Provides options for a question for the `EditorPrompt`. + * + * @template T + * The type of the answers. + */ + interface EditorQuestion extends EditorQuestionOptions { + /** + * @inheritdoc + */ + type: 'editor'; + } + + /** + * Provides the available question-types. + * + * @template T + * The type of the answers. + */ + interface QuestionMap { + /** + * The `InputQuestion` type. + */ + input: InputQuestion; + + /** + * The `NumberQuestion` type. + */ + number: NumberQuestion; + + /** + * The `PasswordQuestion` type. + */ + password: PasswordQuestion; + + /** + * The `ListQuestion` type. + */ + list: ListQuestion; + + /** + * The `RawListQuestion` type. + */ + rawList: RawListQuestion; + + /** + * The `ExpandQuestion` type. + */ + expand: ExpandQuestion; + + /** + * The `CheckboxQuestion` type. + */ + checkbox: CheckboxQuestion; + + /** + * The `ConfirmQuestion` type. + */ + confirm: ConfirmQuestion; + + /** + * The `EditorQuestion` type. + */ + editor: EditorQuestion; + } + + /** + * Represents one of the available questions. + * + * @template T + * The type of the answers. + */ + type DistinctQuestion = QuestionMap[keyof QuestionMap]; + + /** + * Indicates the type of a question + */ + type QuestionTypeName = DistinctQuestion['type']; + + /** + * Represents a collection of questions. + * + * @template T + * The type of the answers. + */ + type QuestionCollection = + | DistinctQuestion + | ReadonlyArray> + | Observable>; + + /** + * Provides components for the prompts. + */ + namespace prompts { + /** + * Provides a base for and prompt-options. + * + * @template T + * The type of the answers. + */ + type PromptOptions = T & { + /** + * The choices of the prompt. + */ + choices: Choices; + }; + + /** + * Represents the state of a prompt. + */ + type PromptState = LiteralUnion<'pending' | 'idle' | 'loading' | 'answered' | 'done'>; + + /** + * Represents a prompt. + */ + interface PromptBase { + /** + * Gets or sets a string which represents the state of the prompt. + */ + status: PromptState; + + /** + * Runs the prompt. + * + * @returns + * The result of the prompt. + */ + run(): Promise; + } + + /** + * Provides the functionality to initialize new prompts. + */ + interface PromptConstructor { + /** + * Initializes a new instance of a prompt. + * + * @param question + * The question to prompt. + * + * @param readLine + * An object for reading from the command-line. + * + * @param answers + * The answers provided by the user. + */ + new (question: any, readLine: ReadlineInterface, answers: Answers): PromptBase; + } + + /** + * Provides a set of prompt-constructors. + */ + type PromptCollection = Record; + + /** + * Provides data about the state of a prompt. + */ + interface PromptStateData { + /** + * Either a string which describes the error of the prompt or a boolean indicating whether the prompt-value is valid. + */ + isValid: string | boolean; + } + + /** + * Provides data about the successful state of a prompt. + * + * @param T + * The type of the answer. + */ + interface SuccessfulPromptStateData extends PromptStateData { + /** + * @inheritdoc + */ + isValid: true; + + /** + * The value of the prompt. + */ + value: T; + } + + /** + * Provides data about the failed state of a prompt. + */ + interface FailedPromptStateData extends PromptStateData { + /** + * @inheritdoc + */ + isValid: false | string; + } + + /** + * Provides pipes for handling events of a prompt. + * + * @param T + * The type of the answer. + */ + interface PromptEventPipes { + /** + * A pypeline for succesful inputs. + */ + success: Observable>; + + /** + * An object representing an error. + */ + error: Observable; + } + } + + /** + * Provides components for the ui. + */ + namespace ui { + /** + * Provides options for the bottom-bar UI. + */ + interface BottomBarOptions extends StreamOptions { + /** + * The initial text to display. + */ + bottomBar?: string | undefined; + } + + /** + * Represents a fetched answer. + * + * @template T + * The type of the answers. + */ + type FetchedQuestion = DistinctQuestion & { + /** + * The type of the question. + */ + type: string; + + /** + * The message to show to the user. + */ + message: string; + + /** + * The default value of the question. + */ + default: any; + + /** + * The choices of the question. + */ + choices: ChoiceCollection; + }; + + /** + * Represents a fetched answer. + */ + interface FetchedAnswer { + /** + * The name of the answer. + */ + name: string; + + /** + * The value of the answer. + */ + answer: any; + } + } +} + +/** + * Provides the functionality to prompt questions. + */ +declare var inquirer: inquirer.Inquirer; +export = inquirer; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/objects/choice.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/objects/choice.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..2aefa43031cea060105f36e98d3685427e8f445a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/objects/choice.d.ts" @@ -0,0 +1,65 @@ +import { Answers, CheckboxChoiceOptions, ExpandChoiceOptions, ListChoiceOptions } from '../..'; + +/** + * Represents a choice for several question-types. + * + * @template T + * The type of the answers. + */ +declare class Choice + implements ListChoiceOptions, CheckboxChoiceOptions, ExpandChoiceOptions { + /** + * @inheritdoc + */ + type?: 'choice' | undefined; + + /** + * @inheritdoc + */ + name: string; + + /** + * @inheritdoc + */ + short: string; + + /** + * @inheritdoc + */ + value: any; + + /** + * @inheritdoc + */ + checked?: boolean | undefined; + + /** + * @inheritdoc + */ + disabled: boolean; + + /** + * The key to press for selecting the choice. + * + * @inheritdoc + */ + key?: string | undefined; + + /** + * @inheritdoc + */ + extra?: any; + + /** + * Initializes a new instance of the `Choice` class. + * + * @param value + * The value of the choice. + * + * @param answers + * An object which contains the answers to the questions. + */ + constructor(value: any, answers: T); +} + +export = Choice; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/objects/choices.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/objects/choices.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..84206f64d509bb08600cefb762190e72098bdb28 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/objects/choices.d.ts" @@ -0,0 +1,206 @@ +import { AllChoiceMap, Answers, KeyUnion, UnionToIntersection } from '../..'; +import Choice = require('./choice'); +import Separator = require('./separator'); + +/** + * Represents a valid choice for the `Choices` class. + * + * @template T + * The type of the answers. + */ +type DistinctChoice = AllChoiceMap[keyof AllChoiceMap]; + +/** + * Represents a valid real choice for the `Choices` class. + * + * @template T + * The type of the answers. + */ +type RealChoice = Exclude, { type: Separator['type'] }>; + +/** + * Represents a property-name of any choice-type. + * + * @template T + * The type of the answers. + */ +type ChoiceProperty = KeyUnion>>; + +/** + * A collection of multiple `Choice`-objects. + * + * @template T + * The type of the answers. + */ +declare class Choices { + /** + * The number of selectable choices. + */ + realLength: number; + + /** + * The number of choices. + */ + length: number; + + /** + * The unfiltered choices. + */ + choices: Array>; + + /** + * The selectable choices. + */ + realChoices: Array>; + + /** + * Initializes a new instance of the `Choices` class. + * + * @param choices + * The choices to add to the collection. + * + * @param answers + * The `answers`-object. + */ + constructor(choices: Array>, answers: T); + + /** + * Gets the choice at the specified index. + * + * @param index + * The index of the choice to get. + * + * @returns + * The choice at the specified index. + */ + getChoice(index: number): RealChoice; + + /** + * Gets the item at the specified index. + * + * @param index + * The index of the item to get. + * + * @returns + * The item at the specified index. + */ + get(index: number): DistinctChoice; + + /** + * Gets all choices which apply to the where-clause. + * + * @param whereClause + * The where-clause to apply. + * + * @returns + * The choices which apply to the where-clause. + */ + where(whereClause: object): Array>; + + /** + * Retrieves the specified `property` from all choices. + * + * @template TProperty + * The name of the property to get. + * + * @param property + * The property to query. + * + * @returns + * The value of the property of each choice. + */ + pluck>( + property: TProperty | ChoiceProperty, + ): Array<(RealChoice & { [key: string]: undefined })[TProperty]>; + + /** + * Returns the index of the first occurrence of a value in an array. + * + * @param searchElement + * The value to locate in the array. + * + * @param fromIndex + * The array index at which to begin the search. + * + * If fromIndex is omitted, the search starts at index 0. + * + * @returns + * The index of the specified `searchElement`. + */ + indexOf(searchElement: Choice | Separator, fromIndex?: number): number; + + /** + * Performs the specified action for each element in an array. + * + * @param callbackfn + * A function that accepts up to three arguments. + * + * `forEach` calls the callbackfn function one time for each element in the array. + * + * @param thisArg + * An object to which the this keyword can refer in the callbackfn function. + * + * If `thisArg` is omitted, undefined is used as the this value. + */ + forEach( + callbackfn: (value: Choice | Separator, index: number, array: Array | Separator>) => void, + thisArg?: any, + ): void; + + /** + * Returns the elements of an array that meet the condition specified in a callback function. + * + * @param callbackfn + * A function that accepts up to three arguments. + * + * The filter method calls the `callbackfn` function one time for each element in the array. + * + * @param thisArg + * An object to which the `this` keyword can refer in the callbackfn function. + * + * If `thisArg` is omitted, undefined is used as the this value. + * + * @returns + * The elements in the collection which meet the conditions. + */ + filter | Separator>( + callbackfn: ( + value: Choice | Separator, + index: number, + array: Array | Separator>, + ) => value is TElement, + thisArg?: any, + ): TElement[]; + + /** + * Returns the value of the first element in the array where predicate is true, and `undefined` otherwise. + * + * @param predicate + * `find` calls `predicate` once for each element of the array, in ascending order, until it finds one where predicate returns `true`. + * + * If such an element is found, `find` immediately returns that element value. + * Otherwise, find returns undefined. + * + * @param thisArg + * If provided, it will be used as the `this` value for each invocation of `predicate`. + * + * If it is not provided, undefined is used instead. + */ + find( + predicate: (value: Choice | Separator, index: number, obj: Array | Separator>) => boolean, + thisArg?: any, + ): Choice | Separator; + + /** + * Appends new elements to an array, and returns the new length of the array. + * + * @param items + * The elements to add to the array. + * + * @returns + * The new length of the array. + */ + push(...items: Array | Separator>): number; +} + +export = Choices; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/objects/separator.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/objects/separator.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..a3b761754ac382c88ce56c7adced9c50ac51d709 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/objects/separator.d.ts" @@ -0,0 +1,37 @@ +import { SeparatorOptions } from '../..'; + +/** + * Represents a choice-item separator. + */ +declare class Separator implements SeparatorOptions { + /** + * @inheritdoc + */ + readonly type: 'separator'; + + /** + * @inheritdoc + */ + line: string; + + /** + * Initializes a new instance of the `Separator` class. + * + * @param line + * The text of the separator. + */ + constructor(line?: string); + + /** + * Checks whether the specified `item` is not a separator. + * + * @param item + * The item to check. + * + * @returns + * A value indicating whether the item is not a separator. + */ + static exclude(item: any): boolean; +} + +export = Separator; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/base.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/base.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..120c0a793f2a263b981ffa7a641d0dab56d5a191 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/base.d.ts" @@ -0,0 +1,100 @@ +import { Interface as ReadLineInterface } from 'readline'; +import { Observable } from 'rxjs'; +import inquirer = require('../..'); +import ScreenManager = require('../utils/screen-manager'); + +/** + * The question-options for the `Prompt`. + */ +type Question = inquirer.Question; + +/** + * Represents a prompt. + * + * @template TQuestion + * The options for the question. + */ +declare class Prompt implements inquirer.prompts.PromptBase { + /** + * @inheritdoc + */ + status: inquirer.prompts.PromptState; + + /** + * Gets or sets an object which contains the answers. + */ + protected answers: inquirer.Answers; + + /** + * Gets or sets the options of the prompt. + */ + protected opt: inquirer.prompts.PromptOptions; + + /** + * Gets or sets an object for performing read from and write to the console. + */ + protected rl: ReadLineInterface; + + /** + * Gets or sets an object for managing the console-screen. + */ + protected screen: ScreenManager; + + /** + * Initializes a new instance of the `Prompt` class. + * + * @param question + * The question to prompt the user to answer. + * + * @param readLine + * An object for performing read from and write to the console. + * + * @param answers + * The answer-object. + */ + constructor(question: TQuestion, readLine: ReadLineInterface, answers: inquirer.Answers); + + /** + * @inheritdoc + */ + run(): Promise; + + /** + * Runs the prompt. + * + * @param callback + * The callback for resolving the result. + */ + protected _run(callback: (callback: any) => void): void; + + /** + * Throws an error for a missing param. + * + * @param name + * The name of the missing param. + */ + protected throwParamError(name: string): void; + + /** + * Releases all unmanaged resources. + */ + protected close(): void; + + /** + * Handles the submit-event. + * + * @param observable + * The observable submit-event flow. + */ + protected handleSubmitEvents(observable: Observable): inquirer.prompts.PromptEventPipes; + + /** + * Generates the question-string. + * + * @returns + * The question-string. + */ + protected getQuestion(): string; +} + +export = Prompt; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/checkbox.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/checkbox.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..5003e6c00de907c1dbd5167231aee798a6822929 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/checkbox.d.ts" @@ -0,0 +1,116 @@ +import inquirer = require('../..'); +import Prompt = require('./base'); +import { Interface as ReadLineInterface } from 'readline'; +import Paginator = require('../utils/paginator'); + +/** + * The question-options for the `ChoicePrompt`. + */ +type Question = inquirer.CheckboxQuestionOptions; + +/** + * Represents a prompt which provides a set of choices to check. + * + * @template TQuestion + * The options for the question. + */ +declare class CheckboxPrompt extends Prompt { + /** + * Gets or sets the index of the currently focused choice. + */ + protected pointer: number; + + /** + * Gets or sets an object for paginating the content. + */ + protected paginator: Paginator; + + /** + * Initializes a new instance of the `CheckboxPrompt` class. + * + * @param question + * The question to prompt the user to answer. + * + * @param readLine + * An object for performing read from and write to the console. + * + * @param answers + * The answer-object. + */ + constructor(question: TQuestion, readLine: ReadLineInterface, answers: inquirer.Answers); + + /** + * Renders the prompt. + * + * @param error + * An error message to render. + */ + protected render(error?: string): void; + + /** + * Handles the `success`-event of the prompt. + * + * @param eventArgs + * An object which contains event-data. + */ + protected onEnd(eventArgs: inquirer.prompts.SuccessfulPromptStateData): void; + + /** + * Handles the `error`-event of the prompt. + * + * @param eventArgs + * An object which contains event-data. + */ + protected onError(eventArgs: inquirer.prompts.FailedPromptStateData): void; + + /** + * Gets the current value of the prompt. + * + * @returns + * The current value of the prompt. + */ + protected getCurrentValue(): any; + + /** + * Handles the `UpdKey`-event of the prompt. + */ + protected onUpKey(): void; + + /** + * Handles the `DownKey`-event of the prompt. + */ + protected onDownKey(): void; + + /** + * Handles the `NumberKey`-event of the prompt. + * + * @param input + * The number which has been pressed. + */ + protected onNumberKey(input: number): void; + + /** + * Handles the `SpaceKey`-event of the prompt. + */ + protected onSpaceKey(): void; + + /** + * Handles the `AllKey`-event of the prompt. + */ + protected onAllKey(): void; + + /** + * Handles the `InverseKey`-event of the prompt. + */ + protected onInverseKey(): void; + + /** + * Toggles the state of a choice. + * + * @param index + * The index of the choice to toggle. + */ + protected toggleChoice(index: number): void; +} + +export = CheckboxPrompt; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/confirm.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/confirm.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..3e7d174a0fc4e77f4741aef2867ca5d607f4d15f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/confirm.d.ts" @@ -0,0 +1,53 @@ +import Prompt = require('./base'); +import { Answers, ConfirmQuestionOptions } from '../..'; +import { Interface as ReadlineInterface } from 'readline'; + +/** + * The question-options for the `ConfirmPrompt`. + */ +type Question = ConfirmQuestionOptions; + +/** + * Represents a prompt which provides a message to confirm. + * + * @template TQuestion + * The options for the question. + */ +declare class ConfirmPrompt extends Prompt { + /** + * Initializes a new instance of the `ConfirmPrompt` class. + * + * @param question + * The question to prompt the user to answer. + * + * @param readLine + * An object for performing read from and write to the console. + * + * @param answers + * The answer-object. + */ + constructor(questions: TQuestion, readLine: ReadlineInterface, answers: Answers); + + /** + * Renders the prompt. + * + * @param answer + * The answer provided by the user. + */ + protected render(answer?: boolean): this; + + /** + * Handles the `success`-event of the prompt. + * + * @param input + * The input provided by the user. + */ + protected onEnd(input: string): void; + + /** + * Handles the `Keypress`-event of the prompt. + */ + protected onKeypress(): void; +} + +export = ConfirmPrompt; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/editor.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/editor.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..64a05f75891af57834f9df5bce67b2d1959b1c4f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/editor.d.ts" @@ -0,0 +1,101 @@ +import Prompt = require('./base'); +import { Subject, Subscription } from 'rxjs'; +import inquirer = require('../..'); +import { Interface as ReadlineInterface } from 'readline'; + +/** + * The question-options for the `EditorPrompt`. + */ +type Question = inquirer.EditorQuestionOptions; + +/** + * Represents a prompt which provides a text-editor. + * + * @template TQuestion + * The options for the question. + */ +declare class EditorPrompt extends Prompt { + /** + * Resolves the value of the prompt. + */ + protected done: (value: any) => void; + + /** + * Gets or sets an object for subscribing to the editor-result. + */ + protected editorResult: Subject; + + /** + * Gets or sets a subscription to the `line`-event. + */ + protected lineSubscription: Subscription; + + /** + * Gets or sets the initial text. + */ + protected currentText: string; + + /** + * Initializes a new instance of the `EditorPrompt` class. + * + * @param question + * The question to prompt the user to answer. + * + * @param readLine + * An object for performing read from and write to the console. + * + * @param answers + * The answer-object. + */ + constructor(question: TQuestion, readLine: ReadlineInterface, answers: inquirer.Answers); + + /** + * Runs the prompt. + * + * @param callback + * The callback for resolving the result. + */ + protected _run(callback: (value: any) => void): this; + + /** + * Renders the prompt. + * + * @param error + * The error to render. + */ + protected render(error?: string): void; + + /** + * Launches the default text-editor of the system. + */ + protected startExternalEditor(): void; + + /** + * Closes the external editor. + * + * @param error + * Either the error which occurred while executing the external editor or `null`. + * + * @param result + * The result of the editor. + */ + protected endExternalEditor(error: Error, result: string): void; + + /** + * Handles the `success`-event of the prompt. + * + * @param eventArgs + * An object which contains event-data. + */ + protected onEnd(eventArgs: inquirer.prompts.SuccessfulPromptStateData): void; + + /** + * Handles the `error`-event of the prompt. + * + * @param eventArgs + * An object which contains event-data. + */ + protected onError(eventArgs: inquirer.prompts.FailedPromptStateData): void; +} + +export = EditorPrompt; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/expand.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/expand.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..4c659b67819f394859eec64057a1c6fd4d3f0b1b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/expand.d.ts" @@ -0,0 +1,149 @@ +import Paginator = require('../utils/paginator'); +import Prompt = require('./base'); +import inquirer = require('../..'); +import { Interface as ReadlineInterface } from 'readline'; + +/** + * The question-options for the `ExpandPrompt`. + */ +type Question = inquirer.ExpandQuestionOptions; + +/** + * Represents a prompt which forces the user to make a choice by typing a specific key. + * + * @template TQuestion + * The options for the question. + */ +declare class ExpandPrompt extends Prompt { + /** + * Resolves the value of the prompt. + */ + protected done: (value: any) => void; + + /** + * Gets or sets the default key. + */ + protected rawDefault: string; + + /** + * Gets or sets an object for paginating the content. + */ + protected paginator: Paginator; + + /** + * Gets the promise of the keypress-eventhandler. + */ + protected keypressObs: Promise; + + /** + * Gets or sets the currently selected key. + */ + protected selectedKey: string; + + /** + * Gets or sets the answer of the prompt. + */ + protected answer: string; + + /** + * Initializes a new instance of the `ExpandPrompt` class. + * + * @param question + * The question to prompt the user to answer. + * + * @param readLine + * An object for performing read from and write to the console. + * + * @param answers + * The answer-object. + */ + constructor(question: TQuestion, readLine: ReadlineInterface, answers: inquirer.Answers); + + /** + * Renders the prompt to the screen. + * + * @param error + * The error to render. + * + * @param hint + * The hint to render. + */ + protected render(error?: string, hint?: string): void; + + /** + * Determines the current value of the prompt. + * + * @param input + * The input provided by the user. + * + * @returns + * The current value of the prompt. + */ + protected getCurrentValue(input: string): any; + + /** + * Generates the string-representation of the choices. + * + * @deprecated + * + * @returns + * The string-representations of the choices. + */ + protected getChoices(): string; + + /** + * Handles the `success`-event of the prompt. + * + * @param eventArgs + * An object which contains event-data. + */ + protected onSubmit(eventArgs: inquirer.prompts.SuccessfulPromptStateData): void; + + /** + * Handles the `error`-event of the prompt. + * + * @param eventArgs + * An object which contains event-data. + */ + protected onError(eventArgs: inquirer.prompts.FailedPromptStateData): void; + + /** + * Handles the `keypress`-event of the prompt. + */ + protected onKeypress(): void; + + /** + * Validates the integrity of the choices. + * + * @param choices + * The choices to validate. + */ + protected validateChoices(choices: ExpandPrompt['opt']['choices']): void; + + /** + * Generates the string-representation of the choices. + * + * @param choices + * The choices to generate the string-representation for. + * + * @param defaultChoice + * The value of the default choice. + * + * @returns + * The string-representations of the choices. + */ + protected generateChoicesString(choices: ExpandPrompt['opt']['choices'], defaultChoice: any): string; + + /** + * Renders the choices. + * + * @param choices + * The choices to render. + * + * @param pointer + * The value of the choice to select. + */ + protected renderChoices(choices: ExpandPrompt['opt']['choices'], pointer: string): string; +} + +export = ExpandPrompt; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/input.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/input.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..b1557f876b2a21723d6f306aacc05ee1015163a2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/input.d.ts" @@ -0,0 +1,82 @@ +import Prompt = require('./base'); +import inquirer = require('../..'); +import { Interface as ReadlineInterface } from 'readline'; + +/** + * The question-options for the `InputPrompt`. + */ +type Question = inquirer.InputQuestionOptions; + +/** + * Represents a prompt which allows the user to type an answer. + * + * @template TQuestion + * The options for the question. + */ +declare class InputPrompt extends Prompt { + /** + * Resolves the value of the prompt. + */ + protected done: (value: any) => void; + + /** + * The answer to this prompt. + */ + protected answer: any; + + /** + * Initializes a new instance of the `InputPrompt` class. + * + * @param question + * The question to prompt the user to answer. + * + * @param readLine + * An object for performing read from and write to the console. + * + * @param answers + * The answer-object. + */ + constructor(question: TQuestion, readLine: ReadlineInterface, answers: inquirer.Answers); + + /** + * Renders the prompt. + * + * @param error + * The error to render. + */ + protected render(error?: string): void; + + /** + * Filters the specified `input`. + * + * @param input + * The input to filter. + * + * @returns + * The filtered input. + */ + protected filterInput(input: string): string; + + /** + * Handles the `success`-event of the prompt. + * + * @param eventArgs + * An object which contains eventr-data. + */ + protected onEnd(eventArgs: inquirer.prompts.SuccessfulPromptStateData): void; + + /** + * Handles the `error`-event of the prompt. + * + * @param eventArgs + * An object which contains event-data. + */ + protected onError(eventArgs: inquirer.prompts.FailedPromptStateData): void; + + /** + * Handles the `keypress`-event of the prompt. + */ + protected onKeypress(): void; +} + +export = InputPrompt; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/list.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/list.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..56be93f472e18db8fd105129e5e7dac648b0da2d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/list.d.ts" @@ -0,0 +1,89 @@ +import Prompt = require('./base'); +import { Answers, ListQuestionOptions } from '../..'; +import Paginator = require('../utils/paginator'); +import { Interface as ReadlineInterface } from 'readline'; + +/** + * The question-options for the `ListPrompt`. + */ +type Question = ListQuestionOptions; + +/** + * Represents a prompt which provides a list to choose an answer from. + * + * @template TQuestion + * The options for the question. + */ +declare class ListPrompt extends Prompt { + /** + * Resolves the value of the prompt. + */ + protected done: (value: any) => void; + + /** + * Gets or sets a value indicating whether the prompt has been rendered the first time. + */ + protected firstRender: boolean; + + /** + * The index of the selected choice. + */ + protected selected: number; + + /** + * Gets or sets an object for paginating the content. + */ + protected paginator: Paginator; + + /** + * Initializes a new instance of the `ListPrompt` class. + * + * @param question + * The question to prompt the user to answer. + * + * @param readLine + * An object for performing read from and write to the console. + * + * @param answers + * The answer-object. + */ + constructor(question: TQuestion, readLine: ReadlineInterface, answers: Answers); + + /** + * Renders the prompt. + */ + protected render(): void; + + /** + * Gets the current value of the prompt. + */ + protected getCurrentValue(): any; + + /** + * Handles the `upKey`-event. + */ + protected onUpKey(): void; + + /** + * Handles the `downKey`-event. + */ + protected onDownKey(): void; + + /** + * Handles the `numberKey`-event. + * + * @param input + * The number that has been pressed. + */ + protected onNumberKey(input: number): void; + + /** + * Handles the `success`-event of the prompt. + * + * @param value + * The value of the prompt. + */ + protected onSubmit(value: any): void; +} + +export = ListPrompt; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/number.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/number.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..f337eca7ed961b5ea6f55219972d05e37448ebc1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/number.d.ts" @@ -0,0 +1,32 @@ +import InputPrompt = require('./input'); +import { Answers, NumberQuestionOptions } from '../..'; +import { Interface as ReadlineInterface } from 'readline'; + +/** + * The question for the `NumberPrompt`. + */ +type Question = NumberQuestionOptions; + +/** + * Provides a prompt which allows the user to type a number as answer. + * + * @template TQuestion + * The options for the question. + */ +declare class NumberPrompt extends InputPrompt { + /** + * Initializes a new instance of the `NumberPrompt` class. + * + * @param question + * The question to prompt the user to answer. + * + * @param readLine + * An object for performing read from and write to the console. + * + * @param answers + * The answer-object. + */ + constructor(question: TQuestion, readLine: ReadlineInterface, answers: Answers); +} + +export = NumberPrompt; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/password.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/password.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..00a29f08b533066d97a1cf51bf59074ccc80e4bf --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/password.d.ts" @@ -0,0 +1,82 @@ +import Prompt = require('./base'); +import inquirer = require('../..'); +import { Interface as ReadlineInterface } from 'readline'; + +/** + * The question for the `PasswordPrompt`. + */ +type Question = inquirer.PasswordQuestionOptions; + +/** + * Represents a prompt which allows the user to type a password. + * + * @template TQuestion + * The options for the question. + */ +declare class PasswordPrompt extends Prompt { + /** + * Resolves the value of the prompt. + */ + protected done: (value: any) => void; + + /** + * The answer to this prompt. + */ + protected answer: any; + + /** + * Initializes a new instance of the `PasswordPrompt` class. + * + * @param question + * The question to prompt the user to answer. + * + * @param readLine + * An object for performing read from and write to the console. + * + * @param answers + * The answer-object. + */ + constructor(question: TQuestion, readLine: ReadlineInterface, answers: inquirer.Answers); + + /** + * Renders the prompt. + * + * @param error + * The error to render. + */ + protected render(error?: string): void; + + /** + * Filters the specified `input`. + * + * @param input + * The input to filter. + * + * @returns + * The filtered input. + */ + protected filterInput(input: string): string; + + /** + * Handles the `keypress`-event of the prompt. + */ + protected onKeypress(): void; + + /** + * Handles the `success`-event of the prompt. + * + * @param eventArgs + * An object which contains event-data. + */ + protected onEnd(eventArgs: inquirer.prompts.SuccessfulPromptStateData): void; + + /** + * Handles the `error`-event of the prompt. + * + * @param eventArgs + * An object which contains event-data. + */ + protected onError(eventArgs: inquirer.prompts.FailedPromptStateData): void; +} + +export = PasswordPrompt; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/rawlist.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/rawlist.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..fc942b93aea16ea2c3a2d266e55e43e0074a8d0a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/prompts/rawlist.d.ts" @@ -0,0 +1,111 @@ +import inquirer = require('../..'); +import Prompt = require('./base'); +import Paginator = require('../utils/paginator'); +import { Interface as ReadlineInterface } from 'readline'; + +/** + * The question for the `RawListPrompt`. + */ +type Question = inquirer.RawListQuestionOptions; + +/** + * Represents a prompt which provides a list to choose an answer from. + * + * @template TQuestion + * The options for the question. + */ +declare class RawListPrompt extends Prompt { + /** + * Resolves the value of the prompt. + */ + protected done: (value: any) => void; + + /** + * The index of the selected choice. + */ + protected selected: number; + + /** + * Gets or sets the default index. + */ + protected rawDefault: number; + + /** + * Gets or sets an object for paginating the content. + */ + protected paginator: Paginator; + + /** + * Initializes a new instance of the `RawListPrompt` class. + * + * @param question + * The question to prompt the user to answer. + * + * @param readLine + * An object for performing read from and write to the console. + * + * @param answers + * The answer-object. + */ + constructor(question: TQuestion, readLine: ReadlineInterface, answers: inquirer.Answers); + + /** + * Renders the prompt. + * + * @param error + * The error to render. + */ + protected render(error?: string): void; + + /** + * Gets the value of the specified `index`. + * + * @param index + * The index to get the value for. + * + * @returns + * The value of the specified `index`. + */ + protected getCurrentValue(index: number): any; + + /** + * Handles the `Keypress`-event of the prompt. + */ + protected onKeypress(): void; + + /** + * Handles the `UpdKey`-event of the prompt. + */ + protected onUpKey(): void; + + /** + * Handles the `DownKey`-event of the prompt. + */ + protected onDownKey(): void; + + /** + * Handles the `ArrowKey`-event of the prompt. + * + * @param type + * A value indicating whether the up or the down-arrow is being pressed. + */ + protected onArrowKey(type: 'up' | 'down'): void; + + /** + * Handles the `success`-event of the prompt. + * + * @param eventArgs + * An object which contains event-data. + */ + protected onEnd(eventArgs: inquirer.prompts.SuccessfulPromptStateData): void; + + /** + * Handles the `error`-event of the prompt. + * + * @param eventArgs + * An object which contains event-data. + */ + protected onError(): void; +} + +export = RawListPrompt; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/ui/baseUI.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/ui/baseUI.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..052b5aabc32d4c9922688f4410329eb67cb8f33d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/ui/baseUI.d.ts" @@ -0,0 +1,37 @@ +import { Interface as ReadlineInterface } from 'readline'; +import inquirer = require('../..'); + +/** + * Represents a ui. + */ +declare class UI { + /** + * Gets or sets an object for performing read from and write to the console. + */ + protected rl: ReadlineInterface; + + /** + * Gets or sets the currently active prompt. + */ + protected activePrompt: inquirer.prompts.PromptBase; + + /** + * Initializes a new instance of the `UI` class. + * + * @param options + * The input- and output-stream of the ui. + */ + constructor(options?: inquirer.StreamOptions); + + /** + * Handles a forced exit of the application. + */ + protected onForceClose(): void; + + /** + * Releases all unmanaged resources. + */ + protected close(): void; +} + +export = UI; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/ui/bottom-bar.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/ui/bottom-bar.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..881030b62cc30994005701b33b4948f183c01259 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/ui/bottom-bar.d.ts" @@ -0,0 +1,65 @@ +import { ThroughStream } from 'through'; +import inquirer = require('../..'); +import UI = require('./baseUI'); + +/** + * Represents the bottom-bar UI. + */ +declare class BottomBar extends UI { + /** + * Gets or sets a stream to write logs to. + */ + log: ThroughStream; + + /** + * Initializes a new instance of the `BottomBar` class. + * + * @param options + * Provides options for the bottom-bar ui. + */ + constructor(options?: inquirer.ui.BottomBarOptions); + + /** + * Renders the specified `text` to the bottom bar. + * + * @param text + * The text to print to the bottom bar. + */ + updateBottomBar(text: string): this; + + /** + * Renders the bottom bar. + */ + protected render(): this; + + /** + * Clean the bottom bar. + */ + protected clean(): this; + + /** + * Writes a message to the bottom bar. + * + * @param message + * The message to write. + */ + protected write(message: string): void; + + /** + * Writes the specified `data` to the log-zone. + * + * @param data + * The data to write to the log-zone. + */ + protected writeLog(data: any): this; + + /** + * Fixes the new-line characters of the specified `text`. + * + * @param text + * The text to process. + */ + protected enforceLF(text: string): string; +} + +export = BottomBar; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/ui/prompt.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/ui/prompt.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..e7304017522799052ef52adc9792ecdc25bd0e45 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/ui/prompt.d.ts" @@ -0,0 +1,104 @@ +import { Observable } from 'rxjs'; +import inquirer = require('../..'); +import UI = require('./baseUI'); + +/** + * Represents the prompt ui. + */ +declare class PromptUI extends UI { + /** + * Gets or sets the prompts of the ui. + */ + prompts: inquirer.prompts.PromptCollection; + + /** + * Gets or sets the answers provided by the user. + */ + answers: T; + + /** + * Gets or sets the event-flow of the process. + */ + process: Observable>; + + /** + * Initializes a new instance of the `PromptUI` class. + * + * @param prompts + * The prompts for the ui. + * + * @param options + * The input- and output-stream of the ui. + */ + constructor(prompts: inquirer.prompts.PromptCollection, options?: inquirer.StreamOptions); + + /** + * Runs the prompt-UI. + * + * @param questions + * The questions to prompt the user to answer. + * + * @returns + * The answers provided by the user. + */ + run(questions: Array>): Promise; + + /** + * Finishes the process. + */ + protected onCompletion(): T; + + /** + * Processes a question. + * + * @param question + * The question to process. + * + * @returns + * The answer to the question. + */ + protected processQuestion( + question: inquirer.DistinctQuestion, + ): Observable; + + /** + * Fetches the answer to a question. + * + * @param question + * The question to fetch the answer for. + * + * @returns + * The answer to the question. + */ + protected fetchAnswer( + question: inquirer.ui.FetchedQuestion, + ): Observable; + + /** + * Sets the type of the question if no question-type is specified. + * + * @param question + * The question to set the default type for. + * + * @returns + * The processed question. + */ + protected setDefaultType( + question: inquirer.DistinctQuestion, + ): Observable>; + + /** + * Filters the question if it is runnable. + * + * @param question + * The question to filter. + * + * @returns + * Either the event-flow of the question if it is runnable or an empty event-flow. + */ + protected filterIfRunnable( + question: inquirer.DistinctQuestion, + ): Observable>; +} + +export = PromptUI; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/utils/events.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/utils/events.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..4156166f36deed95a4b66bb3e071e2470123acff --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/utils/events.d.ts" @@ -0,0 +1,72 @@ +import { Interface as ReadlineInterface, Key } from 'readline'; +import { Observable } from 'rxjs'; + +/** + * Provides a description about a key. + */ +interface KeyDescriptor { + /** + * The value of the key. + */ + value: string; + + /** + * Thedescription of the key. + */ + key: Key; +} + +/** + * A set of events. + */ +interface Events { + /** + * The event-flow of the `line`-event of the readline-object. + */ + line: Observable; + + /** + * The event-flow of the `keypress`-event of the readline-object. + */ + keypress: Observable; + + /** + * The event-flow of the `normalizedUpKey`-event. + */ + normalizedUpKey: Observable; + + /** + * The event-flow of the `normalizedDownKey`-event. + */ + normalizedDownKey: Observable; + + /** + * The event-flow of the `numberKey`-event. + */ + numberKey: Observable; + + /** + * The event-flow of the `spaceKey`-event. + */ + spaceKey: Observable; + + /** + * The event-flow of the `aKey`-event. + */ + aKey: Observable; + + /** + * The event-flow of the `iKey`-event. + */ + iKey: Observable; +} + +/** + * Observes a readline-object. + * + * @param readline + * The readline-object to observe. + */ +declare function observe(readline: ReadlineInterface): Events; + +export = observe; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/utils/incrementListIndex.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/utils/incrementListIndex.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..f5d39b35b154e4625a6c63e28d1b1318d25235f9 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/utils/incrementListIndex.d.ts" @@ -0,0 +1,23 @@ +import Choices = require('../objects/choices'); + +type Direction = 'up' | 'down'; +interface Options { + choices: Choices; + loop?: boolean; +} + +/** + * Find the index of the next answer to be selected. + * + * @param current + * Index of the answer currently selected. + * @param dir + * Whether to go up or down in the answers list. + * @param opt + * The option used for the question initialization. + * @return + * The index of the next answer to be selected. + */ +declare function incrementListIndex(current: number, dir: Direction, opt: Options): number; + +export = incrementListIndex; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/utils/paginator.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/utils/paginator.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..afa3ae10860564c58afacb23fe9c734c2ad04017 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/utils/paginator.d.ts" @@ -0,0 +1,55 @@ +import ScreenManager = require('./screen-manager'); + +interface PaginatorOptions { + /** + * Whether or not to loop the content. + */ + isInfinite: boolean; +} + +/** + * Provides the functionality to draw paginated content using a `ScreenManager`. + */ +declare class Paginator { + /** + * Gets or sets the index of the currently focused line. + */ + protected pointer: number; + + /** + * Gets or sets the index of the last focused line. + */ + protected lastIndex: number; + + /** + * Gets or sets an object for drawing the paginated content. + */ + protected screen: ScreenManager; + + /** + * Initializes a new instance of the `Paginator` class. + * + * @param screenManager + * A screen-manager for drawing the paginated content. + */ + constructor(screenManager: ScreenManager, options?: PaginatorOptions); + + /** + * Paginates the specified `content`. + * + * @param content + * The content to paginate. + * + * @param selectedIndex + * The number of the selected line. + * + * @param pageSize + * The number of lines to display at a time. + * + * @returns + * The paginated content. + */ + paginate(content: string, selectedIndex: number, pageSize?: number): string; +} + +export = Paginator; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/utils/readline.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/utils/readline.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..8612b82921bc26748065b41ed3b77a41dfcf6403 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/utils/readline.d.ts" @@ -0,0 +1,56 @@ +import { Interface as ReadlineInterface } from 'readline'; + +/** + * Moves the cursor to the left. + * + * @param readLine + * The readline-object. + * + * @param count + * The number of columns to move the cursor. + */ +export function left(readLine: ReadlineInterface, count: number): void; + +/** + * Moves the cursor to the right. + * + * @param readLine + * The readline-object. + * + * @param count + * The number of columns to move the cursor. + */ +export function right(readLine: ReadlineInterface, count: number): void; + +/** + * Moves the cursor upwards. + * + * @param readLine + * The readline-object. + * + * @param count + * The number of lines to move the cursor. + */ +export function up(readLine: ReadlineInterface, count: number): void; + +/** + * Moves the cursor downwards. + * + * @param readLine + * The readline-object. + * + * @param count + * The number of lines to move the cursor. + */ +export function down(readLine: ReadlineInterface, count: number): void; + +/** + * Clears one or more lines. + * + * @param readLine + * The readline-object. + * + * @param count + * The number of lines to clear. + */ +export function clearLine(readLine: ReadlineInterface, count: number): void; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/utils/screen-manager.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/utils/screen-manager.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..5ecb42c8a18d42381f06a3c987fc6144f80d1aad --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/utils/screen-manager.d.ts" @@ -0,0 +1,90 @@ +import { Interface as ReadLineInterface } from 'readline'; + +/** + * Provides the functionality to manage the content of a console-screen. + */ +declare class ScreenManager { + /** + * Gets or sets the height of the screen. + */ + height: number; + + /** + * Gets or sets the number of extra-lines below the prompt. + */ + extraLinesUnderPrompt: number; + + /** + * Gets or sets an object for performing read from and write to the console. + */ + rl: ReadLineInterface; + + /** + * Initializes a new instance of the `ScreenManager` class. + * + * @param readLine + * An object for performing read from and write to the console. + */ + constructor(readLine: ReadLineInterface); + + /** + * Renders content to the screen. + * + * @param content + * The content to render. + * + * @param bottomContent + * The content to render to the bottom of the screen. + */ + render(content: string, bottomContent: string): void; + + /** + * Cleans all lines expect the first `extraLines`. + * + * @param extraLines + * The number of lines at the begin to skip. + */ + clean(extraLines: number): void; + + /** + * Releases all unmanaged resources. + */ + done(): void; + + /** + * Releases the cursor. + */ + releaseCursor(): void; + + /** + * Identifies the width of the screen. + * + * @returns + * The width of the screen. + */ + protected normalizedCliWidth(): number; + + /** + * Splits the `text` into multiple lines with the specified max `width`. + * + * @param text + * The text to process. + * + * @param width + * The max width of each line. + */ + protected breakLines(text: string, width: number): string[]; + + /** + * Adds line-breaks to the specified `text` with the specified max `width`. + * + * @param text + * The text to process. + * + * @param width + * The max width of each line. + */ + protected forceLineReturn(text: string, width: number): string; +} + +export = ScreenManager; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/utils/utils.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/utils/utils.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..a0fc34fe70f6a27c548cd8ae2e9f3f2785cbccd4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/lib/utils/utils.d.ts" @@ -0,0 +1,30 @@ +import { Answers, DistinctQuestion, KeyUnion, UnionToIntersection } from '../..'; +import { Observable } from 'rxjs'; + +/** + * Represents a property-name of any question-type. + */ +type QuestionProperty = KeyUnion>; + +/** + * Fetches a property of the specified `question`. + * + * @param question + * The question to fetch the property from. + * + * @param prop + * The name of the property to fetch. + * + * @param answers + * The answers provided by the user. + * + * @returns + * The processed question. + */ +export function fetchAsyncQuestionProperty( + question: DistinctQuestion, + prop: QuestionProperty, + answers: Answers, +): Observable; + +export {}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..a5aa627cfbe7cc5add2378bcee94c3dfcf311459 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/inquirer/package.json" @@ -0,0 +1,78 @@ +{ + "name": "@types/inquirer", + "version": "8.2.1", + "description": "TypeScript definitions for inquirer", + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/inquirer", + "license": "MIT", + "contributors": [ + { + "name": "Qubo", + "url": "https://github.com/tkQubo", + "githubUsername": "tkQubo" + }, + { + "name": "Parvez", + "url": "https://github.com/ppathan", + "githubUsername": "ppathan" + }, + { + "name": "Jouderian", + "url": "https://github.com/jouderianjr", + "githubUsername": "jouderianjr" + }, + { + "name": "Qibang", + "url": "https://github.com/bang88", + "githubUsername": "bang88" + }, + { + "name": "Jason Dreyzehner", + "url": "https://github.com/bitjson", + "githubUsername": "bitjson" + }, + { + "name": "Synarque", + "url": "https://github.com/synarque", + "githubUsername": "synarque" + }, + { + "name": "Justin Rockwood", + "url": "https://github.com/jrockwood", + "githubUsername": "jrockwood" + }, + { + "name": "Keith Kelly", + "url": "https://github.com/kwkelly", + "githubUsername": "kwkelly" + }, + { + "name": "Richard Lea", + "url": "https://github.com/chigix", + "githubUsername": "chigix" + }, + { + "name": "Jed Mao", + "url": "https://github.com/jedmao", + "githubUsername": "jedmao" + }, + { + "name": "Manuel Thalmann", + "url": "https://github.com/manuth", + "githubUsername": "manuth" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/inquirer" + }, + "scripts": {}, + "dependencies": { + "@types/through": "*", + "rxjs": "^7.2.0" + }, + "typesPublisherContentHash": "c92548e26fa63530a4fc33c6f3e61d02a8904261949fa4c965fb2b5141919170", + "typeScriptVersion": "4.2" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..9e841e7a26e4eb057b24511e7b92d42b257a80e5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/LICENSE" @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..86923c306a1fd9a7f9b85b87672f7c8ada6c6141 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/README.md" @@ -0,0 +1,16 @@ +# Installation +> `npm install --save @types/jscodeshift` + +# Summary +This package contains type definitions for jscodeshift (https://github.com/facebook/jscodeshift#readme). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jscodeshift. + +### Additional Details + * Last updated: Sat, 28 Nov 2020 04:40:28 GMT + * Dependencies: [@types/ast-types](https://npmjs.com/package/@types/ast-types), [@types/recast](https://npmjs.com/package/@types/recast) + * Global values: none + +# Credits +These definitions were written by [Brie Bunge](https://github.com/brieb), [Brian Jacobel](https://github.com/bjacobel), and [Will Nguyen](https://github.com/willtn). diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..d34d6c4a1064607cb0801f729b3a2d0d0619f71c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/index.d.ts" @@ -0,0 +1,11 @@ +// Type definitions for jscodeshift 0.7 +// Project: https://github.com/facebook/jscodeshift#readme +// Definitions by: Brie Bunge +// Brian Jacobel +// Will Nguyen +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.9 + +import core = require("./src/core"); + +export = core; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/.travis.yml" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/.travis.yml" new file mode 100644 index 0000000000000000000000000000000000000000..f5d5383f27a7f381657269a5b760e198439a2223 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/.travis.yml" @@ -0,0 +1,10 @@ +language: node_js +node_js: + - "11" + - "10" + - "9" + - "8" + - "7" + - "6" + +sudo: false diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..3f9d40b55b464705c6f5c620f2861a1d0b64c480 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/LICENSE" @@ -0,0 +1,20 @@ +Copyright (c) 2013 Ben Newman + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..500a16d00827d058c10b7d548303465a8025e053 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/README.md" @@ -0,0 +1,486 @@ +# AST Types [![Build Status](https://travis-ci.org/benjamn/ast-types.svg?branch=master)](https://travis-ci.org/benjamn/ast-types) [![Greenkeeper badge](https://badges.greenkeeper.io/benjamn/ast-types.svg)](https://greenkeeper.io/) + +This module provides an efficient, modular, +[Esprima](https://github.com/ariya/esprima)-compatible implementation of +the [abstract syntax +tree](http://en.wikipedia.org/wiki/Abstract_syntax_tree) type hierarchy +pioneered by the [Mozilla Parser +API](https://developer.mozilla.org/en-US/docs/SpiderMonkey/Parser_API). + +Installation +--- + +From NPM: + + npm install ast-types + +From GitHub: + + cd path/to/node_modules + git clone git://github.com/benjamn/ast-types.git + cd ast-types + npm install . + +Basic Usage +--- +```js +var assert = require("assert"); +var n = require("ast-types").namedTypes; +var b = require("ast-types").builders; + +var fooId = b.identifier("foo"); +var ifFoo = b.ifStatement(fooId, b.blockStatement([ + b.expressionStatement(b.callExpression(fooId, [])) +])); + +assert.ok(n.IfStatement.check(ifFoo)); +assert.ok(n.Statement.check(ifFoo)); +assert.ok(n.Node.check(ifFoo)); + +assert.ok(n.BlockStatement.check(ifFoo.consequent)); +assert.strictEqual( + ifFoo.consequent.body[0].expression.arguments.length, + 0); + +assert.strictEqual(ifFoo.test, fooId); +assert.ok(n.Expression.check(ifFoo.test)); +assert.ok(n.Identifier.check(ifFoo.test)); +assert.ok(!n.Statement.check(ifFoo.test)); +``` + +AST Traversal +--- + +Because it understands the AST type system so thoroughly, this library +is able to provide excellent node iteration and traversal mechanisms. + +If you want complete control over the traversal, and all you need is a way +of enumerating the known fields of your AST nodes and getting their +values, you may be interested in the primitives `getFieldNames` and +`getFieldValue`: +```js +var types = require("ast-types"); +var partialFunExpr = { type: "FunctionExpression" }; + +// Even though partialFunExpr doesn't actually contain all the fields that +// are expected for a FunctionExpression, types.getFieldNames knows: +console.log(types.getFieldNames(partialFunExpr)); +// [ 'type', 'id', 'params', 'body', 'generator', 'expression', +// 'defaults', 'rest', 'async' ] + +// For fields that have default values, types.getFieldValue will return +// the default if the field is not actually defined. +console.log(types.getFieldValue(partialFunExpr, "generator")); +// false +``` + +Two more low-level helper functions, `eachField` and `someField`, are +defined in terms of `getFieldNames` and `getFieldValue`: +```js +// Iterate over all defined fields of an object, including those missing +// or undefined, passing each field name and effective value (as returned +// by getFieldValue) to the callback. If the object has no corresponding +// Def, the callback will never be called. +exports.eachField = function(object, callback, context) { + getFieldNames(object).forEach(function(name) { + callback.call(this, name, getFieldValue(object, name)); + }, context); +}; + +// Similar to eachField, except that iteration stops as soon as the +// callback returns a truthy value. Like Array.prototype.some, the final +// result is either true or false to indicates whether the callback +// returned true for any element or not. +exports.someField = function(object, callback, context) { + return getFieldNames(object).some(function(name) { + return callback.call(this, name, getFieldValue(object, name)); + }, context); +}; +``` + +So here's how you might make a copy of an AST node: +```js +var copy = {}; +require("ast-types").eachField(node, function(name, value) { + // Note that undefined fields will be visited too, according to + // the rules associated with node.type, and default field values + // will be substituted if appropriate. + copy[name] = value; +}) +``` + +But that's not all! You can also easily visit entire syntax trees using +the powerful `types.visit` abstraction. + +Here's a trivial example of how you might assert that `arguments.callee` +is never used in `ast`: +```js +var assert = require("assert"); +var types = require("ast-types"); +var n = types.namedTypes; + +types.visit(ast, { + // This method will be called for any node with .type "MemberExpression": + visitMemberExpression: function(path) { + // Visitor methods receive a single argument, a NodePath object + // wrapping the node of interest. + var node = path.node; + + if (n.Identifier.check(node.object) && + node.object.name === "arguments" && + n.Identifier.check(node.property)) { + assert.notStrictEqual(node.property.name, "callee"); + } + + // It's your responsibility to call this.traverse with some + // NodePath object (usually the one passed into the visitor + // method) before the visitor method returns, or return false to + // indicate that the traversal need not continue any further down + // this subtree. + this.traverse(path); + } +}); +``` + +Here's a slightly more involved example of transforming `...rest` +parameters into browser-runnable ES5 JavaScript: + +```js +var b = types.builders; + +// Reuse the same AST structure for Array.prototype.slice.call. +var sliceExpr = b.memberExpression( + b.memberExpression( + b.memberExpression( + b.identifier("Array"), + b.identifier("prototype"), + false + ), + b.identifier("slice"), + false + ), + b.identifier("call"), + false +); + +types.visit(ast, { + // This method will be called for any node whose type is a subtype of + // Function (e.g., FunctionDeclaration, FunctionExpression, and + // ArrowFunctionExpression). Note that types.visit precomputes a + // lookup table from every known type to the appropriate visitor + // method to call for nodes of that type, so the dispatch takes + // constant time. + visitFunction: function(path) { + // Visitor methods receive a single argument, a NodePath object + // wrapping the node of interest. + var node = path.node; + + // It's your responsibility to call this.traverse with some + // NodePath object (usually the one passed into the visitor + // method) before the visitor method returns, or return false to + // indicate that the traversal need not continue any further down + // this subtree. An assertion will fail if you forget, which is + // awesome, because it means you will never again make the + // disastrous mistake of forgetting to traverse a subtree. Also + // cool: because you can call this method at any point in the + // visitor method, it's up to you whether your traversal is + // pre-order, post-order, or both! + this.traverse(path); + + // This traversal is only concerned with Function nodes that have + // rest parameters. + if (!node.rest) { + return; + } + + // For the purposes of this example, we won't worry about functions + // with Expression bodies. + n.BlockStatement.assert(node.body); + + // Use types.builders to build a variable declaration of the form + // + // var rest = Array.prototype.slice.call(arguments, n); + // + // where `rest` is the name of the rest parameter, and `n` is a + // numeric literal specifying the number of named parameters the + // function takes. + var restVarDecl = b.variableDeclaration("var", [ + b.variableDeclarator( + node.rest, + b.callExpression(sliceExpr, [ + b.identifier("arguments"), + b.literal(node.params.length) + ]) + ) + ]); + + // Similar to doing node.body.body.unshift(restVarDecl), except + // that the other NodePath objects wrapping body statements will + // have their indexes updated to accommodate the new statement. + path.get("body", "body").unshift(restVarDecl); + + // Nullify node.rest now that we have simulated the behavior of + // the rest parameter using ordinary JavaScript. + path.get("rest").replace(null); + + // There's nothing wrong with doing node.rest = null, but I wanted + // to point out that the above statement has the same effect. + assert.strictEqual(node.rest, null); + } +}); +``` + +Here's how you might use `types.visit` to implement a function that +determines if a given function node refers to `this`: + +```js +function usesThis(funcNode) { + n.Function.assert(funcNode); + var result = false; + + types.visit(funcNode, { + visitThisExpression: function(path) { + result = true; + + // The quickest way to terminate the traversal is to call + // this.abort(), which throws a special exception (instanceof + // this.AbortRequest) that will be caught in the top-level + // types.visit method, so you don't have to worry about + // catching the exception yourself. + this.abort(); + }, + + visitFunction: function(path) { + // ThisExpression nodes in nested scopes don't count as `this` + // references for the original function node, so we can safely + // avoid traversing this subtree. + return false; + }, + + visitCallExpression: function(path) { + var node = path.node; + + // If the function contains CallExpression nodes involving + // super, those expressions will implicitly depend on the + // value of `this`, even though they do not explicitly contain + // any ThisExpression nodes. + if (this.isSuperCallExpression(node)) { + result = true; + this.abort(); // Throws AbortRequest exception. + } + + this.traverse(path); + }, + + // Yes, you can define arbitrary helper methods. + isSuperCallExpression: function(callExpr) { + n.CallExpression.assert(callExpr); + return this.isSuperIdentifier(callExpr.callee) + || this.isSuperMemberExpression(callExpr.callee); + }, + + // And even helper helper methods! + isSuperIdentifier: function(node) { + return n.Identifier.check(node.callee) + && node.callee.name === "super"; + }, + + isSuperMemberExpression: function(node) { + return n.MemberExpression.check(node.callee) + && n.Identifier.check(node.callee.object) + && node.callee.object.name === "super"; + } + }); + + return result; +} +``` + +As you might guess, when an `AbortRequest` is thrown from a subtree, the +exception will propagate from the corresponding calls to `this.traverse` +in the ancestor visitor methods. If you decide you want to cancel the +request, simply catch the exception and call its `.cancel()` method. The +rest of the subtree beneath the `try`-`catch` block will be abandoned, but +the remaining siblings of the ancestor node will still be visited. + +NodePath +--- + +The `NodePath` object passed to visitor methods is a wrapper around an AST +node, and it serves to provide access to the chain of ancestor objects +(all the way back to the root of the AST) and scope information. + +In general, `path.node` refers to the wrapped node, `path.parent.node` +refers to the nearest `Node` ancestor, `path.parent.parent.node` to the +grandparent, and so on. + +Note that `path.node` may not be a direct property value of +`path.parent.node`; for instance, it might be the case that `path.node` is +an element of an array that is a direct child of the parent node: +```js +path.node === path.parent.node.elements[3] +``` +in which case you should know that `path.parentPath` provides +finer-grained access to the complete path of objects (not just the `Node` +ones) from the root of the AST: +```js +// In reality, path.parent is the grandparent of path: +path.parentPath.parentPath === path.parent + +// The path.parentPath object wraps the elements array (note that we use +// .value because the elements array is not a Node): +path.parentPath.value === path.parent.node.elements + +// The path.node object is the fourth element in that array: +path.parentPath.value[3] === path.node + +// Unlike path.node and path.value, which are synonyms because path.node +// is a Node object, path.parentPath.node is distinct from +// path.parentPath.value, because the elements array is not a +// Node. Instead, path.parentPath.node refers to the closest ancestor +// Node, which happens to be the same as path.parent.node: +path.parentPath.node === path.parent.node + +// The path is named for its index in the elements array: +path.name === 3 + +// Likewise, path.parentPath is named for the property by which +// path.parent.node refers to it: +path.parentPath.name === "elements" + +// Putting it all together, we can follow the chain of object references +// from path.parent.node all the way to path.node by accessing each +// property by name: +path.parent.node[path.parentPath.name][path.name] === path.node +``` + +These `NodePath` objects are created during the traversal without +modifying the AST nodes themselves, so it's not a problem if the same node +appears more than once in the AST (like `Array.prototype.slice.call` in +the example above), because it will be visited with a distict `NodePath` +each time it appears. + +Child `NodePath` objects are created lazily, by calling the `.get` method +of a parent `NodePath` object: +```js +// If a NodePath object for the elements array has never been created +// before, it will be created here and cached in the future: +path.get("elements").get(3).value === path.value.elements[3] + +// Alternatively, you can pass multiple property names to .get instead of +// chaining multiple .get calls: +path.get("elements", 0).value === path.value.elements[0] +``` + +`NodePath` objects support a number of useful methods: +```js +// Replace one node with another node: +var fifth = path.get("elements", 4); +fifth.replace(newNode); + +// Now do some stuff that might rearrange the list, and this replacement +// remains safe: +fifth.replace(newerNode); + +// Replace the third element in an array with two new nodes: +path.get("elements", 2).replace( + b.identifier("foo"), + b.thisExpression() +); + +// Remove a node and its parent if it would leave a redundant AST node: +//e.g. var t = 1, y =2; removing the `t` and `y` declarators results in `var undefined`. +path.prune(); //returns the closest parent `NodePath`. + +// Remove a node from a list of nodes: +path.get("elements", 3).replace(); + +// Add three new nodes to the beginning of a list of nodes: +path.get("elements").unshift(a, b, c); + +// Remove and return the first node in a list of nodes: +path.get("elements").shift(); + +// Push two new nodes onto the end of a list of nodes: +path.get("elements").push(d, e); + +// Remove and return the last node in a list of nodes: +path.get("elements").pop(); + +// Insert a new node before/after the seventh node in a list of nodes: +var seventh = path.get("elements", 6); +seventh.insertBefore(newNode); +seventh.insertAfter(newNode); + +// Insert a new element at index 5 in a list of nodes: +path.get("elements").insertAt(5, newNode); +``` + +Scope +--- + +The object exposed as `path.scope` during AST traversals provides +information about variable and function declarations in the scope that +contains `path.node`. See [scope.js](lib/scope.js) for its public +interface, which currently includes `.isGlobal`, `.getGlobalScope()`, +`.depth`, `.declares(name)`, `.lookup(name)`, and `.getBindings()`. + +Custom AST Node Types +--- + +The `ast-types` module was designed to be extended. To that end, it +provides a readable, declarative syntax for specifying new AST node types, +based primarily upon the `require("ast-types").Type.def` function: +```js +var types = require("ast-types"); +var def = types.Type.def; +var string = types.builtInTypes.string; +var b = types.builders; + +// Suppose you need a named File type to wrap your Programs. +def("File") + .bases("Node") + .build("name", "program") + .field("name", string) + .field("program", def("Program")); + +// Prevent further modifications to the File type (and any other +// types newly introduced by def(...)). +types.finalize(); + +// The b.file builder function is now available. It expects two +// arguments, as named by .build("name", "program") above. +var main = b.file("main.js", b.program([ + // Pointless program contents included for extra color. + b.functionDeclaration(b.identifier("succ"), [ + b.identifier("x") + ], b.blockStatement([ + b.returnStatement( + b.binaryExpression( + "+", b.identifier("x"), b.literal(1) + ) + ) + ])) +])); + +assert.strictEqual(main.name, "main.js"); +assert.strictEqual(main.program.body[0].params[0].name, "x"); +// etc. + +// If you pass the wrong type of arguments, or fail to pass enough +// arguments, an AssertionError will be thrown. + +b.file(b.blockStatement([])); +// ==> AssertionError: {"body":[],"type":"BlockStatement","loc":null} does not match type string + +b.file("lib/types.js", b.thisExpression()); +// ==> AssertionError: {"type":"ThisExpression","loc":null} does not match type Program +``` +The `def` syntax is used to define all the default AST node types found in +[core.js](def/core.js), +[e4x.js](def/e4x.js), +[es6.js](def/es6.js), +[es7.js](def/es7.js), +[flow.js](def/flow.js), and +[jsx.js](def/jsx.js), so you have +no shortage of examples to learn from. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/babel-core.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/babel-core.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..1ef9137c1c779802fc1bf34b7473f5e16f295de1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/babel-core.d.ts" @@ -0,0 +1,2 @@ +import { Fork } from "../types"; +export default function (fork: Fork): void; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/babel-core.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/babel-core.js" new file mode 100644 index 0000000000000000000000000000000000000000..d97c7c00dd881a5fe5f84ab78bb30a410aa70256 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/babel-core.js" @@ -0,0 +1,258 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var types_1 = __importDefault(require("../lib/types")); +var shared_1 = __importDefault(require("../lib/shared")); +var es7_1 = __importDefault(require("./es7")); +function default_1(fork) { + fork.use(es7_1.default); + var types = fork.use(types_1.default); + var defaults = fork.use(shared_1.default).defaults; + var def = types.Type.def; + var or = types.Type.or; + def("Noop") + .bases("Statement") + .build(); + def("DoExpression") + .bases("Expression") + .build("body") + .field("body", [def("Statement")]); + def("Super") + .bases("Expression") + .build(); + def("BindExpression") + .bases("Expression") + .build("object", "callee") + .field("object", or(def("Expression"), null)) + .field("callee", def("Expression")); + def("Decorator") + .bases("Node") + .build("expression") + .field("expression", def("Expression")); + def("Property") + .field("decorators", or([def("Decorator")], null), defaults["null"]); + def("MethodDefinition") + .field("decorators", or([def("Decorator")], null), defaults["null"]); + def("MetaProperty") + .bases("Expression") + .build("meta", "property") + .field("meta", def("Identifier")) + .field("property", def("Identifier")); + def("ParenthesizedExpression") + .bases("Expression") + .build("expression") + .field("expression", def("Expression")); + def("ImportSpecifier") + .bases("ModuleSpecifier") + .build("imported", "local") + .field("imported", def("Identifier")); + def("ImportDefaultSpecifier") + .bases("ModuleSpecifier") + .build("local"); + def("ImportNamespaceSpecifier") + .bases("ModuleSpecifier") + .build("local"); + def("ExportDefaultDeclaration") + .bases("Declaration") + .build("declaration") + .field("declaration", or(def("Declaration"), def("Expression"))); + def("ExportNamedDeclaration") + .bases("Declaration") + .build("declaration", "specifiers", "source") + .field("declaration", or(def("Declaration"), null)) + .field("specifiers", [def("ExportSpecifier")], defaults.emptyArray) + .field("source", or(def("Literal"), null), defaults["null"]); + def("ExportSpecifier") + .bases("ModuleSpecifier") + .build("local", "exported") + .field("exported", def("Identifier")); + def("ExportNamespaceSpecifier") + .bases("Specifier") + .build("exported") + .field("exported", def("Identifier")); + def("ExportDefaultSpecifier") + .bases("Specifier") + .build("exported") + .field("exported", def("Identifier")); + def("ExportAllDeclaration") + .bases("Declaration") + .build("exported", "source") + .field("exported", or(def("Identifier"), null)) + .field("source", def("Literal")); + def("CommentBlock") + .bases("Comment") + .build("value", /*optional:*/ "leading", "trailing"); + def("CommentLine") + .bases("Comment") + .build("value", /*optional:*/ "leading", "trailing"); + def("Directive") + .bases("Node") + .build("value") + .field("value", def("DirectiveLiteral")); + def("DirectiveLiteral") + .bases("Node", "Expression") + .build("value") + .field("value", String, defaults["use strict"]); + def("InterpreterDirective") + .bases("Node") + .build("value") + .field("value", String); + def("BlockStatement") + .bases("Statement") + .build("body") + .field("body", [def("Statement")]) + .field("directives", [def("Directive")], defaults.emptyArray); + def("Program") + .bases("Node") + .build("body") + .field("body", [def("Statement")]) + .field("directives", [def("Directive")], defaults.emptyArray) + .field("interpreter", or(def("InterpreterDirective"), null), defaults["null"]); + // Split Literal + def("StringLiteral") + .bases("Literal") + .build("value") + .field("value", String); + def("NumericLiteral") + .bases("Literal") + .build("value") + .field("value", Number) + .field("raw", or(String, null), defaults["null"]) + .field("extra", { + rawValue: Number, + raw: String + }, function getDefault() { + return { + rawValue: this.value, + raw: this.value + "" + }; + }); + def("BigIntLiteral") + .bases("Literal") + .build("value") + // Only String really seems appropriate here, since BigInt values + // often exceed the limits of JS numbers. + .field("value", or(String, Number)) + .field("extra", { + rawValue: String, + raw: String + }, function getDefault() { + return { + rawValue: String(this.value), + raw: this.value + "n" + }; + }); + def("NullLiteral") + .bases("Literal") + .build() + .field("value", null, defaults["null"]); + def("BooleanLiteral") + .bases("Literal") + .build("value") + .field("value", Boolean); + def("RegExpLiteral") + .bases("Literal") + .build("pattern", "flags") + .field("pattern", String) + .field("flags", String) + .field("value", RegExp, function () { + return new RegExp(this.pattern, this.flags); + }); + var ObjectExpressionProperty = or(def("Property"), def("ObjectMethod"), def("ObjectProperty"), def("SpreadProperty"), def("SpreadElement")); + // Split Property -> ObjectProperty and ObjectMethod + def("ObjectExpression") + .bases("Expression") + .build("properties") + .field("properties", [ObjectExpressionProperty]); + // ObjectMethod hoist .value properties to own properties + def("ObjectMethod") + .bases("Node", "Function") + .build("kind", "key", "params", "body", "computed") + .field("kind", or("method", "get", "set")) + .field("key", or(def("Literal"), def("Identifier"), def("Expression"))) + .field("params", [def("Pattern")]) + .field("body", def("BlockStatement")) + .field("computed", Boolean, defaults["false"]) + .field("generator", Boolean, defaults["false"]) + .field("async", Boolean, defaults["false"]) + .field("accessibility", // TypeScript + or(def("Literal"), null), defaults["null"]) + .field("decorators", or([def("Decorator")], null), defaults["null"]); + def("ObjectProperty") + .bases("Node") + .build("key", "value") + .field("key", or(def("Literal"), def("Identifier"), def("Expression"))) + .field("value", or(def("Expression"), def("Pattern"))) + .field("accessibility", // TypeScript + or(def("Literal"), null), defaults["null"]) + .field("computed", Boolean, defaults["false"]); + var ClassBodyElement = or(def("MethodDefinition"), def("VariableDeclarator"), def("ClassPropertyDefinition"), def("ClassProperty"), def("ClassPrivateProperty"), def("ClassMethod"), def("ClassPrivateMethod")); + // MethodDefinition -> ClassMethod + def("ClassBody") + .bases("Declaration") + .build("body") + .field("body", [ClassBodyElement]); + def("ClassMethod") + .bases("Declaration", "Function") + .build("kind", "key", "params", "body", "computed", "static") + .field("key", or(def("Literal"), def("Identifier"), def("Expression"))); + def("ClassPrivateMethod") + .bases("Declaration", "Function") + .build("key", "params", "body", "kind", "computed", "static") + .field("key", def("PrivateName")); + ["ClassMethod", + "ClassPrivateMethod", + ].forEach(function (typeName) { + def(typeName) + .field("kind", or("get", "set", "method", "constructor"), function () { return "method"; }) + .field("body", def("BlockStatement")) + .field("computed", Boolean, defaults["false"]) + .field("static", or(Boolean, null), defaults["null"]) + .field("abstract", or(Boolean, null), defaults["null"]) + .field("access", or("public", "private", "protected", null), defaults["null"]) + .field("accessibility", or("public", "private", "protected", null), defaults["null"]) + .field("decorators", or([def("Decorator")], null), defaults["null"]) + .field("optional", or(Boolean, null), defaults["null"]); + }); + def("ClassPrivateProperty") + .bases("ClassProperty") + .build("key", "value") + .field("key", def("PrivateName")) + .field("value", or(def("Expression"), null), defaults["null"]); + def("PrivateName") + .bases("Expression", "Pattern") + .build("id") + .field("id", def("Identifier")); + var ObjectPatternProperty = or(def("Property"), def("PropertyPattern"), def("SpreadPropertyPattern"), def("SpreadProperty"), // Used by Esprima + def("ObjectProperty"), // Babel 6 + def("RestProperty") // Babel 6 + ); + // Split into RestProperty and SpreadProperty + def("ObjectPattern") + .bases("Pattern") + .build("properties") + .field("properties", [ObjectPatternProperty]) + .field("decorators", or([def("Decorator")], null), defaults["null"]); + def("SpreadProperty") + .bases("Node") + .build("argument") + .field("argument", def("Expression")); + def("RestProperty") + .bases("Node") + .build("argument") + .field("argument", def("Expression")); + def("ForAwaitStatement") + .bases("Statement") + .build("left", "right", "body") + .field("left", or(def("VariableDeclaration"), def("Expression"))) + .field("right", def("Expression")) + .field("body", def("Statement")); + // The callee node of a dynamic import(...) expression. + def("Import") + .bases("Expression") + .build(); +} +exports.default = default_1; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/babel.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/babel.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..1ef9137c1c779802fc1bf34b7473f5e16f295de1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/babel.d.ts" @@ -0,0 +1,2 @@ +import { Fork } from "../types"; +export default function (fork: Fork): void; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/babel.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/babel.js" new file mode 100644 index 0000000000000000000000000000000000000000..5a9816af612ee7d6d0d83ebc817a911b498e1180 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/babel.js" @@ -0,0 +1,13 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var babel_core_1 = __importDefault(require("./babel-core")); +var flow_1 = __importDefault(require("./flow")); +function default_1(fork) { + fork.use(babel_core_1.default); + fork.use(flow_1.default); +} +exports.default = default_1; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/core.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/core.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..1ef9137c1c779802fc1bf34b7473f5e16f295de1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/core.d.ts" @@ -0,0 +1,2 @@ +import { Fork } from "../types"; +export default function (fork: Fork): void; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/core.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/core.js" new file mode 100644 index 0000000000000000000000000000000000000000..7b765f4a691de13682db99abc6fdd6c72239d87a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/core.js" @@ -0,0 +1,303 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var types_1 = __importDefault(require("../lib/types")); +var shared_1 = __importDefault(require("../lib/shared")); +function default_1(fork) { + var types = fork.use(types_1.default); + var Type = types.Type; + var def = Type.def; + var or = Type.or; + var shared = fork.use(shared_1.default); + var defaults = shared.defaults; + var geq = shared.geq; + // Abstract supertype of all syntactic entities that are allowed to have a + // .loc field. + def("Printable") + .field("loc", or(def("SourceLocation"), null), defaults["null"], true); + def("Node") + .bases("Printable") + .field("type", String) + .field("comments", or([def("Comment")], null), defaults["null"], true); + def("SourceLocation") + .field("start", def("Position")) + .field("end", def("Position")) + .field("source", or(String, null), defaults["null"]); + def("Position") + .field("line", geq(1)) + .field("column", geq(0)); + def("File") + .bases("Node") + .build("program", "name") + .field("program", def("Program")) + .field("name", or(String, null), defaults["null"]); + def("Program") + .bases("Node") + .build("body") + .field("body", [def("Statement")]); + def("Function") + .bases("Node") + .field("id", or(def("Identifier"), null), defaults["null"]) + .field("params", [def("Pattern")]) + .field("body", def("BlockStatement")) + .field("generator", Boolean, defaults["false"]) + .field("async", Boolean, defaults["false"]); + def("Statement").bases("Node"); + // The empty .build() here means that an EmptyStatement can be constructed + // (i.e. it's not abstract) but that it needs no arguments. + def("EmptyStatement").bases("Statement").build(); + def("BlockStatement") + .bases("Statement") + .build("body") + .field("body", [def("Statement")]); + // TODO Figure out how to silently coerce Expressions to + // ExpressionStatements where a Statement was expected. + def("ExpressionStatement") + .bases("Statement") + .build("expression") + .field("expression", def("Expression")); + def("IfStatement") + .bases("Statement") + .build("test", "consequent", "alternate") + .field("test", def("Expression")) + .field("consequent", def("Statement")) + .field("alternate", or(def("Statement"), null), defaults["null"]); + def("LabeledStatement") + .bases("Statement") + .build("label", "body") + .field("label", def("Identifier")) + .field("body", def("Statement")); + def("BreakStatement") + .bases("Statement") + .build("label") + .field("label", or(def("Identifier"), null), defaults["null"]); + def("ContinueStatement") + .bases("Statement") + .build("label") + .field("label", or(def("Identifier"), null), defaults["null"]); + def("WithStatement") + .bases("Statement") + .build("object", "body") + .field("object", def("Expression")) + .field("body", def("Statement")); + def("SwitchStatement") + .bases("Statement") + .build("discriminant", "cases", "lexical") + .field("discriminant", def("Expression")) + .field("cases", [def("SwitchCase")]) + .field("lexical", Boolean, defaults["false"]); + def("ReturnStatement") + .bases("Statement") + .build("argument") + .field("argument", or(def("Expression"), null)); + def("ThrowStatement") + .bases("Statement") + .build("argument") + .field("argument", def("Expression")); + def("TryStatement") + .bases("Statement") + .build("block", "handler", "finalizer") + .field("block", def("BlockStatement")) + .field("handler", or(def("CatchClause"), null), function () { + return this.handlers && this.handlers[0] || null; + }) + .field("handlers", [def("CatchClause")], function () { + return this.handler ? [this.handler] : []; + }, true) // Indicates this field is hidden from eachField iteration. + .field("guardedHandlers", [def("CatchClause")], defaults.emptyArray) + .field("finalizer", or(def("BlockStatement"), null), defaults["null"]); + def("CatchClause") + .bases("Node") + .build("param", "guard", "body") + // https://github.com/tc39/proposal-optional-catch-binding + .field("param", or(def("Pattern"), null), defaults["null"]) + .field("guard", or(def("Expression"), null), defaults["null"]) + .field("body", def("BlockStatement")); + def("WhileStatement") + .bases("Statement") + .build("test", "body") + .field("test", def("Expression")) + .field("body", def("Statement")); + def("DoWhileStatement") + .bases("Statement") + .build("body", "test") + .field("body", def("Statement")) + .field("test", def("Expression")); + def("ForStatement") + .bases("Statement") + .build("init", "test", "update", "body") + .field("init", or(def("VariableDeclaration"), def("Expression"), null)) + .field("test", or(def("Expression"), null)) + .field("update", or(def("Expression"), null)) + .field("body", def("Statement")); + def("ForInStatement") + .bases("Statement") + .build("left", "right", "body") + .field("left", or(def("VariableDeclaration"), def("Expression"))) + .field("right", def("Expression")) + .field("body", def("Statement")); + def("DebuggerStatement").bases("Statement").build(); + def("Declaration").bases("Statement"); + def("FunctionDeclaration") + .bases("Function", "Declaration") + .build("id", "params", "body") + .field("id", def("Identifier")); + def("FunctionExpression") + .bases("Function", "Expression") + .build("id", "params", "body"); + def("VariableDeclaration") + .bases("Declaration") + .build("kind", "declarations") + .field("kind", or("var", "let", "const")) + .field("declarations", [def("VariableDeclarator")]); + def("VariableDeclarator") + .bases("Node") + .build("id", "init") + .field("id", def("Pattern")) + .field("init", or(def("Expression"), null), defaults["null"]); + // TODO Are all Expressions really Patterns? + def("Expression").bases("Node", "Pattern"); + def("ThisExpression").bases("Expression").build(); + def("ArrayExpression") + .bases("Expression") + .build("elements") + .field("elements", [or(def("Expression"), null)]); + def("ObjectExpression") + .bases("Expression") + .build("properties") + .field("properties", [def("Property")]); + // TODO Not in the Mozilla Parser API, but used by Esprima. + def("Property") + .bases("Node") // Want to be able to visit Property Nodes. + .build("kind", "key", "value") + .field("kind", or("init", "get", "set")) + .field("key", or(def("Literal"), def("Identifier"))) + .field("value", def("Expression")); + def("SequenceExpression") + .bases("Expression") + .build("expressions") + .field("expressions", [def("Expression")]); + var UnaryOperator = or("-", "+", "!", "~", "typeof", "void", "delete"); + def("UnaryExpression") + .bases("Expression") + .build("operator", "argument", "prefix") + .field("operator", UnaryOperator) + .field("argument", def("Expression")) + // Esprima doesn't bother with this field, presumably because it's + // always true for unary operators. + .field("prefix", Boolean, defaults["true"]); + var BinaryOperator = or("==", "!=", "===", "!==", "<", "<=", ">", ">=", "<<", ">>", ">>>", "+", "-", "*", "/", "%", "**", "&", // TODO Missing from the Parser API. + "|", "^", "in", "instanceof", ".."); + def("BinaryExpression") + .bases("Expression") + .build("operator", "left", "right") + .field("operator", BinaryOperator) + .field("left", def("Expression")) + .field("right", def("Expression")); + var AssignmentOperator = or("=", "+=", "-=", "*=", "/=", "%=", "<<=", ">>=", ">>>=", "|=", "^=", "&="); + def("AssignmentExpression") + .bases("Expression") + .build("operator", "left", "right") + .field("operator", AssignmentOperator) + .field("left", def("Pattern")) + .field("right", def("Expression")); + var UpdateOperator = or("++", "--"); + def("UpdateExpression") + .bases("Expression") + .build("operator", "argument", "prefix") + .field("operator", UpdateOperator) + .field("argument", def("Expression")) + .field("prefix", Boolean); + var LogicalOperator = or("||", "&&"); + def("LogicalExpression") + .bases("Expression") + .build("operator", "left", "right") + .field("operator", LogicalOperator) + .field("left", def("Expression")) + .field("right", def("Expression")); + def("ConditionalExpression") + .bases("Expression") + .build("test", "consequent", "alternate") + .field("test", def("Expression")) + .field("consequent", def("Expression")) + .field("alternate", def("Expression")); + def("NewExpression") + .bases("Expression") + .build("callee", "arguments") + .field("callee", def("Expression")) + // The Mozilla Parser API gives this type as [or(def("Expression"), + // null)], but null values don't really make sense at the call site. + // TODO Report this nonsense. + .field("arguments", [def("Expression")]); + def("CallExpression") + .bases("Expression") + .build("callee", "arguments") + .field("callee", def("Expression")) + // See comment for NewExpression above. + .field("arguments", [def("Expression")]); + def("MemberExpression") + .bases("Expression") + .build("object", "property", "computed") + .field("object", def("Expression")) + .field("property", or(def("Identifier"), def("Expression"))) + .field("computed", Boolean, function () { + var type = this.property.type; + if (type === 'Literal' || + type === 'MemberExpression' || + type === 'BinaryExpression') { + return true; + } + return false; + }); + def("Pattern").bases("Node"); + def("SwitchCase") + .bases("Node") + .build("test", "consequent") + .field("test", or(def("Expression"), null)) + .field("consequent", [def("Statement")]); + def("Identifier") + // But aren't Expressions and Patterns already Nodes? TODO Report this. + .bases("Node", "Expression", "Pattern") + .build("name") + .field("name", String) + .field("optional", Boolean, defaults["false"]); + def("Literal") + // But aren't Expressions already Nodes? TODO Report this. + .bases("Node", "Expression") + .build("value") + .field("value", or(String, Boolean, null, Number, RegExp)) + .field("regex", or({ + pattern: String, + flags: String + }, null), function () { + if (this.value instanceof RegExp) { + var flags = ""; + if (this.value.ignoreCase) + flags += "i"; + if (this.value.multiline) + flags += "m"; + if (this.value.global) + flags += "g"; + return { + pattern: this.value.source, + flags: flags + }; + } + return null; + }); + // Abstract (non-buildable) comment supertype. Not a Node. + def("Comment") + .bases("Printable") + .field("value", String) + // A .leading comment comes before the node, whereas a .trailing + // comment comes after it. These two fields should not both be true, + // but they might both be false when the comment falls inside a node + // and the node has no children for the comment to lead or trail, + // e.g. { /*dangling*/ }. + .field("leading", Boolean, defaults["true"]) + .field("trailing", Boolean, defaults["false"]); +} +exports.default = default_1; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/es-proposals.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/es-proposals.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..1ef9137c1c779802fc1bf34b7473f5e16f295de1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/es-proposals.d.ts" @@ -0,0 +1,2 @@ +import { Fork } from "../types"; +export default function (fork: Fork): void; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/es-proposals.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/es-proposals.js" new file mode 100644 index 0000000000000000000000000000000000000000..a9431d6c4c3a593fd9107260adb5d173760e0aee --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/es-proposals.js" @@ -0,0 +1,35 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var types_1 = __importDefault(require("../lib/types")); +var shared_1 = __importDefault(require("../lib/shared")); +var core_1 = __importDefault(require("./core")); +function default_1(fork) { + fork.use(core_1.default); + var types = fork.use(types_1.default); + var Type = types.Type; + var def = types.Type.def; + var or = Type.or; + var shared = fork.use(shared_1.default); + var defaults = shared.defaults; + // https://github.com/tc39/proposal-optional-chaining + // `a?.b` as per https://github.com/estree/estree/issues/146 + def("OptionalMemberExpression") + .bases("MemberExpression") + .build("object", "property", "computed", "optional") + .field("optional", Boolean, defaults["true"]); + // a?.b() + def("OptionalCallExpression") + .bases("CallExpression") + .build("callee", "arguments", "optional") + .field("optional", Boolean, defaults["true"]); + // https://github.com/tc39/proposal-nullish-coalescing + // `a ?? b` as per https://github.com/babel/babylon/pull/761/files + var LogicalOperator = or("||", "&&", "??"); + def("LogicalExpression") + .field("operator", LogicalOperator); +} +exports.default = default_1; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/es6.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/es6.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..1ef9137c1c779802fc1bf34b7473f5e16f295de1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/es6.d.ts" @@ -0,0 +1,2 @@ +import { Fork } from "../types"; +export default function (fork: Fork): void; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/es6.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/es6.js" new file mode 100644 index 0000000000000000000000000000000000000000..56291af9c1f4b1fd462b94b0f92e67c3ecd92681 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/es6.js" @@ -0,0 +1,212 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var core_1 = __importDefault(require("./core")); +var types_1 = __importDefault(require("../lib/types")); +var shared_1 = __importDefault(require("../lib/shared")); +function default_1(fork) { + fork.use(core_1.default); + var types = fork.use(types_1.default); + var def = types.Type.def; + var or = types.Type.or; + var defaults = fork.use(shared_1.default).defaults; + def("Function") + .field("generator", Boolean, defaults["false"]) + .field("expression", Boolean, defaults["false"]) + .field("defaults", [or(def("Expression"), null)], defaults.emptyArray) + // TODO This could be represented as a RestElement in .params. + .field("rest", or(def("Identifier"), null), defaults["null"]); + // The ESTree way of representing a ...rest parameter. + def("RestElement") + .bases("Pattern") + .build("argument") + .field("argument", def("Pattern")) + .field("typeAnnotation", // for Babylon. Flow parser puts it on the identifier + or(def("TypeAnnotation"), def("TSTypeAnnotation"), null), defaults["null"]); + def("SpreadElementPattern") + .bases("Pattern") + .build("argument") + .field("argument", def("Pattern")); + def("FunctionDeclaration") + .build("id", "params", "body", "generator", "expression"); + def("FunctionExpression") + .build("id", "params", "body", "generator", "expression"); + // The Parser API calls this ArrowExpression, but Esprima and all other + // actual parsers use ArrowFunctionExpression. + def("ArrowFunctionExpression") + .bases("Function", "Expression") + .build("params", "body", "expression") + // The forced null value here is compatible with the overridden + // definition of the "id" field in the Function interface. + .field("id", null, defaults["null"]) + // Arrow function bodies are allowed to be expressions. + .field("body", or(def("BlockStatement"), def("Expression"))) + // The current spec forbids arrow generators, so I have taken the + // liberty of enforcing that. TODO Report this. + .field("generator", false, defaults["false"]); + def("ForOfStatement") + .bases("Statement") + .build("left", "right", "body") + .field("left", or(def("VariableDeclaration"), def("Pattern"))) + .field("right", def("Expression")) + .field("body", def("Statement")); + def("YieldExpression") + .bases("Expression") + .build("argument", "delegate") + .field("argument", or(def("Expression"), null)) + .field("delegate", Boolean, defaults["false"]); + def("GeneratorExpression") + .bases("Expression") + .build("body", "blocks", "filter") + .field("body", def("Expression")) + .field("blocks", [def("ComprehensionBlock")]) + .field("filter", or(def("Expression"), null)); + def("ComprehensionExpression") + .bases("Expression") + .build("body", "blocks", "filter") + .field("body", def("Expression")) + .field("blocks", [def("ComprehensionBlock")]) + .field("filter", or(def("Expression"), null)); + def("ComprehensionBlock") + .bases("Node") + .build("left", "right", "each") + .field("left", def("Pattern")) + .field("right", def("Expression")) + .field("each", Boolean); + def("Property") + .field("key", or(def("Literal"), def("Identifier"), def("Expression"))) + .field("value", or(def("Expression"), def("Pattern"))) + .field("method", Boolean, defaults["false"]) + .field("shorthand", Boolean, defaults["false"]) + .field("computed", Boolean, defaults["false"]); + def("ObjectProperty") + .field("shorthand", Boolean, defaults["false"]); + def("PropertyPattern") + .bases("Pattern") + .build("key", "pattern") + .field("key", or(def("Literal"), def("Identifier"), def("Expression"))) + .field("pattern", def("Pattern")) + .field("computed", Boolean, defaults["false"]); + def("ObjectPattern") + .bases("Pattern") + .build("properties") + .field("properties", [or(def("PropertyPattern"), def("Property"))]); + def("ArrayPattern") + .bases("Pattern") + .build("elements") + .field("elements", [or(def("Pattern"), null)]); + def("MethodDefinition") + .bases("Declaration") + .build("kind", "key", "value", "static") + .field("kind", or("constructor", "method", "get", "set")) + .field("key", def("Expression")) + .field("value", def("Function")) + .field("computed", Boolean, defaults["false"]) + .field("static", Boolean, defaults["false"]); + def("SpreadElement") + .bases("Node") + .build("argument") + .field("argument", def("Expression")); + def("ArrayExpression") + .field("elements", [or(def("Expression"), def("SpreadElement"), def("RestElement"), null)]); + def("NewExpression") + .field("arguments", [or(def("Expression"), def("SpreadElement"))]); + def("CallExpression") + .field("arguments", [or(def("Expression"), def("SpreadElement"))]); + // Note: this node type is *not* an AssignmentExpression with a Pattern on + // the left-hand side! The existing AssignmentExpression type already + // supports destructuring assignments. AssignmentPattern nodes may appear + // wherever a Pattern is allowed, and the right-hand side represents a + // default value to be destructured against the left-hand side, if no + // value is otherwise provided. For example: default parameter values. + def("AssignmentPattern") + .bases("Pattern") + .build("left", "right") + .field("left", def("Pattern")) + .field("right", def("Expression")); + var ClassBodyElement = or(def("MethodDefinition"), def("VariableDeclarator"), def("ClassPropertyDefinition"), def("ClassProperty")); + def("ClassProperty") + .bases("Declaration") + .build("key") + .field("key", or(def("Literal"), def("Identifier"), def("Expression"))) + .field("computed", Boolean, defaults["false"]); + def("ClassPropertyDefinition") // static property + .bases("Declaration") + .build("definition") + // Yes, Virginia, circular definitions are permitted. + .field("definition", ClassBodyElement); + def("ClassBody") + .bases("Declaration") + .build("body") + .field("body", [ClassBodyElement]); + def("ClassDeclaration") + .bases("Declaration") + .build("id", "body", "superClass") + .field("id", or(def("Identifier"), null)) + .field("body", def("ClassBody")) + .field("superClass", or(def("Expression"), null), defaults["null"]); + def("ClassExpression") + .bases("Expression") + .build("id", "body", "superClass") + .field("id", or(def("Identifier"), null), defaults["null"]) + .field("body", def("ClassBody")) + .field("superClass", or(def("Expression"), null), defaults["null"]); + // Specifier and ModuleSpecifier are abstract non-standard types + // introduced for definitional convenience. + def("Specifier").bases("Node"); + // This supertype is shared/abused by both def/babel.js and + // def/esprima.js. In the future, it will be possible to load only one set + // of definitions appropriate for a given parser, but until then we must + // rely on default functions to reconcile the conflicting AST formats. + def("ModuleSpecifier") + .bases("Specifier") + // This local field is used by Babel/Acorn. It should not technically + // be optional in the Babel/Acorn AST format, but it must be optional + // in the Esprima AST format. + .field("local", or(def("Identifier"), null), defaults["null"]) + // The id and name fields are used by Esprima. The id field should not + // technically be optional in the Esprima AST format, but it must be + // optional in the Babel/Acorn AST format. + .field("id", or(def("Identifier"), null), defaults["null"]) + .field("name", or(def("Identifier"), null), defaults["null"]); + // Like ModuleSpecifier, except type:"ImportSpecifier" and buildable. + // import {} from ...; + def("ImportSpecifier") + .bases("ModuleSpecifier") + .build("id", "name"); + // import <* as id> from ...; + def("ImportNamespaceSpecifier") + .bases("ModuleSpecifier") + .build("id"); + // import from ...; + def("ImportDefaultSpecifier") + .bases("ModuleSpecifier") + .build("id"); + def("ImportDeclaration") + .bases("Declaration") + .build("specifiers", "source", "importKind") + .field("specifiers", [or(def("ImportSpecifier"), def("ImportNamespaceSpecifier"), def("ImportDefaultSpecifier"))], defaults.emptyArray) + .field("source", def("Literal")) + .field("importKind", or("value", "type"), function () { + return "value"; + }); + def("TaggedTemplateExpression") + .bases("Expression") + .build("tag", "quasi") + .field("tag", def("Expression")) + .field("quasi", def("TemplateLiteral")); + def("TemplateLiteral") + .bases("Expression") + .build("quasis", "expressions") + .field("quasis", [def("TemplateElement")]) + .field("expressions", [def("Expression")]); + def("TemplateElement") + .bases("Node") + .build("value", "tail") + .field("value", { "cooked": String, "raw": String }) + .field("tail", Boolean); +} +exports.default = default_1; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/es7.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/es7.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..1ef9137c1c779802fc1bf34b7473f5e16f295de1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/es7.d.ts" @@ -0,0 +1,2 @@ +import { Fork } from "../types"; +export default function (fork: Fork): void; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/es7.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/es7.js" new file mode 100644 index 0000000000000000000000000000000000000000..9da0139dd5b170ebd9f459ec2203c0d20b3c126c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/es7.js" @@ -0,0 +1,36 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var es6_1 = __importDefault(require("./es6")); +var types_1 = __importDefault(require("../lib/types")); +var shared_1 = __importDefault(require("../lib/shared")); +function default_1(fork) { + fork.use(es6_1.default); + var types = fork.use(types_1.default); + var def = types.Type.def; + var or = types.Type.or; + var defaults = fork.use(shared_1.default).defaults; + def("Function") + .field("async", Boolean, defaults["false"]); + def("SpreadProperty") + .bases("Node") + .build("argument") + .field("argument", def("Expression")); + def("ObjectExpression") + .field("properties", [or(def("Property"), def("SpreadProperty"), def("SpreadElement"))]); + def("SpreadPropertyPattern") + .bases("Pattern") + .build("argument") + .field("argument", def("Pattern")); + def("ObjectPattern") + .field("properties", [or(def("Property"), def("PropertyPattern"), def("SpreadPropertyPattern"))]); + def("AwaitExpression") + .bases("Expression") + .build("argument", "all") + .field("argument", or(def("Expression"), null)) + .field("all", Boolean, defaults["false"]); +} +exports.default = default_1; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/esprima.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/esprima.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..1ef9137c1c779802fc1bf34b7473f5e16f295de1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/esprima.d.ts" @@ -0,0 +1,2 @@ +import { Fork } from "../types"; +export default function (fork: Fork): void; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/esprima.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/esprima.js" new file mode 100644 index 0000000000000000000000000000000000000000..1684132520966ce57147b252a73b8798638e661e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/esprima.js" @@ -0,0 +1,51 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var es7_1 = __importDefault(require("./es7")); +var types_1 = __importDefault(require("../lib/types")); +var shared_1 = __importDefault(require("../lib/shared")); +function default_1(fork) { + fork.use(es7_1.default); + var types = fork.use(types_1.default); + var defaults = fork.use(shared_1.default).defaults; + var def = types.Type.def; + var or = types.Type.or; + def("VariableDeclaration") + .field("declarations", [or(def("VariableDeclarator"), def("Identifier") // Esprima deviation. + )]); + def("Property") + .field("value", or(def("Expression"), def("Pattern") // Esprima deviation. + )); + def("ArrayPattern") + .field("elements", [or(def("Pattern"), def("SpreadElement"), null)]); + def("ObjectPattern") + .field("properties", [or(def("Property"), def("PropertyPattern"), def("SpreadPropertyPattern"), def("SpreadProperty") // Used by Esprima. + )]); + // Like ModuleSpecifier, except type:"ExportSpecifier" and buildable. + // export {} [from ...]; + def("ExportSpecifier") + .bases("ModuleSpecifier") + .build("id", "name"); + // export <*> from ...; + def("ExportBatchSpecifier") + .bases("Specifier") + .build(); + def("ExportDeclaration") + .bases("Declaration") + .build("default", "declaration", "specifiers", "source") + .field("default", Boolean) + .field("declaration", or(def("Declaration"), def("Expression"), // Implies default. + null)) + .field("specifiers", [or(def("ExportSpecifier"), def("ExportBatchSpecifier"))], defaults.emptyArray) + .field("source", or(def("Literal"), null), defaults["null"]); + def("Block") + .bases("Comment") + .build("value", /*optional:*/ "leading", "trailing"); + def("Line") + .bases("Comment") + .build("value", /*optional:*/ "leading", "trailing"); +} +exports.default = default_1; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/flow.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/flow.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..1ef9137c1c779802fc1bf34b7473f5e16f295de1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/flow.d.ts" @@ -0,0 +1,2 @@ +import { Fork } from "../types"; +export default function (fork: Fork): void; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/flow.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/flow.js" new file mode 100644 index 0000000000000000000000000000000000000000..af286b1af8e1a9de401337cc248d734076a0a271 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/flow.js" @@ -0,0 +1,290 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var es7_1 = __importDefault(require("./es7")); +var type_annotations_1 = __importDefault(require("./type-annotations")); +var types_1 = __importDefault(require("../lib/types")); +var shared_1 = __importDefault(require("../lib/shared")); +function default_1(fork) { + fork.use(es7_1.default); + fork.use(type_annotations_1.default); + var types = fork.use(types_1.default); + var def = types.Type.def; + var or = types.Type.or; + var defaults = fork.use(shared_1.default).defaults; + // Base types + def("Flow").bases("Node"); + def("FlowType").bases("Flow"); + // Type annotations + def("AnyTypeAnnotation") + .bases("FlowType") + .build(); + def("EmptyTypeAnnotation") + .bases("FlowType") + .build(); + def("MixedTypeAnnotation") + .bases("FlowType") + .build(); + def("VoidTypeAnnotation") + .bases("FlowType") + .build(); + def("NumberTypeAnnotation") + .bases("FlowType") + .build(); + def("NumberLiteralTypeAnnotation") + .bases("FlowType") + .build("value", "raw") + .field("value", Number) + .field("raw", String); + // Babylon 6 differs in AST from Flow + // same as NumberLiteralTypeAnnotation + def("NumericLiteralTypeAnnotation") + .bases("FlowType") + .build("value", "raw") + .field("value", Number) + .field("raw", String); + def("StringTypeAnnotation") + .bases("FlowType") + .build(); + def("StringLiteralTypeAnnotation") + .bases("FlowType") + .build("value", "raw") + .field("value", String) + .field("raw", String); + def("BooleanTypeAnnotation") + .bases("FlowType") + .build(); + def("BooleanLiteralTypeAnnotation") + .bases("FlowType") + .build("value", "raw") + .field("value", Boolean) + .field("raw", String); + def("TypeAnnotation") + .bases("Node") + .build("typeAnnotation") + .field("typeAnnotation", def("FlowType")); + def("NullableTypeAnnotation") + .bases("FlowType") + .build("typeAnnotation") + .field("typeAnnotation", def("FlowType")); + def("NullLiteralTypeAnnotation") + .bases("FlowType") + .build(); + def("NullTypeAnnotation") + .bases("FlowType") + .build(); + def("ThisTypeAnnotation") + .bases("FlowType") + .build(); + def("ExistsTypeAnnotation") + .bases("FlowType") + .build(); + def("ExistentialTypeParam") + .bases("FlowType") + .build(); + def("FunctionTypeAnnotation") + .bases("FlowType") + .build("params", "returnType", "rest", "typeParameters") + .field("params", [def("FunctionTypeParam")]) + .field("returnType", def("FlowType")) + .field("rest", or(def("FunctionTypeParam"), null)) + .field("typeParameters", or(def("TypeParameterDeclaration"), null)); + def("FunctionTypeParam") + .bases("Node") + .build("name", "typeAnnotation", "optional") + .field("name", def("Identifier")) + .field("typeAnnotation", def("FlowType")) + .field("optional", Boolean); + def("ArrayTypeAnnotation") + .bases("FlowType") + .build("elementType") + .field("elementType", def("FlowType")); + def("ObjectTypeAnnotation") + .bases("FlowType") + .build("properties", "indexers", "callProperties") + .field("properties", [ + or(def("ObjectTypeProperty"), def("ObjectTypeSpreadProperty")) + ]) + .field("indexers", [def("ObjectTypeIndexer")], defaults.emptyArray) + .field("callProperties", [def("ObjectTypeCallProperty")], defaults.emptyArray) + .field("inexact", or(Boolean, void 0), defaults["undefined"]) + .field("exact", Boolean, defaults["false"]) + .field("internalSlots", [def("ObjectTypeInternalSlot")], defaults.emptyArray); + def("Variance") + .bases("Node") + .build("kind") + .field("kind", or("plus", "minus")); + var LegacyVariance = or(def("Variance"), "plus", "minus", null); + def("ObjectTypeProperty") + .bases("Node") + .build("key", "value", "optional") + .field("key", or(def("Literal"), def("Identifier"))) + .field("value", def("FlowType")) + .field("optional", Boolean) + .field("variance", LegacyVariance, defaults["null"]); + def("ObjectTypeIndexer") + .bases("Node") + .build("id", "key", "value") + .field("id", def("Identifier")) + .field("key", def("FlowType")) + .field("value", def("FlowType")) + .field("variance", LegacyVariance, defaults["null"]); + def("ObjectTypeCallProperty") + .bases("Node") + .build("value") + .field("value", def("FunctionTypeAnnotation")) + .field("static", Boolean, defaults["false"]); + def("QualifiedTypeIdentifier") + .bases("Node") + .build("qualification", "id") + .field("qualification", or(def("Identifier"), def("QualifiedTypeIdentifier"))) + .field("id", def("Identifier")); + def("GenericTypeAnnotation") + .bases("FlowType") + .build("id", "typeParameters") + .field("id", or(def("Identifier"), def("QualifiedTypeIdentifier"))) + .field("typeParameters", or(def("TypeParameterInstantiation"), null)); + def("MemberTypeAnnotation") + .bases("FlowType") + .build("object", "property") + .field("object", def("Identifier")) + .field("property", or(def("MemberTypeAnnotation"), def("GenericTypeAnnotation"))); + def("UnionTypeAnnotation") + .bases("FlowType") + .build("types") + .field("types", [def("FlowType")]); + def("IntersectionTypeAnnotation") + .bases("FlowType") + .build("types") + .field("types", [def("FlowType")]); + def("TypeofTypeAnnotation") + .bases("FlowType") + .build("argument") + .field("argument", def("FlowType")); + def("ObjectTypeSpreadProperty") + .bases("Node") + .build("argument") + .field("argument", def("FlowType")); + def("ObjectTypeInternalSlot") + .bases("Node") + .build("id", "value", "optional", "static", "method") + .field("id", def("Identifier")) + .field("value", def("FlowType")) + .field("optional", Boolean) + .field("static", Boolean) + .field("method", Boolean); + def("TypeParameterDeclaration") + .bases("Node") + .build("params") + .field("params", [def("TypeParameter")]); + def("TypeParameterInstantiation") + .bases("Node") + .build("params") + .field("params", [def("FlowType")]); + def("TypeParameter") + .bases("FlowType") + .build("name", "variance", "bound") + .field("name", String) + .field("variance", LegacyVariance, defaults["null"]) + .field("bound", or(def("TypeAnnotation"), null), defaults["null"]); + def("ClassProperty") + .field("variance", LegacyVariance, defaults["null"]); + def("ClassImplements") + .bases("Node") + .build("id") + .field("id", def("Identifier")) + .field("superClass", or(def("Expression"), null), defaults["null"]) + .field("typeParameters", or(def("TypeParameterInstantiation"), null), defaults["null"]); + def("InterfaceTypeAnnotation") + .bases("FlowType") + .build("body", "extends") + .field("body", def("ObjectTypeAnnotation")) + .field("extends", or([def("InterfaceExtends")], null), defaults["null"]); + def("InterfaceDeclaration") + .bases("Declaration") + .build("id", "body", "extends") + .field("id", def("Identifier")) + .field("typeParameters", or(def("TypeParameterDeclaration"), null), defaults["null"]) + .field("body", def("ObjectTypeAnnotation")) + .field("extends", [def("InterfaceExtends")]); + def("DeclareInterface") + .bases("InterfaceDeclaration") + .build("id", "body", "extends"); + def("InterfaceExtends") + .bases("Node") + .build("id") + .field("id", def("Identifier")) + .field("typeParameters", or(def("TypeParameterInstantiation"), null), defaults["null"]); + def("TypeAlias") + .bases("Declaration") + .build("id", "typeParameters", "right") + .field("id", def("Identifier")) + .field("typeParameters", or(def("TypeParameterDeclaration"), null)) + .field("right", def("FlowType")); + def("OpaqueType") + .bases("Declaration") + .build("id", "typeParameters", "impltype", "supertype") + .field("id", def("Identifier")) + .field("typeParameters", or(def("TypeParameterDeclaration"), null)) + .field("impltype", def("FlowType")) + .field("supertype", def("FlowType")); + def("DeclareTypeAlias") + .bases("TypeAlias") + .build("id", "typeParameters", "right"); + def("DeclareOpaqueType") + .bases("TypeAlias") + .build("id", "typeParameters", "supertype"); + def("TypeCastExpression") + .bases("Expression") + .build("expression", "typeAnnotation") + .field("expression", def("Expression")) + .field("typeAnnotation", def("TypeAnnotation")); + def("TupleTypeAnnotation") + .bases("FlowType") + .build("types") + .field("types", [def("FlowType")]); + def("DeclareVariable") + .bases("Statement") + .build("id") + .field("id", def("Identifier")); + def("DeclareFunction") + .bases("Statement") + .build("id") + .field("id", def("Identifier")); + def("DeclareClass") + .bases("InterfaceDeclaration") + .build("id"); + def("DeclareModule") + .bases("Statement") + .build("id", "body") + .field("id", or(def("Identifier"), def("Literal"))) + .field("body", def("BlockStatement")); + def("DeclareModuleExports") + .bases("Statement") + .build("typeAnnotation") + .field("typeAnnotation", def("TypeAnnotation")); + def("DeclareExportDeclaration") + .bases("Declaration") + .build("default", "declaration", "specifiers", "source") + .field("default", Boolean) + .field("declaration", or(def("DeclareVariable"), def("DeclareFunction"), def("DeclareClass"), def("FlowType"), // Implies default. + null)) + .field("specifiers", [or(def("ExportSpecifier"), def("ExportBatchSpecifier"))], defaults.emptyArray) + .field("source", or(def("Literal"), null), defaults["null"]); + def("DeclareExportAllDeclaration") + .bases("Declaration") + .build("source") + .field("source", or(def("Literal"), null), defaults["null"]); + def("FlowPredicate").bases("Flow"); + def("InferredPredicate") + .bases("FlowPredicate") + .build(); + def("DeclaredPredicate") + .bases("FlowPredicate") + .build("value") + .field("value", def("Expression")); +} +exports.default = default_1; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/jsx.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/jsx.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..1ef9137c1c779802fc1bf34b7473f5e16f295de1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/jsx.d.ts" @@ -0,0 +1,2 @@ +import { Fork } from "../types"; +export default function (fork: Fork): void; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/jsx.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/jsx.js" new file mode 100644 index 0000000000000000000000000000000000000000..f6fb42dbb24ab2c03aeb2ca68db3766e432d30a8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/jsx.js" @@ -0,0 +1,105 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var es7_1 = __importDefault(require("./es7")); +var types_1 = __importDefault(require("../lib/types")); +var shared_1 = __importDefault(require("../lib/shared")); +function default_1(fork) { + fork.use(es7_1.default); + var types = fork.use(types_1.default); + var def = types.Type.def; + var or = types.Type.or; + var defaults = fork.use(shared_1.default).defaults; + def("JSXAttribute") + .bases("Node") + .build("name", "value") + .field("name", or(def("JSXIdentifier"), def("JSXNamespacedName"))) + .field("value", or(def("Literal"), // attr="value" + def("JSXExpressionContainer"), // attr={value} + null // attr= or just attr + ), defaults["null"]); + def("JSXIdentifier") + .bases("Identifier") + .build("name") + .field("name", String); + def("JSXNamespacedName") + .bases("Node") + .build("namespace", "name") + .field("namespace", def("JSXIdentifier")) + .field("name", def("JSXIdentifier")); + def("JSXMemberExpression") + .bases("MemberExpression") + .build("object", "property") + .field("object", or(def("JSXIdentifier"), def("JSXMemberExpression"))) + .field("property", def("JSXIdentifier")) + .field("computed", Boolean, defaults.false); + var JSXElementName = or(def("JSXIdentifier"), def("JSXNamespacedName"), def("JSXMemberExpression")); + def("JSXSpreadAttribute") + .bases("Node") + .build("argument") + .field("argument", def("Expression")); + var JSXAttributes = [or(def("JSXAttribute"), def("JSXSpreadAttribute"))]; + def("JSXExpressionContainer") + .bases("Expression") + .build("expression") + .field("expression", def("Expression")); + def("JSXElement") + .bases("Expression") + .build("openingElement", "closingElement", "children") + .field("openingElement", def("JSXOpeningElement")) + .field("closingElement", or(def("JSXClosingElement"), null), defaults["null"]) + .field("children", [or(def("JSXElement"), def("JSXExpressionContainer"), def("JSXFragment"), def("JSXText"), def("Literal") // TODO Esprima should return JSXText instead. + )], defaults.emptyArray) + .field("name", JSXElementName, function () { + // Little-known fact: the `this` object inside a default function + // is none other than the partially-built object itself, and any + // fields initialized directly from builder function arguments + // (like openingElement, closingElement, and children) are + // guaranteed to be available. + return this.openingElement.name; + }, true) // hidden from traversal + .field("selfClosing", Boolean, function () { + return this.openingElement.selfClosing; + }, true) // hidden from traversal + .field("attributes", JSXAttributes, function () { + return this.openingElement.attributes; + }, true); // hidden from traversal + def("JSXOpeningElement") + .bases("Node") // TODO Does this make sense? Can't really be an JSXElement. + .build("name", "attributes", "selfClosing") + .field("name", JSXElementName) + .field("attributes", JSXAttributes, defaults.emptyArray) + .field("selfClosing", Boolean, defaults["false"]); + def("JSXClosingElement") + .bases("Node") // TODO Same concern. + .build("name") + .field("name", JSXElementName); + def("JSXFragment") + .bases("Expression") + .build("openingElement", "closingElement", "children") + .field("openingElement", def("JSXOpeningFragment")) + .field("closingElement", def("JSXClosingFragment")) + .field("children", [or(def("JSXElement"), def("JSXExpressionContainer"), def("JSXFragment"), def("JSXText"), def("Literal") // TODO Esprima should return JSXText instead. + )], defaults.emptyArray); + def("JSXOpeningFragment") + .bases("Node") // TODO Same concern. + .build(); + def("JSXClosingFragment") + .bases("Node") // TODO Same concern. + .build(); + def("JSXText") + .bases("Literal") + .build("value") + .field("value", String); + def("JSXEmptyExpression").bases("Expression").build(); + // This PR has caused many people issues, but supporting it seems like a + // good idea anyway: https://github.com/babel/babel/pull/4988 + def("JSXSpreadChild") + .bases("Expression") + .build("expression") + .field("expression", def("Expression")); +} +exports.default = default_1; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/type-annotations.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/type-annotations.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..7c57c575326752e61ee142629a8c12be8abee6ea --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/type-annotations.d.ts" @@ -0,0 +1,7 @@ +/** + * Type annotation defs shared between Flow and TypeScript. + * These defs could not be defined in ./flow.ts or ./typescript.ts directly + * because they use the same name. + */ +import { Fork } from "../types"; +export default function (fork: Fork): void; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/type-annotations.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/type-annotations.js" new file mode 100644 index 0000000000000000000000000000000000000000..95ca42e81f9e93c293961086a5ab52145b26b37a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/type-annotations.js" @@ -0,0 +1,42 @@ +"use strict";; +/** + * Type annotation defs shared between Flow and TypeScript. + * These defs could not be defined in ./flow.ts or ./typescript.ts directly + * because they use the same name. + */ +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var types_1 = __importDefault(require("../lib/types")); +var shared_1 = __importDefault(require("../lib/shared")); +function default_1(fork) { + var types = fork.use(types_1.default); + var def = types.Type.def; + var or = types.Type.or; + var defaults = fork.use(shared_1.default).defaults; + var TypeAnnotation = or(def("TypeAnnotation"), def("TSTypeAnnotation"), null); + var TypeParamDecl = or(def("TypeParameterDeclaration"), def("TSTypeParameterDeclaration"), null); + def("Identifier") + .field("typeAnnotation", TypeAnnotation, defaults["null"]); + def("ObjectPattern") + .field("typeAnnotation", TypeAnnotation, defaults["null"]); + def("Function") + .field("returnType", TypeAnnotation, defaults["null"]) + .field("typeParameters", TypeParamDecl, defaults["null"]); + def("ClassProperty") + .build("key", "value", "typeAnnotation", "static") + .field("value", or(def("Expression"), null)) + .field("static", Boolean, defaults["false"]) + .field("typeAnnotation", TypeAnnotation, defaults["null"]); + ["ClassDeclaration", + "ClassExpression", + ].forEach(function (typeName) { + def(typeName) + .field("typeParameters", TypeParamDecl, defaults["null"]) + .field("superTypeParameters", or(def("TypeParameterInstantiation"), def("TSTypeParameterInstantiation"), null), defaults["null"]) + .field("implements", or([def("ClassImplements")], [def("TSExpressionWithTypeArguments")]), defaults.emptyArray); + }); +} +exports.default = default_1; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/typescript.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/typescript.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..1ef9137c1c779802fc1bf34b7473f5e16f295de1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/typescript.d.ts" @@ -0,0 +1,2 @@ +import { Fork } from "../types"; +export default function (fork: Fork): void; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/typescript.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/typescript.js" new file mode 100644 index 0000000000000000000000000000000000000000..d9b740083c678d497c33e38551f02ed1ed97e46c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/def/typescript.js" @@ -0,0 +1,328 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var babel_core_1 = __importDefault(require("./babel-core")); +var type_annotations_1 = __importDefault(require("./type-annotations")); +var types_1 = __importDefault(require("../lib/types")); +var shared_1 = __importDefault(require("../lib/shared")); +function default_1(fork) { + // Since TypeScript is parsed by Babylon, include the core Babylon types + // but omit the Flow-related types. + fork.use(babel_core_1.default); + fork.use(type_annotations_1.default); + var types = fork.use(types_1.default); + var n = types.namedTypes; + var def = types.Type.def; + var or = types.Type.or; + var defaults = fork.use(shared_1.default).defaults; + var StringLiteral = types.Type.from(function (value, deep) { + if (n.StringLiteral && + n.StringLiteral.check(value, deep)) { + return true; + } + if (n.Literal && + n.Literal.check(value, deep) && + typeof value.value === "string") { + return true; + } + return false; + }, "StringLiteral"); + def("TSType") + .bases("Node"); + var IdOrQualifiedName = or(def("Identifier"), def("TSQualifiedName")); + def("TSTypeReference") + .bases("TSType") + .build("typeName", "typeParameters") + .field("typeName", IdOrQualifiedName) + .field("typeParameters", or(def("TSTypeParameterInstantiation"), null), defaults["null"]); + // An abstract (non-buildable) base type that provide a commonly-needed + // optional .typeParameters field. + def("TSHasOptionalTypeParameters") + .field("typeParameters", or(def("TSTypeParameterDeclaration"), null, void 0), defaults["null"]); + // An abstract (non-buildable) base type that provide a commonly-needed + // optional .typeAnnotation field. + def("TSHasOptionalTypeAnnotation") + .field("typeAnnotation", or(def("TSTypeAnnotation"), null), defaults["null"]); + def("TSQualifiedName") + .bases("Node") + .build("left", "right") + .field("left", IdOrQualifiedName) + .field("right", IdOrQualifiedName); + def("TSAsExpression") + .bases("Expression") + .build("expression") + .field("expression", def("Expression")) + .field("typeAnnotation", def("TSType")) + .field("extra", or({ parenthesized: Boolean }, null), defaults["null"]); + def("TSNonNullExpression") + .bases("Expression") + .build("expression") + .field("expression", def("Expression")); + [ + "TSAnyKeyword", + "TSBooleanKeyword", + "TSNeverKeyword", + "TSNullKeyword", + "TSNumberKeyword", + "TSObjectKeyword", + "TSStringKeyword", + "TSSymbolKeyword", + "TSUndefinedKeyword", + "TSUnknownKeyword", + "TSVoidKeyword", + "TSThisType", + ].forEach(function (keywordType) { + def(keywordType) + .bases("TSType") + .build(); + }); + def("TSArrayType") + .bases("TSType") + .build("elementType") + .field("elementType", def("TSType")); + def("TSLiteralType") + .bases("TSType") + .build("literal") + .field("literal", or(def("NumericLiteral"), def("StringLiteral"), def("BooleanLiteral"))); + ["TSUnionType", + "TSIntersectionType", + ].forEach(function (typeName) { + def(typeName) + .bases("TSType") + .build("types") + .field("types", [def("TSType")]); + }); + def("TSConditionalType") + .bases("TSType") + .build("checkType", "extendsType", "trueType", "falseType") + .field("checkType", def("TSType")) + .field("extendsType", def("TSType")) + .field("trueType", def("TSType")) + .field("falseType", def("TSType")); + def("TSInferType") + .bases("TSType") + .build("typeParameter") + .field("typeParameter", def("TSTypeParameter")); + def("TSParenthesizedType") + .bases("TSType") + .build("typeAnnotation") + .field("typeAnnotation", def("TSType")); + var ParametersType = [or(def("Identifier"), def("RestElement"), def("ObjectPattern"))]; + ["TSFunctionType", + "TSConstructorType", + ].forEach(function (typeName) { + def(typeName) + .bases("TSType", "TSHasOptionalTypeParameters", "TSHasOptionalTypeAnnotation") + .build("parameters") + .field("parameters", ParametersType); + }); + def("TSDeclareFunction") + .bases("Declaration", "TSHasOptionalTypeParameters") + .build("id", "params", "returnType") + .field("declare", Boolean, defaults["false"]) + .field("async", Boolean, defaults["false"]) + .field("generator", Boolean, defaults["false"]) + .field("id", or(def("Identifier"), null), defaults["null"]) + .field("params", [def("Pattern")]) + // tSFunctionTypeAnnotationCommon + .field("returnType", or(def("TSTypeAnnotation"), def("Noop"), // Still used? + null), defaults["null"]); + def("TSDeclareMethod") + .bases("Declaration", "TSHasOptionalTypeParameters") + .build("key", "params", "returnType") + .field("async", Boolean, defaults["false"]) + .field("generator", Boolean, defaults["false"]) + .field("params", [def("Pattern")]) + // classMethodOrPropertyCommon + .field("abstract", Boolean, defaults["false"]) + .field("accessibility", or("public", "private", "protected", void 0), defaults["undefined"]) + .field("static", Boolean, defaults["false"]) + .field("computed", Boolean, defaults["false"]) + .field("optional", Boolean, defaults["false"]) + .field("key", or(def("Identifier"), def("StringLiteral"), def("NumericLiteral"), + // Only allowed if .computed is true. + def("Expression"))) + // classMethodOrDeclareMethodCommon + .field("kind", or("get", "set", "method", "constructor"), function getDefault() { return "method"; }) + .field("access", // Not "accessibility"? + or("public", "private", "protected", void 0), defaults["undefined"]) + .field("decorators", or([def("Decorator")], null), defaults["null"]) + // tSFunctionTypeAnnotationCommon + .field("returnType", or(def("TSTypeAnnotation"), def("Noop"), // Still used? + null), defaults["null"]); + def("TSMappedType") + .bases("TSType") + .build("typeParameter", "typeAnnotation") + .field("readonly", or(Boolean, "+", "-"), defaults["false"]) + .field("typeParameter", def("TSTypeParameter")) + .field("optional", or(Boolean, "+", "-"), defaults["false"]) + .field("typeAnnotation", or(def("TSType"), null), defaults["null"]); + def("TSTupleType") + .bases("TSType") + .build("elementTypes") + .field("elementTypes", [def("TSType")]); + def("TSRestType") + .bases("TSType") + .build("typeAnnotation") + .field("typeAnnotation", def("TSType")); + def("TSOptionalType") + .bases("TSType") + .build("typeAnnotation") + .field("typeAnnotation", def("TSType")); + def("TSIndexedAccessType") + .bases("TSType") + .build("objectType", "indexType") + .field("objectType", def("TSType")) + .field("indexType", def("TSType")); + def("TSTypeOperator") + .bases("TSType") + .build("operator") + .field("operator", String) + .field("typeAnnotation", def("TSType")); + def("TSTypeAnnotation") + .bases("Node") + .build("typeAnnotation") + .field("typeAnnotation", or(def("TSType"), def("TSTypeAnnotation"))); + def("TSIndexSignature") + .bases("Declaration", "TSHasOptionalTypeAnnotation") + .build("parameters", "typeAnnotation") + .field("parameters", [def("Identifier")]) // Length === 1 + .field("readonly", Boolean, defaults["false"]); + def("TSPropertySignature") + .bases("Declaration", "TSHasOptionalTypeAnnotation") + .build("key", "typeAnnotation", "optional") + .field("key", def("Expression")) + .field("computed", Boolean, defaults["false"]) + .field("readonly", Boolean, defaults["false"]) + .field("optional", Boolean, defaults["false"]) + .field("initializer", or(def("Expression"), null), defaults["null"]); + def("TSMethodSignature") + .bases("Declaration", "TSHasOptionalTypeParameters", "TSHasOptionalTypeAnnotation") + .build("key", "parameters", "typeAnnotation") + .field("key", def("Expression")) + .field("computed", Boolean, defaults["false"]) + .field("optional", Boolean, defaults["false"]) + .field("parameters", ParametersType); + def("TSTypePredicate") + .bases("TSTypeAnnotation") + .build("parameterName", "typeAnnotation") + .field("parameterName", or(def("Identifier"), def("TSThisType"))) + .field("typeAnnotation", def("TSTypeAnnotation")); + ["TSCallSignatureDeclaration", + "TSConstructSignatureDeclaration", + ].forEach(function (typeName) { + def(typeName) + .bases("Declaration", "TSHasOptionalTypeParameters", "TSHasOptionalTypeAnnotation") + .build("parameters", "typeAnnotation") + .field("parameters", ParametersType); + }); + def("TSEnumMember") + .bases("Node") + .build("id", "initializer") + .field("id", or(def("Identifier"), StringLiteral)) + .field("initializer", or(def("Expression"), null), defaults["null"]); + def("TSTypeQuery") + .bases("TSType") + .build("exprName") + .field("exprName", IdOrQualifiedName); + // Inferred from Babylon's tsParseTypeMember method. + var TSTypeMember = or(def("TSCallSignatureDeclaration"), def("TSConstructSignatureDeclaration"), def("TSIndexSignature"), def("TSMethodSignature"), def("TSPropertySignature")); + def("TSTypeLiteral") + .bases("TSType") + .build("members") + .field("members", [TSTypeMember]); + def("TSTypeParameter") + .bases("Identifier") + .build("name", "constraint", "default") + .field("name", String) + .field("constraint", or(def("TSType"), void 0), defaults["undefined"]) + .field("default", or(def("TSType"), void 0), defaults["undefined"]); + def("TSTypeAssertion") + .bases("Expression") + .build("typeAnnotation", "expression") + .field("typeAnnotation", def("TSType")) + .field("expression", def("Expression")) + .field("extra", or({ parenthesized: Boolean }, null), defaults["null"]); + def("TSTypeParameterDeclaration") + .bases("Declaration") + .build("params") + .field("params", [def("TSTypeParameter")]); + def("TSTypeParameterInstantiation") + .bases("Node") + .build("params") + .field("params", [def("TSType")]); + def("TSEnumDeclaration") + .bases("Declaration") + .build("id", "members") + .field("id", def("Identifier")) + .field("const", Boolean, defaults["false"]) + .field("declare", Boolean, defaults["false"]) + .field("members", [def("TSEnumMember")]) + .field("initializer", or(def("Expression"), null), defaults["null"]); + def("TSTypeAliasDeclaration") + .bases("Declaration", "TSHasOptionalTypeParameters") + .build("id", "typeAnnotation") + .field("id", def("Identifier")) + .field("declare", Boolean, defaults["false"]) + .field("typeAnnotation", def("TSType")); + def("TSModuleBlock") + .bases("Node") + .build("body") + .field("body", [def("Statement")]); + def("TSModuleDeclaration") + .bases("Declaration") + .build("id", "body") + .field("id", or(StringLiteral, IdOrQualifiedName)) + .field("declare", Boolean, defaults["false"]) + .field("global", Boolean, defaults["false"]) + .field("body", or(def("TSModuleBlock"), def("TSModuleDeclaration"), null), defaults["null"]); + def("TSImportEqualsDeclaration") + .bases("Declaration") + .build("id", "moduleReference") + .field("id", def("Identifier")) + .field("isExport", Boolean, defaults["false"]) + .field("moduleReference", or(IdOrQualifiedName, def("TSExternalModuleReference"))); + def("TSExternalModuleReference") + .bases("Declaration") + .build("expression") + .field("expression", StringLiteral); + def("TSExportAssignment") + .bases("Statement") + .build("expression") + .field("expression", def("Expression")); + def("TSNamespaceExportDeclaration") + .bases("Declaration") + .build("id") + .field("id", def("Identifier")); + def("TSInterfaceBody") + .bases("Node") + .build("body") + .field("body", [TSTypeMember]); + def("TSExpressionWithTypeArguments") + .bases("TSType") + .build("expression", "typeParameters") + .field("expression", IdOrQualifiedName) + .field("typeParameters", or(def("TSTypeParameterInstantiation"), null), defaults["null"]); + def("TSInterfaceDeclaration") + .bases("Declaration", "TSHasOptionalTypeParameters") + .build("id", "body") + .field("id", IdOrQualifiedName) + .field("declare", Boolean, defaults["false"]) + .field("extends", or([def("TSExpressionWithTypeArguments")], null), defaults["null"]) + .field("body", def("TSInterfaceBody")); + def("TSParameterProperty") + .bases("Pattern") + .build("parameter") + .field("accessibility", or("public", "private", "protected", void 0), defaults["undefined"]) + .field("readonly", Boolean, defaults["false"]) + .field("parameter", or(def("Identifier"), def("AssignmentPattern"))); + // Defined already in es6 and babel-core. + def("ClassBody") + .field("body", [or(def("MethodDefinition"), def("VariableDeclarator"), def("ClassPropertyDefinition"), def("ClassProperty"), def("ClassPrivateProperty"), def("ClassMethod"), def("ClassPrivateMethod"), + // Just need to add these types: + def("TSDeclareMethod"), TSTypeMember)]); +} +exports.default = default_1; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/fork.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/fork.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..a100143572e95cb0839537e24faf1cfd0b9f9e39 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/fork.d.ts" @@ -0,0 +1,46 @@ +import { Def, Plugin } from "./types"; +export default function (defs: Def[]): { + Type: { + or(...types: any[]): import("./lib/types").Type; + from(value: any, name?: string | undefined): import("./lib/types").Type; + def(typeName: string): import("./lib/types").Def; + hasDef(typeName: string): boolean; + }; + builtInTypes: { + string: import("./lib/types").Type; + function: import("./lib/types").Type; + array: import("./lib/types").Type; + object: import("./lib/types").Type<{ + [key: string]: any; + }>; + RegExp: import("./lib/types").Type; + Date: import("./lib/types").Type; + number: import("./lib/types").Type; + boolean: import("./lib/types").Type; + null: import("./lib/types").Type; + undefined: import("./lib/types").Type; + }; + namedTypes: { + [name: string]: import("./lib/types").AnyType; + }; + builders: { + [name: string]: import("./lib/types").Builder; + }; + defineMethod: (name: any, func?: Function | undefined) => Function; + getFieldNames: (object: any) => string[]; + getFieldValue: (object: any, fieldName: any) => any; + eachField: (object: any, callback: (name: any, value: any) => any, context?: any) => void; + someField: (object: any, callback: (name: any, value: any) => any, context?: any) => boolean; + getSupertypeNames: (typeName: string) => string[]; + getBuilderName: (typeName: any) => any; + astNodesAreEquivalent: { + (a: any, b: any, problemPath?: any): boolean; + assert(a: any, b: any): void; + }; + finalize: () => void; + Path: import("./lib/path").PathConstructor; + NodePath: import("./lib/node-path").NodePathConstructor; + PathVisitor: import("./lib/path-visitor").PathVisitorConstructor; + use: (plugin: Plugin) => T; + visit: (node: import("./lib/types").ASTNode, methods?: any) => any; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/fork.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/fork.js" new file mode 100644 index 0000000000000000000000000000000000000000..07e00e42bbfefdc881352ba08d348496562459ad --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/fork.js" @@ -0,0 +1,55 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var types_1 = __importDefault(require("./lib/types")); +var path_visitor_1 = __importDefault(require("./lib/path-visitor")); +var equiv_1 = __importDefault(require("./lib/equiv")); +var path_1 = __importDefault(require("./lib/path")); +var node_path_1 = __importDefault(require("./lib/node-path")); +function default_1(defs) { + var fork = createFork(); + var types = fork.use(types_1.default); + defs.forEach(fork.use); + types.finalize(); + var PathVisitor = fork.use(path_visitor_1.default); + var exports = { + Type: types.Type, + builtInTypes: types.builtInTypes, + namedTypes: types.namedTypes, + builders: types.builders, + defineMethod: types.defineMethod, + getFieldNames: types.getFieldNames, + getFieldValue: types.getFieldValue, + eachField: types.eachField, + someField: types.someField, + getSupertypeNames: types.getSupertypeNames, + getBuilderName: types.getBuilderName, + astNodesAreEquivalent: fork.use(equiv_1.default), + finalize: types.finalize, + Path: fork.use(path_1.default), + NodePath: fork.use(node_path_1.default), + PathVisitor: PathVisitor, + use: fork.use, + visit: PathVisitor.visit, + }; + return exports; +} +exports.default = default_1; +function createFork() { + var used = []; + var usedResult = []; + function use(plugin) { + var idx = used.indexOf(plugin); + if (idx === -1) { + idx = used.length; + used.push(plugin); + usedResult[idx] = plugin(fork); + } + return usedResult[idx]; + } + var fork = { use: use }; + return fork; +} +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/builders.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/builders.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..ec659909978f223a3767308bff43a256c80939aa --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/builders.d.ts" @@ -0,0 +1,2539 @@ +import * as K from "./kinds"; +import * as N from "./nodes"; +export interface FileBuilder { + (program: K.ProgramKind, name?: string | null): N.File; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + name?: string | null; + program: K.ProgramKind; + }): N.File; +} +export interface ProgramBuilder { + (body: K.StatementKind[]): N.Program; + from(params: { + body: K.StatementKind[]; + comments?: K.CommentKind[] | null; + directives?: K.DirectiveKind[]; + interpreter?: K.InterpreterDirectiveKind | null; + loc?: K.SourceLocationKind | null; + }): N.Program; +} +export interface IdentifierBuilder { + (name: string): N.Identifier; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + name: string; + optional?: boolean; + typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null; + }): N.Identifier; +} +export interface BlockStatementBuilder { + (body: K.StatementKind[]): N.BlockStatement; + from(params: { + body: K.StatementKind[]; + comments?: K.CommentKind[] | null; + directives?: K.DirectiveKind[]; + loc?: K.SourceLocationKind | null; + }): N.BlockStatement; +} +export interface EmptyStatementBuilder { + (): N.EmptyStatement; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.EmptyStatement; +} +export interface ExpressionStatementBuilder { + (expression: K.ExpressionKind): N.ExpressionStatement; + from(params: { + comments?: K.CommentKind[] | null; + expression: K.ExpressionKind; + loc?: K.SourceLocationKind | null; + }): N.ExpressionStatement; +} +export interface IfStatementBuilder { + (test: K.ExpressionKind, consequent: K.StatementKind, alternate?: K.StatementKind | null): N.IfStatement; + from(params: { + alternate?: K.StatementKind | null; + comments?: K.CommentKind[] | null; + consequent: K.StatementKind; + loc?: K.SourceLocationKind | null; + test: K.ExpressionKind; + }): N.IfStatement; +} +export interface LabeledStatementBuilder { + (label: K.IdentifierKind, body: K.StatementKind): N.LabeledStatement; + from(params: { + body: K.StatementKind; + comments?: K.CommentKind[] | null; + label: K.IdentifierKind; + loc?: K.SourceLocationKind | null; + }): N.LabeledStatement; +} +export interface BreakStatementBuilder { + (label?: K.IdentifierKind | null): N.BreakStatement; + from(params: { + comments?: K.CommentKind[] | null; + label?: K.IdentifierKind | null; + loc?: K.SourceLocationKind | null; + }): N.BreakStatement; +} +export interface ContinueStatementBuilder { + (label?: K.IdentifierKind | null): N.ContinueStatement; + from(params: { + comments?: K.CommentKind[] | null; + label?: K.IdentifierKind | null; + loc?: K.SourceLocationKind | null; + }): N.ContinueStatement; +} +export interface WithStatementBuilder { + (object: K.ExpressionKind, body: K.StatementKind): N.WithStatement; + from(params: { + body: K.StatementKind; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + object: K.ExpressionKind; + }): N.WithStatement; +} +export interface SwitchStatementBuilder { + (discriminant: K.ExpressionKind, cases: K.SwitchCaseKind[], lexical?: boolean): N.SwitchStatement; + from(params: { + cases: K.SwitchCaseKind[]; + comments?: K.CommentKind[] | null; + discriminant: K.ExpressionKind; + lexical?: boolean; + loc?: K.SourceLocationKind | null; + }): N.SwitchStatement; +} +export interface SwitchCaseBuilder { + (test: K.ExpressionKind | null, consequent: K.StatementKind[]): N.SwitchCase; + from(params: { + comments?: K.CommentKind[] | null; + consequent: K.StatementKind[]; + loc?: K.SourceLocationKind | null; + test: K.ExpressionKind | null; + }): N.SwitchCase; +} +export interface ReturnStatementBuilder { + (argument: K.ExpressionKind | null): N.ReturnStatement; + from(params: { + argument: K.ExpressionKind | null; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.ReturnStatement; +} +export interface ThrowStatementBuilder { + (argument: K.ExpressionKind): N.ThrowStatement; + from(params: { + argument: K.ExpressionKind; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.ThrowStatement; +} +export interface TryStatementBuilder { + (block: K.BlockStatementKind, handler?: K.CatchClauseKind | null, finalizer?: K.BlockStatementKind | null): N.TryStatement; + from(params: { + block: K.BlockStatementKind; + comments?: K.CommentKind[] | null; + finalizer?: K.BlockStatementKind | null; + guardedHandlers?: K.CatchClauseKind[]; + handler?: K.CatchClauseKind | null; + handlers?: K.CatchClauseKind[]; + loc?: K.SourceLocationKind | null; + }): N.TryStatement; +} +export interface CatchClauseBuilder { + (param: K.PatternKind | null | undefined, guard: K.ExpressionKind | null | undefined, body: K.BlockStatementKind): N.CatchClause; + from(params: { + body: K.BlockStatementKind; + comments?: K.CommentKind[] | null; + guard?: K.ExpressionKind | null; + loc?: K.SourceLocationKind | null; + param?: K.PatternKind | null; + }): N.CatchClause; +} +export interface WhileStatementBuilder { + (test: K.ExpressionKind, body: K.StatementKind): N.WhileStatement; + from(params: { + body: K.StatementKind; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + test: K.ExpressionKind; + }): N.WhileStatement; +} +export interface DoWhileStatementBuilder { + (body: K.StatementKind, test: K.ExpressionKind): N.DoWhileStatement; + from(params: { + body: K.StatementKind; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + test: K.ExpressionKind; + }): N.DoWhileStatement; +} +export interface ForStatementBuilder { + (init: K.VariableDeclarationKind | K.ExpressionKind | null, test: K.ExpressionKind | null, update: K.ExpressionKind | null, body: K.StatementKind): N.ForStatement; + from(params: { + body: K.StatementKind; + comments?: K.CommentKind[] | null; + init: K.VariableDeclarationKind | K.ExpressionKind | null; + loc?: K.SourceLocationKind | null; + test: K.ExpressionKind | null; + update: K.ExpressionKind | null; + }): N.ForStatement; +} +export interface VariableDeclarationBuilder { + (kind: "var" | "let" | "const", declarations: (K.VariableDeclaratorKind | K.IdentifierKind)[]): N.VariableDeclaration; + from(params: { + comments?: K.CommentKind[] | null; + declarations: (K.VariableDeclaratorKind | K.IdentifierKind)[]; + kind: "var" | "let" | "const"; + loc?: K.SourceLocationKind | null; + }): N.VariableDeclaration; +} +export interface ForInStatementBuilder { + (left: K.VariableDeclarationKind | K.ExpressionKind, right: K.ExpressionKind, body: K.StatementKind): N.ForInStatement; + from(params: { + body: K.StatementKind; + comments?: K.CommentKind[] | null; + left: K.VariableDeclarationKind | K.ExpressionKind; + loc?: K.SourceLocationKind | null; + right: K.ExpressionKind; + }): N.ForInStatement; +} +export interface DebuggerStatementBuilder { + (): N.DebuggerStatement; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.DebuggerStatement; +} +export interface FunctionDeclarationBuilder { + (id: K.IdentifierKind, params: K.PatternKind[], body: K.BlockStatementKind, generator?: boolean, expression?: boolean): N.FunctionDeclaration; + from(params: { + async?: boolean; + body: K.BlockStatementKind; + comments?: K.CommentKind[] | null; + defaults?: (K.ExpressionKind | null)[]; + expression?: boolean; + generator?: boolean; + id: K.IdentifierKind; + loc?: K.SourceLocationKind | null; + params: K.PatternKind[]; + rest?: K.IdentifierKind | null; + returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null; + typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null; + }): N.FunctionDeclaration; +} +export interface FunctionExpressionBuilder { + (id: K.IdentifierKind | null | undefined, params: K.PatternKind[], body: K.BlockStatementKind, generator?: boolean, expression?: boolean): N.FunctionExpression; + from(params: { + async?: boolean; + body: K.BlockStatementKind; + comments?: K.CommentKind[] | null; + defaults?: (K.ExpressionKind | null)[]; + expression?: boolean; + generator?: boolean; + id?: K.IdentifierKind | null; + loc?: K.SourceLocationKind | null; + params: K.PatternKind[]; + rest?: K.IdentifierKind | null; + returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null; + typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null; + }): N.FunctionExpression; +} +export interface VariableDeclaratorBuilder { + (id: K.PatternKind, init?: K.ExpressionKind | null): N.VariableDeclarator; + from(params: { + comments?: K.CommentKind[] | null; + id: K.PatternKind; + init?: K.ExpressionKind | null; + loc?: K.SourceLocationKind | null; + }): N.VariableDeclarator; +} +export interface ThisExpressionBuilder { + (): N.ThisExpression; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.ThisExpression; +} +export interface ArrayExpressionBuilder { + (elements: (K.ExpressionKind | K.SpreadElementKind | K.RestElementKind | null)[]): N.ArrayExpression; + from(params: { + comments?: K.CommentKind[] | null; + elements: (K.ExpressionKind | K.SpreadElementKind | K.RestElementKind | null)[]; + loc?: K.SourceLocationKind | null; + }): N.ArrayExpression; +} +export interface ObjectExpressionBuilder { + (properties: (K.PropertyKind | K.ObjectMethodKind | K.ObjectPropertyKind | K.SpreadPropertyKind | K.SpreadElementKind)[]): N.ObjectExpression; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + properties: (K.PropertyKind | K.ObjectMethodKind | K.ObjectPropertyKind | K.SpreadPropertyKind | K.SpreadElementKind)[]; + }): N.ObjectExpression; +} +export interface PropertyBuilder { + (kind: "init" | "get" | "set", key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, value: K.ExpressionKind | K.PatternKind): N.Property; + from(params: { + comments?: K.CommentKind[] | null; + computed?: boolean; + decorators?: K.DecoratorKind[] | null; + key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind; + kind: "init" | "get" | "set"; + loc?: K.SourceLocationKind | null; + method?: boolean; + shorthand?: boolean; + value: K.ExpressionKind | K.PatternKind; + }): N.Property; +} +export interface LiteralBuilder { + (value: string | boolean | null | number | RegExp): N.Literal; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + regex?: { + pattern: string; + flags: string; + } | null; + value: string | boolean | null | number | RegExp; + }): N.Literal; +} +export interface SequenceExpressionBuilder { + (expressions: K.ExpressionKind[]): N.SequenceExpression; + from(params: { + comments?: K.CommentKind[] | null; + expressions: K.ExpressionKind[]; + loc?: K.SourceLocationKind | null; + }): N.SequenceExpression; +} +export interface UnaryExpressionBuilder { + (operator: "-" | "+" | "!" | "~" | "typeof" | "void" | "delete", argument: K.ExpressionKind, prefix?: boolean): N.UnaryExpression; + from(params: { + argument: K.ExpressionKind; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + operator: "-" | "+" | "!" | "~" | "typeof" | "void" | "delete"; + prefix?: boolean; + }): N.UnaryExpression; +} +export interface BinaryExpressionBuilder { + (operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "in" | "instanceof" | "..", left: K.ExpressionKind, right: K.ExpressionKind): N.BinaryExpression; + from(params: { + comments?: K.CommentKind[] | null; + left: K.ExpressionKind; + loc?: K.SourceLocationKind | null; + operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "in" | "instanceof" | ".."; + right: K.ExpressionKind; + }): N.BinaryExpression; +} +export interface AssignmentExpressionBuilder { + (operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&=", left: K.PatternKind, right: K.ExpressionKind): N.AssignmentExpression; + from(params: { + comments?: K.CommentKind[] | null; + left: K.PatternKind; + loc?: K.SourceLocationKind | null; + operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&="; + right: K.ExpressionKind; + }): N.AssignmentExpression; +} +export interface UpdateExpressionBuilder { + (operator: "++" | "--", argument: K.ExpressionKind, prefix: boolean): N.UpdateExpression; + from(params: { + argument: K.ExpressionKind; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + operator: "++" | "--"; + prefix: boolean; + }): N.UpdateExpression; +} +export interface LogicalExpressionBuilder { + (operator: "||" | "&&" | "??", left: K.ExpressionKind, right: K.ExpressionKind): N.LogicalExpression; + from(params: { + comments?: K.CommentKind[] | null; + left: K.ExpressionKind; + loc?: K.SourceLocationKind | null; + operator: "||" | "&&" | "??"; + right: K.ExpressionKind; + }): N.LogicalExpression; +} +export interface ConditionalExpressionBuilder { + (test: K.ExpressionKind, consequent: K.ExpressionKind, alternate: K.ExpressionKind): N.ConditionalExpression; + from(params: { + alternate: K.ExpressionKind; + comments?: K.CommentKind[] | null; + consequent: K.ExpressionKind; + loc?: K.SourceLocationKind | null; + test: K.ExpressionKind; + }): N.ConditionalExpression; +} +export interface NewExpressionBuilder { + (callee: K.ExpressionKind, argumentsParam: (K.ExpressionKind | K.SpreadElementKind)[]): N.NewExpression; + from(params: { + arguments: (K.ExpressionKind | K.SpreadElementKind)[]; + callee: K.ExpressionKind; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.NewExpression; +} +export interface CallExpressionBuilder { + (callee: K.ExpressionKind, argumentsParam: (K.ExpressionKind | K.SpreadElementKind)[]): N.CallExpression; + from(params: { + arguments: (K.ExpressionKind | K.SpreadElementKind)[]; + callee: K.ExpressionKind; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.CallExpression; +} +export interface MemberExpressionBuilder { + (object: K.ExpressionKind, property: K.IdentifierKind | K.ExpressionKind, computed?: boolean): N.MemberExpression; + from(params: { + comments?: K.CommentKind[] | null; + computed?: boolean; + loc?: K.SourceLocationKind | null; + object: K.ExpressionKind; + property: K.IdentifierKind | K.ExpressionKind; + }): N.MemberExpression; +} +export interface RestElementBuilder { + (argument: K.PatternKind): N.RestElement; + from(params: { + argument: K.PatternKind; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null; + }): N.RestElement; +} +export interface TypeAnnotationBuilder { + (typeAnnotation: K.FlowTypeKind): N.TypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + typeAnnotation: K.FlowTypeKind; + }): N.TypeAnnotation; +} +export interface TSTypeAnnotationBuilder { + (typeAnnotation: K.TSTypeKind | K.TSTypeAnnotationKind): N.TSTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + typeAnnotation: K.TSTypeKind | K.TSTypeAnnotationKind; + }): N.TSTypeAnnotation; +} +export interface SpreadElementPatternBuilder { + (argument: K.PatternKind): N.SpreadElementPattern; + from(params: { + argument: K.PatternKind; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.SpreadElementPattern; +} +export interface ArrowFunctionExpressionBuilder { + (params: K.PatternKind[], body: K.BlockStatementKind | K.ExpressionKind, expression?: boolean): N.ArrowFunctionExpression; + from(params: { + async?: boolean; + body: K.BlockStatementKind | K.ExpressionKind; + comments?: K.CommentKind[] | null; + defaults?: (K.ExpressionKind | null)[]; + expression?: boolean; + generator?: false; + id?: null; + loc?: K.SourceLocationKind | null; + params: K.PatternKind[]; + rest?: K.IdentifierKind | null; + returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null; + typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null; + }): N.ArrowFunctionExpression; +} +export interface ForOfStatementBuilder { + (left: K.VariableDeclarationKind | K.PatternKind, right: K.ExpressionKind, body: K.StatementKind): N.ForOfStatement; + from(params: { + body: K.StatementKind; + comments?: K.CommentKind[] | null; + left: K.VariableDeclarationKind | K.PatternKind; + loc?: K.SourceLocationKind | null; + right: K.ExpressionKind; + }): N.ForOfStatement; +} +export interface YieldExpressionBuilder { + (argument: K.ExpressionKind | null, delegate?: boolean): N.YieldExpression; + from(params: { + argument: K.ExpressionKind | null; + comments?: K.CommentKind[] | null; + delegate?: boolean; + loc?: K.SourceLocationKind | null; + }): N.YieldExpression; +} +export interface GeneratorExpressionBuilder { + (body: K.ExpressionKind, blocks: K.ComprehensionBlockKind[], filter: K.ExpressionKind | null): N.GeneratorExpression; + from(params: { + blocks: K.ComprehensionBlockKind[]; + body: K.ExpressionKind; + comments?: K.CommentKind[] | null; + filter: K.ExpressionKind | null; + loc?: K.SourceLocationKind | null; + }): N.GeneratorExpression; +} +export interface ComprehensionBlockBuilder { + (left: K.PatternKind, right: K.ExpressionKind, each: boolean): N.ComprehensionBlock; + from(params: { + comments?: K.CommentKind[] | null; + each: boolean; + left: K.PatternKind; + loc?: K.SourceLocationKind | null; + right: K.ExpressionKind; + }): N.ComprehensionBlock; +} +export interface ComprehensionExpressionBuilder { + (body: K.ExpressionKind, blocks: K.ComprehensionBlockKind[], filter: K.ExpressionKind | null): N.ComprehensionExpression; + from(params: { + blocks: K.ComprehensionBlockKind[]; + body: K.ExpressionKind; + comments?: K.CommentKind[] | null; + filter: K.ExpressionKind | null; + loc?: K.SourceLocationKind | null; + }): N.ComprehensionExpression; +} +export interface ObjectPropertyBuilder { + (key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, value: K.ExpressionKind | K.PatternKind): N.ObjectProperty; + from(params: { + accessibility?: K.LiteralKind | null; + comments?: K.CommentKind[] | null; + computed?: boolean; + key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind; + loc?: K.SourceLocationKind | null; + shorthand?: boolean; + value: K.ExpressionKind | K.PatternKind; + }): N.ObjectProperty; +} +export interface PropertyPatternBuilder { + (key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, pattern: K.PatternKind): N.PropertyPattern; + from(params: { + comments?: K.CommentKind[] | null; + computed?: boolean; + key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind; + loc?: K.SourceLocationKind | null; + pattern: K.PatternKind; + }): N.PropertyPattern; +} +export interface ObjectPatternBuilder { + (properties: (K.PropertyKind | K.PropertyPatternKind | K.SpreadPropertyPatternKind | K.SpreadPropertyKind | K.ObjectPropertyKind | K.RestPropertyKind)[]): N.ObjectPattern; + from(params: { + comments?: K.CommentKind[] | null; + decorators?: K.DecoratorKind[] | null; + loc?: K.SourceLocationKind | null; + properties: (K.PropertyKind | K.PropertyPatternKind | K.SpreadPropertyPatternKind | K.SpreadPropertyKind | K.ObjectPropertyKind | K.RestPropertyKind)[]; + typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null; + }): N.ObjectPattern; +} +export interface ArrayPatternBuilder { + (elements: (K.PatternKind | K.SpreadElementKind | null)[]): N.ArrayPattern; + from(params: { + comments?: K.CommentKind[] | null; + elements: (K.PatternKind | K.SpreadElementKind | null)[]; + loc?: K.SourceLocationKind | null; + }): N.ArrayPattern; +} +export interface MethodDefinitionBuilder { + (kind: "constructor" | "method" | "get" | "set", key: K.ExpressionKind, value: K.FunctionKind, staticParam?: boolean): N.MethodDefinition; + from(params: { + comments?: K.CommentKind[] | null; + computed?: boolean; + decorators?: K.DecoratorKind[] | null; + key: K.ExpressionKind; + kind: "constructor" | "method" | "get" | "set"; + loc?: K.SourceLocationKind | null; + static?: boolean; + value: K.FunctionKind; + }): N.MethodDefinition; +} +export interface SpreadElementBuilder { + (argument: K.ExpressionKind): N.SpreadElement; + from(params: { + argument: K.ExpressionKind; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.SpreadElement; +} +export interface AssignmentPatternBuilder { + (left: K.PatternKind, right: K.ExpressionKind): N.AssignmentPattern; + from(params: { + comments?: K.CommentKind[] | null; + left: K.PatternKind; + loc?: K.SourceLocationKind | null; + right: K.ExpressionKind; + }): N.AssignmentPattern; +} +export interface ClassPropertyDefinitionBuilder { + (definition: K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind): N.ClassPropertyDefinition; + from(params: { + comments?: K.CommentKind[] | null; + definition: K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind; + loc?: K.SourceLocationKind | null; + }): N.ClassPropertyDefinition; +} +export interface ClassPropertyBuilder { + (key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, value: K.ExpressionKind | null, typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null, staticParam?: boolean): N.ClassProperty; + from(params: { + comments?: K.CommentKind[] | null; + computed?: boolean; + key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind; + loc?: K.SourceLocationKind | null; + static?: boolean; + typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null; + value: K.ExpressionKind | null; + variance?: K.VarianceKind | "plus" | "minus" | null; + }): N.ClassProperty; +} +export interface ClassBodyBuilder { + (body: (K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind | K.ClassPrivatePropertyKind | K.ClassMethodKind | K.ClassPrivateMethodKind | K.TSDeclareMethodKind | K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[]): N.ClassBody; + from(params: { + body: (K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind | K.ClassPrivatePropertyKind | K.ClassMethodKind | K.ClassPrivateMethodKind | K.TSDeclareMethodKind | K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[]; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.ClassBody; +} +export interface ClassDeclarationBuilder { + (id: K.IdentifierKind | null, body: K.ClassBodyKind, superClass?: K.ExpressionKind | null): N.ClassDeclaration; + from(params: { + body: K.ClassBodyKind; + comments?: K.CommentKind[] | null; + id: K.IdentifierKind | null; + implements?: K.ClassImplementsKind[] | K.TSExpressionWithTypeArgumentsKind[]; + loc?: K.SourceLocationKind | null; + superClass?: K.ExpressionKind | null; + superTypeParameters?: K.TypeParameterInstantiationKind | K.TSTypeParameterInstantiationKind | null; + typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null; + }): N.ClassDeclaration; +} +export interface ClassExpressionBuilder { + (id: K.IdentifierKind | null | undefined, body: K.ClassBodyKind, superClass?: K.ExpressionKind | null): N.ClassExpression; + from(params: { + body: K.ClassBodyKind; + comments?: K.CommentKind[] | null; + id?: K.IdentifierKind | null; + implements?: K.ClassImplementsKind[] | K.TSExpressionWithTypeArgumentsKind[]; + loc?: K.SourceLocationKind | null; + superClass?: K.ExpressionKind | null; + superTypeParameters?: K.TypeParameterInstantiationKind | K.TSTypeParameterInstantiationKind | null; + typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null; + }): N.ClassExpression; +} +export interface ImportSpecifierBuilder { + (imported: K.IdentifierKind, local?: K.IdentifierKind | null): N.ImportSpecifier; + from(params: { + comments?: K.CommentKind[] | null; + id?: K.IdentifierKind | null; + imported: K.IdentifierKind; + loc?: K.SourceLocationKind | null; + local?: K.IdentifierKind | null; + name?: K.IdentifierKind | null; + }): N.ImportSpecifier; +} +export interface ImportNamespaceSpecifierBuilder { + (local?: K.IdentifierKind | null): N.ImportNamespaceSpecifier; + from(params: { + comments?: K.CommentKind[] | null; + id?: K.IdentifierKind | null; + loc?: K.SourceLocationKind | null; + local?: K.IdentifierKind | null; + name?: K.IdentifierKind | null; + }): N.ImportNamespaceSpecifier; +} +export interface ImportDefaultSpecifierBuilder { + (local?: K.IdentifierKind | null): N.ImportDefaultSpecifier; + from(params: { + comments?: K.CommentKind[] | null; + id?: K.IdentifierKind | null; + loc?: K.SourceLocationKind | null; + local?: K.IdentifierKind | null; + name?: K.IdentifierKind | null; + }): N.ImportDefaultSpecifier; +} +export interface ImportDeclarationBuilder { + (specifiers: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[] | undefined, source: K.LiteralKind, importKind?: "value" | "type"): N.ImportDeclaration; + from(params: { + comments?: K.CommentKind[] | null; + importKind?: "value" | "type"; + loc?: K.SourceLocationKind | null; + source: K.LiteralKind; + specifiers?: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[]; + }): N.ImportDeclaration; +} +export interface TaggedTemplateExpressionBuilder { + (tag: K.ExpressionKind, quasi: K.TemplateLiteralKind): N.TaggedTemplateExpression; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + quasi: K.TemplateLiteralKind; + tag: K.ExpressionKind; + }): N.TaggedTemplateExpression; +} +export interface TemplateLiteralBuilder { + (quasis: K.TemplateElementKind[], expressions: K.ExpressionKind[]): N.TemplateLiteral; + from(params: { + comments?: K.CommentKind[] | null; + expressions: K.ExpressionKind[]; + loc?: K.SourceLocationKind | null; + quasis: K.TemplateElementKind[]; + }): N.TemplateLiteral; +} +export interface TemplateElementBuilder { + (value: { + cooked: string; + raw: string; + }, tail: boolean): N.TemplateElement; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + tail: boolean; + value: { + cooked: string; + raw: string; + }; + }): N.TemplateElement; +} +export interface SpreadPropertyBuilder { + (argument: K.ExpressionKind): N.SpreadProperty; + from(params: { + argument: K.ExpressionKind; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.SpreadProperty; +} +export interface SpreadPropertyPatternBuilder { + (argument: K.PatternKind): N.SpreadPropertyPattern; + from(params: { + argument: K.PatternKind; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.SpreadPropertyPattern; +} +export interface AwaitExpressionBuilder { + (argument: K.ExpressionKind | null, all?: boolean): N.AwaitExpression; + from(params: { + all?: boolean; + argument: K.ExpressionKind | null; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.AwaitExpression; +} +export interface JSXAttributeBuilder { + (name: K.JSXIdentifierKind | K.JSXNamespacedNameKind, value?: K.LiteralKind | K.JSXExpressionContainerKind | null): N.JSXAttribute; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + name: K.JSXIdentifierKind | K.JSXNamespacedNameKind; + value?: K.LiteralKind | K.JSXExpressionContainerKind | null; + }): N.JSXAttribute; +} +export interface JSXIdentifierBuilder { + (name: string): N.JSXIdentifier; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + name: string; + optional?: boolean; + typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null; + }): N.JSXIdentifier; +} +export interface JSXNamespacedNameBuilder { + (namespace: K.JSXIdentifierKind, name: K.JSXIdentifierKind): N.JSXNamespacedName; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + name: K.JSXIdentifierKind; + namespace: K.JSXIdentifierKind; + }): N.JSXNamespacedName; +} +export interface JSXExpressionContainerBuilder { + (expression: K.ExpressionKind): N.JSXExpressionContainer; + from(params: { + comments?: K.CommentKind[] | null; + expression: K.ExpressionKind; + loc?: K.SourceLocationKind | null; + }): N.JSXExpressionContainer; +} +export interface JSXMemberExpressionBuilder { + (object: K.JSXIdentifierKind | K.JSXMemberExpressionKind, property: K.JSXIdentifierKind): N.JSXMemberExpression; + from(params: { + comments?: K.CommentKind[] | null; + computed?: boolean; + loc?: K.SourceLocationKind | null; + object: K.JSXIdentifierKind | K.JSXMemberExpressionKind; + property: K.JSXIdentifierKind; + }): N.JSXMemberExpression; +} +export interface JSXSpreadAttributeBuilder { + (argument: K.ExpressionKind): N.JSXSpreadAttribute; + from(params: { + argument: K.ExpressionKind; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.JSXSpreadAttribute; +} +export interface JSXElementBuilder { + (openingElement: K.JSXOpeningElementKind, closingElement?: K.JSXClosingElementKind | null, children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[]): N.JSXElement; + from(params: { + attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[]; + children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[]; + closingElement?: K.JSXClosingElementKind | null; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + name?: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind; + openingElement: K.JSXOpeningElementKind; + selfClosing?: boolean; + }): N.JSXElement; +} +export interface JSXOpeningElementBuilder { + (name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind, attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[], selfClosing?: boolean): N.JSXOpeningElement; + from(params: { + attributes?: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[]; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind; + selfClosing?: boolean; + }): N.JSXOpeningElement; +} +export interface JSXClosingElementBuilder { + (name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind): N.JSXClosingElement; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind; + }): N.JSXClosingElement; +} +export interface JSXFragmentBuilder { + (openingElement: K.JSXOpeningFragmentKind, closingElement: K.JSXClosingFragmentKind, children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[]): N.JSXFragment; + from(params: { + children?: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[]; + closingElement: K.JSXClosingFragmentKind; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + openingElement: K.JSXOpeningFragmentKind; + }): N.JSXFragment; +} +export interface JSXTextBuilder { + (value: string): N.JSXText; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + regex?: { + pattern: string; + flags: string; + } | null; + value: string; + }): N.JSXText; +} +export interface JSXOpeningFragmentBuilder { + (): N.JSXOpeningFragment; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.JSXOpeningFragment; +} +export interface JSXClosingFragmentBuilder { + (): N.JSXClosingFragment; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.JSXClosingFragment; +} +export interface JSXEmptyExpressionBuilder { + (): N.JSXEmptyExpression; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.JSXEmptyExpression; +} +export interface JSXSpreadChildBuilder { + (expression: K.ExpressionKind): N.JSXSpreadChild; + from(params: { + comments?: K.CommentKind[] | null; + expression: K.ExpressionKind; + loc?: K.SourceLocationKind | null; + }): N.JSXSpreadChild; +} +export interface TypeParameterDeclarationBuilder { + (params: K.TypeParameterKind[]): N.TypeParameterDeclaration; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + params: K.TypeParameterKind[]; + }): N.TypeParameterDeclaration; +} +export interface TSTypeParameterDeclarationBuilder { + (params: K.TSTypeParameterKind[]): N.TSTypeParameterDeclaration; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + params: K.TSTypeParameterKind[]; + }): N.TSTypeParameterDeclaration; +} +export interface TypeParameterInstantiationBuilder { + (params: K.FlowTypeKind[]): N.TypeParameterInstantiation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + params: K.FlowTypeKind[]; + }): N.TypeParameterInstantiation; +} +export interface TSTypeParameterInstantiationBuilder { + (params: K.TSTypeKind[]): N.TSTypeParameterInstantiation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + params: K.TSTypeKind[]; + }): N.TSTypeParameterInstantiation; +} +export interface ClassImplementsBuilder { + (id: K.IdentifierKind): N.ClassImplements; + from(params: { + comments?: K.CommentKind[] | null; + id: K.IdentifierKind; + loc?: K.SourceLocationKind | null; + superClass?: K.ExpressionKind | null; + typeParameters?: K.TypeParameterInstantiationKind | null; + }): N.ClassImplements; +} +export interface TSExpressionWithTypeArgumentsBuilder { + (expression: K.IdentifierKind | K.TSQualifiedNameKind, typeParameters?: K.TSTypeParameterInstantiationKind | null): N.TSExpressionWithTypeArguments; + from(params: { + comments?: K.CommentKind[] | null; + expression: K.IdentifierKind | K.TSQualifiedNameKind; + loc?: K.SourceLocationKind | null; + typeParameters?: K.TSTypeParameterInstantiationKind | null; + }): N.TSExpressionWithTypeArguments; +} +export interface AnyTypeAnnotationBuilder { + (): N.AnyTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.AnyTypeAnnotation; +} +export interface EmptyTypeAnnotationBuilder { + (): N.EmptyTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.EmptyTypeAnnotation; +} +export interface MixedTypeAnnotationBuilder { + (): N.MixedTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.MixedTypeAnnotation; +} +export interface VoidTypeAnnotationBuilder { + (): N.VoidTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.VoidTypeAnnotation; +} +export interface NumberTypeAnnotationBuilder { + (): N.NumberTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.NumberTypeAnnotation; +} +export interface NumberLiteralTypeAnnotationBuilder { + (value: number, raw: string): N.NumberLiteralTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + raw: string; + value: number; + }): N.NumberLiteralTypeAnnotation; +} +export interface NumericLiteralTypeAnnotationBuilder { + (value: number, raw: string): N.NumericLiteralTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + raw: string; + value: number; + }): N.NumericLiteralTypeAnnotation; +} +export interface StringTypeAnnotationBuilder { + (): N.StringTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.StringTypeAnnotation; +} +export interface StringLiteralTypeAnnotationBuilder { + (value: string, raw: string): N.StringLiteralTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + raw: string; + value: string; + }): N.StringLiteralTypeAnnotation; +} +export interface BooleanTypeAnnotationBuilder { + (): N.BooleanTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.BooleanTypeAnnotation; +} +export interface BooleanLiteralTypeAnnotationBuilder { + (value: boolean, raw: string): N.BooleanLiteralTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + raw: string; + value: boolean; + }): N.BooleanLiteralTypeAnnotation; +} +export interface NullableTypeAnnotationBuilder { + (typeAnnotation: K.FlowTypeKind): N.NullableTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + typeAnnotation: K.FlowTypeKind; + }): N.NullableTypeAnnotation; +} +export interface NullLiteralTypeAnnotationBuilder { + (): N.NullLiteralTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.NullLiteralTypeAnnotation; +} +export interface NullTypeAnnotationBuilder { + (): N.NullTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.NullTypeAnnotation; +} +export interface ThisTypeAnnotationBuilder { + (): N.ThisTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.ThisTypeAnnotation; +} +export interface ExistsTypeAnnotationBuilder { + (): N.ExistsTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.ExistsTypeAnnotation; +} +export interface ExistentialTypeParamBuilder { + (): N.ExistentialTypeParam; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.ExistentialTypeParam; +} +export interface FunctionTypeAnnotationBuilder { + (params: K.FunctionTypeParamKind[], returnType: K.FlowTypeKind, rest: K.FunctionTypeParamKind | null, typeParameters: K.TypeParameterDeclarationKind | null): N.FunctionTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + params: K.FunctionTypeParamKind[]; + rest: K.FunctionTypeParamKind | null; + returnType: K.FlowTypeKind; + typeParameters: K.TypeParameterDeclarationKind | null; + }): N.FunctionTypeAnnotation; +} +export interface FunctionTypeParamBuilder { + (name: K.IdentifierKind, typeAnnotation: K.FlowTypeKind, optional: boolean): N.FunctionTypeParam; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + name: K.IdentifierKind; + optional: boolean; + typeAnnotation: K.FlowTypeKind; + }): N.FunctionTypeParam; +} +export interface ArrayTypeAnnotationBuilder { + (elementType: K.FlowTypeKind): N.ArrayTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + elementType: K.FlowTypeKind; + loc?: K.SourceLocationKind | null; + }): N.ArrayTypeAnnotation; +} +export interface ObjectTypeAnnotationBuilder { + (properties: (K.ObjectTypePropertyKind | K.ObjectTypeSpreadPropertyKind)[], indexers?: K.ObjectTypeIndexerKind[], callProperties?: K.ObjectTypeCallPropertyKind[]): N.ObjectTypeAnnotation; + from(params: { + callProperties?: K.ObjectTypeCallPropertyKind[]; + comments?: K.CommentKind[] | null; + exact?: boolean; + indexers?: K.ObjectTypeIndexerKind[]; + inexact?: boolean | undefined; + internalSlots?: K.ObjectTypeInternalSlotKind[]; + loc?: K.SourceLocationKind | null; + properties: (K.ObjectTypePropertyKind | K.ObjectTypeSpreadPropertyKind)[]; + }): N.ObjectTypeAnnotation; +} +export interface ObjectTypePropertyBuilder { + (key: K.LiteralKind | K.IdentifierKind, value: K.FlowTypeKind, optional: boolean): N.ObjectTypeProperty; + from(params: { + comments?: K.CommentKind[] | null; + key: K.LiteralKind | K.IdentifierKind; + loc?: K.SourceLocationKind | null; + optional: boolean; + value: K.FlowTypeKind; + variance?: K.VarianceKind | "plus" | "minus" | null; + }): N.ObjectTypeProperty; +} +export interface ObjectTypeSpreadPropertyBuilder { + (argument: K.FlowTypeKind): N.ObjectTypeSpreadProperty; + from(params: { + argument: K.FlowTypeKind; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.ObjectTypeSpreadProperty; +} +export interface ObjectTypeIndexerBuilder { + (id: K.IdentifierKind, key: K.FlowTypeKind, value: K.FlowTypeKind): N.ObjectTypeIndexer; + from(params: { + comments?: K.CommentKind[] | null; + id: K.IdentifierKind; + key: K.FlowTypeKind; + loc?: K.SourceLocationKind | null; + value: K.FlowTypeKind; + variance?: K.VarianceKind | "plus" | "minus" | null; + }): N.ObjectTypeIndexer; +} +export interface ObjectTypeCallPropertyBuilder { + (value: K.FunctionTypeAnnotationKind): N.ObjectTypeCallProperty; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + static?: boolean; + value: K.FunctionTypeAnnotationKind; + }): N.ObjectTypeCallProperty; +} +export interface ObjectTypeInternalSlotBuilder { + (id: K.IdentifierKind, value: K.FlowTypeKind, optional: boolean, staticParam: boolean, method: boolean): N.ObjectTypeInternalSlot; + from(params: { + comments?: K.CommentKind[] | null; + id: K.IdentifierKind; + loc?: K.SourceLocationKind | null; + method: boolean; + optional: boolean; + static: boolean; + value: K.FlowTypeKind; + }): N.ObjectTypeInternalSlot; +} +export interface VarianceBuilder { + (kind: "plus" | "minus"): N.Variance; + from(params: { + comments?: K.CommentKind[] | null; + kind: "plus" | "minus"; + loc?: K.SourceLocationKind | null; + }): N.Variance; +} +export interface QualifiedTypeIdentifierBuilder { + (qualification: K.IdentifierKind | K.QualifiedTypeIdentifierKind, id: K.IdentifierKind): N.QualifiedTypeIdentifier; + from(params: { + comments?: K.CommentKind[] | null; + id: K.IdentifierKind; + loc?: K.SourceLocationKind | null; + qualification: K.IdentifierKind | K.QualifiedTypeIdentifierKind; + }): N.QualifiedTypeIdentifier; +} +export interface GenericTypeAnnotationBuilder { + (id: K.IdentifierKind | K.QualifiedTypeIdentifierKind, typeParameters: K.TypeParameterInstantiationKind | null): N.GenericTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + id: K.IdentifierKind | K.QualifiedTypeIdentifierKind; + loc?: K.SourceLocationKind | null; + typeParameters: K.TypeParameterInstantiationKind | null; + }): N.GenericTypeAnnotation; +} +export interface MemberTypeAnnotationBuilder { + (object: K.IdentifierKind, property: K.MemberTypeAnnotationKind | K.GenericTypeAnnotationKind): N.MemberTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + object: K.IdentifierKind; + property: K.MemberTypeAnnotationKind | K.GenericTypeAnnotationKind; + }): N.MemberTypeAnnotation; +} +export interface UnionTypeAnnotationBuilder { + (types: K.FlowTypeKind[]): N.UnionTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + types: K.FlowTypeKind[]; + }): N.UnionTypeAnnotation; +} +export interface IntersectionTypeAnnotationBuilder { + (types: K.FlowTypeKind[]): N.IntersectionTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + types: K.FlowTypeKind[]; + }): N.IntersectionTypeAnnotation; +} +export interface TypeofTypeAnnotationBuilder { + (argument: K.FlowTypeKind): N.TypeofTypeAnnotation; + from(params: { + argument: K.FlowTypeKind; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.TypeofTypeAnnotation; +} +export interface TypeParameterBuilder { + (name: string, variance?: K.VarianceKind | "plus" | "minus" | null, bound?: K.TypeAnnotationKind | null): N.TypeParameter; + from(params: { + bound?: K.TypeAnnotationKind | null; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + name: string; + variance?: K.VarianceKind | "plus" | "minus" | null; + }): N.TypeParameter; +} +export interface InterfaceTypeAnnotationBuilder { + (body: K.ObjectTypeAnnotationKind, extendsParam?: K.InterfaceExtendsKind[] | null): N.InterfaceTypeAnnotation; + from(params: { + body: K.ObjectTypeAnnotationKind; + comments?: K.CommentKind[] | null; + extends?: K.InterfaceExtendsKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.InterfaceTypeAnnotation; +} +export interface InterfaceExtendsBuilder { + (id: K.IdentifierKind): N.InterfaceExtends; + from(params: { + comments?: K.CommentKind[] | null; + id: K.IdentifierKind; + loc?: K.SourceLocationKind | null; + typeParameters?: K.TypeParameterInstantiationKind | null; + }): N.InterfaceExtends; +} +export interface InterfaceDeclarationBuilder { + (id: K.IdentifierKind, body: K.ObjectTypeAnnotationKind, extendsParam: K.InterfaceExtendsKind[]): N.InterfaceDeclaration; + from(params: { + body: K.ObjectTypeAnnotationKind; + comments?: K.CommentKind[] | null; + extends: K.InterfaceExtendsKind[]; + id: K.IdentifierKind; + loc?: K.SourceLocationKind | null; + typeParameters?: K.TypeParameterDeclarationKind | null; + }): N.InterfaceDeclaration; +} +export interface DeclareInterfaceBuilder { + (id: K.IdentifierKind, body: K.ObjectTypeAnnotationKind, extendsParam: K.InterfaceExtendsKind[]): N.DeclareInterface; + from(params: { + body: K.ObjectTypeAnnotationKind; + comments?: K.CommentKind[] | null; + extends: K.InterfaceExtendsKind[]; + id: K.IdentifierKind; + loc?: K.SourceLocationKind | null; + typeParameters?: K.TypeParameterDeclarationKind | null; + }): N.DeclareInterface; +} +export interface TypeAliasBuilder { + (id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, right: K.FlowTypeKind): N.TypeAlias; + from(params: { + comments?: K.CommentKind[] | null; + id: K.IdentifierKind; + loc?: K.SourceLocationKind | null; + right: K.FlowTypeKind; + typeParameters: K.TypeParameterDeclarationKind | null; + }): N.TypeAlias; +} +export interface OpaqueTypeBuilder { + (id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, impltype: K.FlowTypeKind, supertype: K.FlowTypeKind): N.OpaqueType; + from(params: { + comments?: K.CommentKind[] | null; + id: K.IdentifierKind; + impltype: K.FlowTypeKind; + loc?: K.SourceLocationKind | null; + supertype: K.FlowTypeKind; + typeParameters: K.TypeParameterDeclarationKind | null; + }): N.OpaqueType; +} +export interface DeclareTypeAliasBuilder { + (id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null, right: K.FlowTypeKind): N.DeclareTypeAlias; + from(params: { + comments?: K.CommentKind[] | null; + id: K.IdentifierKind; + loc?: K.SourceLocationKind | null; + right: K.FlowTypeKind; + typeParameters: K.TypeParameterDeclarationKind | null; + }): N.DeclareTypeAlias; +} +export interface DeclareOpaqueTypeBuilder { + (id: K.IdentifierKind, typeParameters: K.TypeParameterDeclarationKind | null): N.DeclareOpaqueType; + from(params: { + comments?: K.CommentKind[] | null; + id: K.IdentifierKind; + loc?: K.SourceLocationKind | null; + right: K.FlowTypeKind; + typeParameters: K.TypeParameterDeclarationKind | null; + }): N.DeclareOpaqueType; +} +export interface TypeCastExpressionBuilder { + (expression: K.ExpressionKind, typeAnnotation: K.TypeAnnotationKind): N.TypeCastExpression; + from(params: { + comments?: K.CommentKind[] | null; + expression: K.ExpressionKind; + loc?: K.SourceLocationKind | null; + typeAnnotation: K.TypeAnnotationKind; + }): N.TypeCastExpression; +} +export interface TupleTypeAnnotationBuilder { + (types: K.FlowTypeKind[]): N.TupleTypeAnnotation; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + types: K.FlowTypeKind[]; + }): N.TupleTypeAnnotation; +} +export interface DeclareVariableBuilder { + (id: K.IdentifierKind): N.DeclareVariable; + from(params: { + comments?: K.CommentKind[] | null; + id: K.IdentifierKind; + loc?: K.SourceLocationKind | null; + }): N.DeclareVariable; +} +export interface DeclareFunctionBuilder { + (id: K.IdentifierKind): N.DeclareFunction; + from(params: { + comments?: K.CommentKind[] | null; + id: K.IdentifierKind; + loc?: K.SourceLocationKind | null; + }): N.DeclareFunction; +} +export interface DeclareClassBuilder { + (id: K.IdentifierKind): N.DeclareClass; + from(params: { + body: K.ObjectTypeAnnotationKind; + comments?: K.CommentKind[] | null; + extends: K.InterfaceExtendsKind[]; + id: K.IdentifierKind; + loc?: K.SourceLocationKind | null; + typeParameters?: K.TypeParameterDeclarationKind | null; + }): N.DeclareClass; +} +export interface DeclareModuleBuilder { + (id: K.IdentifierKind | K.LiteralKind, body: K.BlockStatementKind): N.DeclareModule; + from(params: { + body: K.BlockStatementKind; + comments?: K.CommentKind[] | null; + id: K.IdentifierKind | K.LiteralKind; + loc?: K.SourceLocationKind | null; + }): N.DeclareModule; +} +export interface DeclareModuleExportsBuilder { + (typeAnnotation: K.TypeAnnotationKind): N.DeclareModuleExports; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + typeAnnotation: K.TypeAnnotationKind; + }): N.DeclareModuleExports; +} +export interface DeclareExportDeclarationBuilder { + (defaultParam: boolean, declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | null, specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[], source?: K.LiteralKind | null): N.DeclareExportDeclaration; + from(params: { + comments?: K.CommentKind[] | null; + declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | null; + default: boolean; + loc?: K.SourceLocationKind | null; + source?: K.LiteralKind | null; + specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[]; + }): N.DeclareExportDeclaration; +} +export interface ExportSpecifierBuilder { + (local: K.IdentifierKind | null | undefined, exported: K.IdentifierKind): N.ExportSpecifier; + from(params: { + comments?: K.CommentKind[] | null; + exported: K.IdentifierKind; + id?: K.IdentifierKind | null; + loc?: K.SourceLocationKind | null; + local?: K.IdentifierKind | null; + name?: K.IdentifierKind | null; + }): N.ExportSpecifier; +} +export interface ExportBatchSpecifierBuilder { + (): N.ExportBatchSpecifier; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.ExportBatchSpecifier; +} +export interface DeclareExportAllDeclarationBuilder { + (source?: K.LiteralKind | null): N.DeclareExportAllDeclaration; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + source?: K.LiteralKind | null; + }): N.DeclareExportAllDeclaration; +} +export interface InferredPredicateBuilder { + (): N.InferredPredicate; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.InferredPredicate; +} +export interface DeclaredPredicateBuilder { + (value: K.ExpressionKind): N.DeclaredPredicate; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + value: K.ExpressionKind; + }): N.DeclaredPredicate; +} +export interface ExportDeclarationBuilder { + (defaultParam: boolean, declaration: K.DeclarationKind | K.ExpressionKind | null, specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[], source?: K.LiteralKind | null): N.ExportDeclaration; + from(params: { + comments?: K.CommentKind[] | null; + declaration: K.DeclarationKind | K.ExpressionKind | null; + default: boolean; + loc?: K.SourceLocationKind | null; + source?: K.LiteralKind | null; + specifiers?: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[]; + }): N.ExportDeclaration; +} +export interface BlockBuilder { + (value: string, leading?: boolean, trailing?: boolean): N.Block; + from(params: { + leading?: boolean; + loc?: K.SourceLocationKind | null; + trailing?: boolean; + value: string; + }): N.Block; +} +export interface LineBuilder { + (value: string, leading?: boolean, trailing?: boolean): N.Line; + from(params: { + leading?: boolean; + loc?: K.SourceLocationKind | null; + trailing?: boolean; + value: string; + }): N.Line; +} +export interface NoopBuilder { + (): N.Noop; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.Noop; +} +export interface DoExpressionBuilder { + (body: K.StatementKind[]): N.DoExpression; + from(params: { + body: K.StatementKind[]; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.DoExpression; +} +export interface SuperBuilder { + (): N.Super; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.Super; +} +export interface BindExpressionBuilder { + (object: K.ExpressionKind | null, callee: K.ExpressionKind): N.BindExpression; + from(params: { + callee: K.ExpressionKind; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + object: K.ExpressionKind | null; + }): N.BindExpression; +} +export interface DecoratorBuilder { + (expression: K.ExpressionKind): N.Decorator; + from(params: { + comments?: K.CommentKind[] | null; + expression: K.ExpressionKind; + loc?: K.SourceLocationKind | null; + }): N.Decorator; +} +export interface MetaPropertyBuilder { + (meta: K.IdentifierKind, property: K.IdentifierKind): N.MetaProperty; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + meta: K.IdentifierKind; + property: K.IdentifierKind; + }): N.MetaProperty; +} +export interface ParenthesizedExpressionBuilder { + (expression: K.ExpressionKind): N.ParenthesizedExpression; + from(params: { + comments?: K.CommentKind[] | null; + expression: K.ExpressionKind; + loc?: K.SourceLocationKind | null; + }): N.ParenthesizedExpression; +} +export interface ExportDefaultDeclarationBuilder { + (declaration: K.DeclarationKind | K.ExpressionKind): N.ExportDefaultDeclaration; + from(params: { + comments?: K.CommentKind[] | null; + declaration: K.DeclarationKind | K.ExpressionKind; + loc?: K.SourceLocationKind | null; + }): N.ExportDefaultDeclaration; +} +export interface ExportNamedDeclarationBuilder { + (declaration: K.DeclarationKind | null, specifiers?: K.ExportSpecifierKind[], source?: K.LiteralKind | null): N.ExportNamedDeclaration; + from(params: { + comments?: K.CommentKind[] | null; + declaration: K.DeclarationKind | null; + loc?: K.SourceLocationKind | null; + source?: K.LiteralKind | null; + specifiers?: K.ExportSpecifierKind[]; + }): N.ExportNamedDeclaration; +} +export interface ExportNamespaceSpecifierBuilder { + (exported: K.IdentifierKind): N.ExportNamespaceSpecifier; + from(params: { + comments?: K.CommentKind[] | null; + exported: K.IdentifierKind; + loc?: K.SourceLocationKind | null; + }): N.ExportNamespaceSpecifier; +} +export interface ExportDefaultSpecifierBuilder { + (exported: K.IdentifierKind): N.ExportDefaultSpecifier; + from(params: { + comments?: K.CommentKind[] | null; + exported: K.IdentifierKind; + loc?: K.SourceLocationKind | null; + }): N.ExportDefaultSpecifier; +} +export interface ExportAllDeclarationBuilder { + (exported: K.IdentifierKind | null, source: K.LiteralKind): N.ExportAllDeclaration; + from(params: { + comments?: K.CommentKind[] | null; + exported: K.IdentifierKind | null; + loc?: K.SourceLocationKind | null; + source: K.LiteralKind; + }): N.ExportAllDeclaration; +} +export interface CommentBlockBuilder { + (value: string, leading?: boolean, trailing?: boolean): N.CommentBlock; + from(params: { + leading?: boolean; + loc?: K.SourceLocationKind | null; + trailing?: boolean; + value: string; + }): N.CommentBlock; +} +export interface CommentLineBuilder { + (value: string, leading?: boolean, trailing?: boolean): N.CommentLine; + from(params: { + leading?: boolean; + loc?: K.SourceLocationKind | null; + trailing?: boolean; + value: string; + }): N.CommentLine; +} +export interface DirectiveBuilder { + (value: K.DirectiveLiteralKind): N.Directive; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + value: K.DirectiveLiteralKind; + }): N.Directive; +} +export interface DirectiveLiteralBuilder { + (value?: string): N.DirectiveLiteral; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + value?: string; + }): N.DirectiveLiteral; +} +export interface InterpreterDirectiveBuilder { + (value: string): N.InterpreterDirective; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + value: string; + }): N.InterpreterDirective; +} +export interface StringLiteralBuilder { + (value: string): N.StringLiteral; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + regex?: { + pattern: string; + flags: string; + } | null; + value: string; + }): N.StringLiteral; +} +export interface NumericLiteralBuilder { + (value: number): N.NumericLiteral; + from(params: { + comments?: K.CommentKind[] | null; + extra?: { + rawValue: number; + raw: string; + }; + loc?: K.SourceLocationKind | null; + raw?: string | null; + regex?: { + pattern: string; + flags: string; + } | null; + value: number; + }): N.NumericLiteral; +} +export interface BigIntLiteralBuilder { + (value: string | number): N.BigIntLiteral; + from(params: { + comments?: K.CommentKind[] | null; + extra?: { + rawValue: string; + raw: string; + }; + loc?: K.SourceLocationKind | null; + regex?: { + pattern: string; + flags: string; + } | null; + value: string | number; + }): N.BigIntLiteral; +} +export interface NullLiteralBuilder { + (): N.NullLiteral; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + regex?: { + pattern: string; + flags: string; + } | null; + value?: null; + }): N.NullLiteral; +} +export interface BooleanLiteralBuilder { + (value: boolean): N.BooleanLiteral; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + regex?: { + pattern: string; + flags: string; + } | null; + value: boolean; + }): N.BooleanLiteral; +} +export interface RegExpLiteralBuilder { + (pattern: string, flags: string): N.RegExpLiteral; + from(params: { + comments?: K.CommentKind[] | null; + flags: string; + loc?: K.SourceLocationKind | null; + pattern: string; + regex?: { + pattern: string; + flags: string; + } | null; + value?: RegExp; + }): N.RegExpLiteral; +} +export interface ObjectMethodBuilder { + (kind: "method" | "get" | "set", key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, params: K.PatternKind[], body: K.BlockStatementKind, computed?: boolean): N.ObjectMethod; + from(params: { + accessibility?: K.LiteralKind | null; + async?: boolean; + body: K.BlockStatementKind; + comments?: K.CommentKind[] | null; + computed?: boolean; + decorators?: K.DecoratorKind[] | null; + defaults?: (K.ExpressionKind | null)[]; + expression?: boolean; + generator?: boolean; + id?: K.IdentifierKind | null; + key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind; + kind: "method" | "get" | "set"; + loc?: K.SourceLocationKind | null; + params: K.PatternKind[]; + rest?: K.IdentifierKind | null; + returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null; + typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null; + }): N.ObjectMethod; +} +export interface ClassPrivatePropertyBuilder { + (key: K.PrivateNameKind, value?: K.ExpressionKind | null): N.ClassPrivateProperty; + from(params: { + comments?: K.CommentKind[] | null; + computed?: boolean; + key: K.PrivateNameKind; + loc?: K.SourceLocationKind | null; + static?: boolean; + typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null; + value?: K.ExpressionKind | null; + variance?: K.VarianceKind | "plus" | "minus" | null; + }): N.ClassPrivateProperty; +} +export interface ClassMethodBuilder { + (kind: "get" | "set" | "method" | "constructor" | undefined, key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind, params: K.PatternKind[], body: K.BlockStatementKind, computed?: boolean, staticParam?: boolean | null): N.ClassMethod; + from(params: { + abstract?: boolean | null; + access?: "public" | "private" | "protected" | null; + accessibility?: "public" | "private" | "protected" | null; + async?: boolean; + body: K.BlockStatementKind; + comments?: K.CommentKind[] | null; + computed?: boolean; + decorators?: K.DecoratorKind[] | null; + defaults?: (K.ExpressionKind | null)[]; + expression?: boolean; + generator?: boolean; + id?: K.IdentifierKind | null; + key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind; + kind?: "get" | "set" | "method" | "constructor"; + loc?: K.SourceLocationKind | null; + optional?: boolean | null; + params: K.PatternKind[]; + rest?: K.IdentifierKind | null; + returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null; + static?: boolean | null; + typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null; + }): N.ClassMethod; +} +export interface ClassPrivateMethodBuilder { + (key: K.PrivateNameKind, params: K.PatternKind[], body: K.BlockStatementKind, kind?: "get" | "set" | "method" | "constructor", computed?: boolean, staticParam?: boolean | null): N.ClassPrivateMethod; + from(params: { + abstract?: boolean | null; + access?: "public" | "private" | "protected" | null; + accessibility?: "public" | "private" | "protected" | null; + async?: boolean; + body: K.BlockStatementKind; + comments?: K.CommentKind[] | null; + computed?: boolean; + decorators?: K.DecoratorKind[] | null; + defaults?: (K.ExpressionKind | null)[]; + expression?: boolean; + generator?: boolean; + id?: K.IdentifierKind | null; + key: K.PrivateNameKind; + kind?: "get" | "set" | "method" | "constructor"; + loc?: K.SourceLocationKind | null; + optional?: boolean | null; + params: K.PatternKind[]; + rest?: K.IdentifierKind | null; + returnType?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null; + static?: boolean | null; + typeParameters?: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null; + }): N.ClassPrivateMethod; +} +export interface PrivateNameBuilder { + (id: K.IdentifierKind): N.PrivateName; + from(params: { + comments?: K.CommentKind[] | null; + id: K.IdentifierKind; + loc?: K.SourceLocationKind | null; + }): N.PrivateName; +} +export interface RestPropertyBuilder { + (argument: K.ExpressionKind): N.RestProperty; + from(params: { + argument: K.ExpressionKind; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.RestProperty; +} +export interface ForAwaitStatementBuilder { + (left: K.VariableDeclarationKind | K.ExpressionKind, right: K.ExpressionKind, body: K.StatementKind): N.ForAwaitStatement; + from(params: { + body: K.StatementKind; + comments?: K.CommentKind[] | null; + left: K.VariableDeclarationKind | K.ExpressionKind; + loc?: K.SourceLocationKind | null; + right: K.ExpressionKind; + }): N.ForAwaitStatement; +} +export interface ImportBuilder { + (): N.Import; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.Import; +} +export interface TSQualifiedNameBuilder { + (left: K.IdentifierKind | K.TSQualifiedNameKind, right: K.IdentifierKind | K.TSQualifiedNameKind): N.TSQualifiedName; + from(params: { + comments?: K.CommentKind[] | null; + left: K.IdentifierKind | K.TSQualifiedNameKind; + loc?: K.SourceLocationKind | null; + right: K.IdentifierKind | K.TSQualifiedNameKind; + }): N.TSQualifiedName; +} +export interface TSTypeReferenceBuilder { + (typeName: K.IdentifierKind | K.TSQualifiedNameKind, typeParameters?: K.TSTypeParameterInstantiationKind | null): N.TSTypeReference; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + typeName: K.IdentifierKind | K.TSQualifiedNameKind; + typeParameters?: K.TSTypeParameterInstantiationKind | null; + }): N.TSTypeReference; +} +export interface TSAsExpressionBuilder { + (expression: K.ExpressionKind): N.TSAsExpression; + from(params: { + comments?: K.CommentKind[] | null; + expression: K.ExpressionKind; + extra?: { + parenthesized: boolean; + } | null; + loc?: K.SourceLocationKind | null; + typeAnnotation: K.TSTypeKind; + }): N.TSAsExpression; +} +export interface TSNonNullExpressionBuilder { + (expression: K.ExpressionKind): N.TSNonNullExpression; + from(params: { + comments?: K.CommentKind[] | null; + expression: K.ExpressionKind; + loc?: K.SourceLocationKind | null; + }): N.TSNonNullExpression; +} +export interface TSAnyKeywordBuilder { + (): N.TSAnyKeyword; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.TSAnyKeyword; +} +export interface TSBooleanKeywordBuilder { + (): N.TSBooleanKeyword; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.TSBooleanKeyword; +} +export interface TSNeverKeywordBuilder { + (): N.TSNeverKeyword; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.TSNeverKeyword; +} +export interface TSNullKeywordBuilder { + (): N.TSNullKeyword; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.TSNullKeyword; +} +export interface TSNumberKeywordBuilder { + (): N.TSNumberKeyword; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.TSNumberKeyword; +} +export interface TSObjectKeywordBuilder { + (): N.TSObjectKeyword; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.TSObjectKeyword; +} +export interface TSStringKeywordBuilder { + (): N.TSStringKeyword; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.TSStringKeyword; +} +export interface TSSymbolKeywordBuilder { + (): N.TSSymbolKeyword; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.TSSymbolKeyword; +} +export interface TSUndefinedKeywordBuilder { + (): N.TSUndefinedKeyword; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.TSUndefinedKeyword; +} +export interface TSUnknownKeywordBuilder { + (): N.TSUnknownKeyword; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.TSUnknownKeyword; +} +export interface TSVoidKeywordBuilder { + (): N.TSVoidKeyword; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.TSVoidKeyword; +} +export interface TSThisTypeBuilder { + (): N.TSThisType; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.TSThisType; +} +export interface TSArrayTypeBuilder { + (elementType: K.TSTypeKind): N.TSArrayType; + from(params: { + comments?: K.CommentKind[] | null; + elementType: K.TSTypeKind; + loc?: K.SourceLocationKind | null; + }): N.TSArrayType; +} +export interface TSLiteralTypeBuilder { + (literal: K.NumericLiteralKind | K.StringLiteralKind | K.BooleanLiteralKind): N.TSLiteralType; + from(params: { + comments?: K.CommentKind[] | null; + literal: K.NumericLiteralKind | K.StringLiteralKind | K.BooleanLiteralKind; + loc?: K.SourceLocationKind | null; + }): N.TSLiteralType; +} +export interface TSUnionTypeBuilder { + (types: K.TSTypeKind[]): N.TSUnionType; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + types: K.TSTypeKind[]; + }): N.TSUnionType; +} +export interface TSIntersectionTypeBuilder { + (types: K.TSTypeKind[]): N.TSIntersectionType; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + types: K.TSTypeKind[]; + }): N.TSIntersectionType; +} +export interface TSConditionalTypeBuilder { + (checkType: K.TSTypeKind, extendsType: K.TSTypeKind, trueType: K.TSTypeKind, falseType: K.TSTypeKind): N.TSConditionalType; + from(params: { + checkType: K.TSTypeKind; + comments?: K.CommentKind[] | null; + extendsType: K.TSTypeKind; + falseType: K.TSTypeKind; + loc?: K.SourceLocationKind | null; + trueType: K.TSTypeKind; + }): N.TSConditionalType; +} +export interface TSInferTypeBuilder { + (typeParameter: K.TSTypeParameterKind): N.TSInferType; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + typeParameter: K.TSTypeParameterKind; + }): N.TSInferType; +} +export interface TSTypeParameterBuilder { + (name: string, constraint?: K.TSTypeKind | undefined, defaultParam?: K.TSTypeKind | undefined): N.TSTypeParameter; + from(params: { + comments?: K.CommentKind[] | null; + constraint?: K.TSTypeKind | undefined; + default?: K.TSTypeKind | undefined; + loc?: K.SourceLocationKind | null; + name: string; + optional?: boolean; + typeAnnotation?: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null; + }): N.TSTypeParameter; +} +export interface TSParenthesizedTypeBuilder { + (typeAnnotation: K.TSTypeKind): N.TSParenthesizedType; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + typeAnnotation: K.TSTypeKind; + }): N.TSParenthesizedType; +} +export interface TSFunctionTypeBuilder { + (parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[]): N.TSFunctionType; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[]; + typeAnnotation?: K.TSTypeAnnotationKind | null; + typeParameters?: K.TSTypeParameterDeclarationKind | null | undefined; + }): N.TSFunctionType; +} +export interface TSConstructorTypeBuilder { + (parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[]): N.TSConstructorType; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[]; + typeAnnotation?: K.TSTypeAnnotationKind | null; + typeParameters?: K.TSTypeParameterDeclarationKind | null | undefined; + }): N.TSConstructorType; +} +export interface TSDeclareFunctionBuilder { + (id: K.IdentifierKind | null | undefined, params: K.PatternKind[], returnType?: K.TSTypeAnnotationKind | K.NoopKind | null): N.TSDeclareFunction; + from(params: { + async?: boolean; + comments?: K.CommentKind[] | null; + declare?: boolean; + generator?: boolean; + id?: K.IdentifierKind | null; + loc?: K.SourceLocationKind | null; + params: K.PatternKind[]; + returnType?: K.TSTypeAnnotationKind | K.NoopKind | null; + typeParameters?: K.TSTypeParameterDeclarationKind | null | undefined; + }): N.TSDeclareFunction; +} +export interface TSDeclareMethodBuilder { + (key: K.IdentifierKind | K.StringLiteralKind | K.NumericLiteralKind | K.ExpressionKind, params: K.PatternKind[], returnType?: K.TSTypeAnnotationKind | K.NoopKind | null): N.TSDeclareMethod; + from(params: { + abstract?: boolean; + access?: "public" | "private" | "protected" | undefined; + accessibility?: "public" | "private" | "protected" | undefined; + async?: boolean; + comments?: K.CommentKind[] | null; + computed?: boolean; + decorators?: K.DecoratorKind[] | null; + generator?: boolean; + key: K.IdentifierKind | K.StringLiteralKind | K.NumericLiteralKind | K.ExpressionKind; + kind?: "get" | "set" | "method" | "constructor"; + loc?: K.SourceLocationKind | null; + optional?: boolean; + params: K.PatternKind[]; + returnType?: K.TSTypeAnnotationKind | K.NoopKind | null; + static?: boolean; + typeParameters?: K.TSTypeParameterDeclarationKind | null | undefined; + }): N.TSDeclareMethod; +} +export interface TSMappedTypeBuilder { + (typeParameter: K.TSTypeParameterKind, typeAnnotation?: K.TSTypeKind | null): N.TSMappedType; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + optional?: boolean | "+" | "-"; + readonly?: boolean | "+" | "-"; + typeAnnotation?: K.TSTypeKind | null; + typeParameter: K.TSTypeParameterKind; + }): N.TSMappedType; +} +export interface TSTupleTypeBuilder { + (elementTypes: K.TSTypeKind[]): N.TSTupleType; + from(params: { + comments?: K.CommentKind[] | null; + elementTypes: K.TSTypeKind[]; + loc?: K.SourceLocationKind | null; + }): N.TSTupleType; +} +export interface TSRestTypeBuilder { + (typeAnnotation: K.TSTypeKind): N.TSRestType; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + typeAnnotation: K.TSTypeKind; + }): N.TSRestType; +} +export interface TSOptionalTypeBuilder { + (typeAnnotation: K.TSTypeKind): N.TSOptionalType; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + typeAnnotation: K.TSTypeKind; + }): N.TSOptionalType; +} +export interface TSIndexedAccessTypeBuilder { + (objectType: K.TSTypeKind, indexType: K.TSTypeKind): N.TSIndexedAccessType; + from(params: { + comments?: K.CommentKind[] | null; + indexType: K.TSTypeKind; + loc?: K.SourceLocationKind | null; + objectType: K.TSTypeKind; + }): N.TSIndexedAccessType; +} +export interface TSTypeOperatorBuilder { + (operator: string): N.TSTypeOperator; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + operator: string; + typeAnnotation: K.TSTypeKind; + }): N.TSTypeOperator; +} +export interface TSIndexSignatureBuilder { + (parameters: K.IdentifierKind[], typeAnnotation?: K.TSTypeAnnotationKind | null): N.TSIndexSignature; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + parameters: K.IdentifierKind[]; + readonly?: boolean; + typeAnnotation?: K.TSTypeAnnotationKind | null; + }): N.TSIndexSignature; +} +export interface TSPropertySignatureBuilder { + (key: K.ExpressionKind, typeAnnotation?: K.TSTypeAnnotationKind | null, optional?: boolean): N.TSPropertySignature; + from(params: { + comments?: K.CommentKind[] | null; + computed?: boolean; + initializer?: K.ExpressionKind | null; + key: K.ExpressionKind; + loc?: K.SourceLocationKind | null; + optional?: boolean; + readonly?: boolean; + typeAnnotation?: K.TSTypeAnnotationKind | null; + }): N.TSPropertySignature; +} +export interface TSMethodSignatureBuilder { + (key: K.ExpressionKind, parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[], typeAnnotation?: K.TSTypeAnnotationKind | null): N.TSMethodSignature; + from(params: { + comments?: K.CommentKind[] | null; + computed?: boolean; + key: K.ExpressionKind; + loc?: K.SourceLocationKind | null; + optional?: boolean; + parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[]; + typeAnnotation?: K.TSTypeAnnotationKind | null; + typeParameters?: K.TSTypeParameterDeclarationKind | null | undefined; + }): N.TSMethodSignature; +} +export interface TSTypePredicateBuilder { + (parameterName: K.IdentifierKind | K.TSThisTypeKind, typeAnnotation: K.TSTypeAnnotationKind): N.TSTypePredicate; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + parameterName: K.IdentifierKind | K.TSThisTypeKind; + typeAnnotation: K.TSTypeAnnotationKind; + }): N.TSTypePredicate; +} +export interface TSCallSignatureDeclarationBuilder { + (parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[], typeAnnotation?: K.TSTypeAnnotationKind | null): N.TSCallSignatureDeclaration; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[]; + typeAnnotation?: K.TSTypeAnnotationKind | null; + typeParameters?: K.TSTypeParameterDeclarationKind | null | undefined; + }): N.TSCallSignatureDeclaration; +} +export interface TSConstructSignatureDeclarationBuilder { + (parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[], typeAnnotation?: K.TSTypeAnnotationKind | null): N.TSConstructSignatureDeclaration; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[]; + typeAnnotation?: K.TSTypeAnnotationKind | null; + typeParameters?: K.TSTypeParameterDeclarationKind | null | undefined; + }): N.TSConstructSignatureDeclaration; +} +export interface TSEnumMemberBuilder { + (id: K.IdentifierKind | K.StringLiteralKind, initializer?: K.ExpressionKind | null): N.TSEnumMember; + from(params: { + comments?: K.CommentKind[] | null; + id: K.IdentifierKind | K.StringLiteralKind; + initializer?: K.ExpressionKind | null; + loc?: K.SourceLocationKind | null; + }): N.TSEnumMember; +} +export interface TSTypeQueryBuilder { + (exprName: K.IdentifierKind | K.TSQualifiedNameKind): N.TSTypeQuery; + from(params: { + comments?: K.CommentKind[] | null; + exprName: K.IdentifierKind | K.TSQualifiedNameKind; + loc?: K.SourceLocationKind | null; + }): N.TSTypeQuery; +} +export interface TSTypeLiteralBuilder { + (members: (K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[]): N.TSTypeLiteral; + from(params: { + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + members: (K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[]; + }): N.TSTypeLiteral; +} +export interface TSTypeAssertionBuilder { + (typeAnnotation: K.TSTypeKind, expression: K.ExpressionKind): N.TSTypeAssertion; + from(params: { + comments?: K.CommentKind[] | null; + expression: K.ExpressionKind; + extra?: { + parenthesized: boolean; + } | null; + loc?: K.SourceLocationKind | null; + typeAnnotation: K.TSTypeKind; + }): N.TSTypeAssertion; +} +export interface TSEnumDeclarationBuilder { + (id: K.IdentifierKind, members: K.TSEnumMemberKind[]): N.TSEnumDeclaration; + from(params: { + comments?: K.CommentKind[] | null; + const?: boolean; + declare?: boolean; + id: K.IdentifierKind; + initializer?: K.ExpressionKind | null; + loc?: K.SourceLocationKind | null; + members: K.TSEnumMemberKind[]; + }): N.TSEnumDeclaration; +} +export interface TSTypeAliasDeclarationBuilder { + (id: K.IdentifierKind, typeAnnotation: K.TSTypeKind): N.TSTypeAliasDeclaration; + from(params: { + comments?: K.CommentKind[] | null; + declare?: boolean; + id: K.IdentifierKind; + loc?: K.SourceLocationKind | null; + typeAnnotation: K.TSTypeKind; + typeParameters?: K.TSTypeParameterDeclarationKind | null | undefined; + }): N.TSTypeAliasDeclaration; +} +export interface TSModuleBlockBuilder { + (body: K.StatementKind[]): N.TSModuleBlock; + from(params: { + body: K.StatementKind[]; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.TSModuleBlock; +} +export interface TSModuleDeclarationBuilder { + (id: K.StringLiteralKind | K.IdentifierKind | K.TSQualifiedNameKind, body?: K.TSModuleBlockKind | K.TSModuleDeclarationKind | null): N.TSModuleDeclaration; + from(params: { + body?: K.TSModuleBlockKind | K.TSModuleDeclarationKind | null; + comments?: K.CommentKind[] | null; + declare?: boolean; + global?: boolean; + id: K.StringLiteralKind | K.IdentifierKind | K.TSQualifiedNameKind; + loc?: K.SourceLocationKind | null; + }): N.TSModuleDeclaration; +} +export interface TSImportEqualsDeclarationBuilder { + (id: K.IdentifierKind, moduleReference: K.IdentifierKind | K.TSQualifiedNameKind | K.TSExternalModuleReferenceKind): N.TSImportEqualsDeclaration; + from(params: { + comments?: K.CommentKind[] | null; + id: K.IdentifierKind; + isExport?: boolean; + loc?: K.SourceLocationKind | null; + moduleReference: K.IdentifierKind | K.TSQualifiedNameKind | K.TSExternalModuleReferenceKind; + }): N.TSImportEqualsDeclaration; +} +export interface TSExternalModuleReferenceBuilder { + (expression: K.StringLiteralKind): N.TSExternalModuleReference; + from(params: { + comments?: K.CommentKind[] | null; + expression: K.StringLiteralKind; + loc?: K.SourceLocationKind | null; + }): N.TSExternalModuleReference; +} +export interface TSExportAssignmentBuilder { + (expression: K.ExpressionKind): N.TSExportAssignment; + from(params: { + comments?: K.CommentKind[] | null; + expression: K.ExpressionKind; + loc?: K.SourceLocationKind | null; + }): N.TSExportAssignment; +} +export interface TSNamespaceExportDeclarationBuilder { + (id: K.IdentifierKind): N.TSNamespaceExportDeclaration; + from(params: { + comments?: K.CommentKind[] | null; + id: K.IdentifierKind; + loc?: K.SourceLocationKind | null; + }): N.TSNamespaceExportDeclaration; +} +export interface TSInterfaceBodyBuilder { + (body: (K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[]): N.TSInterfaceBody; + from(params: { + body: (K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[]; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + }): N.TSInterfaceBody; +} +export interface TSInterfaceDeclarationBuilder { + (id: K.IdentifierKind | K.TSQualifiedNameKind, body: K.TSInterfaceBodyKind): N.TSInterfaceDeclaration; + from(params: { + body: K.TSInterfaceBodyKind; + comments?: K.CommentKind[] | null; + declare?: boolean; + extends?: K.TSExpressionWithTypeArgumentsKind[] | null; + id: K.IdentifierKind | K.TSQualifiedNameKind; + loc?: K.SourceLocationKind | null; + typeParameters?: K.TSTypeParameterDeclarationKind | null | undefined; + }): N.TSInterfaceDeclaration; +} +export interface TSParameterPropertyBuilder { + (parameter: K.IdentifierKind | K.AssignmentPatternKind): N.TSParameterProperty; + from(params: { + accessibility?: "public" | "private" | "protected" | undefined; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + parameter: K.IdentifierKind | K.AssignmentPatternKind; + readonly?: boolean; + }): N.TSParameterProperty; +} +export interface OptionalMemberExpressionBuilder { + (object: K.ExpressionKind, property: K.IdentifierKind | K.ExpressionKind, computed?: boolean, optional?: boolean): N.OptionalMemberExpression; + from(params: { + comments?: K.CommentKind[] | null; + computed?: boolean; + loc?: K.SourceLocationKind | null; + object: K.ExpressionKind; + optional?: boolean; + property: K.IdentifierKind | K.ExpressionKind; + }): N.OptionalMemberExpression; +} +export interface OptionalCallExpressionBuilder { + (callee: K.ExpressionKind, argumentsParam: (K.ExpressionKind | K.SpreadElementKind)[], optional?: boolean): N.OptionalCallExpression; + from(params: { + arguments: (K.ExpressionKind | K.SpreadElementKind)[]; + callee: K.ExpressionKind; + comments?: K.CommentKind[] | null; + loc?: K.SourceLocationKind | null; + optional?: boolean; + }): N.OptionalCallExpression; +} +export interface Builders { + file: FileBuilder; + program: ProgramBuilder; + identifier: IdentifierBuilder; + blockStatement: BlockStatementBuilder; + emptyStatement: EmptyStatementBuilder; + expressionStatement: ExpressionStatementBuilder; + ifStatement: IfStatementBuilder; + labeledStatement: LabeledStatementBuilder; + breakStatement: BreakStatementBuilder; + continueStatement: ContinueStatementBuilder; + withStatement: WithStatementBuilder; + switchStatement: SwitchStatementBuilder; + switchCase: SwitchCaseBuilder; + returnStatement: ReturnStatementBuilder; + throwStatement: ThrowStatementBuilder; + tryStatement: TryStatementBuilder; + catchClause: CatchClauseBuilder; + whileStatement: WhileStatementBuilder; + doWhileStatement: DoWhileStatementBuilder; + forStatement: ForStatementBuilder; + variableDeclaration: VariableDeclarationBuilder; + forInStatement: ForInStatementBuilder; + debuggerStatement: DebuggerStatementBuilder; + functionDeclaration: FunctionDeclarationBuilder; + functionExpression: FunctionExpressionBuilder; + variableDeclarator: VariableDeclaratorBuilder; + thisExpression: ThisExpressionBuilder; + arrayExpression: ArrayExpressionBuilder; + objectExpression: ObjectExpressionBuilder; + property: PropertyBuilder; + literal: LiteralBuilder; + sequenceExpression: SequenceExpressionBuilder; + unaryExpression: UnaryExpressionBuilder; + binaryExpression: BinaryExpressionBuilder; + assignmentExpression: AssignmentExpressionBuilder; + updateExpression: UpdateExpressionBuilder; + logicalExpression: LogicalExpressionBuilder; + conditionalExpression: ConditionalExpressionBuilder; + newExpression: NewExpressionBuilder; + callExpression: CallExpressionBuilder; + memberExpression: MemberExpressionBuilder; + restElement: RestElementBuilder; + typeAnnotation: TypeAnnotationBuilder; + tsTypeAnnotation: TSTypeAnnotationBuilder; + spreadElementPattern: SpreadElementPatternBuilder; + arrowFunctionExpression: ArrowFunctionExpressionBuilder; + forOfStatement: ForOfStatementBuilder; + yieldExpression: YieldExpressionBuilder; + generatorExpression: GeneratorExpressionBuilder; + comprehensionBlock: ComprehensionBlockBuilder; + comprehensionExpression: ComprehensionExpressionBuilder; + objectProperty: ObjectPropertyBuilder; + propertyPattern: PropertyPatternBuilder; + objectPattern: ObjectPatternBuilder; + arrayPattern: ArrayPatternBuilder; + methodDefinition: MethodDefinitionBuilder; + spreadElement: SpreadElementBuilder; + assignmentPattern: AssignmentPatternBuilder; + classPropertyDefinition: ClassPropertyDefinitionBuilder; + classProperty: ClassPropertyBuilder; + classBody: ClassBodyBuilder; + classDeclaration: ClassDeclarationBuilder; + classExpression: ClassExpressionBuilder; + importSpecifier: ImportSpecifierBuilder; + importNamespaceSpecifier: ImportNamespaceSpecifierBuilder; + importDefaultSpecifier: ImportDefaultSpecifierBuilder; + importDeclaration: ImportDeclarationBuilder; + taggedTemplateExpression: TaggedTemplateExpressionBuilder; + templateLiteral: TemplateLiteralBuilder; + templateElement: TemplateElementBuilder; + spreadProperty: SpreadPropertyBuilder; + spreadPropertyPattern: SpreadPropertyPatternBuilder; + awaitExpression: AwaitExpressionBuilder; + jsxAttribute: JSXAttributeBuilder; + jsxIdentifier: JSXIdentifierBuilder; + jsxNamespacedName: JSXNamespacedNameBuilder; + jsxExpressionContainer: JSXExpressionContainerBuilder; + jsxMemberExpression: JSXMemberExpressionBuilder; + jsxSpreadAttribute: JSXSpreadAttributeBuilder; + jsxElement: JSXElementBuilder; + jsxOpeningElement: JSXOpeningElementBuilder; + jsxClosingElement: JSXClosingElementBuilder; + jsxFragment: JSXFragmentBuilder; + jsxText: JSXTextBuilder; + jsxOpeningFragment: JSXOpeningFragmentBuilder; + jsxClosingFragment: JSXClosingFragmentBuilder; + jsxEmptyExpression: JSXEmptyExpressionBuilder; + jsxSpreadChild: JSXSpreadChildBuilder; + typeParameterDeclaration: TypeParameterDeclarationBuilder; + tsTypeParameterDeclaration: TSTypeParameterDeclarationBuilder; + typeParameterInstantiation: TypeParameterInstantiationBuilder; + tsTypeParameterInstantiation: TSTypeParameterInstantiationBuilder; + classImplements: ClassImplementsBuilder; + tsExpressionWithTypeArguments: TSExpressionWithTypeArgumentsBuilder; + anyTypeAnnotation: AnyTypeAnnotationBuilder; + emptyTypeAnnotation: EmptyTypeAnnotationBuilder; + mixedTypeAnnotation: MixedTypeAnnotationBuilder; + voidTypeAnnotation: VoidTypeAnnotationBuilder; + numberTypeAnnotation: NumberTypeAnnotationBuilder; + numberLiteralTypeAnnotation: NumberLiteralTypeAnnotationBuilder; + numericLiteralTypeAnnotation: NumericLiteralTypeAnnotationBuilder; + stringTypeAnnotation: StringTypeAnnotationBuilder; + stringLiteralTypeAnnotation: StringLiteralTypeAnnotationBuilder; + booleanTypeAnnotation: BooleanTypeAnnotationBuilder; + booleanLiteralTypeAnnotation: BooleanLiteralTypeAnnotationBuilder; + nullableTypeAnnotation: NullableTypeAnnotationBuilder; + nullLiteralTypeAnnotation: NullLiteralTypeAnnotationBuilder; + nullTypeAnnotation: NullTypeAnnotationBuilder; + thisTypeAnnotation: ThisTypeAnnotationBuilder; + existsTypeAnnotation: ExistsTypeAnnotationBuilder; + existentialTypeParam: ExistentialTypeParamBuilder; + functionTypeAnnotation: FunctionTypeAnnotationBuilder; + functionTypeParam: FunctionTypeParamBuilder; + arrayTypeAnnotation: ArrayTypeAnnotationBuilder; + objectTypeAnnotation: ObjectTypeAnnotationBuilder; + objectTypeProperty: ObjectTypePropertyBuilder; + objectTypeSpreadProperty: ObjectTypeSpreadPropertyBuilder; + objectTypeIndexer: ObjectTypeIndexerBuilder; + objectTypeCallProperty: ObjectTypeCallPropertyBuilder; + objectTypeInternalSlot: ObjectTypeInternalSlotBuilder; + variance: VarianceBuilder; + qualifiedTypeIdentifier: QualifiedTypeIdentifierBuilder; + genericTypeAnnotation: GenericTypeAnnotationBuilder; + memberTypeAnnotation: MemberTypeAnnotationBuilder; + unionTypeAnnotation: UnionTypeAnnotationBuilder; + intersectionTypeAnnotation: IntersectionTypeAnnotationBuilder; + typeofTypeAnnotation: TypeofTypeAnnotationBuilder; + typeParameter: TypeParameterBuilder; + interfaceTypeAnnotation: InterfaceTypeAnnotationBuilder; + interfaceExtends: InterfaceExtendsBuilder; + interfaceDeclaration: InterfaceDeclarationBuilder; + declareInterface: DeclareInterfaceBuilder; + typeAlias: TypeAliasBuilder; + opaqueType: OpaqueTypeBuilder; + declareTypeAlias: DeclareTypeAliasBuilder; + declareOpaqueType: DeclareOpaqueTypeBuilder; + typeCastExpression: TypeCastExpressionBuilder; + tupleTypeAnnotation: TupleTypeAnnotationBuilder; + declareVariable: DeclareVariableBuilder; + declareFunction: DeclareFunctionBuilder; + declareClass: DeclareClassBuilder; + declareModule: DeclareModuleBuilder; + declareModuleExports: DeclareModuleExportsBuilder; + declareExportDeclaration: DeclareExportDeclarationBuilder; + exportSpecifier: ExportSpecifierBuilder; + exportBatchSpecifier: ExportBatchSpecifierBuilder; + declareExportAllDeclaration: DeclareExportAllDeclarationBuilder; + inferredPredicate: InferredPredicateBuilder; + declaredPredicate: DeclaredPredicateBuilder; + exportDeclaration: ExportDeclarationBuilder; + block: BlockBuilder; + line: LineBuilder; + noop: NoopBuilder; + doExpression: DoExpressionBuilder; + super: SuperBuilder; + bindExpression: BindExpressionBuilder; + decorator: DecoratorBuilder; + metaProperty: MetaPropertyBuilder; + parenthesizedExpression: ParenthesizedExpressionBuilder; + exportDefaultDeclaration: ExportDefaultDeclarationBuilder; + exportNamedDeclaration: ExportNamedDeclarationBuilder; + exportNamespaceSpecifier: ExportNamespaceSpecifierBuilder; + exportDefaultSpecifier: ExportDefaultSpecifierBuilder; + exportAllDeclaration: ExportAllDeclarationBuilder; + commentBlock: CommentBlockBuilder; + commentLine: CommentLineBuilder; + directive: DirectiveBuilder; + directiveLiteral: DirectiveLiteralBuilder; + interpreterDirective: InterpreterDirectiveBuilder; + stringLiteral: StringLiteralBuilder; + numericLiteral: NumericLiteralBuilder; + bigIntLiteral: BigIntLiteralBuilder; + nullLiteral: NullLiteralBuilder; + booleanLiteral: BooleanLiteralBuilder; + regExpLiteral: RegExpLiteralBuilder; + objectMethod: ObjectMethodBuilder; + classPrivateProperty: ClassPrivatePropertyBuilder; + classMethod: ClassMethodBuilder; + classPrivateMethod: ClassPrivateMethodBuilder; + privateName: PrivateNameBuilder; + restProperty: RestPropertyBuilder; + forAwaitStatement: ForAwaitStatementBuilder; + import: ImportBuilder; + tsQualifiedName: TSQualifiedNameBuilder; + tsTypeReference: TSTypeReferenceBuilder; + tsAsExpression: TSAsExpressionBuilder; + tsNonNullExpression: TSNonNullExpressionBuilder; + tsAnyKeyword: TSAnyKeywordBuilder; + tsBooleanKeyword: TSBooleanKeywordBuilder; + tsNeverKeyword: TSNeverKeywordBuilder; + tsNullKeyword: TSNullKeywordBuilder; + tsNumberKeyword: TSNumberKeywordBuilder; + tsObjectKeyword: TSObjectKeywordBuilder; + tsStringKeyword: TSStringKeywordBuilder; + tsSymbolKeyword: TSSymbolKeywordBuilder; + tsUndefinedKeyword: TSUndefinedKeywordBuilder; + tsUnknownKeyword: TSUnknownKeywordBuilder; + tsVoidKeyword: TSVoidKeywordBuilder; + tsThisType: TSThisTypeBuilder; + tsArrayType: TSArrayTypeBuilder; + tsLiteralType: TSLiteralTypeBuilder; + tsUnionType: TSUnionTypeBuilder; + tsIntersectionType: TSIntersectionTypeBuilder; + tsConditionalType: TSConditionalTypeBuilder; + tsInferType: TSInferTypeBuilder; + tsTypeParameter: TSTypeParameterBuilder; + tsParenthesizedType: TSParenthesizedTypeBuilder; + tsFunctionType: TSFunctionTypeBuilder; + tsConstructorType: TSConstructorTypeBuilder; + tsDeclareFunction: TSDeclareFunctionBuilder; + tsDeclareMethod: TSDeclareMethodBuilder; + tsMappedType: TSMappedTypeBuilder; + tsTupleType: TSTupleTypeBuilder; + tsRestType: TSRestTypeBuilder; + tsOptionalType: TSOptionalTypeBuilder; + tsIndexedAccessType: TSIndexedAccessTypeBuilder; + tsTypeOperator: TSTypeOperatorBuilder; + tsIndexSignature: TSIndexSignatureBuilder; + tsPropertySignature: TSPropertySignatureBuilder; + tsMethodSignature: TSMethodSignatureBuilder; + tsTypePredicate: TSTypePredicateBuilder; + tsCallSignatureDeclaration: TSCallSignatureDeclarationBuilder; + tsConstructSignatureDeclaration: TSConstructSignatureDeclarationBuilder; + tsEnumMember: TSEnumMemberBuilder; + tsTypeQuery: TSTypeQueryBuilder; + tsTypeLiteral: TSTypeLiteralBuilder; + tsTypeAssertion: TSTypeAssertionBuilder; + tsEnumDeclaration: TSEnumDeclarationBuilder; + tsTypeAliasDeclaration: TSTypeAliasDeclarationBuilder; + tsModuleBlock: TSModuleBlockBuilder; + tsModuleDeclaration: TSModuleDeclarationBuilder; + tsImportEqualsDeclaration: TSImportEqualsDeclarationBuilder; + tsExternalModuleReference: TSExternalModuleReferenceBuilder; + tsExportAssignment: TSExportAssignmentBuilder; + tsNamespaceExportDeclaration: TSNamespaceExportDeclarationBuilder; + tsInterfaceBody: TSInterfaceBodyBuilder; + tsInterfaceDeclaration: TSInterfaceDeclarationBuilder; + tsParameterProperty: TSParameterPropertyBuilder; + optionalMemberExpression: OptionalMemberExpressionBuilder; + optionalCallExpression: OptionalCallExpressionBuilder; + [builderName: string]: any; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/builders.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/builders.js" new file mode 100644 index 0000000000000000000000000000000000000000..c8ad2e549bdc6801e0d1c80b0308d4b9bd4985ce --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/builders.js" @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/kinds.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/kinds.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..ccac2da05584312a15c8989ebb9683469bd79ee8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/kinds.d.ts" @@ -0,0 +1,259 @@ +import * as N from "./nodes"; +export declare type PrintableKind = N.File | N.Program | N.Identifier | N.BlockStatement | N.EmptyStatement | N.ExpressionStatement | N.IfStatement | N.LabeledStatement | N.BreakStatement | N.ContinueStatement | N.WithStatement | N.SwitchStatement | N.SwitchCase | N.ReturnStatement | N.ThrowStatement | N.TryStatement | N.CatchClause | N.WhileStatement | N.DoWhileStatement | N.ForStatement | N.VariableDeclaration | N.ForInStatement | N.DebuggerStatement | N.FunctionDeclaration | N.FunctionExpression | N.VariableDeclarator | N.ThisExpression | N.ArrayExpression | N.ObjectExpression | N.Property | N.Literal | N.SequenceExpression | N.UnaryExpression | N.BinaryExpression | N.AssignmentExpression | N.UpdateExpression | N.LogicalExpression | N.ConditionalExpression | N.NewExpression | N.CallExpression | N.MemberExpression | N.RestElement | N.TypeAnnotation | N.TSTypeAnnotation | N.SpreadElementPattern | N.ArrowFunctionExpression | N.ForOfStatement | N.YieldExpression | N.GeneratorExpression | N.ComprehensionBlock | N.ComprehensionExpression | N.ObjectProperty | N.PropertyPattern | N.ObjectPattern | N.ArrayPattern | N.MethodDefinition | N.SpreadElement | N.AssignmentPattern | N.ClassPropertyDefinition | N.ClassProperty | N.ClassBody | N.ClassDeclaration | N.ClassExpression | N.ImportSpecifier | N.ImportNamespaceSpecifier | N.ImportDefaultSpecifier | N.ImportDeclaration | N.TaggedTemplateExpression | N.TemplateLiteral | N.TemplateElement | N.SpreadProperty | N.SpreadPropertyPattern | N.AwaitExpression | N.JSXAttribute | N.JSXIdentifier | N.JSXNamespacedName | N.JSXExpressionContainer | N.JSXMemberExpression | N.JSXSpreadAttribute | N.JSXElement | N.JSXOpeningElement | N.JSXClosingElement | N.JSXFragment | N.JSXText | N.JSXOpeningFragment | N.JSXClosingFragment | N.JSXEmptyExpression | N.JSXSpreadChild | N.TypeParameterDeclaration | N.TSTypeParameterDeclaration | N.TypeParameterInstantiation | N.TSTypeParameterInstantiation | N.ClassImplements | N.TSExpressionWithTypeArguments | N.AnyTypeAnnotation | N.EmptyTypeAnnotation | N.MixedTypeAnnotation | N.VoidTypeAnnotation | N.NumberTypeAnnotation | N.NumberLiteralTypeAnnotation | N.NumericLiteralTypeAnnotation | N.StringTypeAnnotation | N.StringLiteralTypeAnnotation | N.BooleanTypeAnnotation | N.BooleanLiteralTypeAnnotation | N.NullableTypeAnnotation | N.NullLiteralTypeAnnotation | N.NullTypeAnnotation | N.ThisTypeAnnotation | N.ExistsTypeAnnotation | N.ExistentialTypeParam | N.FunctionTypeAnnotation | N.FunctionTypeParam | N.ArrayTypeAnnotation | N.ObjectTypeAnnotation | N.ObjectTypeProperty | N.ObjectTypeSpreadProperty | N.ObjectTypeIndexer | N.ObjectTypeCallProperty | N.ObjectTypeInternalSlot | N.Variance | N.QualifiedTypeIdentifier | N.GenericTypeAnnotation | N.MemberTypeAnnotation | N.UnionTypeAnnotation | N.IntersectionTypeAnnotation | N.TypeofTypeAnnotation | N.TypeParameter | N.InterfaceTypeAnnotation | N.InterfaceExtends | N.InterfaceDeclaration | N.DeclareInterface | N.TypeAlias | N.OpaqueType | N.DeclareTypeAlias | N.DeclareOpaqueType | N.TypeCastExpression | N.TupleTypeAnnotation | N.DeclareVariable | N.DeclareFunction | N.DeclareClass | N.DeclareModule | N.DeclareModuleExports | N.DeclareExportDeclaration | N.ExportSpecifier | N.ExportBatchSpecifier | N.DeclareExportAllDeclaration | N.InferredPredicate | N.DeclaredPredicate | N.ExportDeclaration | N.Block | N.Line | N.Noop | N.DoExpression | N.Super | N.BindExpression | N.Decorator | N.MetaProperty | N.ParenthesizedExpression | N.ExportDefaultDeclaration | N.ExportNamedDeclaration | N.ExportNamespaceSpecifier | N.ExportDefaultSpecifier | N.ExportAllDeclaration | N.CommentBlock | N.CommentLine | N.Directive | N.DirectiveLiteral | N.InterpreterDirective | N.StringLiteral | N.NumericLiteral | N.BigIntLiteral | N.NullLiteral | N.BooleanLiteral | N.RegExpLiteral | N.ObjectMethod | N.ClassPrivateProperty | N.ClassMethod | N.ClassPrivateMethod | N.PrivateName | N.RestProperty | N.ForAwaitStatement | N.Import | N.TSQualifiedName | N.TSTypeReference | N.TSAsExpression | N.TSNonNullExpression | N.TSAnyKeyword | N.TSBooleanKeyword | N.TSNeverKeyword | N.TSNullKeyword | N.TSNumberKeyword | N.TSObjectKeyword | N.TSStringKeyword | N.TSSymbolKeyword | N.TSUndefinedKeyword | N.TSUnknownKeyword | N.TSVoidKeyword | N.TSThisType | N.TSArrayType | N.TSLiteralType | N.TSUnionType | N.TSIntersectionType | N.TSConditionalType | N.TSInferType | N.TSTypeParameter | N.TSParenthesizedType | N.TSFunctionType | N.TSConstructorType | N.TSDeclareFunction | N.TSDeclareMethod | N.TSMappedType | N.TSTupleType | N.TSRestType | N.TSOptionalType | N.TSIndexedAccessType | N.TSTypeOperator | N.TSIndexSignature | N.TSPropertySignature | N.TSMethodSignature | N.TSTypePredicate | N.TSCallSignatureDeclaration | N.TSConstructSignatureDeclaration | N.TSEnumMember | N.TSTypeQuery | N.TSTypeLiteral | N.TSTypeAssertion | N.TSEnumDeclaration | N.TSTypeAliasDeclaration | N.TSModuleBlock | N.TSModuleDeclaration | N.TSImportEqualsDeclaration | N.TSExternalModuleReference | N.TSExportAssignment | N.TSNamespaceExportDeclaration | N.TSInterfaceBody | N.TSInterfaceDeclaration | N.TSParameterProperty | N.OptionalMemberExpression | N.OptionalCallExpression; +export declare type SourceLocationKind = N.SourceLocation; +export declare type NodeKind = N.File | N.Program | N.Identifier | N.BlockStatement | N.EmptyStatement | N.ExpressionStatement | N.IfStatement | N.LabeledStatement | N.BreakStatement | N.ContinueStatement | N.WithStatement | N.SwitchStatement | N.SwitchCase | N.ReturnStatement | N.ThrowStatement | N.TryStatement | N.CatchClause | N.WhileStatement | N.DoWhileStatement | N.ForStatement | N.VariableDeclaration | N.ForInStatement | N.DebuggerStatement | N.FunctionDeclaration | N.FunctionExpression | N.VariableDeclarator | N.ThisExpression | N.ArrayExpression | N.ObjectExpression | N.Property | N.Literal | N.SequenceExpression | N.UnaryExpression | N.BinaryExpression | N.AssignmentExpression | N.UpdateExpression | N.LogicalExpression | N.ConditionalExpression | N.NewExpression | N.CallExpression | N.MemberExpression | N.RestElement | N.TypeAnnotation | N.TSTypeAnnotation | N.SpreadElementPattern | N.ArrowFunctionExpression | N.ForOfStatement | N.YieldExpression | N.GeneratorExpression | N.ComprehensionBlock | N.ComprehensionExpression | N.ObjectProperty | N.PropertyPattern | N.ObjectPattern | N.ArrayPattern | N.MethodDefinition | N.SpreadElement | N.AssignmentPattern | N.ClassPropertyDefinition | N.ClassProperty | N.ClassBody | N.ClassDeclaration | N.ClassExpression | N.ImportSpecifier | N.ImportNamespaceSpecifier | N.ImportDefaultSpecifier | N.ImportDeclaration | N.TaggedTemplateExpression | N.TemplateLiteral | N.TemplateElement | N.SpreadProperty | N.SpreadPropertyPattern | N.AwaitExpression | N.JSXAttribute | N.JSXIdentifier | N.JSXNamespacedName | N.JSXExpressionContainer | N.JSXMemberExpression | N.JSXSpreadAttribute | N.JSXElement | N.JSXOpeningElement | N.JSXClosingElement | N.JSXFragment | N.JSXText | N.JSXOpeningFragment | N.JSXClosingFragment | N.JSXEmptyExpression | N.JSXSpreadChild | N.TypeParameterDeclaration | N.TSTypeParameterDeclaration | N.TypeParameterInstantiation | N.TSTypeParameterInstantiation | N.ClassImplements | N.TSExpressionWithTypeArguments | N.AnyTypeAnnotation | N.EmptyTypeAnnotation | N.MixedTypeAnnotation | N.VoidTypeAnnotation | N.NumberTypeAnnotation | N.NumberLiteralTypeAnnotation | N.NumericLiteralTypeAnnotation | N.StringTypeAnnotation | N.StringLiteralTypeAnnotation | N.BooleanTypeAnnotation | N.BooleanLiteralTypeAnnotation | N.NullableTypeAnnotation | N.NullLiteralTypeAnnotation | N.NullTypeAnnotation | N.ThisTypeAnnotation | N.ExistsTypeAnnotation | N.ExistentialTypeParam | N.FunctionTypeAnnotation | N.FunctionTypeParam | N.ArrayTypeAnnotation | N.ObjectTypeAnnotation | N.ObjectTypeProperty | N.ObjectTypeSpreadProperty | N.ObjectTypeIndexer | N.ObjectTypeCallProperty | N.ObjectTypeInternalSlot | N.Variance | N.QualifiedTypeIdentifier | N.GenericTypeAnnotation | N.MemberTypeAnnotation | N.UnionTypeAnnotation | N.IntersectionTypeAnnotation | N.TypeofTypeAnnotation | N.TypeParameter | N.InterfaceTypeAnnotation | N.InterfaceExtends | N.InterfaceDeclaration | N.DeclareInterface | N.TypeAlias | N.OpaqueType | N.DeclareTypeAlias | N.DeclareOpaqueType | N.TypeCastExpression | N.TupleTypeAnnotation | N.DeclareVariable | N.DeclareFunction | N.DeclareClass | N.DeclareModule | N.DeclareModuleExports | N.DeclareExportDeclaration | N.ExportSpecifier | N.ExportBatchSpecifier | N.DeclareExportAllDeclaration | N.InferredPredicate | N.DeclaredPredicate | N.ExportDeclaration | N.Noop | N.DoExpression | N.Super | N.BindExpression | N.Decorator | N.MetaProperty | N.ParenthesizedExpression | N.ExportDefaultDeclaration | N.ExportNamedDeclaration | N.ExportNamespaceSpecifier | N.ExportDefaultSpecifier | N.ExportAllDeclaration | N.Directive | N.DirectiveLiteral | N.InterpreterDirective | N.StringLiteral | N.NumericLiteral | N.BigIntLiteral | N.NullLiteral | N.BooleanLiteral | N.RegExpLiteral | N.ObjectMethod | N.ClassPrivateProperty | N.ClassMethod | N.ClassPrivateMethod | N.PrivateName | N.RestProperty | N.ForAwaitStatement | N.Import | N.TSQualifiedName | N.TSTypeReference | N.TSAsExpression | N.TSNonNullExpression | N.TSAnyKeyword | N.TSBooleanKeyword | N.TSNeverKeyword | N.TSNullKeyword | N.TSNumberKeyword | N.TSObjectKeyword | N.TSStringKeyword | N.TSSymbolKeyword | N.TSUndefinedKeyword | N.TSUnknownKeyword | N.TSVoidKeyword | N.TSThisType | N.TSArrayType | N.TSLiteralType | N.TSUnionType | N.TSIntersectionType | N.TSConditionalType | N.TSInferType | N.TSTypeParameter | N.TSParenthesizedType | N.TSFunctionType | N.TSConstructorType | N.TSDeclareFunction | N.TSDeclareMethod | N.TSMappedType | N.TSTupleType | N.TSRestType | N.TSOptionalType | N.TSIndexedAccessType | N.TSTypeOperator | N.TSIndexSignature | N.TSPropertySignature | N.TSMethodSignature | N.TSTypePredicate | N.TSCallSignatureDeclaration | N.TSConstructSignatureDeclaration | N.TSEnumMember | N.TSTypeQuery | N.TSTypeLiteral | N.TSTypeAssertion | N.TSEnumDeclaration | N.TSTypeAliasDeclaration | N.TSModuleBlock | N.TSModuleDeclaration | N.TSImportEqualsDeclaration | N.TSExternalModuleReference | N.TSExportAssignment | N.TSNamespaceExportDeclaration | N.TSInterfaceBody | N.TSInterfaceDeclaration | N.TSParameterProperty | N.OptionalMemberExpression | N.OptionalCallExpression; +export declare type CommentKind = N.Block | N.Line | N.CommentBlock | N.CommentLine; +export declare type PositionKind = N.Position; +export declare type FileKind = N.File; +export declare type ProgramKind = N.Program; +export declare type StatementKind = N.BlockStatement | N.EmptyStatement | N.ExpressionStatement | N.IfStatement | N.LabeledStatement | N.BreakStatement | N.ContinueStatement | N.WithStatement | N.SwitchStatement | N.ReturnStatement | N.ThrowStatement | N.TryStatement | N.WhileStatement | N.DoWhileStatement | N.ForStatement | N.VariableDeclaration | N.ForInStatement | N.DebuggerStatement | N.FunctionDeclaration | N.ForOfStatement | N.MethodDefinition | N.ClassPropertyDefinition | N.ClassProperty | N.ClassBody | N.ClassDeclaration | N.ImportDeclaration | N.TSTypeParameterDeclaration | N.InterfaceDeclaration | N.DeclareInterface | N.TypeAlias | N.OpaqueType | N.DeclareTypeAlias | N.DeclareOpaqueType | N.DeclareVariable | N.DeclareFunction | N.DeclareClass | N.DeclareModule | N.DeclareModuleExports | N.DeclareExportDeclaration | N.DeclareExportAllDeclaration | N.ExportDeclaration | N.Noop | N.ExportDefaultDeclaration | N.ExportNamedDeclaration | N.ExportAllDeclaration | N.ClassPrivateProperty | N.ClassMethod | N.ClassPrivateMethod | N.ForAwaitStatement | N.TSDeclareFunction | N.TSDeclareMethod | N.TSIndexSignature | N.TSPropertySignature | N.TSMethodSignature | N.TSCallSignatureDeclaration | N.TSConstructSignatureDeclaration | N.TSEnumDeclaration | N.TSTypeAliasDeclaration | N.TSModuleDeclaration | N.TSImportEqualsDeclaration | N.TSExternalModuleReference | N.TSExportAssignment | N.TSNamespaceExportDeclaration | N.TSInterfaceDeclaration; +export declare type FunctionKind = N.FunctionDeclaration | N.FunctionExpression | N.ArrowFunctionExpression | N.ObjectMethod | N.ClassMethod | N.ClassPrivateMethod; +export declare type PatternKind = N.Identifier | N.FunctionExpression | N.ThisExpression | N.ArrayExpression | N.ObjectExpression | N.Literal | N.SequenceExpression | N.UnaryExpression | N.BinaryExpression | N.AssignmentExpression | N.UpdateExpression | N.LogicalExpression | N.ConditionalExpression | N.NewExpression | N.CallExpression | N.MemberExpression | N.RestElement | N.SpreadElementPattern | N.ArrowFunctionExpression | N.YieldExpression | N.GeneratorExpression | N.ComprehensionExpression | N.PropertyPattern | N.ObjectPattern | N.ArrayPattern | N.AssignmentPattern | N.ClassExpression | N.TaggedTemplateExpression | N.TemplateLiteral | N.SpreadPropertyPattern | N.AwaitExpression | N.JSXIdentifier | N.JSXExpressionContainer | N.JSXMemberExpression | N.JSXElement | N.JSXFragment | N.JSXText | N.JSXEmptyExpression | N.JSXSpreadChild | N.TypeCastExpression | N.DoExpression | N.Super | N.BindExpression | N.MetaProperty | N.ParenthesizedExpression | N.DirectiveLiteral | N.StringLiteral | N.NumericLiteral | N.BigIntLiteral | N.NullLiteral | N.BooleanLiteral | N.RegExpLiteral | N.PrivateName | N.Import | N.TSAsExpression | N.TSNonNullExpression | N.TSTypeParameter | N.TSTypeAssertion | N.TSParameterProperty | N.OptionalMemberExpression | N.OptionalCallExpression; +export declare type ExpressionKind = N.Identifier | N.FunctionExpression | N.ThisExpression | N.ArrayExpression | N.ObjectExpression | N.Literal | N.SequenceExpression | N.UnaryExpression | N.BinaryExpression | N.AssignmentExpression | N.UpdateExpression | N.LogicalExpression | N.ConditionalExpression | N.NewExpression | N.CallExpression | N.MemberExpression | N.ArrowFunctionExpression | N.YieldExpression | N.GeneratorExpression | N.ComprehensionExpression | N.ClassExpression | N.TaggedTemplateExpression | N.TemplateLiteral | N.AwaitExpression | N.JSXIdentifier | N.JSXExpressionContainer | N.JSXMemberExpression | N.JSXElement | N.JSXFragment | N.JSXText | N.JSXEmptyExpression | N.JSXSpreadChild | N.TypeCastExpression | N.DoExpression | N.Super | N.BindExpression | N.MetaProperty | N.ParenthesizedExpression | N.DirectiveLiteral | N.StringLiteral | N.NumericLiteral | N.BigIntLiteral | N.NullLiteral | N.BooleanLiteral | N.RegExpLiteral | N.PrivateName | N.Import | N.TSAsExpression | N.TSNonNullExpression | N.TSTypeParameter | N.TSTypeAssertion | N.OptionalMemberExpression | N.OptionalCallExpression; +export declare type IdentifierKind = N.Identifier | N.JSXIdentifier | N.TSTypeParameter; +export declare type BlockStatementKind = N.BlockStatement; +export declare type EmptyStatementKind = N.EmptyStatement; +export declare type ExpressionStatementKind = N.ExpressionStatement; +export declare type IfStatementKind = N.IfStatement; +export declare type LabeledStatementKind = N.LabeledStatement; +export declare type BreakStatementKind = N.BreakStatement; +export declare type ContinueStatementKind = N.ContinueStatement; +export declare type WithStatementKind = N.WithStatement; +export declare type SwitchStatementKind = N.SwitchStatement; +export declare type SwitchCaseKind = N.SwitchCase; +export declare type ReturnStatementKind = N.ReturnStatement; +export declare type ThrowStatementKind = N.ThrowStatement; +export declare type TryStatementKind = N.TryStatement; +export declare type CatchClauseKind = N.CatchClause; +export declare type WhileStatementKind = N.WhileStatement; +export declare type DoWhileStatementKind = N.DoWhileStatement; +export declare type ForStatementKind = N.ForStatement; +export declare type DeclarationKind = N.VariableDeclaration | N.FunctionDeclaration | N.MethodDefinition | N.ClassPropertyDefinition | N.ClassProperty | N.ClassBody | N.ClassDeclaration | N.ImportDeclaration | N.TSTypeParameterDeclaration | N.InterfaceDeclaration | N.DeclareInterface | N.TypeAlias | N.OpaqueType | N.DeclareTypeAlias | N.DeclareOpaqueType | N.DeclareClass | N.DeclareExportDeclaration | N.DeclareExportAllDeclaration | N.ExportDeclaration | N.ExportDefaultDeclaration | N.ExportNamedDeclaration | N.ExportAllDeclaration | N.ClassPrivateProperty | N.ClassMethod | N.ClassPrivateMethod | N.TSDeclareFunction | N.TSDeclareMethod | N.TSIndexSignature | N.TSPropertySignature | N.TSMethodSignature | N.TSCallSignatureDeclaration | N.TSConstructSignatureDeclaration | N.TSEnumDeclaration | N.TSTypeAliasDeclaration | N.TSModuleDeclaration | N.TSImportEqualsDeclaration | N.TSExternalModuleReference | N.TSNamespaceExportDeclaration | N.TSInterfaceDeclaration; +export declare type VariableDeclarationKind = N.VariableDeclaration; +export declare type ForInStatementKind = N.ForInStatement; +export declare type DebuggerStatementKind = N.DebuggerStatement; +export declare type FunctionDeclarationKind = N.FunctionDeclaration; +export declare type FunctionExpressionKind = N.FunctionExpression; +export declare type VariableDeclaratorKind = N.VariableDeclarator; +export declare type ThisExpressionKind = N.ThisExpression; +export declare type ArrayExpressionKind = N.ArrayExpression; +export declare type ObjectExpressionKind = N.ObjectExpression; +export declare type PropertyKind = N.Property; +export declare type LiteralKind = N.Literal | N.JSXText | N.StringLiteral | N.NumericLiteral | N.BigIntLiteral | N.NullLiteral | N.BooleanLiteral | N.RegExpLiteral; +export declare type SequenceExpressionKind = N.SequenceExpression; +export declare type UnaryExpressionKind = N.UnaryExpression; +export declare type BinaryExpressionKind = N.BinaryExpression; +export declare type AssignmentExpressionKind = N.AssignmentExpression; +export declare type UpdateExpressionKind = N.UpdateExpression; +export declare type LogicalExpressionKind = N.LogicalExpression; +export declare type ConditionalExpressionKind = N.ConditionalExpression; +export declare type NewExpressionKind = N.NewExpression; +export declare type CallExpressionKind = N.CallExpression | N.OptionalCallExpression; +export declare type MemberExpressionKind = N.MemberExpression | N.JSXMemberExpression | N.OptionalMemberExpression; +export declare type RestElementKind = N.RestElement; +export declare type TypeAnnotationKind = N.TypeAnnotation; +export declare type TSTypeAnnotationKind = N.TSTypeAnnotation | N.TSTypePredicate; +export declare type SpreadElementPatternKind = N.SpreadElementPattern; +export declare type ArrowFunctionExpressionKind = N.ArrowFunctionExpression; +export declare type ForOfStatementKind = N.ForOfStatement; +export declare type YieldExpressionKind = N.YieldExpression; +export declare type GeneratorExpressionKind = N.GeneratorExpression; +export declare type ComprehensionBlockKind = N.ComprehensionBlock; +export declare type ComprehensionExpressionKind = N.ComprehensionExpression; +export declare type ObjectPropertyKind = N.ObjectProperty; +export declare type PropertyPatternKind = N.PropertyPattern; +export declare type ObjectPatternKind = N.ObjectPattern; +export declare type ArrayPatternKind = N.ArrayPattern; +export declare type MethodDefinitionKind = N.MethodDefinition; +export declare type SpreadElementKind = N.SpreadElement; +export declare type AssignmentPatternKind = N.AssignmentPattern; +export declare type ClassPropertyDefinitionKind = N.ClassPropertyDefinition; +export declare type ClassPropertyKind = N.ClassProperty | N.ClassPrivateProperty; +export declare type ClassBodyKind = N.ClassBody; +export declare type ClassDeclarationKind = N.ClassDeclaration; +export declare type ClassExpressionKind = N.ClassExpression; +export declare type SpecifierKind = N.ImportSpecifier | N.ImportNamespaceSpecifier | N.ImportDefaultSpecifier | N.ExportSpecifier | N.ExportBatchSpecifier | N.ExportNamespaceSpecifier | N.ExportDefaultSpecifier; +export declare type ModuleSpecifierKind = N.ImportSpecifier | N.ImportNamespaceSpecifier | N.ImportDefaultSpecifier | N.ExportSpecifier; +export declare type ImportSpecifierKind = N.ImportSpecifier; +export declare type ImportNamespaceSpecifierKind = N.ImportNamespaceSpecifier; +export declare type ImportDefaultSpecifierKind = N.ImportDefaultSpecifier; +export declare type ImportDeclarationKind = N.ImportDeclaration; +export declare type TaggedTemplateExpressionKind = N.TaggedTemplateExpression; +export declare type TemplateLiteralKind = N.TemplateLiteral; +export declare type TemplateElementKind = N.TemplateElement; +export declare type SpreadPropertyKind = N.SpreadProperty; +export declare type SpreadPropertyPatternKind = N.SpreadPropertyPattern; +export declare type AwaitExpressionKind = N.AwaitExpression; +export declare type JSXAttributeKind = N.JSXAttribute; +export declare type JSXIdentifierKind = N.JSXIdentifier; +export declare type JSXNamespacedNameKind = N.JSXNamespacedName; +export declare type JSXExpressionContainerKind = N.JSXExpressionContainer; +export declare type JSXMemberExpressionKind = N.JSXMemberExpression; +export declare type JSXSpreadAttributeKind = N.JSXSpreadAttribute; +export declare type JSXElementKind = N.JSXElement; +export declare type JSXOpeningElementKind = N.JSXOpeningElement; +export declare type JSXClosingElementKind = N.JSXClosingElement; +export declare type JSXFragmentKind = N.JSXFragment; +export declare type JSXTextKind = N.JSXText; +export declare type JSXOpeningFragmentKind = N.JSXOpeningFragment; +export declare type JSXClosingFragmentKind = N.JSXClosingFragment; +export declare type JSXEmptyExpressionKind = N.JSXEmptyExpression; +export declare type JSXSpreadChildKind = N.JSXSpreadChild; +export declare type TypeParameterDeclarationKind = N.TypeParameterDeclaration; +export declare type TSTypeParameterDeclarationKind = N.TSTypeParameterDeclaration; +export declare type TypeParameterInstantiationKind = N.TypeParameterInstantiation; +export declare type TSTypeParameterInstantiationKind = N.TSTypeParameterInstantiation; +export declare type ClassImplementsKind = N.ClassImplements; +export declare type TSTypeKind = N.TSExpressionWithTypeArguments | N.TSTypeReference | N.TSAnyKeyword | N.TSBooleanKeyword | N.TSNeverKeyword | N.TSNullKeyword | N.TSNumberKeyword | N.TSObjectKeyword | N.TSStringKeyword | N.TSSymbolKeyword | N.TSUndefinedKeyword | N.TSUnknownKeyword | N.TSVoidKeyword | N.TSThisType | N.TSArrayType | N.TSLiteralType | N.TSUnionType | N.TSIntersectionType | N.TSConditionalType | N.TSInferType | N.TSParenthesizedType | N.TSFunctionType | N.TSConstructorType | N.TSMappedType | N.TSTupleType | N.TSRestType | N.TSOptionalType | N.TSIndexedAccessType | N.TSTypeOperator | N.TSTypeQuery | N.TSTypeLiteral; +export declare type TSExpressionWithTypeArgumentsKind = N.TSExpressionWithTypeArguments; +export declare type FlowKind = N.AnyTypeAnnotation | N.EmptyTypeAnnotation | N.MixedTypeAnnotation | N.VoidTypeAnnotation | N.NumberTypeAnnotation | N.NumberLiteralTypeAnnotation | N.NumericLiteralTypeAnnotation | N.StringTypeAnnotation | N.StringLiteralTypeAnnotation | N.BooleanTypeAnnotation | N.BooleanLiteralTypeAnnotation | N.NullableTypeAnnotation | N.NullLiteralTypeAnnotation | N.NullTypeAnnotation | N.ThisTypeAnnotation | N.ExistsTypeAnnotation | N.ExistentialTypeParam | N.FunctionTypeAnnotation | N.ArrayTypeAnnotation | N.ObjectTypeAnnotation | N.GenericTypeAnnotation | N.MemberTypeAnnotation | N.UnionTypeAnnotation | N.IntersectionTypeAnnotation | N.TypeofTypeAnnotation | N.TypeParameter | N.InterfaceTypeAnnotation | N.TupleTypeAnnotation | N.InferredPredicate | N.DeclaredPredicate; +export declare type FlowTypeKind = N.AnyTypeAnnotation | N.EmptyTypeAnnotation | N.MixedTypeAnnotation | N.VoidTypeAnnotation | N.NumberTypeAnnotation | N.NumberLiteralTypeAnnotation | N.NumericLiteralTypeAnnotation | N.StringTypeAnnotation | N.StringLiteralTypeAnnotation | N.BooleanTypeAnnotation | N.BooleanLiteralTypeAnnotation | N.NullableTypeAnnotation | N.NullLiteralTypeAnnotation | N.NullTypeAnnotation | N.ThisTypeAnnotation | N.ExistsTypeAnnotation | N.ExistentialTypeParam | N.FunctionTypeAnnotation | N.ArrayTypeAnnotation | N.ObjectTypeAnnotation | N.GenericTypeAnnotation | N.MemberTypeAnnotation | N.UnionTypeAnnotation | N.IntersectionTypeAnnotation | N.TypeofTypeAnnotation | N.TypeParameter | N.InterfaceTypeAnnotation | N.TupleTypeAnnotation; +export declare type AnyTypeAnnotationKind = N.AnyTypeAnnotation; +export declare type EmptyTypeAnnotationKind = N.EmptyTypeAnnotation; +export declare type MixedTypeAnnotationKind = N.MixedTypeAnnotation; +export declare type VoidTypeAnnotationKind = N.VoidTypeAnnotation; +export declare type NumberTypeAnnotationKind = N.NumberTypeAnnotation; +export declare type NumberLiteralTypeAnnotationKind = N.NumberLiteralTypeAnnotation; +export declare type NumericLiteralTypeAnnotationKind = N.NumericLiteralTypeAnnotation; +export declare type StringTypeAnnotationKind = N.StringTypeAnnotation; +export declare type StringLiteralTypeAnnotationKind = N.StringLiteralTypeAnnotation; +export declare type BooleanTypeAnnotationKind = N.BooleanTypeAnnotation; +export declare type BooleanLiteralTypeAnnotationKind = N.BooleanLiteralTypeAnnotation; +export declare type NullableTypeAnnotationKind = N.NullableTypeAnnotation; +export declare type NullLiteralTypeAnnotationKind = N.NullLiteralTypeAnnotation; +export declare type NullTypeAnnotationKind = N.NullTypeAnnotation; +export declare type ThisTypeAnnotationKind = N.ThisTypeAnnotation; +export declare type ExistsTypeAnnotationKind = N.ExistsTypeAnnotation; +export declare type ExistentialTypeParamKind = N.ExistentialTypeParam; +export declare type FunctionTypeAnnotationKind = N.FunctionTypeAnnotation; +export declare type FunctionTypeParamKind = N.FunctionTypeParam; +export declare type ArrayTypeAnnotationKind = N.ArrayTypeAnnotation; +export declare type ObjectTypeAnnotationKind = N.ObjectTypeAnnotation; +export declare type ObjectTypePropertyKind = N.ObjectTypeProperty; +export declare type ObjectTypeSpreadPropertyKind = N.ObjectTypeSpreadProperty; +export declare type ObjectTypeIndexerKind = N.ObjectTypeIndexer; +export declare type ObjectTypeCallPropertyKind = N.ObjectTypeCallProperty; +export declare type ObjectTypeInternalSlotKind = N.ObjectTypeInternalSlot; +export declare type VarianceKind = N.Variance; +export declare type QualifiedTypeIdentifierKind = N.QualifiedTypeIdentifier; +export declare type GenericTypeAnnotationKind = N.GenericTypeAnnotation; +export declare type MemberTypeAnnotationKind = N.MemberTypeAnnotation; +export declare type UnionTypeAnnotationKind = N.UnionTypeAnnotation; +export declare type IntersectionTypeAnnotationKind = N.IntersectionTypeAnnotation; +export declare type TypeofTypeAnnotationKind = N.TypeofTypeAnnotation; +export declare type TypeParameterKind = N.TypeParameter; +export declare type InterfaceTypeAnnotationKind = N.InterfaceTypeAnnotation; +export declare type InterfaceExtendsKind = N.InterfaceExtends; +export declare type InterfaceDeclarationKind = N.InterfaceDeclaration | N.DeclareInterface | N.DeclareClass; +export declare type DeclareInterfaceKind = N.DeclareInterface; +export declare type TypeAliasKind = N.TypeAlias | N.DeclareTypeAlias | N.DeclareOpaqueType; +export declare type OpaqueTypeKind = N.OpaqueType; +export declare type DeclareTypeAliasKind = N.DeclareTypeAlias; +export declare type DeclareOpaqueTypeKind = N.DeclareOpaqueType; +export declare type TypeCastExpressionKind = N.TypeCastExpression; +export declare type TupleTypeAnnotationKind = N.TupleTypeAnnotation; +export declare type DeclareVariableKind = N.DeclareVariable; +export declare type DeclareFunctionKind = N.DeclareFunction; +export declare type DeclareClassKind = N.DeclareClass; +export declare type DeclareModuleKind = N.DeclareModule; +export declare type DeclareModuleExportsKind = N.DeclareModuleExports; +export declare type DeclareExportDeclarationKind = N.DeclareExportDeclaration; +export declare type ExportSpecifierKind = N.ExportSpecifier; +export declare type ExportBatchSpecifierKind = N.ExportBatchSpecifier; +export declare type DeclareExportAllDeclarationKind = N.DeclareExportAllDeclaration; +export declare type FlowPredicateKind = N.InferredPredicate | N.DeclaredPredicate; +export declare type InferredPredicateKind = N.InferredPredicate; +export declare type DeclaredPredicateKind = N.DeclaredPredicate; +export declare type ExportDeclarationKind = N.ExportDeclaration; +export declare type BlockKind = N.Block; +export declare type LineKind = N.Line; +export declare type NoopKind = N.Noop; +export declare type DoExpressionKind = N.DoExpression; +export declare type SuperKind = N.Super; +export declare type BindExpressionKind = N.BindExpression; +export declare type DecoratorKind = N.Decorator; +export declare type MetaPropertyKind = N.MetaProperty; +export declare type ParenthesizedExpressionKind = N.ParenthesizedExpression; +export declare type ExportDefaultDeclarationKind = N.ExportDefaultDeclaration; +export declare type ExportNamedDeclarationKind = N.ExportNamedDeclaration; +export declare type ExportNamespaceSpecifierKind = N.ExportNamespaceSpecifier; +export declare type ExportDefaultSpecifierKind = N.ExportDefaultSpecifier; +export declare type ExportAllDeclarationKind = N.ExportAllDeclaration; +export declare type CommentBlockKind = N.CommentBlock; +export declare type CommentLineKind = N.CommentLine; +export declare type DirectiveKind = N.Directive; +export declare type DirectiveLiteralKind = N.DirectiveLiteral; +export declare type InterpreterDirectiveKind = N.InterpreterDirective; +export declare type StringLiteralKind = N.StringLiteral; +export declare type NumericLiteralKind = N.NumericLiteral; +export declare type BigIntLiteralKind = N.BigIntLiteral; +export declare type NullLiteralKind = N.NullLiteral; +export declare type BooleanLiteralKind = N.BooleanLiteral; +export declare type RegExpLiteralKind = N.RegExpLiteral; +export declare type ObjectMethodKind = N.ObjectMethod; +export declare type ClassPrivatePropertyKind = N.ClassPrivateProperty; +export declare type ClassMethodKind = N.ClassMethod; +export declare type ClassPrivateMethodKind = N.ClassPrivateMethod; +export declare type PrivateNameKind = N.PrivateName; +export declare type RestPropertyKind = N.RestProperty; +export declare type ForAwaitStatementKind = N.ForAwaitStatement; +export declare type ImportKind = N.Import; +export declare type TSQualifiedNameKind = N.TSQualifiedName; +export declare type TSTypeReferenceKind = N.TSTypeReference; +export declare type TSHasOptionalTypeParametersKind = N.TSFunctionType | N.TSConstructorType | N.TSDeclareFunction | N.TSDeclareMethod | N.TSMethodSignature | N.TSCallSignatureDeclaration | N.TSConstructSignatureDeclaration | N.TSTypeAliasDeclaration | N.TSInterfaceDeclaration; +export declare type TSHasOptionalTypeAnnotationKind = N.TSFunctionType | N.TSConstructorType | N.TSIndexSignature | N.TSPropertySignature | N.TSMethodSignature | N.TSCallSignatureDeclaration | N.TSConstructSignatureDeclaration; +export declare type TSAsExpressionKind = N.TSAsExpression; +export declare type TSNonNullExpressionKind = N.TSNonNullExpression; +export declare type TSAnyKeywordKind = N.TSAnyKeyword; +export declare type TSBooleanKeywordKind = N.TSBooleanKeyword; +export declare type TSNeverKeywordKind = N.TSNeverKeyword; +export declare type TSNullKeywordKind = N.TSNullKeyword; +export declare type TSNumberKeywordKind = N.TSNumberKeyword; +export declare type TSObjectKeywordKind = N.TSObjectKeyword; +export declare type TSStringKeywordKind = N.TSStringKeyword; +export declare type TSSymbolKeywordKind = N.TSSymbolKeyword; +export declare type TSUndefinedKeywordKind = N.TSUndefinedKeyword; +export declare type TSUnknownKeywordKind = N.TSUnknownKeyword; +export declare type TSVoidKeywordKind = N.TSVoidKeyword; +export declare type TSThisTypeKind = N.TSThisType; +export declare type TSArrayTypeKind = N.TSArrayType; +export declare type TSLiteralTypeKind = N.TSLiteralType; +export declare type TSUnionTypeKind = N.TSUnionType; +export declare type TSIntersectionTypeKind = N.TSIntersectionType; +export declare type TSConditionalTypeKind = N.TSConditionalType; +export declare type TSInferTypeKind = N.TSInferType; +export declare type TSTypeParameterKind = N.TSTypeParameter; +export declare type TSParenthesizedTypeKind = N.TSParenthesizedType; +export declare type TSFunctionTypeKind = N.TSFunctionType; +export declare type TSConstructorTypeKind = N.TSConstructorType; +export declare type TSDeclareFunctionKind = N.TSDeclareFunction; +export declare type TSDeclareMethodKind = N.TSDeclareMethod; +export declare type TSMappedTypeKind = N.TSMappedType; +export declare type TSTupleTypeKind = N.TSTupleType; +export declare type TSRestTypeKind = N.TSRestType; +export declare type TSOptionalTypeKind = N.TSOptionalType; +export declare type TSIndexedAccessTypeKind = N.TSIndexedAccessType; +export declare type TSTypeOperatorKind = N.TSTypeOperator; +export declare type TSIndexSignatureKind = N.TSIndexSignature; +export declare type TSPropertySignatureKind = N.TSPropertySignature; +export declare type TSMethodSignatureKind = N.TSMethodSignature; +export declare type TSTypePredicateKind = N.TSTypePredicate; +export declare type TSCallSignatureDeclarationKind = N.TSCallSignatureDeclaration; +export declare type TSConstructSignatureDeclarationKind = N.TSConstructSignatureDeclaration; +export declare type TSEnumMemberKind = N.TSEnumMember; +export declare type TSTypeQueryKind = N.TSTypeQuery; +export declare type TSTypeLiteralKind = N.TSTypeLiteral; +export declare type TSTypeAssertionKind = N.TSTypeAssertion; +export declare type TSEnumDeclarationKind = N.TSEnumDeclaration; +export declare type TSTypeAliasDeclarationKind = N.TSTypeAliasDeclaration; +export declare type TSModuleBlockKind = N.TSModuleBlock; +export declare type TSModuleDeclarationKind = N.TSModuleDeclaration; +export declare type TSImportEqualsDeclarationKind = N.TSImportEqualsDeclaration; +export declare type TSExternalModuleReferenceKind = N.TSExternalModuleReference; +export declare type TSExportAssignmentKind = N.TSExportAssignment; +export declare type TSNamespaceExportDeclarationKind = N.TSNamespaceExportDeclaration; +export declare type TSInterfaceBodyKind = N.TSInterfaceBody; +export declare type TSInterfaceDeclarationKind = N.TSInterfaceDeclaration; +export declare type TSParameterPropertyKind = N.TSParameterProperty; +export declare type OptionalMemberExpressionKind = N.OptionalMemberExpression; +export declare type OptionalCallExpressionKind = N.OptionalCallExpression; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/kinds.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/kinds.js" new file mode 100644 index 0000000000000000000000000000000000000000..c8ad2e549bdc6801e0d1c80b0308d4b9bd4985ce --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/kinds.js" @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/namedTypes.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/namedTypes.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..db6d136a5701e8ab0e7e8f84a31ba92f0faf53a7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/namedTypes.d.ts" @@ -0,0 +1,262 @@ +import { Type } from "../lib/types"; +import * as N from "./nodes"; +export interface NamedTypes { + Printable: Type; + SourceLocation: Type; + Node: Type; + Comment: Type; + Position: Type; + File: Type; + Program: Type; + Statement: Type; + Function: Type; + Pattern: Type; + Expression: Type; + Identifier: Type; + BlockStatement: Type; + EmptyStatement: Type; + ExpressionStatement: Type; + IfStatement: Type; + LabeledStatement: Type; + BreakStatement: Type; + ContinueStatement: Type; + WithStatement: Type; + SwitchStatement: Type; + SwitchCase: Type; + ReturnStatement: Type; + ThrowStatement: Type; + TryStatement: Type; + CatchClause: Type; + WhileStatement: Type; + DoWhileStatement: Type; + ForStatement: Type; + Declaration: Type; + VariableDeclaration: Type; + ForInStatement: Type; + DebuggerStatement: Type; + FunctionDeclaration: Type; + FunctionExpression: Type; + VariableDeclarator: Type; + ThisExpression: Type; + ArrayExpression: Type; + ObjectExpression: Type; + Property: Type; + Literal: Type; + SequenceExpression: Type; + UnaryExpression: Type; + BinaryExpression: Type; + AssignmentExpression: Type; + UpdateExpression: Type; + LogicalExpression: Type; + ConditionalExpression: Type; + NewExpression: Type; + CallExpression: Type; + MemberExpression: Type; + RestElement: Type; + TypeAnnotation: Type; + TSTypeAnnotation: Type; + SpreadElementPattern: Type; + ArrowFunctionExpression: Type; + ForOfStatement: Type; + YieldExpression: Type; + GeneratorExpression: Type; + ComprehensionBlock: Type; + ComprehensionExpression: Type; + ObjectProperty: Type; + PropertyPattern: Type; + ObjectPattern: Type; + ArrayPattern: Type; + MethodDefinition: Type; + SpreadElement: Type; + AssignmentPattern: Type; + ClassPropertyDefinition: Type; + ClassProperty: Type; + ClassBody: Type; + ClassDeclaration: Type; + ClassExpression: Type; + Specifier: Type; + ModuleSpecifier: Type; + ImportSpecifier: Type; + ImportNamespaceSpecifier: Type; + ImportDefaultSpecifier: Type; + ImportDeclaration: Type; + TaggedTemplateExpression: Type; + TemplateLiteral: Type; + TemplateElement: Type; + SpreadProperty: Type; + SpreadPropertyPattern: Type; + AwaitExpression: Type; + JSXAttribute: Type; + JSXIdentifier: Type; + JSXNamespacedName: Type; + JSXExpressionContainer: Type; + JSXMemberExpression: Type; + JSXSpreadAttribute: Type; + JSXElement: Type; + JSXOpeningElement: Type; + JSXClosingElement: Type; + JSXFragment: Type; + JSXText: Type; + JSXOpeningFragment: Type; + JSXClosingFragment: Type; + JSXEmptyExpression: Type; + JSXSpreadChild: Type; + TypeParameterDeclaration: Type; + TSTypeParameterDeclaration: Type; + TypeParameterInstantiation: Type; + TSTypeParameterInstantiation: Type; + ClassImplements: Type; + TSType: Type; + TSExpressionWithTypeArguments: Type; + Flow: Type; + FlowType: Type; + AnyTypeAnnotation: Type; + EmptyTypeAnnotation: Type; + MixedTypeAnnotation: Type; + VoidTypeAnnotation: Type; + NumberTypeAnnotation: Type; + NumberLiteralTypeAnnotation: Type; + NumericLiteralTypeAnnotation: Type; + StringTypeAnnotation: Type; + StringLiteralTypeAnnotation: Type; + BooleanTypeAnnotation: Type; + BooleanLiteralTypeAnnotation: Type; + NullableTypeAnnotation: Type; + NullLiteralTypeAnnotation: Type; + NullTypeAnnotation: Type; + ThisTypeAnnotation: Type; + ExistsTypeAnnotation: Type; + ExistentialTypeParam: Type; + FunctionTypeAnnotation: Type; + FunctionTypeParam: Type; + ArrayTypeAnnotation: Type; + ObjectTypeAnnotation: Type; + ObjectTypeProperty: Type; + ObjectTypeSpreadProperty: Type; + ObjectTypeIndexer: Type; + ObjectTypeCallProperty: Type; + ObjectTypeInternalSlot: Type; + Variance: Type; + QualifiedTypeIdentifier: Type; + GenericTypeAnnotation: Type; + MemberTypeAnnotation: Type; + UnionTypeAnnotation: Type; + IntersectionTypeAnnotation: Type; + TypeofTypeAnnotation: Type; + TypeParameter: Type; + InterfaceTypeAnnotation: Type; + InterfaceExtends: Type; + InterfaceDeclaration: Type; + DeclareInterface: Type; + TypeAlias: Type; + OpaqueType: Type; + DeclareTypeAlias: Type; + DeclareOpaqueType: Type; + TypeCastExpression: Type; + TupleTypeAnnotation: Type; + DeclareVariable: Type; + DeclareFunction: Type; + DeclareClass: Type; + DeclareModule: Type; + DeclareModuleExports: Type; + DeclareExportDeclaration: Type; + ExportSpecifier: Type; + ExportBatchSpecifier: Type; + DeclareExportAllDeclaration: Type; + FlowPredicate: Type; + InferredPredicate: Type; + DeclaredPredicate: Type; + ExportDeclaration: Type; + Block: Type; + Line: Type; + Noop: Type; + DoExpression: Type; + Super: Type; + BindExpression: Type; + Decorator: Type; + MetaProperty: Type; + ParenthesizedExpression: Type; + ExportDefaultDeclaration: Type; + ExportNamedDeclaration: Type; + ExportNamespaceSpecifier: Type; + ExportDefaultSpecifier: Type; + ExportAllDeclaration: Type; + CommentBlock: Type; + CommentLine: Type; + Directive: Type; + DirectiveLiteral: Type; + InterpreterDirective: Type; + StringLiteral: Type; + NumericLiteral: Type; + BigIntLiteral: Type; + NullLiteral: Type; + BooleanLiteral: Type; + RegExpLiteral: Type; + ObjectMethod: Type; + ClassPrivateProperty: Type; + ClassMethod: Type; + ClassPrivateMethod: Type; + PrivateName: Type; + RestProperty: Type; + ForAwaitStatement: Type; + Import: Type; + TSQualifiedName: Type; + TSTypeReference: Type; + TSHasOptionalTypeParameters: Type; + TSHasOptionalTypeAnnotation: Type; + TSAsExpression: Type; + TSNonNullExpression: Type; + TSAnyKeyword: Type; + TSBooleanKeyword: Type; + TSNeverKeyword: Type; + TSNullKeyword: Type; + TSNumberKeyword: Type; + TSObjectKeyword: Type; + TSStringKeyword: Type; + TSSymbolKeyword: Type; + TSUndefinedKeyword: Type; + TSUnknownKeyword: Type; + TSVoidKeyword: Type; + TSThisType: Type; + TSArrayType: Type; + TSLiteralType: Type; + TSUnionType: Type; + TSIntersectionType: Type; + TSConditionalType: Type; + TSInferType: Type; + TSTypeParameter: Type; + TSParenthesizedType: Type; + TSFunctionType: Type; + TSConstructorType: Type; + TSDeclareFunction: Type; + TSDeclareMethod: Type; + TSMappedType: Type; + TSTupleType: Type; + TSRestType: Type; + TSOptionalType: Type; + TSIndexedAccessType: Type; + TSTypeOperator: Type; + TSIndexSignature: Type; + TSPropertySignature: Type; + TSMethodSignature: Type; + TSTypePredicate: Type; + TSCallSignatureDeclaration: Type; + TSConstructSignatureDeclaration: Type; + TSEnumMember: Type; + TSTypeQuery: Type; + TSTypeLiteral: Type; + TSTypeAssertion: Type; + TSEnumDeclaration: Type; + TSTypeAliasDeclaration: Type; + TSModuleBlock: Type; + TSModuleDeclaration: Type; + TSImportEqualsDeclaration: Type; + TSExternalModuleReference: Type; + TSExportAssignment: Type; + TSNamespaceExportDeclaration: Type; + TSInterfaceBody: Type; + TSInterfaceDeclaration: Type; + TSParameterProperty: Type; + OptionalMemberExpression: Type; + OptionalCallExpression: Type; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/namedTypes.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/namedTypes.js" new file mode 100644 index 0000000000000000000000000000000000000000..c8ad2e549bdc6801e0d1c80b0308d4b9bd4985ce --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/namedTypes.js" @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/nodes.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/nodes.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..bc0d7759a80fe4c0c8c890b3c5d18ee935d38abd --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/nodes.d.ts" @@ -0,0 +1,1255 @@ +import { Omit } from "../types"; +import * as K from "./kinds"; +export interface Printable { + loc: K.SourceLocationKind | null; +} +export interface SourceLocation { + start: K.PositionKind; + end: K.PositionKind; + source: string | null; +} +export interface Node extends Printable { + type: string; + comments: K.CommentKind[] | null; +} +export interface Comment extends Printable { + value: string; + leading: boolean; + trailing: boolean; +} +export interface Position { + line: number; + column: number; +} +export interface File extends Omit { + type: "File"; + program: K.ProgramKind; + name: string | null; +} +export interface Program extends Omit { + type: "Program"; + body: K.StatementKind[]; + directives: K.DirectiveKind[]; + interpreter: K.InterpreterDirectiveKind | null; +} +export interface Statement extends Node { +} +export interface Function extends Node { + id: K.IdentifierKind | null; + params: K.PatternKind[]; + body: K.BlockStatementKind; + generator: boolean; + async: boolean; + expression: boolean; + defaults: (K.ExpressionKind | null)[]; + rest: K.IdentifierKind | null; + returnType: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null; + typeParameters: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null; +} +export interface Pattern extends Node { +} +export interface Expression extends Node, Pattern { +} +export interface Identifier extends Omit, Omit, Omit { + type: "Identifier"; + name: string; + optional: boolean; + typeAnnotation: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null; +} +export interface BlockStatement extends Omit { + type: "BlockStatement"; + body: K.StatementKind[]; + directives: K.DirectiveKind[]; +} +export interface EmptyStatement extends Omit { + type: "EmptyStatement"; +} +export interface ExpressionStatement extends Omit { + type: "ExpressionStatement"; + expression: K.ExpressionKind; +} +export interface IfStatement extends Omit { + type: "IfStatement"; + test: K.ExpressionKind; + consequent: K.StatementKind; + alternate: K.StatementKind | null; +} +export interface LabeledStatement extends Omit { + type: "LabeledStatement"; + label: K.IdentifierKind; + body: K.StatementKind; +} +export interface BreakStatement extends Omit { + type: "BreakStatement"; + label: K.IdentifierKind | null; +} +export interface ContinueStatement extends Omit { + type: "ContinueStatement"; + label: K.IdentifierKind | null; +} +export interface WithStatement extends Omit { + type: "WithStatement"; + object: K.ExpressionKind; + body: K.StatementKind; +} +export interface SwitchStatement extends Omit { + type: "SwitchStatement"; + discriminant: K.ExpressionKind; + cases: K.SwitchCaseKind[]; + lexical: boolean; +} +export interface SwitchCase extends Omit { + type: "SwitchCase"; + test: K.ExpressionKind | null; + consequent: K.StatementKind[]; +} +export interface ReturnStatement extends Omit { + type: "ReturnStatement"; + argument: K.ExpressionKind | null; +} +export interface ThrowStatement extends Omit { + type: "ThrowStatement"; + argument: K.ExpressionKind; +} +export interface TryStatement extends Omit { + type: "TryStatement"; + block: K.BlockStatementKind; + handler: K.CatchClauseKind | null; + handlers: K.CatchClauseKind[]; + guardedHandlers: K.CatchClauseKind[]; + finalizer: K.BlockStatementKind | null; +} +export interface CatchClause extends Omit { + type: "CatchClause"; + param: K.PatternKind | null; + guard: K.ExpressionKind | null; + body: K.BlockStatementKind; +} +export interface WhileStatement extends Omit { + type: "WhileStatement"; + test: K.ExpressionKind; + body: K.StatementKind; +} +export interface DoWhileStatement extends Omit { + type: "DoWhileStatement"; + body: K.StatementKind; + test: K.ExpressionKind; +} +export interface ForStatement extends Omit { + type: "ForStatement"; + init: K.VariableDeclarationKind | K.ExpressionKind | null; + test: K.ExpressionKind | null; + update: K.ExpressionKind | null; + body: K.StatementKind; +} +export interface Declaration extends Statement { +} +export interface VariableDeclaration extends Omit { + type: "VariableDeclaration"; + kind: "var" | "let" | "const"; + declarations: (K.VariableDeclaratorKind | K.IdentifierKind)[]; +} +export interface ForInStatement extends Omit { + type: "ForInStatement"; + left: K.VariableDeclarationKind | K.ExpressionKind; + right: K.ExpressionKind; + body: K.StatementKind; +} +export interface DebuggerStatement extends Omit { + type: "DebuggerStatement"; +} +export interface FunctionDeclaration extends Omit, Omit { + type: "FunctionDeclaration"; + id: K.IdentifierKind; +} +export interface FunctionExpression extends Omit, Omit { + type: "FunctionExpression"; +} +export interface VariableDeclarator extends Omit { + type: "VariableDeclarator"; + id: K.PatternKind; + init: K.ExpressionKind | null; +} +export interface ThisExpression extends Omit { + type: "ThisExpression"; +} +export interface ArrayExpression extends Omit { + type: "ArrayExpression"; + elements: (K.ExpressionKind | K.SpreadElementKind | K.RestElementKind | null)[]; +} +export interface ObjectExpression extends Omit { + type: "ObjectExpression"; + properties: (K.PropertyKind | K.ObjectMethodKind | K.ObjectPropertyKind | K.SpreadPropertyKind | K.SpreadElementKind)[]; +} +export interface Property extends Omit { + type: "Property"; + kind: "init" | "get" | "set"; + key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind; + value: K.ExpressionKind | K.PatternKind; + method: boolean; + shorthand: boolean; + computed: boolean; + decorators: K.DecoratorKind[] | null; +} +export interface Literal extends Omit, Omit { + type: "Literal"; + value: string | boolean | null | number | RegExp; + regex: { + pattern: string; + flags: string; + } | null; +} +export interface SequenceExpression extends Omit { + type: "SequenceExpression"; + expressions: K.ExpressionKind[]; +} +export interface UnaryExpression extends Omit { + type: "UnaryExpression"; + operator: "-" | "+" | "!" | "~" | "typeof" | "void" | "delete"; + argument: K.ExpressionKind; + prefix: boolean; +} +export interface BinaryExpression extends Omit { + type: "BinaryExpression"; + operator: "==" | "!=" | "===" | "!==" | "<" | "<=" | ">" | ">=" | "<<" | ">>" | ">>>" | "+" | "-" | "*" | "/" | "%" | "**" | "&" | "|" | "^" | "in" | "instanceof" | ".."; + left: K.ExpressionKind; + right: K.ExpressionKind; +} +export interface AssignmentExpression extends Omit { + type: "AssignmentExpression"; + operator: "=" | "+=" | "-=" | "*=" | "/=" | "%=" | "<<=" | ">>=" | ">>>=" | "|=" | "^=" | "&="; + left: K.PatternKind; + right: K.ExpressionKind; +} +export interface UpdateExpression extends Omit { + type: "UpdateExpression"; + operator: "++" | "--"; + argument: K.ExpressionKind; + prefix: boolean; +} +export interface LogicalExpression extends Omit { + type: "LogicalExpression"; + operator: "||" | "&&" | "??"; + left: K.ExpressionKind; + right: K.ExpressionKind; +} +export interface ConditionalExpression extends Omit { + type: "ConditionalExpression"; + test: K.ExpressionKind; + consequent: K.ExpressionKind; + alternate: K.ExpressionKind; +} +export interface NewExpression extends Omit { + type: "NewExpression"; + callee: K.ExpressionKind; + arguments: (K.ExpressionKind | K.SpreadElementKind)[]; +} +export interface CallExpression extends Omit { + type: "CallExpression"; + callee: K.ExpressionKind; + arguments: (K.ExpressionKind | K.SpreadElementKind)[]; +} +export interface MemberExpression extends Omit { + type: "MemberExpression"; + object: K.ExpressionKind; + property: K.IdentifierKind | K.ExpressionKind; + computed: boolean; +} +export interface RestElement extends Omit { + type: "RestElement"; + argument: K.PatternKind; + typeAnnotation: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null; +} +export interface TypeAnnotation extends Omit { + type: "TypeAnnotation"; + typeAnnotation: K.FlowTypeKind; +} +export interface TSTypeAnnotation extends Omit { + type: "TSTypeAnnotation"; + typeAnnotation: K.TSTypeKind | K.TSTypeAnnotationKind; +} +export interface SpreadElementPattern extends Omit { + type: "SpreadElementPattern"; + argument: K.PatternKind; +} +export interface ArrowFunctionExpression extends Omit, Omit { + type: "ArrowFunctionExpression"; + id: null; + body: K.BlockStatementKind | K.ExpressionKind; + generator: false; +} +export interface ForOfStatement extends Omit { + type: "ForOfStatement"; + left: K.VariableDeclarationKind | K.PatternKind; + right: K.ExpressionKind; + body: K.StatementKind; +} +export interface YieldExpression extends Omit { + type: "YieldExpression"; + argument: K.ExpressionKind | null; + delegate: boolean; +} +export interface GeneratorExpression extends Omit { + type: "GeneratorExpression"; + body: K.ExpressionKind; + blocks: K.ComprehensionBlockKind[]; + filter: K.ExpressionKind | null; +} +export interface ComprehensionBlock extends Omit { + type: "ComprehensionBlock"; + left: K.PatternKind; + right: K.ExpressionKind; + each: boolean; +} +export interface ComprehensionExpression extends Omit { + type: "ComprehensionExpression"; + body: K.ExpressionKind; + blocks: K.ComprehensionBlockKind[]; + filter: K.ExpressionKind | null; +} +export interface ObjectProperty extends Omit { + shorthand: boolean; + type: "ObjectProperty"; + key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind; + value: K.ExpressionKind | K.PatternKind; + accessibility: K.LiteralKind | null; + computed: boolean; +} +export interface PropertyPattern extends Omit { + type: "PropertyPattern"; + key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind; + pattern: K.PatternKind; + computed: boolean; +} +export interface ObjectPattern extends Omit { + type: "ObjectPattern"; + properties: (K.PropertyKind | K.PropertyPatternKind | K.SpreadPropertyPatternKind | K.SpreadPropertyKind | K.ObjectPropertyKind | K.RestPropertyKind)[]; + typeAnnotation: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null; + decorators: K.DecoratorKind[] | null; +} +export interface ArrayPattern extends Omit { + type: "ArrayPattern"; + elements: (K.PatternKind | K.SpreadElementKind | null)[]; +} +export interface MethodDefinition extends Omit { + type: "MethodDefinition"; + kind: "constructor" | "method" | "get" | "set"; + key: K.ExpressionKind; + value: K.FunctionKind; + computed: boolean; + static: boolean; + decorators: K.DecoratorKind[] | null; +} +export interface SpreadElement extends Omit { + type: "SpreadElement"; + argument: K.ExpressionKind; +} +export interface AssignmentPattern extends Omit { + type: "AssignmentPattern"; + left: K.PatternKind; + right: K.ExpressionKind; +} +export interface ClassPropertyDefinition extends Omit { + type: "ClassPropertyDefinition"; + definition: K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind; +} +export interface ClassProperty extends Omit { + type: "ClassProperty"; + key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind; + computed: boolean; + value: K.ExpressionKind | null; + static: boolean; + typeAnnotation: K.TypeAnnotationKind | K.TSTypeAnnotationKind | null; + variance: K.VarianceKind | "plus" | "minus" | null; +} +export interface ClassBody extends Omit { + type: "ClassBody"; + body: (K.MethodDefinitionKind | K.VariableDeclaratorKind | K.ClassPropertyDefinitionKind | K.ClassPropertyKind | K.ClassPrivatePropertyKind | K.ClassMethodKind | K.ClassPrivateMethodKind | K.TSDeclareMethodKind | K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[]; +} +export interface ClassDeclaration extends Omit { + type: "ClassDeclaration"; + id: K.IdentifierKind | null; + body: K.ClassBodyKind; + superClass: K.ExpressionKind | null; + typeParameters: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null; + superTypeParameters: K.TypeParameterInstantiationKind | K.TSTypeParameterInstantiationKind | null; + implements: K.ClassImplementsKind[] | K.TSExpressionWithTypeArgumentsKind[]; +} +export interface ClassExpression extends Omit { + type: "ClassExpression"; + id: K.IdentifierKind | null; + body: K.ClassBodyKind; + superClass: K.ExpressionKind | null; + typeParameters: K.TypeParameterDeclarationKind | K.TSTypeParameterDeclarationKind | null; + superTypeParameters: K.TypeParameterInstantiationKind | K.TSTypeParameterInstantiationKind | null; + implements: K.ClassImplementsKind[] | K.TSExpressionWithTypeArgumentsKind[]; +} +export interface Specifier extends Node { +} +export interface ModuleSpecifier extends Specifier { + local: K.IdentifierKind | null; + id: K.IdentifierKind | null; + name: K.IdentifierKind | null; +} +export interface ImportSpecifier extends Omit { + type: "ImportSpecifier"; + imported: K.IdentifierKind; +} +export interface ImportNamespaceSpecifier extends Omit { + type: "ImportNamespaceSpecifier"; +} +export interface ImportDefaultSpecifier extends Omit { + type: "ImportDefaultSpecifier"; +} +export interface ImportDeclaration extends Omit { + type: "ImportDeclaration"; + specifiers: (K.ImportSpecifierKind | K.ImportNamespaceSpecifierKind | K.ImportDefaultSpecifierKind)[]; + source: K.LiteralKind; + importKind: "value" | "type"; +} +export interface TaggedTemplateExpression extends Omit { + type: "TaggedTemplateExpression"; + tag: K.ExpressionKind; + quasi: K.TemplateLiteralKind; +} +export interface TemplateLiteral extends Omit { + type: "TemplateLiteral"; + quasis: K.TemplateElementKind[]; + expressions: K.ExpressionKind[]; +} +export interface TemplateElement extends Omit { + type: "TemplateElement"; + value: { + cooked: string; + raw: string; + }; + tail: boolean; +} +export interface SpreadProperty extends Omit { + type: "SpreadProperty"; + argument: K.ExpressionKind; +} +export interface SpreadPropertyPattern extends Omit { + type: "SpreadPropertyPattern"; + argument: K.PatternKind; +} +export interface AwaitExpression extends Omit { + type: "AwaitExpression"; + argument: K.ExpressionKind | null; + all: boolean; +} +export interface JSXAttribute extends Omit { + type: "JSXAttribute"; + name: K.JSXIdentifierKind | K.JSXNamespacedNameKind; + value: K.LiteralKind | K.JSXExpressionContainerKind | null; +} +export interface JSXIdentifier extends Omit { + type: "JSXIdentifier"; + name: string; +} +export interface JSXNamespacedName extends Omit { + type: "JSXNamespacedName"; + namespace: K.JSXIdentifierKind; + name: K.JSXIdentifierKind; +} +export interface JSXExpressionContainer extends Omit { + type: "JSXExpressionContainer"; + expression: K.ExpressionKind; +} +export interface JSXMemberExpression extends Omit { + type: "JSXMemberExpression"; + object: K.JSXIdentifierKind | K.JSXMemberExpressionKind; + property: K.JSXIdentifierKind; + computed: boolean; +} +export interface JSXSpreadAttribute extends Omit { + type: "JSXSpreadAttribute"; + argument: K.ExpressionKind; +} +export interface JSXElement extends Omit { + type: "JSXElement"; + openingElement: K.JSXOpeningElementKind; + closingElement: K.JSXClosingElementKind | null; + children: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[]; + name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind; + selfClosing: boolean; + attributes: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[]; +} +export interface JSXOpeningElement extends Omit { + type: "JSXOpeningElement"; + name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind; + attributes: (K.JSXAttributeKind | K.JSXSpreadAttributeKind)[]; + selfClosing: boolean; +} +export interface JSXClosingElement extends Omit { + type: "JSXClosingElement"; + name: K.JSXIdentifierKind | K.JSXNamespacedNameKind | K.JSXMemberExpressionKind; +} +export interface JSXFragment extends Omit { + type: "JSXFragment"; + openingElement: K.JSXOpeningFragmentKind; + closingElement: K.JSXClosingFragmentKind; + children: (K.JSXElementKind | K.JSXExpressionContainerKind | K.JSXFragmentKind | K.JSXTextKind | K.LiteralKind)[]; +} +export interface JSXText extends Omit { + type: "JSXText"; + value: string; +} +export interface JSXOpeningFragment extends Omit { + type: "JSXOpeningFragment"; +} +export interface JSXClosingFragment extends Omit { + type: "JSXClosingFragment"; +} +export interface JSXEmptyExpression extends Omit { + type: "JSXEmptyExpression"; +} +export interface JSXSpreadChild extends Omit { + type: "JSXSpreadChild"; + expression: K.ExpressionKind; +} +export interface TypeParameterDeclaration extends Omit { + type: "TypeParameterDeclaration"; + params: K.TypeParameterKind[]; +} +export interface TSTypeParameterDeclaration extends Omit { + type: "TSTypeParameterDeclaration"; + params: K.TSTypeParameterKind[]; +} +export interface TypeParameterInstantiation extends Omit { + type: "TypeParameterInstantiation"; + params: K.FlowTypeKind[]; +} +export interface TSTypeParameterInstantiation extends Omit { + type: "TSTypeParameterInstantiation"; + params: K.TSTypeKind[]; +} +export interface ClassImplements extends Omit { + type: "ClassImplements"; + id: K.IdentifierKind; + superClass: K.ExpressionKind | null; + typeParameters: K.TypeParameterInstantiationKind | null; +} +export interface TSType extends Node { +} +export interface TSExpressionWithTypeArguments extends Omit { + type: "TSExpressionWithTypeArguments"; + expression: K.IdentifierKind | K.TSQualifiedNameKind; + typeParameters: K.TSTypeParameterInstantiationKind | null; +} +export interface Flow extends Node { +} +export interface FlowType extends Flow { +} +export interface AnyTypeAnnotation extends Omit { + type: "AnyTypeAnnotation"; +} +export interface EmptyTypeAnnotation extends Omit { + type: "EmptyTypeAnnotation"; +} +export interface MixedTypeAnnotation extends Omit { + type: "MixedTypeAnnotation"; +} +export interface VoidTypeAnnotation extends Omit { + type: "VoidTypeAnnotation"; +} +export interface NumberTypeAnnotation extends Omit { + type: "NumberTypeAnnotation"; +} +export interface NumberLiteralTypeAnnotation extends Omit { + type: "NumberLiteralTypeAnnotation"; + value: number; + raw: string; +} +export interface NumericLiteralTypeAnnotation extends Omit { + type: "NumericLiteralTypeAnnotation"; + value: number; + raw: string; +} +export interface StringTypeAnnotation extends Omit { + type: "StringTypeAnnotation"; +} +export interface StringLiteralTypeAnnotation extends Omit { + type: "StringLiteralTypeAnnotation"; + value: string; + raw: string; +} +export interface BooleanTypeAnnotation extends Omit { + type: "BooleanTypeAnnotation"; +} +export interface BooleanLiteralTypeAnnotation extends Omit { + type: "BooleanLiteralTypeAnnotation"; + value: boolean; + raw: string; +} +export interface NullableTypeAnnotation extends Omit { + type: "NullableTypeAnnotation"; + typeAnnotation: K.FlowTypeKind; +} +export interface NullLiteralTypeAnnotation extends Omit { + type: "NullLiteralTypeAnnotation"; +} +export interface NullTypeAnnotation extends Omit { + type: "NullTypeAnnotation"; +} +export interface ThisTypeAnnotation extends Omit { + type: "ThisTypeAnnotation"; +} +export interface ExistsTypeAnnotation extends Omit { + type: "ExistsTypeAnnotation"; +} +export interface ExistentialTypeParam extends Omit { + type: "ExistentialTypeParam"; +} +export interface FunctionTypeAnnotation extends Omit { + type: "FunctionTypeAnnotation"; + params: K.FunctionTypeParamKind[]; + returnType: K.FlowTypeKind; + rest: K.FunctionTypeParamKind | null; + typeParameters: K.TypeParameterDeclarationKind | null; +} +export interface FunctionTypeParam extends Omit { + type: "FunctionTypeParam"; + name: K.IdentifierKind; + typeAnnotation: K.FlowTypeKind; + optional: boolean; +} +export interface ArrayTypeAnnotation extends Omit { + type: "ArrayTypeAnnotation"; + elementType: K.FlowTypeKind; +} +export interface ObjectTypeAnnotation extends Omit { + type: "ObjectTypeAnnotation"; + properties: (K.ObjectTypePropertyKind | K.ObjectTypeSpreadPropertyKind)[]; + indexers: K.ObjectTypeIndexerKind[]; + callProperties: K.ObjectTypeCallPropertyKind[]; + inexact: boolean | undefined; + exact: boolean; + internalSlots: K.ObjectTypeInternalSlotKind[]; +} +export interface ObjectTypeProperty extends Omit { + type: "ObjectTypeProperty"; + key: K.LiteralKind | K.IdentifierKind; + value: K.FlowTypeKind; + optional: boolean; + variance: K.VarianceKind | "plus" | "minus" | null; +} +export interface ObjectTypeSpreadProperty extends Omit { + type: "ObjectTypeSpreadProperty"; + argument: K.FlowTypeKind; +} +export interface ObjectTypeIndexer extends Omit { + type: "ObjectTypeIndexer"; + id: K.IdentifierKind; + key: K.FlowTypeKind; + value: K.FlowTypeKind; + variance: K.VarianceKind | "plus" | "minus" | null; +} +export interface ObjectTypeCallProperty extends Omit { + type: "ObjectTypeCallProperty"; + value: K.FunctionTypeAnnotationKind; + static: boolean; +} +export interface ObjectTypeInternalSlot extends Omit { + type: "ObjectTypeInternalSlot"; + id: K.IdentifierKind; + value: K.FlowTypeKind; + optional: boolean; + static: boolean; + method: boolean; +} +export interface Variance extends Omit { + type: "Variance"; + kind: "plus" | "minus"; +} +export interface QualifiedTypeIdentifier extends Omit { + type: "QualifiedTypeIdentifier"; + qualification: K.IdentifierKind | K.QualifiedTypeIdentifierKind; + id: K.IdentifierKind; +} +export interface GenericTypeAnnotation extends Omit { + type: "GenericTypeAnnotation"; + id: K.IdentifierKind | K.QualifiedTypeIdentifierKind; + typeParameters: K.TypeParameterInstantiationKind | null; +} +export interface MemberTypeAnnotation extends Omit { + type: "MemberTypeAnnotation"; + object: K.IdentifierKind; + property: K.MemberTypeAnnotationKind | K.GenericTypeAnnotationKind; +} +export interface UnionTypeAnnotation extends Omit { + type: "UnionTypeAnnotation"; + types: K.FlowTypeKind[]; +} +export interface IntersectionTypeAnnotation extends Omit { + type: "IntersectionTypeAnnotation"; + types: K.FlowTypeKind[]; +} +export interface TypeofTypeAnnotation extends Omit { + type: "TypeofTypeAnnotation"; + argument: K.FlowTypeKind; +} +export interface TypeParameter extends Omit { + type: "TypeParameter"; + name: string; + variance: K.VarianceKind | "plus" | "minus" | null; + bound: K.TypeAnnotationKind | null; +} +export interface InterfaceTypeAnnotation extends Omit { + type: "InterfaceTypeAnnotation"; + body: K.ObjectTypeAnnotationKind; + extends: K.InterfaceExtendsKind[] | null; +} +export interface InterfaceExtends extends Omit { + type: "InterfaceExtends"; + id: K.IdentifierKind; + typeParameters: K.TypeParameterInstantiationKind | null; +} +export interface InterfaceDeclaration extends Omit { + type: "InterfaceDeclaration"; + id: K.IdentifierKind; + typeParameters: K.TypeParameterDeclarationKind | null; + body: K.ObjectTypeAnnotationKind; + extends: K.InterfaceExtendsKind[]; +} +export interface DeclareInterface extends Omit { + type: "DeclareInterface"; +} +export interface TypeAlias extends Omit { + type: "TypeAlias"; + id: K.IdentifierKind; + typeParameters: K.TypeParameterDeclarationKind | null; + right: K.FlowTypeKind; +} +export interface OpaqueType extends Omit { + type: "OpaqueType"; + id: K.IdentifierKind; + typeParameters: K.TypeParameterDeclarationKind | null; + impltype: K.FlowTypeKind; + supertype: K.FlowTypeKind; +} +export interface DeclareTypeAlias extends Omit { + type: "DeclareTypeAlias"; +} +export interface DeclareOpaqueType extends Omit { + type: "DeclareOpaqueType"; +} +export interface TypeCastExpression extends Omit { + type: "TypeCastExpression"; + expression: K.ExpressionKind; + typeAnnotation: K.TypeAnnotationKind; +} +export interface TupleTypeAnnotation extends Omit { + type: "TupleTypeAnnotation"; + types: K.FlowTypeKind[]; +} +export interface DeclareVariable extends Omit { + type: "DeclareVariable"; + id: K.IdentifierKind; +} +export interface DeclareFunction extends Omit { + type: "DeclareFunction"; + id: K.IdentifierKind; +} +export interface DeclareClass extends Omit { + type: "DeclareClass"; +} +export interface DeclareModule extends Omit { + type: "DeclareModule"; + id: K.IdentifierKind | K.LiteralKind; + body: K.BlockStatementKind; +} +export interface DeclareModuleExports extends Omit { + type: "DeclareModuleExports"; + typeAnnotation: K.TypeAnnotationKind; +} +export interface DeclareExportDeclaration extends Omit { + type: "DeclareExportDeclaration"; + default: boolean; + declaration: K.DeclareVariableKind | K.DeclareFunctionKind | K.DeclareClassKind | K.FlowTypeKind | null; + specifiers: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[]; + source: K.LiteralKind | null; +} +export interface ExportSpecifier extends Omit { + type: "ExportSpecifier"; + exported: K.IdentifierKind; +} +export interface ExportBatchSpecifier extends Omit { + type: "ExportBatchSpecifier"; +} +export interface DeclareExportAllDeclaration extends Omit { + type: "DeclareExportAllDeclaration"; + source: K.LiteralKind | null; +} +export interface FlowPredicate extends Flow { +} +export interface InferredPredicate extends Omit { + type: "InferredPredicate"; +} +export interface DeclaredPredicate extends Omit { + type: "DeclaredPredicate"; + value: K.ExpressionKind; +} +export interface ExportDeclaration extends Omit { + type: "ExportDeclaration"; + default: boolean; + declaration: K.DeclarationKind | K.ExpressionKind | null; + specifiers: (K.ExportSpecifierKind | K.ExportBatchSpecifierKind)[]; + source: K.LiteralKind | null; +} +export interface Block extends Comment { + type: "Block"; +} +export interface Line extends Comment { + type: "Line"; +} +export interface Noop extends Omit { + type: "Noop"; +} +export interface DoExpression extends Omit { + type: "DoExpression"; + body: K.StatementKind[]; +} +export interface Super extends Omit { + type: "Super"; +} +export interface BindExpression extends Omit { + type: "BindExpression"; + object: K.ExpressionKind | null; + callee: K.ExpressionKind; +} +export interface Decorator extends Omit { + type: "Decorator"; + expression: K.ExpressionKind; +} +export interface MetaProperty extends Omit { + type: "MetaProperty"; + meta: K.IdentifierKind; + property: K.IdentifierKind; +} +export interface ParenthesizedExpression extends Omit { + type: "ParenthesizedExpression"; + expression: K.ExpressionKind; +} +export interface ExportDefaultDeclaration extends Omit { + type: "ExportDefaultDeclaration"; + declaration: K.DeclarationKind | K.ExpressionKind; +} +export interface ExportNamedDeclaration extends Omit { + type: "ExportNamedDeclaration"; + declaration: K.DeclarationKind | null; + specifiers: K.ExportSpecifierKind[]; + source: K.LiteralKind | null; +} +export interface ExportNamespaceSpecifier extends Omit { + type: "ExportNamespaceSpecifier"; + exported: K.IdentifierKind; +} +export interface ExportDefaultSpecifier extends Omit { + type: "ExportDefaultSpecifier"; + exported: K.IdentifierKind; +} +export interface ExportAllDeclaration extends Omit { + type: "ExportAllDeclaration"; + exported: K.IdentifierKind | null; + source: K.LiteralKind; +} +export interface CommentBlock extends Comment { + type: "CommentBlock"; +} +export interface CommentLine extends Comment { + type: "CommentLine"; +} +export interface Directive extends Omit { + type: "Directive"; + value: K.DirectiveLiteralKind; +} +export interface DirectiveLiteral extends Omit, Omit { + type: "DirectiveLiteral"; + value: string; +} +export interface InterpreterDirective extends Omit { + type: "InterpreterDirective"; + value: string; +} +export interface StringLiteral extends Omit { + type: "StringLiteral"; + value: string; +} +export interface NumericLiteral extends Omit { + type: "NumericLiteral"; + value: number; + raw: string | null; + extra: { + rawValue: number; + raw: string; + }; +} +export interface BigIntLiteral extends Omit { + type: "BigIntLiteral"; + value: string | number; + extra: { + rawValue: string; + raw: string; + }; +} +export interface NullLiteral extends Omit { + type: "NullLiteral"; + value: null; +} +export interface BooleanLiteral extends Omit { + type: "BooleanLiteral"; + value: boolean; +} +export interface RegExpLiteral extends Omit { + type: "RegExpLiteral"; + pattern: string; + flags: string; + value: RegExp; +} +export interface ObjectMethod extends Omit, Omit { + type: "ObjectMethod"; + kind: "method" | "get" | "set"; + key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind; + params: K.PatternKind[]; + body: K.BlockStatementKind; + computed: boolean; + generator: boolean; + async: boolean; + accessibility: K.LiteralKind | null; + decorators: K.DecoratorKind[] | null; +} +export interface ClassPrivateProperty extends Omit { + type: "ClassPrivateProperty"; + key: K.PrivateNameKind; + value: K.ExpressionKind | null; +} +export interface ClassMethod extends Omit, Omit { + type: "ClassMethod"; + key: K.LiteralKind | K.IdentifierKind | K.ExpressionKind; + kind: "get" | "set" | "method" | "constructor"; + body: K.BlockStatementKind; + computed: boolean; + static: boolean | null; + abstract: boolean | null; + access: "public" | "private" | "protected" | null; + accessibility: "public" | "private" | "protected" | null; + decorators: K.DecoratorKind[] | null; + optional: boolean | null; +} +export interface ClassPrivateMethod extends Omit, Omit { + type: "ClassPrivateMethod"; + key: K.PrivateNameKind; + kind: "get" | "set" | "method" | "constructor"; + body: K.BlockStatementKind; + computed: boolean; + static: boolean | null; + abstract: boolean | null; + access: "public" | "private" | "protected" | null; + accessibility: "public" | "private" | "protected" | null; + decorators: K.DecoratorKind[] | null; + optional: boolean | null; +} +export interface PrivateName extends Omit, Omit { + type: "PrivateName"; + id: K.IdentifierKind; +} +export interface RestProperty extends Omit { + type: "RestProperty"; + argument: K.ExpressionKind; +} +export interface ForAwaitStatement extends Omit { + type: "ForAwaitStatement"; + left: K.VariableDeclarationKind | K.ExpressionKind; + right: K.ExpressionKind; + body: K.StatementKind; +} +export interface Import extends Omit { + type: "Import"; +} +export interface TSQualifiedName extends Omit { + type: "TSQualifiedName"; + left: K.IdentifierKind | K.TSQualifiedNameKind; + right: K.IdentifierKind | K.TSQualifiedNameKind; +} +export interface TSTypeReference extends Omit { + type: "TSTypeReference"; + typeName: K.IdentifierKind | K.TSQualifiedNameKind; + typeParameters: K.TSTypeParameterInstantiationKind | null; +} +export interface TSHasOptionalTypeParameters { + typeParameters: K.TSTypeParameterDeclarationKind | null | undefined; +} +export interface TSHasOptionalTypeAnnotation { + typeAnnotation: K.TSTypeAnnotationKind | null; +} +export interface TSAsExpression extends Omit { + type: "TSAsExpression"; + expression: K.ExpressionKind; + typeAnnotation: K.TSTypeKind; + extra: { + parenthesized: boolean; + } | null; +} +export interface TSNonNullExpression extends Omit { + type: "TSNonNullExpression"; + expression: K.ExpressionKind; +} +export interface TSAnyKeyword extends Omit { + type: "TSAnyKeyword"; +} +export interface TSBooleanKeyword extends Omit { + type: "TSBooleanKeyword"; +} +export interface TSNeverKeyword extends Omit { + type: "TSNeverKeyword"; +} +export interface TSNullKeyword extends Omit { + type: "TSNullKeyword"; +} +export interface TSNumberKeyword extends Omit { + type: "TSNumberKeyword"; +} +export interface TSObjectKeyword extends Omit { + type: "TSObjectKeyword"; +} +export interface TSStringKeyword extends Omit { + type: "TSStringKeyword"; +} +export interface TSSymbolKeyword extends Omit { + type: "TSSymbolKeyword"; +} +export interface TSUndefinedKeyword extends Omit { + type: "TSUndefinedKeyword"; +} +export interface TSUnknownKeyword extends Omit { + type: "TSUnknownKeyword"; +} +export interface TSVoidKeyword extends Omit { + type: "TSVoidKeyword"; +} +export interface TSThisType extends Omit { + type: "TSThisType"; +} +export interface TSArrayType extends Omit { + type: "TSArrayType"; + elementType: K.TSTypeKind; +} +export interface TSLiteralType extends Omit { + type: "TSLiteralType"; + literal: K.NumericLiteralKind | K.StringLiteralKind | K.BooleanLiteralKind; +} +export interface TSUnionType extends Omit { + type: "TSUnionType"; + types: K.TSTypeKind[]; +} +export interface TSIntersectionType extends Omit { + type: "TSIntersectionType"; + types: K.TSTypeKind[]; +} +export interface TSConditionalType extends Omit { + type: "TSConditionalType"; + checkType: K.TSTypeKind; + extendsType: K.TSTypeKind; + trueType: K.TSTypeKind; + falseType: K.TSTypeKind; +} +export interface TSInferType extends Omit { + type: "TSInferType"; + typeParameter: K.TSTypeParameterKind; +} +export interface TSTypeParameter extends Omit { + type: "TSTypeParameter"; + name: string; + constraint: K.TSTypeKind | undefined; + default: K.TSTypeKind | undefined; +} +export interface TSParenthesizedType extends Omit { + type: "TSParenthesizedType"; + typeAnnotation: K.TSTypeKind; +} +export interface TSFunctionType extends Omit, TSHasOptionalTypeParameters, TSHasOptionalTypeAnnotation { + type: "TSFunctionType"; + parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[]; +} +export interface TSConstructorType extends Omit, TSHasOptionalTypeParameters, TSHasOptionalTypeAnnotation { + type: "TSConstructorType"; + parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[]; +} +export interface TSDeclareFunction extends Omit, TSHasOptionalTypeParameters { + type: "TSDeclareFunction"; + declare: boolean; + async: boolean; + generator: boolean; + id: K.IdentifierKind | null; + params: K.PatternKind[]; + returnType: K.TSTypeAnnotationKind | K.NoopKind | null; +} +export interface TSDeclareMethod extends Omit, TSHasOptionalTypeParameters { + type: "TSDeclareMethod"; + async: boolean; + generator: boolean; + params: K.PatternKind[]; + abstract: boolean; + accessibility: "public" | "private" | "protected" | undefined; + static: boolean; + computed: boolean; + optional: boolean; + key: K.IdentifierKind | K.StringLiteralKind | K.NumericLiteralKind | K.ExpressionKind; + kind: "get" | "set" | "method" | "constructor"; + access: "public" | "private" | "protected" | undefined; + decorators: K.DecoratorKind[] | null; + returnType: K.TSTypeAnnotationKind | K.NoopKind | null; +} +export interface TSMappedType extends Omit { + type: "TSMappedType"; + readonly: boolean | "+" | "-"; + typeParameter: K.TSTypeParameterKind; + optional: boolean | "+" | "-"; + typeAnnotation: K.TSTypeKind | null; +} +export interface TSTupleType extends Omit { + type: "TSTupleType"; + elementTypes: K.TSTypeKind[]; +} +export interface TSRestType extends Omit { + type: "TSRestType"; + typeAnnotation: K.TSTypeKind; +} +export interface TSOptionalType extends Omit { + type: "TSOptionalType"; + typeAnnotation: K.TSTypeKind; +} +export interface TSIndexedAccessType extends Omit { + type: "TSIndexedAccessType"; + objectType: K.TSTypeKind; + indexType: K.TSTypeKind; +} +export interface TSTypeOperator extends Omit { + type: "TSTypeOperator"; + operator: string; + typeAnnotation: K.TSTypeKind; +} +export interface TSIndexSignature extends Omit, TSHasOptionalTypeAnnotation { + type: "TSIndexSignature"; + parameters: K.IdentifierKind[]; + readonly: boolean; +} +export interface TSPropertySignature extends Omit, TSHasOptionalTypeAnnotation { + type: "TSPropertySignature"; + key: K.ExpressionKind; + computed: boolean; + readonly: boolean; + optional: boolean; + initializer: K.ExpressionKind | null; +} +export interface TSMethodSignature extends Omit, TSHasOptionalTypeParameters, TSHasOptionalTypeAnnotation { + type: "TSMethodSignature"; + key: K.ExpressionKind; + computed: boolean; + optional: boolean; + parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[]; +} +export interface TSTypePredicate extends Omit { + type: "TSTypePredicate"; + parameterName: K.IdentifierKind | K.TSThisTypeKind; + typeAnnotation: K.TSTypeAnnotationKind; +} +export interface TSCallSignatureDeclaration extends Omit, TSHasOptionalTypeParameters, TSHasOptionalTypeAnnotation { + type: "TSCallSignatureDeclaration"; + parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[]; +} +export interface TSConstructSignatureDeclaration extends Omit, TSHasOptionalTypeParameters, TSHasOptionalTypeAnnotation { + type: "TSConstructSignatureDeclaration"; + parameters: (K.IdentifierKind | K.RestElementKind | K.ObjectPatternKind)[]; +} +export interface TSEnumMember extends Omit { + type: "TSEnumMember"; + id: K.IdentifierKind | K.StringLiteralKind; + initializer: K.ExpressionKind | null; +} +export interface TSTypeQuery extends Omit { + type: "TSTypeQuery"; + exprName: K.IdentifierKind | K.TSQualifiedNameKind; +} +export interface TSTypeLiteral extends Omit { + type: "TSTypeLiteral"; + members: (K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[]; +} +export interface TSTypeAssertion extends Omit { + type: "TSTypeAssertion"; + typeAnnotation: K.TSTypeKind; + expression: K.ExpressionKind; + extra: { + parenthesized: boolean; + } | null; +} +export interface TSEnumDeclaration extends Omit { + type: "TSEnumDeclaration"; + id: K.IdentifierKind; + const: boolean; + declare: boolean; + members: K.TSEnumMemberKind[]; + initializer: K.ExpressionKind | null; +} +export interface TSTypeAliasDeclaration extends Omit, TSHasOptionalTypeParameters { + type: "TSTypeAliasDeclaration"; + id: K.IdentifierKind; + declare: boolean; + typeAnnotation: K.TSTypeKind; +} +export interface TSModuleBlock extends Omit { + type: "TSModuleBlock"; + body: K.StatementKind[]; +} +export interface TSModuleDeclaration extends Omit { + type: "TSModuleDeclaration"; + id: K.StringLiteralKind | K.IdentifierKind | K.TSQualifiedNameKind; + declare: boolean; + global: boolean; + body: K.TSModuleBlockKind | K.TSModuleDeclarationKind | null; +} +export interface TSImportEqualsDeclaration extends Omit { + type: "TSImportEqualsDeclaration"; + id: K.IdentifierKind; + isExport: boolean; + moduleReference: K.IdentifierKind | K.TSQualifiedNameKind | K.TSExternalModuleReferenceKind; +} +export interface TSExternalModuleReference extends Omit { + type: "TSExternalModuleReference"; + expression: K.StringLiteralKind; +} +export interface TSExportAssignment extends Omit { + type: "TSExportAssignment"; + expression: K.ExpressionKind; +} +export interface TSNamespaceExportDeclaration extends Omit { + type: "TSNamespaceExportDeclaration"; + id: K.IdentifierKind; +} +export interface TSInterfaceBody extends Omit { + type: "TSInterfaceBody"; + body: (K.TSCallSignatureDeclarationKind | K.TSConstructSignatureDeclarationKind | K.TSIndexSignatureKind | K.TSMethodSignatureKind | K.TSPropertySignatureKind)[]; +} +export interface TSInterfaceDeclaration extends Omit, TSHasOptionalTypeParameters { + type: "TSInterfaceDeclaration"; + id: K.IdentifierKind | K.TSQualifiedNameKind; + declare: boolean; + extends: K.TSExpressionWithTypeArgumentsKind[] | null; + body: K.TSInterfaceBodyKind; +} +export interface TSParameterProperty extends Omit { + type: "TSParameterProperty"; + accessibility: "public" | "private" | "protected" | undefined; + readonly: boolean; + parameter: K.IdentifierKind | K.AssignmentPatternKind; +} +export interface OptionalMemberExpression extends Omit { + type: "OptionalMemberExpression"; + optional: boolean; +} +export interface OptionalCallExpression extends Omit { + type: "OptionalCallExpression"; + optional: boolean; +} +export declare type ASTNode = File | Program | Identifier | BlockStatement | EmptyStatement | ExpressionStatement | IfStatement | LabeledStatement | BreakStatement | ContinueStatement | WithStatement | SwitchStatement | SwitchCase | ReturnStatement | ThrowStatement | TryStatement | CatchClause | WhileStatement | DoWhileStatement | ForStatement | VariableDeclaration | ForInStatement | DebuggerStatement | FunctionDeclaration | FunctionExpression | VariableDeclarator | ThisExpression | ArrayExpression | ObjectExpression | Property | Literal | SequenceExpression | UnaryExpression | BinaryExpression | AssignmentExpression | UpdateExpression | LogicalExpression | ConditionalExpression | NewExpression | CallExpression | MemberExpression | RestElement | TypeAnnotation | TSTypeAnnotation | SpreadElementPattern | ArrowFunctionExpression | ForOfStatement | YieldExpression | GeneratorExpression | ComprehensionBlock | ComprehensionExpression | ObjectProperty | PropertyPattern | ObjectPattern | ArrayPattern | MethodDefinition | SpreadElement | AssignmentPattern | ClassPropertyDefinition | ClassProperty | ClassBody | ClassDeclaration | ClassExpression | ImportSpecifier | ImportNamespaceSpecifier | ImportDefaultSpecifier | ImportDeclaration | TaggedTemplateExpression | TemplateLiteral | TemplateElement | SpreadProperty | SpreadPropertyPattern | AwaitExpression | JSXAttribute | JSXIdentifier | JSXNamespacedName | JSXExpressionContainer | JSXMemberExpression | JSXSpreadAttribute | JSXElement | JSXOpeningElement | JSXClosingElement | JSXFragment | JSXText | JSXOpeningFragment | JSXClosingFragment | JSXEmptyExpression | JSXSpreadChild | TypeParameterDeclaration | TSTypeParameterDeclaration | TypeParameterInstantiation | TSTypeParameterInstantiation | ClassImplements | TSExpressionWithTypeArguments | AnyTypeAnnotation | EmptyTypeAnnotation | MixedTypeAnnotation | VoidTypeAnnotation | NumberTypeAnnotation | NumberLiteralTypeAnnotation | NumericLiteralTypeAnnotation | StringTypeAnnotation | StringLiteralTypeAnnotation | BooleanTypeAnnotation | BooleanLiteralTypeAnnotation | NullableTypeAnnotation | NullLiteralTypeAnnotation | NullTypeAnnotation | ThisTypeAnnotation | ExistsTypeAnnotation | ExistentialTypeParam | FunctionTypeAnnotation | FunctionTypeParam | ArrayTypeAnnotation | ObjectTypeAnnotation | ObjectTypeProperty | ObjectTypeSpreadProperty | ObjectTypeIndexer | ObjectTypeCallProperty | ObjectTypeInternalSlot | Variance | QualifiedTypeIdentifier | GenericTypeAnnotation | MemberTypeAnnotation | UnionTypeAnnotation | IntersectionTypeAnnotation | TypeofTypeAnnotation | TypeParameter | InterfaceTypeAnnotation | InterfaceExtends | InterfaceDeclaration | DeclareInterface | TypeAlias | OpaqueType | DeclareTypeAlias | DeclareOpaqueType | TypeCastExpression | TupleTypeAnnotation | DeclareVariable | DeclareFunction | DeclareClass | DeclareModule | DeclareModuleExports | DeclareExportDeclaration | ExportSpecifier | ExportBatchSpecifier | DeclareExportAllDeclaration | InferredPredicate | DeclaredPredicate | ExportDeclaration | Block | Line | Noop | DoExpression | Super | BindExpression | Decorator | MetaProperty | ParenthesizedExpression | ExportDefaultDeclaration | ExportNamedDeclaration | ExportNamespaceSpecifier | ExportDefaultSpecifier | ExportAllDeclaration | CommentBlock | CommentLine | Directive | DirectiveLiteral | InterpreterDirective | StringLiteral | NumericLiteral | BigIntLiteral | NullLiteral | BooleanLiteral | RegExpLiteral | ObjectMethod | ClassPrivateProperty | ClassMethod | ClassPrivateMethod | PrivateName | RestProperty | ForAwaitStatement | Import | TSQualifiedName | TSTypeReference | TSAsExpression | TSNonNullExpression | TSAnyKeyword | TSBooleanKeyword | TSNeverKeyword | TSNullKeyword | TSNumberKeyword | TSObjectKeyword | TSStringKeyword | TSSymbolKeyword | TSUndefinedKeyword | TSUnknownKeyword | TSVoidKeyword | TSThisType | TSArrayType | TSLiteralType | TSUnionType | TSIntersectionType | TSConditionalType | TSInferType | TSTypeParameter | TSParenthesizedType | TSFunctionType | TSConstructorType | TSDeclareFunction | TSDeclareMethod | TSMappedType | TSTupleType | TSRestType | TSOptionalType | TSIndexedAccessType | TSTypeOperator | TSIndexSignature | TSPropertySignature | TSMethodSignature | TSTypePredicate | TSCallSignatureDeclaration | TSConstructSignatureDeclaration | TSEnumMember | TSTypeQuery | TSTypeLiteral | TSTypeAssertion | TSEnumDeclaration | TSTypeAliasDeclaration | TSModuleBlock | TSModuleDeclaration | TSImportEqualsDeclaration | TSExternalModuleReference | TSExportAssignment | TSNamespaceExportDeclaration | TSInterfaceBody | TSInterfaceDeclaration | TSParameterProperty | OptionalMemberExpression | OptionalCallExpression; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/nodes.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/nodes.js" new file mode 100644 index 0000000000000000000000000000000000000000..c8ad2e549bdc6801e0d1c80b0308d4b9bd4985ce --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/nodes.js" @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/visitor.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/visitor.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..82bfd769ecdb1972df9f2a7a24e41bc150b3908e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/visitor.d.ts" @@ -0,0 +1,263 @@ +import { NodePath } from "../lib/node-path"; +import { Context } from "../lib/path-visitor"; +import * as N from "./nodes"; +export interface Visitor { + visitPrintable?(this: Context & M, path: NodePath): any; + visitSourceLocation?(this: Context & M, path: NodePath): any; + visitNode?(this: Context & M, path: NodePath): any; + visitComment?(this: Context & M, path: NodePath): any; + visitPosition?(this: Context & M, path: NodePath): any; + visitFile?(this: Context & M, path: NodePath): any; + visitProgram?(this: Context & M, path: NodePath): any; + visitStatement?(this: Context & M, path: NodePath): any; + visitFunction?(this: Context & M, path: NodePath): any; + visitPattern?(this: Context & M, path: NodePath): any; + visitExpression?(this: Context & M, path: NodePath): any; + visitIdentifier?(this: Context & M, path: NodePath): any; + visitBlockStatement?(this: Context & M, path: NodePath): any; + visitEmptyStatement?(this: Context & M, path: NodePath): any; + visitExpressionStatement?(this: Context & M, path: NodePath): any; + visitIfStatement?(this: Context & M, path: NodePath): any; + visitLabeledStatement?(this: Context & M, path: NodePath): any; + visitBreakStatement?(this: Context & M, path: NodePath): any; + visitContinueStatement?(this: Context & M, path: NodePath): any; + visitWithStatement?(this: Context & M, path: NodePath): any; + visitSwitchStatement?(this: Context & M, path: NodePath): any; + visitSwitchCase?(this: Context & M, path: NodePath): any; + visitReturnStatement?(this: Context & M, path: NodePath): any; + visitThrowStatement?(this: Context & M, path: NodePath): any; + visitTryStatement?(this: Context & M, path: NodePath): any; + visitCatchClause?(this: Context & M, path: NodePath): any; + visitWhileStatement?(this: Context & M, path: NodePath): any; + visitDoWhileStatement?(this: Context & M, path: NodePath): any; + visitForStatement?(this: Context & M, path: NodePath): any; + visitDeclaration?(this: Context & M, path: NodePath): any; + visitVariableDeclaration?(this: Context & M, path: NodePath): any; + visitForInStatement?(this: Context & M, path: NodePath): any; + visitDebuggerStatement?(this: Context & M, path: NodePath): any; + visitFunctionDeclaration?(this: Context & M, path: NodePath): any; + visitFunctionExpression?(this: Context & M, path: NodePath): any; + visitVariableDeclarator?(this: Context & M, path: NodePath): any; + visitThisExpression?(this: Context & M, path: NodePath): any; + visitArrayExpression?(this: Context & M, path: NodePath): any; + visitObjectExpression?(this: Context & M, path: NodePath): any; + visitProperty?(this: Context & M, path: NodePath): any; + visitLiteral?(this: Context & M, path: NodePath): any; + visitSequenceExpression?(this: Context & M, path: NodePath): any; + visitUnaryExpression?(this: Context & M, path: NodePath): any; + visitBinaryExpression?(this: Context & M, path: NodePath): any; + visitAssignmentExpression?(this: Context & M, path: NodePath): any; + visitUpdateExpression?(this: Context & M, path: NodePath): any; + visitLogicalExpression?(this: Context & M, path: NodePath): any; + visitConditionalExpression?(this: Context & M, path: NodePath): any; + visitNewExpression?(this: Context & M, path: NodePath): any; + visitCallExpression?(this: Context & M, path: NodePath): any; + visitMemberExpression?(this: Context & M, path: NodePath): any; + visitRestElement?(this: Context & M, path: NodePath): any; + visitTypeAnnotation?(this: Context & M, path: NodePath): any; + visitTSTypeAnnotation?(this: Context & M, path: NodePath): any; + visitSpreadElementPattern?(this: Context & M, path: NodePath): any; + visitArrowFunctionExpression?(this: Context & M, path: NodePath): any; + visitForOfStatement?(this: Context & M, path: NodePath): any; + visitYieldExpression?(this: Context & M, path: NodePath): any; + visitGeneratorExpression?(this: Context & M, path: NodePath): any; + visitComprehensionBlock?(this: Context & M, path: NodePath): any; + visitComprehensionExpression?(this: Context & M, path: NodePath): any; + visitObjectProperty?(this: Context & M, path: NodePath): any; + visitPropertyPattern?(this: Context & M, path: NodePath): any; + visitObjectPattern?(this: Context & M, path: NodePath): any; + visitArrayPattern?(this: Context & M, path: NodePath): any; + visitMethodDefinition?(this: Context & M, path: NodePath): any; + visitSpreadElement?(this: Context & M, path: NodePath): any; + visitAssignmentPattern?(this: Context & M, path: NodePath): any; + visitClassPropertyDefinition?(this: Context & M, path: NodePath): any; + visitClassProperty?(this: Context & M, path: NodePath): any; + visitClassBody?(this: Context & M, path: NodePath): any; + visitClassDeclaration?(this: Context & M, path: NodePath): any; + visitClassExpression?(this: Context & M, path: NodePath): any; + visitSpecifier?(this: Context & M, path: NodePath): any; + visitModuleSpecifier?(this: Context & M, path: NodePath): any; + visitImportSpecifier?(this: Context & M, path: NodePath): any; + visitImportNamespaceSpecifier?(this: Context & M, path: NodePath): any; + visitImportDefaultSpecifier?(this: Context & M, path: NodePath): any; + visitImportDeclaration?(this: Context & M, path: NodePath): any; + visitTaggedTemplateExpression?(this: Context & M, path: NodePath): any; + visitTemplateLiteral?(this: Context & M, path: NodePath): any; + visitTemplateElement?(this: Context & M, path: NodePath): any; + visitSpreadProperty?(this: Context & M, path: NodePath): any; + visitSpreadPropertyPattern?(this: Context & M, path: NodePath): any; + visitAwaitExpression?(this: Context & M, path: NodePath): any; + visitJSXAttribute?(this: Context & M, path: NodePath): any; + visitJSXIdentifier?(this: Context & M, path: NodePath): any; + visitJSXNamespacedName?(this: Context & M, path: NodePath): any; + visitJSXExpressionContainer?(this: Context & M, path: NodePath): any; + visitJSXMemberExpression?(this: Context & M, path: NodePath): any; + visitJSXSpreadAttribute?(this: Context & M, path: NodePath): any; + visitJSXElement?(this: Context & M, path: NodePath): any; + visitJSXOpeningElement?(this: Context & M, path: NodePath): any; + visitJSXClosingElement?(this: Context & M, path: NodePath): any; + visitJSXFragment?(this: Context & M, path: NodePath): any; + visitJSXText?(this: Context & M, path: NodePath): any; + visitJSXOpeningFragment?(this: Context & M, path: NodePath): any; + visitJSXClosingFragment?(this: Context & M, path: NodePath): any; + visitJSXEmptyExpression?(this: Context & M, path: NodePath): any; + visitJSXSpreadChild?(this: Context & M, path: NodePath): any; + visitTypeParameterDeclaration?(this: Context & M, path: NodePath): any; + visitTSTypeParameterDeclaration?(this: Context & M, path: NodePath): any; + visitTypeParameterInstantiation?(this: Context & M, path: NodePath): any; + visitTSTypeParameterInstantiation?(this: Context & M, path: NodePath): any; + visitClassImplements?(this: Context & M, path: NodePath): any; + visitTSType?(this: Context & M, path: NodePath): any; + visitTSExpressionWithTypeArguments?(this: Context & M, path: NodePath): any; + visitFlow?(this: Context & M, path: NodePath): any; + visitFlowType?(this: Context & M, path: NodePath): any; + visitAnyTypeAnnotation?(this: Context & M, path: NodePath): any; + visitEmptyTypeAnnotation?(this: Context & M, path: NodePath): any; + visitMixedTypeAnnotation?(this: Context & M, path: NodePath): any; + visitVoidTypeAnnotation?(this: Context & M, path: NodePath): any; + visitNumberTypeAnnotation?(this: Context & M, path: NodePath): any; + visitNumberLiteralTypeAnnotation?(this: Context & M, path: NodePath): any; + visitNumericLiteralTypeAnnotation?(this: Context & M, path: NodePath): any; + visitStringTypeAnnotation?(this: Context & M, path: NodePath): any; + visitStringLiteralTypeAnnotation?(this: Context & M, path: NodePath): any; + visitBooleanTypeAnnotation?(this: Context & M, path: NodePath): any; + visitBooleanLiteralTypeAnnotation?(this: Context & M, path: NodePath): any; + visitNullableTypeAnnotation?(this: Context & M, path: NodePath): any; + visitNullLiteralTypeAnnotation?(this: Context & M, path: NodePath): any; + visitNullTypeAnnotation?(this: Context & M, path: NodePath): any; + visitThisTypeAnnotation?(this: Context & M, path: NodePath): any; + visitExistsTypeAnnotation?(this: Context & M, path: NodePath): any; + visitExistentialTypeParam?(this: Context & M, path: NodePath): any; + visitFunctionTypeAnnotation?(this: Context & M, path: NodePath): any; + visitFunctionTypeParam?(this: Context & M, path: NodePath): any; + visitArrayTypeAnnotation?(this: Context & M, path: NodePath): any; + visitObjectTypeAnnotation?(this: Context & M, path: NodePath): any; + visitObjectTypeProperty?(this: Context & M, path: NodePath): any; + visitObjectTypeSpreadProperty?(this: Context & M, path: NodePath): any; + visitObjectTypeIndexer?(this: Context & M, path: NodePath): any; + visitObjectTypeCallProperty?(this: Context & M, path: NodePath): any; + visitObjectTypeInternalSlot?(this: Context & M, path: NodePath): any; + visitVariance?(this: Context & M, path: NodePath): any; + visitQualifiedTypeIdentifier?(this: Context & M, path: NodePath): any; + visitGenericTypeAnnotation?(this: Context & M, path: NodePath): any; + visitMemberTypeAnnotation?(this: Context & M, path: NodePath): any; + visitUnionTypeAnnotation?(this: Context & M, path: NodePath): any; + visitIntersectionTypeAnnotation?(this: Context & M, path: NodePath): any; + visitTypeofTypeAnnotation?(this: Context & M, path: NodePath): any; + visitTypeParameter?(this: Context & M, path: NodePath): any; + visitInterfaceTypeAnnotation?(this: Context & M, path: NodePath): any; + visitInterfaceExtends?(this: Context & M, path: NodePath): any; + visitInterfaceDeclaration?(this: Context & M, path: NodePath): any; + visitDeclareInterface?(this: Context & M, path: NodePath): any; + visitTypeAlias?(this: Context & M, path: NodePath): any; + visitOpaqueType?(this: Context & M, path: NodePath): any; + visitDeclareTypeAlias?(this: Context & M, path: NodePath): any; + visitDeclareOpaqueType?(this: Context & M, path: NodePath): any; + visitTypeCastExpression?(this: Context & M, path: NodePath): any; + visitTupleTypeAnnotation?(this: Context & M, path: NodePath): any; + visitDeclareVariable?(this: Context & M, path: NodePath): any; + visitDeclareFunction?(this: Context & M, path: NodePath): any; + visitDeclareClass?(this: Context & M, path: NodePath): any; + visitDeclareModule?(this: Context & M, path: NodePath): any; + visitDeclareModuleExports?(this: Context & M, path: NodePath): any; + visitDeclareExportDeclaration?(this: Context & M, path: NodePath): any; + visitExportSpecifier?(this: Context & M, path: NodePath): any; + visitExportBatchSpecifier?(this: Context & M, path: NodePath): any; + visitDeclareExportAllDeclaration?(this: Context & M, path: NodePath): any; + visitFlowPredicate?(this: Context & M, path: NodePath): any; + visitInferredPredicate?(this: Context & M, path: NodePath): any; + visitDeclaredPredicate?(this: Context & M, path: NodePath): any; + visitExportDeclaration?(this: Context & M, path: NodePath): any; + visitBlock?(this: Context & M, path: NodePath): any; + visitLine?(this: Context & M, path: NodePath): any; + visitNoop?(this: Context & M, path: NodePath): any; + visitDoExpression?(this: Context & M, path: NodePath): any; + visitSuper?(this: Context & M, path: NodePath): any; + visitBindExpression?(this: Context & M, path: NodePath): any; + visitDecorator?(this: Context & M, path: NodePath): any; + visitMetaProperty?(this: Context & M, path: NodePath): any; + visitParenthesizedExpression?(this: Context & M, path: NodePath): any; + visitExportDefaultDeclaration?(this: Context & M, path: NodePath): any; + visitExportNamedDeclaration?(this: Context & M, path: NodePath): any; + visitExportNamespaceSpecifier?(this: Context & M, path: NodePath): any; + visitExportDefaultSpecifier?(this: Context & M, path: NodePath): any; + visitExportAllDeclaration?(this: Context & M, path: NodePath): any; + visitCommentBlock?(this: Context & M, path: NodePath): any; + visitCommentLine?(this: Context & M, path: NodePath): any; + visitDirective?(this: Context & M, path: NodePath): any; + visitDirectiveLiteral?(this: Context & M, path: NodePath): any; + visitInterpreterDirective?(this: Context & M, path: NodePath): any; + visitStringLiteral?(this: Context & M, path: NodePath): any; + visitNumericLiteral?(this: Context & M, path: NodePath): any; + visitBigIntLiteral?(this: Context & M, path: NodePath): any; + visitNullLiteral?(this: Context & M, path: NodePath): any; + visitBooleanLiteral?(this: Context & M, path: NodePath): any; + visitRegExpLiteral?(this: Context & M, path: NodePath): any; + visitObjectMethod?(this: Context & M, path: NodePath): any; + visitClassPrivateProperty?(this: Context & M, path: NodePath): any; + visitClassMethod?(this: Context & M, path: NodePath): any; + visitClassPrivateMethod?(this: Context & M, path: NodePath): any; + visitPrivateName?(this: Context & M, path: NodePath): any; + visitRestProperty?(this: Context & M, path: NodePath): any; + visitForAwaitStatement?(this: Context & M, path: NodePath): any; + visitImport?(this: Context & M, path: NodePath): any; + visitTSQualifiedName?(this: Context & M, path: NodePath): any; + visitTSTypeReference?(this: Context & M, path: NodePath): any; + visitTSHasOptionalTypeParameters?(this: Context & M, path: NodePath): any; + visitTSHasOptionalTypeAnnotation?(this: Context & M, path: NodePath): any; + visitTSAsExpression?(this: Context & M, path: NodePath): any; + visitTSNonNullExpression?(this: Context & M, path: NodePath): any; + visitTSAnyKeyword?(this: Context & M, path: NodePath): any; + visitTSBooleanKeyword?(this: Context & M, path: NodePath): any; + visitTSNeverKeyword?(this: Context & M, path: NodePath): any; + visitTSNullKeyword?(this: Context & M, path: NodePath): any; + visitTSNumberKeyword?(this: Context & M, path: NodePath): any; + visitTSObjectKeyword?(this: Context & M, path: NodePath): any; + visitTSStringKeyword?(this: Context & M, path: NodePath): any; + visitTSSymbolKeyword?(this: Context & M, path: NodePath): any; + visitTSUndefinedKeyword?(this: Context & M, path: NodePath): any; + visitTSUnknownKeyword?(this: Context & M, path: NodePath): any; + visitTSVoidKeyword?(this: Context & M, path: NodePath): any; + visitTSThisType?(this: Context & M, path: NodePath): any; + visitTSArrayType?(this: Context & M, path: NodePath): any; + visitTSLiteralType?(this: Context & M, path: NodePath): any; + visitTSUnionType?(this: Context & M, path: NodePath): any; + visitTSIntersectionType?(this: Context & M, path: NodePath): any; + visitTSConditionalType?(this: Context & M, path: NodePath): any; + visitTSInferType?(this: Context & M, path: NodePath): any; + visitTSTypeParameter?(this: Context & M, path: NodePath): any; + visitTSParenthesizedType?(this: Context & M, path: NodePath): any; + visitTSFunctionType?(this: Context & M, path: NodePath): any; + visitTSConstructorType?(this: Context & M, path: NodePath): any; + visitTSDeclareFunction?(this: Context & M, path: NodePath): any; + visitTSDeclareMethod?(this: Context & M, path: NodePath): any; + visitTSMappedType?(this: Context & M, path: NodePath): any; + visitTSTupleType?(this: Context & M, path: NodePath): any; + visitTSRestType?(this: Context & M, path: NodePath): any; + visitTSOptionalType?(this: Context & M, path: NodePath): any; + visitTSIndexedAccessType?(this: Context & M, path: NodePath): any; + visitTSTypeOperator?(this: Context & M, path: NodePath): any; + visitTSIndexSignature?(this: Context & M, path: NodePath): any; + visitTSPropertySignature?(this: Context & M, path: NodePath): any; + visitTSMethodSignature?(this: Context & M, path: NodePath): any; + visitTSTypePredicate?(this: Context & M, path: NodePath): any; + visitTSCallSignatureDeclaration?(this: Context & M, path: NodePath): any; + visitTSConstructSignatureDeclaration?(this: Context & M, path: NodePath): any; + visitTSEnumMember?(this: Context & M, path: NodePath): any; + visitTSTypeQuery?(this: Context & M, path: NodePath): any; + visitTSTypeLiteral?(this: Context & M, path: NodePath): any; + visitTSTypeAssertion?(this: Context & M, path: NodePath): any; + visitTSEnumDeclaration?(this: Context & M, path: NodePath): any; + visitTSTypeAliasDeclaration?(this: Context & M, path: NodePath): any; + visitTSModuleBlock?(this: Context & M, path: NodePath): any; + visitTSModuleDeclaration?(this: Context & M, path: NodePath): any; + visitTSImportEqualsDeclaration?(this: Context & M, path: NodePath): any; + visitTSExternalModuleReference?(this: Context & M, path: NodePath): any; + visitTSExportAssignment?(this: Context & M, path: NodePath): any; + visitTSNamespaceExportDeclaration?(this: Context & M, path: NodePath): any; + visitTSInterfaceBody?(this: Context & M, path: NodePath): any; + visitTSInterfaceDeclaration?(this: Context & M, path: NodePath): any; + visitTSParameterProperty?(this: Context & M, path: NodePath): any; + visitOptionalMemberExpression?(this: Context & M, path: NodePath): any; + visitOptionalCallExpression?(this: Context & M, path: NodePath): any; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/visitor.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/visitor.js" new file mode 100644 index 0000000000000000000000000000000000000000..c8ad2e549bdc6801e0d1c80b0308d4b9bd4985ce --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/gen/visitor.js" @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/equiv.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/equiv.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..bbc9e70385f26ec60636e87dad7debf103067e64 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/equiv.d.ts" @@ -0,0 +1,5 @@ +import { Fork } from "../types"; +export default function (fork: Fork): { + (a: any, b: any, problemPath?: any): boolean; + assert(a: any, b: any): void; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/equiv.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/equiv.js" new file mode 100644 index 0000000000000000000000000000000000000000..758c233c7335edac39fff4639d3bd4c7bcc6bda9 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/equiv.js" @@ -0,0 +1,156 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var types_1 = __importDefault(require("./types")); +function default_1(fork) { + var types = fork.use(types_1.default); + var getFieldNames = types.getFieldNames; + var getFieldValue = types.getFieldValue; + var isArray = types.builtInTypes.array; + var isObject = types.builtInTypes.object; + var isDate = types.builtInTypes.Date; + var isRegExp = types.builtInTypes.RegExp; + var hasOwn = Object.prototype.hasOwnProperty; + function astNodesAreEquivalent(a, b, problemPath) { + if (isArray.check(problemPath)) { + problemPath.length = 0; + } + else { + problemPath = null; + } + return areEquivalent(a, b, problemPath); + } + astNodesAreEquivalent.assert = function (a, b) { + var problemPath = []; + if (!astNodesAreEquivalent(a, b, problemPath)) { + if (problemPath.length === 0) { + if (a !== b) { + throw new Error("Nodes must be equal"); + } + } + else { + throw new Error("Nodes differ in the following path: " + + problemPath.map(subscriptForProperty).join("")); + } + } + }; + function subscriptForProperty(property) { + if (/[_$a-z][_$a-z0-9]*/i.test(property)) { + return "." + property; + } + return "[" + JSON.stringify(property) + "]"; + } + function areEquivalent(a, b, problemPath) { + if (a === b) { + return true; + } + if (isArray.check(a)) { + return arraysAreEquivalent(a, b, problemPath); + } + if (isObject.check(a)) { + return objectsAreEquivalent(a, b, problemPath); + } + if (isDate.check(a)) { + return isDate.check(b) && (+a === +b); + } + if (isRegExp.check(a)) { + return isRegExp.check(b) && (a.source === b.source && + a.global === b.global && + a.multiline === b.multiline && + a.ignoreCase === b.ignoreCase); + } + return a == b; + } + function arraysAreEquivalent(a, b, problemPath) { + isArray.assert(a); + var aLength = a.length; + if (!isArray.check(b) || b.length !== aLength) { + if (problemPath) { + problemPath.push("length"); + } + return false; + } + for (var i = 0; i < aLength; ++i) { + if (problemPath) { + problemPath.push(i); + } + if (i in a !== i in b) { + return false; + } + if (!areEquivalent(a[i], b[i], problemPath)) { + return false; + } + if (problemPath) { + var problemPathTail = problemPath.pop(); + if (problemPathTail !== i) { + throw new Error("" + problemPathTail); + } + } + } + return true; + } + function objectsAreEquivalent(a, b, problemPath) { + isObject.assert(a); + if (!isObject.check(b)) { + return false; + } + // Fast path for a common property of AST nodes. + if (a.type !== b.type) { + if (problemPath) { + problemPath.push("type"); + } + return false; + } + var aNames = getFieldNames(a); + var aNameCount = aNames.length; + var bNames = getFieldNames(b); + var bNameCount = bNames.length; + if (aNameCount === bNameCount) { + for (var i = 0; i < aNameCount; ++i) { + var name = aNames[i]; + var aChild = getFieldValue(a, name); + var bChild = getFieldValue(b, name); + if (problemPath) { + problemPath.push(name); + } + if (!areEquivalent(aChild, bChild, problemPath)) { + return false; + } + if (problemPath) { + var problemPathTail = problemPath.pop(); + if (problemPathTail !== name) { + throw new Error("" + problemPathTail); + } + } + } + return true; + } + if (!problemPath) { + return false; + } + // Since aNameCount !== bNameCount, we need to find some name that's + // missing in aNames but present in bNames, or vice-versa. + var seenNames = Object.create(null); + for (i = 0; i < aNameCount; ++i) { + seenNames[aNames[i]] = true; + } + for (i = 0; i < bNameCount; ++i) { + name = bNames[i]; + if (!hasOwn.call(seenNames, name)) { + problemPath.push(name); + return false; + } + delete seenNames[name]; + } + for (name in seenNames) { + problemPath.push(name); + break; + } + return false; + } + return astNodesAreEquivalent; +} +exports.default = default_1; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/node-path.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/node-path.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..b8b11d186d5e5a440feb6a2c0c9b627ddc9bd1b2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/node-path.d.ts" @@ -0,0 +1,22 @@ +import { Fork } from "../types"; +import { ASTNode } from "./types"; +import { Path } from "./path"; +import { Scope } from "./scope"; +export interface NodePath extends Path { + node: N; + parent: any; + scope: any; + replace: Path['replace']; + prune(...args: any[]): any; + _computeNode(): any; + _computeParent(): any; + _computeScope(): Scope | null; + getValueProperty(name: any): any; + needsParens(assumeExpressionContext?: boolean): boolean; + canBeFirstInStatement(): boolean; + firstInStatement(): boolean; +} +export interface NodePathConstructor { + new (value: any, parentPath?: any, name?: any): NodePath; +} +export default function nodePathPlugin(fork: Fork): NodePathConstructor; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/node-path.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/node-path.js" new file mode 100644 index 0000000000000000000000000000000000000000..08ba0ff430b18cb2e3ec22584ea1156db6d328bd --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/node-path.js" @@ -0,0 +1,411 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var types_1 = __importDefault(require("./types")); +var path_1 = __importDefault(require("./path")); +var scope_1 = __importDefault(require("./scope")); +function nodePathPlugin(fork) { + var types = fork.use(types_1.default); + var n = types.namedTypes; + var b = types.builders; + var isNumber = types.builtInTypes.number; + var isArray = types.builtInTypes.array; + var Path = fork.use(path_1.default); + var Scope = fork.use(scope_1.default); + var NodePath = function NodePath(value, parentPath, name) { + if (!(this instanceof NodePath)) { + throw new Error("NodePath constructor cannot be invoked without 'new'"); + } + Path.call(this, value, parentPath, name); + }; + var NPp = NodePath.prototype = Object.create(Path.prototype, { + constructor: { + value: NodePath, + enumerable: false, + writable: true, + configurable: true + } + }); + Object.defineProperties(NPp, { + node: { + get: function () { + Object.defineProperty(this, "node", { + configurable: true, + value: this._computeNode() + }); + return this.node; + } + }, + parent: { + get: function () { + Object.defineProperty(this, "parent", { + configurable: true, + value: this._computeParent() + }); + return this.parent; + } + }, + scope: { + get: function () { + Object.defineProperty(this, "scope", { + configurable: true, + value: this._computeScope() + }); + return this.scope; + } + } + }); + NPp.replace = function () { + delete this.node; + delete this.parent; + delete this.scope; + return Path.prototype.replace.apply(this, arguments); + }; + NPp.prune = function () { + var remainingNodePath = this.parent; + this.replace(); + return cleanUpNodesAfterPrune(remainingNodePath); + }; + // The value of the first ancestor Path whose value is a Node. + NPp._computeNode = function () { + var value = this.value; + if (n.Node.check(value)) { + return value; + } + var pp = this.parentPath; + return pp && pp.node || null; + }; + // The first ancestor Path whose value is a Node distinct from this.node. + NPp._computeParent = function () { + var value = this.value; + var pp = this.parentPath; + if (!n.Node.check(value)) { + while (pp && !n.Node.check(pp.value)) { + pp = pp.parentPath; + } + if (pp) { + pp = pp.parentPath; + } + } + while (pp && !n.Node.check(pp.value)) { + pp = pp.parentPath; + } + return pp || null; + }; + // The closest enclosing scope that governs this node. + NPp._computeScope = function () { + var value = this.value; + var pp = this.parentPath; + var scope = pp && pp.scope; + if (n.Node.check(value) && + Scope.isEstablishedBy(value)) { + scope = new Scope(this, scope); + } + return scope || null; + }; + NPp.getValueProperty = function (name) { + return types.getFieldValue(this.value, name); + }; + /** + * Determine whether this.node needs to be wrapped in parentheses in order + * for a parser to reproduce the same local AST structure. + * + * For instance, in the expression `(1 + 2) * 3`, the BinaryExpression + * whose operator is "+" needs parentheses, because `1 + 2 * 3` would + * parse differently. + * + * If assumeExpressionContext === true, we don't worry about edge cases + * like an anonymous FunctionExpression appearing lexically first in its + * enclosing statement and thus needing parentheses to avoid being parsed + * as a FunctionDeclaration with a missing name. + */ + NPp.needsParens = function (assumeExpressionContext) { + var pp = this.parentPath; + if (!pp) { + return false; + } + var node = this.value; + // Only expressions need parentheses. + if (!n.Expression.check(node)) { + return false; + } + // Identifiers never need parentheses. + if (node.type === "Identifier") { + return false; + } + while (!n.Node.check(pp.value)) { + pp = pp.parentPath; + if (!pp) { + return false; + } + } + var parent = pp.value; + switch (node.type) { + case "UnaryExpression": + case "SpreadElement": + case "SpreadProperty": + return parent.type === "MemberExpression" + && this.name === "object" + && parent.object === node; + case "BinaryExpression": + case "LogicalExpression": + switch (parent.type) { + case "CallExpression": + return this.name === "callee" + && parent.callee === node; + case "UnaryExpression": + case "SpreadElement": + case "SpreadProperty": + return true; + case "MemberExpression": + return this.name === "object" + && parent.object === node; + case "BinaryExpression": + case "LogicalExpression": + var po = parent.operator; + var pp = PRECEDENCE[po]; + var no = node.operator; + var np = PRECEDENCE[no]; + if (pp > np) { + return true; + } + if (pp === np && this.name === "right") { + if (parent.right !== node) { + throw new Error("Nodes must be equal"); + } + return true; + } + default: + return false; + } + case "SequenceExpression": + switch (parent.type) { + case "ForStatement": + // Although parentheses wouldn't hurt around sequence + // expressions in the head of for loops, traditional style + // dictates that e.g. i++, j++ should not be wrapped with + // parentheses. + return false; + case "ExpressionStatement": + return this.name !== "expression"; + default: + // Otherwise err on the side of overparenthesization, adding + // explicit exceptions above if this proves overzealous. + return true; + } + case "YieldExpression": + switch (parent.type) { + case "BinaryExpression": + case "LogicalExpression": + case "UnaryExpression": + case "SpreadElement": + case "SpreadProperty": + case "CallExpression": + case "MemberExpression": + case "NewExpression": + case "ConditionalExpression": + case "YieldExpression": + return true; + default: + return false; + } + case "Literal": + return parent.type === "MemberExpression" + && isNumber.check(node.value) + && this.name === "object" + && parent.object === node; + case "AssignmentExpression": + case "ConditionalExpression": + switch (parent.type) { + case "UnaryExpression": + case "SpreadElement": + case "SpreadProperty": + case "BinaryExpression": + case "LogicalExpression": + return true; + case "CallExpression": + return this.name === "callee" + && parent.callee === node; + case "ConditionalExpression": + return this.name === "test" + && parent.test === node; + case "MemberExpression": + return this.name === "object" + && parent.object === node; + default: + return false; + } + default: + if (parent.type === "NewExpression" && + this.name === "callee" && + parent.callee === node) { + return containsCallExpression(node); + } + } + if (assumeExpressionContext !== true && + !this.canBeFirstInStatement() && + this.firstInStatement()) + return true; + return false; + }; + function isBinary(node) { + return n.BinaryExpression.check(node) + || n.LogicalExpression.check(node); + } + // @ts-ignore 'isUnaryLike' is declared but its value is never read. [6133] + function isUnaryLike(node) { + return n.UnaryExpression.check(node) + // I considered making SpreadElement and SpreadProperty subtypes + // of UnaryExpression, but they're not really Expression nodes. + || (n.SpreadElement && n.SpreadElement.check(node)) + || (n.SpreadProperty && n.SpreadProperty.check(node)); + } + var PRECEDENCE = {}; + [["||"], + ["&&"], + ["|"], + ["^"], + ["&"], + ["==", "===", "!=", "!=="], + ["<", ">", "<=", ">=", "in", "instanceof"], + [">>", "<<", ">>>"], + ["+", "-"], + ["*", "/", "%"] + ].forEach(function (tier, i) { + tier.forEach(function (op) { + PRECEDENCE[op] = i; + }); + }); + function containsCallExpression(node) { + if (n.CallExpression.check(node)) { + return true; + } + if (isArray.check(node)) { + return node.some(containsCallExpression); + } + if (n.Node.check(node)) { + return types.someField(node, function (_name, child) { + return containsCallExpression(child); + }); + } + return false; + } + NPp.canBeFirstInStatement = function () { + var node = this.node; + return !n.FunctionExpression.check(node) + && !n.ObjectExpression.check(node); + }; + NPp.firstInStatement = function () { + return firstInStatement(this); + }; + function firstInStatement(path) { + for (var node, parent; path.parent; path = path.parent) { + node = path.node; + parent = path.parent.node; + if (n.BlockStatement.check(parent) && + path.parent.name === "body" && + path.name === 0) { + if (parent.body[0] !== node) { + throw new Error("Nodes must be equal"); + } + return true; + } + if (n.ExpressionStatement.check(parent) && + path.name === "expression") { + if (parent.expression !== node) { + throw new Error("Nodes must be equal"); + } + return true; + } + if (n.SequenceExpression.check(parent) && + path.parent.name === "expressions" && + path.name === 0) { + if (parent.expressions[0] !== node) { + throw new Error("Nodes must be equal"); + } + continue; + } + if (n.CallExpression.check(parent) && + path.name === "callee") { + if (parent.callee !== node) { + throw new Error("Nodes must be equal"); + } + continue; + } + if (n.MemberExpression.check(parent) && + path.name === "object") { + if (parent.object !== node) { + throw new Error("Nodes must be equal"); + } + continue; + } + if (n.ConditionalExpression.check(parent) && + path.name === "test") { + if (parent.test !== node) { + throw new Error("Nodes must be equal"); + } + continue; + } + if (isBinary(parent) && + path.name === "left") { + if (parent.left !== node) { + throw new Error("Nodes must be equal"); + } + continue; + } + if (n.UnaryExpression.check(parent) && + !parent.prefix && + path.name === "argument") { + if (parent.argument !== node) { + throw new Error("Nodes must be equal"); + } + continue; + } + return false; + } + return true; + } + /** + * Pruning certain nodes will result in empty or incomplete nodes, here we clean those nodes up. + */ + function cleanUpNodesAfterPrune(remainingNodePath) { + if (n.VariableDeclaration.check(remainingNodePath.node)) { + var declarations = remainingNodePath.get('declarations').value; + if (!declarations || declarations.length === 0) { + return remainingNodePath.prune(); + } + } + else if (n.ExpressionStatement.check(remainingNodePath.node)) { + if (!remainingNodePath.get('expression').value) { + return remainingNodePath.prune(); + } + } + else if (n.IfStatement.check(remainingNodePath.node)) { + cleanUpIfStatementAfterPrune(remainingNodePath); + } + return remainingNodePath; + } + function cleanUpIfStatementAfterPrune(ifStatement) { + var testExpression = ifStatement.get('test').value; + var alternate = ifStatement.get('alternate').value; + var consequent = ifStatement.get('consequent').value; + if (!consequent && !alternate) { + var testExpressionStatement = b.expressionStatement(testExpression); + ifStatement.replace(testExpressionStatement); + } + else if (!consequent && alternate) { + var negatedTestExpression = b.unaryExpression('!', testExpression, true); + if (n.UnaryExpression.check(testExpression) && testExpression.operator === '!') { + negatedTestExpression = testExpression.argument; + } + ifStatement.get("test").replace(negatedTestExpression); + ifStatement.get("consequent").replace(alternate); + ifStatement.get("alternate").replace(); + } + } + return NodePath; +} +exports.default = nodePathPlugin; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/path-visitor.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/path-visitor.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..01e4ed6767d4ab3174241445cbf24380778b9a5a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/path-visitor.d.ts" @@ -0,0 +1,52 @@ +import { Fork, Omit } from "../types"; +import { ASTNode } from "./types"; +import { NodePath } from "./node-path"; +export interface PathVisitor { + _reusableContextStack: any; + _methodNameTable: any; + _shouldVisitComments: any; + Context: any; + _visiting: any; + _changeReported: any; + _abortRequested: boolean; + visit(...args: any[]): any; + reset(...args: any[]): any; + visitWithoutReset(path: any): any; + AbortRequest: any; + abort(): void; + visitor: any; + acquireContext(path: any): any; + releaseContext(context: any): void; + reportChanged(): void; + wasChangeReported(): any; +} +export interface PathVisitorStatics { + fromMethodsObject(methods?: any): Visitor; + visit(node: ASTNode, methods?: any): any; +} +export interface PathVisitorConstructor extends PathVisitorStatics { + new (): PathVisitor; +} +export interface Visitor extends PathVisitor { +} +export interface VisitorConstructor extends PathVisitorStatics { + new (): Visitor; +} +export interface VisitorMethods { + [visitorMethod: string]: (path: NodePath) => any; +} +export interface SharedContextMethods { + currentPath: any; + needToCallTraverse: boolean; + Context: any; + visitor: any; + reset(path: any, ...args: any[]): any; + invokeVisitorMethod(methodName: string): any; + traverse(path: any, newVisitor?: VisitorMethods): any; + visit(path: any, newVisitor?: VisitorMethods): any; + reportChanged(): void; + abort(): void; +} +export interface Context extends Omit, SharedContextMethods { +} +export default function pathVisitorPlugin(fork: Fork): PathVisitorConstructor; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/path-visitor.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/path-visitor.js" new file mode 100644 index 0000000000000000000000000000000000000000..2f1c8812d2d8d52a7ff7b05edb13d409bd78710b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/path-visitor.js" @@ -0,0 +1,345 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var types_1 = __importDefault(require("./types")); +var node_path_1 = __importDefault(require("./node-path")); +var hasOwn = Object.prototype.hasOwnProperty; +function pathVisitorPlugin(fork) { + var types = fork.use(types_1.default); + var NodePath = fork.use(node_path_1.default); + var isArray = types.builtInTypes.array; + var isObject = types.builtInTypes.object; + var isFunction = types.builtInTypes.function; + var undefined; + var PathVisitor = function PathVisitor() { + if (!(this instanceof PathVisitor)) { + throw new Error("PathVisitor constructor cannot be invoked without 'new'"); + } + // Permanent state. + this._reusableContextStack = []; + this._methodNameTable = computeMethodNameTable(this); + this._shouldVisitComments = + hasOwn.call(this._methodNameTable, "Block") || + hasOwn.call(this._methodNameTable, "Line"); + this.Context = makeContextConstructor(this); + // State reset every time PathVisitor.prototype.visit is called. + this._visiting = false; + this._changeReported = false; + }; + function computeMethodNameTable(visitor) { + var typeNames = Object.create(null); + for (var methodName in visitor) { + if (/^visit[A-Z]/.test(methodName)) { + typeNames[methodName.slice("visit".length)] = true; + } + } + var supertypeTable = types.computeSupertypeLookupTable(typeNames); + var methodNameTable = Object.create(null); + var typeNameKeys = Object.keys(supertypeTable); + var typeNameCount = typeNameKeys.length; + for (var i = 0; i < typeNameCount; ++i) { + var typeName = typeNameKeys[i]; + methodName = "visit" + supertypeTable[typeName]; + if (isFunction.check(visitor[methodName])) { + methodNameTable[typeName] = methodName; + } + } + return methodNameTable; + } + PathVisitor.fromMethodsObject = function fromMethodsObject(methods) { + if (methods instanceof PathVisitor) { + return methods; + } + if (!isObject.check(methods)) { + // An empty visitor? + return new PathVisitor; + } + var Visitor = function Visitor() { + if (!(this instanceof Visitor)) { + throw new Error("Visitor constructor cannot be invoked without 'new'"); + } + PathVisitor.call(this); + }; + var Vp = Visitor.prototype = Object.create(PVp); + Vp.constructor = Visitor; + extend(Vp, methods); + extend(Visitor, PathVisitor); + isFunction.assert(Visitor.fromMethodsObject); + isFunction.assert(Visitor.visit); + return new Visitor; + }; + function extend(target, source) { + for (var property in source) { + if (hasOwn.call(source, property)) { + target[property] = source[property]; + } + } + return target; + } + PathVisitor.visit = function visit(node, methods) { + return PathVisitor.fromMethodsObject(methods).visit(node); + }; + var PVp = PathVisitor.prototype; + PVp.visit = function () { + if (this._visiting) { + throw new Error("Recursively calling visitor.visit(path) resets visitor state. " + + "Try this.visit(path) or this.traverse(path) instead."); + } + // Private state that needs to be reset before every traversal. + this._visiting = true; + this._changeReported = false; + this._abortRequested = false; + var argc = arguments.length; + var args = new Array(argc); + for (var i = 0; i < argc; ++i) { + args[i] = arguments[i]; + } + if (!(args[0] instanceof NodePath)) { + args[0] = new NodePath({ root: args[0] }).get("root"); + } + // Called with the same arguments as .visit. + this.reset.apply(this, args); + var didNotThrow; + try { + var root = this.visitWithoutReset(args[0]); + didNotThrow = true; + } + finally { + this._visiting = false; + if (!didNotThrow && this._abortRequested) { + // If this.visitWithoutReset threw an exception and + // this._abortRequested was set to true, return the root of + // the AST instead of letting the exception propagate, so that + // client code does not have to provide a try-catch block to + // intercept the AbortRequest exception. Other kinds of + // exceptions will propagate without being intercepted and + // rethrown by a catch block, so their stacks will accurately + // reflect the original throwing context. + return args[0].value; + } + } + return root; + }; + PVp.AbortRequest = function AbortRequest() { }; + PVp.abort = function () { + var visitor = this; + visitor._abortRequested = true; + var request = new visitor.AbortRequest(); + // If you decide to catch this exception and stop it from propagating, + // make sure to call its cancel method to avoid silencing other + // exceptions that might be thrown later in the traversal. + request.cancel = function () { + visitor._abortRequested = false; + }; + throw request; + }; + PVp.reset = function (_path /*, additional arguments */) { + // Empty stub; may be reassigned or overridden by subclasses. + }; + PVp.visitWithoutReset = function (path) { + if (this instanceof this.Context) { + // Since this.Context.prototype === this, there's a chance we + // might accidentally call context.visitWithoutReset. If that + // happens, re-invoke the method against context.visitor. + return this.visitor.visitWithoutReset(path); + } + if (!(path instanceof NodePath)) { + throw new Error(""); + } + var value = path.value; + var methodName = value && + typeof value === "object" && + typeof value.type === "string" && + this._methodNameTable[value.type]; + if (methodName) { + var context = this.acquireContext(path); + try { + return context.invokeVisitorMethod(methodName); + } + finally { + this.releaseContext(context); + } + } + else { + // If there was no visitor method to call, visit the children of + // this node generically. + return visitChildren(path, this); + } + }; + function visitChildren(path, visitor) { + if (!(path instanceof NodePath)) { + throw new Error(""); + } + if (!(visitor instanceof PathVisitor)) { + throw new Error(""); + } + var value = path.value; + if (isArray.check(value)) { + path.each(visitor.visitWithoutReset, visitor); + } + else if (!isObject.check(value)) { + // No children to visit. + } + else { + var childNames = types.getFieldNames(value); + // The .comments field of the Node type is hidden, so we only + // visit it if the visitor defines visitBlock or visitLine, and + // value.comments is defined. + if (visitor._shouldVisitComments && + value.comments && + childNames.indexOf("comments") < 0) { + childNames.push("comments"); + } + var childCount = childNames.length; + var childPaths = []; + for (var i = 0; i < childCount; ++i) { + var childName = childNames[i]; + if (!hasOwn.call(value, childName)) { + value[childName] = types.getFieldValue(value, childName); + } + childPaths.push(path.get(childName)); + } + for (var i = 0; i < childCount; ++i) { + visitor.visitWithoutReset(childPaths[i]); + } + } + return path.value; + } + PVp.acquireContext = function (path) { + if (this._reusableContextStack.length === 0) { + return new this.Context(path); + } + return this._reusableContextStack.pop().reset(path); + }; + PVp.releaseContext = function (context) { + if (!(context instanceof this.Context)) { + throw new Error(""); + } + this._reusableContextStack.push(context); + context.currentPath = null; + }; + PVp.reportChanged = function () { + this._changeReported = true; + }; + PVp.wasChangeReported = function () { + return this._changeReported; + }; + function makeContextConstructor(visitor) { + function Context(path) { + if (!(this instanceof Context)) { + throw new Error(""); + } + if (!(this instanceof PathVisitor)) { + throw new Error(""); + } + if (!(path instanceof NodePath)) { + throw new Error(""); + } + Object.defineProperty(this, "visitor", { + value: visitor, + writable: false, + enumerable: true, + configurable: false + }); + this.currentPath = path; + this.needToCallTraverse = true; + Object.seal(this); + } + if (!(visitor instanceof PathVisitor)) { + throw new Error(""); + } + // Note that the visitor object is the prototype of Context.prototype, + // so all visitor methods are inherited by context objects. + var Cp = Context.prototype = Object.create(visitor); + Cp.constructor = Context; + extend(Cp, sharedContextProtoMethods); + return Context; + } + // Every PathVisitor has a different this.Context constructor and + // this.Context.prototype object, but those prototypes can all use the + // same reset, invokeVisitorMethod, and traverse function objects. + var sharedContextProtoMethods = Object.create(null); + sharedContextProtoMethods.reset = + function reset(path) { + if (!(this instanceof this.Context)) { + throw new Error(""); + } + if (!(path instanceof NodePath)) { + throw new Error(""); + } + this.currentPath = path; + this.needToCallTraverse = true; + return this; + }; + sharedContextProtoMethods.invokeVisitorMethod = + function invokeVisitorMethod(methodName) { + if (!(this instanceof this.Context)) { + throw new Error(""); + } + if (!(this.currentPath instanceof NodePath)) { + throw new Error(""); + } + var result = this.visitor[methodName].call(this, this.currentPath); + if (result === false) { + // Visitor methods return false to indicate that they have handled + // their own traversal needs, and we should not complain if + // this.needToCallTraverse is still true. + this.needToCallTraverse = false; + } + else if (result !== undefined) { + // Any other non-undefined value returned from the visitor method + // is interpreted as a replacement value. + this.currentPath = this.currentPath.replace(result)[0]; + if (this.needToCallTraverse) { + // If this.traverse still hasn't been called, visit the + // children of the replacement node. + this.traverse(this.currentPath); + } + } + if (this.needToCallTraverse !== false) { + throw new Error("Must either call this.traverse or return false in " + methodName); + } + var path = this.currentPath; + return path && path.value; + }; + sharedContextProtoMethods.traverse = + function traverse(path, newVisitor) { + if (!(this instanceof this.Context)) { + throw new Error(""); + } + if (!(path instanceof NodePath)) { + throw new Error(""); + } + if (!(this.currentPath instanceof NodePath)) { + throw new Error(""); + } + this.needToCallTraverse = false; + return visitChildren(path, PathVisitor.fromMethodsObject(newVisitor || this.visitor)); + }; + sharedContextProtoMethods.visit = + function visit(path, newVisitor) { + if (!(this instanceof this.Context)) { + throw new Error(""); + } + if (!(path instanceof NodePath)) { + throw new Error(""); + } + if (!(this.currentPath instanceof NodePath)) { + throw new Error(""); + } + this.needToCallTraverse = false; + return PathVisitor.fromMethodsObject(newVisitor || this.visitor).visitWithoutReset(path); + }; + sharedContextProtoMethods.reportChanged = function reportChanged() { + this.visitor.reportChanged(); + }; + sharedContextProtoMethods.abort = function abort() { + this.needToCallTraverse = false; + this.visitor.abort(); + }; + return PathVisitor; +} +exports.default = pathVisitorPlugin; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/path.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/path.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..feef1f1aa64cb194ea2212ea01024c265f950fbc --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/path.d.ts" @@ -0,0 +1,25 @@ +import { Fork } from "../types"; +import { ASTNode } from "./types"; +export interface Path { + value: V; + parentPath: any; + name: any; + __childCache: object | null; + getValueProperty(name: any): any; + get(...names: any[]): any; + each(callback: any, context: any): any; + map(callback: any, context: any): any; + filter(callback: any, context: any): any; + shift(): any; + unshift(...args: any[]): any; + push(...args: any[]): any; + pop(): any; + insertAt(index: number, ...args: any[]): any; + insertBefore(...args: any[]): any; + insertAfter(...args: any[]): any; + replace(replacement?: ASTNode, ...args: ASTNode[]): any; +} +export interface PathConstructor { + new (value: any, parentPath?: any, name?: any): Path; +} +export default function pathPlugin(fork: Fork): PathConstructor; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/path.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/path.js" new file mode 100644 index 0000000000000000000000000000000000000000..aed4c7989a6dbaf906a1acae5164d5913be9e0ce --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/path.js" @@ -0,0 +1,333 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var types_1 = __importDefault(require("./types")); +var Op = Object.prototype; +var hasOwn = Op.hasOwnProperty; +function pathPlugin(fork) { + var types = fork.use(types_1.default); + var isArray = types.builtInTypes.array; + var isNumber = types.builtInTypes.number; + var Path = function Path(value, parentPath, name) { + if (!(this instanceof Path)) { + throw new Error("Path constructor cannot be invoked without 'new'"); + } + if (parentPath) { + if (!(parentPath instanceof Path)) { + throw new Error(""); + } + } + else { + parentPath = null; + name = null; + } + // The value encapsulated by this Path, generally equal to + // parentPath.value[name] if we have a parentPath. + this.value = value; + // The immediate parent Path of this Path. + this.parentPath = parentPath; + // The name of the property of parentPath.value through which this + // Path's value was reached. + this.name = name; + // Calling path.get("child") multiple times always returns the same + // child Path object, for both performance and consistency reasons. + this.__childCache = null; + }; + var Pp = Path.prototype; + function getChildCache(path) { + // Lazily create the child cache. This also cheapens cache + // invalidation, since you can just reset path.__childCache to null. + return path.__childCache || (path.__childCache = Object.create(null)); + } + function getChildPath(path, name) { + var cache = getChildCache(path); + var actualChildValue = path.getValueProperty(name); + var childPath = cache[name]; + if (!hasOwn.call(cache, name) || + // Ensure consistency between cache and reality. + childPath.value !== actualChildValue) { + childPath = cache[name] = new path.constructor(actualChildValue, path, name); + } + return childPath; + } + // This method is designed to be overridden by subclasses that need to + // handle missing properties, etc. + Pp.getValueProperty = function getValueProperty(name) { + return this.value[name]; + }; + Pp.get = function get() { + var names = []; + for (var _i = 0; _i < arguments.length; _i++) { + names[_i] = arguments[_i]; + } + var path = this; + var count = names.length; + for (var i = 0; i < count; ++i) { + path = getChildPath(path, names[i]); + } + return path; + }; + Pp.each = function each(callback, context) { + var childPaths = []; + var len = this.value.length; + var i = 0; + // Collect all the original child paths before invoking the callback. + for (var i = 0; i < len; ++i) { + if (hasOwn.call(this.value, i)) { + childPaths[i] = this.get(i); + } + } + // Invoke the callback on just the original child paths, regardless of + // any modifications made to the array by the callback. I chose these + // semantics over cleverly invoking the callback on new elements because + // this way is much easier to reason about. + context = context || this; + for (i = 0; i < len; ++i) { + if (hasOwn.call(childPaths, i)) { + callback.call(context, childPaths[i]); + } + } + }; + Pp.map = function map(callback, context) { + var result = []; + this.each(function (childPath) { + result.push(callback.call(this, childPath)); + }, context); + return result; + }; + Pp.filter = function filter(callback, context) { + var result = []; + this.each(function (childPath) { + if (callback.call(this, childPath)) { + result.push(childPath); + } + }, context); + return result; + }; + function emptyMoves() { } + function getMoves(path, offset, start, end) { + isArray.assert(path.value); + if (offset === 0) { + return emptyMoves; + } + var length = path.value.length; + if (length < 1) { + return emptyMoves; + } + var argc = arguments.length; + if (argc === 2) { + start = 0; + end = length; + } + else if (argc === 3) { + start = Math.max(start, 0); + end = length; + } + else { + start = Math.max(start, 0); + end = Math.min(end, length); + } + isNumber.assert(start); + isNumber.assert(end); + var moves = Object.create(null); + var cache = getChildCache(path); + for (var i = start; i < end; ++i) { + if (hasOwn.call(path.value, i)) { + var childPath = path.get(i); + if (childPath.name !== i) { + throw new Error(""); + } + var newIndex = i + offset; + childPath.name = newIndex; + moves[newIndex] = childPath; + delete cache[i]; + } + } + delete cache.length; + return function () { + for (var newIndex in moves) { + var childPath = moves[newIndex]; + if (childPath.name !== +newIndex) { + throw new Error(""); + } + cache[newIndex] = childPath; + path.value[newIndex] = childPath.value; + } + }; + } + Pp.shift = function shift() { + var move = getMoves(this, -1); + var result = this.value.shift(); + move(); + return result; + }; + Pp.unshift = function unshift() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + var move = getMoves(this, args.length); + var result = this.value.unshift.apply(this.value, args); + move(); + return result; + }; + Pp.push = function push() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + isArray.assert(this.value); + delete getChildCache(this).length; + return this.value.push.apply(this.value, args); + }; + Pp.pop = function pop() { + isArray.assert(this.value); + var cache = getChildCache(this); + delete cache[this.value.length - 1]; + delete cache.length; + return this.value.pop(); + }; + Pp.insertAt = function insertAt(index) { + var argc = arguments.length; + var move = getMoves(this, argc - 1, index); + if (move === emptyMoves) { + return this; + } + index = Math.max(index, 0); + for (var i = 1; i < argc; ++i) { + this.value[index + i - 1] = arguments[i]; + } + move(); + return this; + }; + Pp.insertBefore = function insertBefore() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + var pp = this.parentPath; + var argc = args.length; + var insertAtArgs = [this.name]; + for (var i = 0; i < argc; ++i) { + insertAtArgs.push(args[i]); + } + return pp.insertAt.apply(pp, insertAtArgs); + }; + Pp.insertAfter = function insertAfter() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + var pp = this.parentPath; + var argc = args.length; + var insertAtArgs = [this.name + 1]; + for (var i = 0; i < argc; ++i) { + insertAtArgs.push(args[i]); + } + return pp.insertAt.apply(pp, insertAtArgs); + }; + function repairRelationshipWithParent(path) { + if (!(path instanceof Path)) { + throw new Error(""); + } + var pp = path.parentPath; + if (!pp) { + // Orphan paths have no relationship to repair. + return path; + } + var parentValue = pp.value; + var parentCache = getChildCache(pp); + // Make sure parentCache[path.name] is populated. + if (parentValue[path.name] === path.value) { + parentCache[path.name] = path; + } + else if (isArray.check(parentValue)) { + // Something caused path.name to become out of date, so attempt to + // recover by searching for path.value in parentValue. + var i = parentValue.indexOf(path.value); + if (i >= 0) { + parentCache[path.name = i] = path; + } + } + else { + // If path.value disagrees with parentValue[path.name], and + // path.name is not an array index, let path.value become the new + // parentValue[path.name] and update parentCache accordingly. + parentValue[path.name] = path.value; + parentCache[path.name] = path; + } + if (parentValue[path.name] !== path.value) { + throw new Error(""); + } + if (path.parentPath.get(path.name) !== path) { + throw new Error(""); + } + return path; + } + Pp.replace = function replace(replacement) { + var results = []; + var parentValue = this.parentPath.value; + var parentCache = getChildCache(this.parentPath); + var count = arguments.length; + repairRelationshipWithParent(this); + if (isArray.check(parentValue)) { + var originalLength = parentValue.length; + var move = getMoves(this.parentPath, count - 1, this.name + 1); + var spliceArgs = [this.name, 1]; + for (var i = 0; i < count; ++i) { + spliceArgs.push(arguments[i]); + } + var splicedOut = parentValue.splice.apply(parentValue, spliceArgs); + if (splicedOut[0] !== this.value) { + throw new Error(""); + } + if (parentValue.length !== (originalLength - 1 + count)) { + throw new Error(""); + } + move(); + if (count === 0) { + delete this.value; + delete parentCache[this.name]; + this.__childCache = null; + } + else { + if (parentValue[this.name] !== replacement) { + throw new Error(""); + } + if (this.value !== replacement) { + this.value = replacement; + this.__childCache = null; + } + for (i = 0; i < count; ++i) { + results.push(this.parentPath.get(this.name + i)); + } + if (results[0] !== this) { + throw new Error(""); + } + } + } + else if (count === 1) { + if (this.value !== replacement) { + this.__childCache = null; + } + this.value = parentValue[this.name] = replacement; + results.push(this); + } + else if (count === 0) { + delete parentValue[this.name]; + delete this.value; + this.__childCache = null; + // Leave this path cached as parentCache[this.name], even though + // it no longer has a value defined. + } + else { + throw new Error("Could not replace path"); + } + return results; + }; + return Path; +} +exports.default = pathPlugin; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/scope.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/scope.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..c4687d1da9eba11bf9d9db890f9c277c571548fc --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/scope.d.ts" @@ -0,0 +1,26 @@ +import { Fork } from "../types"; +export interface Scope { + path: any; + node: any; + isGlobal: boolean; + depth: number; + parent: any; + bindings: any; + types: any; + didScan: boolean; + declares(name: any): any; + declaresType(name: any): any; + declareTemporary(prefix?: any): any; + injectTemporary(identifier: any, init: any): any; + scan(force?: any): any; + getBindings(): any; + getTypes(): any; + lookup(name: any): any; + lookupType(name: any): any; + getGlobalScope(): Scope; +} +export interface ScopeConstructor { + new (path: any, parentScope: any): Scope; + isEstablishedBy(node: any): any; +} +export default function scopePlugin(fork: Fork): ScopeConstructor; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/scope.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/scope.js" new file mode 100644 index 0000000000000000000000000000000000000000..07dc7d496862e90f47640974999bed6763cbb66c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/scope.js" @@ -0,0 +1,312 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var types_1 = __importDefault(require("./types")); +var hasOwn = Object.prototype.hasOwnProperty; +function scopePlugin(fork) { + var types = fork.use(types_1.default); + var Type = types.Type; + var namedTypes = types.namedTypes; + var Node = namedTypes.Node; + var Expression = namedTypes.Expression; + var isArray = types.builtInTypes.array; + var b = types.builders; + var Scope = function Scope(path, parentScope) { + if (!(this instanceof Scope)) { + throw new Error("Scope constructor cannot be invoked without 'new'"); + } + ScopeType.assert(path.value); + var depth; + if (parentScope) { + if (!(parentScope instanceof Scope)) { + throw new Error(""); + } + depth = parentScope.depth + 1; + } + else { + parentScope = null; + depth = 0; + } + Object.defineProperties(this, { + path: { value: path }, + node: { value: path.value }, + isGlobal: { value: !parentScope, enumerable: true }, + depth: { value: depth }, + parent: { value: parentScope }, + bindings: { value: {} }, + types: { value: {} }, + }); + }; + var scopeTypes = [ + // Program nodes introduce global scopes. + namedTypes.Program, + // Function is the supertype of FunctionExpression, + // FunctionDeclaration, ArrowExpression, etc. + namedTypes.Function, + // In case you didn't know, the caught parameter shadows any variable + // of the same name in an outer scope. + namedTypes.CatchClause + ]; + var ScopeType = Type.or.apply(Type, scopeTypes); + Scope.isEstablishedBy = function (node) { + return ScopeType.check(node); + }; + var Sp = Scope.prototype; + // Will be overridden after an instance lazily calls scanScope. + Sp.didScan = false; + Sp.declares = function (name) { + this.scan(); + return hasOwn.call(this.bindings, name); + }; + Sp.declaresType = function (name) { + this.scan(); + return hasOwn.call(this.types, name); + }; + Sp.declareTemporary = function (prefix) { + if (prefix) { + if (!/^[a-z$_]/i.test(prefix)) { + throw new Error(""); + } + } + else { + prefix = "t$"; + } + // Include this.depth in the name to make sure the name does not + // collide with any variables in nested/enclosing scopes. + prefix += this.depth.toString(36) + "$"; + this.scan(); + var index = 0; + while (this.declares(prefix + index)) { + ++index; + } + var name = prefix + index; + return this.bindings[name] = types.builders.identifier(name); + }; + Sp.injectTemporary = function (identifier, init) { + identifier || (identifier = this.declareTemporary()); + var bodyPath = this.path.get("body"); + if (namedTypes.BlockStatement.check(bodyPath.value)) { + bodyPath = bodyPath.get("body"); + } + bodyPath.unshift(b.variableDeclaration("var", [b.variableDeclarator(identifier, init || null)])); + return identifier; + }; + Sp.scan = function (force) { + if (force || !this.didScan) { + for (var name in this.bindings) { + // Empty out this.bindings, just in cases. + delete this.bindings[name]; + } + scanScope(this.path, this.bindings, this.types); + this.didScan = true; + } + }; + Sp.getBindings = function () { + this.scan(); + return this.bindings; + }; + Sp.getTypes = function () { + this.scan(); + return this.types; + }; + function scanScope(path, bindings, scopeTypes) { + var node = path.value; + ScopeType.assert(node); + if (namedTypes.CatchClause.check(node)) { + // A catch clause establishes a new scope but the only variable + // bound in that scope is the catch parameter. Any other + // declarations create bindings in the outer scope. + addPattern(path.get("param"), bindings); + } + else { + recursiveScanScope(path, bindings, scopeTypes); + } + } + function recursiveScanScope(path, bindings, scopeTypes) { + var node = path.value; + if (path.parent && + namedTypes.FunctionExpression.check(path.parent.node) && + path.parent.node.id) { + addPattern(path.parent.get("id"), bindings); + } + if (!node) { + // None of the remaining cases matter if node is falsy. + } + else if (isArray.check(node)) { + path.each(function (childPath) { + recursiveScanChild(childPath, bindings, scopeTypes); + }); + } + else if (namedTypes.Function.check(node)) { + path.get("params").each(function (paramPath) { + addPattern(paramPath, bindings); + }); + recursiveScanChild(path.get("body"), bindings, scopeTypes); + } + else if (namedTypes.TypeAlias && namedTypes.TypeAlias.check(node)) { + addTypePattern(path.get("id"), scopeTypes); + } + else if (namedTypes.VariableDeclarator.check(node)) { + addPattern(path.get("id"), bindings); + recursiveScanChild(path.get("init"), bindings, scopeTypes); + } + else if (node.type === "ImportSpecifier" || + node.type === "ImportNamespaceSpecifier" || + node.type === "ImportDefaultSpecifier") { + addPattern( + // Esprima used to use the .name field to refer to the local + // binding identifier for ImportSpecifier nodes, but .id for + // ImportNamespaceSpecifier and ImportDefaultSpecifier nodes. + // ESTree/Acorn/ESpree use .local for all three node types. + path.get(node.local ? "local" : + node.name ? "name" : "id"), bindings); + } + else if (Node.check(node) && !Expression.check(node)) { + types.eachField(node, function (name, child) { + var childPath = path.get(name); + if (!pathHasValue(childPath, child)) { + throw new Error(""); + } + recursiveScanChild(childPath, bindings, scopeTypes); + }); + } + } + function pathHasValue(path, value) { + if (path.value === value) { + return true; + } + // Empty arrays are probably produced by defaults.emptyArray, in which + // case is makes sense to regard them as equivalent, if not ===. + if (Array.isArray(path.value) && + path.value.length === 0 && + Array.isArray(value) && + value.length === 0) { + return true; + } + return false; + } + function recursiveScanChild(path, bindings, scopeTypes) { + var node = path.value; + if (!node || Expression.check(node)) { + // Ignore falsy values and Expressions. + } + else if (namedTypes.FunctionDeclaration.check(node) && + node.id !== null) { + addPattern(path.get("id"), bindings); + } + else if (namedTypes.ClassDeclaration && + namedTypes.ClassDeclaration.check(node)) { + addPattern(path.get("id"), bindings); + } + else if (ScopeType.check(node)) { + if (namedTypes.CatchClause.check(node)) { + var catchParamName = node.param.name; + var hadBinding = hasOwn.call(bindings, catchParamName); + // Any declarations that occur inside the catch body that do + // not have the same name as the catch parameter should count + // as bindings in the outer scope. + recursiveScanScope(path.get("body"), bindings, scopeTypes); + // If a new binding matching the catch parameter name was + // created while scanning the catch body, ignore it because it + // actually refers to the catch parameter and not the outer + // scope that we're currently scanning. + if (!hadBinding) { + delete bindings[catchParamName]; + } + } + } + else { + recursiveScanScope(path, bindings, scopeTypes); + } + } + function addPattern(patternPath, bindings) { + var pattern = patternPath.value; + namedTypes.Pattern.assert(pattern); + if (namedTypes.Identifier.check(pattern)) { + if (hasOwn.call(bindings, pattern.name)) { + bindings[pattern.name].push(patternPath); + } + else { + bindings[pattern.name] = [patternPath]; + } + } + else if (namedTypes.AssignmentPattern && + namedTypes.AssignmentPattern.check(pattern)) { + addPattern(patternPath.get('left'), bindings); + } + else if (namedTypes.ObjectPattern && + namedTypes.ObjectPattern.check(pattern)) { + patternPath.get('properties').each(function (propertyPath) { + var property = propertyPath.value; + if (namedTypes.Pattern.check(property)) { + addPattern(propertyPath, bindings); + } + else if (namedTypes.Property.check(property)) { + addPattern(propertyPath.get('value'), bindings); + } + else if (namedTypes.SpreadProperty && + namedTypes.SpreadProperty.check(property)) { + addPattern(propertyPath.get('argument'), bindings); + } + }); + } + else if (namedTypes.ArrayPattern && + namedTypes.ArrayPattern.check(pattern)) { + patternPath.get('elements').each(function (elementPath) { + var element = elementPath.value; + if (namedTypes.Pattern.check(element)) { + addPattern(elementPath, bindings); + } + else if (namedTypes.SpreadElement && + namedTypes.SpreadElement.check(element)) { + addPattern(elementPath.get("argument"), bindings); + } + }); + } + else if (namedTypes.PropertyPattern && + namedTypes.PropertyPattern.check(pattern)) { + addPattern(patternPath.get('pattern'), bindings); + } + else if ((namedTypes.SpreadElementPattern && + namedTypes.SpreadElementPattern.check(pattern)) || + (namedTypes.SpreadPropertyPattern && + namedTypes.SpreadPropertyPattern.check(pattern))) { + addPattern(patternPath.get('argument'), bindings); + } + } + function addTypePattern(patternPath, types) { + var pattern = patternPath.value; + namedTypes.Pattern.assert(pattern); + if (namedTypes.Identifier.check(pattern)) { + if (hasOwn.call(types, pattern.name)) { + types[pattern.name].push(patternPath); + } + else { + types[pattern.name] = [patternPath]; + } + } + } + Sp.lookup = function (name) { + for (var scope = this; scope; scope = scope.parent) + if (scope.declares(name)) + break; + return scope; + }; + Sp.lookupType = function (name) { + for (var scope = this; scope; scope = scope.parent) + if (scope.declaresType(name)) + break; + return scope; + }; + Sp.getGlobalScope = function () { + var scope = this; + while (!scope.isGlobal) + scope = scope.parent; + return scope; + }; + return Scope; +} +exports.default = scopePlugin; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/shared.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/shared.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..4a3044be37c238ff0e6c1a5c601b374a6c35d378 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/shared.d.ts" @@ -0,0 +1,13 @@ +import { Fork } from "../types"; +export default function (fork: Fork): { + geq: (than: any) => import("./types").Type<{}>; + defaults: { + "null": () => null; + "emptyArray": () => never[]; + "false": () => boolean; + "true": () => boolean; + "undefined": () => void; + "use strict": () => string; + }; + isPrimitive: import("./types").Type<{}>; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/shared.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/shared.js" new file mode 100644 index 0000000000000000000000000000000000000000..b29985cd5363f6318eb0fb8dbe7b5a1fc82274fc --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/shared.js" @@ -0,0 +1,49 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var types_1 = __importDefault(require("./types")); +function default_1(fork) { + var types = fork.use(types_1.default); + var Type = types.Type; + var builtin = types.builtInTypes; + var isNumber = builtin.number; + // An example of constructing a new type with arbitrary constraints from + // an existing type. + function geq(than) { + return Type.from(function (value) { return isNumber.check(value) && value >= than; }, isNumber + " >= " + than); + } + ; + // Default value-returning functions that may optionally be passed as a + // third argument to Def.prototype.field. + var defaults = { + // Functions were used because (among other reasons) that's the most + // elegant way to allow for the emptyArray one always to give a new + // array instance. + "null": function () { return null; }, + "emptyArray": function () { return []; }, + "false": function () { return false; }, + "true": function () { return true; }, + "undefined": function () { }, + "use strict": function () { return "use strict"; } + }; + var naiveIsPrimitive = Type.or(builtin.string, builtin.number, builtin.boolean, builtin.null, builtin.undefined); + var isPrimitive = Type.from(function (value) { + if (value === null) + return true; + var type = typeof value; + if (type === "object" || + type === "function") { + return false; + } + return true; + }, naiveIsPrimitive.toString()); + return { + geq: geq, + defaults: defaults, + isPrimitive: isPrimitive, + }; +} +exports.default = default_1; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/types.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/types.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..bb38faf86c3dc608fd7d0173bb4186d1f3685c76 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/types.d.ts" @@ -0,0 +1,140 @@ +import { Fork } from "../types"; +declare type Deep = boolean | ((type: Type, value: any) => void); +export declare type Type = ArrayType | IdentityType | ObjectType | OrType | PredicateType; +export interface AnyType { + toString(): string; + check(value: any, deep?: Deep): boolean; + assert(value: any, deep?: Deep): boolean; + arrayOf(): AnyType; +} +declare abstract class BaseType { + abstract toString(): string; + abstract check(value: any, deep?: Deep): value is T; + assert(value: any, deep?: Deep): value is T; + arrayOf(): Type; +} +declare class ArrayType extends BaseType { + readonly elemType: Type; + readonly kind: "ArrayType"; + constructor(elemType: Type); + toString(): string; + check(value: any, deep?: Deep): value is T; +} +declare class IdentityType extends BaseType { + readonly value: T; + readonly kind: "IdentityType"; + constructor(value: T); + toString(): string; + check(value: any, deep?: Deep): value is T; +} +declare class ObjectType extends BaseType { + readonly fields: Field[]; + readonly kind: "ObjectType"; + constructor(fields: Field[]); + toString(): string; + check(value: any, deep?: Deep): value is T; +} +declare class OrType extends BaseType { + readonly types: Type[]; + readonly kind: "OrType"; + constructor(types: Type[]); + toString(): string; + check(value: any, deep?: Deep): value is T; +} +declare class PredicateType extends BaseType { + readonly name: string; + readonly predicate: (value: any, deep?: Deep) => boolean; + readonly kind: "PredicateType"; + constructor(name: string, predicate: (value: any, deep?: Deep) => boolean); + toString(): string; + check(value: any, deep?: Deep): value is T; +} +export declare abstract class Def { + readonly type: Type; + readonly typeName: string; + baseNames: string[]; + ownFields: { + [name: string]: Field; + }; + allSupertypes: { + [name: string]: Def; + }; + supertypeList: string[]; + allFields: { + [name: string]: Field; + }; + fieldNames: string[]; + finalized: boolean; + buildable: boolean; + buildParams: string[]; + constructor(type: Type, typeName: string); + isSupertypeOf(that: Def): boolean; + checkAllFields(value: any, deep?: any): boolean; + abstract check(value: any, deep?: any): boolean; + bases(...supertypeNames: string[]): this; + abstract build(...buildParams: string[]): this; + abstract field(name: string, type: any, defaultFn?: Function, hidden?: boolean): this; + abstract finalize(): void; +} +declare class Field { + readonly name: string; + readonly type: Type; + readonly defaultFn?: Function | undefined; + readonly hidden: boolean; + constructor(name: string, type: Type, defaultFn?: Function | undefined, hidden?: boolean); + toString(): string; + getValue(obj: { + [key: string]: any; + }): any; +} +declare type FieldType = Field; +export { FieldType as Field }; +export interface ASTNode { + type: string; +} +export interface Builder { + (...args: any[]): ASTNode; + from(obj: { + [param: string]: any; + }): ASTNode; +} +export default function typesPlugin(_fork: Fork): { + Type: { + or(...types: any[]): Type; + from(value: any, name?: string | undefined): Type; + def(typeName: string): Def; + hasDef(typeName: string): boolean; + }; + builtInTypes: { + string: Type; + function: Type; + array: Type; + object: Type<{ + [key: string]: any; + }>; + RegExp: Type; + Date: Type; + number: Type; + boolean: Type; + null: Type; + undefined: Type; + }; + getSupertypeNames: (typeName: string) => string[]; + computeSupertypeLookupTable: (candidates: any) => { + [typeName: string]: any; + }; + builders: { + [name: string]: Builder; + }; + defineMethod: (name: any, func?: Function | undefined) => Function; + getBuilderName: (typeName: any) => any; + getStatementBuilderName: (typeName: any) => any; + namedTypes: { + [name: string]: AnyType; + }; + getFieldNames: (object: any) => string[]; + getFieldValue: (object: any, fieldName: any) => any; + eachField: (object: any, callback: (name: any, value: any) => any, context?: any) => void; + someField: (object: any, callback: (name: any, value: any) => any, context?: any) => boolean; + finalize: () => void; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/types.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/types.js" new file mode 100644 index 0000000000000000000000000000000000000000..5e4703ad2601058ab9d4b4bb2ac70e9be528143f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/lib/types.js" @@ -0,0 +1,781 @@ +"use strict"; +var __extends = (this && this.__extends) || (function () { + var extendStatics = function (d, b) { + extendStatics = Object.setPrototypeOf || + ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || + function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; + return extendStatics(d, b); + }; + return function (d, b) { + extendStatics(d, b); + function __() { this.constructor = d; } + d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); + }; +})(); +Object.defineProperty(exports, "__esModule", { value: true }); +var Op = Object.prototype; +var objToStr = Op.toString; +var hasOwn = Op.hasOwnProperty; +var BaseType = /** @class */ (function () { + function BaseType() { + } + BaseType.prototype.assert = function (value, deep) { + if (!this.check(value, deep)) { + var str = shallowStringify(value); + throw new Error(str + " does not match type " + this); + } + return true; + }; + BaseType.prototype.arrayOf = function () { + var elemType = this; + return new ArrayType(elemType); + }; + return BaseType; +}()); +var ArrayType = /** @class */ (function (_super) { + __extends(ArrayType, _super); + function ArrayType(elemType) { + var _this = _super.call(this) || this; + _this.elemType = elemType; + _this.kind = "ArrayType"; + return _this; + } + ArrayType.prototype.toString = function () { + return "[" + this.elemType + "]"; + }; + ArrayType.prototype.check = function (value, deep) { + var _this = this; + return Array.isArray(value) && value.every(function (elem) { return _this.elemType.check(elem, deep); }); + }; + return ArrayType; +}(BaseType)); +var IdentityType = /** @class */ (function (_super) { + __extends(IdentityType, _super); + function IdentityType(value) { + var _this = _super.call(this) || this; + _this.value = value; + _this.kind = "IdentityType"; + return _this; + } + IdentityType.prototype.toString = function () { + return String(this.value); + }; + IdentityType.prototype.check = function (value, deep) { + var result = value === this.value; + if (!result && typeof deep === "function") { + deep(this, value); + } + return result; + }; + return IdentityType; +}(BaseType)); +var ObjectType = /** @class */ (function (_super) { + __extends(ObjectType, _super); + function ObjectType(fields) { + var _this = _super.call(this) || this; + _this.fields = fields; + _this.kind = "ObjectType"; + return _this; + } + ObjectType.prototype.toString = function () { + return "{ " + this.fields.join(", ") + " }"; + }; + ObjectType.prototype.check = function (value, deep) { + return (objToStr.call(value) === objToStr.call({}) && + this.fields.every(function (field) { + return field.type.check(value[field.name], deep); + })); + }; + return ObjectType; +}(BaseType)); +var OrType = /** @class */ (function (_super) { + __extends(OrType, _super); + function OrType(types) { + var _this = _super.call(this) || this; + _this.types = types; + _this.kind = "OrType"; + return _this; + } + OrType.prototype.toString = function () { + return this.types.join(" | "); + }; + OrType.prototype.check = function (value, deep) { + return this.types.some(function (type) { + return type.check(value, deep); + }); + }; + return OrType; +}(BaseType)); +var PredicateType = /** @class */ (function (_super) { + __extends(PredicateType, _super); + function PredicateType(name, predicate) { + var _this = _super.call(this) || this; + _this.name = name; + _this.predicate = predicate; + _this.kind = "PredicateType"; + return _this; + } + PredicateType.prototype.toString = function () { + return this.name; + }; + PredicateType.prototype.check = function (value, deep) { + var result = this.predicate(value, deep); + if (!result && typeof deep === "function") { + deep(this, value); + } + return result; + }; + return PredicateType; +}(BaseType)); +var Def = /** @class */ (function () { + function Def(type, typeName) { + this.type = type; + this.typeName = typeName; + this.baseNames = []; + this.ownFields = Object.create(null); + // Includes own typeName. Populated during finalization. + this.allSupertypes = Object.create(null); + // Linear inheritance hierarchy. Populated during finalization. + this.supertypeList = []; + // Includes inherited fields. + this.allFields = Object.create(null); + // Non-hidden keys of allFields. + this.fieldNames = []; + // This property will be overridden as true by individual Def instances + // when they are finalized. + this.finalized = false; + // False by default until .build(...) is called on an instance. + this.buildable = false; + this.buildParams = []; + } + Def.prototype.isSupertypeOf = function (that) { + if (that instanceof Def) { + if (this.finalized !== true || + that.finalized !== true) { + throw new Error(""); + } + return hasOwn.call(that.allSupertypes, this.typeName); + } + else { + throw new Error(that + " is not a Def"); + } + }; + Def.prototype.checkAllFields = function (value, deep) { + var allFields = this.allFields; + if (this.finalized !== true) { + throw new Error("" + this.typeName); + } + function checkFieldByName(name) { + var field = allFields[name]; + var type = field.type; + var child = field.getValue(value); + return type.check(child, deep); + } + return value !== null && + typeof value === "object" && + Object.keys(allFields).every(checkFieldByName); + }; + Def.prototype.bases = function () { + var supertypeNames = []; + for (var _i = 0; _i < arguments.length; _i++) { + supertypeNames[_i] = arguments[_i]; + } + var bases = this.baseNames; + if (this.finalized) { + if (supertypeNames.length !== bases.length) { + throw new Error(""); + } + for (var i = 0; i < supertypeNames.length; i++) { + if (supertypeNames[i] !== bases[i]) { + throw new Error(""); + } + } + return this; + } + supertypeNames.forEach(function (baseName) { + // This indexOf lookup may be O(n), but the typical number of base + // names is very small, and indexOf is a native Array method. + if (bases.indexOf(baseName) < 0) { + bases.push(baseName); + } + }); + return this; // For chaining. + }; + return Def; +}()); +exports.Def = Def; +var Field = /** @class */ (function () { + function Field(name, type, defaultFn, hidden) { + this.name = name; + this.type = type; + this.defaultFn = defaultFn; + this.hidden = !!hidden; + } + Field.prototype.toString = function () { + return JSON.stringify(this.name) + ": " + this.type; + }; + Field.prototype.getValue = function (obj) { + var value = obj[this.name]; + if (typeof value !== "undefined") { + return value; + } + if (typeof this.defaultFn === "function") { + value = this.defaultFn.call(obj); + } + return value; + }; + return Field; +}()); +function shallowStringify(value) { + if (Array.isArray(value)) { + return "[" + value.map(shallowStringify).join(", ") + "]"; + } + if (value && typeof value === "object") { + return "{ " + Object.keys(value).map(function (key) { + return key + ": " + value[key]; + }).join(", ") + " }"; + } + return JSON.stringify(value); +} +function typesPlugin(_fork) { + var Type = { + or: function () { + var types = []; + for (var _i = 0; _i < arguments.length; _i++) { + types[_i] = arguments[_i]; + } + return new OrType(types.map(function (type) { return Type.from(type); })); + }, + from: function (value, name) { + if (value instanceof ArrayType || + value instanceof IdentityType || + value instanceof ObjectType || + value instanceof OrType || + value instanceof PredicateType) { + return value; + } + // The Def type is used as a helper for constructing compound + // interface types for AST nodes. + if (value instanceof Def) { + return value.type; + } + // Support [ElemType] syntax. + if (isArray.check(value)) { + if (value.length !== 1) { + throw new Error("only one element type is permitted for typed arrays"); + } + return new ArrayType(Type.from(value[0])); + } + // Support { someField: FieldType, ... } syntax. + if (isObject.check(value)) { + return new ObjectType(Object.keys(value).map(function (name) { + return new Field(name, Type.from(value[name], name)); + })); + } + if (typeof value === "function") { + var bicfIndex = builtInCtorFns.indexOf(value); + if (bicfIndex >= 0) { + return builtInCtorTypes[bicfIndex]; + } + if (typeof name !== "string") { + throw new Error("missing name"); + } + return new PredicateType(name, value); + } + // As a last resort, toType returns a type that matches any value that + // is === from. This is primarily useful for literal values like + // toType(null), but it has the additional advantage of allowing + // toType to be a total function. + return new IdentityType(value); + }, + // Define a type whose name is registered in a namespace (the defCache) so + // that future definitions will return the same type given the same name. + // In particular, this system allows for circular and forward definitions. + // The Def object d returned from Type.def may be used to configure the + // type d.type by calling methods such as d.bases, d.build, and d.field. + def: function (typeName) { + return hasOwn.call(defCache, typeName) + ? defCache[typeName] + : defCache[typeName] = new DefImpl(typeName); + }, + hasDef: function (typeName) { + return hasOwn.call(defCache, typeName); + } + }; + var builtInCtorFns = []; + var builtInCtorTypes = []; + var builtInTypes = {}; + function defBuiltInType(example, name) { + var objStr = objToStr.call(example); + var type = new PredicateType(name, function (value) { return objToStr.call(value) === objStr; }); + builtInTypes[name] = type; + if (example && typeof example.constructor === "function") { + builtInCtorFns.push(example.constructor); + builtInCtorTypes.push(type); + } + return type; + } + // These types check the underlying [[Class]] attribute of the given + // value, rather than using the problematic typeof operator. Note however + // that no subtyping is considered; so, for instance, isObject.check + // returns false for [], /./, new Date, and null. + var isString = defBuiltInType("truthy", "string"); + var isFunction = defBuiltInType(function () { }, "function"); + var isArray = defBuiltInType([], "array"); + var isObject = defBuiltInType({}, "object"); + var isRegExp = defBuiltInType(/./, "RegExp"); + var isDate = defBuiltInType(new Date, "Date"); + var isNumber = defBuiltInType(3, "number"); + var isBoolean = defBuiltInType(true, "boolean"); + var isNull = defBuiltInType(null, "null"); + var isUndefined = defBuiltInType(void 0, "undefined"); + // In order to return the same Def instance every time Type.def is called + // with a particular name, those instances need to be stored in a cache. + var defCache = Object.create(null); + function defFromValue(value) { + if (value && typeof value === "object") { + var type = value.type; + if (typeof type === "string" && + hasOwn.call(defCache, type)) { + var d = defCache[type]; + if (d.finalized) { + return d; + } + } + } + return null; + } + var DefImpl = /** @class */ (function (_super) { + __extends(DefImpl, _super); + function DefImpl(typeName) { + var _this = _super.call(this, new PredicateType(typeName, function (value, deep) { return _this.check(value, deep); }), typeName) || this; + return _this; + } + DefImpl.prototype.check = function (value, deep) { + if (this.finalized !== true) { + throw new Error("prematurely checking unfinalized type " + this.typeName); + } + // A Def type can only match an object value. + if (value === null || typeof value !== "object") { + return false; + } + var vDef = defFromValue(value); + if (!vDef) { + // If we couldn't infer the Def associated with the given value, + // and we expected it to be a SourceLocation or a Position, it was + // probably just missing a "type" field (because Esprima does not + // assign a type property to such nodes). Be optimistic and let + // this.checkAllFields make the final decision. + if (this.typeName === "SourceLocation" || + this.typeName === "Position") { + return this.checkAllFields(value, deep); + } + // Calling this.checkAllFields for any other type of node is both + // bad for performance and way too forgiving. + return false; + } + // If checking deeply and vDef === this, then we only need to call + // checkAllFields once. Calling checkAllFields is too strict when deep + // is false, because then we only care about this.isSupertypeOf(vDef). + if (deep && vDef === this) { + return this.checkAllFields(value, deep); + } + // In most cases we rely exclusively on isSupertypeOf to make O(1) + // subtyping determinations. This suffices in most situations outside + // of unit tests, since interface conformance is checked whenever new + // instances are created using builder functions. + if (!this.isSupertypeOf(vDef)) { + return false; + } + // The exception is when deep is true; then, we recursively check all + // fields. + if (!deep) { + return true; + } + // Use the more specific Def (vDef) to perform the deep check, but + // shallow-check fields defined by the less specific Def (this). + return vDef.checkAllFields(value, deep) + && this.checkAllFields(value, false); + }; + DefImpl.prototype.build = function () { + var _this = this; + var buildParams = []; + for (var _i = 0; _i < arguments.length; _i++) { + buildParams[_i] = arguments[_i]; + } + // Calling Def.prototype.build multiple times has the effect of merely + // redefining this property. + this.buildParams = buildParams; + if (this.buildable) { + // If this Def is already buildable, update self.buildParams and + // continue using the old builder function. + return this; + } + // Every buildable type will have its "type" field filled in + // automatically. This includes types that are not subtypes of Node, + // like SourceLocation, but that seems harmless (TODO?). + this.field("type", String, function () { return _this.typeName; }); + // Override Dp.buildable for this Def instance. + this.buildable = true; + var addParam = function (built, param, arg, isArgAvailable) { + if (hasOwn.call(built, param)) + return; + var all = _this.allFields; + if (!hasOwn.call(all, param)) { + throw new Error("" + param); + } + var field = all[param]; + var type = field.type; + var value; + if (isArgAvailable) { + value = arg; + } + else if (field.defaultFn) { + // Expose the partially-built object to the default + // function as its `this` object. + value = field.defaultFn.call(built); + } + else { + var message = "no value or default function given for field " + + JSON.stringify(param) + " of " + _this.typeName + "(" + + _this.buildParams.map(function (name) { + return all[name]; + }).join(", ") + ")"; + throw new Error(message); + } + if (!type.check(value)) { + throw new Error(shallowStringify(value) + + " does not match field " + field + + " of type " + _this.typeName); + } + built[param] = value; + }; + // Calling the builder function will construct an instance of the Def, + // with positional arguments mapped to the fields original passed to .build. + // If not enough arguments are provided, the default value for the remaining fields + // will be used. + var builder = function () { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + var argc = args.length; + if (!_this.finalized) { + throw new Error("attempting to instantiate unfinalized type " + + _this.typeName); + } + var built = Object.create(nodePrototype); + _this.buildParams.forEach(function (param, i) { + if (i < argc) { + addParam(built, param, args[i], true); + } + else { + addParam(built, param, null, false); + } + }); + Object.keys(_this.allFields).forEach(function (param) { + // Use the default value. + addParam(built, param, null, false); + }); + // Make sure that the "type" field was filled automatically. + if (built.type !== _this.typeName) { + throw new Error(""); + } + return built; + }; + // Calling .from on the builder function will construct an instance of the Def, + // using field values from the passed object. For fields missing from the passed object, + // their default value will be used. + builder.from = function (obj) { + if (!_this.finalized) { + throw new Error("attempting to instantiate unfinalized type " + + _this.typeName); + } + var built = Object.create(nodePrototype); + Object.keys(_this.allFields).forEach(function (param) { + if (hasOwn.call(obj, param)) { + addParam(built, param, obj[param], true); + } + else { + addParam(built, param, null, false); + } + }); + // Make sure that the "type" field was filled automatically. + if (built.type !== _this.typeName) { + throw new Error(""); + } + return built; + }; + Object.defineProperty(builders, getBuilderName(this.typeName), { + enumerable: true, + value: builder + }); + return this; + }; + // The reason fields are specified using .field(...) instead of an object + // literal syntax is somewhat subtle: the object literal syntax would + // support only one key and one value, but with .field(...) we can pass + // any number of arguments to specify the field. + DefImpl.prototype.field = function (name, type, defaultFn, hidden) { + if (this.finalized) { + console.error("Ignoring attempt to redefine field " + + JSON.stringify(name) + " of finalized type " + + JSON.stringify(this.typeName)); + return this; + } + this.ownFields[name] = new Field(name, Type.from(type), defaultFn, hidden); + return this; // For chaining. + }; + DefImpl.prototype.finalize = function () { + var _this = this; + // It's not an error to finalize a type more than once, but only the + // first call to .finalize does anything. + if (!this.finalized) { + var allFields = this.allFields; + var allSupertypes = this.allSupertypes; + this.baseNames.forEach(function (name) { + var def = defCache[name]; + if (def instanceof Def) { + def.finalize(); + extend(allFields, def.allFields); + extend(allSupertypes, def.allSupertypes); + } + else { + var message = "unknown supertype name " + + JSON.stringify(name) + + " for subtype " + + JSON.stringify(_this.typeName); + throw new Error(message); + } + }); + // TODO Warn if fields are overridden with incompatible types. + extend(allFields, this.ownFields); + allSupertypes[this.typeName] = this; + this.fieldNames.length = 0; + for (var fieldName in allFields) { + if (hasOwn.call(allFields, fieldName) && + !allFields[fieldName].hidden) { + this.fieldNames.push(fieldName); + } + } + // Types are exported only once they have been finalized. + Object.defineProperty(namedTypes, this.typeName, { + enumerable: true, + value: this.type + }); + this.finalized = true; + // A linearization of the inheritance hierarchy. + populateSupertypeList(this.typeName, this.supertypeList); + if (this.buildable && + this.supertypeList.lastIndexOf("Expression") >= 0) { + wrapExpressionBuilderWithStatement(this.typeName); + } + } + }; + return DefImpl; + }(Def)); + // Note that the list returned by this function is a copy of the internal + // supertypeList, *without* the typeName itself as the first element. + function getSupertypeNames(typeName) { + if (!hasOwn.call(defCache, typeName)) { + throw new Error(""); + } + var d = defCache[typeName]; + if (d.finalized !== true) { + throw new Error(""); + } + return d.supertypeList.slice(1); + } + // Returns an object mapping from every known type in the defCache to the + // most specific supertype whose name is an own property of the candidates + // object. + function computeSupertypeLookupTable(candidates) { + var table = {}; + var typeNames = Object.keys(defCache); + var typeNameCount = typeNames.length; + for (var i = 0; i < typeNameCount; ++i) { + var typeName = typeNames[i]; + var d = defCache[typeName]; + if (d.finalized !== true) { + throw new Error("" + typeName); + } + for (var j = 0; j < d.supertypeList.length; ++j) { + var superTypeName = d.supertypeList[j]; + if (hasOwn.call(candidates, superTypeName)) { + table[typeName] = superTypeName; + break; + } + } + } + return table; + } + var builders = Object.create(null); + // This object is used as prototype for any node created by a builder. + var nodePrototype = {}; + // Call this function to define a new method to be shared by all AST + // nodes. The replaced method (if any) is returned for easy wrapping. + function defineMethod(name, func) { + var old = nodePrototype[name]; + // Pass undefined as func to delete nodePrototype[name]. + if (isUndefined.check(func)) { + delete nodePrototype[name]; + } + else { + isFunction.assert(func); + Object.defineProperty(nodePrototype, name, { + enumerable: true, + configurable: true, + value: func + }); + } + return old; + } + function getBuilderName(typeName) { + return typeName.replace(/^[A-Z]+/, function (upperCasePrefix) { + var len = upperCasePrefix.length; + switch (len) { + case 0: return ""; + // If there's only one initial capital letter, just lower-case it. + case 1: return upperCasePrefix.toLowerCase(); + default: + // If there's more than one initial capital letter, lower-case + // all but the last one, so that XMLDefaultDeclaration (for + // example) becomes xmlDefaultDeclaration. + return upperCasePrefix.slice(0, len - 1).toLowerCase() + + upperCasePrefix.charAt(len - 1); + } + }); + } + function getStatementBuilderName(typeName) { + typeName = getBuilderName(typeName); + return typeName.replace(/(Expression)?$/, "Statement"); + } + var namedTypes = {}; + // Like Object.keys, but aware of what fields each AST type should have. + function getFieldNames(object) { + var d = defFromValue(object); + if (d) { + return d.fieldNames.slice(0); + } + if ("type" in object) { + throw new Error("did not recognize object of type " + + JSON.stringify(object.type)); + } + return Object.keys(object); + } + // Get the value of an object property, taking object.type and default + // functions into account. + function getFieldValue(object, fieldName) { + var d = defFromValue(object); + if (d) { + var field = d.allFields[fieldName]; + if (field) { + return field.getValue(object); + } + } + return object && object[fieldName]; + } + // Iterate over all defined fields of an object, including those missing + // or undefined, passing each field name and effective value (as returned + // by getFieldValue) to the callback. If the object has no corresponding + // Def, the callback will never be called. + function eachField(object, callback, context) { + getFieldNames(object).forEach(function (name) { + callback.call(this, name, getFieldValue(object, name)); + }, context); + } + // Similar to eachField, except that iteration stops as soon as the + // callback returns a truthy value. Like Array.prototype.some, the final + // result is either true or false to indicates whether the callback + // returned true for any element or not. + function someField(object, callback, context) { + return getFieldNames(object).some(function (name) { + return callback.call(this, name, getFieldValue(object, name)); + }, context); + } + // Adds an additional builder for Expression subtypes + // that wraps the built Expression in an ExpressionStatements. + function wrapExpressionBuilderWithStatement(typeName) { + var wrapperName = getStatementBuilderName(typeName); + // skip if the builder already exists + if (builders[wrapperName]) + return; + // the builder function to wrap with builders.ExpressionStatement + var wrapped = builders[getBuilderName(typeName)]; + // skip if there is nothing to wrap + if (!wrapped) + return; + var builder = function () { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + return builders.expressionStatement(wrapped.apply(builders, args)); + }; + builder.from = function () { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + return builders.expressionStatement(wrapped.from.apply(builders, args)); + }; + builders[wrapperName] = builder; + } + function populateSupertypeList(typeName, list) { + list.length = 0; + list.push(typeName); + var lastSeen = Object.create(null); + for (var pos = 0; pos < list.length; ++pos) { + typeName = list[pos]; + var d = defCache[typeName]; + if (d.finalized !== true) { + throw new Error(""); + } + // If we saw typeName earlier in the breadth-first traversal, + // delete the last-seen occurrence. + if (hasOwn.call(lastSeen, typeName)) { + delete list[lastSeen[typeName]]; + } + // Record the new index of the last-seen occurrence of typeName. + lastSeen[typeName] = pos; + // Enqueue the base names of this type. + list.push.apply(list, d.baseNames); + } + // Compaction loop to remove array holes. + for (var to = 0, from = to, len = list.length; from < len; ++from) { + if (hasOwn.call(list, from)) { + list[to++] = list[from]; + } + } + list.length = to; + } + function extend(into, from) { + Object.keys(from).forEach(function (name) { + into[name] = from[name]; + }); + return into; + } + function finalize() { + Object.keys(defCache).forEach(function (name) { + defCache[name].finalize(); + }); + } + return { + Type: Type, + builtInTypes: builtInTypes, + getSupertypeNames: getSupertypeNames, + computeSupertypeLookupTable: computeSupertypeLookupTable, + builders: builders, + defineMethod: defineMethod, + getBuilderName: getBuilderName, + getStatementBuilderName: getStatementBuilderName, + namedTypes: namedTypes, + getFieldNames: getFieldNames, + getFieldValue: getFieldValue, + eachField: eachField, + someField: someField, + finalize: finalize, + }; +} +exports.default = typesPlugin; +; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/main.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/main.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..2e3c3f51440b6bee6c096c602eb633e84d76ae84 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/main.d.ts" @@ -0,0 +1,16 @@ +import fork from "./fork"; +import { Omit } from "./types"; +import { ASTNode, Type, AnyType, Field } from "./lib/types"; +import { NodePath } from "./lib/node-path"; +import { NamedTypes } from "./gen/namedTypes"; +import { Builders } from "./gen/builders"; +import { Visitor } from "./gen/visitor"; +declare type GenTypes = { + namedTypes: NamedTypes; + builders: Builders; + visit(node: ASTNode, methods?: Visitor & M): any; +}; +declare type Main = Omit, keyof GenTypes> & GenTypes; +declare const main: Main; +export default main; +export { ASTNode, Type, AnyType, Field, NodePath, NamedTypes, Builders, Visitor, }; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/main.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/main.js" new file mode 100644 index 0000000000000000000000000000000000000000..a51590a58e3db69473622769e86a8efc941a060a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/main.js" @@ -0,0 +1,33 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var fork_1 = __importDefault(require("./fork")); +var core_1 = __importDefault(require("./def/core")); +var es6_1 = __importDefault(require("./def/es6")); +var es7_1 = __importDefault(require("./def/es7")); +var jsx_1 = __importDefault(require("./def/jsx")); +var flow_1 = __importDefault(require("./def/flow")); +var esprima_1 = __importDefault(require("./def/esprima")); +var babel_1 = __importDefault(require("./def/babel")); +var typescript_1 = __importDefault(require("./def/typescript")); +var es_proposals_1 = __importDefault(require("./def/es-proposals")); +var defs = [ + // This core module of AST types captures ES5 as it is parsed today by + // git://github.com/ariya/esprima.git#master. + core_1.default, + // Feel free to add to or remove from this list of extension modules to + // configure the precise type hierarchy that you need. + es6_1.default, + es7_1.default, + jsx_1.default, + flow_1.default, + esprima_1.default, + babel_1.default, + typescript_1.default, + es_proposals_1.default, +]; +var main = fork_1.default(defs); +exports.default = main; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..1b009b64e0a4017058ecee8b3dea7dd7df4bdde1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/package.json" @@ -0,0 +1,64 @@ +{ + "author": "Ben Newman ", + "name": "ast-types", + "version": "0.12.1", + "description": "Esprima-compatible implementation of the Mozilla JS Parser API", + "keywords": [ + "ast", + "abstract syntax tree", + "hierarchy", + "mozilla", + "spidermonkey", + "parser api", + "esprima", + "types", + "type system", + "type checking", + "dynamic types", + "parsing", + "transformation", + "syntax" + ], + "homepage": "http://github.com/benjamn/ast-types", + "repository": { + "type": "git", + "url": "git://github.com/benjamn/ast-types.git" + }, + "license": "MIT", + "main": "main.js", + "types": "main.d.ts", + "scripts": { + "gen": "ts-node --transpile-only script/gen-types.ts", + "tsc": "tsc --noEmit", + "mocha": "test/run.sh", + "test": "npm run gen && npm run tsc && npm run mocha", + "clean": "ts-emit-clean", + "build": "tsc && ts-add-module-exports", + "prepack": "npm run clean && npm run gen && npm run build", + "postpack": "npm run clean" + }, + "dependencies": {}, + "devDependencies": { + "@babel/parser": "^7.1.6", + "@babel/types": "^7.1.6", + "@types/esprima": "^4.0.2", + "@types/glob": "^7.1.1", + "@types/mocha": "^5.2.5", + "@types/node": "^10.12.9", + "espree": "^4.0.0", + "esprima": "~4.0.0", + "esprima-fb": "~14001.1.0-dev-harmony-fb", + "flow-parser": "^0.83.0", + "glob": "^7.1.2", + "mocha": "^5.0.0", + "recast": "^0.16.1", + "reify": "^0.18.1", + "ts-add-module-exports": "^1.0.0", + "ts-emit-clean": "^1.0.0", + "ts-node": "^7.0.1", + "typescript": "^3.2.2" + }, + "engines": { + "node": ">=4" + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/tsconfig.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/tsconfig.json" new file mode 100644 index 0000000000000000000000000000000000000000..494f4e4d898fdba50fed61e21ce35b96ffb31346 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/tsconfig.json" @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "declaration": true, + "rootDir": ".", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "moduleResolution": "node", + "esModuleInterop": true, + "stripInternal": true, + "lib": ["es2015"] + }, + "exclude": [ + "node_modules", + "test/data" + ] +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/types.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/types.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..0465896b6978ff48560d346cb27dea8042ed6320 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/types.d.ts" @@ -0,0 +1,6 @@ +export declare type Fork = { + use(plugin: Plugin): T; +}; +export declare type Plugin = (fork: Fork) => T; +export declare type Def = Plugin; +export declare type Omit = Pick>; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/types.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/types.js" new file mode 100644 index 0000000000000000000000000000000000000000..c8ad2e549bdc6801e0d1c80b0308d4b9bd4985ce --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/ast-types/types.js" @@ -0,0 +1,2 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/.editorconfig" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/.editorconfig" new file mode 100644 index 0000000000000000000000000000000000000000..70bfb795dd316a1526fc1542dbb91463fc711756 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/.editorconfig" @@ -0,0 +1,2 @@ +[*.js] +indent_style = space diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/.travis.yml" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/.travis.yml" new file mode 100644 index 0000000000000000000000000000000000000000..986ec7d1711c9a8167ef4c09af0931e4fce94b8b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/.travis.yml" @@ -0,0 +1,27 @@ +language: node_js +matrix: + include: + - node_js: "10" + env: NPM_VERSION="" + - node_js: "9" + env: NPM_VERSION="" + - node_js: "8" + env: NPM_VERSION="" + - node_js: "7" + env: NPM_VERSION="" + - node_js: "6" + env: NPM_VERSION="" + - node_js: "5" + env: NPM_VERSION="@5" + - node_js: "4" + env: NPM_VERSION="@5" + +# Allow Travis tests to run in containers. +sudo: false + +# Update package-lock.json after test runs: +before_install: + - npm install -g npm$NPM_VERSION + - npm install -g greenkeeper-lockfile@1 +before_script: greenkeeper-lockfile-update +after_script: greenkeeper-lockfile-upload diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..527755ba7a1456554a0ec199a729abc9447bc5b4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/LICENSE" @@ -0,0 +1,20 @@ +Copyright (c) 2012 Ben Newman + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..d12aef564d5bd83635249bd81ae79b53d51c85b3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/README.md" @@ -0,0 +1,187 @@ +# recast, _v_. [![Build Status](https://travis-ci.org/benjamn/recast.svg?branch=master)](https://travis-ci.org/benjamn/recast) [![Join the chat at https://gitter.im/benjamn/recast](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/benjamn/recast?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Greenkeeper badge](https://badges.greenkeeper.io/benjamn/recast.svg)](https://greenkeeper.io/) + +1. to give (a metal object) a different form by melting it down and reshaping it. +1. to form, fashion, or arrange again. +1. to remodel or reconstruct (a literary work, document, sentence, etc.). +1. to supply (a theater or opera work) with a new cast. + +Installation +--- + +From NPM: + + npm install recast + +From GitHub: + + cd path/to/node_modules + git clone git://github.com/benjamn/recast.git + cd recast + npm install . + +Usage +--- + +In less poetic terms, Recast exposes two essential interfaces, one for parsing JavaScript code (`require("recast").parse`) and the other for reprinting modified syntax trees (`require("recast").print`). + +Here's a simple but non-trivial example of how you might use `.parse` and `.print`: +```js +var recast = require("recast"); + +// Let's turn this function declaration into a variable declaration. +var code = [ + "function add(a, b) {", + " return a +", + " // Weird formatting, huh?", + " b;", + "}" +].join("\n"); + +// Parse the code using an interface similar to require("esprima").parse. +var ast = recast.parse(code); +``` +Now do *whatever* you want to `ast`. Really, anything at all! + +See [ast-types](https://github.com/benjamn/ast-types) (especially the [def/core.js](https://github.com/benjamn/ast-types/blob/master/def/core.js)) module for a thorough overview of the `ast` API. +```js +// Grab a reference to the function declaration we just parsed. +var add = ast.program.body[0]; + +// Make sure it's a FunctionDeclaration (optional). +var n = recast.types.namedTypes; +n.FunctionDeclaration.assert(add); + +// If you choose to use recast.builders to construct new AST nodes, all builder +// arguments will be dynamically type-checked against the Mozilla Parser API. +var b = recast.types.builders; + +// This kind of manipulation should seem familiar if you've used Esprima or the +// Mozilla Parser API before. +ast.program.body[0] = b.variableDeclaration("var", [ + b.variableDeclarator(add.id, b.functionExpression( + null, // Anonymize the function expression. + add.params, + add.body + )) +]); + +// Just for fun, because addition is commutative: +add.params.push(add.params.shift()); +``` +When you finish manipulating the AST, let `recast.print` work its magic: +```js +var output = recast.print(ast).code; +``` +The `output` string now looks exactly like this, weird formatting and all: +```js +var add = function(b, a) { + return a + + // Weird formatting, huh? + b; +} +``` +The magic of Recast is that it reprints only those parts of the syntax tree that you modify. In other words, the following identity is guaranteed: +```js +recast.print(recast.parse(source)).code === source +``` +Whenever Recast cannot reprint a modified node using the original source code, it falls back to using a generic pretty printer. So the worst that can happen is that your changes trigger some harmless reformatting of your code. + +If you really don't care about preserving the original formatting, you can access the pretty printer directly: +```js +var output = recast.prettyPrint(ast, { tabWidth: 2 }).code; +``` +And here's the exact `output`: +```js +var add = function(b, a) { + return a + b; +} +``` +Note that the weird formatting was discarded, yet the behavior and abstract structure of the code remain the same. + +Using a different parser +--- + +By default, Recast uses the [Esprima JavaScript parser](https://www.npmjs.com/package/esprima) when you call `recast.parse(code)`. While Esprima supports almost all modern ECMAScript syntax, you may want to use a different parser to enable TypeScript or Flow syntax, or just because you want to match other compilation tools you might be using. + +In order to get any benefits from Recast's conservative pretty-printing, **it is very important that you continue to call `recast.parse`** (rather than parsing the AST yourself using a different parser), and simply instruct `recast.parse` to use a different parser: + +```js +const acornAst = recast.parse(source, { + parser: require("acorn") +}); +``` + +Why is this so important? When you call `recast.parse`, it makes a shadow copy of the AST before returning it to you, giving every copied AST node a reference back to the original through a special `.original` property. This information is what enables `recast.print` to detect where the AST has been modified, so that it can preserve formatting for parts of the AST that were not modified. + +Any `parser` object that supports a `parser.parse(source)` method will work here; however, if your parser requires additional options, you can always implement your own `parse` method that invokes your parser with custom options: + +```js +const acornAst = recast.parse(source, { + parser: { + parse(source) { + return require("acorn").parse(source, { + // additional options + }); + } + } +}); +``` + +To take some of the guesswork out of configuring common parsers, Recast provides [several preconfigured parsers](https://github.com/benjamn/recast/tree/master/parsers), so you can parse TypeScript (for example) without worrying about the configuration details: + +```js +const tsAst = recast.parse(source, { + parser: require("recast/parsers/typescript") +}); +``` + +**Note:** Some of these parsers import npm packages that Recast does not directly depend upon, so please be aware you may have to run `npm install babylon@next` to use the `typescript`, `flow`, or `babylon` parsers, or `npm install acorn` to use the `acorn` parser. Only Esprima is installed by default when Recast is installed. + +Source maps +--- + +One of the coolest consequences of tracking and reusing original source code during reprinting is that it's pretty easy to generate a high-resolution mapping between the original code and the generated code—completely automatically! + +With every `slice`, `join`, and re-`indent`-ation, the reprinting process maintains exact knowledge of which character sequences are original, and where in the original source they came from. + +All you have to think about is how to manipulate the syntax tree, and Recast will give you a [source map](https://github.com/mozilla/source-map) in exchange for specifying the names of your source file(s) and the desired name of the map: +```js +var result = recast.print(transform(recast.parse(source, { + sourceFileName: "source.js" +})), { + sourceMapName: "map.json" +}); + +console.log(result.code); // Resulting string of code. +console.log(result.map); // JSON source map. + +var SourceMapConsumer = require("source-map").SourceMapConsumer; +var smc = new SourceMapConsumer(result.map); +console.log(smc.originalPositionFor({ + line: 3, + column: 15 +})); // { source: 'source.js', + // line: 2, + // column: 10, + // name: null } +``` + +Note that you are free to mix and match syntax trees parsed from different source files, and the resulting source map will automatically keep track of the separate file origins for you. + +Note also that the source maps generated by Recast are character-by-character maps, so meaningful identifier names are not recorded at this time. This approach leads to higher-resolution debugging in modern browsers, at the expense of somewhat larger map sizes. Striking the perfect balance here is an area for future exploration, but such improvements will not require any breaking changes to the interface demonstrated above. + +Options +--- +All Recast API functions take second parameter with configuration options, documented in +[options.js](https://github.com/benjamn/recast/blob/master/lib/options.js) + +Motivation +--- + +The more code you have, the harder it becomes to make big, sweeping changes quickly and confidently. Even if you trust yourself not to make too many mistakes, and no matter how proficient you are with your text editor, changing tens of thousands of lines of code takes precious, non-refundable time. + +Is there a better way? Not always! When a task requires you to alter the semantics of many different pieces of code in subtly different ways, your brain inevitably becomes the bottleneck, and there is little hope of completely automating the process. Your best bet is to plan carefully, buckle down, and get it right the first time. Love it or loathe it, that's the way programming goes sometimes. + +What I hope to eliminate are the brain-wasting tasks, the tasks that are bottlenecked by keystrokes, the tasks that can be expressed as operations on the _syntactic structure_ of your code. Specifically, my goal is to make it possible for you to run your code through a parser, manipulate the abstract syntax tree directly, subject only to the constraints of your imagination, and then automatically translate those modifications back into source code, without upsetting the formatting of unmodified code. + +And here's the best part: when you're done running a Recast script, if you're not completely satisfied with the results, blow them away with `git reset --hard`, tweak the script, and just run it again. Change your mind as many times as you like. Instead of typing yourself into a nasty case of [RSI](http://en.wikipedia.org/wiki/Repetitive_strain_injury), gaze upon your new wells of free time and ask yourself: what next? diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/example/add-braces" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/example/add-braces" new file mode 100644 index 0000000000000000000000000000000000000000..0c6901d09f82e220caf027c830342f87ad910f23 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/example/add-braces" @@ -0,0 +1,44 @@ +#!/usr/bin/env node + +var recast = require("recast"); +var types = recast.types; +var n = types.namedTypes; +var b = types.builders; + +require("recast").run(function(ast, callback) { + recast.visit(ast, { + visitIfStatement: function(path) { + var stmt = path.node; + stmt.consequent = fix(stmt.consequent); + + var alt = stmt.alternate; + if (!n.IfStatement.check(alt)) { + stmt.alternate = fix(alt); + } + + this.traverse(path); + }, + + visitWhileStatement: visitLoop, + visitForStatement: visitLoop, + visitForInStatement: visitLoop + }); + + callback(ast); +}); + +function visitLoop(path) { + var loop = path.node; + loop.body = fix(loop.body); + this.traverse(path); +} + +function fix(clause) { + if (clause) { + if (!n.BlockStatement.check(clause)) { + clause = b.blockStatement([clause]); + } + } + + return clause; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/example/generic-identity" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/example/generic-identity" new file mode 100644 index 0000000000000000000000000000000000000000..a8364c350dc734191948e189e2d4cce1d4e580cf --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/example/generic-identity" @@ -0,0 +1,17 @@ +#!/usr/bin/env node + +// This script should reprint the contents of the given file without +// reusing the original source, but with identical AST structure. + +var recast = require("recast"); + +recast.run(function(ast, callback) { + recast.visit(ast, { + visitNode: function(path) { + this.traverse(path); + path.node.original = null; + } + }); + + callback(ast); +}); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/example/identity" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/example/identity" new file mode 100644 index 0000000000000000000000000000000000000000..62981b8f68226c47bb309c9b1d2bf4f6f54a8326 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/example/identity" @@ -0,0 +1,8 @@ +#!/usr/bin/env node + +// This script should echo the contents of the given file without +// modification. + +require("recast").run(function(ast, callback) { + callback(ast); +}); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/example/to-while" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/example/to-while" new file mode 100644 index 0000000000000000000000000000000000000000..99222223f8af152a16d97821c8b385c3d9a2a68f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/example/to-while" @@ -0,0 +1,84 @@ +#!/usr/bin/env node + +// This script converts for and do-while loops into equivalent while loops. +// Note that for-in statements are left unmodified, as they do not have a +// simple analogy to while loops. Also note that labeled continue statements +// are not correctly handled at this point, and will trigger an assertion +// failure if encountered. + +var assert = require("assert"); +var recast = require("recast"); +var types = recast.types; +var n = types.namedTypes; +var b = types.builders; + +recast.run(function(ast, callback) { + recast.visit(ast, { + visitForStatement: function(path) { + var fst = path.node; + + path.replace( + fst.init, + b.whileStatement( + fst.test, + insertBeforeLoopback(fst, fst.update) + ) + ); + + this.traverse(path); + }, + + visitDoWhileStatement: function(path) { + var dwst = path.node; + return b.whileStatement( + b.literal(true), + insertBeforeLoopback( + dwst, + b.ifStatement( + dwst.test, + b.breakStatement() + ) + ) + ); + } + }); + + callback(ast); +}); + +function insertBeforeLoopback(loop, toInsert) { + var body = loop.body; + + if (!n.Statement.check(toInsert)) { + toInsert = b.expressionStatement(toInsert); + } + + if (n.BlockStatement.check(body)) { + body.body.push(toInsert); + } else { + body = b.blockStatement([body, toInsert]); + loop.body = body; + } + + recast.visit(body, { + visitContinueStatement: function(path) { + var cst = path.node; + + assert.equal( + cst.label, null, + "Labeled continue statements are not yet supported." + ); + + path.replace(toInsert, path.node); + return false; + }, + + // Do not descend into nested loops. + visitWhileStatement: function() {}, + visitForStatement: function() {}, + visitForInStatement: function() {}, + visitDoWhileStatement: function() {} + }); + + return body; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/comments.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/comments.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..1c1df43373e2b08e6e17f3061bb703aea6e5af6e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/comments.d.ts" @@ -0,0 +1,2 @@ +export declare function attach(comments: any[], ast: any, lines: any): void; +export declare function printComments(path: any, print: any): any; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/comments.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/comments.js" new file mode 100644 index 0000000000000000000000000000000000000000..054aefcf7546797aead54dc38a08d2623545a92b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/comments.js" @@ -0,0 +1,301 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var assert_1 = __importDefault(require("assert")); +var types_1 = __importDefault(require("./types")); +var n = types_1.default.namedTypes; +var isArray = types_1.default.builtInTypes.array; +var isObject = types_1.default.builtInTypes.object; +var lines_1 = require("./lines"); +var util_1 = require("./util"); +var private_1 = require("private"); +var childNodesCacheKey = private_1.makeUniqueKey(); +// TODO Move a non-caching implementation of this function into ast-types, +// and implement a caching wrapper function here. +function getSortedChildNodes(node, lines, resultArray) { + if (!node) { + return; + } + // The .loc checks below are sensitive to some of the problems that + // are fixed by this utility function. Specifically, if it decides to + // set node.loc to null, indicating that the node's .loc information + // is unreliable, then we don't want to add node to the resultArray. + util_1.fixFaultyLocations(node, lines); + if (resultArray) { + if (n.Node.check(node) && + n.SourceLocation.check(node.loc)) { + // This reverse insertion sort almost always takes constant + // time because we almost always (maybe always?) append the + // nodes in order anyway. + for (var i = resultArray.length - 1; i >= 0; --i) { + if (util_1.comparePos(resultArray[i].loc.end, node.loc.start) <= 0) { + break; + } + } + resultArray.splice(i + 1, 0, node); + return; + } + } + else if (node[childNodesCacheKey]) { + return node[childNodesCacheKey]; + } + var names; + if (isArray.check(node)) { + names = Object.keys(node); + } + else if (isObject.check(node)) { + names = types_1.default.getFieldNames(node); + } + else { + return; + } + if (!resultArray) { + Object.defineProperty(node, childNodesCacheKey, { + value: resultArray = [], + enumerable: false + }); + } + for (var i = 0, nameCount = names.length; i < nameCount; ++i) { + getSortedChildNodes(node[names[i]], lines, resultArray); + } + return resultArray; +} +// As efficiently as possible, decorate the comment object with +// .precedingNode, .enclosingNode, and/or .followingNode properties, at +// least one of which is guaranteed to be defined. +function decorateComment(node, comment, lines) { + var childNodes = getSortedChildNodes(node, lines); + // Time to dust off the old binary search robes and wizard hat. + var left = 0, right = childNodes.length; + while (left < right) { + var middle = (left + right) >> 1; + var child = childNodes[middle]; + if (util_1.comparePos(child.loc.start, comment.loc.start) <= 0 && + util_1.comparePos(comment.loc.end, child.loc.end) <= 0) { + // The comment is completely contained by this child node. + decorateComment(comment.enclosingNode = child, comment, lines); + return; // Abandon the binary search at this level. + } + if (util_1.comparePos(child.loc.end, comment.loc.start) <= 0) { + // This child node falls completely before the comment. + // Because we will never consider this node or any nodes + // before it again, this node must be the closest preceding + // node we have encountered so far. + var precedingNode = child; + left = middle + 1; + continue; + } + if (util_1.comparePos(comment.loc.end, child.loc.start) <= 0) { + // This child node falls completely after the comment. + // Because we will never consider this node or any nodes after + // it again, this node must be the closest following node we + // have encountered so far. + var followingNode = child; + right = middle; + continue; + } + throw new Error("Comment location overlaps with node location"); + } + if (precedingNode) { + comment.precedingNode = precedingNode; + } + if (followingNode) { + comment.followingNode = followingNode; + } +} +function attach(comments, ast, lines) { + if (!isArray.check(comments)) { + return; + } + var tiesToBreak = []; + comments.forEach(function (comment) { + comment.loc.lines = lines; + decorateComment(ast, comment, lines); + var pn = comment.precedingNode; + var en = comment.enclosingNode; + var fn = comment.followingNode; + if (pn && fn) { + var tieCount = tiesToBreak.length; + if (tieCount > 0) { + var lastTie = tiesToBreak[tieCount - 1]; + assert_1.default.strictEqual(lastTie.precedingNode === comment.precedingNode, lastTie.followingNode === comment.followingNode); + if (lastTie.followingNode !== comment.followingNode) { + breakTies(tiesToBreak, lines); + } + } + tiesToBreak.push(comment); + } + else if (pn) { + // No contest: we have a trailing comment. + breakTies(tiesToBreak, lines); + addTrailingComment(pn, comment); + } + else if (fn) { + // No contest: we have a leading comment. + breakTies(tiesToBreak, lines); + addLeadingComment(fn, comment); + } + else if (en) { + // The enclosing node has no child nodes at all, so what we + // have here is a dangling comment, e.g. [/* crickets */]. + breakTies(tiesToBreak, lines); + addDanglingComment(en, comment); + } + else { + throw new Error("AST contains no nodes at all?"); + } + }); + breakTies(tiesToBreak, lines); + comments.forEach(function (comment) { + // These node references were useful for breaking ties, but we + // don't need them anymore, and they create cycles in the AST that + // may lead to infinite recursion if we don't delete them here. + delete comment.precedingNode; + delete comment.enclosingNode; + delete comment.followingNode; + }); +} +exports.attach = attach; +; +function breakTies(tiesToBreak, lines) { + var tieCount = tiesToBreak.length; + if (tieCount === 0) { + return; + } + var pn = tiesToBreak[0].precedingNode; + var fn = tiesToBreak[0].followingNode; + var gapEndPos = fn.loc.start; + // Iterate backwards through tiesToBreak, examining the gaps + // between the tied comments. In order to qualify as leading, a + // comment must be separated from fn by an unbroken series of + // whitespace-only gaps (or other comments). + for (var indexOfFirstLeadingComment = tieCount; indexOfFirstLeadingComment > 0; --indexOfFirstLeadingComment) { + var comment = tiesToBreak[indexOfFirstLeadingComment - 1]; + assert_1.default.strictEqual(comment.precedingNode, pn); + assert_1.default.strictEqual(comment.followingNode, fn); + var gap = lines.sliceString(comment.loc.end, gapEndPos); + if (/\S/.test(gap)) { + // The gap string contained something other than whitespace. + break; + } + gapEndPos = comment.loc.start; + } + while (indexOfFirstLeadingComment <= tieCount && + (comment = tiesToBreak[indexOfFirstLeadingComment]) && + // If the comment is a //-style comment and indented more + // deeply than the node itself, reconsider it as trailing. + (comment.type === "Line" || comment.type === "CommentLine") && + comment.loc.start.column > fn.loc.start.column) { + ++indexOfFirstLeadingComment; + } + tiesToBreak.forEach(function (comment, i) { + if (i < indexOfFirstLeadingComment) { + addTrailingComment(pn, comment); + } + else { + addLeadingComment(fn, comment); + } + }); + tiesToBreak.length = 0; +} +function addCommentHelper(node, comment) { + var comments = node.comments || (node.comments = []); + comments.push(comment); +} +function addLeadingComment(node, comment) { + comment.leading = true; + comment.trailing = false; + addCommentHelper(node, comment); +} +function addDanglingComment(node, comment) { + comment.leading = false; + comment.trailing = false; + addCommentHelper(node, comment); +} +function addTrailingComment(node, comment) { + comment.leading = false; + comment.trailing = true; + addCommentHelper(node, comment); +} +function printLeadingComment(commentPath, print) { + var comment = commentPath.getValue(); + n.Comment.assert(comment); + var loc = comment.loc; + var lines = loc && loc.lines; + var parts = [print(commentPath)]; + if (comment.trailing) { + // When we print trailing comments as leading comments, we don't + // want to bring any trailing spaces along. + parts.push("\n"); + } + else if (lines instanceof lines_1.Lines) { + var trailingSpace = lines.slice(loc.end, lines.skipSpaces(loc.end) || lines.lastPos()); + if (trailingSpace.length === 1) { + // If the trailing space contains no newlines, then we want to + // preserve it exactly as we found it. + parts.push(trailingSpace); + } + else { + // If the trailing space contains newlines, then replace it + // with just that many newlines, with all other spaces removed. + parts.push(new Array(trailingSpace.length).join("\n")); + } + } + else { + parts.push("\n"); + } + return lines_1.concat(parts); +} +function printTrailingComment(commentPath, print) { + var comment = commentPath.getValue(commentPath); + n.Comment.assert(comment); + var loc = comment.loc; + var lines = loc && loc.lines; + var parts = []; + if (lines instanceof lines_1.Lines) { + var fromPos = lines.skipSpaces(loc.start, true) || lines.firstPos(); + var leadingSpace = lines.slice(fromPos, loc.start); + if (leadingSpace.length === 1) { + // If the leading space contains no newlines, then we want to + // preserve it exactly as we found it. + parts.push(leadingSpace); + } + else { + // If the leading space contains newlines, then replace it + // with just that many newlines, sans all other spaces. + parts.push(new Array(leadingSpace.length).join("\n")); + } + } + parts.push(print(commentPath)); + return lines_1.concat(parts); +} +function printComments(path, print) { + var value = path.getValue(); + var innerLines = print(path); + var comments = n.Node.check(value) && + types_1.default.getFieldValue(value, "comments"); + if (!comments || comments.length === 0) { + return innerLines; + } + var leadingParts = []; + var trailingParts = [innerLines]; + path.each(function (commentPath) { + var comment = commentPath.getValue(); + var leading = types_1.default.getFieldValue(comment, "leading"); + var trailing = types_1.default.getFieldValue(comment, "trailing"); + if (leading || (trailing && !(n.Statement.check(value) || + comment.type === "Block" || + comment.type === "CommentBlock"))) { + leadingParts.push(printLeadingComment(commentPath, print)); + } + else if (trailing) { + trailingParts.push(printTrailingComment(commentPath, print)); + } + }, "comments"); + leadingParts.push.apply(leadingParts, trailingParts); + return lines_1.concat(leadingParts); +} +exports.printComments = printComments; +; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/fast-path.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/fast-path.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..8a8940330aba338224b15d04adcc23060e4c959b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/fast-path.d.ts" @@ -0,0 +1,25 @@ +interface FastPathType { + stack: any[]; + copy(): any; + getName(): any; + getValue(): any; + valueIsDuplicate(): any; + getNode(count?: number): any; + getParentNode(count?: number): any; + getRootValue(): any; + call(callback: any, ...names: any[]): any; + each(callback: any, ...names: any[]): any; + map(callback: any, ...names: any[]): any; + hasParens(): any; + getPrevToken(node: any): any; + getNextToken(node: any): any; + needsParens(assumeExpressionContext: any): any; + canBeFirstInStatement(): any; + firstInStatement(): any; +} +interface FastPathConstructor { + new (value: any): FastPathType; + from(obj: any): any; +} +declare const FastPath: FastPathConstructor; +export default FastPath; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/fast-path.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/fast-path.js" new file mode 100644 index 0000000000000000000000000000000000000000..3cc11e4939000191f506f29e2b1aa0d390c60d2c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/fast-path.js" @@ -0,0 +1,540 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result["default"] = mod; + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var assert_1 = __importDefault(require("assert")); +var types_1 = __importDefault(require("./types")); +var n = types_1.default.namedTypes; +var isArray = types_1.default.builtInTypes.array; +var isNumber = types_1.default.builtInTypes.number; +var util = __importStar(require("./util")); +var FastPath = function FastPath(value) { + assert_1.default.ok(this instanceof FastPath); + this.stack = [value]; +}; +var FPp = FastPath.prototype; +// Static convenience function for coercing a value to a FastPath. +FastPath.from = function (obj) { + if (obj instanceof FastPath) { + // Return a defensive copy of any existing FastPath instances. + return obj.copy(); + } + if (obj instanceof types_1.default.NodePath) { + // For backwards compatibility, unroll NodePath instances into + // lightweight FastPath [..., name, value] stacks. + var copy = Object.create(FastPath.prototype); + var stack = [obj.value]; + for (var pp; (pp = obj.parentPath); obj = pp) + stack.push(obj.name, pp.value); + copy.stack = stack.reverse(); + return copy; + } + // Otherwise use obj as the value of the new FastPath instance. + return new FastPath(obj); +}; +FPp.copy = function copy() { + var copy = Object.create(FastPath.prototype); + copy.stack = this.stack.slice(0); + return copy; +}; +// The name of the current property is always the penultimate element of +// this.stack, and always a String. +FPp.getName = function getName() { + var s = this.stack; + var len = s.length; + if (len > 1) { + return s[len - 2]; + } + // Since the name is always a string, null is a safe sentinel value to + // return if we do not know the name of the (root) value. + return null; +}; +// The value of the current property is always the final element of +// this.stack. +FPp.getValue = function getValue() { + var s = this.stack; + return s[s.length - 1]; +}; +FPp.valueIsDuplicate = function () { + var s = this.stack; + var valueIndex = s.length - 1; + return s.lastIndexOf(s[valueIndex], valueIndex - 1) >= 0; +}; +function getNodeHelper(path, count) { + var s = path.stack; + for (var i = s.length - 1; i >= 0; i -= 2) { + var value = s[i]; + if (n.Node.check(value) && --count < 0) { + return value; + } + } + return null; +} +FPp.getNode = function getNode(count) { + if (count === void 0) { count = 0; } + return getNodeHelper(this, ~~count); +}; +FPp.getParentNode = function getParentNode(count) { + if (count === void 0) { count = 0; } + return getNodeHelper(this, ~~count + 1); +}; +// The length of the stack can be either even or odd, depending on whether +// or not we have a name for the root value. The difference between the +// index of the root value and the index of the final value is always +// even, though, which allows us to return the root value in constant time +// (i.e. without iterating backwards through the stack). +FPp.getRootValue = function getRootValue() { + var s = this.stack; + if (s.length % 2 === 0) { + return s[1]; + } + return s[0]; +}; +// Temporarily push properties named by string arguments given after the +// callback function onto this.stack, then call the callback with a +// reference to this (modified) FastPath object. Note that the stack will +// be restored to its original state after the callback is finished, so it +// is probably a mistake to retain a reference to the path. +FPp.call = function call(callback /*, name1, name2, ... */) { + var s = this.stack; + var origLen = s.length; + var value = s[origLen - 1]; + var argc = arguments.length; + for (var i = 1; i < argc; ++i) { + var name = arguments[i]; + value = value[name]; + s.push(name, value); + } + var result = callback(this); + s.length = origLen; + return result; +}; +// Similar to FastPath.prototype.call, except that the value obtained by +// accessing this.getValue()[name1][name2]... should be array-like. The +// callback will be called with a reference to this path object for each +// element of the array. +FPp.each = function each(callback /*, name1, name2, ... */) { + var s = this.stack; + var origLen = s.length; + var value = s[origLen - 1]; + var argc = arguments.length; + for (var i = 1; i < argc; ++i) { + var name = arguments[i]; + value = value[name]; + s.push(name, value); + } + for (var i = 0; i < value.length; ++i) { + if (i in value) { + s.push(i, value[i]); + // If the callback needs to know the value of i, call + // path.getName(), assuming path is the parameter name. + callback(this); + s.length -= 2; + } + } + s.length = origLen; +}; +// Similar to FastPath.prototype.each, except that the results of the +// callback function invocations are stored in an array and returned at +// the end of the iteration. +FPp.map = function map(callback /*, name1, name2, ... */) { + var s = this.stack; + var origLen = s.length; + var value = s[origLen - 1]; + var argc = arguments.length; + for (var i = 1; i < argc; ++i) { + var name = arguments[i]; + value = value[name]; + s.push(name, value); + } + var result = new Array(value.length); + for (var i = 0; i < value.length; ++i) { + if (i in value) { + s.push(i, value[i]); + result[i] = callback(this, i); + s.length -= 2; + } + } + s.length = origLen; + return result; +}; +// Returns true if the node at the tip of the path is wrapped with +// parentheses, OR if the only reason the node needed parentheses was that +// it couldn't be the first expression in the enclosing statement (see +// FastPath#canBeFirstInStatement), and it has an opening `(` character. +// For example, the FunctionExpression in `(function(){}())` appears to +// need parentheses only because it's the first expression in the AST, but +// since it happens to be preceded by a `(` (which is not apparent from +// the AST but can be determined using FastPath#getPrevToken), there is no +// ambiguity about how to parse it, so it counts as having parentheses, +// even though it is not immediately followed by a `)`. +FPp.hasParens = function () { + var node = this.getNode(); + var prevToken = this.getPrevToken(node); + if (!prevToken) { + return false; + } + var nextToken = this.getNextToken(node); + if (!nextToken) { + return false; + } + if (prevToken.value === "(") { + if (nextToken.value === ")") { + // If the node preceded by a `(` token and followed by a `)` token, + // then of course it has parentheses. + return true; + } + // If this is one of the few Expression types that can't come first in + // the enclosing statement because of parsing ambiguities (namely, + // FunctionExpression, ObjectExpression, and ClassExpression) and + // this.firstInStatement() returns true, and the node would not need + // parentheses in an expression context because this.needsParens(true) + // returns false, then it just needs an opening parenthesis to resolve + // the parsing ambiguity that made it appear to need parentheses. + var justNeedsOpeningParen = !this.canBeFirstInStatement() && + this.firstInStatement() && + !this.needsParens(true); + if (justNeedsOpeningParen) { + return true; + } + } + return false; +}; +FPp.getPrevToken = function (node) { + node = node || this.getNode(); + var loc = node && node.loc; + var tokens = loc && loc.tokens; + if (tokens && loc.start.token > 0) { + var token = tokens[loc.start.token - 1]; + if (token) { + // Do not return tokens that fall outside the root subtree. + var rootLoc = this.getRootValue().loc; + if (util.comparePos(rootLoc.start, token.loc.start) <= 0) { + return token; + } + } + } + return null; +}; +FPp.getNextToken = function (node) { + node = node || this.getNode(); + var loc = node && node.loc; + var tokens = loc && loc.tokens; + if (tokens && loc.end.token < tokens.length) { + var token = tokens[loc.end.token]; + if (token) { + // Do not return tokens that fall outside the root subtree. + var rootLoc = this.getRootValue().loc; + if (util.comparePos(token.loc.end, rootLoc.end) <= 0) { + return token; + } + } + } + return null; +}; +// Inspired by require("ast-types").NodePath.prototype.needsParens, but +// more efficient because we're iterating backwards through a stack. +FPp.needsParens = function (assumeExpressionContext) { + var node = this.getNode(); + // This needs to come before `if (!parent) { return false }` because + // an object destructuring assignment requires parens for + // correctness even when it's the topmost expression. + if (node.type === "AssignmentExpression" && node.left.type === 'ObjectPattern') { + return true; + } + var parent = this.getParentNode(); + if (!parent) { + return false; + } + var name = this.getName(); + // If the value of this path is some child of a Node and not a Node + // itself, then it doesn't need parentheses. Only Node objects (in fact, + // only Expression nodes) need parentheses. + if (this.getValue() !== node) { + return false; + } + // Only statements don't need parentheses. + if (n.Statement.check(node)) { + return false; + } + // Identifiers never need parentheses. + if (node.type === "Identifier") { + return false; + } + if (parent.type === "ParenthesizedExpression") { + return false; + } + switch (node.type) { + case "UnaryExpression": + case "SpreadElement": + case "SpreadProperty": + return parent.type === "MemberExpression" + && name === "object" + && parent.object === node; + case "BinaryExpression": + case "LogicalExpression": + switch (parent.type) { + case "CallExpression": + return name === "callee" + && parent.callee === node; + case "UnaryExpression": + case "SpreadElement": + case "SpreadProperty": + return true; + case "MemberExpression": + return name === "object" + && parent.object === node; + case "BinaryExpression": + case "LogicalExpression": + var po = parent.operator; + var pp = PRECEDENCE[po]; + var no = node.operator; + var np = PRECEDENCE[no]; + if (pp > np) { + return true; + } + if (pp === np && name === "right") { + assert_1.default.strictEqual(parent.right, node); + return true; + } + default: + return false; + } + case "SequenceExpression": + switch (parent.type) { + case "ReturnStatement": + return false; + case "ForStatement": + // Although parentheses wouldn't hurt around sequence expressions in + // the head of for loops, traditional style dictates that e.g. i++, + // j++ should not be wrapped with parentheses. + return false; + case "ExpressionStatement": + return name !== "expression"; + default: + // Otherwise err on the side of overparenthesization, adding + // explicit exceptions above if this proves overzealous. + return true; + } + case "YieldExpression": + switch (parent.type) { + case "BinaryExpression": + case "LogicalExpression": + case "UnaryExpression": + case "SpreadElement": + case "SpreadProperty": + case "CallExpression": + case "MemberExpression": + case "NewExpression": + case "ConditionalExpression": + case "YieldExpression": + return true; + default: + return false; + } + case "IntersectionTypeAnnotation": + case "UnionTypeAnnotation": + return parent.type === "NullableTypeAnnotation"; + case "Literal": + return parent.type === "MemberExpression" + && isNumber.check(node.value) + && name === "object" + && parent.object === node; + // Babel 6 Literal split + case "NumericLiteral": + return parent.type === "MemberExpression" + && name === "object" + && parent.object === node; + case "AssignmentExpression": + case "ConditionalExpression": + switch (parent.type) { + case "UnaryExpression": + case "SpreadElement": + case "SpreadProperty": + case "BinaryExpression": + case "LogicalExpression": + return true; + case "CallExpression": + case "NewExpression": + return name === "callee" + && parent.callee === node; + case "ConditionalExpression": + return name === "test" + && parent.test === node; + case "MemberExpression": + return name === "object" + && parent.object === node; + default: + return false; + } + case "ArrowFunctionExpression": + if (n.CallExpression.check(parent) && + name === 'callee') { + return true; + } + if (n.MemberExpression.check(parent) && + name === 'object') { + return true; + } + return isBinary(parent); + case "ObjectExpression": + if (parent.type === "ArrowFunctionExpression" && + name === "body") { + return true; + } + break; + case "CallExpression": + if (name === "declaration" && + n.ExportDefaultDeclaration.check(parent) && + n.FunctionExpression.check(node.callee)) { + return true; + } + } + if (parent.type === "NewExpression" && + name === "callee" && + parent.callee === node) { + return containsCallExpression(node); + } + if (assumeExpressionContext !== true && + !this.canBeFirstInStatement() && + this.firstInStatement()) { + return true; + } + return false; +}; +function isBinary(node) { + return n.BinaryExpression.check(node) + || n.LogicalExpression.check(node); +} +// @ts-ignore 'isUnaryLike' is declared but its value is never read. [6133] +function isUnaryLike(node) { + return n.UnaryExpression.check(node) + // I considered making SpreadElement and SpreadProperty subtypes of + // UnaryExpression, but they're not really Expression nodes. + || (n.SpreadElement && n.SpreadElement.check(node)) + || (n.SpreadProperty && n.SpreadProperty.check(node)); +} +var PRECEDENCE = {}; +[["||"], + ["&&"], + ["|"], + ["^"], + ["&"], + ["==", "===", "!=", "!=="], + ["<", ">", "<=", ">=", "in", "instanceof"], + [">>", "<<", ">>>"], + ["+", "-"], + ["*", "/", "%", "**"] +].forEach(function (tier, i) { + tier.forEach(function (op) { + PRECEDENCE[op] = i; + }); +}); +function containsCallExpression(node) { + if (n.CallExpression.check(node)) { + return true; + } + if (isArray.check(node)) { + return node.some(containsCallExpression); + } + if (n.Node.check(node)) { + return types_1.default.someField(node, function (_name, child) { + return containsCallExpression(child); + }); + } + return false; +} +FPp.canBeFirstInStatement = function () { + var node = this.getNode(); + if (n.FunctionExpression.check(node)) { + return false; + } + if (n.ObjectExpression.check(node)) { + return false; + } + if (n.ClassExpression.check(node)) { + return false; + } + return true; +}; +FPp.firstInStatement = function () { + var s = this.stack; + var parentName, parent; + var childName, child; + for (var i = s.length - 1; i >= 0; i -= 2) { + if (n.Node.check(s[i])) { + childName = parentName; + child = parent; + parentName = s[i - 1]; + parent = s[i]; + } + if (!parent || !child) { + continue; + } + if (n.BlockStatement.check(parent) && + parentName === "body" && + childName === 0) { + assert_1.default.strictEqual(parent.body[0], child); + return true; + } + if (n.ExpressionStatement.check(parent) && + childName === "expression") { + assert_1.default.strictEqual(parent.expression, child); + return true; + } + if (n.AssignmentExpression.check(parent) && + childName === "left") { + assert_1.default.strictEqual(parent.left, child); + return true; + } + if (n.ArrowFunctionExpression.check(parent) && + childName === "body") { + assert_1.default.strictEqual(parent.body, child); + return true; + } + if (n.SequenceExpression.check(parent) && + parentName === "expressions" && + childName === 0) { + assert_1.default.strictEqual(parent.expressions[0], child); + continue; + } + if (n.CallExpression.check(parent) && + childName === "callee") { + assert_1.default.strictEqual(parent.callee, child); + continue; + } + if (n.MemberExpression.check(parent) && + childName === "object") { + assert_1.default.strictEqual(parent.object, child); + continue; + } + if (n.ConditionalExpression.check(parent) && + childName === "test") { + assert_1.default.strictEqual(parent.test, child); + continue; + } + if (isBinary(parent) && + childName === "left") { + assert_1.default.strictEqual(parent.left, child); + continue; + } + if (n.UnaryExpression.check(parent) && + !parent.prefix && + childName === "argument") { + assert_1.default.strictEqual(parent.argument, child); + continue; + } + return false; + } + return true; +}; +exports.default = FastPath; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/lines.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/lines.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..f210ad228dcc8e6e171c931ddf3291cf006ae018 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/lines.d.ts" @@ -0,0 +1,61 @@ +import { Options } from "./options"; +import { Position as Pos } from "./types"; +declare type LineInfo = { + readonly line: string; + readonly indent: number; + readonly locked: boolean; + readonly sliceStart: number; + readonly sliceEnd: number; +}; +export declare class Lines { + private infos; + readonly length: number; + readonly name: string | null; + private mappings; + private cachedSourceMap; + private cachedTabWidth; + constructor(infos: LineInfo[], sourceFileName?: string | null); + toString(options?: Options): string; + getSourceMap(sourceMapName: string, sourceRoot?: string): any; + bootstrapCharAt(pos: Pos): string; + charAt(pos: Pos): string; + stripMargin(width: number, skipFirstLine: boolean): Lines; + indent(by: number): Lines; + indentTail(by: number): Lines; + lockIndentTail(): Lines; + getIndentAt(line: number): number; + guessTabWidth(): number; + startsWithComment(): boolean; + isOnlyWhitespace(): boolean; + isPrecededOnlyByWhitespace(pos: Pos): boolean; + getLineLength(line: number): number; + nextPos(pos: Pos, skipSpaces?: boolean): boolean; + prevPos(pos: Pos, skipSpaces?: boolean): boolean; + firstPos(): { + line: number; + column: number; + }; + lastPos(): { + line: number; + column: number; + }; + skipSpaces(pos: Pos, backward?: boolean, modifyInPlace?: boolean): Pos | null; + trimLeft(): Lines; + trimRight(): Lines; + trim(): Lines; + eachPos(callback: (pos: Pos) => any, startPos?: Pos, skipSpaces?: boolean): void; + bootstrapSlice(start: Pos, end: Pos): Lines; + slice(start?: Pos, end?: Pos): Lines; + bootstrapSliceString(start: Pos, end: Pos, options?: Options): string; + sliceString(start?: Pos, end?: Pos, options?: Options): string; + isEmpty(): boolean; + join(elements: (string | Lines)[]): Lines; + concat(...args: (string | Lines)[]): Lines; +} +export declare function countSpaces(spaces: any, tabWidth?: number): number; +/** + * @param {Object} options - Options object that configures printing. + */ +export declare function fromString(string: string | Lines, options?: Options): Lines; +export declare function concat(elements: any): Lines; +export {}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/lines.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/lines.js" new file mode 100644 index 0000000000000000000000000000000000000000..fd0eb695c7073d763ee43f4d2fd867476349e7d5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/lines.js" @@ -0,0 +1,668 @@ +"use strict"; +var __assign = (this && this.__assign) || function () { + __assign = Object.assign || function(t) { + for (var s, i = 1, n = arguments.length; i < n; i++) { + s = arguments[i]; + for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) + t[p] = s[p]; + } + return t; + }; + return __assign.apply(this, arguments); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var assert_1 = __importDefault(require("assert")); +var source_map_1 = __importDefault(require("source-map")); +var options_1 = require("./options"); +var util_1 = require("./util"); +var mapping_1 = __importDefault(require("./mapping")); +var Lines = /** @class */ (function () { + function Lines(infos, sourceFileName) { + if (sourceFileName === void 0) { sourceFileName = null; } + this.infos = infos; + this.mappings = []; + this.cachedSourceMap = null; + this.cachedTabWidth = void 0; + assert_1.default.ok(infos.length > 0); + this.length = infos.length; + this.name = sourceFileName || null; + if (this.name) { + this.mappings.push(new mapping_1.default(this, { + start: this.firstPos(), + end: this.lastPos(), + })); + } + } + Lines.prototype.toString = function (options) { + return this.sliceString(this.firstPos(), this.lastPos(), options); + }; + Lines.prototype.getSourceMap = function (sourceMapName, sourceRoot) { + if (!sourceMapName) { + // Although we could make up a name or generate an anonymous + // source map, instead we assume that any consumer who does not + // provide a name does not actually want a source map. + return null; + } + var targetLines = this; + function updateJSON(json) { + json = json || {}; + json.file = sourceMapName; + if (sourceRoot) { + json.sourceRoot = sourceRoot; + } + return json; + } + if (targetLines.cachedSourceMap) { + // Since Lines objects are immutable, we can reuse any source map + // that was previously generated. Nevertheless, we return a new + // JSON object here to protect the cached source map from outside + // modification. + return updateJSON(targetLines.cachedSourceMap.toJSON()); + } + var smg = new source_map_1.default.SourceMapGenerator(updateJSON()); + var sourcesToContents = {}; + targetLines.mappings.forEach(function (mapping) { + var sourceCursor = mapping.sourceLines.skipSpaces(mapping.sourceLoc.start) || mapping.sourceLines.lastPos(); + var targetCursor = targetLines.skipSpaces(mapping.targetLoc.start) || targetLines.lastPos(); + while (util_1.comparePos(sourceCursor, mapping.sourceLoc.end) < 0 && + util_1.comparePos(targetCursor, mapping.targetLoc.end) < 0) { + var sourceChar = mapping.sourceLines.charAt(sourceCursor); + var targetChar = targetLines.charAt(targetCursor); + assert_1.default.strictEqual(sourceChar, targetChar); + var sourceName = mapping.sourceLines.name; + // Add mappings one character at a time for maximum resolution. + smg.addMapping({ + source: sourceName, + original: { line: sourceCursor.line, + column: sourceCursor.column }, + generated: { line: targetCursor.line, + column: targetCursor.column } + }); + if (!hasOwn.call(sourcesToContents, sourceName)) { + var sourceContent = mapping.sourceLines.toString(); + smg.setSourceContent(sourceName, sourceContent); + sourcesToContents[sourceName] = sourceContent; + } + targetLines.nextPos(targetCursor, true); + mapping.sourceLines.nextPos(sourceCursor, true); + } + }); + targetLines.cachedSourceMap = smg; + return smg.toJSON(); + }; + Lines.prototype.bootstrapCharAt = function (pos) { + assert_1.default.strictEqual(typeof pos, "object"); + assert_1.default.strictEqual(typeof pos.line, "number"); + assert_1.default.strictEqual(typeof pos.column, "number"); + var line = pos.line, column = pos.column, strings = this.toString().split(lineTerminatorSeqExp), string = strings[line - 1]; + if (typeof string === "undefined") + return ""; + if (column === string.length && + line < strings.length) + return "\n"; + if (column >= string.length) + return ""; + return string.charAt(column); + }; + Lines.prototype.charAt = function (pos) { + assert_1.default.strictEqual(typeof pos, "object"); + assert_1.default.strictEqual(typeof pos.line, "number"); + assert_1.default.strictEqual(typeof pos.column, "number"); + var line = pos.line, column = pos.column, secret = this, infos = secret.infos, info = infos[line - 1], c = column; + if (typeof info === "undefined" || c < 0) + return ""; + var indent = this.getIndentAt(line); + if (c < indent) + return " "; + c += info.sliceStart - indent; + if (c === info.sliceEnd && + line < this.length) + return "\n"; + if (c >= info.sliceEnd) + return ""; + return info.line.charAt(c); + }; + Lines.prototype.stripMargin = function (width, skipFirstLine) { + if (width === 0) + return this; + assert_1.default.ok(width > 0, "negative margin: " + width); + if (skipFirstLine && this.length === 1) + return this; + var lines = new Lines(this.infos.map(function (info, i) { + if (info.line && (i > 0 || !skipFirstLine)) { + info = __assign({}, info, { indent: Math.max(0, info.indent - width) }); + } + return info; + })); + if (this.mappings.length > 0) { + var newMappings = lines.mappings; + assert_1.default.strictEqual(newMappings.length, 0); + this.mappings.forEach(function (mapping) { + newMappings.push(mapping.indent(width, skipFirstLine, true)); + }); + } + return lines; + }; + Lines.prototype.indent = function (by) { + if (by === 0) { + return this; + } + var lines = new Lines(this.infos.map(function (info) { + if (info.line && !info.locked) { + info = __assign({}, info, { indent: info.indent + by }); + } + return info; + })); + if (this.mappings.length > 0) { + var newMappings = lines.mappings; + assert_1.default.strictEqual(newMappings.length, 0); + this.mappings.forEach(function (mapping) { + newMappings.push(mapping.indent(by)); + }); + } + return lines; + }; + Lines.prototype.indentTail = function (by) { + if (by === 0) { + return this; + } + if (this.length < 2) { + return this; + } + var lines = new Lines(this.infos.map(function (info, i) { + if (i > 0 && info.line && !info.locked) { + info = __assign({}, info, { indent: info.indent + by }); + } + return info; + })); + if (this.mappings.length > 0) { + var newMappings = lines.mappings; + assert_1.default.strictEqual(newMappings.length, 0); + this.mappings.forEach(function (mapping) { + newMappings.push(mapping.indent(by, true)); + }); + } + return lines; + }; + Lines.prototype.lockIndentTail = function () { + if (this.length < 2) { + return this; + } + return new Lines(this.infos.map(function (info, i) { + return __assign({}, info, { locked: i > 0 }); + })); + }; + Lines.prototype.getIndentAt = function (line) { + assert_1.default.ok(line >= 1, "no line " + line + " (line numbers start from 1)"); + return Math.max(this.infos[line - 1].indent, 0); + }; + Lines.prototype.guessTabWidth = function () { + if (typeof this.cachedTabWidth === "number") { + return this.cachedTabWidth; + } + var counts = []; // Sparse array. + var lastIndent = 0; + for (var line = 1, last = this.length; line <= last; ++line) { + var info = this.infos[line - 1]; + var sliced = info.line.slice(info.sliceStart, info.sliceEnd); + // Whitespace-only lines don't tell us much about the likely tab + // width of this code. + if (isOnlyWhitespace(sliced)) { + continue; + } + var diff = Math.abs(info.indent - lastIndent); + counts[diff] = ~~counts[diff] + 1; + lastIndent = info.indent; + } + var maxCount = -1; + var result = 2; + for (var tabWidth = 1; tabWidth < counts.length; tabWidth += 1) { + if (hasOwn.call(counts, tabWidth) && + counts[tabWidth] > maxCount) { + maxCount = counts[tabWidth]; + result = tabWidth; + } + } + return this.cachedTabWidth = result; + }; + // Determine if the list of lines has a first line that starts with a // + // or /* comment. If this is the case, the code may need to be wrapped in + // parens to avoid ASI issues. + Lines.prototype.startsWithComment = function () { + if (this.infos.length === 0) { + return false; + } + var firstLineInfo = this.infos[0], sliceStart = firstLineInfo.sliceStart, sliceEnd = firstLineInfo.sliceEnd, firstLine = firstLineInfo.line.slice(sliceStart, sliceEnd).trim(); + return firstLine.length === 0 || + firstLine.slice(0, 2) === "//" || + firstLine.slice(0, 2) === "/*"; + }; + Lines.prototype.isOnlyWhitespace = function () { + return isOnlyWhitespace(this.toString()); + }; + Lines.prototype.isPrecededOnlyByWhitespace = function (pos) { + var info = this.infos[pos.line - 1]; + var indent = Math.max(info.indent, 0); + var diff = pos.column - indent; + if (diff <= 0) { + // If pos.column does not exceed the indentation amount, then + // there must be only whitespace before it. + return true; + } + var start = info.sliceStart; + var end = Math.min(start + diff, info.sliceEnd); + var prefix = info.line.slice(start, end); + return isOnlyWhitespace(prefix); + }; + Lines.prototype.getLineLength = function (line) { + var info = this.infos[line - 1]; + return this.getIndentAt(line) + info.sliceEnd - info.sliceStart; + }; + Lines.prototype.nextPos = function (pos, skipSpaces) { + if (skipSpaces === void 0) { skipSpaces = false; } + var l = Math.max(pos.line, 0), c = Math.max(pos.column, 0); + if (c < this.getLineLength(l)) { + pos.column += 1; + return skipSpaces + ? !!this.skipSpaces(pos, false, true) + : true; + } + if (l < this.length) { + pos.line += 1; + pos.column = 0; + return skipSpaces + ? !!this.skipSpaces(pos, false, true) + : true; + } + return false; + }; + Lines.prototype.prevPos = function (pos, skipSpaces) { + if (skipSpaces === void 0) { skipSpaces = false; } + var l = pos.line, c = pos.column; + if (c < 1) { + l -= 1; + if (l < 1) + return false; + c = this.getLineLength(l); + } + else { + c = Math.min(c - 1, this.getLineLength(l)); + } + pos.line = l; + pos.column = c; + return skipSpaces + ? !!this.skipSpaces(pos, true, true) + : true; + }; + Lines.prototype.firstPos = function () { + // Trivial, but provided for completeness. + return { line: 1, column: 0 }; + }; + Lines.prototype.lastPos = function () { + return { + line: this.length, + column: this.getLineLength(this.length) + }; + }; + Lines.prototype.skipSpaces = function (pos, backward, modifyInPlace) { + if (backward === void 0) { backward = false; } + if (modifyInPlace === void 0) { modifyInPlace = false; } + if (pos) { + pos = modifyInPlace ? pos : { + line: pos.line, + column: pos.column + }; + } + else if (backward) { + pos = this.lastPos(); + } + else { + pos = this.firstPos(); + } + if (backward) { + while (this.prevPos(pos)) { + if (!isOnlyWhitespace(this.charAt(pos)) && + this.nextPos(pos)) { + return pos; + } + } + return null; + } + else { + while (isOnlyWhitespace(this.charAt(pos))) { + if (!this.nextPos(pos)) { + return null; + } + } + return pos; + } + }; + Lines.prototype.trimLeft = function () { + var pos = this.skipSpaces(this.firstPos(), false, true); + return pos ? this.slice(pos) : emptyLines; + }; + Lines.prototype.trimRight = function () { + var pos = this.skipSpaces(this.lastPos(), true, true); + return pos ? this.slice(this.firstPos(), pos) : emptyLines; + }; + Lines.prototype.trim = function () { + var start = this.skipSpaces(this.firstPos(), false, true); + if (start === null) { + return emptyLines; + } + var end = this.skipSpaces(this.lastPos(), true, true); + if (end === null) { + return emptyLines; + } + return this.slice(start, end); + }; + Lines.prototype.eachPos = function (callback, startPos, skipSpaces) { + if (startPos === void 0) { startPos = this.firstPos(); } + if (skipSpaces === void 0) { skipSpaces = false; } + var pos = this.firstPos(); + if (startPos) { + pos.line = startPos.line, + pos.column = startPos.column; + } + if (skipSpaces && !this.skipSpaces(pos, false, true)) { + return; // Encountered nothing but spaces. + } + do + callback.call(this, pos); + while (this.nextPos(pos, skipSpaces)); + }; + Lines.prototype.bootstrapSlice = function (start, end) { + var strings = this.toString().split(lineTerminatorSeqExp).slice(start.line - 1, end.line); + if (strings.length > 0) { + strings.push(strings.pop().slice(0, end.column)); + strings[0] = strings[0].slice(start.column); + } + return fromString(strings.join("\n")); + }; + Lines.prototype.slice = function (start, end) { + if (!end) { + if (!start) { + // The client seems to want a copy of this Lines object, but + // Lines objects are immutable, so it's perfectly adequate to + // return the same object. + return this; + } + // Slice to the end if no end position was provided. + end = this.lastPos(); + } + if (!start) { + throw new Error("cannot slice with end but not start"); + } + var sliced = this.infos.slice(start.line - 1, end.line); + if (start.line === end.line) { + sliced[0] = sliceInfo(sliced[0], start.column, end.column); + } + else { + assert_1.default.ok(start.line < end.line); + sliced[0] = sliceInfo(sliced[0], start.column); + sliced.push(sliceInfo(sliced.pop(), 0, end.column)); + } + var lines = new Lines(sliced); + if (this.mappings.length > 0) { + var newMappings = lines.mappings; + assert_1.default.strictEqual(newMappings.length, 0); + this.mappings.forEach(function (mapping) { + var sliced = mapping.slice(this, start, end); + if (sliced) { + newMappings.push(sliced); + } + }, this); + } + return lines; + }; + Lines.prototype.bootstrapSliceString = function (start, end, options) { + return this.slice(start, end).toString(options); + }; + Lines.prototype.sliceString = function (start, end, options) { + if (start === void 0) { start = this.firstPos(); } + if (end === void 0) { end = this.lastPos(); } + options = options_1.normalize(options); + var parts = []; + var _a = options.tabWidth, tabWidth = _a === void 0 ? 2 : _a; + for (var line = start.line; line <= end.line; ++line) { + var info = this.infos[line - 1]; + if (line === start.line) { + if (line === end.line) { + info = sliceInfo(info, start.column, end.column); + } + else { + info = sliceInfo(info, start.column); + } + } + else if (line === end.line) { + info = sliceInfo(info, 0, end.column); + } + var indent = Math.max(info.indent, 0); + var before = info.line.slice(0, info.sliceStart); + if (options.reuseWhitespace && + isOnlyWhitespace(before) && + countSpaces(before, options.tabWidth) === indent) { + // Reuse original spaces if the indentation is correct. + parts.push(info.line.slice(0, info.sliceEnd)); + continue; + } + var tabs = 0; + var spaces = indent; + if (options.useTabs) { + tabs = Math.floor(indent / tabWidth); + spaces -= tabs * tabWidth; + } + var result = ""; + if (tabs > 0) { + result += new Array(tabs + 1).join("\t"); + } + if (spaces > 0) { + result += new Array(spaces + 1).join(" "); + } + result += info.line.slice(info.sliceStart, info.sliceEnd); + parts.push(result); + } + return parts.join(options.lineTerminator); + }; + Lines.prototype.isEmpty = function () { + return this.length < 2 && this.getLineLength(1) < 1; + }; + Lines.prototype.join = function (elements) { + var separator = this; + var infos = []; + var mappings = []; + var prevInfo; + function appendLines(linesOrNull) { + if (linesOrNull === null) { + return; + } + if (prevInfo) { + var info = linesOrNull.infos[0]; + var indent = new Array(info.indent + 1).join(" "); + var prevLine = infos.length; + var prevColumn = Math.max(prevInfo.indent, 0) + + prevInfo.sliceEnd - prevInfo.sliceStart; + prevInfo.line = prevInfo.line.slice(0, prevInfo.sliceEnd) + indent + info.line.slice(info.sliceStart, info.sliceEnd); + // If any part of a line is indentation-locked, the whole line + // will be indentation-locked. + prevInfo.locked = prevInfo.locked || info.locked; + prevInfo.sliceEnd = prevInfo.line.length; + if (linesOrNull.mappings.length > 0) { + linesOrNull.mappings.forEach(function (mapping) { + mappings.push(mapping.add(prevLine, prevColumn)); + }); + } + } + else if (linesOrNull.mappings.length > 0) { + mappings.push.apply(mappings, linesOrNull.mappings); + } + linesOrNull.infos.forEach(function (info, i) { + if (!prevInfo || i > 0) { + prevInfo = __assign({}, info); + infos.push(prevInfo); + } + }); + } + function appendWithSeparator(linesOrNull, i) { + if (i > 0) + appendLines(separator); + appendLines(linesOrNull); + } + elements.map(function (elem) { + var lines = fromString(elem); + if (lines.isEmpty()) + return null; + return lines; + }).forEach(function (linesOrNull, i) { + if (separator.isEmpty()) { + appendLines(linesOrNull); + } + else { + appendWithSeparator(linesOrNull, i); + } + }); + if (infos.length < 1) + return emptyLines; + var lines = new Lines(infos); + lines.mappings = mappings; + return lines; + }; + Lines.prototype.concat = function () { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + var list = [this]; + list.push.apply(list, args); + assert_1.default.strictEqual(list.length, args.length + 1); + return emptyLines.join(list); + }; + return Lines; +}()); +exports.Lines = Lines; +var fromStringCache = {}; +var hasOwn = fromStringCache.hasOwnProperty; +var maxCacheKeyLen = 10; +function countSpaces(spaces, tabWidth) { + var count = 0; + var len = spaces.length; + for (var i = 0; i < len; ++i) { + switch (spaces.charCodeAt(i)) { + case 9: // '\t' + assert_1.default.strictEqual(typeof tabWidth, "number"); + assert_1.default.ok(tabWidth > 0); + var next = Math.ceil(count / tabWidth) * tabWidth; + if (next === count) { + count += tabWidth; + } + else { + count = next; + } + break; + case 11: // '\v' + case 12: // '\f' + case 13: // '\r' + case 0xfeff: // zero-width non-breaking space + // These characters contribute nothing to indentation. + break; + case 32: // ' ' + default: // Treat all other whitespace like ' '. + count += 1; + break; + } + } + return count; +} +exports.countSpaces = countSpaces; +var leadingSpaceExp = /^\s*/; +// As specified here: http://www.ecma-international.org/ecma-262/6.0/#sec-line-terminators +var lineTerminatorSeqExp = /\u000D\u000A|\u000D(?!\u000A)|\u000A|\u2028|\u2029/; +/** + * @param {Object} options - Options object that configures printing. + */ +function fromString(string, options) { + if (string instanceof Lines) + return string; + string += ""; + var tabWidth = options && options.tabWidth; + var tabless = string.indexOf("\t") < 0; + var cacheable = !options && tabless && (string.length <= maxCacheKeyLen); + assert_1.default.ok(tabWidth || tabless, "No tab width specified but encountered tabs in string\n" + string); + if (cacheable && hasOwn.call(fromStringCache, string)) + return fromStringCache[string]; + var lines = new Lines(string.split(lineTerminatorSeqExp).map(function (line) { + // TODO: handle null exec result + var spaces = leadingSpaceExp.exec(line)[0]; + return { + line: line, + indent: countSpaces(spaces, tabWidth), + // Boolean indicating whether this line can be reindented. + locked: false, + sliceStart: spaces.length, + sliceEnd: line.length + }; + }), options_1.normalize(options).sourceFileName); + if (cacheable) + fromStringCache[string] = lines; + return lines; +} +exports.fromString = fromString; +function isOnlyWhitespace(string) { + return !/\S/.test(string); +} +function sliceInfo(info, startCol, endCol) { + var sliceStart = info.sliceStart; + var sliceEnd = info.sliceEnd; + var indent = Math.max(info.indent, 0); + var lineLength = indent + sliceEnd - sliceStart; + if (typeof endCol === "undefined") { + endCol = lineLength; + } + startCol = Math.max(startCol, 0); + endCol = Math.min(endCol, lineLength); + endCol = Math.max(endCol, startCol); + if (endCol < indent) { + indent = endCol; + sliceEnd = sliceStart; + } + else { + sliceEnd -= lineLength - endCol; + } + lineLength = endCol; + lineLength -= startCol; + if (startCol < indent) { + indent -= startCol; + } + else { + startCol -= indent; + indent = 0; + sliceStart += startCol; + } + assert_1.default.ok(indent >= 0); + assert_1.default.ok(sliceStart <= sliceEnd); + assert_1.default.strictEqual(lineLength, indent + sliceEnd - sliceStart); + if (info.indent === indent && + info.sliceStart === sliceStart && + info.sliceEnd === sliceEnd) { + return info; + } + return { + line: info.line, + indent: indent, + // A destructive slice always unlocks indentation. + locked: false, + sliceStart: sliceStart, + sliceEnd: sliceEnd + }; +} +function concat(elements) { + return emptyLines.join(elements); +} +exports.concat = concat; +; +// The emptyLines object needs to be created all the way down here so that +// Lines.prototype will be fully populated. +var emptyLines = fromString(""); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/mapping.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/mapping.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..aab74168853f8276d021c96aa0509a4d1a05b01e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/mapping.d.ts" @@ -0,0 +1,12 @@ +import { SourceLocation as Loc, Position as Pos } from "./types"; +import { Lines } from "./lines"; +export default class Mapping { + sourceLines: Lines; + sourceLoc: Loc; + targetLoc: Loc; + constructor(sourceLines: Lines, sourceLoc: Loc, targetLoc?: Loc); + slice(lines: Lines, start: Pos, end?: Pos): Mapping | null; + add(line: number, column: number): Mapping; + subtract(line: number, column: number): Mapping; + indent(by: number, skipFirstLine?: boolean, noNegativeColumns?: boolean): Mapping; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/mapping.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/mapping.js" new file mode 100644 index 0000000000000000000000000000000000000000..87e4134b669f8264b7ebc6be55abd9ef6a48a4ca --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/mapping.js" @@ -0,0 +1,203 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var assert_1 = __importDefault(require("assert")); +var util_1 = require("./util"); +var Mapping = /** @class */ (function () { + function Mapping(sourceLines, sourceLoc, targetLoc) { + if (targetLoc === void 0) { targetLoc = sourceLoc; } + this.sourceLines = sourceLines; + this.sourceLoc = sourceLoc; + this.targetLoc = targetLoc; + } + Mapping.prototype.slice = function (lines, start, end) { + if (end === void 0) { end = lines.lastPos(); } + var sourceLines = this.sourceLines; + var sourceLoc = this.sourceLoc; + var targetLoc = this.targetLoc; + function skip(name) { + var sourceFromPos = sourceLoc[name]; + var targetFromPos = targetLoc[name]; + var targetToPos = start; + if (name === "end") { + targetToPos = end; + } + else { + assert_1.default.strictEqual(name, "start"); + } + return skipChars(sourceLines, sourceFromPos, lines, targetFromPos, targetToPos); + } + if (util_1.comparePos(start, targetLoc.start) <= 0) { + if (util_1.comparePos(targetLoc.end, end) <= 0) { + targetLoc = { + start: subtractPos(targetLoc.start, start.line, start.column), + end: subtractPos(targetLoc.end, start.line, start.column) + }; + // The sourceLoc can stay the same because the contents of the + // targetLoc have not changed. + } + else if (util_1.comparePos(end, targetLoc.start) <= 0) { + return null; + } + else { + sourceLoc = { + start: sourceLoc.start, + end: skip("end") + }; + targetLoc = { + start: subtractPos(targetLoc.start, start.line, start.column), + end: subtractPos(end, start.line, start.column) + }; + } + } + else { + if (util_1.comparePos(targetLoc.end, start) <= 0) { + return null; + } + if (util_1.comparePos(targetLoc.end, end) <= 0) { + sourceLoc = { + start: skip("start"), + end: sourceLoc.end + }; + targetLoc = { + // Same as subtractPos(start, start.line, start.column): + start: { line: 1, column: 0 }, + end: subtractPos(targetLoc.end, start.line, start.column) + }; + } + else { + sourceLoc = { + start: skip("start"), + end: skip("end") + }; + targetLoc = { + // Same as subtractPos(start, start.line, start.column): + start: { line: 1, column: 0 }, + end: subtractPos(end, start.line, start.column) + }; + } + } + return new Mapping(this.sourceLines, sourceLoc, targetLoc); + }; + Mapping.prototype.add = function (line, column) { + return new Mapping(this.sourceLines, this.sourceLoc, { + start: addPos(this.targetLoc.start, line, column), + end: addPos(this.targetLoc.end, line, column) + }); + }; + Mapping.prototype.subtract = function (line, column) { + return new Mapping(this.sourceLines, this.sourceLoc, { + start: subtractPos(this.targetLoc.start, line, column), + end: subtractPos(this.targetLoc.end, line, column) + }); + }; + Mapping.prototype.indent = function (by, skipFirstLine, noNegativeColumns) { + if (skipFirstLine === void 0) { skipFirstLine = false; } + if (noNegativeColumns === void 0) { noNegativeColumns = false; } + if (by === 0) { + return this; + } + var targetLoc = this.targetLoc; + var startLine = targetLoc.start.line; + var endLine = targetLoc.end.line; + if (skipFirstLine && startLine === 1 && endLine === 1) { + return this; + } + targetLoc = { + start: targetLoc.start, + end: targetLoc.end + }; + if (!skipFirstLine || startLine > 1) { + var startColumn = targetLoc.start.column + by; + targetLoc.start = { + line: startLine, + column: noNegativeColumns + ? Math.max(0, startColumn) + : startColumn + }; + } + if (!skipFirstLine || endLine > 1) { + var endColumn = targetLoc.end.column + by; + targetLoc.end = { + line: endLine, + column: noNegativeColumns + ? Math.max(0, endColumn) + : endColumn + }; + } + return new Mapping(this.sourceLines, this.sourceLoc, targetLoc); + }; + return Mapping; +}()); +exports.default = Mapping; +function addPos(toPos, line, column) { + return { + line: toPos.line + line - 1, + column: (toPos.line === 1) + ? toPos.column + column + : toPos.column + }; +} +function subtractPos(fromPos, line, column) { + return { + line: fromPos.line - line + 1, + column: (fromPos.line === line) + ? fromPos.column - column + : fromPos.column + }; +} +function skipChars(sourceLines, sourceFromPos, targetLines, targetFromPos, targetToPos) { + var targetComparison = util_1.comparePos(targetFromPos, targetToPos); + if (targetComparison === 0) { + // Trivial case: no characters to skip. + return sourceFromPos; + } + if (targetComparison < 0) { + // Skipping forward. + var sourceCursor = sourceLines.skipSpaces(sourceFromPos) || sourceLines.lastPos(); + var targetCursor = targetLines.skipSpaces(targetFromPos) || targetLines.lastPos(); + var lineDiff = targetToPos.line - targetCursor.line; + sourceCursor.line += lineDiff; + targetCursor.line += lineDiff; + if (lineDiff > 0) { + // If jumping to later lines, reset columns to the beginnings + // of those lines. + sourceCursor.column = 0; + targetCursor.column = 0; + } + else { + assert_1.default.strictEqual(lineDiff, 0); + } + while (util_1.comparePos(targetCursor, targetToPos) < 0 && + targetLines.nextPos(targetCursor, true)) { + assert_1.default.ok(sourceLines.nextPos(sourceCursor, true)); + assert_1.default.strictEqual(sourceLines.charAt(sourceCursor), targetLines.charAt(targetCursor)); + } + } + else { + // Skipping backward. + var sourceCursor = sourceLines.skipSpaces(sourceFromPos, true) || sourceLines.firstPos(); + var targetCursor = targetLines.skipSpaces(targetFromPos, true) || targetLines.firstPos(); + var lineDiff = targetToPos.line - targetCursor.line; + sourceCursor.line += lineDiff; + targetCursor.line += lineDiff; + if (lineDiff < 0) { + // If jumping to earlier lines, reset columns to the ends of + // those lines. + sourceCursor.column = sourceLines.getLineLength(sourceCursor.line); + targetCursor.column = targetLines.getLineLength(targetCursor.line); + } + else { + assert_1.default.strictEqual(lineDiff, 0); + } + while (util_1.comparePos(targetToPos, targetCursor) < 0 && + targetLines.prevPos(targetCursor, true)) { + assert_1.default.ok(sourceLines.prevPos(sourceCursor, true)); + assert_1.default.strictEqual(sourceLines.charAt(sourceCursor), targetLines.charAt(targetCursor)); + } + } + return sourceCursor; +} +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/options.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/options.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..6f887219d9233833e98d74c9833ff6335a1dea92 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/options.d.ts" @@ -0,0 +1,148 @@ +import { Omit } from "ast-types/types"; +/** + * All Recast API functions take second parameter with configuration options, + * documented in options.js + */ +export interface Options extends DeprecatedOptions { + /** + * If you want to use a different branch of esprima, or any other module + * that supports a .parse function, pass that module object to + * recast.parse as options.parser (legacy synonym: options.esprima). + * @default require("recast/parsers/esprima") + */ + parser?: any; + /** + * Number of spaces the pretty-printer should use per tab for + * indentation. If you do not pass this option explicitly, it will be + * (quite reliably!) inferred from the original code. + * @default 4 + */ + tabWidth?: number; + /** + * If you really want the pretty-printer to use tabs instead of spaces, + * make this option true. + * @default false + */ + useTabs?: boolean; + /** + * The reprinting code leaves leading whitespace untouched unless it has + * to reindent a line, or you pass false for this option. + * @default true + */ + reuseWhitespace?: boolean; + /** + * Override this option to use a different line terminator, e.g. \r\n. + * @default require("os").EOL || "\n" + */ + lineTerminator?: string; + /** + * Some of the pretty-printer code (such as that for printing function + * parameter lists) makes a valiant attempt to prevent really long + * lines. You can adjust the limit by changing this option; however, + * there is no guarantee that line length will fit inside this limit. + * @default 74 + */ + wrapColumn?: number; + /** + * Pass a string as options.sourceFileName to recast.parse to tell the + * reprinter to keep track of reused code so that it can construct a + * source map automatically. + * @default null + */ + sourceFileName?: string | null; + /** + * Pass a string as options.sourceMapName to recast.print, and (provided + * you passed options.sourceFileName earlier) the PrintResult of + * recast.print will have a .map property for the generated source map. + * @default null + */ + sourceMapName?: string | null; + /** + * If provided, this option will be passed along to the source map + * generator as a root directory for relative source file paths. + * @default null + */ + sourceRoot?: string | null; + /** + * If you provide a source map that was generated from a previous call + * to recast.print as options.inputSourceMap, the old source map will be + * composed with the new source map. + * @default null + */ + inputSourceMap?: string | null; + /** + * If you want esprima to generate .range information (recast only uses + * .loc internally), pass true for this option. + * @default false + */ + range?: boolean; + /** + * If you want esprima not to throw exceptions when it encounters + * non-fatal errors, keep this option true. + * @default true + */ + tolerant?: boolean; + /** + * If you want to override the quotes used in string literals, specify + * either "single", "double", or "auto" here ("auto" will select the one + * which results in the shorter literal) Otherwise, use double quotes. + * @default null + */ + quote?: 'single' | 'double' | 'auto' | null; + /** + * Controls the printing of trailing commas in object literals, array + * expressions and function parameters. + * + * This option could either be: + * * Boolean - enable/disable in all contexts (objects, arrays and function params). + * * Object - enable/disable per context. + * + * Example: + * trailingComma: { + * objects: true, + * arrays: true, + * parameters: false, + * } + * + * @default false + */ + trailingComma?: boolean; + /** + * Controls the printing of spaces inside array brackets. + * See: http://eslint.org/docs/rules/array-bracket-spacing + * @default false + */ + arrayBracketSpacing?: boolean; + /** + * Controls the printing of spaces inside object literals, + * destructuring assignments, and import/export specifiers. + * See: http://eslint.org/docs/rules/object-curly-spacing + * @default true + */ + objectCurlySpacing?: boolean; + /** + * If you want parenthesis to wrap single-argument arrow function + * parameter lists, pass true for this option. + * @default false + */ + arrowParensAlways?: boolean; + /** + * There are 2 supported syntaxes (`,` and `;`) in Flow Object Types; + * The use of commas is in line with the more popular style and matches + * how objects are defined in JS, making it a bit more natural to write. + * @default true + */ + flowObjectCommas?: boolean; + /** + * Whether to return an array of .tokens on the root AST node. + * @default true + */ + tokens?: boolean; +} +interface DeprecatedOptions { + /** @deprecated */ + esprima?: any; +} +export declare type NormalizedOptions = Required>; +export declare function normalize(opts?: Options): NormalizedOptions; +export {}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/options.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/options.js" new file mode 100644 index 0000000000000000000000000000000000000000..3268c902b869dc4f0368d8f787491083785e8cc9 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/options.js" @@ -0,0 +1,55 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +var defaults = { + parser: require("../parsers/esprima"), + tabWidth: 4, + useTabs: false, + reuseWhitespace: true, + lineTerminator: require("os").EOL || "\n", + wrapColumn: 74, + sourceFileName: null, + sourceMapName: null, + sourceRoot: null, + inputSourceMap: null, + range: false, + tolerant: true, + quote: null, + trailingComma: false, + arrayBracketSpacing: false, + objectCurlySpacing: true, + arrowParensAlways: false, + flowObjectCommas: true, + tokens: true +}, hasOwn = defaults.hasOwnProperty; +// Copy options and fill in default values. +function normalize(opts) { + var options = opts || defaults; + function get(key) { + return hasOwn.call(options, key) + ? options[key] + : defaults[key]; + } + return { + tabWidth: +get("tabWidth"), + useTabs: !!get("useTabs"), + reuseWhitespace: !!get("reuseWhitespace"), + lineTerminator: get("lineTerminator"), + wrapColumn: Math.max(get("wrapColumn"), 0), + sourceFileName: get("sourceFileName"), + sourceMapName: get("sourceMapName"), + sourceRoot: get("sourceRoot"), + inputSourceMap: get("inputSourceMap"), + parser: get("esprima") || get("parser"), + range: get("range"), + tolerant: get("tolerant"), + quote: get("quote"), + trailingComma: get("trailingComma"), + arrayBracketSpacing: get("arrayBracketSpacing"), + objectCurlySpacing: get("objectCurlySpacing"), + arrowParensAlways: get("arrowParensAlways"), + flowObjectCommas: get("flowObjectCommas"), + tokens: !!get("tokens") + }; +} +exports.normalize = normalize; +; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/parser.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/parser.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..6f1d6df3302b7696eff62696dc64d02909421e38 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/parser.d.ts" @@ -0,0 +1,2 @@ +import { Options } from "./options"; +export declare function parse(source: string, options?: Partial): any; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/parser.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/parser.js" new file mode 100644 index 0000000000000000000000000000000000000000..06276d033f886bc8b8534835e41faaf412e8068a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/parser.js" @@ -0,0 +1,257 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result["default"] = mod; + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var assert_1 = __importDefault(require("assert")); +var types_1 = __importDefault(require("./types")); +var b = types_1.default.builders; +var isObject = types_1.default.builtInTypes.object; +var isArray = types_1.default.builtInTypes.array; +var options_1 = require("./options"); +var lines_1 = require("./lines"); +var comments_1 = require("./comments"); +var util = __importStar(require("./util")); +function parse(source, options) { + options = options_1.normalize(options); + var lines = lines_1.fromString(source, options); + var sourceWithoutTabs = lines.toString({ + tabWidth: options.tabWidth, + reuseWhitespace: false, + useTabs: false + }); + var comments = []; + var ast = options.parser.parse(sourceWithoutTabs, { + jsx: true, + loc: true, + locations: true, + range: options.range, + comment: true, + onComment: comments, + tolerant: util.getOption(options, "tolerant", true), + ecmaVersion: 6, + sourceType: util.getOption(options, "sourceType", "module") + }); + // Use ast.tokens if possible, and otherwise fall back to the Esprima + // tokenizer. All the preconfigured ../parsers/* expose ast.tokens + // automatically, but custom parsers might need additional configuration + // to avoid this fallback. + var tokens = Array.isArray(ast.tokens) + ? ast.tokens + : require("esprima").tokenize(sourceWithoutTabs, { + loc: true + }); + // We will reattach the tokens array to the file object below. + delete ast.tokens; + // Make sure every token has a token.value string. + tokens.forEach(function (token) { + if (typeof token.value !== "string") { + token.value = lines.sliceString(token.loc.start, token.loc.end); + } + }); + if (Array.isArray(ast.comments)) { + comments = ast.comments; + delete ast.comments; + } + if (ast.loc) { + // If the source was empty, some parsers give loc.{start,end}.line + // values of 0, instead of the minimum of 1. + util.fixFaultyLocations(ast, lines); + } + else { + ast.loc = { + start: lines.firstPos(), + end: lines.lastPos() + }; + } + ast.loc.lines = lines; + ast.loc.indent = 0; + var file; + var program; + if (ast.type === "Program") { + program = ast; + // In order to ensure we reprint leading and trailing program + // comments, wrap the original Program node with a File node. Only + // ESTree parsers (Acorn and Esprima) return a Program as the root AST + // node. Most other (Babylon-like) parsers return a File. + file = b.file(ast, options.sourceFileName || null); + file.loc = { + start: lines.firstPos(), + end: lines.lastPos(), + lines: lines, + indent: 0 + }; + } + else if (ast.type === "File") { + file = ast; + program = file.program; + } + // Expose file.tokens unless the caller passed false for options.tokens. + if (options.tokens) { + file.tokens = tokens; + } + // Expand the Program's .loc to include all comments (not just those + // attached to the Program node, as its children may have comments as + // well), since sometimes program.loc.{start,end} will coincide with the + // .loc.{start,end} of the first and last *statements*, mistakenly + // excluding comments that fall outside that region. + var trueProgramLoc = util.getTrueLoc({ + type: program.type, + loc: program.loc, + body: [], + comments: comments + }, lines); + program.loc.start = trueProgramLoc.start; + program.loc.end = trueProgramLoc.end; + // Passing file.program here instead of just file means that initial + // comments will be attached to program.body[0] instead of program. + comments_1.attach(comments, program.body.length ? file.program : file, lines); + // Return a copy of the original AST so that any changes made may be + // compared to the original. + return new TreeCopier(lines, tokens).copy(file); +} +exports.parse = parse; +; +var TreeCopier = function TreeCopier(lines, tokens) { + assert_1.default.ok(this instanceof TreeCopier); + this.lines = lines; + this.tokens = tokens; + this.startTokenIndex = 0; + this.endTokenIndex = tokens.length; + this.indent = 0; + this.seen = new Map; +}; +var TCp = TreeCopier.prototype; +TCp.copy = function (node) { + if (this.seen.has(node)) { + return this.seen.get(node); + } + if (isArray.check(node)) { + var copy = new Array(node.length); + this.seen.set(node, copy); + node.forEach(function (item, i) { + copy[i] = this.copy(item); + }, this); + return copy; + } + if (!isObject.check(node)) { + return node; + } + util.fixFaultyLocations(node, this.lines); + var copy = Object.create(Object.getPrototypeOf(node), { + original: { + value: node, + configurable: false, + enumerable: false, + writable: true + } + }); + this.seen.set(node, copy); + var loc = node.loc; + var oldIndent = this.indent; + var newIndent = oldIndent; + var oldStartTokenIndex = this.startTokenIndex; + var oldEndTokenIndex = this.endTokenIndex; + if (loc) { + // When node is a comment, we set node.loc.indent to + // node.loc.start.column so that, when/if we print the comment by + // itself, we can strip that much whitespace from the left margin of + // the comment. This only really matters for multiline Block comments, + // but it doesn't hurt for Line comments. + if (node.type === "Block" || node.type === "Line" || + node.type === "CommentBlock" || node.type === "CommentLine" || + this.lines.isPrecededOnlyByWhitespace(loc.start)) { + newIndent = this.indent = loc.start.column; + } + // Every node.loc has a reference to the original source lines as well + // as a complete list of source tokens. + loc.lines = this.lines; + loc.tokens = this.tokens; + loc.indent = newIndent; + // Set loc.start.token and loc.end.token such that + // loc.tokens.slice(loc.start.token, loc.end.token) returns a list of + // all the tokens that make up this node. + this.findTokenRange(loc); + } + var keys = Object.keys(node); + var keyCount = keys.length; + for (var i = 0; i < keyCount; ++i) { + var key = keys[i]; + if (key === "loc") { + copy[key] = node[key]; + } + else if (key === "tokens" && + node.type === "File") { + // Preserve file.tokens (uncopied) in case client code cares about + // it, even though Recast ignores it when reprinting. + copy[key] = node[key]; + } + else { + copy[key] = this.copy(node[key]); + } + } + this.indent = oldIndent; + this.startTokenIndex = oldStartTokenIndex; + this.endTokenIndex = oldEndTokenIndex; + return copy; +}; +// If we didn't have any idea where in loc.tokens to look for tokens +// contained by this loc, a binary search would be appropriate, but +// because we maintain this.startTokenIndex and this.endTokenIndex as we +// traverse the AST, we only need to make small (linear) adjustments to +// those indexes with each recursive iteration. +TCp.findTokenRange = function (loc) { + // In the unlikely event that loc.tokens[this.startTokenIndex] starts + // *after* loc.start, we need to rewind this.startTokenIndex first. + while (this.startTokenIndex > 0) { + var token = loc.tokens[this.startTokenIndex]; + if (util.comparePos(loc.start, token.loc.start) < 0) { + --this.startTokenIndex; + } + else + break; + } + // In the unlikely event that loc.tokens[this.endTokenIndex - 1] ends + // *before* loc.end, we need to fast-forward this.endTokenIndex first. + while (this.endTokenIndex < loc.tokens.length) { + var token = loc.tokens[this.endTokenIndex]; + if (util.comparePos(token.loc.end, loc.end) < 0) { + ++this.endTokenIndex; + } + else + break; + } + // Increment this.startTokenIndex until we've found the first token + // contained by this node. + while (this.startTokenIndex < this.endTokenIndex) { + var token = loc.tokens[this.startTokenIndex]; + if (util.comparePos(token.loc.start, loc.start) < 0) { + ++this.startTokenIndex; + } + else + break; + } + // Index into loc.tokens of the first token within this node. + loc.start.token = this.startTokenIndex; + // Decrement this.endTokenIndex until we've found the first token after + // this node (not contained by the node). + while (this.endTokenIndex > this.startTokenIndex) { + var token = loc.tokens[this.endTokenIndex - 1]; + if (util.comparePos(loc.end, token.loc.end) < 0) { + --this.endTokenIndex; + } + else + break; + } + // Index into loc.tokens of the first token *after* this node. + // If loc.start.token === loc.end.token, the node contains no tokens, + // and the index is that of the next token following this node. + loc.end.token = this.endTokenIndex; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/patcher.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/patcher.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..dcc065c063c3c06d2dde565bdd4ddca79b3be552 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/patcher.d.ts" @@ -0,0 +1,12 @@ +interface PatcherType { + replace(loc: any, lines: any): any; + get(loc?: any): any; + tryToReprintComments(newNode: any, oldNode: any, print: any): any; + deleteComments(node: any): any; +} +interface PatcherConstructor { + new (lines: any): PatcherType; +} +declare const Patcher: PatcherConstructor; +export { Patcher }; +export declare function getReprinter(path: any): ((print: any) => any) | undefined; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/patcher.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/patcher.js" new file mode 100644 index 0000000000000000000000000000000000000000..f6b2d9f53086a3390c70310fbc1472cc4458f47a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/patcher.js" @@ -0,0 +1,392 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result["default"] = mod; + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var assert_1 = __importDefault(require("assert")); +var linesModule = __importStar(require("./lines")); +var types_1 = __importDefault(require("./types")); +var Printable = types_1.default.namedTypes.Printable; +var Expression = types_1.default.namedTypes.Expression; +var ReturnStatement = types_1.default.namedTypes.ReturnStatement; +var SourceLocation = types_1.default.namedTypes.SourceLocation; +var util_1 = require("./util"); +var fast_path_1 = __importDefault(require("./fast-path")); +var isObject = types_1.default.builtInTypes.object; +var isArray = types_1.default.builtInTypes.array; +var isString = types_1.default.builtInTypes.string; +var riskyAdjoiningCharExp = /[0-9a-z_$]/i; +var Patcher = function Patcher(lines) { + assert_1.default.ok(this instanceof Patcher); + assert_1.default.ok(lines instanceof linesModule.Lines); + var self = this, replacements = []; + self.replace = function (loc, lines) { + if (isString.check(lines)) + lines = linesModule.fromString(lines); + replacements.push({ + lines: lines, + start: loc.start, + end: loc.end + }); + }; + self.get = function (loc) { + // If no location is provided, return the complete Lines object. + loc = loc || { + start: { line: 1, column: 0 }, + end: { line: lines.length, + column: lines.getLineLength(lines.length) } + }; + var sliceFrom = loc.start, toConcat = []; + function pushSlice(from, to) { + assert_1.default.ok(util_1.comparePos(from, to) <= 0); + toConcat.push(lines.slice(from, to)); + } + replacements.sort(function (a, b) { + return util_1.comparePos(a.start, b.start); + }).forEach(function (rep) { + if (util_1.comparePos(sliceFrom, rep.start) > 0) { + // Ignore nested replacement ranges. + } + else { + pushSlice(sliceFrom, rep.start); + toConcat.push(rep.lines); + sliceFrom = rep.end; + } + }); + pushSlice(sliceFrom, loc.end); + return linesModule.concat(toConcat); + }; +}; +exports.Patcher = Patcher; +var Pp = Patcher.prototype; +Pp.tryToReprintComments = function (newNode, oldNode, print) { + var patcher = this; + if (!newNode.comments && + !oldNode.comments) { + // We were (vacuously) able to reprint all the comments! + return true; + } + var newPath = fast_path_1.default.from(newNode); + var oldPath = fast_path_1.default.from(oldNode); + newPath.stack.push("comments", getSurroundingComments(newNode)); + oldPath.stack.push("comments", getSurroundingComments(oldNode)); + var reprints = []; + var ableToReprintComments = findArrayReprints(newPath, oldPath, reprints); + // No need to pop anything from newPath.stack or oldPath.stack, since + // newPath and oldPath are fresh local variables. + if (ableToReprintComments && reprints.length > 0) { + reprints.forEach(function (reprint) { + var oldComment = reprint.oldPath.getValue(); + assert_1.default.ok(oldComment.leading || oldComment.trailing); + patcher.replace(oldComment.loc, + // Comments can't have .comments, so it doesn't matter whether we + // print with comments or without. + print(reprint.newPath).indentTail(oldComment.loc.indent)); + }); + } + return ableToReprintComments; +}; +// Get all comments that are either leading or trailing, ignoring any +// comments that occur inside node.loc. Returns an empty array for nodes +// with no leading or trailing comments. +function getSurroundingComments(node) { + var result = []; + if (node.comments && + node.comments.length > 0) { + node.comments.forEach(function (comment) { + if (comment.leading || comment.trailing) { + result.push(comment); + } + }); + } + return result; +} +Pp.deleteComments = function (node) { + if (!node.comments) { + return; + } + var patcher = this; + node.comments.forEach(function (comment) { + if (comment.leading) { + // Delete leading comments along with any trailing whitespace they + // might have. + patcher.replace({ + start: comment.loc.start, + end: node.loc.lines.skipSpaces(comment.loc.end, false, false) + }, ""); + } + else if (comment.trailing) { + // Delete trailing comments along with any leading whitespace they + // might have. + patcher.replace({ + start: node.loc.lines.skipSpaces(comment.loc.start, true, false), + end: comment.loc.end + }, ""); + } + }); +}; +function getReprinter(path) { + assert_1.default.ok(path instanceof fast_path_1.default); + // Make sure that this path refers specifically to a Node, rather than + // some non-Node subproperty of a Node. + var node = path.getValue(); + if (!Printable.check(node)) + return; + var orig = node.original; + var origLoc = orig && orig.loc; + var lines = origLoc && origLoc.lines; + var reprints = []; + if (!lines || !findReprints(path, reprints)) + return; + return function (print) { + var patcher = new Patcher(lines); + reprints.forEach(function (reprint) { + var newNode = reprint.newPath.getValue(); + var oldNode = reprint.oldPath.getValue(); + SourceLocation.assert(oldNode.loc, true); + var needToPrintNewPathWithComments = !patcher.tryToReprintComments(newNode, oldNode, print); + if (needToPrintNewPathWithComments) { + // Since we were not able to preserve all leading/trailing + // comments, we delete oldNode's comments, print newPath with + // comments, and then patch the resulting lines where oldNode used + // to be. + patcher.deleteComments(oldNode); + } + var newLines = print(reprint.newPath, { + includeComments: needToPrintNewPathWithComments, + // If the oldNode we're replacing already had parentheses, we may + // not need to print the new node with any extra parentheses, + // because the existing parentheses will suffice. However, if the + // newNode has a different type than the oldNode, let the printer + // decide if reprint.newPath needs parentheses, as usual. + avoidRootParens: (oldNode.type === newNode.type && + reprint.oldPath.hasParens()) + }).indentTail(oldNode.loc.indent); + var nls = needsLeadingSpace(lines, oldNode.loc, newLines); + var nts = needsTrailingSpace(lines, oldNode.loc, newLines); + // If we try to replace the argument of a ReturnStatement like + // return"asdf" with e.g. a literal null expression, we run the risk + // of ending up with returnnull, so we need to add an extra leading + // space in situations where that might happen. Likewise for + // "asdf"in obj. See #170. + if (nls || nts) { + var newParts = []; + nls && newParts.push(" "); + newParts.push(newLines); + nts && newParts.push(" "); + newLines = linesModule.concat(newParts); + } + patcher.replace(oldNode.loc, newLines); + }); + // Recall that origLoc is the .loc of an ancestor node that is + // guaranteed to contain all the reprinted nodes and comments. + var patchedLines = patcher.get(origLoc).indentTail(-orig.loc.indent); + if (path.needsParens()) { + return linesModule.concat(["(", patchedLines, ")"]); + } + return patchedLines; + }; +} +exports.getReprinter = getReprinter; +; +// If the last character before oldLoc and the first character of newLines +// are both identifier characters, they must be separated by a space, +// otherwise they will most likely get fused together into a single token. +function needsLeadingSpace(oldLines, oldLoc, newLines) { + var posBeforeOldLoc = util_1.copyPos(oldLoc.start); + // The character just before the location occupied by oldNode. + var charBeforeOldLoc = oldLines.prevPos(posBeforeOldLoc) && + oldLines.charAt(posBeforeOldLoc); + // First character of the reprinted node. + var newFirstChar = newLines.charAt(newLines.firstPos()); + return charBeforeOldLoc && + riskyAdjoiningCharExp.test(charBeforeOldLoc) && + newFirstChar && + riskyAdjoiningCharExp.test(newFirstChar); +} +// If the last character of newLines and the first character after oldLoc +// are both identifier characters, they must be separated by a space, +// otherwise they will most likely get fused together into a single token. +function needsTrailingSpace(oldLines, oldLoc, newLines) { + // The character just after the location occupied by oldNode. + var charAfterOldLoc = oldLines.charAt(oldLoc.end); + var newLastPos = newLines.lastPos(); + // Last character of the reprinted node. + var newLastChar = newLines.prevPos(newLastPos) && + newLines.charAt(newLastPos); + return newLastChar && + riskyAdjoiningCharExp.test(newLastChar) && + charAfterOldLoc && + riskyAdjoiningCharExp.test(charAfterOldLoc); +} +function findReprints(newPath, reprints) { + var newNode = newPath.getValue(); + Printable.assert(newNode); + var oldNode = newNode.original; + Printable.assert(oldNode); + assert_1.default.deepEqual(reprints, []); + if (newNode.type !== oldNode.type) { + return false; + } + var oldPath = new fast_path_1.default(oldNode); + var canReprint = findChildReprints(newPath, oldPath, reprints); + if (!canReprint) { + // Make absolutely sure the calling code does not attempt to reprint + // any nodes. + reprints.length = 0; + } + return canReprint; +} +function findAnyReprints(newPath, oldPath, reprints) { + var newNode = newPath.getValue(); + var oldNode = oldPath.getValue(); + if (newNode === oldNode) + return true; + if (isArray.check(newNode)) + return findArrayReprints(newPath, oldPath, reprints); + if (isObject.check(newNode)) + return findObjectReprints(newPath, oldPath, reprints); + return false; +} +function findArrayReprints(newPath, oldPath, reprints) { + var newNode = newPath.getValue(); + var oldNode = oldPath.getValue(); + if (newNode === oldNode || + newPath.valueIsDuplicate() || + oldPath.valueIsDuplicate()) { + return true; + } + isArray.assert(newNode); + var len = newNode.length; + if (!(isArray.check(oldNode) && + oldNode.length === len)) + return false; + for (var i = 0; i < len; ++i) { + newPath.stack.push(i, newNode[i]); + oldPath.stack.push(i, oldNode[i]); + var canReprint = findAnyReprints(newPath, oldPath, reprints); + newPath.stack.length -= 2; + oldPath.stack.length -= 2; + if (!canReprint) { + return false; + } + } + return true; +} +function findObjectReprints(newPath, oldPath, reprints) { + var newNode = newPath.getValue(); + isObject.assert(newNode); + if (newNode.original === null) { + // If newNode.original node was set to null, reprint the node. + return false; + } + var oldNode = oldPath.getValue(); + if (!isObject.check(oldNode)) + return false; + if (newNode === oldNode || + newPath.valueIsDuplicate() || + oldPath.valueIsDuplicate()) { + return true; + } + if (Printable.check(newNode)) { + if (!Printable.check(oldNode)) { + return false; + } + // Here we need to decide whether the reprinted code for newNode is + // appropriate for patching into the location of oldNode. + if (newNode.type === oldNode.type) { + var childReprints = []; + if (findChildReprints(newPath, oldPath, childReprints)) { + reprints.push.apply(reprints, childReprints); + } + else if (oldNode.loc) { + // If we have no .loc information for oldNode, then we won't be + // able to reprint it. + reprints.push({ + oldPath: oldPath.copy(), + newPath: newPath.copy() + }); + } + else { + return false; + } + return true; + } + if (Expression.check(newNode) && + Expression.check(oldNode) && + // If we have no .loc information for oldNode, then we won't be + // able to reprint it. + oldNode.loc) { + // If both nodes are subtypes of Expression, then we should be able + // to fill the location occupied by the old node with code printed + // for the new node with no ill consequences. + reprints.push({ + oldPath: oldPath.copy(), + newPath: newPath.copy() + }); + return true; + } + // The nodes have different types, and at least one of the types is + // not a subtype of the Expression type, so we cannot safely assume + // the nodes are syntactically interchangeable. + return false; + } + return findChildReprints(newPath, oldPath, reprints); +} +function findChildReprints(newPath, oldPath, reprints) { + var newNode = newPath.getValue(); + var oldNode = oldPath.getValue(); + isObject.assert(newNode); + isObject.assert(oldNode); + if (newNode.original === null) { + // If newNode.original node was set to null, reprint the node. + return false; + } + // If this node needs parentheses and will not be wrapped with + // parentheses when reprinted, then return false to skip reprinting and + // let it be printed generically. + if (newPath.needsParens() && + !oldPath.hasParens()) { + return false; + } + var keys = util_1.getUnionOfKeys(oldNode, newNode); + if (oldNode.type === "File" || + newNode.type === "File") { + // Don't bother traversing file.tokens, an often very large array + // returned by Babylon, and useless for our purposes. + delete keys.tokens; + } + // Don't bother traversing .loc objects looking for reprintable nodes. + delete keys.loc; + var originalReprintCount = reprints.length; + for (var k in keys) { + if (k.charAt(0) === "_") { + // Ignore "private" AST properties added by e.g. Babel plugins and + // parsers like Babylon. + continue; + } + newPath.stack.push(k, types_1.default.getFieldValue(newNode, k)); + oldPath.stack.push(k, types_1.default.getFieldValue(oldNode, k)); + var canReprint = findAnyReprints(newPath, oldPath, reprints); + newPath.stack.length -= 2; + oldPath.stack.length -= 2; + if (!canReprint) { + return false; + } + } + // Return statements might end up running into ASI issues due to + // comments inserted deep within the tree, so reprint them if anything + // changed within them. + if (ReturnStatement.check(newPath.getNode()) && + reprints.length > originalReprintCount) { + return false; + } + return true; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/printer.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/printer.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..d8e2cfa1dd8a25ad4482d992eab3a6e8b32dc99d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/printer.d.ts" @@ -0,0 +1,14 @@ +export interface PrintResultType { + code: string; + map?: any; + toString(): string; +} +interface PrinterType { + print(ast: any): PrintResultType; + printGenerically(ast: any): PrintResultType; +} +interface PrinterConstructor { + new (config?: any): PrinterType; +} +declare const Printer: PrinterConstructor; +export { Printer }; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/printer.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/printer.js" new file mode 100644 index 0000000000000000000000000000000000000000..535d7cb6830e57cda1f331082543c82e81ed74b9 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/printer.js" @@ -0,0 +1,2205 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; + result["default"] = mod; + return result; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var assert_1 = __importDefault(require("assert")); +var comments_1 = require("./comments"); +var lines_1 = require("./lines"); +var options_1 = require("./options"); +var patcher_1 = require("./patcher"); +var types_1 = __importDefault(require("./types")); +var namedTypes = types_1.default.namedTypes; +var isString = types_1.default.builtInTypes.string; +var isObject = types_1.default.builtInTypes.object; +var fast_path_1 = __importDefault(require("./fast-path")); +var util = __importStar(require("./util")); +var PrintResult = function PrintResult(code, sourceMap) { + assert_1.default.ok(this instanceof PrintResult); + isString.assert(code); + this.code = code; + if (sourceMap) { + isObject.assert(sourceMap); + this.map = sourceMap; + } +}; +var PRp = PrintResult.prototype; +var warnedAboutToString = false; +PRp.toString = function () { + if (!warnedAboutToString) { + console.warn("Deprecation warning: recast.print now returns an object with " + + "a .code property. You appear to be treating the object as a " + + "string, which might still work but is strongly discouraged."); + warnedAboutToString = true; + } + return this.code; +}; +var emptyPrintResult = new PrintResult(""); +var Printer = function Printer(config) { + assert_1.default.ok(this instanceof Printer); + var explicitTabWidth = config && config.tabWidth; + config = options_1.normalize(config); + // It's common for client code to pass the same options into both + // recast.parse and recast.print, but the Printer doesn't need (and + // can be confused by) config.sourceFileName, so we null it out. + config.sourceFileName = null; + // Non-destructively modifies options with overrides, and returns a + // new print function that uses the modified options. + function makePrintFunctionWith(options, overrides) { + options = Object.assign({}, options, overrides); + return function (path) { + return print(path, options); + }; + } + function print(path, options) { + assert_1.default.ok(path instanceof fast_path_1.default); + options = options || {}; + if (options.includeComments) { + return comments_1.printComments(path, makePrintFunctionWith(options, { + includeComments: false + })); + } + var oldTabWidth = config.tabWidth; + if (!explicitTabWidth) { + var loc = path.getNode().loc; + if (loc && loc.lines && loc.lines.guessTabWidth) { + config.tabWidth = loc.lines.guessTabWidth(); + } + } + var reprinter = patcher_1.getReprinter(path); + var lines = reprinter + // Since the print function that we pass to the reprinter will + // be used to print "new" nodes, it's tempting to think we + // should pass printRootGenerically instead of print, to avoid + // calling maybeReprint again, but that would be a mistake + // because the new nodes might not be entirely new, but merely + // moved from elsewhere in the AST. The print function is the + // right choice because it gives us the opportunity to reprint + // such nodes using their original source. + ? reprinter(print) + : genericPrint(path, config, options, makePrintFunctionWith(options, { + includeComments: true, + avoidRootParens: false + })); + config.tabWidth = oldTabWidth; + return lines; + } + this.print = function (ast) { + if (!ast) { + return emptyPrintResult; + } + var lines = print(fast_path_1.default.from(ast), { + includeComments: true, + avoidRootParens: false + }); + return new PrintResult(lines.toString(config), util.composeSourceMaps(config.inputSourceMap, lines.getSourceMap(config.sourceMapName, config.sourceRoot))); + }; + this.printGenerically = function (ast) { + if (!ast) { + return emptyPrintResult; + } + // Print the entire AST generically. + function printGenerically(path) { + return comments_1.printComments(path, function (path) { + return genericPrint(path, config, { + includeComments: true, + avoidRootParens: false + }, printGenerically); + }); + } + var path = fast_path_1.default.from(ast); + var oldReuseWhitespace = config.reuseWhitespace; + // Do not reuse whitespace (or anything else, for that matter) + // when printing generically. + config.reuseWhitespace = false; + // TODO Allow printing of comments? + var pr = new PrintResult(printGenerically(path).toString(config)); + config.reuseWhitespace = oldReuseWhitespace; + return pr; + }; +}; +exports.Printer = Printer; +function genericPrint(path, config, options, printPath) { + assert_1.default.ok(path instanceof fast_path_1.default); + var node = path.getValue(); + var parts = []; + var linesWithoutParens = genericPrintNoParens(path, config, printPath); + if (!node || linesWithoutParens.isEmpty()) { + return linesWithoutParens; + } + var shouldAddParens = false; + var decoratorsLines = printDecorators(path, printPath); + if (decoratorsLines.isEmpty()) { + // Nodes with decorators can't have parentheses, so we can avoid + // computing path.needsParens() except in this case. + if (!options.avoidRootParens) { + shouldAddParens = path.needsParens(); + } + } + else { + parts.push(decoratorsLines); + } + if (shouldAddParens) { + parts.unshift("("); + } + parts.push(linesWithoutParens); + if (shouldAddParens) { + parts.push(")"); + } + return lines_1.concat(parts); +} +// Note that the `options` parameter of this function is what other +// functions in this file call the `config` object (that is, the +// configuration object originally passed into the Printer constructor). +// Its properties are documented in lib/options.js. +function genericPrintNoParens(path, options, print) { + var n = path.getValue(); + if (!n) { + return lines_1.fromString(""); + } + if (typeof n === "string") { + return lines_1.fromString(n, options); + } + namedTypes.Printable.assert(n); + var parts = []; + switch (n.type) { + case "File": + return path.call(print, "program"); + case "Program": + // Babel 6 + if (n.directives) { + path.each(function (childPath) { + parts.push(print(childPath), ";\n"); + }, "directives"); + } + if (n.interpreter) { + parts.push(path.call(print, "interpreter")); + } + parts.push(path.call(function (bodyPath) { + return printStatementSequence(bodyPath, options, print); + }, "body")); + return lines_1.concat(parts); + case "Noop": // Babel extension. + case "EmptyStatement": + return lines_1.fromString(""); + case "ExpressionStatement": + return lines_1.concat([path.call(print, "expression"), ";"]); + case "ParenthesizedExpression": // Babel extension. + return lines_1.concat(["(", path.call(print, "expression"), ")"]); + case "BinaryExpression": + case "LogicalExpression": + case "AssignmentExpression": + return lines_1.fromString(" ").join([ + path.call(print, "left"), + n.operator, + path.call(print, "right") + ]); + case "AssignmentPattern": + return lines_1.concat([ + path.call(print, "left"), + " = ", + path.call(print, "right") + ]); + case "MemberExpression": + case "OptionalMemberExpression": + parts.push(path.call(print, "object")); + var property = path.call(print, "property"); + var optional = n.type === "OptionalMemberExpression"; + if (n.computed) { + parts.push(optional ? "?.[" : "[", property, "]"); + } + else { + parts.push(optional ? "?." : ".", property); + } + return lines_1.concat(parts); + case "MetaProperty": + return lines_1.concat([ + path.call(print, "meta"), + ".", + path.call(print, "property") + ]); + case "BindExpression": + if (n.object) { + parts.push(path.call(print, "object")); + } + parts.push("::", path.call(print, "callee")); + return lines_1.concat(parts); + case "Path": + return lines_1.fromString(".").join(n.body); + case "Identifier": + return lines_1.concat([ + lines_1.fromString(n.name, options), + n.optional ? "?" : "", + path.call(print, "typeAnnotation") + ]); + case "SpreadElement": + case "SpreadElementPattern": + case "RestProperty": // Babel 6 for ObjectPattern + case "SpreadProperty": + case "SpreadPropertyPattern": + case "ObjectTypeSpreadProperty": + case "RestElement": + return lines_1.concat([ + "...", + path.call(print, "argument"), + path.call(print, "typeAnnotation") + ]); + case "FunctionDeclaration": + case "FunctionExpression": + case "TSDeclareFunction": + if (n.declare) { + parts.push("declare "); + } + if (n.async) { + parts.push("async "); + } + parts.push("function"); + if (n.generator) + parts.push("*"); + if (n.id) { + parts.push(" ", path.call(print, "id"), path.call(print, "typeParameters")); + } + parts.push("(", printFunctionParams(path, options, print), ")", path.call(print, "returnType")); + if (n.body) { + parts.push(" ", path.call(print, "body")); + } + return lines_1.concat(parts); + case "ArrowFunctionExpression": + if (n.async) { + parts.push("async "); + } + if (n.typeParameters) { + parts.push(path.call(print, "typeParameters")); + } + if (!options.arrowParensAlways && + n.params.length === 1 && + !n.rest && + n.params[0].type === 'Identifier' && + !n.params[0].typeAnnotation && + !n.returnType) { + parts.push(path.call(print, "params", 0)); + } + else { + parts.push("(", printFunctionParams(path, options, print), ")", path.call(print, "returnType")); + } + parts.push(" => ", path.call(print, "body")); + return lines_1.concat(parts); + case "MethodDefinition": + return printMethod(path, options, print); + case "YieldExpression": + parts.push("yield"); + if (n.delegate) + parts.push("*"); + if (n.argument) + parts.push(" ", path.call(print, "argument")); + return lines_1.concat(parts); + case "AwaitExpression": + parts.push("await"); + if (n.all) + parts.push("*"); + if (n.argument) + parts.push(" ", path.call(print, "argument")); + return lines_1.concat(parts); + case "ModuleDeclaration": + parts.push("module", path.call(print, "id")); + if (n.source) { + assert_1.default.ok(!n.body); + parts.push("from", path.call(print, "source")); + } + else { + parts.push(path.call(print, "body")); + } + return lines_1.fromString(" ").join(parts); + case "ImportSpecifier": + if (n.importKind && n.importKind !== "value") { + parts.push(n.importKind + " "); + } + if (n.imported) { + parts.push(path.call(print, "imported")); + if (n.local && + n.local.name !== n.imported.name) { + parts.push(" as ", path.call(print, "local")); + } + } + else if (n.id) { + parts.push(path.call(print, "id")); + if (n.name) { + parts.push(" as ", path.call(print, "name")); + } + } + return lines_1.concat(parts); + case "ExportSpecifier": + if (n.local) { + parts.push(path.call(print, "local")); + if (n.exported && + n.exported.name !== n.local.name) { + parts.push(" as ", path.call(print, "exported")); + } + } + else if (n.id) { + parts.push(path.call(print, "id")); + if (n.name) { + parts.push(" as ", path.call(print, "name")); + } + } + return lines_1.concat(parts); + case "ExportBatchSpecifier": + return lines_1.fromString("*"); + case "ImportNamespaceSpecifier": + parts.push("* as "); + if (n.local) { + parts.push(path.call(print, "local")); + } + else if (n.id) { + parts.push(path.call(print, "id")); + } + return lines_1.concat(parts); + case "ImportDefaultSpecifier": + if (n.local) { + return path.call(print, "local"); + } + return path.call(print, "id"); + case "TSExportAssignment": + return lines_1.concat(["export = ", path.call(print, "expression")]); + case "ExportDeclaration": + case "ExportDefaultDeclaration": + case "ExportNamedDeclaration": + return printExportDeclaration(path, options, print); + case "ExportAllDeclaration": + parts.push("export *"); + if (n.exported) { + parts.push(" as ", path.call(print, "exported")); + } + parts.push(" from ", path.call(print, "source")); + return lines_1.concat(parts); + case "TSNamespaceExportDeclaration": + parts.push("export as namespace ", path.call(print, "id")); + return maybeAddSemicolon(lines_1.concat(parts)); + case "ExportNamespaceSpecifier": + return lines_1.concat(["* as ", path.call(print, "exported")]); + case "ExportDefaultSpecifier": + return path.call(print, "exported"); + case "Import": + return lines_1.fromString("import", options); + case "ImportDeclaration": { + parts.push("import "); + if (n.importKind && n.importKind !== "value") { + parts.push(n.importKind + " "); + } + if (n.specifiers && + n.specifiers.length > 0) { + var unbracedSpecifiers_1 = []; + var bracedSpecifiers_1 = []; + path.each(function (specifierPath) { + var spec = specifierPath.getValue(); + if (spec.type === "ImportSpecifier") { + bracedSpecifiers_1.push(print(specifierPath)); + } + else if (spec.type === "ImportDefaultSpecifier" || + spec.type === "ImportNamespaceSpecifier") { + unbracedSpecifiers_1.push(print(specifierPath)); + } + }, "specifiers"); + unbracedSpecifiers_1.forEach(function (lines, i) { + if (i > 0) { + parts.push(", "); + } + parts.push(lines); + }); + if (bracedSpecifiers_1.length > 0) { + var lines_2 = lines_1.fromString(", ").join(bracedSpecifiers_1); + if (lines_2.getLineLength(1) > options.wrapColumn) { + lines_2 = lines_1.concat([ + lines_1.fromString(",\n").join(bracedSpecifiers_1).indent(options.tabWidth), + "," + ]); + } + if (unbracedSpecifiers_1.length > 0) { + parts.push(", "); + } + if (lines_2.length > 1) { + parts.push("{\n", lines_2, "\n}"); + } + else if (options.objectCurlySpacing) { + parts.push("{ ", lines_2, " }"); + } + else { + parts.push("{", lines_2, "}"); + } + } + parts.push(" from "); + } + parts.push(path.call(print, "source"), ";"); + return lines_1.concat(parts); + } + case "BlockStatement": + var naked = path.call(function (bodyPath) { + return printStatementSequence(bodyPath, options, print); + }, "body"); + if (naked.isEmpty()) { + if (!n.directives || n.directives.length === 0) { + return lines_1.fromString("{}"); + } + } + parts.push("{\n"); + // Babel 6 + if (n.directives) { + path.each(function (childPath) { + parts.push(print(childPath).indent(options.tabWidth), ";", n.directives.length > 1 || !naked.isEmpty() ? "\n" : ""); + }, "directives"); + } + parts.push(naked.indent(options.tabWidth)); + parts.push("\n}"); + return lines_1.concat(parts); + case "ReturnStatement": + parts.push("return"); + if (n.argument) { + var argLines = path.call(print, "argument"); + if (argLines.startsWithComment() || + (argLines.length > 1 && + namedTypes.JSXElement && + namedTypes.JSXElement.check(n.argument))) { + parts.push(" (\n", argLines.indent(options.tabWidth), "\n)"); + } + else { + parts.push(" ", argLines); + } + } + parts.push(";"); + return lines_1.concat(parts); + case "CallExpression": + case "OptionalCallExpression": + parts.push(path.call(print, "callee")); + if (n.type === "OptionalCallExpression" && + n.callee.type !== "OptionalMemberExpression") { + parts.push("?."); + } + parts.push(printArgumentsList(path, options, print)); + return lines_1.concat(parts); + case "ObjectExpression": + case "ObjectPattern": + case "ObjectTypeAnnotation": + var allowBreak = false; + var isTypeAnnotation = n.type === "ObjectTypeAnnotation"; + var separator = options.flowObjectCommas ? "," : (isTypeAnnotation ? ";" : ","); + var fields = []; + if (isTypeAnnotation) { + fields.push("indexers", "callProperties"); + if (n.internalSlots != null) { + fields.push("internalSlots"); + } + } + fields.push("properties"); + var len = 0; + fields.forEach(function (field) { + len += n[field].length; + }); + var oneLine = (isTypeAnnotation && len === 1) || len === 0; + var leftBrace = n.exact ? "{|" : "{"; + var rightBrace = n.exact ? "|}" : "}"; + parts.push(oneLine ? leftBrace : leftBrace + "\n"); + var leftBraceIndex = parts.length - 1; + var i = 0; + fields.forEach(function (field) { + path.each(function (childPath) { + var lines = print(childPath); + if (!oneLine) { + lines = lines.indent(options.tabWidth); + } + var multiLine = !isTypeAnnotation && lines.length > 1; + if (multiLine && allowBreak) { + // Similar to the logic for BlockStatement. + parts.push("\n"); + } + parts.push(lines); + if (i < len - 1) { + // Add an extra line break if the previous object property + // had a multi-line value. + parts.push(separator + (multiLine ? "\n\n" : "\n")); + allowBreak = !multiLine; + } + else if (len !== 1 && isTypeAnnotation) { + parts.push(separator); + } + else if (!oneLine && util.isTrailingCommaEnabled(options, "objects")) { + parts.push(separator); + } + i++; + }, field); + }); + parts.push(oneLine ? rightBrace : "\n" + rightBrace); + if (i !== 0 && oneLine && options.objectCurlySpacing) { + parts[leftBraceIndex] = leftBrace + " "; + parts[parts.length - 1] = " " + rightBrace; + } + if (n.typeAnnotation) { + parts.push(path.call(print, "typeAnnotation")); + } + return lines_1.concat(parts); + case "PropertyPattern": + return lines_1.concat([ + path.call(print, "key"), + ": ", + path.call(print, "pattern") + ]); + case "ObjectProperty": // Babel 6 + case "Property": // Non-standard AST node type. + if (n.method || n.kind === "get" || n.kind === "set") { + return printMethod(path, options, print); + } + var key = path.call(print, "key"); + if (n.computed) { + parts.push("[", key, "]"); + } + else { + parts.push(key); + } + if (!n.shorthand) { + parts.push(": ", path.call(print, "value")); + } + return lines_1.concat(parts); + case "ClassMethod": // Babel 6 + case "ObjectMethod": // Babel 6 + case "ClassPrivateMethod": + case "TSDeclareMethod": + return printMethod(path, options, print); + case "PrivateName": + return lines_1.concat(["#", path.call(print, "id")]); + case "Decorator": + return lines_1.concat(["@", path.call(print, "expression")]); + case "ArrayExpression": + case "ArrayPattern": + var elems = n.elements, len = elems.length; + var printed = path.map(print, "elements"); + var joined = lines_1.fromString(", ").join(printed); + var oneLine = joined.getLineLength(1) <= options.wrapColumn; + if (oneLine) { + if (options.arrayBracketSpacing) { + parts.push("[ "); + } + else { + parts.push("["); + } + } + else { + parts.push("[\n"); + } + path.each(function (elemPath) { + var i = elemPath.getName(); + var elem = elemPath.getValue(); + if (!elem) { + // If the array expression ends with a hole, that hole + // will be ignored by the interpreter, but if it ends with + // two (or more) holes, we need to write out two (or more) + // commas so that the resulting code is interpreted with + // both (all) of the holes. + parts.push(","); + } + else { + var lines = printed[i]; + if (oneLine) { + if (i > 0) + parts.push(" "); + } + else { + lines = lines.indent(options.tabWidth); + } + parts.push(lines); + if (i < len - 1 || (!oneLine && util.isTrailingCommaEnabled(options, "arrays"))) + parts.push(","); + if (!oneLine) + parts.push("\n"); + } + }, "elements"); + if (oneLine && options.arrayBracketSpacing) { + parts.push(" ]"); + } + else { + parts.push("]"); + } + return lines_1.concat(parts); + case "SequenceExpression": + return lines_1.fromString(", ").join(path.map(print, "expressions")); + case "ThisExpression": + return lines_1.fromString("this"); + case "Super": + return lines_1.fromString("super"); + case "NullLiteral": // Babel 6 Literal split + return lines_1.fromString("null"); + case "RegExpLiteral": // Babel 6 Literal split + return lines_1.fromString(n.extra.raw); + case "BigIntLiteral": // Babel 7 Literal split + return lines_1.fromString(n.value + "n"); + case "NumericLiteral": // Babel 6 Literal Split + // Keep original representation for numeric values not in base 10. + if (n.extra && + typeof n.extra.raw === "string" && + Number(n.extra.raw) === n.value) { + return lines_1.fromString(n.extra.raw, options); + } + return lines_1.fromString(n.value, options); + case "BooleanLiteral": // Babel 6 Literal split + case "StringLiteral": // Babel 6 Literal split + case "Literal": + // Numeric values may be in bases other than 10. Use their raw + // representation if equivalent. + if (typeof n.value === "number" && + typeof n.raw === "string" && + Number(n.raw) === n.value) { + return lines_1.fromString(n.raw, options); + } + if (typeof n.value !== "string") { + return lines_1.fromString(n.value, options); + } + return lines_1.fromString(nodeStr(n.value, options), options); + case "Directive": // Babel 6 + return path.call(print, "value"); + case "DirectiveLiteral": // Babel 6 + return lines_1.fromString(nodeStr(n.value, options)); + case "InterpreterDirective": + return lines_1.fromString("#!" + n.value + "\n", options); + case "ModuleSpecifier": + if (n.local) { + throw new Error("The ESTree ModuleSpecifier type should be abstract"); + } + // The Esprima ModuleSpecifier type is just a string-valued + // Literal identifying the imported-from module. + return lines_1.fromString(nodeStr(n.value, options), options); + case "UnaryExpression": + parts.push(n.operator); + if (/[a-z]$/.test(n.operator)) + parts.push(" "); + parts.push(path.call(print, "argument")); + return lines_1.concat(parts); + case "UpdateExpression": + parts.push(path.call(print, "argument"), n.operator); + if (n.prefix) + parts.reverse(); + return lines_1.concat(parts); + case "ConditionalExpression": + return lines_1.concat([ + path.call(print, "test"), + " ? ", path.call(print, "consequent"), + " : ", path.call(print, "alternate") + ]); + case "NewExpression": + parts.push("new ", path.call(print, "callee")); + var args = n.arguments; + if (args) { + parts.push(printArgumentsList(path, options, print)); + } + return lines_1.concat(parts); + case "VariableDeclaration": + if (n.declare) { + parts.push("declare "); + } + parts.push(n.kind, " "); + var maxLen = 0; + var printed = path.map(function (childPath) { + var lines = print(childPath); + maxLen = Math.max(lines.length, maxLen); + return lines; + }, "declarations"); + if (maxLen === 1) { + parts.push(lines_1.fromString(", ").join(printed)); + } + else if (printed.length > 1) { + parts.push(lines_1.fromString(",\n").join(printed) + .indentTail(n.kind.length + 1)); + } + else { + parts.push(printed[0]); + } + // We generally want to terminate all variable declarations with a + // semicolon, except when they are children of for loops. + var parentNode = path.getParentNode(); + if (!namedTypes.ForStatement.check(parentNode) && + !namedTypes.ForInStatement.check(parentNode) && + !(namedTypes.ForOfStatement && + namedTypes.ForOfStatement.check(parentNode)) && + !(namedTypes.ForAwaitStatement && + namedTypes.ForAwaitStatement.check(parentNode))) { + parts.push(";"); + } + return lines_1.concat(parts); + case "VariableDeclarator": + return n.init ? lines_1.fromString(" = ").join([ + path.call(print, "id"), + path.call(print, "init") + ]) : path.call(print, "id"); + case "WithStatement": + return lines_1.concat([ + "with (", + path.call(print, "object"), + ") ", + path.call(print, "body") + ]); + case "IfStatement": + var con = adjustClause(path.call(print, "consequent"), options); + parts.push("if (", path.call(print, "test"), ")", con); + if (n.alternate) + parts.push(endsWithBrace(con) ? " else" : "\nelse", adjustClause(path.call(print, "alternate"), options)); + return lines_1.concat(parts); + case "ForStatement": + // TODO Get the for (;;) case right. + var init = path.call(print, "init"), sep = init.length > 1 ? ";\n" : "; ", forParen = "for (", indented = lines_1.fromString(sep).join([ + init, + path.call(print, "test"), + path.call(print, "update") + ]).indentTail(forParen.length), head = lines_1.concat([forParen, indented, ")"]), clause = adjustClause(path.call(print, "body"), options); + parts.push(head); + if (head.length > 1) { + parts.push("\n"); + clause = clause.trimLeft(); + } + parts.push(clause); + return lines_1.concat(parts); + case "WhileStatement": + return lines_1.concat([ + "while (", + path.call(print, "test"), + ")", + adjustClause(path.call(print, "body"), options) + ]); + case "ForInStatement": + // Note: esprima can't actually parse "for each (". + return lines_1.concat([ + n.each ? "for each (" : "for (", + path.call(print, "left"), + " in ", + path.call(print, "right"), + ")", + adjustClause(path.call(print, "body"), options) + ]); + case "ForOfStatement": + case "ForAwaitStatement": + parts.push("for "); + if (n.await || n.type === "ForAwaitStatement") { + parts.push("await "); + } + parts.push("(", path.call(print, "left"), " of ", path.call(print, "right"), ")", adjustClause(path.call(print, "body"), options)); + return lines_1.concat(parts); + case "DoWhileStatement": + var doBody = lines_1.concat([ + "do", + adjustClause(path.call(print, "body"), options) + ]); + parts.push(doBody); + if (endsWithBrace(doBody)) + parts.push(" while"); + else + parts.push("\nwhile"); + parts.push(" (", path.call(print, "test"), ");"); + return lines_1.concat(parts); + case "DoExpression": + var statements = path.call(function (bodyPath) { + return printStatementSequence(bodyPath, options, print); + }, "body"); + return lines_1.concat([ + "do {\n", + statements.indent(options.tabWidth), + "\n}" + ]); + case "BreakStatement": + parts.push("break"); + if (n.label) + parts.push(" ", path.call(print, "label")); + parts.push(";"); + return lines_1.concat(parts); + case "ContinueStatement": + parts.push("continue"); + if (n.label) + parts.push(" ", path.call(print, "label")); + parts.push(";"); + return lines_1.concat(parts); + case "LabeledStatement": + return lines_1.concat([ + path.call(print, "label"), + ":\n", + path.call(print, "body") + ]); + case "TryStatement": + parts.push("try ", path.call(print, "block")); + if (n.handler) { + parts.push(" ", path.call(print, "handler")); + } + else if (n.handlers) { + path.each(function (handlerPath) { + parts.push(" ", print(handlerPath)); + }, "handlers"); + } + if (n.finalizer) { + parts.push(" finally ", path.call(print, "finalizer")); + } + return lines_1.concat(parts); + case "CatchClause": + parts.push("catch "); + if (n.param) { + parts.push("(", path.call(print, "param")); + } + if (n.guard) { + // Note: esprima does not recognize conditional catch clauses. + parts.push(" if ", path.call(print, "guard")); + } + if (n.param) { + parts.push(") "); + } + parts.push(path.call(print, "body")); + return lines_1.concat(parts); + case "ThrowStatement": + return lines_1.concat(["throw ", path.call(print, "argument"), ";"]); + case "SwitchStatement": + return lines_1.concat([ + "switch (", + path.call(print, "discriminant"), + ") {\n", + lines_1.fromString("\n").join(path.map(print, "cases")), + "\n}" + ]); + // Note: ignoring n.lexical because it has no printing consequences. + case "SwitchCase": + if (n.test) + parts.push("case ", path.call(print, "test"), ":"); + else + parts.push("default:"); + if (n.consequent.length > 0) { + parts.push("\n", path.call(function (consequentPath) { + return printStatementSequence(consequentPath, options, print); + }, "consequent").indent(options.tabWidth)); + } + return lines_1.concat(parts); + case "DebuggerStatement": + return lines_1.fromString("debugger;"); + // JSX extensions below. + case "JSXAttribute": + parts.push(path.call(print, "name")); + if (n.value) + parts.push("=", path.call(print, "value")); + return lines_1.concat(parts); + case "JSXIdentifier": + return lines_1.fromString(n.name, options); + case "JSXNamespacedName": + return lines_1.fromString(":").join([ + path.call(print, "namespace"), + path.call(print, "name") + ]); + case "JSXMemberExpression": + return lines_1.fromString(".").join([ + path.call(print, "object"), + path.call(print, "property") + ]); + case "JSXSpreadAttribute": + return lines_1.concat(["{...", path.call(print, "argument"), "}"]); + case "JSXSpreadChild": + return lines_1.concat(["{...", path.call(print, "expression"), "}"]); + case "JSXExpressionContainer": + return lines_1.concat(["{", path.call(print, "expression"), "}"]); + case "JSXElement": + case "JSXFragment": + var openingPropName = "opening" + (n.type === "JSXElement" ? "Element" : "Fragment"); + var closingPropName = "closing" + (n.type === "JSXElement" ? "Element" : "Fragment"); + var openingLines = path.call(print, openingPropName); + if (n[openingPropName].selfClosing) { + assert_1.default.ok(!n[closingPropName], "unexpected " + closingPropName + " element in self-closing " + n.type); + return openingLines; + } + var childLines = lines_1.concat(path.map(function (childPath) { + var child = childPath.getValue(); + if (namedTypes.Literal.check(child) && + typeof child.value === "string") { + if (/\S/.test(child.value)) { + return child.value.replace(/^\s+|\s+$/g, ""); + } + else if (/\n/.test(child.value)) { + return "\n"; + } + } + return print(childPath); + }, "children")).indentTail(options.tabWidth); + var closingLines = path.call(print, closingPropName); + return lines_1.concat([ + openingLines, + childLines, + closingLines + ]); + case "JSXOpeningElement": + parts.push("<", path.call(print, "name")); + var attrParts = []; + path.each(function (attrPath) { + attrParts.push(" ", print(attrPath)); + }, "attributes"); + var attrLines = lines_1.concat(attrParts); + var needLineWrap = (attrLines.length > 1 || + attrLines.getLineLength(1) > options.wrapColumn); + if (needLineWrap) { + attrParts.forEach(function (part, i) { + if (part === " ") { + assert_1.default.strictEqual(i % 2, 0); + attrParts[i] = "\n"; + } + }); + attrLines = lines_1.concat(attrParts).indentTail(options.tabWidth); + } + parts.push(attrLines, n.selfClosing ? " />" : ">"); + return lines_1.concat(parts); + case "JSXClosingElement": + return lines_1.concat([""]); + case "JSXOpeningFragment": + return lines_1.fromString("<>"); + case "JSXClosingFragment": + return lines_1.fromString(""); + case "JSXText": + return lines_1.fromString(n.value, options); + case "JSXEmptyExpression": + return lines_1.fromString(""); + case "TypeAnnotatedIdentifier": + return lines_1.concat([ + path.call(print, "annotation"), + " ", + path.call(print, "identifier") + ]); + case "ClassBody": + if (n.body.length === 0) { + return lines_1.fromString("{}"); + } + return lines_1.concat([ + "{\n", + path.call(function (bodyPath) { + return printStatementSequence(bodyPath, options, print); + }, "body").indent(options.tabWidth), + "\n}" + ]); + case "ClassPropertyDefinition": + parts.push("static ", path.call(print, "definition")); + if (!namedTypes.MethodDefinition.check(n.definition)) + parts.push(";"); + return lines_1.concat(parts); + case "ClassProperty": + if (typeof n.accessibility === "string") { + parts.push(n.accessibility, " "); + } + if (n.static) { + parts.push("static "); + } + if (n.abstract) { + parts.push("abstract "); + } + if (n.readonly) { + parts.push("readonly "); + } + var key = path.call(print, "key"); + if (n.computed) { + key = lines_1.concat(["[", key, "]"]); + } + if (n.variance) { + key = lines_1.concat([printVariance(path, print), key]); + } + parts.push(key); + if (n.optional) { + parts.push("?"); + } + if (n.typeAnnotation) { + parts.push(path.call(print, "typeAnnotation")); + } + if (n.value) { + parts.push(" = ", path.call(print, "value")); + } + parts.push(";"); + return lines_1.concat(parts); + case "ClassPrivateProperty": + if (n.static) { + parts.push("static "); + } + parts.push(path.call(print, "key")); + if (n.typeAnnotation) { + parts.push(path.call(print, "typeAnnotation")); + } + if (n.value) { + parts.push(" = ", path.call(print, "value")); + } + parts.push(";"); + return lines_1.concat(parts); + case "ClassDeclaration": + case "ClassExpression": + if (n.declare) { + parts.push("declare "); + } + if (n.abstract) { + parts.push("abstract "); + } + parts.push("class"); + if (n.id) { + parts.push(" ", path.call(print, "id")); + } + if (n.typeParameters) { + parts.push(path.call(print, "typeParameters")); + } + if (n.superClass) { + parts.push(" extends ", path.call(print, "superClass"), path.call(print, "superTypeParameters")); + } + if (n["implements"] && n['implements'].length > 0) { + parts.push(" implements ", lines_1.fromString(", ").join(path.map(print, "implements"))); + } + parts.push(" ", path.call(print, "body")); + return lines_1.concat(parts); + case "TemplateElement": + return lines_1.fromString(n.value.raw, options).lockIndentTail(); + case "TemplateLiteral": + var expressions = path.map(print, "expressions"); + parts.push("`"); + path.each(function (childPath) { + var i = childPath.getName(); + parts.push(print(childPath)); + if (i < expressions.length) { + parts.push("${", expressions[i], "}"); + } + }, "quasis"); + parts.push("`"); + return lines_1.concat(parts).lockIndentTail(); + case "TaggedTemplateExpression": + return lines_1.concat([ + path.call(print, "tag"), + path.call(print, "quasi") + ]); + // These types are unprintable because they serve as abstract + // supertypes for other (printable) types. + case "Node": + case "Printable": + case "SourceLocation": + case "Position": + case "Statement": + case "Function": + case "Pattern": + case "Expression": + case "Declaration": + case "Specifier": + case "NamedSpecifier": + case "Comment": // Supertype of Block and Line + case "Flow": // Supertype of all Flow AST node types + case "FlowType": // Supertype of all Flow types + case "FlowPredicate": // Supertype of InferredPredicate and DeclaredPredicate + case "MemberTypeAnnotation": // Flow + case "Type": // Flow + case "TSHasOptionalTypeParameters": + case "TSHasOptionalTypeAnnotation": + throw new Error("unprintable type: " + JSON.stringify(n.type)); + case "CommentBlock": // Babel block comment. + case "Block": // Esprima block comment. + return lines_1.concat(["/*", lines_1.fromString(n.value, options), "*/"]); + case "CommentLine": // Babel line comment. + case "Line": // Esprima line comment. + return lines_1.concat(["//", lines_1.fromString(n.value, options)]); + // Type Annotations for Facebook Flow, typically stripped out or + // transformed away before printing. + case "TypeAnnotation": + if (n.typeAnnotation) { + if (n.typeAnnotation.type !== "FunctionTypeAnnotation") { + parts.push(": "); + } + parts.push(path.call(print, "typeAnnotation")); + return lines_1.concat(parts); + } + return lines_1.fromString(""); + case "ExistentialTypeParam": + case "ExistsTypeAnnotation": + return lines_1.fromString("*", options); + case "EmptyTypeAnnotation": + return lines_1.fromString("empty", options); + case "AnyTypeAnnotation": + return lines_1.fromString("any", options); + case "MixedTypeAnnotation": + return lines_1.fromString("mixed", options); + case "ArrayTypeAnnotation": + return lines_1.concat([ + path.call(print, "elementType"), + "[]" + ]); + case "TupleTypeAnnotation": + var printed = path.map(print, "types"); + var joined = lines_1.fromString(", ").join(printed); + var oneLine = joined.getLineLength(1) <= options.wrapColumn; + if (oneLine) { + if (options.arrayBracketSpacing) { + parts.push("[ "); + } + else { + parts.push("["); + } + } + else { + parts.push("[\n"); + } + path.each(function (elemPath) { + var i = elemPath.getName(); + var elem = elemPath.getValue(); + if (!elem) { + // If the array expression ends with a hole, that hole + // will be ignored by the interpreter, but if it ends with + // two (or more) holes, we need to write out two (or more) + // commas so that the resulting code is interpreted with + // both (all) of the holes. + parts.push(","); + } + else { + var lines = printed[i]; + if (oneLine) { + if (i > 0) + parts.push(" "); + } + else { + lines = lines.indent(options.tabWidth); + } + parts.push(lines); + if (i < n.types.length - 1 || (!oneLine && util.isTrailingCommaEnabled(options, "arrays"))) + parts.push(","); + if (!oneLine) + parts.push("\n"); + } + }, "types"); + if (oneLine && options.arrayBracketSpacing) { + parts.push(" ]"); + } + else { + parts.push("]"); + } + return lines_1.concat(parts); + case "BooleanTypeAnnotation": + return lines_1.fromString("boolean", options); + case "BooleanLiteralTypeAnnotation": + assert_1.default.strictEqual(typeof n.value, "boolean"); + return lines_1.fromString("" + n.value, options); + case "InterfaceTypeAnnotation": + parts.push("interface"); + if (n.extends && n.extends.length > 0) { + parts.push(" extends ", lines_1.fromString(", ").join(path.map(print, "extends"))); + } + parts.push(" ", path.call(print, "body")); + return lines_1.concat(parts); + case "DeclareClass": + return printFlowDeclaration(path, [ + "class ", + path.call(print, "id"), + " ", + path.call(print, "body"), + ]); + case "DeclareFunction": + return printFlowDeclaration(path, [ + "function ", + path.call(print, "id"), + ";" + ]); + case "DeclareModule": + return printFlowDeclaration(path, [ + "module ", + path.call(print, "id"), + " ", + path.call(print, "body"), + ]); + case "DeclareModuleExports": + return printFlowDeclaration(path, [ + "module.exports", + path.call(print, "typeAnnotation"), + ]); + case "DeclareVariable": + return printFlowDeclaration(path, [ + "var ", + path.call(print, "id"), + ";" + ]); + case "DeclareExportDeclaration": + case "DeclareExportAllDeclaration": + return lines_1.concat([ + "declare ", + printExportDeclaration(path, options, print) + ]); + case "InferredPredicate": + return lines_1.fromString("%checks", options); + case "DeclaredPredicate": + return lines_1.concat([ + "%checks(", + path.call(print, "value"), + ")" + ]); + case "FunctionTypeAnnotation": + // FunctionTypeAnnotation is ambiguous: + // declare function(a: B): void; OR + // var A: (a: B) => void; + var parent = path.getParentNode(0); + var isArrowFunctionTypeAnnotation = !(namedTypes.ObjectTypeCallProperty.check(parent) || + (namedTypes.ObjectTypeInternalSlot.check(parent) && parent.method) || + namedTypes.DeclareFunction.check(path.getParentNode(2))); + var needsColon = isArrowFunctionTypeAnnotation && + !namedTypes.FunctionTypeParam.check(parent); + if (needsColon) { + parts.push(": "); + } + parts.push("(", printFunctionParams(path, options, print), ")"); + // The returnType is not wrapped in a TypeAnnotation, so the colon + // needs to be added separately. + if (n.returnType) { + parts.push(isArrowFunctionTypeAnnotation ? " => " : ": ", path.call(print, "returnType")); + } + return lines_1.concat(parts); + case "FunctionTypeParam": + return lines_1.concat([ + path.call(print, "name"), + n.optional ? '?' : '', + ": ", + path.call(print, "typeAnnotation"), + ]); + case "GenericTypeAnnotation": + return lines_1.concat([ + path.call(print, "id"), + path.call(print, "typeParameters") + ]); + case "DeclareInterface": + parts.push("declare "); + // Fall through to InterfaceDeclaration... + case "InterfaceDeclaration": + case "TSInterfaceDeclaration": + if (n.declare) { + parts.push("declare "); + } + parts.push("interface ", path.call(print, "id"), path.call(print, "typeParameters"), " "); + if (n["extends"] && n["extends"].length > 0) { + parts.push("extends ", lines_1.fromString(", ").join(path.map(print, "extends")), " "); + } + if (n.body) { + parts.push(path.call(print, "body")); + } + return lines_1.concat(parts); + case "ClassImplements": + case "InterfaceExtends": + return lines_1.concat([ + path.call(print, "id"), + path.call(print, "typeParameters") + ]); + case "IntersectionTypeAnnotation": + return lines_1.fromString(" & ").join(path.map(print, "types")); + case "NullableTypeAnnotation": + return lines_1.concat([ + "?", + path.call(print, "typeAnnotation") + ]); + case "NullLiteralTypeAnnotation": + return lines_1.fromString("null", options); + case "ThisTypeAnnotation": + return lines_1.fromString("this", options); + case "NumberTypeAnnotation": + return lines_1.fromString("number", options); + case "ObjectTypeCallProperty": + return path.call(print, "value"); + case "ObjectTypeIndexer": + return lines_1.concat([ + printVariance(path, print), + "[", + path.call(print, "id"), + ": ", + path.call(print, "key"), + "]: ", + path.call(print, "value") + ]); + case "ObjectTypeProperty": + return lines_1.concat([ + printVariance(path, print), + path.call(print, "key"), + n.optional ? "?" : "", + ": ", + path.call(print, "value") + ]); + case "ObjectTypeInternalSlot": + return lines_1.concat([ + n.static ? "static " : "", + "[[", + path.call(print, "id"), + "]]", + n.optional ? "?" : "", + n.value.type !== "FunctionTypeAnnotation" ? ": " : "", + path.call(print, "value") + ]); + case "QualifiedTypeIdentifier": + return lines_1.concat([ + path.call(print, "qualification"), + ".", + path.call(print, "id") + ]); + case "StringLiteralTypeAnnotation": + return lines_1.fromString(nodeStr(n.value, options), options); + case "NumberLiteralTypeAnnotation": + case "NumericLiteralTypeAnnotation": + assert_1.default.strictEqual(typeof n.value, "number"); + return lines_1.fromString(JSON.stringify(n.value), options); + case "StringTypeAnnotation": + return lines_1.fromString("string", options); + case "DeclareTypeAlias": + parts.push("declare "); + // Fall through to TypeAlias... + case "TypeAlias": + return lines_1.concat([ + "type ", + path.call(print, "id"), + path.call(print, "typeParameters"), + " = ", + path.call(print, "right"), + ";" + ]); + case "DeclareOpaqueType": + parts.push("declare "); + // Fall through to OpaqueType... + case "OpaqueType": + parts.push("opaque type ", path.call(print, "id"), path.call(print, "typeParameters")); + if (n["supertype"]) { + parts.push(": ", path.call(print, "supertype")); + } + if (n["impltype"]) { + parts.push(" = ", path.call(print, "impltype")); + } + parts.push(";"); + return lines_1.concat(parts); + case "TypeCastExpression": + return lines_1.concat([ + "(", + path.call(print, "expression"), + path.call(print, "typeAnnotation"), + ")" + ]); + case "TypeParameterDeclaration": + case "TypeParameterInstantiation": + return lines_1.concat([ + "<", + lines_1.fromString(", ").join(path.map(print, "params")), + ">" + ]); + case "Variance": + if (n.kind === "plus") { + return lines_1.fromString("+"); + } + if (n.kind === "minus") { + return lines_1.fromString("-"); + } + return lines_1.fromString(""); + case "TypeParameter": + if (n.variance) { + parts.push(printVariance(path, print)); + } + parts.push(path.call(print, 'name')); + if (n.bound) { + parts.push(path.call(print, 'bound')); + } + if (n['default']) { + parts.push('=', path.call(print, 'default')); + } + return lines_1.concat(parts); + case "TypeofTypeAnnotation": + return lines_1.concat([ + lines_1.fromString("typeof ", options), + path.call(print, "argument") + ]); + case "UnionTypeAnnotation": + return lines_1.fromString(" | ").join(path.map(print, "types")); + case "VoidTypeAnnotation": + return lines_1.fromString("void", options); + case "NullTypeAnnotation": + return lines_1.fromString("null", options); + // Type Annotations for TypeScript (when using Babylon as parser) + case "TSType": + throw new Error("unprintable type: " + JSON.stringify(n.type)); + case "TSNumberKeyword": + return lines_1.fromString("number", options); + case "TSObjectKeyword": + return lines_1.fromString("object", options); + case "TSBooleanKeyword": + return lines_1.fromString("boolean", options); + case "TSStringKeyword": + return lines_1.fromString("string", options); + case "TSSymbolKeyword": + return lines_1.fromString("symbol", options); + case "TSAnyKeyword": + return lines_1.fromString("any", options); + case "TSVoidKeyword": + return lines_1.fromString("void", options); + case "TSThisType": + return lines_1.fromString("this", options); + case "TSNullKeyword": + return lines_1.fromString("null", options); + case "TSUndefinedKeyword": + return lines_1.fromString("undefined", options); + case "TSUnknownKeyword": + return lines_1.fromString("unknown", options); + case "TSNeverKeyword": + return lines_1.fromString("never", options); + case "TSArrayType": + return lines_1.concat([ + path.call(print, "elementType"), + "[]" + ]); + case "TSLiteralType": + return path.call(print, "literal"); + case "TSUnionType": + return lines_1.fromString(" | ").join(path.map(print, "types")); + case "TSIntersectionType": + return lines_1.fromString(" & ").join(path.map(print, "types")); + case "TSConditionalType": + parts.push(path.call(print, "checkType"), " extends ", path.call(print, "extendsType"), " ? ", path.call(print, "trueType"), " : ", path.call(print, "falseType")); + return lines_1.concat(parts); + case "TSInferType": + parts.push("infer ", path.call(print, "typeParameter")); + return lines_1.concat(parts); + case "TSParenthesizedType": + return lines_1.concat([ + "(", + path.call(print, "typeAnnotation"), + ")" + ]); + case "TSFunctionType": + case "TSConstructorType": + return lines_1.concat([ + path.call(print, "typeParameters"), + "(", + printFunctionParams(path, options, print), + ")", + path.call(print, "typeAnnotation") + ]); + case "TSMappedType": { + parts.push(n.readonly ? "readonly " : "", "[", path.call(print, "typeParameter"), "]", n.optional ? "?" : ""); + if (n.typeAnnotation) { + parts.push(": ", path.call(print, "typeAnnotation"), ";"); + } + return lines_1.concat([ + "{\n", + lines_1.concat(parts).indent(options.tabWidth), + "\n}", + ]); + } + case "TSTupleType": + return lines_1.concat([ + "[", + lines_1.fromString(", ").join(path.map(print, "elementTypes")), + "]" + ]); + case "TSRestType": + return lines_1.concat([ + "...", + path.call(print, "typeAnnotation"), + "[]" + ]); + case "TSOptionalType": + return lines_1.concat([ + path.call(print, "typeAnnotation"), + "?" + ]); + case "TSIndexedAccessType": + return lines_1.concat([ + path.call(print, "objectType"), + "[", + path.call(print, "indexType"), + "]" + ]); + case "TSTypeOperator": + return lines_1.concat([ + path.call(print, "operator"), + " ", + path.call(print, "typeAnnotation") + ]); + case "TSTypeLiteral": { + var memberLines_1 = lines_1.fromString(",\n").join(path.map(print, "members")); + if (memberLines_1.isEmpty()) { + return lines_1.fromString("{}", options); + } + parts.push("{\n", memberLines_1.indent(options.tabWidth), "\n}"); + return lines_1.concat(parts); + } + case "TSEnumMember": + parts.push(path.call(print, "id")); + if (n.initializer) { + parts.push(" = ", path.call(print, "initializer")); + } + return lines_1.concat(parts); + case "TSTypeQuery": + return lines_1.concat([ + "typeof ", + path.call(print, "exprName"), + ]); + case "TSParameterProperty": + if (n.accessibility) { + parts.push(n.accessibility, " "); + } + if (n.export) { + parts.push("export "); + } + if (n.static) { + parts.push("static "); + } + if (n.readonly) { + parts.push("readonly "); + } + parts.push(path.call(print, "parameter")); + return lines_1.concat(parts); + case "TSTypeReference": + return lines_1.concat([ + path.call(print, "typeName"), + path.call(print, "typeParameters") + ]); + case "TSQualifiedName": + return lines_1.concat([ + path.call(print, "left"), + ".", + path.call(print, "right") + ]); + case "TSAsExpression": { + var withParens = n.extra && n.extra.parenthesized === true; + if (withParens) + parts.push("("); + parts.push(path.call(print, "expression"), lines_1.fromString(" as "), path.call(print, "typeAnnotation")); + if (withParens) + parts.push(")"); + return lines_1.concat(parts); + } + case "TSNonNullExpression": + return lines_1.concat([ + path.call(print, "expression"), + "!" + ]); + case "TSTypeAnnotation": { + // similar to flow's FunctionTypeAnnotation, this can be + // ambiguous: it can be prefixed by => or : + // in a type predicate, it takes the for u is U + var parent = path.getParentNode(0); + var prefix = ": "; + if (namedTypes.TSFunctionType.check(parent)) { + prefix = " => "; + } + if (namedTypes.TSTypePredicate.check(parent)) { + prefix = " is "; + } + return lines_1.concat([ + prefix, + path.call(print, "typeAnnotation") + ]); + } + case "TSIndexSignature": + return lines_1.concat([ + n.readonly ? "readonly " : "", + "[", + path.map(print, "parameters"), + "]", + path.call(print, "typeAnnotation") + ]); + case "TSPropertySignature": + parts.push(printVariance(path, print), n.readonly ? "readonly " : ""); + if (n.computed) { + parts.push("[", path.call(print, "key"), "]"); + } + else { + parts.push(path.call(print, "key")); + } + parts.push(n.optional ? "?" : "", path.call(print, "typeAnnotation")); + return lines_1.concat(parts); + case "TSMethodSignature": + if (n.computed) { + parts.push("[", path.call(print, "key"), "]"); + } + else { + parts.push(path.call(print, "key")); + } + if (n.optional) { + parts.push("?"); + } + parts.push(path.call(print, "typeParameters"), "(", printFunctionParams(path, options, print), ")", path.call(print, "typeAnnotation")); + return lines_1.concat(parts); + case "TSTypePredicate": + return lines_1.concat([ + path.call(print, "parameterName"), + path.call(print, "typeAnnotation") + ]); + case "TSCallSignatureDeclaration": + return lines_1.concat([ + path.call(print, "typeParameters"), + "(", + printFunctionParams(path, options, print), + ")", + path.call(print, "typeAnnotation") + ]); + case "TSConstructSignatureDeclaration": + if (n.typeParameters) { + parts.push("new", path.call(print, "typeParameters")); + } + else { + parts.push("new "); + } + parts.push("(", printFunctionParams(path, options, print), ")", path.call(print, "typeAnnotation")); + return lines_1.concat(parts); + case "TSTypeAliasDeclaration": + return lines_1.concat([ + n.declare ? "declare " : "", + "type ", + path.call(print, "id"), + path.call(print, "typeParameters"), + " = ", + path.call(print, "typeAnnotation"), + ";" + ]); + case "TSTypeParameter": + parts.push(path.call(print, "name")); + // ambiguous because of TSMappedType + var parent = path.getParentNode(0); + var isInMappedType = namedTypes.TSMappedType.check(parent); + if (n.constraint) { + parts.push(isInMappedType ? " in " : " extends ", path.call(print, "constraint")); + } + if (n["default"]) { + parts.push(" = ", path.call(print, "default")); + } + return lines_1.concat(parts); + case "TSTypeAssertion": + var withParens = n.extra && n.extra.parenthesized === true; + if (withParens) { + parts.push("("); + } + parts.push("<", path.call(print, "typeAnnotation"), "> ", path.call(print, "expression")); + if (withParens) { + parts.push(")"); + } + return lines_1.concat(parts); + case "TSTypeParameterDeclaration": + case "TSTypeParameterInstantiation": + return lines_1.concat([ + "<", + lines_1.fromString(", ").join(path.map(print, "params")), + ">" + ]); + case "TSEnumDeclaration": + parts.push(n.declare ? "declare " : "", n.const ? "const " : "", "enum ", path.call(print, "id")); + var memberLines = lines_1.fromString(",\n").join(path.map(print, "members")); + if (memberLines.isEmpty()) { + parts.push(" {}"); + } + else { + parts.push(" {\n", memberLines.indent(options.tabWidth), "\n}"); + } + return lines_1.concat(parts); + case "TSExpressionWithTypeArguments": + return lines_1.concat([ + path.call(print, "expression"), + path.call(print, "typeParameters") + ]); + case "TSInterfaceBody": + var lines = lines_1.fromString(";\n").join(path.map(print, "body")); + if (lines.isEmpty()) { + return lines_1.fromString("{}", options); + } + return lines_1.concat([ + "{\n", + lines.indent(options.tabWidth), ";", + "\n}", + ]); + case "TSImportEqualsDeclaration": + if (n.isExport) { + parts.push("export "); + } + parts.push("import ", path.call(print, "id"), " = ", path.call(print, "moduleReference")); + return maybeAddSemicolon(lines_1.concat(parts)); + case "TSExternalModuleReference": + return lines_1.concat(["require(", path.call(print, "expression"), ")"]); + case "TSModuleDeclaration": { + var parent_1 = path.getParentNode(); + if (parent_1.type === "TSModuleDeclaration") { + parts.push("."); + } + else { + if (n.declare) { + parts.push("declare "); + } + if (!n.global) { + var isExternal = n.id.type === "StringLiteral" || + (n.id.type === "Literal" && + typeof n.id.value === "string"); + if (isExternal) { + parts.push("module "); + } + else if (n.loc && + n.loc.lines && + n.id.loc) { + var prefix_1 = n.loc.lines.sliceString(n.loc.start, n.id.loc.start); + // These keywords are fundamentally ambiguous in the + // Babylon parser, and not reflected in the AST, so + // the best we can do is to match the original code, + // when possible. + if (prefix_1.indexOf("module") >= 0) { + parts.push("module "); + } + else { + parts.push("namespace "); + } + } + else { + parts.push("namespace "); + } + } + } + parts.push(path.call(print, "id")); + if (n.body && n.body.type === "TSModuleDeclaration") { + parts.push(path.call(print, "body")); + } + else if (n.body) { + var bodyLines = path.call(print, "body"); + if (bodyLines.isEmpty()) { + parts.push(" {}"); + } + else { + parts.push(" {\n", bodyLines.indent(options.tabWidth), "\n}"); + } + } + return lines_1.concat(parts); + } + case "TSModuleBlock": + return path.call(function (bodyPath) { + return printStatementSequence(bodyPath, options, print); + }, "body"); + // Unhandled types below. If encountered, nodes of these types should + // be either left alone or desugared into AST types that are fully + // supported by the pretty-printer. + case "ClassHeritage": // TODO + case "ComprehensionBlock": // TODO + case "ComprehensionExpression": // TODO + case "Glob": // TODO + case "GeneratorExpression": // TODO + case "LetStatement": // TODO + case "LetExpression": // TODO + case "GraphExpression": // TODO + case "GraphIndexExpression": // TODO + // XML types that nobody cares about or needs to print. + case "XMLDefaultDeclaration": + case "XMLAnyName": + case "XMLQualifiedIdentifier": + case "XMLFunctionQualifiedIdentifier": + case "XMLAttributeSelector": + case "XMLFilterExpression": + case "XML": + case "XMLElement": + case "XMLList": + case "XMLEscape": + case "XMLText": + case "XMLStartTag": + case "XMLEndTag": + case "XMLPointTag": + case "XMLName": + case "XMLAttribute": + case "XMLCdata": + case "XMLComment": + case "XMLProcessingInstruction": + default: + debugger; + throw new Error("unknown type: " + JSON.stringify(n.type)); + } +} +function printDecorators(path, printPath) { + var parts = []; + var node = path.getValue(); + if (node.decorators && + node.decorators.length > 0 && + // If the parent node is an export declaration, it will be + // responsible for printing node.decorators. + !util.getParentExportDeclaration(path)) { + path.each(function (decoratorPath) { + parts.push(printPath(decoratorPath), "\n"); + }, "decorators"); + } + else if (util.isExportDeclaration(node) && + node.declaration && + node.declaration.decorators) { + // Export declarations are responsible for printing any decorators + // that logically apply to node.declaration. + path.each(function (decoratorPath) { + parts.push(printPath(decoratorPath), "\n"); + }, "declaration", "decorators"); + } + return lines_1.concat(parts); +} +function printStatementSequence(path, options, print) { + var filtered = []; + var sawComment = false; + var sawStatement = false; + path.each(function (stmtPath) { + var stmt = stmtPath.getValue(); + // Just in case the AST has been modified to contain falsy + // "statements," it's safer simply to skip them. + if (!stmt) { + return; + } + // Skip printing EmptyStatement nodes to avoid leaving stray + // semicolons lying around. + if (stmt.type === "EmptyStatement" && + !(stmt.comments && stmt.comments.length > 0)) { + return; + } + if (namedTypes.Comment.check(stmt)) { + // The pretty printer allows a dangling Comment node to act as + // a Statement when the Comment can't be attached to any other + // non-Comment node in the tree. + sawComment = true; + } + else if (namedTypes.Statement.check(stmt)) { + sawStatement = true; + } + else { + // When the pretty printer encounters a string instead of an + // AST node, it just prints the string. This behavior can be + // useful for fine-grained formatting decisions like inserting + // blank lines. + isString.assert(stmt); + } + // We can't hang onto stmtPath outside of this function, because + // it's just a reference to a mutable FastPath object, so we have + // to go ahead and print it here. + filtered.push({ + node: stmt, + printed: print(stmtPath) + }); + }); + if (sawComment) { + assert_1.default.strictEqual(sawStatement, false, "Comments may appear as statements in otherwise empty statement " + + "lists, but may not coexist with non-Comment nodes."); + } + var prevTrailingSpace = null; + var len = filtered.length; + var parts = []; + filtered.forEach(function (info, i) { + var printed = info.printed; + var stmt = info.node; + var multiLine = printed.length > 1; + var notFirst = i > 0; + var notLast = i < len - 1; + var leadingSpace; + var trailingSpace; + var lines = stmt && stmt.loc && stmt.loc.lines; + var trueLoc = lines && options.reuseWhitespace && + util.getTrueLoc(stmt, lines); + if (notFirst) { + if (trueLoc) { + var beforeStart = lines.skipSpaces(trueLoc.start, true); + var beforeStartLine = beforeStart ? beforeStart.line : 1; + var leadingGap = trueLoc.start.line - beforeStartLine; + leadingSpace = Array(leadingGap + 1).join("\n"); + } + else { + leadingSpace = multiLine ? "\n\n" : "\n"; + } + } + else { + leadingSpace = ""; + } + if (notLast) { + if (trueLoc) { + var afterEnd = lines.skipSpaces(trueLoc.end); + var afterEndLine = afterEnd ? afterEnd.line : lines.length; + var trailingGap = afterEndLine - trueLoc.end.line; + trailingSpace = Array(trailingGap + 1).join("\n"); + } + else { + trailingSpace = multiLine ? "\n\n" : "\n"; + } + } + else { + trailingSpace = ""; + } + parts.push(maxSpace(prevTrailingSpace, leadingSpace), printed); + if (notLast) { + prevTrailingSpace = trailingSpace; + } + else if (trailingSpace) { + parts.push(trailingSpace); + } + }); + return lines_1.concat(parts); +} +function maxSpace(s1, s2) { + if (!s1 && !s2) { + return lines_1.fromString(""); + } + if (!s1) { + return lines_1.fromString(s2); + } + if (!s2) { + return lines_1.fromString(s1); + } + var spaceLines1 = lines_1.fromString(s1); + var spaceLines2 = lines_1.fromString(s2); + if (spaceLines2.length > spaceLines1.length) { + return spaceLines2; + } + return spaceLines1; +} +function printMethod(path, options, print) { + var node = path.getNode(); + var kind = node.kind; + var parts = []; + var nodeValue = node.value; + if (!namedTypes.FunctionExpression.check(nodeValue)) { + nodeValue = node; + } + var access = node.accessibility || node.access; + if (typeof access === "string") { + parts.push(access, " "); + } + if (node.static) { + parts.push("static "); + } + if (node.abstract) { + parts.push("abstract "); + } + if (node.readonly) { + parts.push("readonly "); + } + if (nodeValue.async) { + parts.push("async "); + } + if (nodeValue.generator) { + parts.push("*"); + } + if (kind === "get" || kind === "set") { + parts.push(kind, " "); + } + var key = path.call(print, "key"); + if (node.computed) { + key = lines_1.concat(["[", key, "]"]); + } + parts.push(key); + if (node.optional) { + parts.push("?"); + } + if (node === nodeValue) { + parts.push(path.call(print, "typeParameters"), "(", printFunctionParams(path, options, print), ")", path.call(print, "returnType")); + if (node.body) { + parts.push(" ", path.call(print, "body")); + } + else { + parts.push(";"); + } + } + else { + parts.push(path.call(print, "value", "typeParameters"), "(", path.call(function (valuePath) { + return printFunctionParams(valuePath, options, print); + }, "value"), ")", path.call(print, "value", "returnType")); + if (nodeValue.body) { + parts.push(" ", path.call(print, "value", "body")); + } + else { + parts.push(";"); + } + } + return lines_1.concat(parts); +} +function printArgumentsList(path, options, print) { + var printed = path.map(print, "arguments"); + var trailingComma = util.isTrailingCommaEnabled(options, "parameters"); + var joined = lines_1.fromString(", ").join(printed); + if (joined.getLineLength(1) > options.wrapColumn) { + joined = lines_1.fromString(",\n").join(printed); + return lines_1.concat([ + "(\n", + joined.indent(options.tabWidth), + trailingComma ? ",\n)" : "\n)" + ]); + } + return lines_1.concat(["(", joined, ")"]); +} +function printFunctionParams(path, options, print) { + var fun = path.getValue(); + if (fun.params) { + var params = fun.params; + var printed = path.map(print, "params"); + } + else if (fun.parameters) { + params = fun.parameters; + printed = path.map(print, "parameters"); + } + if (fun.defaults) { + path.each(function (defExprPath) { + var i = defExprPath.getName(); + var p = printed[i]; + if (p && defExprPath.getValue()) { + printed[i] = lines_1.concat([p, " = ", print(defExprPath)]); + } + }, "defaults"); + } + if (fun.rest) { + printed.push(lines_1.concat(["...", path.call(print, "rest")])); + } + var joined = lines_1.fromString(", ").join(printed); + if (joined.length > 1 || + joined.getLineLength(1) > options.wrapColumn) { + joined = lines_1.fromString(",\n").join(printed); + if (util.isTrailingCommaEnabled(options, "parameters") && + !fun.rest && + params[params.length - 1].type !== 'RestElement') { + joined = lines_1.concat([joined, ",\n"]); + } + else { + joined = lines_1.concat([joined, "\n"]); + } + return lines_1.concat(["\n", joined.indent(options.tabWidth)]); + } + return joined; +} +function printExportDeclaration(path, options, print) { + var decl = path.getValue(); + var parts = ["export "]; + if (decl.exportKind && decl.exportKind !== "value") { + parts.push(decl.exportKind + " "); + } + var shouldPrintSpaces = options.objectCurlySpacing; + namedTypes.Declaration.assert(decl); + if (decl["default"] || + decl.type === "ExportDefaultDeclaration") { + parts.push("default "); + } + if (decl.declaration) { + parts.push(path.call(print, "declaration")); + } + else if (decl.specifiers) { + if (decl.specifiers.length === 1 && + decl.specifiers[0].type === "ExportBatchSpecifier") { + parts.push("*"); + } + else if (decl.specifiers.length === 0) { + parts.push("{}"); + } + else if (decl.specifiers[0].type === 'ExportDefaultSpecifier') { + var unbracedSpecifiers_2 = []; + var bracedSpecifiers_2 = []; + path.each(function (specifierPath) { + var spec = specifierPath.getValue(); + if (spec.type === "ExportDefaultSpecifier") { + unbracedSpecifiers_2.push(print(specifierPath)); + } + else { + bracedSpecifiers_2.push(print(specifierPath)); + } + }, "specifiers"); + unbracedSpecifiers_2.forEach(function (lines, i) { + if (i > 0) { + parts.push(", "); + } + parts.push(lines); + }); + if (bracedSpecifiers_2.length > 0) { + var lines_3 = lines_1.fromString(", ").join(bracedSpecifiers_2); + if (lines_3.getLineLength(1) > options.wrapColumn) { + lines_3 = lines_1.concat([ + lines_1.fromString(",\n").join(bracedSpecifiers_2).indent(options.tabWidth), + "," + ]); + } + if (unbracedSpecifiers_2.length > 0) { + parts.push(", "); + } + if (lines_3.length > 1) { + parts.push("{\n", lines_3, "\n}"); + } + else if (options.objectCurlySpacing) { + parts.push("{ ", lines_3, " }"); + } + else { + parts.push("{", lines_3, "}"); + } + } + } + else { + parts.push(shouldPrintSpaces ? "{ " : "{", lines_1.fromString(", ").join(path.map(print, "specifiers")), shouldPrintSpaces ? " }" : "}"); + } + if (decl.source) { + parts.push(" from ", path.call(print, "source")); + } + } + var lines = lines_1.concat(parts); + if (lastNonSpaceCharacter(lines) !== ";" && + !(decl.declaration && + (decl.declaration.type === "FunctionDeclaration" || + decl.declaration.type === "ClassDeclaration" || + decl.declaration.type === "TSModuleDeclaration" || + decl.declaration.type === "TSInterfaceDeclaration" || + decl.declaration.type === "TSEnumDeclaration"))) { + lines = lines_1.concat([lines, ";"]); + } + return lines; +} +function printFlowDeclaration(path, parts) { + var parentExportDecl = util.getParentExportDeclaration(path); + if (parentExportDecl) { + assert_1.default.strictEqual(parentExportDecl.type, "DeclareExportDeclaration"); + } + else { + // If the parent node has type DeclareExportDeclaration, then it + // will be responsible for printing the "declare" token. Otherwise + // it needs to be printed with this non-exported declaration node. + parts.unshift("declare "); + } + return lines_1.concat(parts); +} +function printVariance(path, print) { + return path.call(function (variancePath) { + var value = variancePath.getValue(); + if (value) { + if (value === "plus") { + return lines_1.fromString("+"); + } + if (value === "minus") { + return lines_1.fromString("-"); + } + return print(variancePath); + } + return lines_1.fromString(""); + }, "variance"); +} +function adjustClause(clause, options) { + if (clause.length > 1) + return lines_1.concat([" ", clause]); + return lines_1.concat([ + "\n", + maybeAddSemicolon(clause).indent(options.tabWidth) + ]); +} +function lastNonSpaceCharacter(lines) { + var pos = lines.lastPos(); + do { + var ch = lines.charAt(pos); + if (/\S/.test(ch)) + return ch; + } while (lines.prevPos(pos)); +} +function endsWithBrace(lines) { + return lastNonSpaceCharacter(lines) === "}"; +} +function swapQuotes(str) { + return str.replace(/['"]/g, function (m) { + return m === '"' ? '\'' : '"'; + }); +} +function nodeStr(str, options) { + isString.assert(str); + switch (options.quote) { + case "auto": + var double = JSON.stringify(str); + var single = swapQuotes(JSON.stringify(swapQuotes(str))); + return double.length > single.length ? single : double; + case "single": + return swapQuotes(JSON.stringify(swapQuotes(str))); + case "double": + default: + return JSON.stringify(str); + } +} +function maybeAddSemicolon(lines) { + var eoc = lastNonSpaceCharacter(lines); + if (!eoc || "\n};".indexOf(eoc) < 0) + return lines_1.concat([lines, ";"]); + return lines; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/types.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/types.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..33be9e6702551182e31cff6e5a7c122ad0b82d18 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/types.d.ts" @@ -0,0 +1,12 @@ +import astTypes from "ast-types"; +export default astTypes; +export * from "ast-types"; +export declare type Position = { + line: number; + column: number; +}; +export declare type SourceLocation = { + source?: string | null; + start: Position; + end: Position; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/types.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/types.js" new file mode 100644 index 0000000000000000000000000000000000000000..07aa5c517ccc176afa9fe0d62321a268167bc79f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/types.js" @@ -0,0 +1,16 @@ +"use strict";; +function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; +} +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +// This module was originally created so that Recast could add its own +// custom types to the AST type system (in particular, the File type), but +// those types are now incorporated into ast-types, so this module doesn't +// have much to do anymore. Still, it might prove useful in the future. +var ast_types_1 = __importDefault(require("ast-types")); +exports.default = ast_types_1.default; +__export(require("ast-types")); +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/util.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/util.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..effa34babf78f1ce1ca58ad48bf63986d57f1e71 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/util.d.ts" @@ -0,0 +1,16 @@ +export declare function getOption(options: any, key: any, defaultValue: any): any; +export declare function getUnionOfKeys(...args: any[]): any; +export declare function comparePos(pos1: any, pos2: any): number; +export declare function copyPos(pos: any): { + line: any; + column: any; +}; +export declare function composeSourceMaps(formerMap: any, latterMap: any): any; +export declare function getTrueLoc(node: any, lines: any): { + start: any; + end: any; +} | null; +export declare function fixFaultyLocations(node: any, lines: any): void; +export declare function isExportDeclaration(node: any): boolean; +export declare function getParentExportDeclaration(path: any): any; +export declare function isTrailingCommaEnabled(options: any, context: any): boolean; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/util.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/util.js" new file mode 100644 index 0000000000000000000000000000000000000000..ce47c480f828f0c1d4afe4ec82bffb238eb8e4e5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/lib/util.js" @@ -0,0 +1,332 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var assert_1 = __importDefault(require("assert")); +var types_1 = __importDefault(require("./types")); +var n = types_1.default.namedTypes; +var source_map_1 = __importDefault(require("source-map")); +var SourceMapConsumer = source_map_1.default.SourceMapConsumer; +var SourceMapGenerator = source_map_1.default.SourceMapGenerator; +var hasOwn = Object.prototype.hasOwnProperty; +function getOption(options, key, defaultValue) { + if (options && hasOwn.call(options, key)) { + return options[key]; + } + return defaultValue; +} +exports.getOption = getOption; +function getUnionOfKeys() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) { + args[_i] = arguments[_i]; + } + var result = {}; + var argc = args.length; + for (var i = 0; i < argc; ++i) { + var keys = Object.keys(args[i]); + var keyCount = keys.length; + for (var j = 0; j < keyCount; ++j) { + result[keys[j]] = true; + } + } + return result; +} +exports.getUnionOfKeys = getUnionOfKeys; +function comparePos(pos1, pos2) { + return (pos1.line - pos2.line) || (pos1.column - pos2.column); +} +exports.comparePos = comparePos; +function copyPos(pos) { + return { + line: pos.line, + column: pos.column + }; +} +exports.copyPos = copyPos; +function composeSourceMaps(formerMap, latterMap) { + if (formerMap) { + if (!latterMap) { + return formerMap; + } + } + else { + return latterMap || null; + } + var smcFormer = new SourceMapConsumer(formerMap); + var smcLatter = new SourceMapConsumer(latterMap); + var smg = new SourceMapGenerator({ + file: latterMap.file, + sourceRoot: latterMap.sourceRoot + }); + var sourcesToContents = {}; + smcLatter.eachMapping(function (mapping) { + var origPos = smcFormer.originalPositionFor({ + line: mapping.originalLine, + column: mapping.originalColumn + }); + var sourceName = origPos.source; + if (sourceName === null) { + return; + } + smg.addMapping({ + source: sourceName, + original: copyPos(origPos), + generated: { + line: mapping.generatedLine, + column: mapping.generatedColumn + }, + name: mapping.name + }); + var sourceContent = smcFormer.sourceContentFor(sourceName); + if (sourceContent && !hasOwn.call(sourcesToContents, sourceName)) { + sourcesToContents[sourceName] = sourceContent; + smg.setSourceContent(sourceName, sourceContent); + } + }); + return smg.toJSON(); +} +exports.composeSourceMaps = composeSourceMaps; +; +function getTrueLoc(node, lines) { + // It's possible that node is newly-created (not parsed by Esprima), + // in which case it probably won't have a .loc property (or an + // .original property for that matter). That's fine; we'll just + // pretty-print it as usual. + if (!node.loc) { + return null; + } + var result = { + start: node.loc.start, + end: node.loc.end + }; + function include(node) { + expandLoc(result, node.loc); + } + // If the node is an export declaration and its .declaration has any + // decorators, their locations might contribute to the true start/end + // positions of the export declaration node. + if (node.declaration && + node.declaration.decorators && + isExportDeclaration(node)) { + node.declaration.decorators.forEach(include); + } + if (comparePos(result.start, result.end) < 0) { + // Trim leading whitespace. + result.start = copyPos(result.start); + lines.skipSpaces(result.start, false, true); + if (comparePos(result.start, result.end) < 0) { + // Trim trailing whitespace, if the end location is not already the + // same as the start location. + result.end = copyPos(result.end); + lines.skipSpaces(result.end, true, true); + } + } + // If the node has any comments, their locations might contribute to + // the true start/end positions of the node. + if (node.comments) { + node.comments.forEach(include); + } + return result; +} +exports.getTrueLoc = getTrueLoc; +; +function expandLoc(parentLoc, childLoc) { + if (parentLoc && childLoc) { + if (comparePos(childLoc.start, parentLoc.start) < 0) { + parentLoc.start = childLoc.start; + } + if (comparePos(parentLoc.end, childLoc.end) < 0) { + parentLoc.end = childLoc.end; + } + } +} +function fixFaultyLocations(node, lines) { + var loc = node.loc; + if (loc) { + if (loc.start.line < 1) { + loc.start.line = 1; + } + if (loc.end.line < 1) { + loc.end.line = 1; + } + } + if (node.type === "File") { + // Babylon returns File nodes whose .loc.{start,end} do not include + // leading or trailing whitespace. + loc.start = lines.firstPos(); + loc.end = lines.lastPos(); + } + fixForLoopHead(node, lines); + fixTemplateLiteral(node, lines); + if (loc && node.decorators) { + // Expand the .loc of the node responsible for printing the decorators + // (here, the decorated node) so that it includes node.decorators. + node.decorators.forEach(function (decorator) { + expandLoc(loc, decorator.loc); + }); + } + else if (node.declaration && isExportDeclaration(node)) { + // Nullify .loc information for the child declaration so that we never + // try to reprint it without also reprinting the export declaration. + node.declaration.loc = null; + // Expand the .loc of the node responsible for printing the decorators + // (here, the export declaration) so that it includes node.decorators. + var decorators = node.declaration.decorators; + if (decorators) { + decorators.forEach(function (decorator) { + expandLoc(loc, decorator.loc); + }); + } + } + else if ((n.MethodDefinition && n.MethodDefinition.check(node)) || + (n.Property.check(node) && (node.method || node.shorthand))) { + // If the node is a MethodDefinition or a .method or .shorthand + // Property, then the location information stored in + // node.value.loc is very likely untrustworthy (just the {body} + // part of a method, or nothing in the case of shorthand + // properties), so we null out that information to prevent + // accidental reuse of bogus source code during reprinting. + node.value.loc = null; + if (n.FunctionExpression.check(node.value)) { + // FunctionExpression method values should be anonymous, + // because their .id fields are ignored anyway. + node.value.id = null; + } + } + else if (node.type === "ObjectTypeProperty") { + var loc = node.loc; + var end = loc && loc.end; + if (end) { + end = copyPos(end); + if (lines.prevPos(end) && + lines.charAt(end) === ",") { + // Some parsers accidentally include trailing commas in the + // .loc.end information for ObjectTypeProperty nodes. + if ((end = lines.skipSpaces(end, true, true))) { + loc.end = end; + } + } + } + } +} +exports.fixFaultyLocations = fixFaultyLocations; +; +function fixForLoopHead(node, lines) { + if (node.type !== "ForStatement") { + return; + } + function fix(child) { + var loc = child && child.loc; + var start = loc && loc.start; + var end = loc && copyPos(loc.end); + while (start && end && comparePos(start, end) < 0) { + lines.prevPos(end); + if (lines.charAt(end) === ";") { + // Update child.loc.end to *exclude* the ';' character. + loc.end.line = end.line; + loc.end.column = end.column; + } + else { + break; + } + } + } + fix(node.init); + fix(node.test); + fix(node.update); +} +function fixTemplateLiteral(node, lines) { + if (node.type !== "TemplateLiteral") { + return; + } + if (node.quasis.length === 0) { + // If there are no quasi elements, then there is nothing to fix. + return; + } + // node.loc is not present when using export default with a template literal + if (node.loc) { + // First we need to exclude the opening ` from the .loc of the first + // quasi element, in case the parser accidentally decided to include it. + var afterLeftBackTickPos = copyPos(node.loc.start); + assert_1.default.strictEqual(lines.charAt(afterLeftBackTickPos), "`"); + assert_1.default.ok(lines.nextPos(afterLeftBackTickPos)); + var firstQuasi = node.quasis[0]; + if (comparePos(firstQuasi.loc.start, afterLeftBackTickPos) < 0) { + firstQuasi.loc.start = afterLeftBackTickPos; + } + // Next we need to exclude the closing ` from the .loc of the last quasi + // element, in case the parser accidentally decided to include it. + var rightBackTickPos = copyPos(node.loc.end); + assert_1.default.ok(lines.prevPos(rightBackTickPos)); + assert_1.default.strictEqual(lines.charAt(rightBackTickPos), "`"); + var lastQuasi = node.quasis[node.quasis.length - 1]; + if (comparePos(rightBackTickPos, lastQuasi.loc.end) < 0) { + lastQuasi.loc.end = rightBackTickPos; + } + } + // Now we need to exclude ${ and } characters from the .loc's of all + // quasi elements, since some parsers accidentally include them. + node.expressions.forEach(function (expr, i) { + // Rewind from expr.loc.start over any whitespace and the ${ that + // precedes the expression. The position of the $ should be the same + // as the .loc.end of the preceding quasi element, but some parsers + // accidentally include the ${ in the .loc of the quasi element. + var dollarCurlyPos = lines.skipSpaces(expr.loc.start, true, false); + if (lines.prevPos(dollarCurlyPos) && + lines.charAt(dollarCurlyPos) === "{" && + lines.prevPos(dollarCurlyPos) && + lines.charAt(dollarCurlyPos) === "$") { + var quasiBefore = node.quasis[i]; + if (comparePos(dollarCurlyPos, quasiBefore.loc.end) < 0) { + quasiBefore.loc.end = dollarCurlyPos; + } + } + // Likewise, some parsers accidentally include the } that follows + // the expression in the .loc of the following quasi element. + var rightCurlyPos = lines.skipSpaces(expr.loc.end, false, false); + if (lines.charAt(rightCurlyPos) === "}") { + assert_1.default.ok(lines.nextPos(rightCurlyPos)); + // Now rightCurlyPos is technically the position just after the }. + var quasiAfter = node.quasis[i + 1]; + if (comparePos(quasiAfter.loc.start, rightCurlyPos) < 0) { + quasiAfter.loc.start = rightCurlyPos; + } + } + }); +} +function isExportDeclaration(node) { + if (node) + switch (node.type) { + case "ExportDeclaration": + case "ExportDefaultDeclaration": + case "ExportDefaultSpecifier": + case "DeclareExportDeclaration": + case "ExportNamedDeclaration": + case "ExportAllDeclaration": + return true; + } + return false; +} +exports.isExportDeclaration = isExportDeclaration; +; +function getParentExportDeclaration(path) { + var parentNode = path.getParentNode(); + if (path.getName() === "declaration" && + isExportDeclaration(parentNode)) { + return parentNode; + } + return null; +} +exports.getParentExportDeclaration = getParentExportDeclaration; +; +function isTrailingCommaEnabled(options, context) { + var trailingComma = options.trailingComma; + if (typeof trailingComma === "object") { + return !!trailingComma[context]; + } + return !!trailingComma; +} +exports.isTrailingCommaEnabled = isTrailingCommaEnabled; +; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/main.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/main.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..02339e8ca1d0346f08f871de9885d00f4ae03928 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/main.d.ts" @@ -0,0 +1,27 @@ +import types, { ASTNode } from "./lib/types"; +import { parse } from "./lib/parser"; +import { Options } from "./lib/options"; +export interface Parser { + parse(source: string, options?: any): ASTNode; +} +declare function print(node: ASTNode, options?: Options): import("./lib/printer").PrintResultType; +declare function prettyPrint(node: ASTNode, options?: Options): import("./lib/printer").PrintResultType; +interface Transformer { + (ast: ASTNode, callback: (ast: ASTNode) => void): void; +} +interface RunOptions extends Options { + writeback?(code: string): void; +} +declare function run(transformer: Transformer, options?: RunOptions): void; +interface Main { + parse: typeof parse; + visit: typeof types.visit; + print: typeof print; + prettyPrint: typeof prettyPrint; + types: typeof types; + run: typeof run; +} +declare const main: Main; +export default main; +export { ASTNode, NamedTypes, Builders, NodePath, Type, } from "./lib/types"; +export { Options } from "./lib/options"; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/main.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/main.js" new file mode 100644 index 0000000000000000000000000000000000000000..4a59c7becdd44ed0eb1ecf841cbd9e4cbf19ec6f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/main.js" @@ -0,0 +1,95 @@ +"use strict";; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var fs_1 = __importDefault(require("fs")); +var types_1 = __importDefault(require("./lib/types")); +var parser_1 = require("./lib/parser"); +var printer_1 = require("./lib/printer"); +function print(node, options) { + return new printer_1.Printer(options).print(node); +} +function prettyPrint(node, options) { + return new printer_1.Printer(options).printGenerically(node); +} +function run(transformer, options) { + return runFile(process.argv[2], transformer, options); +} +function runFile(path, transformer, options) { + fs_1.default.readFile(path, "utf-8", function (err, code) { + if (err) { + console.error(err); + return; + } + runString(code, transformer, options); + }); +} +function defaultWriteback(output) { + process.stdout.write(output); +} +function runString(code, transformer, options) { + var writeback = options && options.writeback || defaultWriteback; + transformer(parser_1.parse(code, options), function (node) { + writeback(print(node, options).code); + }); +} +var main = {}; +Object.defineProperties(main, { + /** + * Parse a string of code into an augmented syntax tree suitable for + * arbitrary modification and reprinting. + */ + parse: { + enumerable: true, + value: parser_1.parse + }, + /** + * Traverse and potentially modify an abstract syntax tree using a + * convenient visitor syntax: + * + * recast.visit(ast, { + * names: [], + * visitIdentifier: function(path) { + * var node = path.value; + * this.visitor.names.push(node.name); + * this.traverse(path); + * } + * }); + */ + visit: { + enumerable: true, + value: types_1.default.visit + }, + /** + * Reprint a modified syntax tree using as much of the original source + * code as possible. + */ + print: { + enumerable: true, + value: print + }, + /** + * Print without attempting to reuse any original source code. + */ + prettyPrint: { + enumerable: false, + value: prettyPrint + }, + /** + * Customized version of require("ast-types"). + */ + types: { + enumerable: false, + value: types_1.default + }, + /** + * Convenient command-line interface (see e.g. example/add-braces). + */ + run: { + enumerable: false, + value: run + } +}); +exports.default = main; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..e1e793966d3411c246e23feedeaeda5149764087 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/package.json" @@ -0,0 +1,64 @@ +{ + "author": "Ben Newman ", + "name": "recast", + "version": "0.17.2", + "description": "JavaScript syntax tree transformer, nondestructive pretty-printer, and automatic source map generator", + "keywords": [ + "ast", + "rewriting", + "refactoring", + "codegen", + "syntax", + "transformation", + "parsing", + "pretty-printing" + ], + "homepage": "http://github.com/benjamn/recast", + "repository": { + "type": "git", + "url": "git://github.com/benjamn/recast.git" + }, + "license": "MIT", + "main": "main.js", + "types": "main.d.ts", + "scripts": { + "tsc": "tsc --noEmit", + "mocha": "test/run.sh", + "debug": "test/run.sh --inspect-brk", + "test": "npm run tsc && npm run mocha", + "build": "tsc && ts-add-module-exports", + "clean": "ts-emit-clean", + "prepack": "npm run clean && npm run build", + "postpack": "npm run clean" + }, + "browser": { + "fs": false + }, + "dependencies": { + "ast-types": "0.12.1", + "esprima": "~4.0.0", + "private": "~0.1.5", + "source-map": "~0.6.1" + }, + "devDependencies": { + "@babel/core": "^7.0.0-beta.54", + "@babel/parser": "^7.0.0-beta.54", + "@babel/preset-env": "^7.0.0-beta.54", + "@types/esprima": "^4.0.2", + "@types/glob": "^7.1.1", + "@types/mocha": "^5.2.5", + "@types/node": "^10.12.9", + "esprima-fb": "^15001.1001.0-dev-harmony-fb", + "flow-parser": "^0.83.0", + "glob": "^7.1.2", + "mocha": "~5.2.0", + "reify": "^0.18.0", + "ts-add-module-exports": "^1.0.0", + "ts-emit-clean": "^1.0.0", + "ts-node": "^7.0.1", + "typescript": "^3.1.6" + }, + "engines": { + "node": ">= 4" + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/_babel_options.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/_babel_options.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..57bf4c67485e438914a81b63fb6e78438f194771 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/_babel_options.d.ts" @@ -0,0 +1,8 @@ +import { ParserOptions, ParserPlugin } from "@babel/parser"; +export declare type Overrides = Partial<{ + sourceType: ParserOptions["sourceType"]; + strictMode: ParserOptions["strictMode"]; +}>; +export default function getBabelOptions(options?: Overrides): ParserOptions & { + plugins: ParserPlugin[]; +}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/_babel_options.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/_babel_options.js" new file mode 100644 index 0000000000000000000000000000000000000000..891364f96bc2d8d36c9279aa9190f13c40d43672 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/_babel_options.js" @@ -0,0 +1,42 @@ +"use strict";; +Object.defineProperty(exports, "__esModule", { value: true }); +var util_1 = require("../lib/util"); +function getBabelOptions(options) { + // The goal here is to tolerate as much syntax as possible, since Recast + // is not in the business of forbidding anything. If you want your + // parser to be more restrictive for some reason, you can always pass + // your own parser object to recast.parse. + return { + sourceType: util_1.getOption(options, "sourceType", "module"), + strictMode: util_1.getOption(options, "strictMode", false), + allowImportExportEverywhere: true, + allowReturnOutsideFunction: true, + startLine: 1, + tokens: true, + plugins: [ + "asyncGenerators", + "bigInt", + "classPrivateMethods", + "classPrivateProperties", + "classProperties", + "decorators-legacy", + "doExpressions", + "dynamicImport", + "exportDefaultFrom", + "exportExtensions", + "exportNamespaceFrom", + "functionBind", + "functionSent", + "importMeta", + "nullishCoalescingOperator", + "numericSeparator", + "objectRestSpread", + "optionalCatchBinding", + "optionalChaining", + ["pipelineOperator", { proposal: "minimal" }], + "throwExpressions", + ] + }; +} +exports.default = getBabelOptions; +module.exports = exports["default"]; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/acorn.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/acorn.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..4ad665365d1453434127a6ba941f4dc3d3d799c2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/acorn.d.ts" @@ -0,0 +1 @@ +export declare function parse(source: string, options?: any): any; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/acorn.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/acorn.js" new file mode 100644 index 0000000000000000000000000000000000000000..d887c202e4df9609427ed6717eb1d4e9cca4ba60 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/acorn.js" @@ -0,0 +1,33 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// This module is suitable for passing as options.parser when calling +// recast.parse to process JavaScript code with Acorn: +// +// const ast = recast.parse(source, { +// parser: require("recast/parsers/acorn") +// }); +// +var util_1 = require("../lib/util"); +function parse(source, options) { + var comments = []; + var tokens = []; + var ast = require("acorn").parse(source, { + allowHashBang: true, + allowImportExportEverywhere: true, + allowReturnOutsideFunction: true, + ecmaVersion: util_1.getOption(options, "ecmaVersion", 8), + sourceType: util_1.getOption(options, "sourceType", "module"), + locations: true, + onComment: comments, + onToken: tokens, + }); + if (!ast.comments) { + ast.comments = comments; + } + if (!ast.tokens) { + ast.tokens = tokens; + } + return ast; +} +exports.parse = parse; +; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/babel.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/babel.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..8e5dee23904d2af927bde769718e548bae3bc8ec --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/babel.d.ts" @@ -0,0 +1,8 @@ +import { parse as babelParse } from "@babel/parser"; +import { Overrides } from "./_babel_options"; +declare type BabelParser = { + parse: typeof babelParse; +}; +export declare const parser: BabelParser; +export declare function parse(source: string, options?: Overrides): import("@babel/types").File; +export {}; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/babel.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/babel.js" new file mode 100644 index 0000000000000000000000000000000000000000..1daa87927db00092e666e43ba1deee0b6f32e732 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/babel.js" @@ -0,0 +1,30 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var _babel_options_1 = __importDefault(require("./_babel_options")); +// Prefer the new @babel/parser package, but fall back to babylon if +// that's what's available. +exports.parser = function () { + try { + return require("@babel/parser"); + } + catch (e) { + return require("babylon"); + } +}(); +// This module is suitable for passing as options.parser when calling +// recast.parse to process JavaScript code with Babel: +// +// const ast = recast.parse(source, { +// parser: require("recast/parsers/babel") +// }); +// +function parse(source, options) { + var babelOptions = _babel_options_1.default(options); + babelOptions.plugins.push("jsx", "flow"); + return exports.parser.parse(source, babelOptions); +} +exports.parse = parse; +; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/babylon.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/babylon.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..60fce87ff55bcacbbacf7e997c018d0694636a76 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/babylon.d.ts" @@ -0,0 +1 @@ +export * from "./babel"; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/babylon.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/babylon.js" new file mode 100644 index 0000000000000000000000000000000000000000..47d19bf330b56114cd937b004d53f6e7b9d27cae --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/babylon.js" @@ -0,0 +1,6 @@ +"use strict"; +function __export(m) { + for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p]; +} +Object.defineProperty(exports, "__esModule", { value: true }); +__export(require("./babel")); diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/esprima.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/esprima.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..4ad665365d1453434127a6ba941f4dc3d3d799c2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/esprima.d.ts" @@ -0,0 +1 @@ +export declare function parse(source: string, options?: any): any; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/esprima.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/esprima.js" new file mode 100644 index 0000000000000000000000000000000000000000..a926329497847b1987df9ef2f560c665d5287b54 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/esprima.js" @@ -0,0 +1,28 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +// This module is suitable for passing as options.parser when calling +// recast.parse to process ECMAScript code with Esprima: +// +// const ast = recast.parse(source, { +// parser: require("recast/parsers/esprima") +// }); +// +var util_1 = require("../lib/util"); +function parse(source, options) { + var comments = []; + var ast = require("esprima").parse(source, { + loc: true, + locations: true, + comment: true, + onComment: comments, + range: util_1.getOption(options, "range", false), + tolerant: util_1.getOption(options, "tolerant", true), + tokens: true + }); + if (!Array.isArray(ast.comments)) { + ast.comments = comments; + } + return ast; +} +exports.parse = parse; +; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/flow.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/flow.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..b37ee68bbd6c84730b22d6090e0d591089ae7f2e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/flow.d.ts" @@ -0,0 +1,2 @@ +import { Overrides } from "./_babel_options"; +export declare function parse(source: string, options?: Overrides): import("@babel/types").File; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/flow.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/flow.js" new file mode 100644 index 0000000000000000000000000000000000000000..75139ecf4fe724e062d3e3a63f807f07ce55d99e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/flow.js" @@ -0,0 +1,21 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var babel_1 = require("./babel"); +var _babel_options_1 = __importDefault(require("./_babel_options")); +// This module is suitable for passing as options.parser when calling +// recast.parse to process Flow code: +// +// const ast = recast.parse(source, { +// parser: require("recast/parsers/flow") +// }); +// +function parse(source, options) { + var babelOptions = _babel_options_1.default(options); + babelOptions.plugins.push("jsx", "flow"); + return babel_1.parser.parse(source, babelOptions); +} +exports.parse = parse; +; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/typescript.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/typescript.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..b37ee68bbd6c84730b22d6090e0d591089ae7f2e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/typescript.d.ts" @@ -0,0 +1,2 @@ +import { Overrides } from "./_babel_options"; +export declare function parse(source: string, options?: Overrides): import("@babel/types").File; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/typescript.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/typescript.js" new file mode 100644 index 0000000000000000000000000000000000000000..a7c83e0795286b750d45eafd8431d75ad5616013 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/parsers/typescript.js" @@ -0,0 +1,21 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +var babel_1 = require("./babel"); +var _babel_options_1 = __importDefault(require("./_babel_options")); +// This module is suitable for passing as options.parser when calling +// recast.parse to process TypeScript code: +// +// const ast = recast.parse(source, { +// parser: require("recast/parsers/typescript") +// }); +// +function parse(source, options) { + var babelOptions = _babel_options_1.default(options); + babelOptions.plugins.push("typescript"); + return babel_1.parser.parse(source, babelOptions); +} +exports.parse = parse; +; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/tsconfig.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/tsconfig.json" new file mode 100644 index 0000000000000000000000000000000000000000..afbe6ba55b48e70e72776a2f3d582cdfe73d30aa --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/node_modules/recast/tsconfig.json" @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "target": "es5", + "lib": ["es2015"], + "module": "commonjs", + "declaration": true, + "rootDir": ".", + "strict": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noImplicitReturns": true, + "moduleResolution": "node", + "esModuleInterop": true, + "stripInternal": true + }, + "exclude": [ + "node_modules", + "test/data" + ] +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..0df6b2e08a88c09d8a90e89dcd39f3bcd748cbf4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/package.json" @@ -0,0 +1,37 @@ +{ + "name": "@types/jscodeshift", + "version": "0.7.2", + "description": "TypeScript definitions for jscodeshift", + "license": "MIT", + "contributors": [ + { + "name": "Brie Bunge", + "url": "https://github.com/brieb", + "githubUsername": "brieb" + }, + { + "name": "Brian Jacobel", + "url": "https://github.com/bjacobel", + "githubUsername": "bjacobel" + }, + { + "name": "Will Nguyen", + "url": "https://github.com/willtn", + "githubUsername": "willtn" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/jscodeshift" + }, + "scripts": {}, + "dependencies": { + "ast-types": "0.12.1", + "recast": "0.17.2" + }, + "typesPublisherContentHash": "e1e524a624fd965e6811b849c5c89e9c4841a39e19291ef1bf831de1e7473848", + "typeScriptVersion": "3.3" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/Collection.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/Collection.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..ad28b4af29c34b7e9064ad2ae8fc8429918af80b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/Collection.d.ts" @@ -0,0 +1,131 @@ +import recast = require("recast"); +import JSXElement = require("./collections/JSXElement"); +import NodeCollection = require("./collections/Node"); +import VariableDeclarator = require("./collections/VariableDeclarator"); + +type ASTPath = recast.NodePath; + +export interface Collection + extends NodeCollection.TraversalMethods, + NodeCollection.MutationMethods, + VariableDeclarator.GlobalMethods, + VariableDeclarator.TransformMethods, + JSXElement.GlobalMethods, + JSXElement.TraversalMethods { + /** + * @param paths An array of AST paths + * @param parent A parent collection + * @param types An array of types all the paths in the collection + * have in common. If not passed, it will be inferred from the paths. + */ + new (paths: Array>, parent: Collection, types?: Array>): this; + + /** + * Returns a new collection containing the nodes for which the callback returns true. + */ + filter( + callback: (path: ASTPath, i: number, paths: Array>) => path is ASTPath + ): Collection; + filter( + callback: (path: ASTPath, i: number, paths: Array>) => boolean + ): Collection; + + /** + * Executes callback for each node/path in the collection. + */ + forEach(callback: (path: ASTPath, i: number, paths: Array>) => void): this; + + /** + * Tests whether at-least one path passes the test implemented by the provided callback. + */ + some(callback: (path: ASTPath, i: number, paths: Array>) => boolean): boolean; + + /** + * Tests whether all paths pass the test implemented by the provided callback. + */ + every(callback: (path: ASTPath, i: number, paths: Array>) => boolean): boolean; + + /** + * Executes the callback for every path in the collection and returns a new + * collection from the return values (which must be paths). + * + * The callback can return null to indicate to exclude the element from the + * new collection. + * + * If an array is returned, the array will be flattened into the result + * collection. + * + * @param callback + * @param type Force the new collection to be of a specific type + */ + map( + callback: ( + path: ASTPath, + i: number, + paths: Array> + ) => ASTPath | Array> | null | undefined, + type?: recast.Type + ): Collection; + + /** Returns the number of elements in this collection. */ + size(): number; + + /** Returns the number of elements in this collection. */ + length: number; + + /** Returns an array of AST nodes in this collection. */ + nodes(): N[]; + + /** Returns an array of ASTPaths in this this collection. */ + paths(): Array>; + + getAST(): Array>; + + /** + * Converts the AST back to a string, using recast. + * @param options directly passed to recast's printer + */ + toSource(options?: recast.Options): string; + + /** + * Returns a new collection containing only the element at position index. + * In case of a negative index, the element is taken from the end: + * .at(0) - first element + * .at(-1) - last element + */ + at(index: number): Collection; + + /** Calls "get" on the first path (same as "collection.paths(0).get(...)"). */ + get(...fields: Array): any; + + /** + * Returns the type(s) of the collection. This is only used for unit tests, + * don't think other consumers would need it. + */ + getTypes(): string[]; + + /** + * Returns true if this collection has the type 'type'. + */ + isOfType(type: recast.Type): boolean; +} + +export function fromPaths(...args: any[]): any; + +export function fromNodes(...args: any[]): any; + +/** + * This function adds the provided methods to the prototype of the corresponding + * typed collection. If no type is passed, the methods are added to + * Collection.prototype and are available for all collections. + * + * @param methods Methods to add to the prototype + * @param type Optional type to add the methods to + */ +export function registerMethods(methods: object, type?: recast.Type): void; + +export function hasConflictingRegistration(...args: any[]): any; + +export function setDefaultCollectionType(...args: any[]): any; + +export {}; // shut off automatic exporting diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/collections/JSXElement.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/collections/JSXElement.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..0490e40f760a9fbb20e62ee4447812abf02637ae --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/collections/JSXElement.d.ts" @@ -0,0 +1,71 @@ +import nodes = require("ast-types/gen/nodes"); +import recast = require("recast"); +import Collection = require("../Collection"); + +type ASTPath = recast.NodePath; +type JSXElement = nodes.JSXElement; + +export interface GlobalMethods { + /** + * Finds all JSXElements optionally filtered by name + */ + findJSXElements(name?: string): Collection.Collection; + + /** + * Finds all JSXElements by module name. Given + * + * var Bar = require('Foo'); + * + * + * findJSXElementsByModuleName('Foo') will find , without having to + * know the variable name. + */ + findJSXElementsByModuleName(moduleName: string): Collection.Collection; +} + +type Defined = T extends undefined ? never : T; +type JSXElementChild = Defined[0]; + +export interface TraversalMethods { + /** + * Returns all child nodes, including literals and expressions. + * This method only applies to JSXElement typed collections. + */ + childNodes(): Collection.Collection; + + /** + * Returns all children that are JSXElements. + * This method only applies to JSXElement typed collections. + */ + childElements(): Collection.Collection; +} + +interface Filter { + (path: ASTPath): boolean; +} + +export interface FilterMethods { + /** + * Filter method for attributes. + */ + hasAttributes(attributeFilter: { [attributeName: string]: any }): Filter; + + /** + * Filter elements which contain a specific child type + */ + hasChildren(name: string): Filter; +} + +export interface MappingMethods { + /** + * Given a JSXElement, returns its "root" name. E.g. it would return "Foo" for + * both and . + */ + getRootName(path: ASTPath): string; +} + +export function register(): void; +export const filters: FilterMethods; +export const mappings: MappingMethods; + +export {}; // shut off automatic exporting diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/collections/Node.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/collections/Node.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..d1e74f314d77c086bd82f18c8494404821b0ce38 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/collections/Node.d.ts" @@ -0,0 +1,57 @@ +import nodes = require("ast-types/gen/nodes"); +import recast = require("recast"); +import Collection = require("../Collection"); + +type ASTPath = recast.NodePath; + +export interface TraversalMethods { + /** + * Find nodes of a specific type within the nodes of this collection. + */ + find(type: recast.Type, filter?: ((value: any) => boolean) | object): Collection.Collection; + + /** + * Returns a collection containing the paths that create the scope of the + * currently selected paths. Dedupes the paths. + */ + closestScope(): Collection.Collection; + + /** + * Traverse the AST up and finds the closest node of the provided type. + */ + closest(type: recast.Type, filter?: any): Collection.Collection; + + /** + * Finds the declaration for each selected path. Useful for member expressions + * or JSXElements. Expects a callback function that maps each path to the name + * to look for. + * + * If the callback returns a falsy value, the element is skipped. + */ + getVariableDeclarators(nameGetter: (...args: any[]) => any): Collection.Collection; +} + +export interface MutationMethods { + /** + * Simply replaces the selected nodes with the provided node. If a function + * is provided it is executed for every node and the node is replaced with the + * functions return value. + */ + replaceWith(nodes: T | T[] | ((path: ASTPath, i: number) => T)): Collection.Collection; + + /** + * Inserts a new node before the current one. + */ + insertBefore(insert: any): Collection.Collection; + + /** + * Inserts a new node after the current one. + */ + insertAfter(insert: any): Collection.Collection; + + remove(): Collection.Collection; +} + +export function register(): void; + +export {}; // shut off automatic exporting diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/collections/VariableDeclarator.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/collections/VariableDeclarator.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..eb7c8bcdfd068df38a5fe259f8b9cf0916faab0b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/collections/VariableDeclarator.d.ts" @@ -0,0 +1,39 @@ +import nodes = require("ast-types/gen/nodes"); +import recast = require("recast"); +import Collection = require("../Collection"); + +type ASTPath = recast.NodePath; + +export interface GlobalMethods { + /** + * Finds all variable declarators, optionally filtered by name. + */ + findVariableDeclarators(name?: string): Collection.Collection; +} + +export interface TransformMethods { + /** + * Renames a variable and all its occurrences. + * This method only applies to VariableDeclarator typed collections. + */ + renameTo(newName: string): Collection.Collection; +} + +interface Filter { + (path: ASTPath): boolean; +} + +export interface FilterMethods { + /** + * Returns a function that returns true if the provided path is a variable + * declarator and requires one of the specified module names. + * + * @param names A module name or an array of module names + */ + requiresModule(names: string | string[]): Filter; +} + +export function register(): void; +export const filters: FilterMethods; + +export {}; // shut off automatic exporting diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/core.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/core.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..7df9c83f92f125ce9f9bce3ecb75880aff44bef7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/core.d.ts" @@ -0,0 +1,364 @@ +import nodes = require("ast-types/gen/nodes"); +import recast = require("recast"); +import Collection = require("./Collection"); +import template = require("./template"); +import VariableDeclarator = require("./collections/VariableDeclarator"); +import JSXElement = require("./collections/JSXElement"); + +declare namespace core { + type Parser = recast.Parser; + + interface Filters { + JSXElement: JSXElement.FilterMethods; + VariableDeclarator: VariableDeclarator.FilterMethods; + } + + interface Mappings { + JSXElement: JSXElement.MappingMethods; + } + + interface Plugin { + (core: Core): void; + } + + interface FileInfo { + /** The absolute path to the current file. */ + path: string; + /** The source code of the current file. */ + source: string; + } + + interface Stats { + /** + * Helper function to collect data during --dry runs. + * This function keeps a counter for how often it was called with a specific argument. + * The result is shown in the console. Useful for finding out how many files match a criterion. + */ + (name: string, quantity?: number): void; + } + + type ASTPath = recast.NodePath; + + interface Core { + (source: string, options?: Options): Collection.Collection; + (source: ASTNode | ASTNode[] | ASTPath | ASTPath[]): Collection.Collection; + + registerMethods: typeof Collection.registerMethods; + + types: typeof recast.default.types; + + match( + path: ASTNode | ASTPath, + filter: ((path: ASTNode) => boolean) | ASTNode + ): boolean; + + /** template, bound to default parser */ + template: template.Template; + + filters: Filters; + + mappings: Mappings; + + /** + * Utility function for registering plugins. + * + * Plugins are simple functions that are passed the core jscodeshift instance. + * They should extend jscodeshift by calling `registerMethods`, etc. + * This method guards against repeated registrations (the plugin callback will only be called once). + */ + use(plugin: Plugin): void; + + /** + * Returns a version of the core jscodeshift function "bound" to a specific + * parser. + */ + withParser(parser: string | Parser): JSCodeshift; + } + + type JSCodeshift = Core & recast.NamedTypes & recast.Builders; + type Collection = Collection.Collection; + + interface API { + j: JSCodeshift; + jscodeshift: JSCodeshift; + stats: Stats; + report: (msg: string) => void; + } + + interface Options { + [option: string]: any; + } + + interface Transform { + /** + * If a string is returned and it is different from passed source, the transform is considered to be successful. + * If a string is returned but it's the same as the source, the transform is considered to be unsuccessful. + * If nothing is returned, the file is not supposed to be transformed (which is ok). + */ + (file: FileInfo, api: API, options: Options): string | null | undefined | void; + } + + type ASTNode = nodes.ASTNode; + + type AnyTypeAnnotation = nodes.AnyTypeAnnotation; + type ArrayExpression = nodes.ArrayExpression; + type ArrayPattern = nodes.ArrayPattern; + type ArrayTypeAnnotation = nodes.ArrayTypeAnnotation; + type ArrowFunctionExpression = nodes.ArrowFunctionExpression; + type AssignmentExpression = nodes.AssignmentExpression; + type AssignmentPattern = nodes.AssignmentPattern; + type AwaitExpression = nodes.AwaitExpression; + type BigIntLiteral = nodes.BigIntLiteral; + type BinaryExpression = nodes.BinaryExpression; + type BindExpression = nodes.BindExpression; + type Block = nodes.Block; + type BlockStatement = nodes.BlockStatement; + type BooleanLiteral = nodes.BooleanLiteral; + type BooleanLiteralTypeAnnotation = nodes.BooleanLiteralTypeAnnotation; + type BooleanTypeAnnotation = nodes.BooleanTypeAnnotation; + type BreakStatement = nodes.BreakStatement; + type CallExpression = nodes.CallExpression; + type CatchClause = nodes.CatchClause; + type ClassBody = nodes.ClassBody; + type ClassDeclaration = nodes.ClassDeclaration; + type ClassExpression = nodes.ClassExpression; + type ClassImplements = nodes.ClassImplements; + type ClassMethod = nodes.ClassMethod; + type ClassPrivateMethod = nodes.ClassPrivateMethod; + type ClassPrivateProperty = nodes.ClassPrivateProperty; + type ClassProperty = nodes.ClassProperty; + type ClassPropertyDefinition = nodes.ClassPropertyDefinition; + type Comment = nodes.Comment; + type CommentBlock = nodes.CommentBlock; + type CommentLine = nodes.CommentLine; + type ComprehensionBlock = nodes.ComprehensionBlock; + type ComprehensionExpression = nodes.ComprehensionExpression; + type ConditionalExpression = nodes.ConditionalExpression; + type ContinueStatement = nodes.ContinueStatement; + type DebuggerStatement = nodes.DebuggerStatement; + type Declaration = nodes.Declaration; + type DeclareClass = nodes.DeclareClass; + type DeclaredPredicate = nodes.DeclaredPredicate; + type DeclareExportAllDeclaration = nodes.DeclareExportAllDeclaration; + type DeclareExportDeclaration = nodes.DeclareExportDeclaration; + type DeclareFunction = nodes.DeclareFunction; + type DeclareInterface = nodes.DeclareInterface; + type DeclareModule = nodes.DeclareModule; + type DeclareModuleExports = nodes.DeclareModuleExports; + type DeclareOpaqueType = nodes.DeclareOpaqueType; + type DeclareTypeAlias = nodes.DeclareTypeAlias; + type DeclareVariable = nodes.DeclareVariable; + type Decorator = nodes.Decorator; + type Directive = nodes.Directive; + type DirectiveLiteral = nodes.DirectiveLiteral; + type DoExpression = nodes.DoExpression; + type DoWhileStatement = nodes.DoWhileStatement; + type EmptyStatement = nodes.EmptyStatement; + type EmptyTypeAnnotation = nodes.EmptyTypeAnnotation; + type ExistentialTypeParam = nodes.ExistentialTypeParam; + type ExistsTypeAnnotation = nodes.ExistsTypeAnnotation; + type ExportAllDeclaration = nodes.ExportAllDeclaration; + type ExportBatchSpecifier = nodes.ExportBatchSpecifier; + type ExportDeclaration = nodes.ExportDeclaration; + type ExportDefaultDeclaration = nodes.ExportDefaultDeclaration; + type ExportDefaultSpecifier = nodes.ExportDefaultSpecifier; + type ExportNamedDeclaration = nodes.ExportNamedDeclaration; + type ExportNamespaceSpecifier = nodes.ExportNamespaceSpecifier; + type ExportSpecifier = nodes.ExportSpecifier; + type Expression = nodes.Expression; + type ExpressionStatement = nodes.ExpressionStatement; + type File = nodes.File; + type Flow = nodes.Flow; + type FlowPredicate = nodes.FlowPredicate; + type FlowType = nodes.FlowType; + type ForAwaitStatement = nodes.ForAwaitStatement; + type ForInStatement = nodes.ForInStatement; + type ForOfStatement = nodes.ForOfStatement; + type ForStatement = nodes.ForStatement; + type Function = nodes.Function; + type FunctionDeclaration = nodes.FunctionDeclaration; + type FunctionExpression = nodes.FunctionExpression; + type FunctionTypeAnnotation = nodes.FunctionTypeAnnotation; + type FunctionTypeParam = nodes.FunctionTypeParam; + type GeneratorExpression = nodes.GeneratorExpression; + type GenericTypeAnnotation = nodes.GenericTypeAnnotation; + type Identifier = nodes.Identifier; + type IfStatement = nodes.IfStatement; + type Import = nodes.Import; + type ImportDeclaration = nodes.ImportDeclaration; + type ImportDefaultSpecifier = nodes.ImportDefaultSpecifier; + type ImportNamespaceSpecifier = nodes.ImportNamespaceSpecifier; + type ImportSpecifier = nodes.ImportSpecifier; + type InferredPredicate = nodes.InferredPredicate; + type InterfaceDeclaration = nodes.InterfaceDeclaration; + type InterfaceExtends = nodes.InterfaceExtends; + type InterfaceTypeAnnotation = nodes.InterfaceTypeAnnotation; + type InterpreterDirective = nodes.InterpreterDirective; + type IntersectionTypeAnnotation = nodes.IntersectionTypeAnnotation; + type JSXAttribute = nodes.JSXAttribute; + type JSXClosingElement = nodes.JSXClosingElement; + type JSXClosingFragment = nodes.JSXClosingFragment; + type JSXElement = nodes.JSXElement; + type JSXEmptyExpression = nodes.JSXEmptyExpression; + type JSXExpressionContainer = nodes.JSXExpressionContainer; + type JSXFragment = nodes.JSXFragment; + type JSXIdentifier = nodes.JSXIdentifier; + type JSXMemberExpression = nodes.JSXMemberExpression; + type JSXNamespacedName = nodes.JSXNamespacedName; + type JSXOpeningElement = nodes.JSXOpeningElement; + type JSXOpeningFragment = nodes.JSXOpeningFragment; + type JSXSpreadAttribute = nodes.JSXSpreadAttribute; + type JSXSpreadChild = nodes.JSXSpreadChild; + type JSXText = nodes.JSXText; + type LabeledStatement = nodes.LabeledStatement; + type Line = nodes.Line; + type Literal = nodes.Literal; + type LogicalExpression = nodes.LogicalExpression; + type MemberExpression = nodes.MemberExpression; + type MemberTypeAnnotation = nodes.MemberTypeAnnotation; + type MetaProperty = nodes.MetaProperty; + type MethodDefinition = nodes.MethodDefinition; + type MixedTypeAnnotation = nodes.MixedTypeAnnotation; + type ModuleSpecifier = nodes.ModuleSpecifier; + type NewExpression = nodes.NewExpression; + type Node = nodes.Node; + type Noop = nodes.Noop; + type NullableTypeAnnotation = nodes.NullableTypeAnnotation; + type NullLiteral = nodes.NullLiteral; + type NullLiteralTypeAnnotation = nodes.NullLiteralTypeAnnotation; + type NullTypeAnnotation = nodes.NullTypeAnnotation; + type NumberLiteralTypeAnnotation = nodes.NumberLiteralTypeAnnotation; + type NumberTypeAnnotation = nodes.NumberTypeAnnotation; + type NumericLiteral = nodes.NumericLiteral; + type NumericLiteralTypeAnnotation = nodes.NumericLiteralTypeAnnotation; + type ObjectExpression = nodes.ObjectExpression; + type ObjectMethod = nodes.ObjectMethod; + type ObjectPattern = nodes.ObjectPattern; + type ObjectProperty = nodes.ObjectProperty; + type ObjectTypeAnnotation = nodes.ObjectTypeAnnotation; + type ObjectTypeCallProperty = nodes.ObjectTypeCallProperty; + type ObjectTypeIndexer = nodes.ObjectTypeIndexer; + type ObjectTypeInternalSlot = nodes.ObjectTypeInternalSlot; + type ObjectTypeProperty = nodes.ObjectTypeProperty; + type ObjectTypeSpreadProperty = nodes.ObjectTypeSpreadProperty; + type OpaqueType = nodes.OpaqueType; + type OptionalCallExpression = nodes.OptionalCallExpression; + type OptionalMemberExpression = nodes.OptionalMemberExpression; + type ParenthesizedExpression = nodes.ParenthesizedExpression; + type Pattern = nodes.Pattern; + type Position = nodes.Position; + type Printable = nodes.Printable; + type PrivateName = nodes.PrivateName; + type Program = nodes.Program; + type Property = nodes.Property; + type PropertyPattern = nodes.PropertyPattern; + type QualifiedTypeIdentifier = nodes.QualifiedTypeIdentifier; + type RegExpLiteral = nodes.RegExpLiteral; + type RestElement = nodes.RestElement; + type RestProperty = nodes.RestProperty; + type ReturnStatement = nodes.ReturnStatement; + type SequenceExpression = nodes.SequenceExpression; + type SourceLocation = nodes.SourceLocation; + type Specifier = nodes.Specifier; + type SpreadElement = nodes.SpreadElement; + type SpreadElementPattern = nodes.SpreadElementPattern; + type SpreadProperty = nodes.SpreadProperty; + type SpreadPropertyPattern = nodes.SpreadPropertyPattern; + type Statement = nodes.Statement; + type StringLiteral = nodes.StringLiteral; + type StringLiteralTypeAnnotation = nodes.StringLiteralTypeAnnotation; + type StringTypeAnnotation = nodes.StringTypeAnnotation; + type Super = nodes.Super; + type SwitchCase = nodes.SwitchCase; + type SwitchStatement = nodes.SwitchStatement; + type TaggedTemplateExpression = nodes.TaggedTemplateExpression; + type TemplateElement = nodes.TemplateElement; + type TemplateLiteral = nodes.TemplateLiteral; + type ThisExpression = nodes.ThisExpression; + type ThisTypeAnnotation = nodes.ThisTypeAnnotation; + type ThrowStatement = nodes.ThrowStatement; + type TryStatement = nodes.TryStatement; + type TSAnyKeyword = nodes.TSAnyKeyword; + type TSArrayType = nodes.TSArrayType; + type TSAsExpression = nodes.TSAsExpression; + type TSBooleanKeyword = nodes.TSBooleanKeyword; + type TSCallSignatureDeclaration = nodes.TSCallSignatureDeclaration; + type TSConditionalType = nodes.TSConditionalType; + type TSConstructorType = nodes.TSConstructorType; + type TSConstructSignatureDeclaration = nodes.TSConstructSignatureDeclaration; + type TSDeclareFunction = nodes.TSDeclareFunction; + type TSDeclareMethod = nodes.TSDeclareMethod; + type TSEnumDeclaration = nodes.TSEnumDeclaration; + type TSEnumMember = nodes.TSEnumMember; + type TSExportAssignment = nodes.TSExportAssignment; + type TSExpressionWithTypeArguments = nodes.TSExpressionWithTypeArguments; + type TSExternalModuleReference = nodes.TSExternalModuleReference; + type TSFunctionType = nodes.TSFunctionType; + type TSHasOptionalTypeAnnotation = nodes.TSHasOptionalTypeAnnotation; + type TSHasOptionalTypeParameters = nodes.TSHasOptionalTypeParameters; + type TSImportEqualsDeclaration = nodes.TSImportEqualsDeclaration; + type TSIndexedAccessType = nodes.TSIndexedAccessType; + type TSIndexSignature = nodes.TSIndexSignature; + type TSInferType = nodes.TSInferType; + type TSInterfaceBody = nodes.TSInterfaceBody; + type TSInterfaceDeclaration = nodes.TSInterfaceDeclaration; + type TSIntersectionType = nodes.TSIntersectionType; + type TSLiteralType = nodes.TSLiteralType; + type TSMappedType = nodes.TSMappedType; + type TSMethodSignature = nodes.TSMethodSignature; + type TSModuleBlock = nodes.TSModuleBlock; + type TSModuleDeclaration = nodes.TSModuleDeclaration; + type TSNamespaceExportDeclaration = nodes.TSNamespaceExportDeclaration; + type TSNeverKeyword = nodes.TSNeverKeyword; + type TSNonNullExpression = nodes.TSNonNullExpression; + type TSNullKeyword = nodes.TSNullKeyword; + type TSNumberKeyword = nodes.TSNumberKeyword; + type TSObjectKeyword = nodes.TSObjectKeyword; + type TSOptionalType = nodes.TSOptionalType; + type TSParameterProperty = nodes.TSParameterProperty; + type TSParenthesizedType = nodes.TSParenthesizedType; + type TSPropertySignature = nodes.TSPropertySignature; + type TSQualifiedName = nodes.TSQualifiedName; + type TSRestType = nodes.TSRestType; + type TSStringKeyword = nodes.TSStringKeyword; + type TSSymbolKeyword = nodes.TSSymbolKeyword; + type TSThisType = nodes.TSThisType; + type TSTupleType = nodes.TSTupleType; + type TSType = nodes.TSType; + type TSTypeAliasDeclaration = nodes.TSTypeAliasDeclaration; + type TSTypeAnnotation = nodes.TSTypeAnnotation; + type TSTypeAssertion = nodes.TSTypeAssertion; + type TSTypeLiteral = nodes.TSTypeLiteral; + type TSTypeOperator = nodes.TSTypeOperator; + type TSTypeParameter = nodes.TSTypeParameter; + type TSTypeParameterDeclaration = nodes.TSTypeParameterDeclaration; + type TSTypeParameterInstantiation = nodes.TSTypeParameterInstantiation; + type TSTypePredicate = nodes.TSTypePredicate; + type TSTypeQuery = nodes.TSTypeQuery; + type TSTypeReference = nodes.TSTypeReference; + type TSUndefinedKeyword = nodes.TSUndefinedKeyword; + type TSUnionType = nodes.TSUnionType; + type TSUnknownKeyword = nodes.TSUnknownKeyword; + type TSVoidKeyword = nodes.TSVoidKeyword; + type TupleTypeAnnotation = nodes.TupleTypeAnnotation; + type TypeAlias = nodes.TypeAlias; + type TypeAnnotation = nodes.TypeAnnotation; + type TypeCastExpression = nodes.TypeCastExpression; + type TypeofTypeAnnotation = nodes.TypeofTypeAnnotation; + type TypeParameter = nodes.TypeParameter; + type TypeParameterDeclaration = nodes.TypeParameterDeclaration; + type TypeParameterInstantiation = nodes.TypeParameterInstantiation; + type UnaryExpression = nodes.UnaryExpression; + type UnionTypeAnnotation = nodes.UnionTypeAnnotation; + type UpdateExpression = nodes.UpdateExpression; + type VariableDeclaration = nodes.VariableDeclaration; + type VariableDeclarator = nodes.VariableDeclarator; + type Variance = nodes.Variance; + type VoidTypeAnnotation = nodes.VoidTypeAnnotation; + type WhileStatement = nodes.WhileStatement; + type WithStatement = nodes.WithStatement; + type YieldExpression = nodes.YieldExpression; +} + +declare const core: core.JSCodeshift; +export = core; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/template.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/template.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..cfc0a3c5439153ed837f8dd1bf8261d5f3e3f245 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/template.d.ts" @@ -0,0 +1,18 @@ +import recast = require("recast"); + +export = template; + +declare const template: typeof withParser; + +declare function withParser(parser: recast.Parser): template.Template; + +declare namespace template { + interface Template { + /** Tagged template function. Parses the string as source and returns an array of Statement AST nodes. */ + statements(...args: any[]): any; + /** Tagged template function. Parses the string as source and returns an Statement AST node. */ + statement(...args: any[]): any; + /** Tagged template function. Parses the string as source and returns an Expression AST node. */ + expression(...args: any[]): any; + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/testUtils.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/testUtils.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..8852559f0dc594220e9000d1a979faf102fd169e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/jscodeshift/src/testUtils.d.ts" @@ -0,0 +1,22 @@ +import { Transform, Options } from './core'; +import recast = require("recast"); + +export interface TestOptions { + parser?: recast.Parser | string; +} + +export function defineTest( + dirName: string, + transformName: string, + options: Options, + testFilePrefix?: string, + testOptions?: TestOptions +): () => any; + +export function defineInlineTest( + module: Transform, + options: Options, + inputSource: string, + expectedOutputSource: string, + testName?: string +): () => any; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/keygrip/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/keygrip/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..21071075c24599ee98254f702bcfc504cdc275a6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/keygrip/LICENSE" @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/keygrip/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/keygrip/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..af0d71a7f66950a1e63157f6335a347591d613a4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/keygrip/README.md" @@ -0,0 +1,16 @@ +# Installation +> `npm install --save @types/keygrip` + +# Summary +This package contains type definitions for keygrip (https://github.com/crypto-utils/keygrip). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/keygrip. + +### Additional Details + * Last updated: Thu, 26 Dec 2019 18:59:55 GMT + * Dependencies: none + * Global values: none + +# Credits +These definitions were written by jKey Lu (https://github.com/jkeylu). diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/keygrip/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/keygrip/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..1f8fca7da2ea252297eedbb19c6417244d08d827 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/keygrip/index.d.ts" @@ -0,0 +1,19 @@ +// Type definitions for keygrip 1.0 +// Project: https://github.com/crypto-utils/keygrip +// Definitions by: jKey Lu +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +interface Keygrip { + sign(data: any): string; + verify(data: any, digest: string): boolean; + index(data: any, digest: string): number; +} + +interface KeygripFunction { + new (keys: ReadonlyArray, algorithm?: string, encoding?: string): Keygrip; + (keys: ReadonlyArray, algorithm?: string, encoding?: string): Keygrip; +} + +declare const Keygrip: KeygripFunction; + +export = Keygrip; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/keygrip/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/keygrip/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..583a16f8c50f0286837e4d43f5b8966b974b3adc --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/keygrip/package.json" @@ -0,0 +1,24 @@ +{ + "name": "@types/keygrip", + "version": "1.0.2", + "description": "TypeScript definitions for keygrip", + "license": "MIT", + "contributors": [ + { + "name": "jKey Lu", + "url": "https://github.com/jkeylu", + "githubUsername": "jkeylu" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/keygrip" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "85791e9272f5401dc3416aead8d95149b11fbcc20d9d5b22ef8f75aef9021382", + "typeScriptVersion": "2.8" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa-compose/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa-compose/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..21071075c24599ee98254f702bcfc504cdc275a6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa-compose/LICENSE" @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa-compose/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa-compose/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..7cc008094db64c55aacdf667a9d1cdd858dc7639 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa-compose/README.md" @@ -0,0 +1,16 @@ +# Installation +> `npm install --save @types/koa-compose` + +# Summary +This package contains type definitions for koa-compose (https://github.com/koajs/compose). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa-compose + +Additional Details + * Last updated: Thu, 07 Nov 2019 17:55:21 GMT + * Dependencies: @types/koa + * Global values: none + +# Credits +These definitions were written by jKey Lu , and Anton Astashov . diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa-compose/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa-compose/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..1aa3655f1b0eaf759dac22135ba88cfab22a4ab2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa-compose/index.d.ts" @@ -0,0 +1,57 @@ +// Type definitions for koa-compose 3.2 +// Project: https://github.com/koajs/compose +// Definitions by: jKey Lu +// Anton Astashov +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +import * as Koa from "koa"; + +declare function compose( + middleware: [Koa.Middleware, Koa.Middleware] +): Koa.Middleware; + +declare function compose( + middleware: [Koa.Middleware, Koa.Middleware, Koa.Middleware] +): Koa.Middleware; + +declare function compose( + middleware: [Koa.Middleware, Koa.Middleware, Koa.Middleware, Koa.Middleware] +): Koa.Middleware; + +declare function compose( + middleware: [ + Koa.Middleware, Koa.Middleware, Koa.Middleware, Koa.Middleware, + Koa.Middleware + ] +): Koa.Middleware; + +declare function compose( + middleware: [ + Koa.Middleware, Koa.Middleware, Koa.Middleware, Koa.Middleware, + Koa.Middleware, Koa.Middleware + ] +): Koa.Middleware; + +declare function compose( + middleware: [ + Koa.Middleware, Koa.Middleware, Koa.Middleware, Koa.Middleware, + Koa.Middleware, Koa.Middleware, Koa.Middleware + ] +): Koa.Middleware; + +declare function compose( + middleware: [ + Koa.Middleware, Koa.Middleware, Koa.Middleware, Koa.Middleware, + Koa.Middleware, Koa.Middleware, Koa.Middleware, Koa.Middleware + ] +): Koa.Middleware; + +declare function compose(middleware: Array>): compose.ComposedMiddleware; + +declare namespace compose { + type Middleware = (context: T, next: Koa.Next) => any; + type ComposedMiddleware = (context: T, next?: Koa.Next) => Promise; +} + +export = compose; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa-compose/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa-compose/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..20a9bf753f0cb5ce6cad41a54d03e3c16ce313f4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa-compose/package.json" @@ -0,0 +1,31 @@ +{ + "name": "@types/koa-compose", + "version": "3.2.5", + "description": "TypeScript definitions for koa-compose", + "license": "MIT", + "contributors": [ + { + "name": "jKey Lu", + "url": "https://github.com/jkeylu", + "githubUsername": "jkeylu" + }, + { + "name": "Anton Astashov", + "url": "https://github.com/astashov", + "githubUsername": "astashov" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/koa-compose" + }, + "scripts": {}, + "dependencies": { + "@types/koa": "*" + }, + "typesPublisherContentHash": "a5fb98541fe6f08d4799ff1ca630573727c2aaf2ecaeabcdef672cde7eb1c72d", + "typeScriptVersion": "2.8" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..9e841e7a26e4eb057b24511e7b92d42b257a80e5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa/LICENSE" @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..4bcf953e1e2fddae441dcfdff54f9e5e20afab31 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa/README.md" @@ -0,0 +1,16 @@ +# Installation +> `npm install --save @types/koa` + +# Summary +This package contains type definitions for Koa (http://koajs.com). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa. + +### Additional Details + * Last updated: Tue, 06 Jul 2021 22:02:37 GMT + * Dependencies: [@types/accepts](https://npmjs.com/package/@types/accepts), [@types/cookies](https://npmjs.com/package/@types/cookies), [@types/http-assert](https://npmjs.com/package/@types/http-assert), [@types/http-errors](https://npmjs.com/package/@types/http-errors), [@types/keygrip](https://npmjs.com/package/@types/keygrip), [@types/koa-compose](https://npmjs.com/package/@types/koa-compose), [@types/content-disposition](https://npmjs.com/package/@types/content-disposition), [@types/node](https://npmjs.com/package/@types/node) + * Global values: none + +# Credits +These definitions were written by [DavidCai1993](https://github.com/DavidCai1993), [jKey Lu](https://github.com/jkeylu), [Brice Bernard](https://github.com/brikou), [harryparkdotio](https://github.com/harryparkdotio), [Wooram Jun](https://github.com/chatoo2412), [Christian Vaagland Tellnes](https://github.com/tellnes), [Piotr Kuczynski](https://github.com/pkuczynski), and [vnoder](https://github.com/vnoder). diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..2e085b1ce7faf9db3e5d4c9ea43d0c718bb7225b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa/index.d.ts" @@ -0,0 +1,753 @@ +// Type definitions for Koa 2.13.1 +// Project: http://koajs.com +// Definitions by: DavidCai1993 +// jKey Lu +// Brice Bernard +// harryparkdotio +// Wooram Jun +// Christian Vaagland Tellnes +// Piotr Kuczynski +// vnoder +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 3.0 + +/* =================== USAGE =================== + + import * as Koa from "koa" + const app = new Koa() + + async function (ctx: Koa.Context, next: Koa.Next) { + // ... + } + + =============================================== */ +/// +import * as accepts from 'accepts'; +import * as Cookies from 'cookies'; +import { EventEmitter } from 'events'; +import { IncomingMessage, ServerResponse, Server, IncomingHttpHeaders, OutgoingHttpHeaders } from 'http'; +import { Http2ServerRequest, Http2ServerResponse } from 'http2'; +import httpAssert = require('http-assert'); +import * as HttpErrors from 'http-errors'; +import * as Keygrip from 'keygrip'; +import * as compose from 'koa-compose'; +import { Socket, ListenOptions } from 'net'; +import * as url from 'url'; +import * as contentDisposition from 'content-disposition'; +import { ParsedUrlQuery } from 'querystring'; + +declare interface ContextDelegatedRequest { + /** + * Return request header. + */ + header: IncomingHttpHeaders; + + /** + * Return request header, alias as request.header + */ + headers: IncomingHttpHeaders; + + /** + * Get/Set request URL. + */ + url: string; + + /** + * Get origin of URL. + */ + origin: string; + + /** + * Get full request URL. + */ + href: string; + + /** + * Get/Set request method. + */ + method: string; + + /** + * Get request pathname. + * Set pathname, retaining the query-string when present. + */ + path: string; + + /** + * Get parsed query-string. + * Set query-string as an object. + */ + query: ParsedUrlQuery; + + /** + * Get/Set query string. + */ + querystring: string; + + /** + * Get the search string. Same as the querystring + * except it includes the leading ?. + * + * Set the search string. Same as + * response.querystring= but included for ubiquity. + */ + search: string; + + /** + * Parse the "Host" header field host + * and support X-Forwarded-Host when a + * proxy is enabled. + */ + host: string; + + /** + * Parse the "Host" header field hostname + * and support X-Forwarded-Host when a + * proxy is enabled. + */ + hostname: string; + + /** + * Get WHATWG parsed URL object. + */ + URL: url.URL; + + /** + * Check if the request is fresh, aka + * Last-Modified and/or the ETag + * still match. + */ + fresh: boolean; + + /** + * Check if the request is stale, aka + * "Last-Modified" and / or the "ETag" for the + * resource has changed. + */ + stale: boolean; + + /** + * Check if the request is idempotent. + */ + idempotent: boolean; + + /** + * Return the request socket. + */ + socket: Socket; + + /** + * Return the protocol string "http" or "https" + * when requested with TLS. When the proxy setting + * is enabled the "X-Forwarded-Proto" header + * field will be trusted. If you're running behind + * a reverse proxy that supplies https for you this + * may be enabled. + */ + protocol: string; + + /** + * Short-hand for: + * + * this.protocol == 'https' + */ + secure: boolean; + + /** + * Request remote address. Supports X-Forwarded-For when app.proxy is true. + */ + ip: string; + + /** + * When `app.proxy` is `true`, parse + * the "X-Forwarded-For" ip address list. + * + * For example if the value were "client, proxy1, proxy2" + * you would receive the array `["client", "proxy1", "proxy2"]` + * where "proxy2" is the furthest down-stream. + */ + ips: string[]; + + /** + * Return subdomains as an array. + * + * Subdomains are the dot-separated parts of the host before the main domain + * of the app. By default, the domain of the app is assumed to be the last two + * parts of the host. This can be changed by setting `app.subdomainOffset`. + * + * For example, if the domain is "tobi.ferrets.example.com": + * If `app.subdomainOffset` is not set, this.subdomains is + * `["ferrets", "tobi"]`. + * If `app.subdomainOffset` is 3, this.subdomains is `["tobi"]`. + */ + subdomains: string[]; + + /** + * Check if the given `type(s)` is acceptable, returning + * the best match when true, otherwise `false`, in which + * case you should respond with 406 "Not Acceptable". + * + * The `type` value may be a single mime type string + * such as "application/json", the extension name + * such as "json" or an array `["json", "html", "text/plain"]`. When a list + * or array is given the _best_ match, if any is returned. + * + * Examples: + * + * // Accept: text/html + * this.accepts('html'); + * // => "html" + * + * // Accept: text/*, application/json + * this.accepts('html'); + * // => "html" + * this.accepts('text/html'); + * // => "text/html" + * this.accepts('json', 'text'); + * // => "json" + * this.accepts('application/json'); + * // => "application/json" + * + * // Accept: text/*, application/json + * this.accepts('image/png'); + * this.accepts('png'); + * // => undefined + * + * // Accept: text/*;q=.5, application/json + * this.accepts(['html', 'json']); + * this.accepts('html', 'json'); + * // => "json" + */ + accepts(): string[]; + accepts(...types: string[]): string | false; + accepts(types: string[]): string | false; + + /** + * Return accepted encodings or best fit based on `encodings`. + * + * Given `Accept-Encoding: gzip, deflate` + * an array sorted by quality is returned: + * + * ['gzip', 'deflate'] + */ + acceptsEncodings(): string[]; + acceptsEncodings(...encodings: string[]): string | false; + acceptsEncodings(encodings: string[]): string | false; + + /** + * Return accepted charsets or best fit based on `charsets`. + * + * Given `Accept-Charset: utf-8, iso-8859-1;q=0.2, utf-7;q=0.5` + * an array sorted by quality is returned: + * + * ['utf-8', 'utf-7', 'iso-8859-1'] + */ + acceptsCharsets(): string[]; + acceptsCharsets(...charsets: string[]): string | false; + acceptsCharsets(charsets: string[]): string | false; + + /** + * Return accepted languages or best fit based on `langs`. + * + * Given `Accept-Language: en;q=0.8, es, pt` + * an array sorted by quality is returned: + * + * ['es', 'pt', 'en'] + */ + acceptsLanguages(): string[]; + acceptsLanguages(...langs: string[]): string | false; + acceptsLanguages(langs: string[]): string | false; + + /** + * Check if the incoming request contains the "Content-Type" + * header field, and it contains any of the give mime `type`s. + * If there is no request body, `null` is returned. + * If there is no content type, `false` is returned. + * Otherwise, it returns the first `type` that matches. + * + * Examples: + * + * // With Content-Type: text/html; charset=utf-8 + * this.is('html'); // => 'html' + * this.is('text/html'); // => 'text/html' + * this.is('text/*', 'application/json'); // => 'text/html' + * + * // When Content-Type is application/json + * this.is('json', 'urlencoded'); // => 'json' + * this.is('application/json'); // => 'application/json' + * this.is('html', 'application/*'); // => 'application/json' + * + * this.is('html'); // => false + */ + // is(): string | boolean; + is(...types: string[]): string | false | null; + is(types: string[]): string | false | null; + + /** + * Return request header. If the header is not set, will return an empty + * string. + * + * The `Referrer` header field is special-cased, both `Referrer` and + * `Referer` are interchangeable. + * + * Examples: + * + * this.get('Content-Type'); + * // => "text/plain" + * + * this.get('content-type'); + * // => "text/plain" + * + * this.get('Something'); + * // => '' + */ + get(field: string): string; +} + +declare interface ContextDelegatedResponse { + /** + * Get/Set response status code. + */ + status: number; + + /** + * Get response status message + */ + message: string; + + /** + * Get/Set response body. + */ + body: unknown; + + /** + * Return parsed response Content-Length when present. + * Set Content-Length field to `n`. + */ + length: number; + + /** + * Check if a header has been written to the socket. + */ + headerSent: boolean; + + /** + * Vary on `field`. + */ + vary(field: string): void; + + /** + * Perform a 302 redirect to `url`. + * + * The string "back" is special-cased + * to provide Referrer support, when Referrer + * is not present `alt` or "/" is used. + * + * Examples: + * + * this.redirect('back'); + * this.redirect('back', '/index.html'); + * this.redirect('/login'); + * this.redirect('http://google.com'); + */ + redirect(url: string, alt?: string): void; + + /** + * Set Content-Disposition to "attachment" to signal the client to prompt for download. + * Optionally specify the filename of the download and some options. + */ + attachment(filename?: string, options?: contentDisposition.Options): void; + + /** + * Return the response mime type void of + * parameters such as "charset". + * + * Set Content-Type response header with `type` through `mime.lookup()` + * when it does not contain a charset. + * + * Examples: + * + * this.type = '.html'; + * this.type = 'html'; + * this.type = 'json'; + * this.type = 'application/json'; + * this.type = 'png'; + */ + type: string; + + /** + * Get the Last-Modified date in Date form, if it exists. + * Set the Last-Modified date using a string or a Date. + * + * this.response.lastModified = new Date(); + * this.response.lastModified = '2013-09-13'; + */ + lastModified: Date; + + /** + * Get/Set the ETag of a response. + * This will normalize the quotes if necessary. + * + * this.response.etag = 'md5hashsum'; + * this.response.etag = '"md5hashsum"'; + * this.response.etag = 'W/"123456789"'; + * + * @param {String} etag + * @api public + */ + etag: string; + + /** + * Set header `field` to `val`, or pass + * an object of header fields. + * + * Examples: + * + * this.set('Foo', ['bar', 'baz']); + * this.set('Accept', 'application/json'); + * this.set({ Accept: 'text/plain', 'X-API-Key': 'tobi' }); + */ + set(field: { [key: string]: string | string[] }): void; + set(field: string, val: string | string[]): void; + + /** + * Append additional header `field` with value `val`. + * + * Examples: + * + * ``` + * this.append('Link', ['', '']); + * this.append('Set-Cookie', 'foo=bar; Path=/; HttpOnly'); + * this.append('Warning', '199 Miscellaneous warning'); + * ``` + */ + append(field: string, val: string | string[]): void; + + /** + * Remove header `field`. + */ + remove(field: string): void; + + /** + * Checks if the request is writable. + * Tests for the existence of the socket + * as node sometimes does not set it. + */ + writable: boolean; + + /** + * Flush any set headers, and begin the body + */ + flushHeaders(): void; +} + +declare class Application< + StateT = Application.DefaultState, + ContextT = Application.DefaultContext +> extends EventEmitter { + proxy: boolean; + proxyIpHeader: string; + maxIpsCount: number; + middleware: Application.Middleware[]; + subdomainOffset: number; + env: string; + context: Application.BaseContext & ContextT; + request: Application.BaseRequest; + response: Application.BaseResponse; + silent: boolean; + keys: Keygrip | string[]; + + /** + * + * @param {object} [options] Application options + * @param {string} [options.env='development'] Environment + * @param {string[]} [options.keys] Signed cookie keys + * @param {boolean} [options.proxy] Trust proxy headers + * @param {number} [options.subdomainOffset] Subdomain offset + * @param {string} [options.proxyIpHeader] Proxy IP header, defaults to X-Forwarded-For + * @param {number} [options.maxIpsCount] Max IPs read from proxy IP header, default to 0 (means infinity) + * + */ + constructor(options?: { + env?: string | undefined, + keys?: string[] | undefined, + proxy?: boolean | undefined, + subdomainOffset?: number | undefined, + proxyIpHeader?: string | undefined, + maxIpsCount?: number | undefined + }); + + /** + * Shorthand for: + * + * http.createServer(app.callback()).listen(...) + */ + listen(port?: number, hostname?: string, backlog?: number, listeningListener?: () => void): Server; + listen(port: number, hostname?: string, listeningListener?: () => void): Server; + listen(port: number, backlog?: number, listeningListener?: () => void): Server; + listen(port: number, listeningListener?: () => void): Server; + listen(path: string, backlog?: number, listeningListener?: () => void): Server; + listen(path: string, listeningListener?: () => void): Server; + listen(options: ListenOptions, listeningListener?: () => void): Server; + listen(handle: any, backlog?: number, listeningListener?: () => void): Server; + listen(handle: any, listeningListener?: () => void): Server; + + /** + * Return JSON representation. + * We only bother showing settings. + */ + inspect(): any; + + /** + * Return JSON representation. + * We only bother showing settings. + */ + toJSON(): any; + + /** + * Use the given middleware `fn`. + * + * Old-style middleware will be converted. + */ + use( + middleware: Application.Middleware + ): Application; + + /** + * Return a request handler callback + * for node's native http/http2 server. + */ + callback(): (req: IncomingMessage | Http2ServerRequest, res: ServerResponse | Http2ServerResponse) => void; + + /** + * Initialize a new context. + * + * @api private + */ + createContext( + req: IncomingMessage, + res: ServerResponse, + ): Application.ParameterizedContext; + + /** + * Default error handler. + * + * @api private + */ + onerror(err: Error): void; +} + +declare namespace Application { + type DefaultStateExtends = any; + /** + * This interface can be augmented by users to add types to Koa's default state + */ + interface DefaultState extends DefaultStateExtends {} + + type DefaultContextExtends = {}; + /** + * This interface can be augmented by users to add types to Koa's default context + */ + interface DefaultContext extends DefaultContextExtends { + /** + * Custom properties. + */ + [key: string]: any; + } + + type Middleware = compose.Middleware< + ParameterizedContext + >; + + interface BaseRequest extends ContextDelegatedRequest { + /** + * Get the charset when present or undefined. + */ + charset: string; + + /** + * Return parsed Content-Length when present. + */ + length: number; + + /** + * Return the request mime type void of + * parameters such as "charset". + */ + type: string; + + /** + * Inspect implementation. + */ + inspect(): any; + + /** + * Return JSON representation. + */ + toJSON(): any; + } + + interface BaseResponse extends ContextDelegatedResponse { + /** + * Return the request socket. + * + * @return {Connection} + * @api public + */ + socket: Socket; + + /** + * Return response header. + */ + header: OutgoingHttpHeaders; + + /** + * Return response header, alias as response.header + */ + headers: OutgoingHttpHeaders; + + /** + * Check whether the response is one of the listed types. + * Pretty much the same as `this.request.is()`. + * + * @param {String|Array} types... + * @return {String|false} + * @api public + */ + // is(): string; + is(...types: string[]): string | false | null; + is(types: string[]): string | false | null; + + /** + * Return response header. If the header is not set, will return an empty + * string. + * + * The `Referrer` header field is special-cased, both `Referrer` and + * `Referer` are interchangeable. + * + * Examples: + * + * this.get('Content-Type'); + * // => "text/plain" + * + * this.get('content-type'); + * // => "text/plain" + * + * this.get('Something'); + * // => '' + */ + get(field: string): string; + + /** + * Inspect implementation. + */ + inspect(): any; + + /** + * Return JSON representation. + */ + toJSON(): any; + } + + interface BaseContext extends ContextDelegatedRequest, ContextDelegatedResponse { + /** + * util.inspect() implementation, which + * just returns the JSON output. + */ + inspect(): any; + + /** + * Return JSON representation. + * + * Here we explicitly invoke .toJSON() on each + * object, as iteration will otherwise fail due + * to the getters and cause utilities such as + * clone() to fail. + */ + toJSON(): any; + + /** + * Similar to .throw(), adds assertion. + * + * this.assert(this.user, 401, 'Please login!'); + * + * See: https://github.com/jshttp/http-assert + */ + assert: typeof httpAssert; + + /** + * Throw an error with `msg` and optional `status` + * defaulting to 500. Note that these are user-level + * errors, and the message may be exposed to the client. + * + * this.throw(403) + * this.throw('name required', 400) + * this.throw(400, 'name required') + * this.throw('something exploded') + * this.throw(new Error('invalid'), 400); + * this.throw(400, new Error('invalid')); + * + * See: https://github.com/jshttp/http-errors + */ + throw(message: string, code?: number, properties?: {}): never; + throw(status: number): never; + throw(...properties: Array): never; + + /** + * Default error handling. + */ + onerror(err: Error): void; + } + + interface Request extends BaseRequest { + app: Application; + req: IncomingMessage; + res: ServerResponse; + ctx: Context; + response: Response; + originalUrl: string; + ip: string; + accept: accepts.Accepts; + } + + interface Response extends BaseResponse { + app: Application; + req: IncomingMessage; + res: ServerResponse; + ctx: Context; + request: Request; + } + + interface ExtendableContext extends BaseContext { + app: Application; + request: Request; + response: Response; + req: IncomingMessage; + res: ServerResponse; + originalUrl: string; + cookies: Cookies; + accept: accepts.Accepts; + /** + * To bypass Koa's built-in response handling, you may explicitly set `ctx.respond = false;` + */ + respond?: boolean | undefined; + } + + type ParameterizedContext = ExtendableContext + & { state: StateT; } + & ContextT + & { body: ResponseBodyT; response: { body: ResponseBodyT }; }; + + interface Context extends ParameterizedContext {} + + type Next = () => Promise; + + /** + * A re-export of `HttpError` from the `http-error` package. + * + * This is the error type that is thrown by `ctx.assert()` and `ctx.throw()`. + */ + const HttpError: typeof HttpErrors.HttpError; +} + +export = Application; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..88c5df3609bb6ff29d29206119ac6a9d9dc6cb04 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/koa/package.json" @@ -0,0 +1,69 @@ +{ + "name": "@types/koa", + "version": "2.13.4", + "description": "TypeScript definitions for Koa", + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/koa", + "license": "MIT", + "contributors": [ + { + "name": "DavidCai1993", + "url": "https://github.com/DavidCai1993", + "githubUsername": "DavidCai1993" + }, + { + "name": "jKey Lu", + "url": "https://github.com/jkeylu", + "githubUsername": "jkeylu" + }, + { + "name": "Brice Bernard", + "url": "https://github.com/brikou", + "githubUsername": "brikou" + }, + { + "name": "harryparkdotio", + "url": "https://github.com/harryparkdotio", + "githubUsername": "harryparkdotio" + }, + { + "name": "Wooram Jun", + "url": "https://github.com/chatoo2412", + "githubUsername": "chatoo2412" + }, + { + "name": "Christian Vaagland Tellnes", + "url": "https://github.com/tellnes", + "githubUsername": "tellnes" + }, + { + "name": "Piotr Kuczynski", + "url": "https://github.com/pkuczynski", + "githubUsername": "pkuczynski" + }, + { + "name": "vnoder", + "url": "https://github.com/vnoder", + "githubUsername": "vnoder" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/koa" + }, + "scripts": {}, + "dependencies": { + "@types/accepts": "*", + "@types/content-disposition": "*", + "@types/cookies": "*", + "@types/http-assert": "*", + "@types/http-errors": "*", + "@types/keygrip": "*", + "@types/koa-compose": "*", + "@types/node": "*" + }, + "typesPublisherContentHash": "1bacf51a315ca77670b0db1e3aee560f76efccc3ea88f59dd323f8ccf34b6a33", + "typeScriptVersion": "3.6" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/long/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/long/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..21071075c24599ee98254f702bcfc504cdc275a6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/long/LICENSE" @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/long/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/long/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..df7297cb714de26f72e6ada7a8254b5830b590bc --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/long/README.md" @@ -0,0 +1,16 @@ +# Installation +> `npm install --save @types/long` + +# Summary +This package contains type definitions for long.js (https://github.com/dcodeIO/long.js). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/long. + +### Additional Details + * Last updated: Wed, 22 Jan 2020 19:19:46 GMT + * Dependencies: none + * Global values: `Long` + +# Credits +These definitions were written by Peter Kooijmans (https://github.com/peterkooijmans). diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/long/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/long/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..39f8ab508ee817f974105784dc02db053498457d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/long/index.d.ts" @@ -0,0 +1,389 @@ +// Type definitions for long.js 4.0.0 +// Project: https://github.com/dcodeIO/long.js +// Definitions by: Peter Kooijmans +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// Definitions by: Denis Cappellin + +export = Long; +export as namespace Long; + +declare const Long: Long.LongConstructor; +type Long = Long.Long; +declare namespace Long { + interface LongConstructor { + /** + * Constructs a 64 bit two's-complement integer, given its low and high 32 bit values as signed integers. See the from* functions below for more convenient ways of constructing Longs. + */ + new( low: number, high?: number, unsigned?: boolean ): Long; + prototype: Long; + /** + * Maximum unsigned value. + */ + MAX_UNSIGNED_VALUE: Long; + + /** + * Maximum signed value. + */ + MAX_VALUE: Long; + + /** + * Minimum signed value. + */ + MIN_VALUE: Long; + + /** + * Signed negative one. + */ + NEG_ONE: Long; + + /** + * Signed one. + */ + ONE: Long; + + /** + * Unsigned one. + */ + UONE: Long; + + /** + * Unsigned zero. + */ + UZERO: Long; + + /** + * Signed zero + */ + ZERO: Long; + + /** + * Returns a Long representing the 64 bit integer that comes by concatenating the given low and high bits. Each is assumed to use 32 bits. + */ + fromBits( lowBits:number, highBits:number, unsigned?:boolean ): Long; + + /** + * Returns a Long representing the given 32 bit integer value. + */ + fromInt( value: number, unsigned?: boolean ): Long; + + /** + * Returns a Long representing the given value, provided that it is a finite number. Otherwise, zero is returned. + */ + fromNumber( value: number, unsigned?: boolean ): Long; + + /** + * Returns a Long representation of the given string, written using the specified radix. + */ + fromString( str: string, unsigned?: boolean | number, radix?: number ): Long; + + /** + * Creates a Long from its byte representation. + */ + fromBytes( bytes: number[], unsigned?: boolean, le?: boolean ): Long; + + /** + * Creates a Long from its little endian byte representation. + */ + fromBytesLE( bytes: number[], unsigned?: boolean ): Long; + + /** + * Creates a Long from its little endian byte representation. + */ + fromBytesBE( bytes: number[], unsigned?: boolean ): Long; + + /** + * Tests if the specified object is a Long. + */ + isLong( obj: any ): obj is Long; + + /** + * Converts the specified value to a Long. + */ + fromValue( val: Long | number | string | {low: number, high: number, unsigned: boolean} ): Long; + } + interface Long + { + /** + * The high 32 bits as a signed value. + */ + high: number; + + /** + * The low 32 bits as a signed value. + */ + low: number; + + /** + * Whether unsigned or not. + */ + unsigned: boolean; + + /** + * Returns the sum of this and the specified Long. + */ + add( addend: number | Long | string ): Long; + + /** + * Returns the bitwise AND of this Long and the specified. + */ + and( other: Long | number | string ): Long; + + /** + * Compares this Long's value with the specified's. + */ + compare( other: Long | number | string ): number; + + /** + * Compares this Long's value with the specified's. + */ + comp( other: Long | number | string ): number; + + /** + * Returns this Long divided by the specified. + */ + divide( divisor: Long | number | string ): Long; + + /** + * Returns this Long divided by the specified. + */ + div( divisor: Long | number | string ): Long; + + /** + * Tests if this Long's value equals the specified's. + */ + equals( other: Long | number | string ): boolean; + + /** + * Tests if this Long's value equals the specified's. + */ + eq( other: Long | number | string ): boolean; + + /** + * Gets the high 32 bits as a signed integer. + */ + getHighBits(): number; + + /** + * Gets the high 32 bits as an unsigned integer. + */ + getHighBitsUnsigned(): number; + + /** + * Gets the low 32 bits as a signed integer. + */ + getLowBits(): number; + + /** + * Gets the low 32 bits as an unsigned integer. + */ + getLowBitsUnsigned(): number; + + /** + * Gets the number of bits needed to represent the absolute value of this Long. + */ + getNumBitsAbs(): number; + + /** + * Tests if this Long's value is greater than the specified's. + */ + greaterThan( other: Long | number | string ): boolean; + + /** + * Tests if this Long's value is greater than the specified's. + */ + gt( other: Long | number | string ): boolean; + + /** + * Tests if this Long's value is greater than or equal the specified's. + */ + greaterThanOrEqual( other: Long | number | string ): boolean; + + /** + * Tests if this Long's value is greater than or equal the specified's. + */ + gte( other: Long | number | string ): boolean; + + /** + * Tests if this Long's value is even. + */ + isEven(): boolean; + + /** + * Tests if this Long's value is negative. + */ + isNegative(): boolean; + + /** + * Tests if this Long's value is odd. + */ + isOdd(): boolean; + + /** + * Tests if this Long's value is positive. + */ + isPositive(): boolean; + + /** + * Tests if this Long's value equals zero. + */ + isZero(): boolean; + + /** + * Tests if this Long's value is less than the specified's. + */ + lessThan( other: Long | number | string ): boolean; + + /** + * Tests if this Long's value is less than the specified's. + */ + lt( other: Long | number | string ): boolean; + + /** + * Tests if this Long's value is less than or equal the specified's. + */ + lessThanOrEqual( other: Long | number | string ): boolean; + + /** + * Tests if this Long's value is less than or equal the specified's. + */ + lte( other: Long | number | string ): boolean; + + /** + * Returns this Long modulo the specified. + */ + modulo( other: Long | number | string ): Long; + + /** + * Returns this Long modulo the specified. + */ + mod( other: Long | number | string ): Long; + + /** + * Returns the product of this and the specified Long. + */ + multiply( multiplier: Long | number | string ): Long; + + /** + * Returns the product of this and the specified Long. + */ + mul( multiplier: Long | number | string ): Long; + + /** + * Negates this Long's value. + */ + negate(): Long; + + /** + * Negates this Long's value. + */ + neg(): Long; + + /** + * Returns the bitwise NOT of this Long. + */ + not(): Long; + + /** + * Tests if this Long's value differs from the specified's. + */ + notEquals( other: Long | number | string ): boolean; + + /** + * Tests if this Long's value differs from the specified's. + */ + neq( other: Long | number | string ): boolean; + + /** + * Returns the bitwise OR of this Long and the specified. + */ + or( other: Long | number | string ): Long; + + /** + * Returns this Long with bits shifted to the left by the given amount. + */ + shiftLeft( numBits: number | Long ): Long; + + /** + * Returns this Long with bits shifted to the left by the given amount. + */ + shl( numBits: number | Long ): Long; + + /** + * Returns this Long with bits arithmetically shifted to the right by the given amount. + */ + shiftRight( numBits: number | Long ): Long; + + /** + * Returns this Long with bits arithmetically shifted to the right by the given amount. + */ + shr( numBits: number | Long ): Long; + + /** + * Returns this Long with bits logically shifted to the right by the given amount. + */ + shiftRightUnsigned( numBits: number | Long ): Long; + + /** + * Returns this Long with bits logically shifted to the right by the given amount. + */ + shru( numBits: number | Long ): Long; + + /** + * Returns the difference of this and the specified Long. + */ + subtract( subtrahend: number | Long | string ): Long; + + /** + * Returns the difference of this and the specified Long. + */ + sub( subtrahend: number | Long |string ): Long; + + /** + * Converts the Long to a 32 bit integer, assuming it is a 32 bit integer. + */ + toInt(): number; + + /** + * Converts the Long to a the nearest floating-point representation of this value (double, 53 bit mantissa). + */ + toNumber(): number; + + /** + * Converts this Long to its byte representation. + */ + + toBytes( le?: boolean ): number[]; + + /** + * Converts this Long to its little endian byte representation. + */ + + toBytesLE(): number[]; + + /** + * Converts this Long to its big endian byte representation. + */ + + toBytesBE(): number[]; + + /** + * Converts this Long to signed. + */ + toSigned(): Long; + + /** + * Converts the Long to a string written in the specified radix. + */ + toString( radix?: number ): string; + + /** + * Converts this Long to unsigned. + */ + toUnsigned(): Long; + + /** + * Returns the bitwise XOR of this Long and the given one. + */ + xor( other: Long | number | string ): Long; + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/long/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/long/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..6985d3be58809de0096128f33ccc843257998eda --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/long/package.json" @@ -0,0 +1,24 @@ +{ + "name": "@types/long", + "version": "4.0.1", + "description": "TypeScript definitions for long.js", + "license": "MIT", + "contributors": [ + { + "name": "Peter Kooijmans", + "url": "https://github.com/peterkooijmans", + "githubUsername": "peterkooijmans" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/long" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "5a2ae1424989c49d7303e1f5cc510288bfab1e71e0e2143cdcb9d24ff1c3dc8e", + "typeScriptVersion": "2.8" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/mime/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/mime/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..9e841e7a26e4eb057b24511e7b92d42b257a80e5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/mime/LICENSE" @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/mime/Mime.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/mime/Mime.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..a516bd409c05ed7538bd4ed457b879ee6ae92aff --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/mime/Mime.d.ts" @@ -0,0 +1,10 @@ +import { TypeMap } from "./index"; + +export default class Mime { + constructor(mimes: TypeMap); + + lookup(path: string, fallback?: string): string; + extension(mime: string): string | undefined; + load(filepath: string): void; + define(mimes: TypeMap): void; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/mime/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/mime/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..fd615acb4be93bf5085e144f776e5760f9c40635 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/mime/README.md" @@ -0,0 +1,16 @@ +# Installation +> `npm install --save @types/mime` + +# Summary +This package contains type definitions for mime (https://github.com/broofa/node-mime). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/mime/v1. + +### Additional Details + * Last updated: Mon, 18 Jan 2021 14:32:15 GMT + * Dependencies: none + * Global values: `mime`, `mimelite` + +# Credits +These definitions were written by [Jeff Goddard](https://github.com/jedigo), and [Daniel Hritzkiv](https://github.com/dhritzkiv). diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/mime/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/mime/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..3240e75b4be01de2b88ed31272141d3a24c1982b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/mime/index.d.ts" @@ -0,0 +1,35 @@ +// Type definitions for mime 1.3 +// Project: https://github.com/broofa/node-mime +// Definitions by: Jeff Goddard +// Daniel Hritzkiv +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +// Originally imported from: https://github.com/soywiz/typescript-node-definitions/mime.d.ts + +export as namespace mime; + +export interface TypeMap { [key: string]: string[]; } + +/** + * Look up a mime type based on extension. + * + * If not found, uses the fallback argument if provided, and otherwise + * uses `default_type`. + */ +export function lookup(path: string, fallback?: string): string; +/** + * Return a file extensions associated with a mime type. + */ +export function extension(mime: string): string | undefined; +/** + * Load an Apache2-style ".types" file. + */ +export function load(filepath: string): void; +export function define(mimes: TypeMap): void; + +export interface Charsets { + lookup(mime: string, fallback: string): string; +} + +export const charsets: Charsets; +export const default_type: string; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/mime/lite.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/mime/lite.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..ffebaec5b9b2e95ebceae967ca75df5f8e770498 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/mime/lite.d.ts" @@ -0,0 +1,7 @@ +import { default as Mime } from "./Mime"; + +declare const mimelite: Mime; + +export as namespace mimelite; + +export = mimelite; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/mime/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/mime/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..ad46550f3254d5ba51df92e1be1ac2ad69c93341 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/mime/package.json" @@ -0,0 +1,29 @@ +{ + "name": "@types/mime", + "version": "1.3.2", + "description": "TypeScript definitions for mime", + "license": "MIT", + "contributors": [ + { + "name": "Jeff Goddard", + "url": "https://github.com/jedigo", + "githubUsername": "jedigo" + }, + { + "name": "Daniel Hritzkiv", + "url": "https://github.com/dhritzkiv", + "githubUsername": "dhritzkiv" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/mime" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "529a2ee85950b588c079bd053520c5b3c2bbff1886870bc08188284265324348", + "typeScriptVersion": "3.4" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..9e841e7a26e4eb057b24511e7b92d42b257a80e5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/LICENSE" @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) Microsoft Corporation. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..12450e6f3cbfb4c08730f4a04950526421f46312 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/README.md" @@ -0,0 +1,16 @@ +# Installation +> `npm install --save @types/node` + +# Summary +This package contains type definitions for Node.js (https://nodejs.org/). + +# Details +Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node. + +### Additional Details + * Last updated: Mon, 18 Apr 2022 16:31:18 GMT + * Dependencies: none + * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require` + +# Credits +These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Victor Perin](https://github.com/victorperin), [Yongsheng Zhang](https://github.com/ZYSzys), [NodeJS Contributors](https://github.com/NodeJS), [Linus Unnebäck](https://github.com/LinusU), and [wafuwafu13](https://github.com/wafuwafu13). diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/assert.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/assert.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..fb7158670c19b0c4b9cc82db6dc3ad5acdc7deaa --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/assert.d.ts" @@ -0,0 +1,912 @@ +/** + * The `assert` module provides a set of assertion functions for verifying + * invariants. + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/assert.js) + */ +declare module 'assert' { + /** + * An alias of {@link ok}. + * @since v0.5.9 + * @param value The input that is checked for being truthy. + */ + function assert(value: unknown, message?: string | Error): asserts value; + namespace assert { + /** + * Indicates the failure of an assertion. All errors thrown by the `assert` module + * will be instances of the `AssertionError` class. + */ + class AssertionError extends Error { + actual: unknown; + expected: unknown; + operator: string; + generatedMessage: boolean; + code: 'ERR_ASSERTION'; + constructor(options?: { + /** If provided, the error message is set to this value. */ + message?: string | undefined; + /** The `actual` property on the error instance. */ + actual?: unknown | undefined; + /** The `expected` property on the error instance. */ + expected?: unknown | undefined; + /** The `operator` property on the error instance. */ + operator?: string | undefined; + /** If provided, the generated stack trace omits frames before this function. */ + // tslint:disable-next-line:ban-types + stackStartFn?: Function | undefined; + }); + } + /** + * This feature is currently experimental and behavior might still change. + * @since v14.2.0, v12.19.0 + * @experimental + */ + class CallTracker { + /** + * The wrapper function is expected to be called exactly `exact` times. If the + * function has not been called exactly `exact` times when `tracker.verify()` is called, then `tracker.verify()` will throw an + * error. + * + * ```js + * import assert from 'assert'; + * + * // Creates call tracker. + * const tracker = new assert.CallTracker(); + * + * function func() {} + * + * // Returns a function that wraps func() that must be called exact times + * // before tracker.verify(). + * const callsfunc = tracker.calls(func); + * ``` + * @since v14.2.0, v12.19.0 + * @param [fn='A no-op function'] + * @param [exact=1] + * @return that wraps `fn`. + */ + calls(exact?: number): () => void; + calls any>(fn?: Func, exact?: number): Func; + /** + * The arrays contains information about the expected and actual number of calls of + * the functions that have not been called the expected number of times. + * + * ```js + * import assert from 'assert'; + * + * // Creates call tracker. + * const tracker = new assert.CallTracker(); + * + * function func() {} + * + * function foo() {} + * + * // Returns a function that wraps func() that must be called exact times + * // before tracker.verify(). + * const callsfunc = tracker.calls(func, 2); + * + * // Returns an array containing information on callsfunc() + * tracker.report(); + * // [ + * // { + * // message: 'Expected the func function to be executed 2 time(s) but was + * // executed 0 time(s).', + * // actual: 0, + * // expected: 2, + * // operator: 'func', + * // stack: stack trace + * // } + * // ] + * ``` + * @since v14.2.0, v12.19.0 + * @return of objects containing information about the wrapper functions returned by `calls`. + */ + report(): CallTrackerReportInformation[]; + /** + * Iterates through the list of functions passed to `tracker.calls()` and will throw an error for functions that + * have not been called the expected number of times. + * + * ```js + * import assert from 'assert'; + * + * // Creates call tracker. + * const tracker = new assert.CallTracker(); + * + * function func() {} + * + * // Returns a function that wraps func() that must be called exact times + * // before tracker.verify(). + * const callsfunc = tracker.calls(func, 2); + * + * callsfunc(); + * + * // Will throw an error since callsfunc() was only called once. + * tracker.verify(); + * ``` + * @since v14.2.0, v12.19.0 + */ + verify(): void; + } + interface CallTrackerReportInformation { + message: string; + /** The actual number of times the function was called. */ + actual: number; + /** The number of times the function was expected to be called. */ + expected: number; + /** The name of the function that is wrapped. */ + operator: string; + /** A stack trace of the function. */ + stack: object; + } + type AssertPredicate = RegExp | (new () => object) | ((thrown: unknown) => boolean) | object | Error; + /** + * Throws an `AssertionError` with the provided error message or a default + * error message. If the `message` parameter is an instance of an `Error` then + * it will be thrown instead of the `AssertionError`. + * + * ```js + * import assert from 'assert/strict'; + * + * assert.fail(); + * // AssertionError [ERR_ASSERTION]: Failed + * + * assert.fail('boom'); + * // AssertionError [ERR_ASSERTION]: boom + * + * assert.fail(new TypeError('need array')); + * // TypeError: need array + * ``` + * + * Using `assert.fail()` with more than two arguments is possible but deprecated. + * See below for further details. + * @since v0.1.21 + * @param [message='Failed'] + */ + function fail(message?: string | Error): never; + /** @deprecated since v10.0.0 - use fail([message]) or other assert functions instead. */ + function fail( + actual: unknown, + expected: unknown, + message?: string | Error, + operator?: string, + // tslint:disable-next-line:ban-types + stackStartFn?: Function + ): never; + /** + * Tests if `value` is truthy. It is equivalent to`assert.equal(!!value, true, message)`. + * + * If `value` is not truthy, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is `undefined`, a default + * error message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`. + * If no arguments are passed in at all `message` will be set to the string:`` 'No value argument passed to `assert.ok()`' ``. + * + * Be aware that in the `repl` the error message will be different to the one + * thrown in a file! See below for further details. + * + * ```js + * import assert from 'assert/strict'; + * + * assert.ok(true); + * // OK + * assert.ok(1); + * // OK + * + * assert.ok(); + * // AssertionError: No value argument passed to `assert.ok()` + * + * assert.ok(false, 'it\'s false'); + * // AssertionError: it's false + * + * // In the repl: + * assert.ok(typeof 123 === 'string'); + * // AssertionError: false == true + * + * // In a file (e.g. test.js): + * assert.ok(typeof 123 === 'string'); + * // AssertionError: The expression evaluated to a falsy value: + * // + * // assert.ok(typeof 123 === 'string') + * + * assert.ok(false); + * // AssertionError: The expression evaluated to a falsy value: + * // + * // assert.ok(false) + * + * assert.ok(0); + * // AssertionError: The expression evaluated to a falsy value: + * // + * // assert.ok(0) + * ``` + * + * ```js + * import assert from 'assert/strict'; + * + * // Using `assert()` works the same: + * assert(0); + * // AssertionError: The expression evaluated to a falsy value: + * // + * // assert(0) + * ``` + * @since v0.1.21 + */ + function ok(value: unknown, message?: string | Error): asserts value; + /** + * **Strict assertion mode** + * + * An alias of {@link strictEqual}. + * + * **Legacy assertion mode** + * + * > Stability: 3 - Legacy: Use {@link strictEqual} instead. + * + * Tests shallow, coercive equality between the `actual` and `expected` parameters + * using the [Abstract Equality Comparison](https://tc39.github.io/ecma262/#sec-abstract-equality-comparison) ( `==` ). `NaN` is special handled + * and treated as being identical in case both sides are `NaN`. + * + * ```js + * import assert from 'assert'; + * + * assert.equal(1, 1); + * // OK, 1 == 1 + * assert.equal(1, '1'); + * // OK, 1 == '1' + * assert.equal(NaN, NaN); + * // OK + * + * assert.equal(1, 2); + * // AssertionError: 1 == 2 + * assert.equal({ a: { b: 1 } }, { a: { b: 1 } }); + * // AssertionError: { a: { b: 1 } } == { a: { b: 1 } } + * ``` + * + * If the values are not equal, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is undefined, a default + * error message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`. + * @since v0.1.21 + */ + function equal(actual: unknown, expected: unknown, message?: string | Error): void; + /** + * **Strict assertion mode** + * + * An alias of {@link notStrictEqual}. + * + * **Legacy assertion mode** + * + * > Stability: 3 - Legacy: Use {@link notStrictEqual} instead. + * + * Tests shallow, coercive inequality with the [Abstract Equality Comparison](https://tc39.github.io/ecma262/#sec-abstract-equality-comparison)(`!=` ). `NaN` is special handled and treated as + * being identical in case both + * sides are `NaN`. + * + * ```js + * import assert from 'assert'; + * + * assert.notEqual(1, 2); + * // OK + * + * assert.notEqual(1, 1); + * // AssertionError: 1 != 1 + * + * assert.notEqual(1, '1'); + * // AssertionError: 1 != '1' + * ``` + * + * If the values are equal, an `AssertionError` is thrown with a `message`property set equal to the value of the `message` parameter. If the `message`parameter is undefined, a default error + * message is assigned. If the `message`parameter is an instance of an `Error` then it will be thrown instead of the`AssertionError`. + * @since v0.1.21 + */ + function notEqual(actual: unknown, expected: unknown, message?: string | Error): void; + /** + * **Strict assertion mode** + * + * An alias of {@link deepStrictEqual}. + * + * **Legacy assertion mode** + * + * > Stability: 3 - Legacy: Use {@link deepStrictEqual} instead. + * + * Tests for deep equality between the `actual` and `expected` parameters. Consider + * using {@link deepStrictEqual} instead. {@link deepEqual} can have + * surprising results. + * + * _Deep equality_ means that the enumerable "own" properties of child objects + * are also recursively evaluated by the following rules. + * @since v0.1.21 + */ + function deepEqual(actual: unknown, expected: unknown, message?: string | Error): void; + /** + * **Strict assertion mode** + * + * An alias of {@link notDeepStrictEqual}. + * + * **Legacy assertion mode** + * + * > Stability: 3 - Legacy: Use {@link notDeepStrictEqual} instead. + * + * Tests for any deep inequality. Opposite of {@link deepEqual}. + * + * ```js + * import assert from 'assert'; + * + * const obj1 = { + * a: { + * b: 1 + * } + * }; + * const obj2 = { + * a: { + * b: 2 + * } + * }; + * const obj3 = { + * a: { + * b: 1 + * } + * }; + * const obj4 = Object.create(obj1); + * + * assert.notDeepEqual(obj1, obj1); + * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } } + * + * assert.notDeepEqual(obj1, obj2); + * // OK + * + * assert.notDeepEqual(obj1, obj3); + * // AssertionError: { a: { b: 1 } } notDeepEqual { a: { b: 1 } } + * + * assert.notDeepEqual(obj1, obj4); + * // OK + * ``` + * + * If the values are deeply equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a default + * error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown + * instead of the `AssertionError`. + * @since v0.1.21 + */ + function notDeepEqual(actual: unknown, expected: unknown, message?: string | Error): void; + /** + * Tests strict equality between the `actual` and `expected` parameters as + * determined by the [SameValue Comparison](https://tc39.github.io/ecma262/#sec-samevalue). + * + * ```js + * import assert from 'assert/strict'; + * + * assert.strictEqual(1, 2); + * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal: + * // + * // 1 !== 2 + * + * assert.strictEqual(1, 1); + * // OK + * + * assert.strictEqual('Hello foobar', 'Hello World!'); + * // AssertionError [ERR_ASSERTION]: Expected inputs to be strictly equal: + * // + actual - expected + * // + * // + 'Hello foobar' + * // - 'Hello World!' + * // ^ + * + * const apples = 1; + * const oranges = 2; + * assert.strictEqual(apples, oranges, `apples ${apples} !== oranges ${oranges}`); + * // AssertionError [ERR_ASSERTION]: apples 1 !== oranges 2 + * + * assert.strictEqual(1, '1', new TypeError('Inputs are not identical')); + * // TypeError: Inputs are not identical + * ``` + * + * If the values are not strictly equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a + * default error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown + * instead of the `AssertionError`. + * @since v0.1.21 + */ + function strictEqual(actual: unknown, expected: T, message?: string | Error): asserts actual is T; + /** + * Tests strict inequality between the `actual` and `expected` parameters as + * determined by the [SameValue Comparison](https://tc39.github.io/ecma262/#sec-samevalue). + * + * ```js + * import assert from 'assert/strict'; + * + * assert.notStrictEqual(1, 2); + * // OK + * + * assert.notStrictEqual(1, 1); + * // AssertionError [ERR_ASSERTION]: Expected "actual" to be strictly unequal to: + * // + * // 1 + * + * assert.notStrictEqual(1, '1'); + * // OK + * ``` + * + * If the values are strictly equal, an `AssertionError` is thrown with a`message` property set equal to the value of the `message` parameter. If the`message` parameter is undefined, a + * default error message is assigned. If the`message` parameter is an instance of an `Error` then it will be thrown + * instead of the `AssertionError`. + * @since v0.1.21 + */ + function notStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void; + /** + * Tests for deep equality between the `actual` and `expected` parameters. + * "Deep" equality means that the enumerable "own" properties of child objects + * are recursively evaluated also by the following rules. + * @since v1.2.0 + */ + function deepStrictEqual(actual: unknown, expected: T, message?: string | Error): asserts actual is T; + /** + * Tests for deep strict inequality. Opposite of {@link deepStrictEqual}. + * + * ```js + * import assert from 'assert/strict'; + * + * assert.notDeepStrictEqual({ a: 1 }, { a: '1' }); + * // OK + * ``` + * + * If the values are deeply and strictly equal, an `AssertionError` is thrown + * with a `message` property set equal to the value of the `message` parameter. If + * the `message` parameter is undefined, a default error message is assigned. If + * the `message` parameter is an instance of an `Error` then it will be thrown + * instead of the `AssertionError`. + * @since v1.2.0 + */ + function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void; + /** + * Expects the function `fn` to throw an error. + * + * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), + * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function, + * a validation object where each property will be tested for strict deep equality, + * or an instance of error where each property will be tested for strict deep + * equality including the non-enumerable `message` and `name` properties. When + * using an object, it is also possible to use a regular expression, when + * validating against a string property. See below for examples. + * + * If specified, `message` will be appended to the message provided by the`AssertionError` if the `fn` call fails to throw or in case the error validation + * fails. + * + * Custom validation object/error instance: + * + * ```js + * import assert from 'assert/strict'; + * + * const err = new TypeError('Wrong value'); + * err.code = 404; + * err.foo = 'bar'; + * err.info = { + * nested: true, + * baz: 'text' + * }; + * err.reg = /abc/i; + * + * assert.throws( + * () => { + * throw err; + * }, + * { + * name: 'TypeError', + * message: 'Wrong value', + * info: { + * nested: true, + * baz: 'text' + * } + * // Only properties on the validation object will be tested for. + * // Using nested objects requires all properties to be present. Otherwise + * // the validation is going to fail. + * } + * ); + * + * // Using regular expressions to validate error properties: + * throws( + * () => { + * throw err; + * }, + * { + * // The `name` and `message` properties are strings and using regular + * // expressions on those will match against the string. If they fail, an + * // error is thrown. + * name: /^TypeError$/, + * message: /Wrong/, + * foo: 'bar', + * info: { + * nested: true, + * // It is not possible to use regular expressions for nested properties! + * baz: 'text' + * }, + * // The `reg` property contains a regular expression and only if the + * // validation object contains an identical regular expression, it is going + * // to pass. + * reg: /abc/i + * } + * ); + * + * // Fails due to the different `message` and `name` properties: + * throws( + * () => { + * const otherErr = new Error('Not found'); + * // Copy all enumerable properties from `err` to `otherErr`. + * for (const [key, value] of Object.entries(err)) { + * otherErr[key] = value; + * } + * throw otherErr; + * }, + * // The error's `message` and `name` properties will also be checked when using + * // an error as validation object. + * err + * ); + * ``` + * + * Validate instanceof using constructor: + * + * ```js + * import assert from 'assert/strict'; + * + * assert.throws( + * () => { + * throw new Error('Wrong value'); + * }, + * Error + * ); + * ``` + * + * Validate error message using [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions): + * + * Using a regular expression runs `.toString` on the error object, and will + * therefore also include the error name. + * + * ```js + * import assert from 'assert/strict'; + * + * assert.throws( + * () => { + * throw new Error('Wrong value'); + * }, + * /^Error: Wrong value$/ + * ); + * ``` + * + * Custom error validation: + * + * The function must return `true` to indicate all internal validations passed. + * It will otherwise fail with an `AssertionError`. + * + * ```js + * import assert from 'assert/strict'; + * + * assert.throws( + * () => { + * throw new Error('Wrong value'); + * }, + * (err) => { + * assert(err instanceof Error); + * assert(/value/.test(err)); + * // Avoid returning anything from validation functions besides `true`. + * // Otherwise, it's not clear what part of the validation failed. Instead, + * // throw an error about the specific validation that failed (as done in this + * // example) and add as much helpful debugging information to that error as + * // possible. + * return true; + * }, + * 'unexpected error' + * ); + * ``` + * + * `error` cannot be a string. If a string is provided as the second + * argument, then `error` is assumed to be omitted and the string will be used for`message` instead. This can lead to easy-to-miss mistakes. Using the same + * message as the thrown error message is going to result in an`ERR_AMBIGUOUS_ARGUMENT` error. Please read the example below carefully if using + * a string as the second argument gets considered: + * + * ```js + * import assert from 'assert/strict'; + * + * function throwingFirst() { + * throw new Error('First'); + * } + * + * function throwingSecond() { + * throw new Error('Second'); + * } + * + * function notThrowing() {} + * + * // The second argument is a string and the input function threw an Error. + * // The first case will not throw as it does not match for the error message + * // thrown by the input function! + * assert.throws(throwingFirst, 'Second'); + * // In the next example the message has no benefit over the message from the + * // error and since it is not clear if the user intended to actually match + * // against the error message, Node.js throws an `ERR_AMBIGUOUS_ARGUMENT` error. + * assert.throws(throwingSecond, 'Second'); + * // TypeError [ERR_AMBIGUOUS_ARGUMENT] + * + * // The string is only used (as message) in case the function does not throw: + * assert.throws(notThrowing, 'Second'); + * // AssertionError [ERR_ASSERTION]: Missing expected exception: Second + * + * // If it was intended to match for the error message do this instead: + * // It does not throw because the error messages match. + * assert.throws(throwingSecond, /Second$/); + * + * // If the error message does not match, an AssertionError is thrown. + * assert.throws(throwingFirst, /Second$/); + * // AssertionError [ERR_ASSERTION] + * ``` + * + * Due to the confusing error-prone notation, avoid a string as the second + * argument. + * @since v0.1.21 + */ + function throws(block: () => unknown, message?: string | Error): void; + function throws(block: () => unknown, error: AssertPredicate, message?: string | Error): void; + /** + * Asserts that the function `fn` does not throw an error. + * + * Using `assert.doesNotThrow()` is actually not useful because there + * is no benefit in catching an error and then rethrowing it. Instead, consider + * adding a comment next to the specific code path that should not throw and keep + * error messages as expressive as possible. + * + * When `assert.doesNotThrow()` is called, it will immediately call the `fn`function. + * + * If an error is thrown and it is the same type as that specified by the `error`parameter, then an `AssertionError` is thrown. If the error is of a + * different type, or if the `error` parameter is undefined, the error is + * propagated back to the caller. + * + * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), + * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) or a validation + * function. See {@link throws} for more details. + * + * The following, for instance, will throw the `TypeError` because there is no + * matching error type in the assertion: + * + * ```js + * import assert from 'assert/strict'; + * + * assert.doesNotThrow( + * () => { + * throw new TypeError('Wrong value'); + * }, + * SyntaxError + * ); + * ``` + * + * However, the following will result in an `AssertionError` with the message + * 'Got unwanted exception...': + * + * ```js + * import assert from 'assert/strict'; + * + * assert.doesNotThrow( + * () => { + * throw new TypeError('Wrong value'); + * }, + * TypeError + * ); + * ``` + * + * If an `AssertionError` is thrown and a value is provided for the `message`parameter, the value of `message` will be appended to the `AssertionError` message: + * + * ```js + * import assert from 'assert/strict'; + * + * assert.doesNotThrow( + * () => { + * throw new TypeError('Wrong value'); + * }, + * /Wrong value/, + * 'Whoops' + * ); + * // Throws: AssertionError: Got unwanted exception: Whoops + * ``` + * @since v0.1.21 + */ + function doesNotThrow(block: () => unknown, message?: string | Error): void; + function doesNotThrow(block: () => unknown, error: AssertPredicate, message?: string | Error): void; + /** + * Throws `value` if `value` is not `undefined` or `null`. This is useful when + * testing the `error` argument in callbacks. The stack trace contains all frames + * from the error passed to `ifError()` including the potential new frames for`ifError()` itself. + * + * ```js + * import assert from 'assert/strict'; + * + * assert.ifError(null); + * // OK + * assert.ifError(0); + * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 0 + * assert.ifError('error'); + * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: 'error' + * assert.ifError(new Error()); + * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: Error + * + * // Create some random error frames. + * let err; + * (function errorFrame() { + * err = new Error('test error'); + * })(); + * + * (function ifErrorFrame() { + * assert.ifError(err); + * })(); + * // AssertionError [ERR_ASSERTION]: ifError got unwanted exception: test error + * // at ifErrorFrame + * // at errorFrame + * ``` + * @since v0.1.97 + */ + function ifError(value: unknown): asserts value is null | undefined; + /** + * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately + * calls the function and awaits the returned promise to complete. It will then + * check that the promise is rejected. + * + * If `asyncFn` is a function and it throws an error synchronously,`assert.rejects()` will return a rejected `Promise` with that error. If the + * function does not return a promise, `assert.rejects()` will return a rejected`Promise` with an `ERR_INVALID_RETURN_VALUE` error. In both cases the error + * handler is skipped. + * + * Besides the async nature to await the completion behaves identically to {@link throws}. + * + * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), + * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions), a validation function, + * an object where each property will be tested for, or an instance of error where + * each property will be tested for including the non-enumerable `message` and`name` properties. + * + * If specified, `message` will be the message provided by the `AssertionError` if the `asyncFn` fails to reject. + * + * ```js + * import assert from 'assert/strict'; + * + * await assert.rejects( + * async () => { + * throw new TypeError('Wrong value'); + * }, + * { + * name: 'TypeError', + * message: 'Wrong value' + * } + * ); + * ``` + * + * ```js + * import assert from 'assert/strict'; + * + * await assert.rejects( + * async () => { + * throw new TypeError('Wrong value'); + * }, + * (err) => { + * assert.strictEqual(err.name, 'TypeError'); + * assert.strictEqual(err.message, 'Wrong value'); + * return true; + * } + * ); + * ``` + * + * ```js + * import assert from 'assert/strict'; + * + * assert.rejects( + * Promise.reject(new Error('Wrong value')), + * Error + * ).then(() => { + * // ... + * }); + * ``` + * + * `error` cannot be a string. If a string is provided as the second + * argument, then `error` is assumed to be omitted and the string will be used for`message` instead. This can lead to easy-to-miss mistakes. Please read the + * example in {@link throws} carefully if using a string as the second + * argument gets considered. + * @since v10.0.0 + */ + function rejects(block: (() => Promise) | Promise, message?: string | Error): Promise; + function rejects(block: (() => Promise) | Promise, error: AssertPredicate, message?: string | Error): Promise; + /** + * Awaits the `asyncFn` promise or, if `asyncFn` is a function, immediately + * calls the function and awaits the returned promise to complete. It will then + * check that the promise is not rejected. + * + * If `asyncFn` is a function and it throws an error synchronously,`assert.doesNotReject()` will return a rejected `Promise` with that error. If + * the function does not return a promise, `assert.doesNotReject()` will return a + * rejected `Promise` with an `ERR_INVALID_RETURN_VALUE` error. In both cases + * the error handler is skipped. + * + * Using `assert.doesNotReject()` is actually not useful because there is little + * benefit in catching a rejection and then rejecting it again. Instead, consider + * adding a comment next to the specific code path that should not reject and keep + * error messages as expressive as possible. + * + * If specified, `error` can be a [`Class`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes), + * [`RegExp`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions) or a validation + * function. See {@link throws} for more details. + * + * Besides the async nature to await the completion behaves identically to {@link doesNotThrow}. + * + * ```js + * import assert from 'assert/strict'; + * + * await assert.doesNotReject( + * async () => { + * throw new TypeError('Wrong value'); + * }, + * SyntaxError + * ); + * ``` + * + * ```js + * import assert from 'assert/strict'; + * + * assert.doesNotReject(Promise.reject(new TypeError('Wrong value'))) + * .then(() => { + * // ... + * }); + * ``` + * @since v10.0.0 + */ + function doesNotReject(block: (() => Promise) | Promise, message?: string | Error): Promise; + function doesNotReject(block: (() => Promise) | Promise, error: AssertPredicate, message?: string | Error): Promise; + /** + * Expects the `string` input to match the regular expression. + * + * ```js + * import assert from 'assert/strict'; + * + * assert.match('I will fail', /pass/); + * // AssertionError [ERR_ASSERTION]: The input did not match the regular ... + * + * assert.match(123, /pass/); + * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string. + * + * assert.match('I will pass', /pass/); + * // OK + * ``` + * + * If the values do not match, or if the `string` argument is of another type than`string`, an `AssertionError` is thrown with a `message` property set equal + * to the value of the `message` parameter. If the `message` parameter is + * undefined, a default error message is assigned. If the `message` parameter is an + * instance of an `Error` then it will be thrown instead of the `AssertionError`. + * @since v13.6.0, v12.16.0 + */ + function match(value: string, regExp: RegExp, message?: string | Error): void; + /** + * Expects the `string` input not to match the regular expression. + * + * ```js + * import assert from 'assert/strict'; + * + * assert.doesNotMatch('I will fail', /fail/); + * // AssertionError [ERR_ASSERTION]: The input was expected to not match the ... + * + * assert.doesNotMatch(123, /pass/); + * // AssertionError [ERR_ASSERTION]: The "string" argument must be of type string. + * + * assert.doesNotMatch('I will pass', /different/); + * // OK + * ``` + * + * If the values do match, or if the `string` argument is of another type than`string`, an `AssertionError` is thrown with a `message` property set equal + * to the value of the `message` parameter. If the `message` parameter is + * undefined, a default error message is assigned. If the `message` parameter is an + * instance of an `Error` then it will be thrown instead of the `AssertionError`. + * @since v13.6.0, v12.16.0 + */ + function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void; + const strict: Omit & { + (value: unknown, message?: string | Error): asserts value; + equal: typeof strictEqual; + notEqual: typeof notStrictEqual; + deepEqual: typeof deepStrictEqual; + notDeepEqual: typeof notDeepStrictEqual; + // Mapped types and assertion functions are incompatible? + // TS2775: Assertions require every name in the call target + // to be declared with an explicit type annotation. + ok: typeof ok; + strictEqual: typeof strictEqual; + deepStrictEqual: typeof deepStrictEqual; + ifError: typeof ifError; + strict: typeof strict; + }; + } + export = assert; +} +declare module 'node:assert' { + import assert = require('assert'); + export = assert; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/assert/strict.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/assert/strict.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..b4319b974861f6cad84b745485af55264b13c3d8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/assert/strict.d.ts" @@ -0,0 +1,8 @@ +declare module 'assert/strict' { + import { strict } from 'node:assert'; + export = strict; +} +declare module 'node:assert/strict' { + import { strict } from 'node:assert'; + export = strict; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/async_hooks.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/async_hooks.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..f53198e83b274a62ed285030ae4e5bb66760bf4b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/async_hooks.d.ts" @@ -0,0 +1,501 @@ +/** + * The `async_hooks` module provides an API to track asynchronous resources. It + * can be accessed using: + * + * ```js + * import async_hooks from 'async_hooks'; + * ``` + * @experimental + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/async_hooks.js) + */ +declare module 'async_hooks' { + /** + * ```js + * import { executionAsyncId } from 'async_hooks'; + * + * console.log(executionAsyncId()); // 1 - bootstrap + * fs.open(path, 'r', (err, fd) => { + * console.log(executionAsyncId()); // 6 - open() + * }); + * ``` + * + * The ID returned from `executionAsyncId()` is related to execution timing, not + * causality (which is covered by `triggerAsyncId()`): + * + * ```js + * const server = net.createServer((conn) => { + * // Returns the ID of the server, not of the new connection, because the + * // callback runs in the execution scope of the server's MakeCallback(). + * async_hooks.executionAsyncId(); + * + * }).listen(port, () => { + * // Returns the ID of a TickObject (process.nextTick()) because all + * // callbacks passed to .listen() are wrapped in a nextTick(). + * async_hooks.executionAsyncId(); + * }); + * ``` + * + * Promise contexts may not get precise `executionAsyncIds` by default. + * See the section on `promise execution tracking`. + * @since v8.1.0 + * @return The `asyncId` of the current execution context. Useful to track when something calls. + */ + function executionAsyncId(): number; + /** + * Resource objects returned by `executionAsyncResource()` are most often internal + * Node.js handle objects with undocumented APIs. Using any functions or properties + * on the object is likely to crash your application and should be avoided. + * + * Using `executionAsyncResource()` in the top-level execution context will + * return an empty object as there is no handle or request object to use, + * but having an object representing the top-level can be helpful. + * + * ```js + * import { open } from 'fs'; + * import { executionAsyncId, executionAsyncResource } from 'async_hooks'; + * + * console.log(executionAsyncId(), executionAsyncResource()); // 1 {} + * open(new URL(import.meta.url), 'r', (err, fd) => { + * console.log(executionAsyncId(), executionAsyncResource()); // 7 FSReqWrap + * }); + * ``` + * + * This can be used to implement continuation local storage without the + * use of a tracking `Map` to store the metadata: + * + * ```js + * import { createServer } from 'http'; + * import { + * executionAsyncId, + * executionAsyncResource, + * createHook + * } from 'async_hooks'; + * const sym = Symbol('state'); // Private symbol to avoid pollution + * + * createHook({ + * init(asyncId, type, triggerAsyncId, resource) { + * const cr = executionAsyncResource(); + * if (cr) { + * resource[sym] = cr[sym]; + * } + * } + * }).enable(); + * + * const server = createServer((req, res) => { + * executionAsyncResource()[sym] = { state: req.url }; + * setTimeout(function() { + * res.end(JSON.stringify(executionAsyncResource()[sym])); + * }, 100); + * }).listen(3000); + * ``` + * @since v13.9.0, v12.17.0 + * @return The resource representing the current execution. Useful to store data within the resource. + */ + function executionAsyncResource(): object; + /** + * ```js + * const server = net.createServer((conn) => { + * // The resource that caused (or triggered) this callback to be called + * // was that of the new connection. Thus the return value of triggerAsyncId() + * // is the asyncId of "conn". + * async_hooks.triggerAsyncId(); + * + * }).listen(port, () => { + * // Even though all callbacks passed to .listen() are wrapped in a nextTick() + * // the callback itself exists because the call to the server's .listen() + * // was made. So the return value would be the ID of the server. + * async_hooks.triggerAsyncId(); + * }); + * ``` + * + * Promise contexts may not get valid `triggerAsyncId`s by default. See + * the section on `promise execution tracking`. + * @return The ID of the resource responsible for calling the callback that is currently being executed. + */ + function triggerAsyncId(): number; + interface HookCallbacks { + /** + * Called when a class is constructed that has the possibility to emit an asynchronous event. + * @param asyncId a unique ID for the async resource + * @param type the type of the async resource + * @param triggerAsyncId the unique ID of the async resource in whose execution context this async resource was created + * @param resource reference to the resource representing the async operation, needs to be released during destroy + */ + init?(asyncId: number, type: string, triggerAsyncId: number, resource: object): void; + /** + * When an asynchronous operation is initiated or completes a callback is called to notify the user. + * The before callback is called just before said callback is executed. + * @param asyncId the unique identifier assigned to the resource about to execute the callback. + */ + before?(asyncId: number): void; + /** + * Called immediately after the callback specified in before is completed. + * @param asyncId the unique identifier assigned to the resource which has executed the callback. + */ + after?(asyncId: number): void; + /** + * Called when a promise has resolve() called. This may not be in the same execution id + * as the promise itself. + * @param asyncId the unique id for the promise that was resolve()d. + */ + promiseResolve?(asyncId: number): void; + /** + * Called after the resource corresponding to asyncId is destroyed + * @param asyncId a unique ID for the async resource + */ + destroy?(asyncId: number): void; + } + interface AsyncHook { + /** + * Enable the callbacks for a given AsyncHook instance. If no callbacks are provided enabling is a noop. + */ + enable(): this; + /** + * Disable the callbacks for a given AsyncHook instance from the global pool of AsyncHook callbacks to be executed. Once a hook has been disabled it will not be called again until enabled. + */ + disable(): this; + } + /** + * Registers functions to be called for different lifetime events of each async + * operation. + * + * The callbacks `init()`/`before()`/`after()`/`destroy()` are called for the + * respective asynchronous event during a resource's lifetime. + * + * All callbacks are optional. For example, if only resource cleanup needs to + * be tracked, then only the `destroy` callback needs to be passed. The + * specifics of all functions that can be passed to `callbacks` is in the `Hook Callbacks` section. + * + * ```js + * import { createHook } from 'async_hooks'; + * + * const asyncHook = createHook({ + * init(asyncId, type, triggerAsyncId, resource) { }, + * destroy(asyncId) { } + * }); + * ``` + * + * The callbacks will be inherited via the prototype chain: + * + * ```js + * class MyAsyncCallbacks { + * init(asyncId, type, triggerAsyncId, resource) { } + * destroy(asyncId) {} + * } + * + * class MyAddedCallbacks extends MyAsyncCallbacks { + * before(asyncId) { } + * after(asyncId) { } + * } + * + * const asyncHook = async_hooks.createHook(new MyAddedCallbacks()); + * ``` + * + * Because promises are asynchronous resources whose lifecycle is tracked + * via the async hooks mechanism, the `init()`, `before()`, `after()`, and`destroy()` callbacks _must not_ be async functions that return promises. + * @since v8.1.0 + * @param callbacks The `Hook Callbacks` to register + * @return Instance used for disabling and enabling hooks + */ + function createHook(callbacks: HookCallbacks): AsyncHook; + interface AsyncResourceOptions { + /** + * The ID of the execution context that created this async event. + * @default executionAsyncId() + */ + triggerAsyncId?: number | undefined; + /** + * Disables automatic `emitDestroy` when the object is garbage collected. + * This usually does not need to be set (even if `emitDestroy` is called + * manually), unless the resource's `asyncId` is retrieved and the + * sensitive API's `emitDestroy` is called with it. + * @default false + */ + requireManualDestroy?: boolean | undefined; + } + /** + * The class `AsyncResource` is designed to be extended by the embedder's async + * resources. Using this, users can easily trigger the lifetime events of their + * own resources. + * + * The `init` hook will trigger when an `AsyncResource` is instantiated. + * + * The following is an overview of the `AsyncResource` API. + * + * ```js + * import { AsyncResource, executionAsyncId } from 'async_hooks'; + * + * // AsyncResource() is meant to be extended. Instantiating a + * // new AsyncResource() also triggers init. If triggerAsyncId is omitted then + * // async_hook.executionAsyncId() is used. + * const asyncResource = new AsyncResource( + * type, { triggerAsyncId: executionAsyncId(), requireManualDestroy: false } + * ); + * + * // Run a function in the execution context of the resource. This will + * // * establish the context of the resource + * // * trigger the AsyncHooks before callbacks + * // * call the provided function `fn` with the supplied arguments + * // * trigger the AsyncHooks after callbacks + * // * restore the original execution context + * asyncResource.runInAsyncScope(fn, thisArg, ...args); + * + * // Call AsyncHooks destroy callbacks. + * asyncResource.emitDestroy(); + * + * // Return the unique ID assigned to the AsyncResource instance. + * asyncResource.asyncId(); + * + * // Return the trigger ID for the AsyncResource instance. + * asyncResource.triggerAsyncId(); + * ``` + */ + class AsyncResource { + /** + * AsyncResource() is meant to be extended. Instantiating a + * new AsyncResource() also triggers init. If triggerAsyncId is omitted then + * async_hook.executionAsyncId() is used. + * @param type The type of async event. + * @param triggerAsyncId The ID of the execution context that created + * this async event (default: `executionAsyncId()`), or an + * AsyncResourceOptions object (since 9.3) + */ + constructor(type: string, triggerAsyncId?: number | AsyncResourceOptions); + /** + * Binds the given function to the current execution context. + * + * The returned function will have an `asyncResource` property referencing + * the `AsyncResource` to which the function is bound. + * @since v14.8.0, v12.19.0 + * @param fn The function to bind to the current execution context. + * @param type An optional name to associate with the underlying `AsyncResource`. + */ + static bind any, ThisArg>( + fn: Func, + type?: string, + thisArg?: ThisArg + ): Func & { + asyncResource: AsyncResource; + }; + /** + * Binds the given function to execute to this `AsyncResource`'s scope. + * + * The returned function will have an `asyncResource` property referencing + * the `AsyncResource` to which the function is bound. + * @since v14.8.0, v12.19.0 + * @param fn The function to bind to the current `AsyncResource`. + */ + bind any>( + fn: Func + ): Func & { + asyncResource: AsyncResource; + }; + /** + * Call the provided function with the provided arguments in the execution context + * of the async resource. This will establish the context, trigger the AsyncHooks + * before callbacks, call the function, trigger the AsyncHooks after callbacks, and + * then restore the original execution context. + * @since v9.6.0 + * @param fn The function to call in the execution context of this async resource. + * @param thisArg The receiver to be used for the function call. + * @param args Optional arguments to pass to the function. + */ + runInAsyncScope(fn: (this: This, ...args: any[]) => Result, thisArg?: This, ...args: any[]): Result; + /** + * Call all `destroy` hooks. This should only ever be called once. An error will + * be thrown if it is called more than once. This **must** be manually called. If + * the resource is left to be collected by the GC then the `destroy` hooks will + * never be called. + * @return A reference to `asyncResource`. + */ + emitDestroy(): this; + /** + * @return The unique `asyncId` assigned to the resource. + */ + asyncId(): number; + /** + * + * @return The same `triggerAsyncId` that is passed to the `AsyncResource` constructor. + */ + triggerAsyncId(): number; + } + /** + * This class creates stores that stay coherent through asynchronous operations. + * + * While you can create your own implementation on top of the `async_hooks` module,`AsyncLocalStorage` should be preferred as it is a performant and memory safe + * implementation that involves significant optimizations that are non-obvious to + * implement. + * + * The following example uses `AsyncLocalStorage` to build a simple logger + * that assigns IDs to incoming HTTP requests and includes them in messages + * logged within each request. + * + * ```js + * import http from 'http'; + * import { AsyncLocalStorage } from 'async_hooks'; + * + * const asyncLocalStorage = new AsyncLocalStorage(); + * + * function logWithId(msg) { + * const id = asyncLocalStorage.getStore(); + * console.log(`${id !== undefined ? id : '-'}:`, msg); + * } + * + * let idSeq = 0; + * http.createServer((req, res) => { + * asyncLocalStorage.run(idSeq++, () => { + * logWithId('start'); + * // Imagine any chain of async operations here + * setImmediate(() => { + * logWithId('finish'); + * res.end(); + * }); + * }); + * }).listen(8080); + * + * http.get('http://localhost:8080'); + * http.get('http://localhost:8080'); + * // Prints: + * // 0: start + * // 1: start + * // 0: finish + * // 1: finish + * ``` + * + * Each instance of `AsyncLocalStorage` maintains an independent storage context. + * Multiple instances can safely exist simultaneously without risk of interfering + * with each other data. + * @since v13.10.0, v12.17.0 + */ + class AsyncLocalStorage { + /** + * Disables the instance of `AsyncLocalStorage`. All subsequent calls + * to `asyncLocalStorage.getStore()` will return `undefined` until`asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()` is called again. + * + * When calling `asyncLocalStorage.disable()`, all current contexts linked to the + * instance will be exited. + * + * Calling `asyncLocalStorage.disable()` is required before the`asyncLocalStorage` can be garbage collected. This does not apply to stores + * provided by the `asyncLocalStorage`, as those objects are garbage collected + * along with the corresponding async resources. + * + * Use this method when the `asyncLocalStorage` is not in use anymore + * in the current process. + * @since v13.10.0, v12.17.0 + * @experimental + */ + disable(): void; + /** + * Returns the current store. + * If called outside of an asynchronous context initialized by + * calling `asyncLocalStorage.run()` or `asyncLocalStorage.enterWith()`, it + * returns `undefined`. + * @since v13.10.0, v12.17.0 + */ + getStore(): T | undefined; + /** + * Runs a function synchronously within a context and returns its + * return value. The store is not accessible outside of the callback function. + * The store is accessible to any asynchronous operations created within the + * callback. + * + * The optional `args` are passed to the callback function. + * + * If the callback function throws an error, the error is thrown by `run()` too. + * The stacktrace is not impacted by this call and the context is exited. + * + * Example: + * + * ```js + * const store = { id: 2 }; + * try { + * asyncLocalStorage.run(store, () => { + * asyncLocalStorage.getStore(); // Returns the store object + * setTimeout(() => { + * asyncLocalStorage.getStore(); // Returns the store object + * }, 200); + * throw new Error(); + * }); + * } catch (e) { + * asyncLocalStorage.getStore(); // Returns undefined + * // The error will be caught here + * } + * ``` + * @since v13.10.0, v12.17.0 + */ + run(store: T, callback: (...args: TArgs) => R, ...args: TArgs): R; + /** + * Runs a function synchronously outside of a context and returns its + * return value. The store is not accessible within the callback function or + * the asynchronous operations created within the callback. Any `getStore()`call done within the callback function will always return `undefined`. + * + * The optional `args` are passed to the callback function. + * + * If the callback function throws an error, the error is thrown by `exit()` too. + * The stacktrace is not impacted by this call and the context is re-entered. + * + * Example: + * + * ```js + * // Within a call to run + * try { + * asyncLocalStorage.getStore(); // Returns the store object or value + * asyncLocalStorage.exit(() => { + * asyncLocalStorage.getStore(); // Returns undefined + * throw new Error(); + * }); + * } catch (e) { + * asyncLocalStorage.getStore(); // Returns the same object or value + * // The error will be caught here + * } + * ``` + * @since v13.10.0, v12.17.0 + * @experimental + */ + exit(callback: (...args: TArgs) => R, ...args: TArgs): R; + /** + * Transitions into the context for the remainder of the current + * synchronous execution and then persists the store through any following + * asynchronous calls. + * + * Example: + * + * ```js + * const store = { id: 1 }; + * // Replaces previous store with the given store object + * asyncLocalStorage.enterWith(store); + * asyncLocalStorage.getStore(); // Returns the store object + * someAsyncOperation(() => { + * asyncLocalStorage.getStore(); // Returns the same object + * }); + * ``` + * + * This transition will continue for the _entire_ synchronous execution. + * This means that if, for example, the context is entered within an event + * handler subsequent event handlers will also run within that context unless + * specifically bound to another context with an `AsyncResource`. That is why`run()` should be preferred over `enterWith()` unless there are strong reasons + * to use the latter method. + * + * ```js + * const store = { id: 1 }; + * + * emitter.on('my-event', () => { + * asyncLocalStorage.enterWith(store); + * }); + * emitter.on('my-event', () => { + * asyncLocalStorage.getStore(); // Returns the same object + * }); + * + * asyncLocalStorage.getStore(); // Returns undefined + * emitter.emit('my-event'); + * asyncLocalStorage.getStore(); // Returns the same object + * ``` + * @since v13.11.0, v12.17.0 + * @experimental + */ + enterWith(store: T): void; + } +} +declare module 'node:async_hooks' { + export * from 'async_hooks'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/buffer.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/buffer.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..18be30d2e9e4468c40c308bc6e6f9ecebd4f1b65 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/buffer.d.ts" @@ -0,0 +1,2232 @@ +/** + * `Buffer` objects are used to represent a fixed-length sequence of bytes. Many + * Node.js APIs support `Buffer`s. + * + * The `Buffer` class is a subclass of JavaScript's [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) class and + * extends it with methods that cover additional use cases. Node.js APIs accept + * plain [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) s wherever `Buffer`s are supported as well. + * + * While the `Buffer` class is available within the global scope, it is still + * recommended to explicitly reference it via an import or require statement. + * + * ```js + * import { Buffer } from 'buffer'; + * + * // Creates a zero-filled Buffer of length 10. + * const buf1 = Buffer.alloc(10); + * + * // Creates a Buffer of length 10, + * // filled with bytes which all have the value `1`. + * const buf2 = Buffer.alloc(10, 1); + * + * // Creates an uninitialized buffer of length 10. + * // This is faster than calling Buffer.alloc() but the returned + * // Buffer instance might contain old data that needs to be + * // overwritten using fill(), write(), or other functions that fill the Buffer's + * // contents. + * const buf3 = Buffer.allocUnsafe(10); + * + * // Creates a Buffer containing the bytes [1, 2, 3]. + * const buf4 = Buffer.from([1, 2, 3]); + * + * // Creates a Buffer containing the bytes [1, 1, 1, 1] – the entries + * // are all truncated using `(value & 255)` to fit into the range 0–255. + * const buf5 = Buffer.from([257, 257.5, -255, '1']); + * + * // Creates a Buffer containing the UTF-8-encoded bytes for the string 'tést': + * // [0x74, 0xc3, 0xa9, 0x73, 0x74] (in hexadecimal notation) + * // [116, 195, 169, 115, 116] (in decimal notation) + * const buf6 = Buffer.from('tést'); + * + * // Creates a Buffer containing the Latin-1 bytes [0x74, 0xe9, 0x73, 0x74]. + * const buf7 = Buffer.from('tést', 'latin1'); + * ``` + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/buffer.js) + */ +declare module 'buffer' { + import { BinaryLike } from 'node:crypto'; + export const INSPECT_MAX_BYTES: number; + export const kMaxLength: number; + export const kStringMaxLength: number; + export const constants: { + MAX_LENGTH: number; + MAX_STRING_LENGTH: number; + }; + export type TranscodeEncoding = 'ascii' | 'utf8' | 'utf16le' | 'ucs2' | 'latin1' | 'binary'; + /** + * Re-encodes the given `Buffer` or `Uint8Array` instance from one character + * encoding to another. Returns a new `Buffer` instance. + * + * Throws if the `fromEnc` or `toEnc` specify invalid character encodings or if + * conversion from `fromEnc` to `toEnc` is not permitted. + * + * Encodings supported by `buffer.transcode()` are: `'ascii'`, `'utf8'`,`'utf16le'`, `'ucs2'`, `'latin1'`, and `'binary'`. + * + * The transcoding process will use substitution characters if a given byte + * sequence cannot be adequately represented in the target encoding. For instance: + * + * ```js + * import { Buffer, transcode } from 'buffer'; + * + * const newBuf = transcode(Buffer.from('€'), 'utf8', 'ascii'); + * console.log(newBuf.toString('ascii')); + * // Prints: '?' + * ``` + * + * Because the Euro (`€`) sign is not representable in US-ASCII, it is replaced + * with `?` in the transcoded `Buffer`. + * @since v7.1.0 + * @param source A `Buffer` or `Uint8Array` instance. + * @param fromEnc The current encoding. + * @param toEnc To target encoding. + */ + export function transcode(source: Uint8Array, fromEnc: TranscodeEncoding, toEnc: TranscodeEncoding): Buffer; + export const SlowBuffer: { + /** @deprecated since v6.0.0, use `Buffer.allocUnsafeSlow()` */ + new (size: number): Buffer; + prototype: Buffer; + }; + /** + * Resolves a `'blob:nodedata:...'` an associated `Blob` object registered using + * a prior call to `URL.createObjectURL()`. + * @since v16.7.0 + * @experimental + * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`. + */ + export function resolveObjectURL(id: string): Blob | undefined; + export { Buffer }; + /** + * @experimental + */ + export interface BlobOptions { + /** + * @default 'utf8' + */ + encoding?: BufferEncoding | undefined; + /** + * The Blob content-type. The intent is for `type` to convey + * the MIME media type of the data, however no validation of the type format + * is performed. + */ + type?: string | undefined; + } + /** + * A [`Blob`](https://developer.mozilla.org/en-US/docs/Web/API/Blob) encapsulates immutable, raw data that can be safely shared across + * multiple worker threads. + * @since v15.7.0, v14.18.0 + * @experimental + */ + export class Blob { + /** + * The total size of the `Blob` in bytes. + * @since v15.7.0, v14.18.0 + */ + readonly size: number; + /** + * The content-type of the `Blob`. + * @since v15.7.0, v14.18.0 + */ + readonly type: string; + /** + * Creates a new `Blob` object containing a concatenation of the given sources. + * + * {ArrayBuffer}, {TypedArray}, {DataView}, and {Buffer} sources are copied into + * the 'Blob' and can therefore be safely modified after the 'Blob' is created. + * + * String sources are also copied into the `Blob`. + */ + constructor(sources: Array, options?: BlobOptions); + /** + * Returns a promise that fulfills with an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) containing a copy of + * the `Blob` data. + * @since v15.7.0, v14.18.0 + */ + arrayBuffer(): Promise; + /** + * Creates and returns a new `Blob` containing a subset of this `Blob` objects + * data. The original `Blob` is not altered. + * @since v15.7.0, v14.18.0 + * @param start The starting index. + * @param end The ending index. + * @param type The content-type for the new `Blob` + */ + slice(start?: number, end?: number, type?: string): Blob; + /** + * Returns a promise that fulfills with the contents of the `Blob` decoded as a + * UTF-8 string. + * @since v15.7.0, v14.18.0 + */ + text(): Promise; + /** + * Returns a new `ReadableStream` that allows the content of the `Blob` to be read. + * @since v16.7.0 + */ + stream(): unknown; // pending web streams types + } + export import atob = globalThis.atob; + export import btoa = globalThis.btoa; + global { + // Buffer class + type BufferEncoding = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex'; + type WithImplicitCoercion = + | T + | { + valueOf(): T; + }; + /** + * Raw data is stored in instances of the Buffer class. + * A Buffer is similar to an array of integers but corresponds to a raw memory allocation outside the V8 heap. A Buffer cannot be resized. + * Valid string encodings: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'base64url'|'binary'(deprecated)|'hex' + */ + interface BufferConstructor { + /** + * Allocates a new buffer containing the given {str}. + * + * @param str String to store in buffer. + * @param encoding encoding to use, optional. Default is 'utf8' + * @deprecated since v10.0.0 - Use `Buffer.from(string[, encoding])` instead. + */ + new (str: string, encoding?: BufferEncoding): Buffer; + /** + * Allocates a new buffer of {size} octets. + * + * @param size count of octets to allocate. + * @deprecated since v10.0.0 - Use `Buffer.alloc()` instead (also see `Buffer.allocUnsafe()`). + */ + new (size: number): Buffer; + /** + * Allocates a new buffer containing the given {array} of octets. + * + * @param array The octets to store. + * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead. + */ + new (array: Uint8Array): Buffer; + /** + * Produces a Buffer backed by the same allocated memory as + * the given {ArrayBuffer}/{SharedArrayBuffer}. + * + * + * @param arrayBuffer The ArrayBuffer with which to share memory. + * @deprecated since v10.0.0 - Use `Buffer.from(arrayBuffer[, byteOffset[, length]])` instead. + */ + new (arrayBuffer: ArrayBuffer | SharedArrayBuffer): Buffer; + /** + * Allocates a new buffer containing the given {array} of octets. + * + * @param array The octets to store. + * @deprecated since v10.0.0 - Use `Buffer.from(array)` instead. + */ + new (array: ReadonlyArray): Buffer; + /** + * Copies the passed {buffer} data onto a new {Buffer} instance. + * + * @param buffer The buffer to copy. + * @deprecated since v10.0.0 - Use `Buffer.from(buffer)` instead. + */ + new (buffer: Buffer): Buffer; + /** + * Allocates a new `Buffer` using an `array` of bytes in the range `0` – `255`. + * Array entries outside that range will be truncated to fit into it. + * + * ```js + * import { Buffer } from 'buffer'; + * + * // Creates a new Buffer containing the UTF-8 bytes of the string 'buffer'. + * const buf = Buffer.from([0x62, 0x75, 0x66, 0x66, 0x65, 0x72]); + * ``` + * + * A `TypeError` will be thrown if `array` is not an `Array` or another type + * appropriate for `Buffer.from()` variants. + * + * `Buffer.from(array)` and `Buffer.from(string)` may also use the internal`Buffer` pool like `Buffer.allocUnsafe()` does. + * @since v5.10.0 + */ + from(arrayBuffer: WithImplicitCoercion, byteOffset?: number, length?: number): Buffer; + /** + * Creates a new Buffer using the passed {data} + * @param data data to create a new Buffer + */ + from(data: Uint8Array | ReadonlyArray): Buffer; + from(data: WithImplicitCoercion | string>): Buffer; + /** + * Creates a new Buffer containing the given JavaScript string {str}. + * If provided, the {encoding} parameter identifies the character encoding. + * If not provided, {encoding} defaults to 'utf8'. + */ + from( + str: + | WithImplicitCoercion + | { + [Symbol.toPrimitive](hint: 'string'): string; + }, + encoding?: BufferEncoding + ): Buffer; + /** + * Creates a new Buffer using the passed {data} + * @param values to create a new Buffer + */ + of(...items: number[]): Buffer; + /** + * Returns `true` if `obj` is a `Buffer`, `false` otherwise. + * + * ```js + * import { Buffer } from 'buffer'; + * + * Buffer.isBuffer(Buffer.alloc(10)); // true + * Buffer.isBuffer(Buffer.from('foo')); // true + * Buffer.isBuffer('a string'); // false + * Buffer.isBuffer([]); // false + * Buffer.isBuffer(new Uint8Array(1024)); // false + * ``` + * @since v0.1.101 + */ + isBuffer(obj: any): obj is Buffer; + /** + * Returns `true` if `encoding` is the name of a supported character encoding, + * or `false` otherwise. + * + * ```js + * import { Buffer } from 'buffer'; + * + * console.log(Buffer.isEncoding('utf8')); + * // Prints: true + * + * console.log(Buffer.isEncoding('hex')); + * // Prints: true + * + * console.log(Buffer.isEncoding('utf/8')); + * // Prints: false + * + * console.log(Buffer.isEncoding('')); + * // Prints: false + * ``` + * @since v0.9.1 + * @param encoding A character encoding name to check. + */ + isEncoding(encoding: string): encoding is BufferEncoding; + /** + * Returns the byte length of a string when encoded using `encoding`. + * This is not the same as [`String.prototype.length`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/length), which does not account + * for the encoding that is used to convert the string into bytes. + * + * For `'base64'`, `'base64url'`, and `'hex'`, this function assumes valid input. + * For strings that contain non-base64/hex-encoded data (e.g. whitespace), the + * return value might be greater than the length of a `Buffer` created from the + * string. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const str = '\u00bd + \u00bc = \u00be'; + * + * console.log(`${str}: ${str.length} characters, ` + + * `${Buffer.byteLength(str, 'utf8')} bytes`); + * // Prints: ½ + ¼ = ¾: 9 characters, 12 bytes + * ``` + * + * When `string` is a + * `Buffer`/[`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView)/[`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/- + * Reference/Global_Objects/TypedArray)/[`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer)/[`SharedArrayBuffer`](https://develop- + * er.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer), the byte length as reported by `.byteLength`is returned. + * @since v0.1.90 + * @param string A value to calculate the length of. + * @param [encoding='utf8'] If `string` is a string, this is its encoding. + * @return The number of bytes contained within `string`. + */ + byteLength(string: string | NodeJS.ArrayBufferView | ArrayBuffer | SharedArrayBuffer, encoding?: BufferEncoding): number; + /** + * Returns a new `Buffer` which is the result of concatenating all the `Buffer`instances in the `list` together. + * + * If the list has no items, or if the `totalLength` is 0, then a new zero-length`Buffer` is returned. + * + * If `totalLength` is not provided, it is calculated from the `Buffer` instances + * in `list` by adding their lengths. + * + * If `totalLength` is provided, it is coerced to an unsigned integer. If the + * combined length of the `Buffer`s in `list` exceeds `totalLength`, the result is + * truncated to `totalLength`. + * + * ```js + * import { Buffer } from 'buffer'; + * + * // Create a single `Buffer` from a list of three `Buffer` instances. + * + * const buf1 = Buffer.alloc(10); + * const buf2 = Buffer.alloc(14); + * const buf3 = Buffer.alloc(18); + * const totalLength = buf1.length + buf2.length + buf3.length; + * + * console.log(totalLength); + * // Prints: 42 + * + * const bufA = Buffer.concat([buf1, buf2, buf3], totalLength); + * + * console.log(bufA); + * // Prints: + * console.log(bufA.length); + * // Prints: 42 + * ``` + * + * `Buffer.concat()` may also use the internal `Buffer` pool like `Buffer.allocUnsafe()` does. + * @since v0.7.11 + * @param list List of `Buffer` or {@link Uint8Array} instances to concatenate. + * @param totalLength Total length of the `Buffer` instances in `list` when concatenated. + */ + concat(list: ReadonlyArray, totalLength?: number): Buffer; + /** + * Compares `buf1` to `buf2`, typically for the purpose of sorting arrays of`Buffer` instances. This is equivalent to calling `buf1.compare(buf2)`. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf1 = Buffer.from('1234'); + * const buf2 = Buffer.from('0123'); + * const arr = [buf1, buf2]; + * + * console.log(arr.sort(Buffer.compare)); + * // Prints: [ , ] + * // (This result is equal to: [buf2, buf1].) + * ``` + * @since v0.11.13 + * @return Either `-1`, `0`, or `1`, depending on the result of the comparison. See `compare` for details. + */ + compare(buf1: Uint8Array, buf2: Uint8Array): -1 | 0 | 1; + /** + * Allocates a new `Buffer` of `size` bytes. If `fill` is `undefined`, the`Buffer` will be zero-filled. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.alloc(5); + * + * console.log(buf); + * // Prints: + * ``` + * + * If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown. + * + * If `fill` is specified, the allocated `Buffer` will be initialized by calling `buf.fill(fill)`. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.alloc(5, 'a'); + * + * console.log(buf); + * // Prints: + * ``` + * + * If both `fill` and `encoding` are specified, the allocated `Buffer` will be + * initialized by calling `buf.fill(fill, encoding)`. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.alloc(11, 'aGVsbG8gd29ybGQ=', 'base64'); + * + * console.log(buf); + * // Prints: + * ``` + * + * Calling `Buffer.alloc()` can be measurably slower than the alternative `Buffer.allocUnsafe()` but ensures that the newly created `Buffer` instance + * contents will never contain sensitive data from previous allocations, including + * data that might not have been allocated for `Buffer`s. + * + * A `TypeError` will be thrown if `size` is not a number. + * @since v5.10.0 + * @param size The desired length of the new `Buffer`. + * @param [fill=0] A value to pre-fill the new `Buffer` with. + * @param [encoding='utf8'] If `fill` is a string, this is its encoding. + */ + alloc(size: number, fill?: string | Buffer | number, encoding?: BufferEncoding): Buffer; + /** + * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown. + * + * The underlying memory for `Buffer` instances created in this way is _not_ + * _initialized_. The contents of the newly created `Buffer` are unknown and _may contain sensitive data_. Use `Buffer.alloc()` instead to initialize`Buffer` instances with zeroes. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(10); + * + * console.log(buf); + * // Prints (contents may vary): + * + * buf.fill(0); + * + * console.log(buf); + * // Prints: + * ``` + * + * A `TypeError` will be thrown if `size` is not a number. + * + * The `Buffer` module pre-allocates an internal `Buffer` instance of + * size `Buffer.poolSize` that is used as a pool for the fast allocation of new`Buffer` instances created using `Buffer.allocUnsafe()`,`Buffer.from(array)`, `Buffer.concat()`, and the + * deprecated`new Buffer(size)` constructor only when `size` is less than or equal + * to `Buffer.poolSize >> 1` (floor of `Buffer.poolSize` divided by two). + * + * Use of this pre-allocated internal memory pool is a key difference between + * calling `Buffer.alloc(size, fill)` vs. `Buffer.allocUnsafe(size).fill(fill)`. + * Specifically, `Buffer.alloc(size, fill)` will _never_ use the internal `Buffer`pool, while `Buffer.allocUnsafe(size).fill(fill)`_will_ use the internal`Buffer` pool if `size` is less + * than or equal to half `Buffer.poolSize`. The + * difference is subtle but can be important when an application requires the + * additional performance that `Buffer.allocUnsafe()` provides. + * @since v5.10.0 + * @param size The desired length of the new `Buffer`. + */ + allocUnsafe(size: number): Buffer; + /** + * Allocates a new `Buffer` of `size` bytes. If `size` is larger than {@link constants.MAX_LENGTH} or smaller than 0, `ERR_INVALID_ARG_VALUE` is thrown. A zero-length `Buffer` is created + * if `size` is 0. + * + * The underlying memory for `Buffer` instances created in this way is _not_ + * _initialized_. The contents of the newly created `Buffer` are unknown and_may contain sensitive data_. Use `buf.fill(0)` to initialize + * such `Buffer` instances with zeroes. + * + * When using `Buffer.allocUnsafe()` to allocate new `Buffer` instances, + * allocations under 4 KB are sliced from a single pre-allocated `Buffer`. This + * allows applications to avoid the garbage collection overhead of creating many + * individually allocated `Buffer` instances. This approach improves both + * performance and memory usage by eliminating the need to track and clean up as + * many individual `ArrayBuffer` objects. + * + * However, in the case where a developer may need to retain a small chunk of + * memory from a pool for an indeterminate amount of time, it may be appropriate + * to create an un-pooled `Buffer` instance using `Buffer.allocUnsafeSlow()` and + * then copying out the relevant bits. + * + * ```js + * import { Buffer } from 'buffer'; + * + * // Need to keep around a few small chunks of memory. + * const store = []; + * + * socket.on('readable', () => { + * let data; + * while (null !== (data = readable.read())) { + * // Allocate for retained data. + * const sb = Buffer.allocUnsafeSlow(10); + * + * // Copy the data into the new allocation. + * data.copy(sb, 0, 0, 10); + * + * store.push(sb); + * } + * }); + * ``` + * + * A `TypeError` will be thrown if `size` is not a number. + * @since v5.12.0 + * @param size The desired length of the new `Buffer`. + */ + allocUnsafeSlow(size: number): Buffer; + /** + * This is the size (in bytes) of pre-allocated internal `Buffer` instances used + * for pooling. This value may be modified. + * @since v0.11.3 + */ + poolSize: number; + } + interface Buffer extends Uint8Array { + /** + * Writes `string` to `buf` at `offset` according to the character encoding in`encoding`. The `length` parameter is the number of bytes to write. If `buf` did + * not contain enough space to fit the entire string, only part of `string` will be + * written. However, partially encoded characters will not be written. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.alloc(256); + * + * const len = buf.write('\u00bd + \u00bc = \u00be', 0); + * + * console.log(`${len} bytes: ${buf.toString('utf8', 0, len)}`); + * // Prints: 12 bytes: ½ + ¼ = ¾ + * + * const buffer = Buffer.alloc(10); + * + * const length = buffer.write('abcd', 8); + * + * console.log(`${length} bytes: ${buffer.toString('utf8', 8, 10)}`); + * // Prints: 2 bytes : ab + * ``` + * @since v0.1.90 + * @param string String to write to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write `string`. + * @param [length=buf.length - offset] Maximum number of bytes to write (written bytes will not exceed `buf.length - offset`). + * @param [encoding='utf8'] The character encoding of `string`. + * @return Number of bytes written. + */ + write(string: string, encoding?: BufferEncoding): number; + write(string: string, offset: number, encoding?: BufferEncoding): number; + write(string: string, offset: number, length: number, encoding?: BufferEncoding): number; + /** + * Decodes `buf` to a string according to the specified character encoding in`encoding`. `start` and `end` may be passed to decode only a subset of `buf`. + * + * If `encoding` is `'utf8'` and a byte sequence in the input is not valid UTF-8, + * then each invalid byte is replaced with the replacement character `U+FFFD`. + * + * The maximum length of a string instance (in UTF-16 code units) is available + * as {@link constants.MAX_STRING_LENGTH}. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf1 = Buffer.allocUnsafe(26); + * + * for (let i = 0; i < 26; i++) { + * // 97 is the decimal ASCII value for 'a'. + * buf1[i] = i + 97; + * } + * + * console.log(buf1.toString('utf8')); + * // Prints: abcdefghijklmnopqrstuvwxyz + * console.log(buf1.toString('utf8', 0, 5)); + * // Prints: abcde + * + * const buf2 = Buffer.from('tést'); + * + * console.log(buf2.toString('hex')); + * // Prints: 74c3a97374 + * console.log(buf2.toString('utf8', 0, 3)); + * // Prints: té + * console.log(buf2.toString(undefined, 0, 3)); + * // Prints: té + * ``` + * @since v0.1.90 + * @param [encoding='utf8'] The character encoding to use. + * @param [start=0] The byte offset to start decoding at. + * @param [end=buf.length] The byte offset to stop decoding at (not inclusive). + */ + toString(encoding?: BufferEncoding, start?: number, end?: number): string; + /** + * Returns a JSON representation of `buf`. [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) implicitly calls + * this function when stringifying a `Buffer` instance. + * + * `Buffer.from()` accepts objects in the format returned from this method. + * In particular, `Buffer.from(buf.toJSON())` works like `Buffer.from(buf)`. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5]); + * const json = JSON.stringify(buf); + * + * console.log(json); + * // Prints: {"type":"Buffer","data":[1,2,3,4,5]} + * + * const copy = JSON.parse(json, (key, value) => { + * return value && value.type === 'Buffer' ? + * Buffer.from(value) : + * value; + * }); + * + * console.log(copy); + * // Prints: + * ``` + * @since v0.9.2 + */ + toJSON(): { + type: 'Buffer'; + data: number[]; + }; + /** + * Returns `true` if both `buf` and `otherBuffer` have exactly the same bytes,`false` otherwise. Equivalent to `buf.compare(otherBuffer) === 0`. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf1 = Buffer.from('ABC'); + * const buf2 = Buffer.from('414243', 'hex'); + * const buf3 = Buffer.from('ABCD'); + * + * console.log(buf1.equals(buf2)); + * // Prints: true + * console.log(buf1.equals(buf3)); + * // Prints: false + * ``` + * @since v0.11.13 + * @param otherBuffer A `Buffer` or {@link Uint8Array} with which to compare `buf`. + */ + equals(otherBuffer: Uint8Array): boolean; + /** + * Compares `buf` with `target` and returns a number indicating whether `buf`comes before, after, or is the same as `target` in sort order. + * Comparison is based on the actual sequence of bytes in each `Buffer`. + * + * * `0` is returned if `target` is the same as `buf` + * * `1` is returned if `target` should come _before_`buf` when sorted. + * * `-1` is returned if `target` should come _after_`buf` when sorted. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf1 = Buffer.from('ABC'); + * const buf2 = Buffer.from('BCD'); + * const buf3 = Buffer.from('ABCD'); + * + * console.log(buf1.compare(buf1)); + * // Prints: 0 + * console.log(buf1.compare(buf2)); + * // Prints: -1 + * console.log(buf1.compare(buf3)); + * // Prints: -1 + * console.log(buf2.compare(buf1)); + * // Prints: 1 + * console.log(buf2.compare(buf3)); + * // Prints: 1 + * console.log([buf1, buf2, buf3].sort(Buffer.compare)); + * // Prints: [ , , ] + * // (This result is equal to: [buf1, buf3, buf2].) + * ``` + * + * The optional `targetStart`, `targetEnd`, `sourceStart`, and `sourceEnd`arguments can be used to limit the comparison to specific ranges within `target`and `buf` respectively. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf1 = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8, 9]); + * const buf2 = Buffer.from([5, 6, 7, 8, 9, 1, 2, 3, 4]); + * + * console.log(buf1.compare(buf2, 5, 9, 0, 4)); + * // Prints: 0 + * console.log(buf1.compare(buf2, 0, 6, 4)); + * // Prints: -1 + * console.log(buf1.compare(buf2, 5, 6, 5)); + * // Prints: 1 + * ``` + * + * `ERR_OUT_OF_RANGE` is thrown if `targetStart < 0`, `sourceStart < 0`,`targetEnd > target.byteLength`, or `sourceEnd > source.byteLength`. + * @since v0.11.13 + * @param target A `Buffer` or {@link Uint8Array} with which to compare `buf`. + * @param [targetStart=0] The offset within `target` at which to begin comparison. + * @param [targetEnd=target.length] The offset within `target` at which to end comparison (not inclusive). + * @param [sourceStart=0] The offset within `buf` at which to begin comparison. + * @param [sourceEnd=buf.length] The offset within `buf` at which to end comparison (not inclusive). + */ + compare(target: Uint8Array, targetStart?: number, targetEnd?: number, sourceStart?: number, sourceEnd?: number): -1 | 0 | 1; + /** + * Copies data from a region of `buf` to a region in `target`, even if the `target`memory region overlaps with `buf`. + * + * [`TypedArray.prototype.set()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/set) performs the same operation, and is available + * for all TypedArrays, including Node.js `Buffer`s, although it takes + * different function arguments. + * + * ```js + * import { Buffer } from 'buffer'; + * + * // Create two `Buffer` instances. + * const buf1 = Buffer.allocUnsafe(26); + * const buf2 = Buffer.allocUnsafe(26).fill('!'); + * + * for (let i = 0; i < 26; i++) { + * // 97 is the decimal ASCII value for 'a'. + * buf1[i] = i + 97; + * } + * + * // Copy `buf1` bytes 16 through 19 into `buf2` starting at byte 8 of `buf2`. + * buf1.copy(buf2, 8, 16, 20); + * // This is equivalent to: + * // buf2.set(buf1.subarray(16, 20), 8); + * + * console.log(buf2.toString('ascii', 0, 25)); + * // Prints: !!!!!!!!qrst!!!!!!!!!!!!! + * ``` + * + * ```js + * import { Buffer } from 'buffer'; + * + * // Create a `Buffer` and copy data from one region to an overlapping region + * // within the same `Buffer`. + * + * const buf = Buffer.allocUnsafe(26); + * + * for (let i = 0; i < 26; i++) { + * // 97 is the decimal ASCII value for 'a'. + * buf[i] = i + 97; + * } + * + * buf.copy(buf, 0, 4, 10); + * + * console.log(buf.toString()); + * // Prints: efghijghijklmnopqrstuvwxyz + * ``` + * @since v0.1.90 + * @param target A `Buffer` or {@link Uint8Array} to copy into. + * @param [targetStart=0] The offset within `target` at which to begin writing. + * @param [sourceStart=0] The offset within `buf` from which to begin copying. + * @param [sourceEnd=buf.length] The offset within `buf` at which to stop copying (not inclusive). + * @return The number of bytes copied. + */ + copy(target: Uint8Array, targetStart?: number, sourceStart?: number, sourceEnd?: number): number; + /** + * Returns a new `Buffer` that references the same memory as the original, but + * offset and cropped by the `start` and `end` indices. + * + * This is the same behavior as `buf.subarray()`. + * + * This method is not compatible with the `Uint8Array.prototype.slice()`, + * which is a superclass of `Buffer`. To copy the slice, use`Uint8Array.prototype.slice()`. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from('buffer'); + * + * const copiedBuf = Uint8Array.prototype.slice.call(buf); + * copiedBuf[0]++; + * console.log(copiedBuf.toString()); + * // Prints: cuffer + * + * console.log(buf.toString()); + * // Prints: buffer + * ``` + * @since v0.3.0 + * @param [start=0] Where the new `Buffer` will start. + * @param [end=buf.length] Where the new `Buffer` will end (not inclusive). + */ + slice(start?: number, end?: number): Buffer; + /** + * Returns a new `Buffer` that references the same memory as the original, but + * offset and cropped by the `start` and `end` indices. + * + * Specifying `end` greater than `buf.length` will return the same result as + * that of `end` equal to `buf.length`. + * + * This method is inherited from [`TypedArray.prototype.subarray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray/subarray). + * + * Modifying the new `Buffer` slice will modify the memory in the original `Buffer`because the allocated memory of the two objects overlap. + * + * ```js + * import { Buffer } from 'buffer'; + * + * // Create a `Buffer` with the ASCII alphabet, take a slice, and modify one byte + * // from the original `Buffer`. + * + * const buf1 = Buffer.allocUnsafe(26); + * + * for (let i = 0; i < 26; i++) { + * // 97 is the decimal ASCII value for 'a'. + * buf1[i] = i + 97; + * } + * + * const buf2 = buf1.subarray(0, 3); + * + * console.log(buf2.toString('ascii', 0, buf2.length)); + * // Prints: abc + * + * buf1[0] = 33; + * + * console.log(buf2.toString('ascii', 0, buf2.length)); + * // Prints: !bc + * ``` + * + * Specifying negative indexes causes the slice to be generated relative to the + * end of `buf` rather than the beginning. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from('buffer'); + * + * console.log(buf.subarray(-6, -1).toString()); + * // Prints: buffe + * // (Equivalent to buf.subarray(0, 5).) + * + * console.log(buf.subarray(-6, -2).toString()); + * // Prints: buff + * // (Equivalent to buf.subarray(0, 4).) + * + * console.log(buf.subarray(-5, -2).toString()); + * // Prints: uff + * // (Equivalent to buf.subarray(1, 4).) + * ``` + * @since v3.0.0 + * @param [start=0] Where the new `Buffer` will start. + * @param [end=buf.length] Where the new `Buffer` will end (not inclusive). + */ + subarray(start?: number, end?: number): Buffer; + /** + * Writes `value` to `buf` at the specified `offset` as big-endian. + * + * `value` is interpreted and written as a two's complement signed integer. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(8); + * + * buf.writeBigInt64BE(0x0102030405060708n, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v12.0.0, v10.20.0 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. + * @return `offset` plus the number of bytes written. + */ + writeBigInt64BE(value: bigint, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as little-endian. + * + * `value` is interpreted and written as a two's complement signed integer. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(8); + * + * buf.writeBigInt64LE(0x0102030405060708n, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v12.0.0, v10.20.0 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. + * @return `offset` plus the number of bytes written. + */ + writeBigInt64LE(value: bigint, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as big-endian. + * + * This function is also available under the `writeBigUint64BE` alias. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(8); + * + * buf.writeBigUInt64BE(0xdecafafecacefaden, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v12.0.0, v10.20.0 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. + * @return `offset` plus the number of bytes written. + */ + writeBigUInt64BE(value: bigint, offset?: number): number; + /** + * @alias Buffer.writeBigUInt64BE + * @since v14.10.0, v12.19.0 + */ + writeBigUint64BE(value: bigint, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as little-endian + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(8); + * + * buf.writeBigUInt64LE(0xdecafafecacefaden, 0); + * + * console.log(buf); + * // Prints: + * ``` + * + * This function is also available under the `writeBigUint64LE` alias. + * @since v12.0.0, v10.20.0 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy: `0 <= offset <= buf.length - 8`. + * @return `offset` plus the number of bytes written. + */ + writeBigUInt64LE(value: bigint, offset?: number): number; + /** + * @alias Buffer.writeBigUInt64LE + * @since v14.10.0, v12.19.0 + */ + writeBigUint64LE(value: bigint, offset?: number): number; + /** + * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined + * when `value` is anything other than an unsigned integer. + * + * This function is also available under the `writeUintLE` alias. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(6); + * + * buf.writeUIntLE(0x1234567890ab, 0, 6); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.5 + * @param value Number to be written to `buf`. + * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. + * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. + * @return `offset` plus the number of bytes written. + */ + writeUIntLE(value: number, offset: number, byteLength: number): number; + /** + * @alias Buffer.writeUIntLE + * @since v14.9.0, v12.19.0 + */ + writeUintLE(value: number, offset: number, byteLength: number): number; + /** + * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined + * when `value` is anything other than an unsigned integer. + * + * This function is also available under the `writeUintBE` alias. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(6); + * + * buf.writeUIntBE(0x1234567890ab, 0, 6); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.5 + * @param value Number to be written to `buf`. + * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. + * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. + * @return `offset` plus the number of bytes written. + */ + writeUIntBE(value: number, offset: number, byteLength: number): number; + /** + * @alias Buffer.writeUIntBE + * @since v14.9.0, v12.19.0 + */ + writeUintBE(value: number, offset: number, byteLength: number): number; + /** + * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as little-endian. Supports up to 48 bits of accuracy. Behavior is undefined + * when `value` is anything other than a signed integer. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(6); + * + * buf.writeIntLE(0x1234567890ab, 0, 6); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.11.15 + * @param value Number to be written to `buf`. + * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. + * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. + * @return `offset` plus the number of bytes written. + */ + writeIntLE(value: number, offset: number, byteLength: number): number; + /** + * Writes `byteLength` bytes of `value` to `buf` at the specified `offset`as big-endian. Supports up to 48 bits of accuracy. Behavior is undefined when`value` is anything other than a + * signed integer. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(6); + * + * buf.writeIntBE(0x1234567890ab, 0, 6); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.11.15 + * @param value Number to be written to `buf`. + * @param offset Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - byteLength`. + * @param byteLength Number of bytes to write. Must satisfy `0 < byteLength <= 6`. + * @return `offset` plus the number of bytes written. + */ + writeIntBE(value: number, offset: number, byteLength: number): number; + /** + * Reads an unsigned, big-endian 64-bit integer from `buf` at the specified`offset`. + * + * This function is also available under the `readBigUint64BE` alias. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]); + * + * console.log(buf.readBigUInt64BE(0)); + * // Prints: 4294967295n + * ``` + * @since v12.0.0, v10.20.0 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. + */ + readBigUInt64BE(offset?: number): bigint; + /** + * @alias Buffer.readBigUInt64BE + * @since v14.10.0, v12.19.0 + */ + readBigUint64BE(offset?: number): bigint; + /** + * Reads an unsigned, little-endian 64-bit integer from `buf` at the specified`offset`. + * + * This function is also available under the `readBigUint64LE` alias. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([0x00, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xff]); + * + * console.log(buf.readBigUInt64LE(0)); + * // Prints: 18446744069414584320n + * ``` + * @since v12.0.0, v10.20.0 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. + */ + readBigUInt64LE(offset?: number): bigint; + /** + * @alias Buffer.readBigUInt64LE + * @since v14.10.0, v12.19.0 + */ + readBigUint64LE(offset?: number): bigint; + /** + * Reads a signed, big-endian 64-bit integer from `buf` at the specified `offset`. + * + * Integers read from a `Buffer` are interpreted as two's complement signed + * values. + * @since v12.0.0, v10.20.0 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. + */ + readBigInt64BE(offset?: number): bigint; + /** + * Reads a signed, little-endian 64-bit integer from `buf` at the specified`offset`. + * + * Integers read from a `Buffer` are interpreted as two's complement signed + * values. + * @since v12.0.0, v10.20.0 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy: `0 <= offset <= buf.length - 8`. + */ + readBigInt64LE(offset?: number): bigint; + /** + * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as an unsigned, little-endian integer supporting + * up to 48 bits of accuracy. + * + * This function is also available under the `readUintLE` alias. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); + * + * console.log(buf.readUIntLE(0, 6).toString(16)); + * // Prints: ab9078563412 + * ``` + * @since v0.11.15 + * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. + * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. + */ + readUIntLE(offset: number, byteLength: number): number; + /** + * @alias Buffer.readUIntLE + * @since v14.9.0, v12.19.0 + */ + readUintLE(offset: number, byteLength: number): number; + /** + * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as an unsigned big-endian integer supporting + * up to 48 bits of accuracy. + * + * This function is also available under the `readUintBE` alias. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); + * + * console.log(buf.readUIntBE(0, 6).toString(16)); + * // Prints: 1234567890ab + * console.log(buf.readUIntBE(1, 6).toString(16)); + * // Throws ERR_OUT_OF_RANGE. + * ``` + * @since v0.11.15 + * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. + * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. + */ + readUIntBE(offset: number, byteLength: number): number; + /** + * @alias Buffer.readUIntBE + * @since v14.9.0, v12.19.0 + */ + readUintBE(offset: number, byteLength: number): number; + /** + * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as a little-endian, two's complement signed value + * supporting up to 48 bits of accuracy. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); + * + * console.log(buf.readIntLE(0, 6).toString(16)); + * // Prints: -546f87a9cbee + * ``` + * @since v0.11.15 + * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. + * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. + */ + readIntLE(offset: number, byteLength: number): number; + /** + * Reads `byteLength` number of bytes from `buf` at the specified `offset`and interprets the result as a big-endian, two's complement signed value + * supporting up to 48 bits of accuracy. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78, 0x90, 0xab]); + * + * console.log(buf.readIntBE(0, 6).toString(16)); + * // Prints: 1234567890ab + * console.log(buf.readIntBE(1, 6).toString(16)); + * // Throws ERR_OUT_OF_RANGE. + * console.log(buf.readIntBE(1, 0).toString(16)); + * // Throws ERR_OUT_OF_RANGE. + * ``` + * @since v0.11.15 + * @param offset Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - byteLength`. + * @param byteLength Number of bytes to read. Must satisfy `0 < byteLength <= 6`. + */ + readIntBE(offset: number, byteLength: number): number; + /** + * Reads an unsigned 8-bit integer from `buf` at the specified `offset`. + * + * This function is also available under the `readUint8` alias. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([1, -2]); + * + * console.log(buf.readUInt8(0)); + * // Prints: 1 + * console.log(buf.readUInt8(1)); + * // Prints: 254 + * console.log(buf.readUInt8(2)); + * // Throws ERR_OUT_OF_RANGE. + * ``` + * @since v0.5.0 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`. + */ + readUInt8(offset?: number): number; + /** + * @alias Buffer.readUInt8 + * @since v14.9.0, v12.19.0 + */ + readUint8(offset?: number): number; + /** + * Reads an unsigned, little-endian 16-bit integer from `buf` at the specified`offset`. + * + * This function is also available under the `readUint16LE` alias. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([0x12, 0x34, 0x56]); + * + * console.log(buf.readUInt16LE(0).toString(16)); + * // Prints: 3412 + * console.log(buf.readUInt16LE(1).toString(16)); + * // Prints: 5634 + * console.log(buf.readUInt16LE(2).toString(16)); + * // Throws ERR_OUT_OF_RANGE. + * ``` + * @since v0.5.5 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. + */ + readUInt16LE(offset?: number): number; + /** + * @alias Buffer.readUInt16LE + * @since v14.9.0, v12.19.0 + */ + readUint16LE(offset?: number): number; + /** + * Reads an unsigned, big-endian 16-bit integer from `buf` at the specified`offset`. + * + * This function is also available under the `readUint16BE` alias. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([0x12, 0x34, 0x56]); + * + * console.log(buf.readUInt16BE(0).toString(16)); + * // Prints: 1234 + * console.log(buf.readUInt16BE(1).toString(16)); + * // Prints: 3456 + * ``` + * @since v0.5.5 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. + */ + readUInt16BE(offset?: number): number; + /** + * @alias Buffer.readUInt16BE + * @since v14.9.0, v12.19.0 + */ + readUint16BE(offset?: number): number; + /** + * Reads an unsigned, little-endian 32-bit integer from `buf` at the specified`offset`. + * + * This function is also available under the `readUint32LE` alias. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]); + * + * console.log(buf.readUInt32LE(0).toString(16)); + * // Prints: 78563412 + * console.log(buf.readUInt32LE(1).toString(16)); + * // Throws ERR_OUT_OF_RANGE. + * ``` + * @since v0.5.5 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. + */ + readUInt32LE(offset?: number): number; + /** + * @alias Buffer.readUInt32LE + * @since v14.9.0, v12.19.0 + */ + readUint32LE(offset?: number): number; + /** + * Reads an unsigned, big-endian 32-bit integer from `buf` at the specified`offset`. + * + * This function is also available under the `readUint32BE` alias. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([0x12, 0x34, 0x56, 0x78]); + * + * console.log(buf.readUInt32BE(0).toString(16)); + * // Prints: 12345678 + * ``` + * @since v0.5.5 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. + */ + readUInt32BE(offset?: number): number; + /** + * @alias Buffer.readUInt32BE + * @since v14.9.0, v12.19.0 + */ + readUint32BE(offset?: number): number; + /** + * Reads a signed 8-bit integer from `buf` at the specified `offset`. + * + * Integers read from a `Buffer` are interpreted as two's complement signed values. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([-1, 5]); + * + * console.log(buf.readInt8(0)); + * // Prints: -1 + * console.log(buf.readInt8(1)); + * // Prints: 5 + * console.log(buf.readInt8(2)); + * // Throws ERR_OUT_OF_RANGE. + * ``` + * @since v0.5.0 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 1`. + */ + readInt8(offset?: number): number; + /** + * Reads a signed, little-endian 16-bit integer from `buf` at the specified`offset`. + * + * Integers read from a `Buffer` are interpreted as two's complement signed values. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([0, 5]); + * + * console.log(buf.readInt16LE(0)); + * // Prints: 1280 + * console.log(buf.readInt16LE(1)); + * // Throws ERR_OUT_OF_RANGE. + * ``` + * @since v0.5.5 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. + */ + readInt16LE(offset?: number): number; + /** + * Reads a signed, big-endian 16-bit integer from `buf` at the specified `offset`. + * + * Integers read from a `Buffer` are interpreted as two's complement signed values. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([0, 5]); + * + * console.log(buf.readInt16BE(0)); + * // Prints: 5 + * ``` + * @since v0.5.5 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 2`. + */ + readInt16BE(offset?: number): number; + /** + * Reads a signed, little-endian 32-bit integer from `buf` at the specified`offset`. + * + * Integers read from a `Buffer` are interpreted as two's complement signed values. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([0, 0, 0, 5]); + * + * console.log(buf.readInt32LE(0)); + * // Prints: 83886080 + * console.log(buf.readInt32LE(1)); + * // Throws ERR_OUT_OF_RANGE. + * ``` + * @since v0.5.5 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. + */ + readInt32LE(offset?: number): number; + /** + * Reads a signed, big-endian 32-bit integer from `buf` at the specified `offset`. + * + * Integers read from a `Buffer` are interpreted as two's complement signed values. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([0, 0, 0, 5]); + * + * console.log(buf.readInt32BE(0)); + * // Prints: 5 + * ``` + * @since v0.5.5 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. + */ + readInt32BE(offset?: number): number; + /** + * Reads a 32-bit, little-endian float from `buf` at the specified `offset`. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([1, 2, 3, 4]); + * + * console.log(buf.readFloatLE(0)); + * // Prints: 1.539989614439558e-36 + * console.log(buf.readFloatLE(1)); + * // Throws ERR_OUT_OF_RANGE. + * ``` + * @since v0.11.15 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. + */ + readFloatLE(offset?: number): number; + /** + * Reads a 32-bit, big-endian float from `buf` at the specified `offset`. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([1, 2, 3, 4]); + * + * console.log(buf.readFloatBE(0)); + * // Prints: 2.387939260590663e-38 + * ``` + * @since v0.11.15 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 4`. + */ + readFloatBE(offset?: number): number; + /** + * Reads a 64-bit, little-endian double from `buf` at the specified `offset`. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]); + * + * console.log(buf.readDoubleLE(0)); + * // Prints: 5.447603722011605e-270 + * console.log(buf.readDoubleLE(1)); + * // Throws ERR_OUT_OF_RANGE. + * ``` + * @since v0.11.15 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 8`. + */ + readDoubleLE(offset?: number): number; + /** + * Reads a 64-bit, big-endian double from `buf` at the specified `offset`. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from([1, 2, 3, 4, 5, 6, 7, 8]); + * + * console.log(buf.readDoubleBE(0)); + * // Prints: 8.20788039913184e-304 + * ``` + * @since v0.11.15 + * @param [offset=0] Number of bytes to skip before starting to read. Must satisfy `0 <= offset <= buf.length - 8`. + */ + readDoubleBE(offset?: number): number; + reverse(): this; + /** + * Interprets `buf` as an array of unsigned 16-bit integers and swaps the + * byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 2. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]); + * + * console.log(buf1); + * // Prints: + * + * buf1.swap16(); + * + * console.log(buf1); + * // Prints: + * + * const buf2 = Buffer.from([0x1, 0x2, 0x3]); + * + * buf2.swap16(); + * // Throws ERR_INVALID_BUFFER_SIZE. + * ``` + * + * One convenient use of `buf.swap16()` is to perform a fast in-place conversion + * between UTF-16 little-endian and UTF-16 big-endian: + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from('This is little-endian UTF-16', 'utf16le'); + * buf.swap16(); // Convert to big-endian UTF-16 text. + * ``` + * @since v5.10.0 + * @return A reference to `buf`. + */ + swap16(): Buffer; + /** + * Interprets `buf` as an array of unsigned 32-bit integers and swaps the + * byte order _in-place_. Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 4. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]); + * + * console.log(buf1); + * // Prints: + * + * buf1.swap32(); + * + * console.log(buf1); + * // Prints: + * + * const buf2 = Buffer.from([0x1, 0x2, 0x3]); + * + * buf2.swap32(); + * // Throws ERR_INVALID_BUFFER_SIZE. + * ``` + * @since v5.10.0 + * @return A reference to `buf`. + */ + swap32(): Buffer; + /** + * Interprets `buf` as an array of 64-bit numbers and swaps byte order _in-place_. + * Throws `ERR_INVALID_BUFFER_SIZE` if `buf.length` is not a multiple of 8. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf1 = Buffer.from([0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8]); + * + * console.log(buf1); + * // Prints: + * + * buf1.swap64(); + * + * console.log(buf1); + * // Prints: + * + * const buf2 = Buffer.from([0x1, 0x2, 0x3]); + * + * buf2.swap64(); + * // Throws ERR_INVALID_BUFFER_SIZE. + * ``` + * @since v6.3.0 + * @return A reference to `buf`. + */ + swap64(): Buffer; + /** + * Writes `value` to `buf` at the specified `offset`. `value` must be a + * valid unsigned 8-bit integer. Behavior is undefined when `value` is anything + * other than an unsigned 8-bit integer. + * + * This function is also available under the `writeUint8` alias. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(4); + * + * buf.writeUInt8(0x3, 0); + * buf.writeUInt8(0x4, 1); + * buf.writeUInt8(0x23, 2); + * buf.writeUInt8(0x42, 3); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.0 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 1`. + * @return `offset` plus the number of bytes written. + */ + writeUInt8(value: number, offset?: number): number; + /** + * @alias Buffer.writeUInt8 + * @since v14.9.0, v12.19.0 + */ + writeUint8(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid unsigned 16-bit integer. Behavior is undefined when `value` is + * anything other than an unsigned 16-bit integer. + * + * This function is also available under the `writeUint16LE` alias. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(4); + * + * buf.writeUInt16LE(0xdead, 0); + * buf.writeUInt16LE(0xbeef, 2); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.5 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. + * @return `offset` plus the number of bytes written. + */ + writeUInt16LE(value: number, offset?: number): number; + /** + * @alias Buffer.writeUInt16LE + * @since v14.9.0, v12.19.0 + */ + writeUint16LE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid unsigned 16-bit integer. Behavior is undefined when `value`is anything other than an + * unsigned 16-bit integer. + * + * This function is also available under the `writeUint16BE` alias. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(4); + * + * buf.writeUInt16BE(0xdead, 0); + * buf.writeUInt16BE(0xbeef, 2); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.5 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. + * @return `offset` plus the number of bytes written. + */ + writeUInt16BE(value: number, offset?: number): number; + /** + * @alias Buffer.writeUInt16BE + * @since v14.9.0, v12.19.0 + */ + writeUint16BE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid unsigned 32-bit integer. Behavior is undefined when `value` is + * anything other than an unsigned 32-bit integer. + * + * This function is also available under the `writeUint32LE` alias. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(4); + * + * buf.writeUInt32LE(0xfeedface, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.5 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. + * @return `offset` plus the number of bytes written. + */ + writeUInt32LE(value: number, offset?: number): number; + /** + * @alias Buffer.writeUInt32LE + * @since v14.9.0, v12.19.0 + */ + writeUint32LE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid unsigned 32-bit integer. Behavior is undefined when `value`is anything other than an + * unsigned 32-bit integer. + * + * This function is also available under the `writeUint32BE` alias. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(4); + * + * buf.writeUInt32BE(0xfeedface, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.5 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. + * @return `offset` plus the number of bytes written. + */ + writeUInt32BE(value: number, offset?: number): number; + /** + * @alias Buffer.writeUInt32BE + * @since v14.9.0, v12.19.0 + */ + writeUint32BE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset`. `value` must be a valid + * signed 8-bit integer. Behavior is undefined when `value` is anything other than + * a signed 8-bit integer. + * + * `value` is interpreted and written as a two's complement signed integer. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(2); + * + * buf.writeInt8(2, 0); + * buf.writeInt8(-2, 1); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.0 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 1`. + * @return `offset` plus the number of bytes written. + */ + writeInt8(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid signed 16-bit integer. Behavior is undefined when `value` is + * anything other than a signed 16-bit integer. + * + * The `value` is interpreted and written as a two's complement signed integer. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(2); + * + * buf.writeInt16LE(0x0304, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.5 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. + * @return `offset` plus the number of bytes written. + */ + writeInt16LE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid signed 16-bit integer. Behavior is undefined when `value` is + * anything other than a signed 16-bit integer. + * + * The `value` is interpreted and written as a two's complement signed integer. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(2); + * + * buf.writeInt16BE(0x0102, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.5 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 2`. + * @return `offset` plus the number of bytes written. + */ + writeInt16BE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a valid signed 32-bit integer. Behavior is undefined when `value` is + * anything other than a signed 32-bit integer. + * + * The `value` is interpreted and written as a two's complement signed integer. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(4); + * + * buf.writeInt32LE(0x05060708, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.5 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. + * @return `offset` plus the number of bytes written. + */ + writeInt32LE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a valid signed 32-bit integer. Behavior is undefined when `value` is + * anything other than a signed 32-bit integer. + * + * The `value` is interpreted and written as a two's complement signed integer. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(4); + * + * buf.writeInt32BE(0x01020304, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.5.5 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. + * @return `offset` plus the number of bytes written. + */ + writeInt32BE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as little-endian. Behavior is + * undefined when `value` is anything other than a JavaScript number. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(4); + * + * buf.writeFloatLE(0xcafebabe, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.11.15 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. + * @return `offset` plus the number of bytes written. + */ + writeFloatLE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as big-endian. Behavior is + * undefined when `value` is anything other than a JavaScript number. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(4); + * + * buf.writeFloatBE(0xcafebabe, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.11.15 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 4`. + * @return `offset` plus the number of bytes written. + */ + writeFloatBE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as little-endian. The `value`must be a JavaScript number. Behavior is undefined when `value` is anything + * other than a JavaScript number. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(8); + * + * buf.writeDoubleLE(123.456, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.11.15 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 8`. + * @return `offset` plus the number of bytes written. + */ + writeDoubleLE(value: number, offset?: number): number; + /** + * Writes `value` to `buf` at the specified `offset` as big-endian. The `value`must be a JavaScript number. Behavior is undefined when `value` is anything + * other than a JavaScript number. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(8); + * + * buf.writeDoubleBE(123.456, 0); + * + * console.log(buf); + * // Prints: + * ``` + * @since v0.11.15 + * @param value Number to be written to `buf`. + * @param [offset=0] Number of bytes to skip before starting to write. Must satisfy `0 <= offset <= buf.length - 8`. + * @return `offset` plus the number of bytes written. + */ + writeDoubleBE(value: number, offset?: number): number; + /** + * Fills `buf` with the specified `value`. If the `offset` and `end` are not given, + * the entire `buf` will be filled: + * + * ```js + * import { Buffer } from 'buffer'; + * + * // Fill a `Buffer` with the ASCII character 'h'. + * + * const b = Buffer.allocUnsafe(50).fill('h'); + * + * console.log(b.toString()); + * // Prints: hhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhhh + * ``` + * + * `value` is coerced to a `uint32` value if it is not a string, `Buffer`, or + * integer. If the resulting integer is greater than `255` (decimal), `buf` will be + * filled with `value & 255`. + * + * If the final write of a `fill()` operation falls on a multi-byte character, + * then only the bytes of that character that fit into `buf` are written: + * + * ```js + * import { Buffer } from 'buffer'; + * + * // Fill a `Buffer` with character that takes up two bytes in UTF-8. + * + * console.log(Buffer.allocUnsafe(5).fill('\u0222')); + * // Prints: + * ``` + * + * If `value` contains invalid characters, it is truncated; if no valid + * fill data remains, an exception is thrown: + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.allocUnsafe(5); + * + * console.log(buf.fill('a')); + * // Prints: + * console.log(buf.fill('aazz', 'hex')); + * // Prints: + * console.log(buf.fill('zz', 'hex')); + * // Throws an exception. + * ``` + * @since v0.5.0 + * @param value The value with which to fill `buf`. + * @param [offset=0] Number of bytes to skip before starting to fill `buf`. + * @param [end=buf.length] Where to stop filling `buf` (not inclusive). + * @param [encoding='utf8'] The encoding for `value` if `value` is a string. + * @return A reference to `buf`. + */ + fill(value: string | Uint8Array | number, offset?: number, end?: number, encoding?: BufferEncoding): this; + /** + * If `value` is: + * + * * a string, `value` is interpreted according to the character encoding in`encoding`. + * * a `Buffer` or [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array), `value` will be used in its entirety. + * To compare a partial `Buffer`, use `buf.slice()`. + * * a number, `value` will be interpreted as an unsigned 8-bit integer + * value between `0` and `255`. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from('this is a buffer'); + * + * console.log(buf.indexOf('this')); + * // Prints: 0 + * console.log(buf.indexOf('is')); + * // Prints: 2 + * console.log(buf.indexOf(Buffer.from('a buffer'))); + * // Prints: 8 + * console.log(buf.indexOf(97)); + * // Prints: 8 (97 is the decimal ASCII value for 'a') + * console.log(buf.indexOf(Buffer.from('a buffer example'))); + * // Prints: -1 + * console.log(buf.indexOf(Buffer.from('a buffer example').slice(0, 8))); + * // Prints: 8 + * + * const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'utf16le'); + * + * console.log(utf16Buffer.indexOf('\u03a3', 0, 'utf16le')); + * // Prints: 4 + * console.log(utf16Buffer.indexOf('\u03a3', -4, 'utf16le')); + * // Prints: 6 + * ``` + * + * If `value` is not a string, number, or `Buffer`, this method will throw a`TypeError`. If `value` is a number, it will be coerced to a valid byte value, + * an integer between 0 and 255. + * + * If `byteOffset` is not a number, it will be coerced to a number. If the result + * of coercion is `NaN` or `0`, then the entire buffer will be searched. This + * behavior matches [`String.prototype.indexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf). + * + * ```js + * import { Buffer } from 'buffer'; + * + * const b = Buffer.from('abcdef'); + * + * // Passing a value that's a number, but not a valid byte. + * // Prints: 2, equivalent to searching for 99 or 'c'. + * console.log(b.indexOf(99.9)); + * console.log(b.indexOf(256 + 99)); + * + * // Passing a byteOffset that coerces to NaN or 0. + * // Prints: 1, searching the whole buffer. + * console.log(b.indexOf('b', undefined)); + * console.log(b.indexOf('b', {})); + * console.log(b.indexOf('b', null)); + * console.log(b.indexOf('b', [])); + * ``` + * + * If `value` is an empty string or empty `Buffer` and `byteOffset` is less + * than `buf.length`, `byteOffset` will be returned. If `value` is empty and`byteOffset` is at least `buf.length`, `buf.length` will be returned. + * @since v1.5.0 + * @param value What to search for. + * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`. + * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`. + * @return The index of the first occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`. + */ + indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number; + /** + * Identical to `buf.indexOf()`, except the last occurrence of `value` is found + * rather than the first occurrence. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from('this buffer is a buffer'); + * + * console.log(buf.lastIndexOf('this')); + * // Prints: 0 + * console.log(buf.lastIndexOf('buffer')); + * // Prints: 17 + * console.log(buf.lastIndexOf(Buffer.from('buffer'))); + * // Prints: 17 + * console.log(buf.lastIndexOf(97)); + * // Prints: 15 (97 is the decimal ASCII value for 'a') + * console.log(buf.lastIndexOf(Buffer.from('yolo'))); + * // Prints: -1 + * console.log(buf.lastIndexOf('buffer', 5)); + * // Prints: 5 + * console.log(buf.lastIndexOf('buffer', 4)); + * // Prints: -1 + * + * const utf16Buffer = Buffer.from('\u039a\u0391\u03a3\u03a3\u0395', 'utf16le'); + * + * console.log(utf16Buffer.lastIndexOf('\u03a3', undefined, 'utf16le')); + * // Prints: 6 + * console.log(utf16Buffer.lastIndexOf('\u03a3', -5, 'utf16le')); + * // Prints: 4 + * ``` + * + * If `value` is not a string, number, or `Buffer`, this method will throw a`TypeError`. If `value` is a number, it will be coerced to a valid byte value, + * an integer between 0 and 255. + * + * If `byteOffset` is not a number, it will be coerced to a number. Any arguments + * that coerce to `NaN`, like `{}` or `undefined`, will search the whole buffer. + * This behavior matches [`String.prototype.lastIndexOf()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf). + * + * ```js + * import { Buffer } from 'buffer'; + * + * const b = Buffer.from('abcdef'); + * + * // Passing a value that's a number, but not a valid byte. + * // Prints: 2, equivalent to searching for 99 or 'c'. + * console.log(b.lastIndexOf(99.9)); + * console.log(b.lastIndexOf(256 + 99)); + * + * // Passing a byteOffset that coerces to NaN. + * // Prints: 1, searching the whole buffer. + * console.log(b.lastIndexOf('b', undefined)); + * console.log(b.lastIndexOf('b', {})); + * + * // Passing a byteOffset that coerces to 0. + * // Prints: -1, equivalent to passing 0. + * console.log(b.lastIndexOf('b', null)); + * console.log(b.lastIndexOf('b', [])); + * ``` + * + * If `value` is an empty string or empty `Buffer`, `byteOffset` will be returned. + * @since v6.0.0 + * @param value What to search for. + * @param [byteOffset=buf.length - 1] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`. + * @param [encoding='utf8'] If `value` is a string, this is the encoding used to determine the binary representation of the string that will be searched for in `buf`. + * @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`. + */ + lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number; + /** + * Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) of `[index, byte]` pairs from the contents + * of `buf`. + * + * ```js + * import { Buffer } from 'buffer'; + * + * // Log the entire contents of a `Buffer`. + * + * const buf = Buffer.from('buffer'); + * + * for (const pair of buf.entries()) { + * console.log(pair); + * } + * // Prints: + * // [0, 98] + * // [1, 117] + * // [2, 102] + * // [3, 102] + * // [4, 101] + * // [5, 114] + * ``` + * @since v1.1.0 + */ + entries(): IterableIterator<[number, number]>; + /** + * Equivalent to `buf.indexOf() !== -1`. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from('this is a buffer'); + * + * console.log(buf.includes('this')); + * // Prints: true + * console.log(buf.includes('is')); + * // Prints: true + * console.log(buf.includes(Buffer.from('a buffer'))); + * // Prints: true + * console.log(buf.includes(97)); + * // Prints: true (97 is the decimal ASCII value for 'a') + * console.log(buf.includes(Buffer.from('a buffer example'))); + * // Prints: false + * console.log(buf.includes(Buffer.from('a buffer example').slice(0, 8))); + * // Prints: true + * console.log(buf.includes('this', 4)); + * // Prints: false + * ``` + * @since v5.3.0 + * @param value What to search for. + * @param [byteOffset=0] Where to begin searching in `buf`. If negative, then offset is calculated from the end of `buf`. + * @param [encoding='utf8'] If `value` is a string, this is its encoding. + * @return `true` if `value` was found in `buf`, `false` otherwise. + */ + includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean; + /** + * Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) of `buf` keys (indices). + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from('buffer'); + * + * for (const key of buf.keys()) { + * console.log(key); + * } + * // Prints: + * // 0 + * // 1 + * // 2 + * // 3 + * // 4 + * // 5 + * ``` + * @since v1.1.0 + */ + keys(): IterableIterator; + /** + * Creates and returns an [iterator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols) for `buf` values (bytes). This function is + * called automatically when a `Buffer` is used in a `for..of` statement. + * + * ```js + * import { Buffer } from 'buffer'; + * + * const buf = Buffer.from('buffer'); + * + * for (const value of buf.values()) { + * console.log(value); + * } + * // Prints: + * // 98 + * // 117 + * // 102 + * // 102 + * // 101 + * // 114 + * + * for (const value of buf) { + * console.log(value); + * } + * // Prints: + * // 98 + * // 117 + * // 102 + * // 102 + * // 101 + * // 114 + * ``` + * @since v1.1.0 + */ + values(): IterableIterator; + } + var Buffer: BufferConstructor; + /** + * Decodes a string of Base64-encoded data into bytes, and encodes those bytes + * into a string using Latin-1 (ISO-8859-1). + * + * The `data` may be any JavaScript-value that can be coerced into a string. + * + * **This function is only provided for compatibility with legacy web platform APIs** + * **and should never be used in new code, because they use strings to represent** + * **binary data and predate the introduction of typed arrays in JavaScript.** + * **For code running using Node.js APIs, converting between base64-encoded strings** + * **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.** + * @since v15.13.0, v14.17.0 + * @deprecated Use `Buffer.from(data, 'base64')` instead. + * @param data The Base64-encoded input string. + */ + function atob(data: string): string; + /** + * Decodes a string into bytes using Latin-1 (ISO-8859), and encodes those bytes + * into a string using Base64. + * + * The `data` may be any JavaScript-value that can be coerced into a string. + * + * **This function is only provided for compatibility with legacy web platform APIs** + * **and should never be used in new code, because they use strings to represent** + * **binary data and predate the introduction of typed arrays in JavaScript.** + * **For code running using Node.js APIs, converting between base64-encoded strings** + * **and binary data should be performed using `Buffer.from(str, 'base64')` and`buf.toString('base64')`.** + * @since v15.13.0, v14.17.0 + * @deprecated Use `buf.toString('base64')` instead. + * @param data An ASCII (Latin1) string. + */ + function btoa(data: string): string; + } +} +declare module 'node:buffer' { + export * from 'buffer'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/child_process.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/child_process.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..7eae502efadb680f148d15f5642e2fb2e39a48ff --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/child_process.d.ts" @@ -0,0 +1,1366 @@ +/** + * The `child_process` module provides the ability to spawn subprocesses in + * a manner that is similar, but not identical, to [`popen(3)`](http://man7.org/linux/man-pages/man3/popen.3.html). This capability + * is primarily provided by the {@link spawn} function: + * + * ```js + * const { spawn } = require('child_process'); + * const ls = spawn('ls', ['-lh', '/usr']); + * + * ls.stdout.on('data', (data) => { + * console.log(`stdout: ${data}`); + * }); + * + * ls.stderr.on('data', (data) => { + * console.error(`stderr: ${data}`); + * }); + * + * ls.on('close', (code) => { + * console.log(`child process exited with code ${code}`); + * }); + * ``` + * + * By default, pipes for `stdin`, `stdout`, and `stderr` are established between + * the parent Node.js process and the spawned subprocess. These pipes have + * limited (and platform-specific) capacity. If the subprocess writes to + * stdout in excess of that limit without the output being captured, the + * subprocess blocks waiting for the pipe buffer to accept more data. This is + * identical to the behavior of pipes in the shell. Use the `{ stdio: 'ignore' }`option if the output will not be consumed. + * + * The command lookup is performed using the `options.env.PATH` environment + * variable if it is in the `options` object. Otherwise, `process.env.PATH` is + * used. + * + * On Windows, environment variables are case-insensitive. Node.js + * lexicographically sorts the `env` keys and uses the first one that + * case-insensitively matches. Only first (in lexicographic order) entry will be + * passed to the subprocess. This might lead to issues on Windows when passing + * objects to the `env` option that have multiple variants of the same key, such as`PATH` and `Path`. + * + * The {@link spawn} method spawns the child process asynchronously, + * without blocking the Node.js event loop. The {@link spawnSync} function provides equivalent functionality in a synchronous manner that blocks + * the event loop until the spawned process either exits or is terminated. + * + * For convenience, the `child_process` module provides a handful of synchronous + * and asynchronous alternatives to {@link spawn} and {@link spawnSync}. Each of these alternatives are implemented on + * top of {@link spawn} or {@link spawnSync}. + * + * * {@link exec}: spawns a shell and runs a command within that + * shell, passing the `stdout` and `stderr` to a callback function when + * complete. + * * {@link execFile}: similar to {@link exec} except + * that it spawns the command directly without first spawning a shell by + * default. + * * {@link fork}: spawns a new Node.js process and invokes a + * specified module with an IPC communication channel established that allows + * sending messages between parent and child. + * * {@link execSync}: a synchronous version of {@link exec} that will block the Node.js event loop. + * * {@link execFileSync}: a synchronous version of {@link execFile} that will block the Node.js event loop. + * + * For certain use cases, such as automating shell scripts, the `synchronous counterparts` may be more convenient. In many cases, however, + * the synchronous methods can have significant impact on performance due to + * stalling the event loop while spawned processes complete. + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/child_process.js) + */ +declare module 'child_process' { + import { ObjectEncodingOptions } from 'node:fs'; + import { EventEmitter, Abortable } from 'node:events'; + import * as net from 'node:net'; + import { Writable, Readable, Stream, Pipe } from 'node:stream'; + import { URL } from 'node:url'; + type Serializable = string | object | number | boolean | bigint; + type SendHandle = net.Socket | net.Server; + /** + * Instances of the `ChildProcess` represent spawned child processes. + * + * Instances of `ChildProcess` are not intended to be created directly. Rather, + * use the {@link spawn}, {@link exec},{@link execFile}, or {@link fork} methods to create + * instances of `ChildProcess`. + * @since v2.2.0 + */ + class ChildProcess extends EventEmitter { + /** + * A `Writable Stream` that represents the child process's `stdin`. + * + * If a child process waits to read all of its input, the child will not continue + * until this stream has been closed via `end()`. + * + * If the child was spawned with `stdio[0]` set to anything other than `'pipe'`, + * then this will be `null`. + * + * `subprocess.stdin` is an alias for `subprocess.stdio[0]`. Both properties will + * refer to the same value. + * + * The `subprocess.stdin` property can be `undefined` if the child process could + * not be successfully spawned. + * @since v0.1.90 + */ + stdin: Writable | null; + /** + * A `Readable Stream` that represents the child process's `stdout`. + * + * If the child was spawned with `stdio[1]` set to anything other than `'pipe'`, + * then this will be `null`. + * + * `subprocess.stdout` is an alias for `subprocess.stdio[1]`. Both properties will + * refer to the same value. + * + * ```js + * const { spawn } = require('child_process'); + * + * const subprocess = spawn('ls'); + * + * subprocess.stdout.on('data', (data) => { + * console.log(`Received chunk ${data}`); + * }); + * ``` + * + * The `subprocess.stdout` property can be `null` if the child process could + * not be successfully spawned. + * @since v0.1.90 + */ + stdout: Readable | null; + /** + * A `Readable Stream` that represents the child process's `stderr`. + * + * If the child was spawned with `stdio[2]` set to anything other than `'pipe'`, + * then this will be `null`. + * + * `subprocess.stderr` is an alias for `subprocess.stdio[2]`. Both properties will + * refer to the same value. + * + * The `subprocess.stderr` property can be `null` if the child process could + * not be successfully spawned. + * @since v0.1.90 + */ + stderr: Readable | null; + /** + * The `subprocess.channel` property is a reference to the child's IPC channel. If + * no IPC channel currently exists, this property is `undefined`. + * @since v7.1.0 + */ + readonly channel?: Pipe | null | undefined; + /** + * A sparse array of pipes to the child process, corresponding with positions in + * the `stdio` option passed to {@link spawn} that have been set + * to the value `'pipe'`. `subprocess.stdio[0]`, `subprocess.stdio[1]`, and`subprocess.stdio[2]` are also available as `subprocess.stdin`,`subprocess.stdout`, and `subprocess.stderr`, + * respectively. + * + * In the following example, only the child's fd `1` (stdout) is configured as a + * pipe, so only the parent's `subprocess.stdio[1]` is a stream, all other values + * in the array are `null`. + * + * ```js + * const assert = require('assert'); + * const fs = require('fs'); + * const child_process = require('child_process'); + * + * const subprocess = child_process.spawn('ls', { + * stdio: [ + * 0, // Use parent's stdin for child. + * 'pipe', // Pipe child's stdout to parent. + * fs.openSync('err.out', 'w'), // Direct child's stderr to a file. + * ] + * }); + * + * assert.strictEqual(subprocess.stdio[0], null); + * assert.strictEqual(subprocess.stdio[0], subprocess.stdin); + * + * assert(subprocess.stdout); + * assert.strictEqual(subprocess.stdio[1], subprocess.stdout); + * + * assert.strictEqual(subprocess.stdio[2], null); + * assert.strictEqual(subprocess.stdio[2], subprocess.stderr); + * ``` + * + * The `subprocess.stdio` property can be `undefined` if the child process could + * not be successfully spawned. + * @since v0.7.10 + */ + readonly stdio: [ + Writable | null, + // stdin + Readable | null, + // stdout + Readable | null, + // stderr + Readable | Writable | null | undefined, + // extra + Readable | Writable | null | undefined // extra + ]; + /** + * The `subprocess.killed` property indicates whether the child process + * successfully received a signal from `subprocess.kill()`. The `killed` property + * does not indicate that the child process has been terminated. + * @since v0.5.10 + */ + readonly killed: boolean; + /** + * Returns the process identifier (PID) of the child process. If the child process + * fails to spawn due to errors, then the value is `undefined` and `error` is + * emitted. + * + * ```js + * const { spawn } = require('child_process'); + * const grep = spawn('grep', ['ssh']); + * + * console.log(`Spawned child pid: ${grep.pid}`); + * grep.stdin.end(); + * ``` + * @since v0.1.90 + */ + readonly pid?: number | undefined; + /** + * The `subprocess.connected` property indicates whether it is still possible to + * send and receive messages from a child process. When `subprocess.connected` is`false`, it is no longer possible to send or receive messages. + * @since v0.7.2 + */ + readonly connected: boolean; + /** + * The `subprocess.exitCode` property indicates the exit code of the child process. + * If the child process is still running, the field will be `null`. + */ + readonly exitCode: number | null; + /** + * The `subprocess.signalCode` property indicates the signal received by + * the child process if any, else `null`. + */ + readonly signalCode: NodeJS.Signals | null; + /** + * The `subprocess.spawnargs` property represents the full list of command-line + * arguments the child process was launched with. + */ + readonly spawnargs: string[]; + /** + * The `subprocess.spawnfile` property indicates the executable file name of + * the child process that is launched. + * + * For {@link fork}, its value will be equal to `process.execPath`. + * For {@link spawn}, its value will be the name of + * the executable file. + * For {@link exec}, its value will be the name of the shell + * in which the child process is launched. + */ + readonly spawnfile: string; + /** + * The `subprocess.kill()` method sends a signal to the child process. If no + * argument is given, the process will be sent the `'SIGTERM'` signal. See [`signal(7)`](http://man7.org/linux/man-pages/man7/signal.7.html) for a list of available signals. This function + * returns `true` if [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) succeeds, and `false` otherwise. + * + * ```js + * const { spawn } = require('child_process'); + * const grep = spawn('grep', ['ssh']); + * + * grep.on('close', (code, signal) => { + * console.log( + * `child process terminated due to receipt of signal ${signal}`); + * }); + * + * // Send SIGHUP to process. + * grep.kill('SIGHUP'); + * ``` + * + * The `ChildProcess` object may emit an `'error'` event if the signal + * cannot be delivered. Sending a signal to a child process that has already exited + * is not an error but may have unforeseen consequences. Specifically, if the + * process identifier (PID) has been reassigned to another process, the signal will + * be delivered to that process instead which can have unexpected results. + * + * While the function is called `kill`, the signal delivered to the child process + * may not actually terminate the process. + * + * See [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) for reference. + * + * On Windows, where POSIX signals do not exist, the `signal` argument will be + * ignored, and the process will be killed forcefully and abruptly (similar to`'SIGKILL'`). + * See `Signal Events` for more details. + * + * On Linux, child processes of child processes will not be terminated + * when attempting to kill their parent. This is likely to happen when running a + * new process in a shell or with the use of the `shell` option of `ChildProcess`: + * + * ```js + * 'use strict'; + * const { spawn } = require('child_process'); + * + * const subprocess = spawn( + * 'sh', + * [ + * '-c', + * `node -e "setInterval(() => { + * console.log(process.pid, 'is alive') + * }, 500);"`, + * ], { + * stdio: ['inherit', 'inherit', 'inherit'] + * } + * ); + * + * setTimeout(() => { + * subprocess.kill(); // Does not terminate the Node.js process in the shell. + * }, 2000); + * ``` + * @since v0.1.90 + */ + kill(signal?: NodeJS.Signals | number): boolean; + /** + * When an IPC channel has been established between the parent and child ( + * i.e. when using {@link fork}), the `subprocess.send()` method can + * be used to send messages to the child process. When the child process is a + * Node.js instance, these messages can be received via the `'message'` event. + * + * The message goes through serialization and parsing. The resulting + * message might not be the same as what is originally sent. + * + * For example, in the parent script: + * + * ```js + * const cp = require('child_process'); + * const n = cp.fork(`${__dirname}/sub.js`); + * + * n.on('message', (m) => { + * console.log('PARENT got message:', m); + * }); + * + * // Causes the child to print: CHILD got message: { hello: 'world' } + * n.send({ hello: 'world' }); + * ``` + * + * And then the child script, `'sub.js'` might look like this: + * + * ```js + * process.on('message', (m) => { + * console.log('CHILD got message:', m); + * }); + * + * // Causes the parent to print: PARENT got message: { foo: 'bar', baz: null } + * process.send({ foo: 'bar', baz: NaN }); + * ``` + * + * Child Node.js processes will have a `process.send()` method of their own + * that allows the child to send messages back to the parent. + * + * There is a special case when sending a `{cmd: 'NODE_foo'}` message. Messages + * containing a `NODE_` prefix in the `cmd` property are reserved for use within + * Node.js core and will not be emitted in the child's `'message'` event. Rather, such messages are emitted using the`'internalMessage'` event and are consumed internally by Node.js. + * Applications should avoid using such messages or listening for`'internalMessage'` events as it is subject to change without notice. + * + * The optional `sendHandle` argument that may be passed to `subprocess.send()` is + * for passing a TCP server or socket object to the child process. The child will + * receive the object as the second argument passed to the callback function + * registered on the `'message'` event. Any data that is received + * and buffered in the socket will not be sent to the child. + * + * The optional `callback` is a function that is invoked after the message is + * sent but before the child may have received it. The function is called with a + * single argument: `null` on success, or an `Error` object on failure. + * + * If no `callback` function is provided and the message cannot be sent, an`'error'` event will be emitted by the `ChildProcess` object. This can + * happen, for instance, when the child process has already exited. + * + * `subprocess.send()` will return `false` if the channel has closed or when the + * backlog of unsent messages exceeds a threshold that makes it unwise to send + * more. Otherwise, the method returns `true`. The `callback` function can be + * used to implement flow control. + * + * #### Example: sending a server object + * + * The `sendHandle` argument can be used, for instance, to pass the handle of + * a TCP server object to the child process as illustrated in the example below: + * + * ```js + * const subprocess = require('child_process').fork('subprocess.js'); + * + * // Open up the server object and send the handle. + * const server = require('net').createServer(); + * server.on('connection', (socket) => { + * socket.end('handled by parent'); + * }); + * server.listen(1337, () => { + * subprocess.send('server', server); + * }); + * ``` + * + * The child would then receive the server object as: + * + * ```js + * process.on('message', (m, server) => { + * if (m === 'server') { + * server.on('connection', (socket) => { + * socket.end('handled by child'); + * }); + * } + * }); + * ``` + * + * Once the server is now shared between the parent and child, some connections + * can be handled by the parent and some by the child. + * + * While the example above uses a server created using the `net` module, `dgram`module servers use exactly the same workflow with the exceptions of listening on + * a `'message'` event instead of `'connection'` and using `server.bind()` instead + * of `server.listen()`. This is, however, currently only supported on Unix + * platforms. + * + * #### Example: sending a socket object + * + * Similarly, the `sendHandler` argument can be used to pass the handle of a + * socket to the child process. The example below spawns two children that each + * handle connections with "normal" or "special" priority: + * + * ```js + * const { fork } = require('child_process'); + * const normal = fork('subprocess.js', ['normal']); + * const special = fork('subprocess.js', ['special']); + * + * // Open up the server and send sockets to child. Use pauseOnConnect to prevent + * // the sockets from being read before they are sent to the child process. + * const server = require('net').createServer({ pauseOnConnect: true }); + * server.on('connection', (socket) => { + * + * // If this is special priority... + * if (socket.remoteAddress === '74.125.127.100') { + * special.send('socket', socket); + * return; + * } + * // This is normal priority. + * normal.send('socket', socket); + * }); + * server.listen(1337); + * ``` + * + * The `subprocess.js` would receive the socket handle as the second argument + * passed to the event callback function: + * + * ```js + * process.on('message', (m, socket) => { + * if (m === 'socket') { + * if (socket) { + * // Check that the client socket exists. + * // It is possible for the socket to be closed between the time it is + * // sent and the time it is received in the child process. + * socket.end(`Request handled with ${process.argv[2]} priority`); + * } + * } + * }); + * ``` + * + * Do not use `.maxConnections` on a socket that has been passed to a subprocess. + * The parent cannot track when the socket is destroyed. + * + * Any `'message'` handlers in the subprocess should verify that `socket` exists, + * as the connection may have been closed during the time it takes to send the + * connection to the child. + * @since v0.5.9 + * @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. `options` supports the following properties: + */ + send(message: Serializable, callback?: (error: Error | null) => void): boolean; + send(message: Serializable, sendHandle?: SendHandle, callback?: (error: Error | null) => void): boolean; + send(message: Serializable, sendHandle?: SendHandle, options?: MessageOptions, callback?: (error: Error | null) => void): boolean; + /** + * Closes the IPC channel between parent and child, allowing the child to exit + * gracefully once there are no other connections keeping it alive. After calling + * this method the `subprocess.connected` and `process.connected` properties in + * both the parent and child (respectively) will be set to `false`, and it will be + * no longer possible to pass messages between the processes. + * + * The `'disconnect'` event will be emitted when there are no messages in the + * process of being received. This will most often be triggered immediately after + * calling `subprocess.disconnect()`. + * + * When the child process is a Node.js instance (e.g. spawned using {@link fork}), the `process.disconnect()` method can be invoked + * within the child process to close the IPC channel as well. + * @since v0.7.2 + */ + disconnect(): void; + /** + * By default, the parent will wait for the detached child to exit. To prevent the + * parent from waiting for a given `subprocess` to exit, use the`subprocess.unref()` method. Doing so will cause the parent's event loop to not + * include the child in its reference count, allowing the parent to exit + * independently of the child, unless there is an established IPC channel between + * the child and the parent. + * + * ```js + * const { spawn } = require('child_process'); + * + * const subprocess = spawn(process.argv[0], ['child_program.js'], { + * detached: true, + * stdio: 'ignore' + * }); + * + * subprocess.unref(); + * ``` + * @since v0.7.10 + */ + unref(): void; + /** + * Calling `subprocess.ref()` after making a call to `subprocess.unref()` will + * restore the removed reference count for the child process, forcing the parent + * to wait for the child to exit before exiting itself. + * + * ```js + * const { spawn } = require('child_process'); + * + * const subprocess = spawn(process.argv[0], ['child_program.js'], { + * detached: true, + * stdio: 'ignore' + * }); + * + * subprocess.unref(); + * subprocess.ref(); + * ``` + * @since v0.7.10 + */ + ref(): void; + /** + * events.EventEmitter + * 1. close + * 2. disconnect + * 3. error + * 4. exit + * 5. message + * 6. spawn + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: 'close', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + addListener(event: 'disconnect', listener: () => void): this; + addListener(event: 'error', listener: (err: Error) => void): this; + addListener(event: 'exit', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + addListener(event: 'message', listener: (message: Serializable, sendHandle: SendHandle) => void): this; + addListener(event: 'spawn', listener: () => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: 'close', code: number | null, signal: NodeJS.Signals | null): boolean; + emit(event: 'disconnect'): boolean; + emit(event: 'error', err: Error): boolean; + emit(event: 'exit', code: number | null, signal: NodeJS.Signals | null): boolean; + emit(event: 'message', message: Serializable, sendHandle: SendHandle): boolean; + emit(event: 'spawn', listener: () => void): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: 'close', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + on(event: 'disconnect', listener: () => void): this; + on(event: 'error', listener: (err: Error) => void): this; + on(event: 'exit', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + on(event: 'message', listener: (message: Serializable, sendHandle: SendHandle) => void): this; + on(event: 'spawn', listener: () => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: 'close', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + once(event: 'disconnect', listener: () => void): this; + once(event: 'error', listener: (err: Error) => void): this; + once(event: 'exit', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + once(event: 'message', listener: (message: Serializable, sendHandle: SendHandle) => void): this; + once(event: 'spawn', listener: () => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: 'close', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + prependListener(event: 'disconnect', listener: () => void): this; + prependListener(event: 'error', listener: (err: Error) => void): this; + prependListener(event: 'exit', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + prependListener(event: 'message', listener: (message: Serializable, sendHandle: SendHandle) => void): this; + prependListener(event: 'spawn', listener: () => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'close', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + prependOnceListener(event: 'disconnect', listener: () => void): this; + prependOnceListener(event: 'error', listener: (err: Error) => void): this; + prependOnceListener(event: 'exit', listener: (code: number | null, signal: NodeJS.Signals | null) => void): this; + prependOnceListener(event: 'message', listener: (message: Serializable, sendHandle: SendHandle) => void): this; + prependOnceListener(event: 'spawn', listener: () => void): this; + } + // return this object when stdio option is undefined or not specified + interface ChildProcessWithoutNullStreams extends ChildProcess { + stdin: Writable; + stdout: Readable; + stderr: Readable; + readonly stdio: [ + Writable, + Readable, + Readable, + // stderr + Readable | Writable | null | undefined, + // extra, no modification + Readable | Writable | null | undefined // extra, no modification + ]; + } + // return this object when stdio option is a tuple of 3 + interface ChildProcessByStdio extends ChildProcess { + stdin: I; + stdout: O; + stderr: E; + readonly stdio: [ + I, + O, + E, + Readable | Writable | null | undefined, + // extra, no modification + Readable | Writable | null | undefined // extra, no modification + ]; + } + interface MessageOptions { + keepOpen?: boolean | undefined; + } + type IOType = 'overlapped' | 'pipe' | 'ignore' | 'inherit'; + type StdioOptions = IOType | Array; + type SerializationType = 'json' | 'advanced'; + interface MessagingOptions extends Abortable { + /** + * Specify the kind of serialization used for sending messages between processes. + * @default 'json' + */ + serialization?: SerializationType | undefined; + /** + * The signal value to be used when the spawned process will be killed by the abort signal. + * @default 'SIGTERM' + */ + killSignal?: NodeJS.Signals | number | undefined; + /** + * In milliseconds the maximum amount of time the process is allowed to run. + */ + timeout?: number | undefined; + } + interface ProcessEnvOptions { + uid?: number | undefined; + gid?: number | undefined; + cwd?: string | URL | undefined; + env?: NodeJS.ProcessEnv | undefined; + } + interface CommonOptions extends ProcessEnvOptions { + /** + * @default true + */ + windowsHide?: boolean | undefined; + /** + * @default 0 + */ + timeout?: number | undefined; + } + interface CommonSpawnOptions extends CommonOptions, MessagingOptions, Abortable { + argv0?: string | undefined; + stdio?: StdioOptions | undefined; + shell?: boolean | string | undefined; + windowsVerbatimArguments?: boolean | undefined; + } + interface SpawnOptions extends CommonSpawnOptions { + detached?: boolean | undefined; + } + interface SpawnOptionsWithoutStdio extends SpawnOptions { + stdio?: StdioPipeNamed | StdioPipe[] | undefined; + } + type StdioNull = 'inherit' | 'ignore' | Stream; + type StdioPipeNamed = 'pipe' | 'overlapped'; + type StdioPipe = undefined | null | StdioPipeNamed; + interface SpawnOptionsWithStdioTuple extends SpawnOptions { + stdio: [Stdin, Stdout, Stderr]; + } + /** + * The `child_process.spawn()` method spawns a new process using the given`command`, with command-line arguments in `args`. If omitted, `args` defaults + * to an empty array. + * + * **If the `shell` option is enabled, do not pass unsanitized user input to this** + * **function. Any input containing shell metacharacters may be used to trigger** + * **arbitrary command execution.** + * + * A third argument may be used to specify additional options, with these defaults: + * + * ```js + * const defaults = { + * cwd: undefined, + * env: process.env + * }; + * ``` + * + * Use `cwd` to specify the working directory from which the process is spawned. + * If not given, the default is to inherit the current working directory. If given, + * but the path does not exist, the child process emits an `ENOENT` error + * and exits immediately. `ENOENT` is also emitted when the command + * does not exist. + * + * Use `env` to specify environment variables that will be visible to the new + * process, the default is `process.env`. + * + * `undefined` values in `env` will be ignored. + * + * Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the + * exit code: + * + * ```js + * const { spawn } = require('child_process'); + * const ls = spawn('ls', ['-lh', '/usr']); + * + * ls.stdout.on('data', (data) => { + * console.log(`stdout: ${data}`); + * }); + * + * ls.stderr.on('data', (data) => { + * console.error(`stderr: ${data}`); + * }); + * + * ls.on('close', (code) => { + * console.log(`child process exited with code ${code}`); + * }); + * ``` + * + * Example: A very elaborate way to run `ps ax | grep ssh` + * + * ```js + * const { spawn } = require('child_process'); + * const ps = spawn('ps', ['ax']); + * const grep = spawn('grep', ['ssh']); + * + * ps.stdout.on('data', (data) => { + * grep.stdin.write(data); + * }); + * + * ps.stderr.on('data', (data) => { + * console.error(`ps stderr: ${data}`); + * }); + * + * ps.on('close', (code) => { + * if (code !== 0) { + * console.log(`ps process exited with code ${code}`); + * } + * grep.stdin.end(); + * }); + * + * grep.stdout.on('data', (data) => { + * console.log(data.toString()); + * }); + * + * grep.stderr.on('data', (data) => { + * console.error(`grep stderr: ${data}`); + * }); + * + * grep.on('close', (code) => { + * if (code !== 0) { + * console.log(`grep process exited with code ${code}`); + * } + * }); + * ``` + * + * Example of checking for failed `spawn`: + * + * ```js + * const { spawn } = require('child_process'); + * const subprocess = spawn('bad_command'); + * + * subprocess.on('error', (err) => { + * console.error('Failed to start subprocess.'); + * }); + * ``` + * + * Certain platforms (macOS, Linux) will use the value of `argv[0]` for the process + * title while others (Windows, SunOS) will use `command`. + * + * Node.js currently overwrites `argv[0]` with `process.execPath` on startup, so`process.argv[0]` in a Node.js child process will not match the `argv0`parameter passed to `spawn` from the parent, + * retrieve it with the`process.argv0` property instead. + * + * If the `signal` option is enabled, calling `.abort()` on the corresponding`AbortController` is similar to calling `.kill()` on the child process except + * the error passed to the callback will be an `AbortError`: + * + * ```js + * const { spawn } = require('child_process'); + * const controller = new AbortController(); + * const { signal } = controller; + * const grep = spawn('grep', ['ssh'], { signal }); + * grep.on('error', (err) => { + * // This will be called with err being an AbortError if the controller aborts + * }); + * controller.abort(); // Stops the child process + * ``` + * @since v0.1.90 + * @param command The command to run. + * @param args List of string arguments. + */ + function spawn(command: string, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams; + function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; + function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; + function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; + function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; + function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; + function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; + function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; + function spawn(command: string, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; + function spawn(command: string, options: SpawnOptions): ChildProcess; + // overloads of spawn with 'args' + function spawn(command: string, args?: ReadonlyArray, options?: SpawnOptionsWithoutStdio): ChildProcessWithoutNullStreams; + function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; + function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; + function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; + function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; + function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; + function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; + function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; + function spawn(command: string, args: ReadonlyArray, options: SpawnOptionsWithStdioTuple): ChildProcessByStdio; + function spawn(command: string, args: ReadonlyArray, options: SpawnOptions): ChildProcess; + interface ExecOptions extends CommonOptions { + shell?: string | undefined; + signal?: AbortSignal | undefined; + maxBuffer?: number | undefined; + killSignal?: NodeJS.Signals | number | undefined; + } + interface ExecOptionsWithStringEncoding extends ExecOptions { + encoding: BufferEncoding; + } + interface ExecOptionsWithBufferEncoding extends ExecOptions { + encoding: BufferEncoding | null; // specify `null`. + } + interface ExecException extends Error { + cmd?: string | undefined; + killed?: boolean | undefined; + code?: number | undefined; + signal?: NodeJS.Signals | undefined; + } + /** + * Spawns a shell then executes the `command` within that shell, buffering any + * generated output. The `command` string passed to the exec function is processed + * directly by the shell and special characters (vary based on [shell](https://en.wikipedia.org/wiki/List_of_command-line_interpreters)) + * need to be dealt with accordingly: + * + * ```js + * const { exec } = require('child_process'); + * + * exec('"/path/to/test file/test.sh" arg1 arg2'); + * // Double quotes are used so that the space in the path is not interpreted as + * // a delimiter of multiple arguments. + * + * exec('echo "The \\$HOME variable is $HOME"'); + * // The $HOME variable is escaped in the first instance, but not in the second. + * ``` + * + * **Never pass unsanitized user input to this function. Any input containing shell** + * **metacharacters may be used to trigger arbitrary command execution.** + * + * If a `callback` function is provided, it is called with the arguments`(error, stdout, stderr)`. On success, `error` will be `null`. On error,`error` will be an instance of `Error`. The + * `error.code` property will be + * the exit code of the process. By convention, any exit code other than `0`indicates an error. `error.signal` will be the signal that terminated the + * process. + * + * The `stdout` and `stderr` arguments passed to the callback will contain the + * stdout and stderr output of the child process. By default, Node.js will decode + * the output as UTF-8 and pass strings to the callback. The `encoding` option + * can be used to specify the character encoding used to decode the stdout and + * stderr output. If `encoding` is `'buffer'`, or an unrecognized character + * encoding, `Buffer` objects will be passed to the callback instead. + * + * ```js + * const { exec } = require('child_process'); + * exec('cat *.js missing_file | wc -l', (error, stdout, stderr) => { + * if (error) { + * console.error(`exec error: ${error}`); + * return; + * } + * console.log(`stdout: ${stdout}`); + * console.error(`stderr: ${stderr}`); + * }); + * ``` + * + * If `timeout` is greater than `0`, the parent will send the signal + * identified by the `killSignal` property (the default is `'SIGTERM'`) if the + * child runs longer than `timeout` milliseconds. + * + * Unlike the [`exec(3)`](http://man7.org/linux/man-pages/man3/exec.3.html) POSIX system call, `child_process.exec()` does not replace + * the existing process and uses a shell to execute the command. + * + * If this method is invoked as its `util.promisify()` ed version, it returns + * a `Promise` for an `Object` with `stdout` and `stderr` properties. The returned`ChildProcess` instance is attached to the `Promise` as a `child` property. In + * case of an error (including any error resulting in an exit code other than 0), a + * rejected promise is returned, with the same `error` object given in the + * callback, but with two additional properties `stdout` and `stderr`. + * + * ```js + * const util = require('util'); + * const exec = util.promisify(require('child_process').exec); + * + * async function lsExample() { + * const { stdout, stderr } = await exec('ls'); + * console.log('stdout:', stdout); + * console.error('stderr:', stderr); + * } + * lsExample(); + * ``` + * + * If the `signal` option is enabled, calling `.abort()` on the corresponding`AbortController` is similar to calling `.kill()` on the child process except + * the error passed to the callback will be an `AbortError`: + * + * ```js + * const { exec } = require('child_process'); + * const controller = new AbortController(); + * const { signal } = controller; + * const child = exec('grep ssh', { signal }, (error) => { + * console.log(error); // an AbortError + * }); + * controller.abort(); + * ``` + * @since v0.1.90 + * @param command The command to run, with space-separated arguments. + * @param callback called with the output when process terminates. + */ + function exec(command: string, callback?: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; + // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`. + function exec( + command: string, + options: { + encoding: 'buffer' | null; + } & ExecOptions, + callback?: (error: ExecException | null, stdout: Buffer, stderr: Buffer) => void + ): ChildProcess; + // `options` with well known `encoding` means stdout/stderr are definitely `string`. + function exec( + command: string, + options: { + encoding: BufferEncoding; + } & ExecOptions, + callback?: (error: ExecException | null, stdout: string, stderr: string) => void + ): ChildProcess; + // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`. + // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`. + function exec( + command: string, + options: { + encoding: BufferEncoding; + } & ExecOptions, + callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void + ): ChildProcess; + // `options` without an `encoding` means stdout/stderr are definitely `string`. + function exec(command: string, options: ExecOptions, callback?: (error: ExecException | null, stdout: string, stderr: string) => void): ChildProcess; + // fallback if nothing else matches. Worst case is always `string | Buffer`. + function exec( + command: string, + options: (ObjectEncodingOptions & ExecOptions) | undefined | null, + callback?: (error: ExecException | null, stdout: string | Buffer, stderr: string | Buffer) => void + ): ChildProcess; + interface PromiseWithChild extends Promise { + child: ChildProcess; + } + namespace exec { + function __promisify__(command: string): PromiseWithChild<{ + stdout: string; + stderr: string; + }>; + function __promisify__( + command: string, + options: { + encoding: 'buffer' | null; + } & ExecOptions + ): PromiseWithChild<{ + stdout: Buffer; + stderr: Buffer; + }>; + function __promisify__( + command: string, + options: { + encoding: BufferEncoding; + } & ExecOptions + ): PromiseWithChild<{ + stdout: string; + stderr: string; + }>; + function __promisify__( + command: string, + options: ExecOptions + ): PromiseWithChild<{ + stdout: string; + stderr: string; + }>; + function __promisify__( + command: string, + options?: (ObjectEncodingOptions & ExecOptions) | null + ): PromiseWithChild<{ + stdout: string | Buffer; + stderr: string | Buffer; + }>; + } + interface ExecFileOptions extends CommonOptions, Abortable { + maxBuffer?: number | undefined; + killSignal?: NodeJS.Signals | number | undefined; + windowsVerbatimArguments?: boolean | undefined; + shell?: boolean | string | undefined; + signal?: AbortSignal | undefined; + } + interface ExecFileOptionsWithStringEncoding extends ExecFileOptions { + encoding: BufferEncoding; + } + interface ExecFileOptionsWithBufferEncoding extends ExecFileOptions { + encoding: 'buffer' | null; + } + interface ExecFileOptionsWithOtherEncoding extends ExecFileOptions { + encoding: BufferEncoding; + } + type ExecFileException = ExecException & NodeJS.ErrnoException; + /** + * The `child_process.execFile()` function is similar to {@link exec} except that it does not spawn a shell by default. Rather, the specified + * executable `file` is spawned directly as a new process making it slightly more + * efficient than {@link exec}. + * + * The same options as {@link exec} are supported. Since a shell is + * not spawned, behaviors such as I/O redirection and file globbing are not + * supported. + * + * ```js + * const { execFile } = require('child_process'); + * const child = execFile('node', ['--version'], (error, stdout, stderr) => { + * if (error) { + * throw error; + * } + * console.log(stdout); + * }); + * ``` + * + * The `stdout` and `stderr` arguments passed to the callback will contain the + * stdout and stderr output of the child process. By default, Node.js will decode + * the output as UTF-8 and pass strings to the callback. The `encoding` option + * can be used to specify the character encoding used to decode the stdout and + * stderr output. If `encoding` is `'buffer'`, or an unrecognized character + * encoding, `Buffer` objects will be passed to the callback instead. + * + * If this method is invoked as its `util.promisify()` ed version, it returns + * a `Promise` for an `Object` with `stdout` and `stderr` properties. The returned`ChildProcess` instance is attached to the `Promise` as a `child` property. In + * case of an error (including any error resulting in an exit code other than 0), a + * rejected promise is returned, with the same `error` object given in the + * callback, but with two additional properties `stdout` and `stderr`. + * + * ```js + * const util = require('util'); + * const execFile = util.promisify(require('child_process').execFile); + * async function getVersion() { + * const { stdout } = await execFile('node', ['--version']); + * console.log(stdout); + * } + * getVersion(); + * ``` + * + * **If the `shell` option is enabled, do not pass unsanitized user input to this** + * **function. Any input containing shell metacharacters may be used to trigger** + * **arbitrary command execution.** + * + * If the `signal` option is enabled, calling `.abort()` on the corresponding`AbortController` is similar to calling `.kill()` on the child process except + * the error passed to the callback will be an `AbortError`: + * + * ```js + * const { execFile } = require('child_process'); + * const controller = new AbortController(); + * const { signal } = controller; + * const child = execFile('node', ['--version'], { signal }, (error) => { + * console.log(error); // an AbortError + * }); + * controller.abort(); + * ``` + * @since v0.1.91 + * @param file The name or path of the executable file to run. + * @param args List of string arguments. + * @param callback Called with the output when process terminates. + */ + function execFile(file: string): ChildProcess; + function execFile(file: string, options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess; + function execFile(file: string, args?: ReadonlyArray | null): ChildProcess; + function execFile(file: string, args: ReadonlyArray | undefined | null, options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null): ChildProcess; + // no `options` definitely means stdout/stderr are `string`. + function execFile(file: string, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess; + function execFile(file: string, args: ReadonlyArray | undefined | null, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess; + // `options` with `"buffer"` or `null` for `encoding` means stdout/stderr are definitely `Buffer`. + function execFile(file: string, options: ExecFileOptionsWithBufferEncoding, callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void): ChildProcess; + function execFile( + file: string, + args: ReadonlyArray | undefined | null, + options: ExecFileOptionsWithBufferEncoding, + callback: (error: ExecFileException | null, stdout: Buffer, stderr: Buffer) => void + ): ChildProcess; + // `options` with well known `encoding` means stdout/stderr are definitely `string`. + function execFile(file: string, options: ExecFileOptionsWithStringEncoding, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess; + function execFile( + file: string, + args: ReadonlyArray | undefined | null, + options: ExecFileOptionsWithStringEncoding, + callback: (error: ExecFileException | null, stdout: string, stderr: string) => void + ): ChildProcess; + // `options` with an `encoding` whose type is `string` means stdout/stderr could either be `Buffer` or `string`. + // There is no guarantee the `encoding` is unknown as `string` is a superset of `BufferEncoding`. + function execFile(file: string, options: ExecFileOptionsWithOtherEncoding, callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void): ChildProcess; + function execFile( + file: string, + args: ReadonlyArray | undefined | null, + options: ExecFileOptionsWithOtherEncoding, + callback: (error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void + ): ChildProcess; + // `options` without an `encoding` means stdout/stderr are definitely `string`. + function execFile(file: string, options: ExecFileOptions, callback: (error: ExecFileException | null, stdout: string, stderr: string) => void): ChildProcess; + function execFile( + file: string, + args: ReadonlyArray | undefined | null, + options: ExecFileOptions, + callback: (error: ExecFileException | null, stdout: string, stderr: string) => void + ): ChildProcess; + // fallback if nothing else matches. Worst case is always `string | Buffer`. + function execFile( + file: string, + options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null, + callback: ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null + ): ChildProcess; + function execFile( + file: string, + args: ReadonlyArray | undefined | null, + options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null, + callback: ((error: ExecFileException | null, stdout: string | Buffer, stderr: string | Buffer) => void) | undefined | null + ): ChildProcess; + namespace execFile { + function __promisify__(file: string): PromiseWithChild<{ + stdout: string; + stderr: string; + }>; + function __promisify__( + file: string, + args: ReadonlyArray | undefined | null + ): PromiseWithChild<{ + stdout: string; + stderr: string; + }>; + function __promisify__( + file: string, + options: ExecFileOptionsWithBufferEncoding + ): PromiseWithChild<{ + stdout: Buffer; + stderr: Buffer; + }>; + function __promisify__( + file: string, + args: ReadonlyArray | undefined | null, + options: ExecFileOptionsWithBufferEncoding + ): PromiseWithChild<{ + stdout: Buffer; + stderr: Buffer; + }>; + function __promisify__( + file: string, + options: ExecFileOptionsWithStringEncoding + ): PromiseWithChild<{ + stdout: string; + stderr: string; + }>; + function __promisify__( + file: string, + args: ReadonlyArray | undefined | null, + options: ExecFileOptionsWithStringEncoding + ): PromiseWithChild<{ + stdout: string; + stderr: string; + }>; + function __promisify__( + file: string, + options: ExecFileOptionsWithOtherEncoding + ): PromiseWithChild<{ + stdout: string | Buffer; + stderr: string | Buffer; + }>; + function __promisify__( + file: string, + args: ReadonlyArray | undefined | null, + options: ExecFileOptionsWithOtherEncoding + ): PromiseWithChild<{ + stdout: string | Buffer; + stderr: string | Buffer; + }>; + function __promisify__( + file: string, + options: ExecFileOptions + ): PromiseWithChild<{ + stdout: string; + stderr: string; + }>; + function __promisify__( + file: string, + args: ReadonlyArray | undefined | null, + options: ExecFileOptions + ): PromiseWithChild<{ + stdout: string; + stderr: string; + }>; + function __promisify__( + file: string, + options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null + ): PromiseWithChild<{ + stdout: string | Buffer; + stderr: string | Buffer; + }>; + function __promisify__( + file: string, + args: ReadonlyArray | undefined | null, + options: (ObjectEncodingOptions & ExecFileOptions) | undefined | null + ): PromiseWithChild<{ + stdout: string | Buffer; + stderr: string | Buffer; + }>; + } + interface ForkOptions extends ProcessEnvOptions, MessagingOptions, Abortable { + execPath?: string | undefined; + execArgv?: string[] | undefined; + silent?: boolean | undefined; + stdio?: StdioOptions | undefined; + detached?: boolean | undefined; + windowsVerbatimArguments?: boolean | undefined; + } + /** + * The `child_process.fork()` method is a special case of {@link spawn} used specifically to spawn new Node.js processes. + * Like {@link spawn}, a `ChildProcess` object is returned. The + * returned `ChildProcess` will have an additional communication channel + * built-in that allows messages to be passed back and forth between the parent and + * child. See `subprocess.send()` for details. + * + * Keep in mind that spawned Node.js child processes are + * independent of the parent with exception of the IPC communication channel + * that is established between the two. Each process has its own memory, with + * their own V8 instances. Because of the additional resource allocations + * required, spawning a large number of child Node.js processes is not + * recommended. + * + * By default, `child_process.fork()` will spawn new Node.js instances using the `process.execPath` of the parent process. The `execPath` property in the`options` object allows for an alternative + * execution path to be used. + * + * Node.js processes launched with a custom `execPath` will communicate with the + * parent process using the file descriptor (fd) identified using the + * environment variable `NODE_CHANNEL_FD` on the child process. + * + * Unlike the [`fork(2)`](http://man7.org/linux/man-pages/man2/fork.2.html) POSIX system call, `child_process.fork()` does not clone the + * current process. + * + * The `shell` option available in {@link spawn} is not supported by`child_process.fork()` and will be ignored if set. + * + * If the `signal` option is enabled, calling `.abort()` on the corresponding`AbortController` is similar to calling `.kill()` on the child process except + * the error passed to the callback will be an `AbortError`: + * + * ```js + * if (process.argv[2] === 'child') { + * setTimeout(() => { + * console.log(`Hello from ${process.argv[2]}!`); + * }, 1_000); + * } else { + * const { fork } = require('child_process'); + * const controller = new AbortController(); + * const { signal } = controller; + * const child = fork(__filename, ['child'], { signal }); + * child.on('error', (err) => { + * // This will be called with err being an AbortError if the controller aborts + * }); + * controller.abort(); // Stops the child process + * } + * ``` + * @since v0.5.0 + * @param modulePath The module to run in the child. + * @param args List of string arguments. + */ + function fork(modulePath: string, options?: ForkOptions): ChildProcess; + function fork(modulePath: string, args?: ReadonlyArray, options?: ForkOptions): ChildProcess; + interface SpawnSyncOptions extends CommonSpawnOptions { + input?: string | NodeJS.ArrayBufferView | undefined; + maxBuffer?: number | undefined; + encoding?: BufferEncoding | 'buffer' | null | undefined; + } + interface SpawnSyncOptionsWithStringEncoding extends SpawnSyncOptions { + encoding: BufferEncoding; + } + interface SpawnSyncOptionsWithBufferEncoding extends SpawnSyncOptions { + encoding?: 'buffer' | null | undefined; + } + interface SpawnSyncReturns { + pid: number; + output: Array; + stdout: T; + stderr: T; + status: number | null; + signal: NodeJS.Signals | null; + error?: Error | undefined; + } + /** + * The `child_process.spawnSync()` method is generally identical to {@link spawn} with the exception that the function will not return + * until the child process has fully closed. When a timeout has been encountered + * and `killSignal` is sent, the method won't return until the process has + * completely exited. If the process intercepts and handles the `SIGTERM` signal + * and doesn't exit, the parent process will wait until the child process has + * exited. + * + * **If the `shell` option is enabled, do not pass unsanitized user input to this** + * **function. Any input containing shell metacharacters may be used to trigger** + * **arbitrary command execution.** + * @since v0.11.12 + * @param command The command to run. + * @param args List of string arguments. + */ + function spawnSync(command: string): SpawnSyncReturns; + function spawnSync(command: string, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns; + function spawnSync(command: string, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns; + function spawnSync(command: string, options?: SpawnSyncOptions): SpawnSyncReturns; + function spawnSync(command: string, args: ReadonlyArray): SpawnSyncReturns; + function spawnSync(command: string, args: ReadonlyArray, options: SpawnSyncOptionsWithStringEncoding): SpawnSyncReturns; + function spawnSync(command: string, args: ReadonlyArray, options: SpawnSyncOptionsWithBufferEncoding): SpawnSyncReturns; + function spawnSync(command: string, args?: ReadonlyArray, options?: SpawnSyncOptions): SpawnSyncReturns; + interface CommonExecOptions extends CommonOptions { + input?: string | NodeJS.ArrayBufferView | undefined; + stdio?: StdioOptions | undefined; + killSignal?: NodeJS.Signals | number | undefined; + maxBuffer?: number | undefined; + encoding?: BufferEncoding | 'buffer' | null | undefined; + } + interface ExecSyncOptions extends CommonExecOptions { + shell?: string | undefined; + } + interface ExecSyncOptionsWithStringEncoding extends ExecSyncOptions { + encoding: BufferEncoding; + } + interface ExecSyncOptionsWithBufferEncoding extends ExecSyncOptions { + encoding?: 'buffer' | null | undefined; + } + /** + * The `child_process.execSync()` method is generally identical to {@link exec} with the exception that the method will not return + * until the child process has fully closed. When a timeout has been encountered + * and `killSignal` is sent, the method won't return until the process has + * completely exited. If the child process intercepts and handles the `SIGTERM`signal and doesn't exit, the parent process will wait until the child process + * has exited. + * + * If the process times out or has a non-zero exit code, this method will throw. + * The `Error` object will contain the entire result from {@link spawnSync}. + * + * **Never pass unsanitized user input to this function. Any input containing shell** + * **metacharacters may be used to trigger arbitrary command execution.** + * @since v0.11.12 + * @param command The command to run. + * @return The stdout from the command. + */ + function execSync(command: string): Buffer; + function execSync(command: string, options: ExecSyncOptionsWithStringEncoding): string; + function execSync(command: string, options: ExecSyncOptionsWithBufferEncoding): Buffer; + function execSync(command: string, options?: ExecSyncOptions): string | Buffer; + interface ExecFileSyncOptions extends CommonExecOptions { + shell?: boolean | string | undefined; + } + interface ExecFileSyncOptionsWithStringEncoding extends ExecFileSyncOptions { + encoding: BufferEncoding; + } + interface ExecFileSyncOptionsWithBufferEncoding extends ExecFileSyncOptions { + encoding?: 'buffer' | null; // specify `null`. + } + /** + * The `child_process.execFileSync()` method is generally identical to {@link execFile} with the exception that the method will not + * return until the child process has fully closed. When a timeout has been + * encountered and `killSignal` is sent, the method won't return until the process + * has completely exited. + * + * If the child process intercepts and handles the `SIGTERM` signal and + * does not exit, the parent process will still wait until the child process has + * exited. + * + * If the process times out or has a non-zero exit code, this method will throw an `Error` that will include the full result of the underlying {@link spawnSync}. + * + * **If the `shell` option is enabled, do not pass unsanitized user input to this** + * **function. Any input containing shell metacharacters may be used to trigger** + * **arbitrary command execution.** + * @since v0.11.12 + * @param file The name or path of the executable file to run. + * @param args List of string arguments. + * @return The stdout from the command. + */ + function execFileSync(file: string): Buffer; + function execFileSync(file: string, options: ExecFileSyncOptionsWithStringEncoding): string; + function execFileSync(file: string, options: ExecFileSyncOptionsWithBufferEncoding): Buffer; + function execFileSync(file: string, options?: ExecFileSyncOptions): string | Buffer; + function execFileSync(file: string, args: ReadonlyArray): Buffer; + function execFileSync(file: string, args: ReadonlyArray, options: ExecFileSyncOptionsWithStringEncoding): string; + function execFileSync(file: string, args: ReadonlyArray, options: ExecFileSyncOptionsWithBufferEncoding): Buffer; + function execFileSync(file: string, args?: ReadonlyArray, options?: ExecFileSyncOptions): string | Buffer; +} +declare module 'node:child_process' { + export * from 'child_process'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/cluster.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/cluster.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..c48084da7a7afe6912c48705f0269451e4f59da1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/cluster.d.ts" @@ -0,0 +1,414 @@ +/** + * A single instance of Node.js runs in a single thread. To take advantage of + * multi-core systems, the user will sometimes want to launch a cluster of Node.js + * processes to handle the load. + * + * The cluster module allows easy creation of child processes that all share + * server ports. + * + * ```js + * import cluster from 'cluster'; + * import http from 'http'; + * import { cpus } from 'os'; + * import process from 'process'; + * + * const numCPUs = cpus().length; + * + * if (cluster.isPrimary) { + * console.log(`Primary ${process.pid} is running`); + * + * // Fork workers. + * for (let i = 0; i < numCPUs; i++) { + * cluster.fork(); + * } + * + * cluster.on('exit', (worker, code, signal) => { + * console.log(`worker ${worker.process.pid} died`); + * }); + * } else { + * // Workers can share any TCP connection + * // In this case it is an HTTP server + * http.createServer((req, res) => { + * res.writeHead(200); + * res.end('hello world\n'); + * }).listen(8000); + * + * console.log(`Worker ${process.pid} started`); + * } + * ``` + * + * Running Node.js will now share port 8000 between the workers: + * + * ```console + * $ node server.js + * Primary 3596 is running + * Worker 4324 started + * Worker 4520 started + * Worker 6056 started + * Worker 5644 started + * ``` + * + * On Windows, it is not yet possible to set up a named pipe server in a worker. + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/cluster.js) + */ +declare module 'cluster' { + import * as child from 'node:child_process'; + import EventEmitter = require('node:events'); + import * as net from 'node:net'; + export interface ClusterSettings { + execArgv?: string[] | undefined; // default: process.execArgv + exec?: string | undefined; + args?: string[] | undefined; + silent?: boolean | undefined; + stdio?: any[] | undefined; + uid?: number | undefined; + gid?: number | undefined; + inspectPort?: number | (() => number) | undefined; + } + export interface Address { + address: string; + port: number; + addressType: number | 'udp4' | 'udp6'; // 4, 6, -1, "udp4", "udp6" + } + /** + * A `Worker` object contains all public information and method about a worker. + * In the primary it can be obtained using `cluster.workers`. In a worker + * it can be obtained using `cluster.worker`. + * @since v0.7.0 + */ + export class Worker extends EventEmitter { + /** + * Each new worker is given its own unique id, this id is stored in the`id`. + * + * While a worker is alive, this is the key that indexes it in`cluster.workers`. + * @since v0.8.0 + */ + id: number; + /** + * All workers are created using `child_process.fork()`, the returned object + * from this function is stored as `.process`. In a worker, the global `process`is stored. + * + * See: `Child Process module`. + * + * Workers will call `process.exit(0)` if the `'disconnect'` event occurs + * on `process` and `.exitedAfterDisconnect` is not `true`. This protects against + * accidental disconnection. + * @since v0.7.0 + */ + process: child.ChildProcess; + /** + * Send a message to a worker or primary, optionally with a handle. + * + * In the primary this sends a message to a specific worker. It is identical to `ChildProcess.send()`. + * + * In a worker this sends a message to the primary. It is identical to`process.send()`. + * + * This example will echo back all messages from the primary: + * + * ```js + * if (cluster.isPrimary) { + * const worker = cluster.fork(); + * worker.send('hi there'); + * + * } else if (cluster.isWorker) { + * process.on('message', (msg) => { + * process.send(msg); + * }); + * } + * ``` + * @since v0.7.0 + * @param options The `options` argument, if present, is an object used to parameterize the sending of certain types of handles. `options` supports the following properties: + */ + send(message: child.Serializable, callback?: (error: Error | null) => void): boolean; + send(message: child.Serializable, sendHandle: child.SendHandle, callback?: (error: Error | null) => void): boolean; + send(message: child.Serializable, sendHandle: child.SendHandle, options?: child.MessageOptions, callback?: (error: Error | null) => void): boolean; + /** + * This function will kill the worker. In the primary, it does this + * by disconnecting the `worker.process`, and once disconnected, killing + * with `signal`. In the worker, it does it by disconnecting the channel, + * and then exiting with code `0`. + * + * Because `kill()` attempts to gracefully disconnect the worker process, it is + * susceptible to waiting indefinitely for the disconnect to complete. For example, + * if the worker enters an infinite loop, a graceful disconnect will never occur. + * If the graceful disconnect behavior is not needed, use `worker.process.kill()`. + * + * Causes `.exitedAfterDisconnect` to be set. + * + * This method is aliased as `worker.destroy()` for backward compatibility. + * + * In a worker, `process.kill()` exists, but it is not this function; + * it is `kill()`. + * @since v0.9.12 + * @param [signal='SIGTERM'] Name of the kill signal to send to the worker process. + */ + kill(signal?: string): void; + destroy(signal?: string): void; + /** + * In a worker, this function will close all servers, wait for the `'close'` event + * on those servers, and then disconnect the IPC channel. + * + * In the primary, an internal message is sent to the worker causing it to call`.disconnect()` on itself. + * + * Causes `.exitedAfterDisconnect` to be set. + * + * After a server is closed, it will no longer accept new connections, + * but connections may be accepted by any other listening worker. Existing + * connections will be allowed to close as usual. When no more connections exist, + * see `server.close()`, the IPC channel to the worker will close allowing it + * to die gracefully. + * + * The above applies _only_ to server connections, client connections are not + * automatically closed by workers, and disconnect does not wait for them to close + * before exiting. + * + * In a worker, `process.disconnect` exists, but it is not this function; + * it is `disconnect()`. + * + * Because long living server connections may block workers from disconnecting, it + * may be useful to send a message, so application specific actions may be taken to + * close them. It also may be useful to implement a timeout, killing a worker if + * the `'disconnect'` event has not been emitted after some time. + * + * ```js + * if (cluster.isPrimary) { + * const worker = cluster.fork(); + * let timeout; + * + * worker.on('listening', (address) => { + * worker.send('shutdown'); + * worker.disconnect(); + * timeout = setTimeout(() => { + * worker.kill(); + * }, 2000); + * }); + * + * worker.on('disconnect', () => { + * clearTimeout(timeout); + * }); + * + * } else if (cluster.isWorker) { + * const net = require('net'); + * const server = net.createServer((socket) => { + * // Connections never end + * }); + * + * server.listen(8000); + * + * process.on('message', (msg) => { + * if (msg === 'shutdown') { + * // Initiate graceful close of any connections to server + * } + * }); + * } + * ``` + * @since v0.7.7 + * @return A reference to `worker`. + */ + disconnect(): void; + /** + * This function returns `true` if the worker is connected to its primary via its + * IPC channel, `false` otherwise. A worker is connected to its primary after it + * has been created. It is disconnected after the `'disconnect'` event is emitted. + * @since v0.11.14 + */ + isConnected(): boolean; + /** + * This function returns `true` if the worker's process has terminated (either + * because of exiting or being signaled). Otherwise, it returns `false`. + * + * ```js + * import cluster from 'cluster'; + * import http from 'http'; + * import { cpus } from 'os'; + * import process from 'process'; + * + * const numCPUs = cpus().length; + * + * if (cluster.isPrimary) { + * console.log(`Primary ${process.pid} is running`); + * + * // Fork workers. + * for (let i = 0; i < numCPUs; i++) { + * cluster.fork(); + * } + * + * cluster.on('fork', (worker) => { + * console.log('worker is dead:', worker.isDead()); + * }); + * + * cluster.on('exit', (worker, code, signal) => { + * console.log('worker is dead:', worker.isDead()); + * }); + * } else { + * // Workers can share any TCP connection. In this case, it is an HTTP server. + * http.createServer((req, res) => { + * res.writeHead(200); + * res.end(`Current process\n ${process.pid}`); + * process.kill(process.pid); + * }).listen(8000); + * } + * ``` + * @since v0.11.14 + */ + isDead(): boolean; + /** + * This property is `true` if the worker exited due to `.kill()` or`.disconnect()`. If the worker exited any other way, it is `false`. If the + * worker has not exited, it is `undefined`. + * + * The boolean `worker.exitedAfterDisconnect` allows distinguishing between + * voluntary and accidental exit, the primary may choose not to respawn a worker + * based on this value. + * + * ```js + * cluster.on('exit', (worker, code, signal) => { + * if (worker.exitedAfterDisconnect === true) { + * console.log('Oh, it was just voluntary – no need to worry'); + * } + * }); + * + * // kill worker + * worker.kill(); + * ``` + * @since v6.0.0 + */ + exitedAfterDisconnect: boolean; + /** + * events.EventEmitter + * 1. disconnect + * 2. error + * 3. exit + * 4. listening + * 5. message + * 6. online + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: 'disconnect', listener: () => void): this; + addListener(event: 'error', listener: (error: Error) => void): this; + addListener(event: 'exit', listener: (code: number, signal: string) => void): this; + addListener(event: 'listening', listener: (address: Address) => void): this; + addListener(event: 'message', listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + addListener(event: 'online', listener: () => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: 'disconnect'): boolean; + emit(event: 'error', error: Error): boolean; + emit(event: 'exit', code: number, signal: string): boolean; + emit(event: 'listening', address: Address): boolean; + emit(event: 'message', message: any, handle: net.Socket | net.Server): boolean; + emit(event: 'online'): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: 'disconnect', listener: () => void): this; + on(event: 'error', listener: (error: Error) => void): this; + on(event: 'exit', listener: (code: number, signal: string) => void): this; + on(event: 'listening', listener: (address: Address) => void): this; + on(event: 'message', listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + on(event: 'online', listener: () => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: 'disconnect', listener: () => void): this; + once(event: 'error', listener: (error: Error) => void): this; + once(event: 'exit', listener: (code: number, signal: string) => void): this; + once(event: 'listening', listener: (address: Address) => void): this; + once(event: 'message', listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + once(event: 'online', listener: () => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: 'disconnect', listener: () => void): this; + prependListener(event: 'error', listener: (error: Error) => void): this; + prependListener(event: 'exit', listener: (code: number, signal: string) => void): this; + prependListener(event: 'listening', listener: (address: Address) => void): this; + prependListener(event: 'message', listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + prependListener(event: 'online', listener: () => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'disconnect', listener: () => void): this; + prependOnceListener(event: 'error', listener: (error: Error) => void): this; + prependOnceListener(event: 'exit', listener: (code: number, signal: string) => void): this; + prependOnceListener(event: 'listening', listener: (address: Address) => void): this; + prependOnceListener(event: 'message', listener: (message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + prependOnceListener(event: 'online', listener: () => void): this; + } + export interface Cluster extends EventEmitter { + disconnect(callback?: () => void): void; + fork(env?: any): Worker; + /** @deprecated since v16.0.0 - use isPrimary. */ + readonly isMaster: boolean; + readonly isPrimary: boolean; + readonly isWorker: boolean; + schedulingPolicy: number; + readonly settings: ClusterSettings; + /** @deprecated since v16.0.0 - use setupPrimary. */ + setupMaster(settings?: ClusterSettings): void; + /** + * `setupPrimary` is used to change the default 'fork' behavior. Once called, the settings will be present in cluster.settings. + */ + setupPrimary(settings?: ClusterSettings): void; + readonly worker?: Worker | undefined; + readonly workers?: NodeJS.Dict | undefined; + readonly SCHED_NONE: number; + readonly SCHED_RR: number; + /** + * events.EventEmitter + * 1. disconnect + * 2. exit + * 3. fork + * 4. listening + * 5. message + * 6. online + * 7. setup + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: 'disconnect', listener: (worker: Worker) => void): this; + addListener(event: 'exit', listener: (worker: Worker, code: number, signal: string) => void): this; + addListener(event: 'fork', listener: (worker: Worker) => void): this; + addListener(event: 'listening', listener: (worker: Worker, address: Address) => void): this; + addListener(event: 'message', listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + addListener(event: 'online', listener: (worker: Worker) => void): this; + addListener(event: 'setup', listener: (settings: ClusterSettings) => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: 'disconnect', worker: Worker): boolean; + emit(event: 'exit', worker: Worker, code: number, signal: string): boolean; + emit(event: 'fork', worker: Worker): boolean; + emit(event: 'listening', worker: Worker, address: Address): boolean; + emit(event: 'message', worker: Worker, message: any, handle: net.Socket | net.Server): boolean; + emit(event: 'online', worker: Worker): boolean; + emit(event: 'setup', settings: ClusterSettings): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: 'disconnect', listener: (worker: Worker) => void): this; + on(event: 'exit', listener: (worker: Worker, code: number, signal: string) => void): this; + on(event: 'fork', listener: (worker: Worker) => void): this; + on(event: 'listening', listener: (worker: Worker, address: Address) => void): this; + on(event: 'message', listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + on(event: 'online', listener: (worker: Worker) => void): this; + on(event: 'setup', listener: (settings: ClusterSettings) => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: 'disconnect', listener: (worker: Worker) => void): this; + once(event: 'exit', listener: (worker: Worker, code: number, signal: string) => void): this; + once(event: 'fork', listener: (worker: Worker) => void): this; + once(event: 'listening', listener: (worker: Worker, address: Address) => void): this; + once(event: 'message', listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; // the handle is a net.Socket or net.Server object, or undefined. + once(event: 'online', listener: (worker: Worker) => void): this; + once(event: 'setup', listener: (settings: ClusterSettings) => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: 'disconnect', listener: (worker: Worker) => void): this; + prependListener(event: 'exit', listener: (worker: Worker, code: number, signal: string) => void): this; + prependListener(event: 'fork', listener: (worker: Worker) => void): this; + prependListener(event: 'listening', listener: (worker: Worker, address: Address) => void): this; + // the handle is a net.Socket or net.Server object, or undefined. + prependListener(event: 'message', listener: (worker: Worker, message: any, handle?: net.Socket | net.Server) => void): this; + prependListener(event: 'online', listener: (worker: Worker) => void): this; + prependListener(event: 'setup', listener: (settings: ClusterSettings) => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'disconnect', listener: (worker: Worker) => void): this; + prependOnceListener(event: 'exit', listener: (worker: Worker, code: number, signal: string) => void): this; + prependOnceListener(event: 'fork', listener: (worker: Worker) => void): this; + prependOnceListener(event: 'listening', listener: (worker: Worker, address: Address) => void): this; + // the handle is a net.Socket or net.Server object, or undefined. + prependOnceListener(event: 'message', listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void): this; + prependOnceListener(event: 'online', listener: (worker: Worker) => void): this; + prependOnceListener(event: 'setup', listener: (settings: ClusterSettings) => void): this; + } + const cluster: Cluster; + export default cluster; +} +declare module 'node:cluster' { + export * from 'cluster'; + export { default as default } from 'cluster'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/console.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/console.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..9297018c7f0b4e0b0a720b69728a3f9ed229fcbb --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/console.d.ts" @@ -0,0 +1,412 @@ +/** + * The `console` module provides a simple debugging console that is similar to the + * JavaScript console mechanism provided by web browsers. + * + * The module exports two specific components: + * + * * A `Console` class with methods such as `console.log()`, `console.error()` and`console.warn()` that can be used to write to any Node.js stream. + * * A global `console` instance configured to write to `process.stdout` and `process.stderr`. The global `console` can be used without calling`require('console')`. + * + * _**Warning**_: The global console object's methods are neither consistently + * synchronous like the browser APIs they resemble, nor are they consistently + * asynchronous like all other Node.js streams. See the `note on process I/O` for + * more information. + * + * Example using the global `console`: + * + * ```js + * console.log('hello world'); + * // Prints: hello world, to stdout + * console.log('hello %s', 'world'); + * // Prints: hello world, to stdout + * console.error(new Error('Whoops, something bad happened')); + * // Prints error message and stack trace to stderr: + * // Error: Whoops, something bad happened + * // at [eval]:5:15 + * // at Script.runInThisContext (node:vm:132:18) + * // at Object.runInThisContext (node:vm:309:38) + * // at node:internal/process/execution:77:19 + * // at [eval]-wrapper:6:22 + * // at evalScript (node:internal/process/execution:76:60) + * // at node:internal/main/eval_string:23:3 + * + * const name = 'Will Robinson'; + * console.warn(`Danger ${name}! Danger!`); + * // Prints: Danger Will Robinson! Danger!, to stderr + * ``` + * + * Example using the `Console` class: + * + * ```js + * const out = getStreamSomehow(); + * const err = getStreamSomehow(); + * const myConsole = new console.Console(out, err); + * + * myConsole.log('hello world'); + * // Prints: hello world, to out + * myConsole.log('hello %s', 'world'); + * // Prints: hello world, to out + * myConsole.error(new Error('Whoops, something bad happened')); + * // Prints: [Error: Whoops, something bad happened], to err + * + * const name = 'Will Robinson'; + * myConsole.warn(`Danger ${name}! Danger!`); + * // Prints: Danger Will Robinson! Danger!, to err + * ``` + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/console.js) + */ +declare module 'console' { + import console = require('node:console'); + export = console; +} +declare module 'node:console' { + import { InspectOptions } from 'node:util'; + global { + // This needs to be global to avoid TS2403 in case lib.dom.d.ts is present in the same build + interface Console { + Console: console.ConsoleConstructor; + /** + * `console.assert()` writes a message if `value` is [falsy](https://developer.mozilla.org/en-US/docs/Glossary/Falsy) or omitted. It only + * writes a message and does not otherwise affect execution. The output always + * starts with `"Assertion failed"`. If provided, `message` is formatted using `util.format()`. + * + * If `value` is [truthy](https://developer.mozilla.org/en-US/docs/Glossary/Truthy), nothing happens. + * + * ```js + * console.assert(true, 'does nothing'); + * + * console.assert(false, 'Whoops %s work', 'didn\'t'); + * // Assertion failed: Whoops didn't work + * + * console.assert(); + * // Assertion failed + * ``` + * @since v0.1.101 + * @param value The value tested for being truthy. + * @param message All arguments besides `value` are used as error message. + */ + assert(value: any, message?: string, ...optionalParams: any[]): void; + /** + * When `stdout` is a TTY, calling `console.clear()` will attempt to clear the + * TTY. When `stdout` is not a TTY, this method does nothing. + * + * The specific operation of `console.clear()` can vary across operating systems + * and terminal types. For most Linux operating systems, `console.clear()`operates similarly to the `clear` shell command. On Windows, `console.clear()`will clear only the output in the + * current terminal viewport for the Node.js + * binary. + * @since v8.3.0 + */ + clear(): void; + /** + * Maintains an internal counter specific to `label` and outputs to `stdout` the + * number of times `console.count()` has been called with the given `label`. + * + * ```js + * > console.count() + * default: 1 + * undefined + * > console.count('default') + * default: 2 + * undefined + * > console.count('abc') + * abc: 1 + * undefined + * > console.count('xyz') + * xyz: 1 + * undefined + * > console.count('abc') + * abc: 2 + * undefined + * > console.count() + * default: 3 + * undefined + * > + * ``` + * @since v8.3.0 + * @param label The display label for the counter. + */ + count(label?: string): void; + /** + * Resets the internal counter specific to `label`. + * + * ```js + * > console.count('abc'); + * abc: 1 + * undefined + * > console.countReset('abc'); + * undefined + * > console.count('abc'); + * abc: 1 + * undefined + * > + * ``` + * @since v8.3.0 + * @param label The display label for the counter. + */ + countReset(label?: string): void; + /** + * The `console.debug()` function is an alias for {@link log}. + * @since v8.0.0 + */ + debug(message?: any, ...optionalParams: any[]): void; + /** + * Uses `util.inspect()` on `obj` and prints the resulting string to `stdout`. + * This function bypasses any custom `inspect()` function defined on `obj`. + * @since v0.1.101 + */ + dir(obj: any, options?: InspectOptions): void; + /** + * This method calls `console.log()` passing it the arguments received. + * This method does not produce any XML formatting. + * @since v8.0.0 + */ + dirxml(...data: any[]): void; + /** + * Prints to `stderr` with newline. Multiple arguments can be passed, with the + * first used as the primary message and all additional used as substitution + * values similar to [`printf(3)`](http://man7.org/linux/man-pages/man3/printf.3.html) (the arguments are all passed to `util.format()`). + * + * ```js + * const code = 5; + * console.error('error #%d', code); + * // Prints: error #5, to stderr + * console.error('error', code); + * // Prints: error 5, to stderr + * ``` + * + * If formatting elements (e.g. `%d`) are not found in the first string then `util.inspect()` is called on each argument and the resulting string + * values are concatenated. See `util.format()` for more information. + * @since v0.1.100 + */ + error(message?: any, ...optionalParams: any[]): void; + /** + * Increases indentation of subsequent lines by spaces for `groupIndentation`length. + * + * If one or more `label`s are provided, those are printed first without the + * additional indentation. + * @since v8.5.0 + */ + group(...label: any[]): void; + /** + * An alias for {@link group}. + * @since v8.5.0 + */ + groupCollapsed(...label: any[]): void; + /** + * Decreases indentation of subsequent lines by spaces for `groupIndentation`length. + * @since v8.5.0 + */ + groupEnd(): void; + /** + * The `console.info()` function is an alias for {@link log}. + * @since v0.1.100 + */ + info(message?: any, ...optionalParams: any[]): void; + /** + * Prints to `stdout` with newline. Multiple arguments can be passed, with the + * first used as the primary message and all additional used as substitution + * values similar to [`printf(3)`](http://man7.org/linux/man-pages/man3/printf.3.html) (the arguments are all passed to `util.format()`). + * + * ```js + * const count = 5; + * console.log('count: %d', count); + * // Prints: count: 5, to stdout + * console.log('count:', count); + * // Prints: count: 5, to stdout + * ``` + * + * See `util.format()` for more information. + * @since v0.1.100 + */ + log(message?: any, ...optionalParams: any[]): void; + /** + * Try to construct a table with the columns of the properties of `tabularData`(or use `properties`) and rows of `tabularData` and log it. Falls back to just + * logging the argument if it can’t be parsed as tabular. + * + * ```js + * // These can't be parsed as tabular data + * console.table(Symbol()); + * // Symbol() + * + * console.table(undefined); + * // undefined + * + * console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }]); + * // ┌─────────┬─────┬─────┐ + * // │ (index) │ a │ b │ + * // ├─────────┼─────┼─────┤ + * // │ 0 │ 1 │ 'Y' │ + * // │ 1 │ 'Z' │ 2 │ + * // └─────────┴─────┴─────┘ + * + * console.table([{ a: 1, b: 'Y' }, { a: 'Z', b: 2 }], ['a']); + * // ┌─────────┬─────┐ + * // │ (index) │ a │ + * // ├─────────┼─────┤ + * // │ 0 │ 1 │ + * // │ 1 │ 'Z' │ + * // └─────────┴─────┘ + * ``` + * @since v10.0.0 + * @param properties Alternate properties for constructing the table. + */ + table(tabularData: any, properties?: ReadonlyArray): void; + /** + * Starts a timer that can be used to compute the duration of an operation. Timers + * are identified by a unique `label`. Use the same `label` when calling {@link timeEnd} to stop the timer and output the elapsed time in + * suitable time units to `stdout`. For example, if the elapsed + * time is 3869ms, `console.timeEnd()` displays "3.869s". + * @since v0.1.104 + */ + time(label?: string): void; + /** + * Stops a timer that was previously started by calling {@link time} and + * prints the result to `stdout`: + * + * ```js + * console.time('100-elements'); + * for (let i = 0; i < 100; i++) {} + * console.timeEnd('100-elements'); + * // prints 100-elements: 225.438ms + * ``` + * @since v0.1.104 + */ + timeEnd(label?: string): void; + /** + * For a timer that was previously started by calling {@link time}, prints + * the elapsed time and other `data` arguments to `stdout`: + * + * ```js + * console.time('process'); + * const value = expensiveProcess1(); // Returns 42 + * console.timeLog('process', value); + * // Prints "process: 365.227ms 42". + * doExpensiveProcess2(value); + * console.timeEnd('process'); + * ``` + * @since v10.7.0 + */ + timeLog(label?: string, ...data: any[]): void; + /** + * Prints to `stderr` the string `'Trace: '`, followed by the `util.format()` formatted message and stack trace to the current position in the code. + * + * ```js + * console.trace('Show me'); + * // Prints: (stack trace will vary based on where trace is called) + * // Trace: Show me + * // at repl:2:9 + * // at REPLServer.defaultEval (repl.js:248:27) + * // at bound (domain.js:287:14) + * // at REPLServer.runBound [as eval] (domain.js:300:12) + * // at REPLServer. (repl.js:412:12) + * // at emitOne (events.js:82:20) + * // at REPLServer.emit (events.js:169:7) + * // at REPLServer.Interface._onLine (readline.js:210:10) + * // at REPLServer.Interface._line (readline.js:549:8) + * // at REPLServer.Interface._ttyWrite (readline.js:826:14) + * ``` + * @since v0.1.104 + */ + trace(message?: any, ...optionalParams: any[]): void; + /** + * The `console.warn()` function is an alias for {@link error}. + * @since v0.1.100 + */ + warn(message?: any, ...optionalParams: any[]): void; + // --- Inspector mode only --- + /** + * This method does not display anything unless used in the inspector. + * Starts a JavaScript CPU profile with an optional label. + */ + profile(label?: string): void; + /** + * This method does not display anything unless used in the inspector. + * Stops the current JavaScript CPU profiling session if one has been started and prints the report to the Profiles panel of the inspector. + */ + profileEnd(label?: string): void; + /** + * This method does not display anything unless used in the inspector. + * Adds an event with the label `label` to the Timeline panel of the inspector. + */ + timeStamp(label?: string): void; + } + /** + * The `console` module provides a simple debugging console that is similar to the + * JavaScript console mechanism provided by web browsers. + * + * The module exports two specific components: + * + * * A `Console` class with methods such as `console.log()`, `console.error()` and`console.warn()` that can be used to write to any Node.js stream. + * * A global `console` instance configured to write to `process.stdout` and `process.stderr`. The global `console` can be used without calling`require('console')`. + * + * _**Warning**_: The global console object's methods are neither consistently + * synchronous like the browser APIs they resemble, nor are they consistently + * asynchronous like all other Node.js streams. See the `note on process I/O` for + * more information. + * + * Example using the global `console`: + * + * ```js + * console.log('hello world'); + * // Prints: hello world, to stdout + * console.log('hello %s', 'world'); + * // Prints: hello world, to stdout + * console.error(new Error('Whoops, something bad happened')); + * // Prints error message and stack trace to stderr: + * // Error: Whoops, something bad happened + * // at [eval]:5:15 + * // at Script.runInThisContext (node:vm:132:18) + * // at Object.runInThisContext (node:vm:309:38) + * // at node:internal/process/execution:77:19 + * // at [eval]-wrapper:6:22 + * // at evalScript (node:internal/process/execution:76:60) + * // at node:internal/main/eval_string:23:3 + * + * const name = 'Will Robinson'; + * console.warn(`Danger ${name}! Danger!`); + * // Prints: Danger Will Robinson! Danger!, to stderr + * ``` + * + * Example using the `Console` class: + * + * ```js + * const out = getStreamSomehow(); + * const err = getStreamSomehow(); + * const myConsole = new console.Console(out, err); + * + * myConsole.log('hello world'); + * // Prints: hello world, to out + * myConsole.log('hello %s', 'world'); + * // Prints: hello world, to out + * myConsole.error(new Error('Whoops, something bad happened')); + * // Prints: [Error: Whoops, something bad happened], to err + * + * const name = 'Will Robinson'; + * myConsole.warn(`Danger ${name}! Danger!`); + * // Prints: Danger Will Robinson! Danger!, to err + * ``` + * @see [source](https://github.com/nodejs/node/blob/v16.4.2/lib/console.js) + */ + namespace console { + interface ConsoleConstructorOptions { + stdout: NodeJS.WritableStream; + stderr?: NodeJS.WritableStream | undefined; + ignoreErrors?: boolean | undefined; + colorMode?: boolean | 'auto' | undefined; + inspectOptions?: InspectOptions | undefined; + /** + * Set group indentation + * @default 2 + */ + groupIndentation?: number | undefined; + } + interface ConsoleConstructor { + prototype: Console; + new (stdout: NodeJS.WritableStream, stderr?: NodeJS.WritableStream, ignoreErrors?: boolean): Console; + new (options: ConsoleConstructorOptions): Console; + } + } + var console: Console; + } + export = globalThis.console; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/constants.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/constants.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..208020dcbab4ebcd7955b2abcb7ae49185f5976e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/constants.d.ts" @@ -0,0 +1,18 @@ +/** @deprecated since v6.3.0 - use constants property exposed by the relevant module instead. */ +declare module 'constants' { + import { constants as osConstants, SignalConstants } from 'node:os'; + import { constants as cryptoConstants } from 'node:crypto'; + import { constants as fsConstants } from 'node:fs'; + + const exp: typeof osConstants.errno & + typeof osConstants.priority & + SignalConstants & + typeof cryptoConstants & + typeof fsConstants; + export = exp; +} + +declare module 'node:constants' { + import constants = require('constants'); + export = constants; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/crypto.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/crypto.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..4dff48808784b9e6d36e3b45f2fd03779b5de2d7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/crypto.d.ts" @@ -0,0 +1,3307 @@ +/** + * The `crypto` module provides cryptographic functionality that includes a set of + * wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify functions. + * + * ```js + * const { createHmac } = await import('crypto'); + * + * const secret = 'abcdefg'; + * const hash = createHmac('sha256', secret) + * .update('I love cupcakes') + * .digest('hex'); + * console.log(hash); + * // Prints: + * // c0fa1bc00531bd78ef38c628449c5102aeabd49b5dc3a2a516ea6ea959d6658e + * ``` + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/crypto.js) + */ +declare module 'crypto' { + import * as stream from 'node:stream'; + import { PeerCertificate } from 'node:tls'; + interface Certificate { + /** + * @deprecated + * @param spkac + * @returns The challenge component of the `spkac` data structure, + * which includes a public key and a challenge. + */ + exportChallenge(spkac: BinaryLike): Buffer; + /** + * @deprecated + * @param spkac + * @param encoding The encoding of the spkac string. + * @returns The public key component of the `spkac` data structure, + * which includes a public key and a challenge. + */ + exportPublicKey(spkac: BinaryLike, encoding?: string): Buffer; + /** + * @deprecated + * @param spkac + * @returns `true` if the given `spkac` data structure is valid, + * `false` otherwise. + */ + verifySpkac(spkac: NodeJS.ArrayBufferView): boolean; + } + const Certificate: Certificate & { + /** @deprecated since v14.9.0 - Use static methods of `crypto.Certificate` instead. */ + new (): Certificate; + /** @deprecated since v14.9.0 - Use static methods of `crypto.Certificate` instead. */ + (): Certificate; + /** + * @param spkac + * @returns The challenge component of the `spkac` data structure, + * which includes a public key and a challenge. + */ + exportChallenge(spkac: BinaryLike): Buffer; + /** + * @param spkac + * @param encoding The encoding of the spkac string. + * @returns The public key component of the `spkac` data structure, + * which includes a public key and a challenge. + */ + exportPublicKey(spkac: BinaryLike, encoding?: string): Buffer; + /** + * @param spkac + * @returns `true` if the given `spkac` data structure is valid, + * `false` otherwise. + */ + verifySpkac(spkac: NodeJS.ArrayBufferView): boolean; + }; + namespace constants { + // https://nodejs.org/dist/latest-v10.x/docs/api/crypto.html#crypto_crypto_constants + const OPENSSL_VERSION_NUMBER: number; + /** Applies multiple bug workarounds within OpenSSL. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html for detail. */ + const SSL_OP_ALL: number; + /** Allows legacy insecure renegotiation between OpenSSL and unpatched clients or servers. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */ + const SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION: number; + /** Attempts to use the server's preferences instead of the client's when selecting a cipher. See https://www.openssl.org/docs/man1.0.2/ssl/SSL_CTX_set_options.html. */ + const SSL_OP_CIPHER_SERVER_PREFERENCE: number; + /** Instructs OpenSSL to use Cisco's "speshul" version of DTLS_BAD_VER. */ + const SSL_OP_CISCO_ANYCONNECT: number; + /** Instructs OpenSSL to turn on cookie exchange. */ + const SSL_OP_COOKIE_EXCHANGE: number; + /** Instructs OpenSSL to add server-hello extension from an early version of the cryptopro draft. */ + const SSL_OP_CRYPTOPRO_TLSEXT_BUG: number; + /** Instructs OpenSSL to disable a SSL 3.0/TLS 1.0 vulnerability workaround added in OpenSSL 0.9.6d. */ + const SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS: number; + /** Instructs OpenSSL to always use the tmp_rsa key when performing RSA operations. */ + const SSL_OP_EPHEMERAL_RSA: number; + /** Allows initial connection to servers that do not support RI. */ + const SSL_OP_LEGACY_SERVER_CONNECT: number; + const SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER: number; + const SSL_OP_MICROSOFT_SESS_ID_BUG: number; + /** Instructs OpenSSL to disable the workaround for a man-in-the-middle protocol-version vulnerability in the SSL 2.0 server implementation. */ + const SSL_OP_MSIE_SSLV2_RSA_PADDING: number; + const SSL_OP_NETSCAPE_CA_DN_BUG: number; + const SSL_OP_NETSCAPE_CHALLENGE_BUG: number; + const SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG: number; + const SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG: number; + /** Instructs OpenSSL to disable support for SSL/TLS compression. */ + const SSL_OP_NO_COMPRESSION: number; + const SSL_OP_NO_QUERY_MTU: number; + /** Instructs OpenSSL to always start a new session when performing renegotiation. */ + const SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION: number; + const SSL_OP_NO_SSLv2: number; + const SSL_OP_NO_SSLv3: number; + const SSL_OP_NO_TICKET: number; + const SSL_OP_NO_TLSv1: number; + const SSL_OP_NO_TLSv1_1: number; + const SSL_OP_NO_TLSv1_2: number; + const SSL_OP_PKCS1_CHECK_1: number; + const SSL_OP_PKCS1_CHECK_2: number; + /** Instructs OpenSSL to always create a new key when using temporary/ephemeral DH parameters. */ + const SSL_OP_SINGLE_DH_USE: number; + /** Instructs OpenSSL to always create a new key when using temporary/ephemeral ECDH parameters. */ + const SSL_OP_SINGLE_ECDH_USE: number; + const SSL_OP_SSLEAY_080_CLIENT_DH_BUG: number; + const SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG: number; + const SSL_OP_TLS_BLOCK_PADDING_BUG: number; + const SSL_OP_TLS_D5_BUG: number; + /** Instructs OpenSSL to disable version rollback attack detection. */ + const SSL_OP_TLS_ROLLBACK_BUG: number; + const ENGINE_METHOD_RSA: number; + const ENGINE_METHOD_DSA: number; + const ENGINE_METHOD_DH: number; + const ENGINE_METHOD_RAND: number; + const ENGINE_METHOD_EC: number; + const ENGINE_METHOD_CIPHERS: number; + const ENGINE_METHOD_DIGESTS: number; + const ENGINE_METHOD_PKEY_METHS: number; + const ENGINE_METHOD_PKEY_ASN1_METHS: number; + const ENGINE_METHOD_ALL: number; + const ENGINE_METHOD_NONE: number; + const DH_CHECK_P_NOT_SAFE_PRIME: number; + const DH_CHECK_P_NOT_PRIME: number; + const DH_UNABLE_TO_CHECK_GENERATOR: number; + const DH_NOT_SUITABLE_GENERATOR: number; + const ALPN_ENABLED: number; + const RSA_PKCS1_PADDING: number; + const RSA_SSLV23_PADDING: number; + const RSA_NO_PADDING: number; + const RSA_PKCS1_OAEP_PADDING: number; + const RSA_X931_PADDING: number; + const RSA_PKCS1_PSS_PADDING: number; + /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the digest size when signing or verifying. */ + const RSA_PSS_SALTLEN_DIGEST: number; + /** Sets the salt length for RSA_PKCS1_PSS_PADDING to the maximum permissible value when signing data. */ + const RSA_PSS_SALTLEN_MAX_SIGN: number; + /** Causes the salt length for RSA_PKCS1_PSS_PADDING to be determined automatically when verifying a signature. */ + const RSA_PSS_SALTLEN_AUTO: number; + const POINT_CONVERSION_COMPRESSED: number; + const POINT_CONVERSION_UNCOMPRESSED: number; + const POINT_CONVERSION_HYBRID: number; + /** Specifies the built-in default cipher list used by Node.js (colon-separated values). */ + const defaultCoreCipherList: string; + /** Specifies the active default cipher list used by the current Node.js process (colon-separated values). */ + const defaultCipherList: string; + } + interface HashOptions extends stream.TransformOptions { + /** + * For XOF hash functions such as `shake256`, the + * outputLength option can be used to specify the desired output length in bytes. + */ + outputLength?: number | undefined; + } + /** @deprecated since v10.0.0 */ + const fips: boolean; + /** + * Creates and returns a `Hash` object that can be used to generate hash digests + * using the given `algorithm`. Optional `options` argument controls stream + * behavior. For XOF hash functions such as `'shake256'`, the `outputLength` option + * can be used to specify the desired output length in bytes. + * + * The `algorithm` is dependent on the available algorithms supported by the + * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. + * On recent releases of OpenSSL, `openssl list -digest-algorithms`(`openssl list-message-digest-algorithms` for older versions of OpenSSL) will + * display the available digest algorithms. + * + * Example: generating the sha256 sum of a file + * + * ```js + * import { + * createReadStream + * } from 'fs'; + * import { argv } from 'process'; + * const { + * createHash + * } = await import('crypto'); + * + * const filename = argv[2]; + * + * const hash = createHash('sha256'); + * + * const input = createReadStream(filename); + * input.on('readable', () => { + * // Only one element is going to be produced by the + * // hash stream. + * const data = input.read(); + * if (data) + * hash.update(data); + * else { + * console.log(`${hash.digest('hex')} ${filename}`); + * } + * }); + * ``` + * @since v0.1.92 + * @param options `stream.transform` options + */ + function createHash(algorithm: string, options?: HashOptions): Hash; + /** + * Creates and returns an `Hmac` object that uses the given `algorithm` and `key`. + * Optional `options` argument controls stream behavior. + * + * The `algorithm` is dependent on the available algorithms supported by the + * version of OpenSSL on the platform. Examples are `'sha256'`, `'sha512'`, etc. + * On recent releases of OpenSSL, `openssl list -digest-algorithms`(`openssl list-message-digest-algorithms` for older versions of OpenSSL) will + * display the available digest algorithms. + * + * The `key` is the HMAC key used to generate the cryptographic HMAC hash. If it is + * a `KeyObject`, its type must be `secret`. + * + * Example: generating the sha256 HMAC of a file + * + * ```js + * import { + * createReadStream + * } from 'fs'; + * import { argv } from 'process'; + * const { + * createHmac + * } = await import('crypto'); + * + * const filename = argv[2]; + * + * const hmac = createHmac('sha256', 'a secret'); + * + * const input = createReadStream(filename); + * input.on('readable', () => { + * // Only one element is going to be produced by the + * // hash stream. + * const data = input.read(); + * if (data) + * hmac.update(data); + * else { + * console.log(`${hmac.digest('hex')} ${filename}`); + * } + * }); + * ``` + * @since v0.1.94 + * @param options `stream.transform` options + */ + function createHmac(algorithm: string, key: BinaryLike | KeyObject, options?: stream.TransformOptions): Hmac; + // https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings + type BinaryToTextEncoding = 'base64' | 'base64url' | 'hex' | 'binary'; + type CharacterEncoding = 'utf8' | 'utf-8' | 'utf16le' | 'latin1'; + type LegacyCharacterEncoding = 'ascii' | 'binary' | 'ucs2' | 'ucs-2'; + type Encoding = BinaryToTextEncoding | CharacterEncoding | LegacyCharacterEncoding; + type ECDHKeyFormat = 'compressed' | 'uncompressed' | 'hybrid'; + /** + * The `Hash` class is a utility for creating hash digests of data. It can be + * used in one of two ways: + * + * * As a `stream` that is both readable and writable, where data is written + * to produce a computed hash digest on the readable side, or + * * Using the `hash.update()` and `hash.digest()` methods to produce the + * computed hash. + * + * The {@link createHash} method is used to create `Hash` instances. `Hash`objects are not to be created directly using the `new` keyword. + * + * Example: Using `Hash` objects as streams: + * + * ```js + * const { + * createHash + * } = await import('crypto'); + * + * const hash = createHash('sha256'); + * + * hash.on('readable', () => { + * // Only one element is going to be produced by the + * // hash stream. + * const data = hash.read(); + * if (data) { + * console.log(data.toString('hex')); + * // Prints: + * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50 + * } + * }); + * + * hash.write('some data to hash'); + * hash.end(); + * ``` + * + * Example: Using `Hash` and piped streams: + * + * ```js + * import { createReadStream } from 'fs'; + * import { stdout } from 'process'; + * const { createHash } = await import('crypto'); + * + * const hash = createHash('sha256'); + * + * const input = createReadStream('test.js'); + * input.pipe(hash).setEncoding('hex').pipe(stdout); + * ``` + * + * Example: Using the `hash.update()` and `hash.digest()` methods: + * + * ```js + * const { + * createHash + * } = await import('crypto'); + * + * const hash = createHash('sha256'); + * + * hash.update('some data to hash'); + * console.log(hash.digest('hex')); + * // Prints: + * // 6a2da20943931e9834fc12cfe5bb47bbd9ae43489a30726962b576f4e3993e50 + * ``` + * @since v0.1.92 + */ + class Hash extends stream.Transform { + private constructor(); + /** + * Creates a new `Hash` object that contains a deep copy of the internal state + * of the current `Hash` object. + * + * The optional `options` argument controls stream behavior. For XOF hash + * functions such as `'shake256'`, the `outputLength` option can be used to + * specify the desired output length in bytes. + * + * An error is thrown when an attempt is made to copy the `Hash` object after + * its `hash.digest()` method has been called. + * + * ```js + * // Calculate a rolling hash. + * const { + * createHash + * } = await import('crypto'); + * + * const hash = createHash('sha256'); + * + * hash.update('one'); + * console.log(hash.copy().digest('hex')); + * + * hash.update('two'); + * console.log(hash.copy().digest('hex')); + * + * hash.update('three'); + * console.log(hash.copy().digest('hex')); + * + * // Etc. + * ``` + * @since v13.1.0 + * @param options `stream.transform` options + */ + copy(options?: stream.TransformOptions): Hash; + /** + * Updates the hash content with the given `data`, the encoding of which + * is given in `inputEncoding`. + * If `encoding` is not provided, and the `data` is a string, an + * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. + * + * This can be called many times with new data as it is streamed. + * @since v0.1.92 + * @param inputEncoding The `encoding` of the `data` string. + */ + update(data: BinaryLike): Hash; + update(data: string, inputEncoding: Encoding): Hash; + /** + * Calculates the digest of all of the data passed to be hashed (using the `hash.update()` method). + * If `encoding` is provided a string will be returned; otherwise + * a `Buffer` is returned. + * + * The `Hash` object can not be used again after `hash.digest()` method has been + * called. Multiple calls will cause an error to be thrown. + * @since v0.1.92 + * @param encoding The `encoding` of the return value. + */ + digest(): Buffer; + digest(encoding: BinaryToTextEncoding): string; + } + /** + * The `Hmac` class is a utility for creating cryptographic HMAC digests. It can + * be used in one of two ways: + * + * * As a `stream` that is both readable and writable, where data is written + * to produce a computed HMAC digest on the readable side, or + * * Using the `hmac.update()` and `hmac.digest()` methods to produce the + * computed HMAC digest. + * + * The {@link createHmac} method is used to create `Hmac` instances. `Hmac`objects are not to be created directly using the `new` keyword. + * + * Example: Using `Hmac` objects as streams: + * + * ```js + * const { + * createHmac + * } = await import('crypto'); + * + * const hmac = createHmac('sha256', 'a secret'); + * + * hmac.on('readable', () => { + * // Only one element is going to be produced by the + * // hash stream. + * const data = hmac.read(); + * if (data) { + * console.log(data.toString('hex')); + * // Prints: + * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e + * } + * }); + * + * hmac.write('some data to hash'); + * hmac.end(); + * ``` + * + * Example: Using `Hmac` and piped streams: + * + * ```js + * import { createReadStream } from 'fs'; + * import { stdout } from 'process'; + * const { + * createHmac + * } = await import('crypto'); + * + * const hmac = createHmac('sha256', 'a secret'); + * + * const input = createReadStream('test.js'); + * input.pipe(hmac).pipe(stdout); + * ``` + * + * Example: Using the `hmac.update()` and `hmac.digest()` methods: + * + * ```js + * const { + * createHmac + * } = await import('crypto'); + * + * const hmac = createHmac('sha256', 'a secret'); + * + * hmac.update('some data to hash'); + * console.log(hmac.digest('hex')); + * // Prints: + * // 7fd04df92f636fd450bc841c9418e5825c17f33ad9c87c518115a45971f7f77e + * ``` + * @since v0.1.94 + */ + class Hmac extends stream.Transform { + private constructor(); + /** + * Updates the `Hmac` content with the given `data`, the encoding of which + * is given in `inputEncoding`. + * If `encoding` is not provided, and the `data` is a string, an + * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. + * + * This can be called many times with new data as it is streamed. + * @since v0.1.94 + * @param inputEncoding The `encoding` of the `data` string. + */ + update(data: BinaryLike): Hmac; + update(data: string, inputEncoding: Encoding): Hmac; + /** + * Calculates the HMAC digest of all of the data passed using `hmac.update()`. + * If `encoding` is + * provided a string is returned; otherwise a `Buffer` is returned; + * + * The `Hmac` object can not be used again after `hmac.digest()` has been + * called. Multiple calls to `hmac.digest()` will result in an error being thrown. + * @since v0.1.94 + * @param encoding The `encoding` of the return value. + */ + digest(): Buffer; + digest(encoding: BinaryToTextEncoding): string; + } + type KeyObjectType = 'secret' | 'public' | 'private'; + interface KeyExportOptions { + type: 'pkcs1' | 'spki' | 'pkcs8' | 'sec1'; + format: T; + cipher?: string | undefined; + passphrase?: string | Buffer | undefined; + } + interface JwkKeyExportOptions { + format: 'jwk'; + } + interface JsonWebKey { + crv?: string | undefined; + d?: string | undefined; + dp?: string | undefined; + dq?: string | undefined; + e?: string | undefined; + k?: string | undefined; + kty?: string | undefined; + n?: string | undefined; + p?: string | undefined; + q?: string | undefined; + qi?: string | undefined; + x?: string | undefined; + y?: string | undefined; + [key: string]: unknown; + } + interface AsymmetricKeyDetails { + /** + * Key size in bits (RSA, DSA). + */ + modulusLength?: number | undefined; + /** + * Public exponent (RSA). + */ + publicExponent?: bigint | undefined; + /** + * Name of the message digest (RSA-PSS). + */ + hashAlgorithm?: string | undefined; + /** + * Name of the message digest used by MGF1 (RSA-PSS). + */ + mgf1HashAlgorithm?: string | undefined; + /** + * Minimal salt length in bytes (RSA-PSS). + */ + saltLength?: number | undefined; + /** + * Size of q in bits (DSA). + */ + divisorLength?: number | undefined; + /** + * Name of the curve (EC). + */ + namedCurve?: string | undefined; + } + interface JwkKeyExportOptions { + format: 'jwk'; + } + /** + * Node.js uses a `KeyObject` class to represent a symmetric or asymmetric key, + * and each kind of key exposes different functions. The {@link createSecretKey}, {@link createPublicKey} and {@link createPrivateKey} methods are used to create `KeyObject`instances. `KeyObject` + * objects are not to be created directly using the `new`keyword. + * + * Most applications should consider using the new `KeyObject` API instead of + * passing keys as strings or `Buffer`s due to improved security features. + * + * `KeyObject` instances can be passed to other threads via `postMessage()`. + * The receiver obtains a cloned `KeyObject`, and the `KeyObject` does not need to + * be listed in the `transferList` argument. + * @since v11.6.0 + */ + class KeyObject { + private constructor(); + /** + * Example: Converting a `CryptoKey` instance to a `KeyObject`: + * + * ```js + * const { webcrypto, KeyObject } = await import('crypto'); + * const { subtle } = webcrypto; + * + * const key = await subtle.generateKey({ + * name: 'HMAC', + * hash: 'SHA-256', + * length: 256 + * }, true, ['sign', 'verify']); + * + * const keyObject = KeyObject.from(key); + * console.log(keyObject.symmetricKeySize); + * // Prints: 32 (symmetric key size in bytes) + * ``` + * @since v15.0.0 + */ + static from(key: webcrypto.CryptoKey): KeyObject; + /** + * For asymmetric keys, this property represents the type of the key. Supported key + * types are: + * + * * `'rsa'` (OID 1.2.840.113549.1.1.1) + * * `'rsa-pss'` (OID 1.2.840.113549.1.1.10) + * * `'dsa'` (OID 1.2.840.10040.4.1) + * * `'ec'` (OID 1.2.840.10045.2.1) + * * `'x25519'` (OID 1.3.101.110) + * * `'x448'` (OID 1.3.101.111) + * * `'ed25519'` (OID 1.3.101.112) + * * `'ed448'` (OID 1.3.101.113) + * * `'dh'` (OID 1.2.840.113549.1.3.1) + * + * This property is `undefined` for unrecognized `KeyObject` types and symmetric + * keys. + * @since v11.6.0 + */ + asymmetricKeyType?: KeyType | undefined; + /** + * For asymmetric keys, this property represents the size of the embedded key in + * bytes. This property is `undefined` for symmetric keys. + */ + asymmetricKeySize?: number | undefined; + /** + * This property exists only on asymmetric keys. Depending on the type of the key, + * this object contains information about the key. None of the information obtained + * through this property can be used to uniquely identify a key or to compromise + * the security of the key. + * + * For RSA-PSS keys, if the key material contains a `RSASSA-PSS-params` sequence, + * the `hashAlgorithm`, `mgf1HashAlgorithm`, and `saltLength` properties will be + * set. + * + * Other key details might be exposed via this API using additional attributes. + * @since v15.7.0 + */ + asymmetricKeyDetails?: AsymmetricKeyDetails | undefined; + /** + * For symmetric keys, the following encoding options can be used: + * + * For public keys, the following encoding options can be used: + * + * For private keys, the following encoding options can be used: + * + * The result type depends on the selected encoding format, when PEM the + * result is a string, when DER it will be a buffer containing the data + * encoded as DER, when [JWK](https://tools.ietf.org/html/rfc7517) it will be an object. + * + * When [JWK](https://tools.ietf.org/html/rfc7517) encoding format was selected, all other encoding options are + * ignored. + * + * PKCS#1, SEC1, and PKCS#8 type keys can be encrypted by using a combination of + * the `cipher` and `format` options. The PKCS#8 `type` can be used with any`format` to encrypt any key algorithm (RSA, EC, or DH) by specifying a`cipher`. PKCS#1 and SEC1 can only be + * encrypted by specifying a `cipher`when the PEM `format` is used. For maximum compatibility, use PKCS#8 for + * encrypted private keys. Since PKCS#8 defines its own + * encryption mechanism, PEM-level encryption is not supported when encrypting + * a PKCS#8 key. See [RFC 5208](https://www.rfc-editor.org/rfc/rfc5208.txt) for PKCS#8 encryption and [RFC 1421](https://www.rfc-editor.org/rfc/rfc1421.txt) for + * PKCS#1 and SEC1 encryption. + * @since v11.6.0 + */ + export(options: KeyExportOptions<'pem'>): string | Buffer; + export(options?: KeyExportOptions<'der'>): Buffer; + export(options?: JwkKeyExportOptions): JsonWebKey; + /** + * For secret keys, this property represents the size of the key in bytes. This + * property is `undefined` for asymmetric keys. + * @since v11.6.0 + */ + symmetricKeySize?: number | undefined; + /** + * Depending on the type of this `KeyObject`, this property is either`'secret'` for secret (symmetric) keys, `'public'` for public (asymmetric) keys + * or `'private'` for private (asymmetric) keys. + * @since v11.6.0 + */ + type: KeyObjectType; + } + type CipherCCMTypes = 'aes-128-ccm' | 'aes-192-ccm' | 'aes-256-ccm' | 'chacha20-poly1305'; + type CipherGCMTypes = 'aes-128-gcm' | 'aes-192-gcm' | 'aes-256-gcm'; + type BinaryLike = string | NodeJS.ArrayBufferView; + type CipherKey = BinaryLike | KeyObject; + interface CipherCCMOptions extends stream.TransformOptions { + authTagLength: number; + } + interface CipherGCMOptions extends stream.TransformOptions { + authTagLength?: number | undefined; + } + /** + * Creates and returns a `Cipher` object that uses the given `algorithm` and`password`. + * + * The `options` argument controls stream behavior and is optional except when a + * cipher in CCM or OCB mode is used (e.g. `'aes-128-ccm'`). In that case, the`authTagLength` option is required and specifies the length of the + * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication + * tag that will be returned by `getAuthTag()` and defaults to 16 bytes. + * + * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On + * recent OpenSSL releases, `openssl list -cipher-algorithms`(`openssl list-cipher-algorithms` for older versions of OpenSSL) will + * display the available cipher algorithms. + * + * The `password` is used to derive the cipher key and initialization vector (IV). + * The value must be either a `'latin1'` encoded string, a `Buffer`, a`TypedArray`, or a `DataView`. + * + * The implementation of `crypto.createCipher()` derives keys using the OpenSSL + * function [`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) with the digest algorithm set to MD5, one + * iteration, and no salt. The lack of salt allows dictionary attacks as the same + * password always creates the same key. The low iteration count and + * non-cryptographically secure hash algorithm allow passwords to be tested very + * rapidly. + * + * In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) it is recommended that + * developers derive a key and IV on + * their own using {@link scrypt} and to use {@link createCipheriv} to create the `Cipher` object. Users should not use ciphers with counter mode + * (e.g. CTR, GCM, or CCM) in `crypto.createCipher()`. A warning is emitted when + * they are used in order to avoid the risk of IV reuse that causes + * vulnerabilities. For the case when IV is reused in GCM, see [Nonce-Disrespecting Adversaries](https://github.com/nonce-disrespect/nonce-disrespect) for details. + * @since v0.1.94 + * @deprecated Since v10.0.0 - Use {@link createCipheriv} instead. + * @param options `stream.transform` options + */ + function createCipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): CipherCCM; + /** @deprecated since v10.0.0 use `createCipheriv()` */ + function createCipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): CipherGCM; + /** @deprecated since v10.0.0 use `createCipheriv()` */ + function createCipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Cipher; + /** + * Creates and returns a `Cipher` object, with the given `algorithm`, `key` and + * initialization vector (`iv`). + * + * The `options` argument controls stream behavior and is optional except when a + * cipher in CCM or OCB mode is used (e.g. `'aes-128-ccm'`). In that case, the`authTagLength` option is required and specifies the length of the + * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to set the length of the authentication + * tag that will be returned by `getAuthTag()` and defaults to 16 bytes. + * + * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On + * recent OpenSSL releases, `openssl list -cipher-algorithms`(`openssl list-cipher-algorithms` for older versions of OpenSSL) will + * display the available cipher algorithms. + * + * The `key` is the raw key used by the `algorithm` and `iv` is an [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded + * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be + * a `KeyObject` of type `secret`. If the cipher does not need + * an initialization vector, `iv` may be `null`. + * + * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`. + * + * Initialization vectors should be unpredictable and unique; ideally, they will be + * cryptographically random. They do not have to be secret: IVs are typically just + * added to ciphertext messages unencrypted. It may sound contradictory that + * something has to be unpredictable and unique, but does not have to be secret; + * remember that an attacker must not be able to predict ahead of time what a + * given IV will be. + * @since v0.1.94 + * @param options `stream.transform` options + */ + function createCipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike | null, options: CipherCCMOptions): CipherCCM; + function createCipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike | null, options?: CipherGCMOptions): CipherGCM; + function createCipheriv(algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions): Cipher; + /** + * Instances of the `Cipher` class are used to encrypt data. The class can be + * used in one of two ways: + * + * * As a `stream` that is both readable and writable, where plain unencrypted + * data is written to produce encrypted data on the readable side, or + * * Using the `cipher.update()` and `cipher.final()` methods to produce + * the encrypted data. + * + * The {@link createCipher} or {@link createCipheriv} methods are + * used to create `Cipher` instances. `Cipher` objects are not to be created + * directly using the `new` keyword. + * + * Example: Using `Cipher` objects as streams: + * + * ```js + * const { + * scrypt, + * randomFill, + * createCipheriv + * } = await import('crypto'); + * + * const algorithm = 'aes-192-cbc'; + * const password = 'Password used to generate key'; + * + * // First, we'll generate the key. The key length is dependent on the algorithm. + * // In this case for aes192, it is 24 bytes (192 bits). + * scrypt(password, 'salt', 24, (err, key) => { + * if (err) throw err; + * // Then, we'll generate a random initialization vector + * randomFill(new Uint8Array(16), (err, iv) => { + * if (err) throw err; + * + * // Once we have the key and iv, we can create and use the cipher... + * const cipher = createCipheriv(algorithm, key, iv); + * + * let encrypted = ''; + * cipher.setEncoding('hex'); + * + * cipher.on('data', (chunk) => encrypted += chunk); + * cipher.on('end', () => console.log(encrypted)); + * + * cipher.write('some clear text data'); + * cipher.end(); + * }); + * }); + * ``` + * + * Example: Using `Cipher` and piped streams: + * + * ```js + * import { + * createReadStream, + * createWriteStream, + * } from 'fs'; + * + * import { + * pipeline + * } from 'stream'; + * + * const { + * scrypt, + * randomFill, + * createCipheriv + * } = await import('crypto'); + * + * const algorithm = 'aes-192-cbc'; + * const password = 'Password used to generate key'; + * + * // First, we'll generate the key. The key length is dependent on the algorithm. + * // In this case for aes192, it is 24 bytes (192 bits). + * scrypt(password, 'salt', 24, (err, key) => { + * if (err) throw err; + * // Then, we'll generate a random initialization vector + * randomFill(new Uint8Array(16), (err, iv) => { + * if (err) throw err; + * + * const cipher = createCipheriv(algorithm, key, iv); + * + * const input = createReadStream('test.js'); + * const output = createWriteStream('test.enc'); + * + * pipeline(input, cipher, output, (err) => { + * if (err) throw err; + * }); + * }); + * }); + * ``` + * + * Example: Using the `cipher.update()` and `cipher.final()` methods: + * + * ```js + * const { + * scrypt, + * randomFill, + * createCipheriv + * } = await import('crypto'); + * + * const algorithm = 'aes-192-cbc'; + * const password = 'Password used to generate key'; + * + * // First, we'll generate the key. The key length is dependent on the algorithm. + * // In this case for aes192, it is 24 bytes (192 bits). + * scrypt(password, 'salt', 24, (err, key) => { + * if (err) throw err; + * // Then, we'll generate a random initialization vector + * randomFill(new Uint8Array(16), (err, iv) => { + * if (err) throw err; + * + * const cipher = createCipheriv(algorithm, key, iv); + * + * let encrypted = cipher.update('some clear text data', 'utf8', 'hex'); + * encrypted += cipher.final('hex'); + * console.log(encrypted); + * }); + * }); + * ``` + * @since v0.1.94 + */ + class Cipher extends stream.Transform { + private constructor(); + /** + * Updates the cipher with `data`. If the `inputEncoding` argument is given, + * the `data`argument is a string using the specified encoding. If the `inputEncoding`argument is not given, `data` must be a `Buffer`, `TypedArray`, or`DataView`. If `data` is a `Buffer`, + * `TypedArray`, or `DataView`, then`inputEncoding` is ignored. + * + * The `outputEncoding` specifies the output format of the enciphered + * data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned. + * + * The `cipher.update()` method can be called multiple times with new data until `cipher.final()` is called. Calling `cipher.update()` after `cipher.final()` will result in an error being + * thrown. + * @since v0.1.94 + * @param inputEncoding The `encoding` of the data. + * @param outputEncoding The `encoding` of the return value. + */ + update(data: BinaryLike): Buffer; + update(data: string, inputEncoding: Encoding): Buffer; + update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string; + update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string; + /** + * Once the `cipher.final()` method has been called, the `Cipher` object can no + * longer be used to encrypt data. Attempts to call `cipher.final()` more than + * once will result in an error being thrown. + * @since v0.1.94 + * @param outputEncoding The `encoding` of the return value. + * @return Any remaining enciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned. + */ + final(): Buffer; + final(outputEncoding: BufferEncoding): string; + /** + * When using block encryption algorithms, the `Cipher` class will automatically + * add padding to the input data to the appropriate block size. To disable the + * default padding call `cipher.setAutoPadding(false)`. + * + * When `autoPadding` is `false`, the length of the entire input data must be a + * multiple of the cipher's block size or `cipher.final()` will throw an error. + * Disabling automatic padding is useful for non-standard padding, for instance + * using `0x0` instead of PKCS padding. + * + * The `cipher.setAutoPadding()` method must be called before `cipher.final()`. + * @since v0.7.1 + * @param [autoPadding=true] + * @return for method chaining. + */ + setAutoPadding(autoPadding?: boolean): this; + } + interface CipherCCM extends Cipher { + setAAD( + buffer: NodeJS.ArrayBufferView, + options: { + plaintextLength: number; + } + ): this; + getAuthTag(): Buffer; + } + interface CipherGCM extends Cipher { + setAAD( + buffer: NodeJS.ArrayBufferView, + options?: { + plaintextLength: number; + } + ): this; + getAuthTag(): Buffer; + } + /** + * Creates and returns a `Decipher` object that uses the given `algorithm` and`password` (key). + * + * The `options` argument controls stream behavior and is optional except when a + * cipher in CCM or OCB mode is used (e.g. `'aes-128-ccm'`). In that case, the`authTagLength` option is required and specifies the length of the + * authentication tag in bytes, see `CCM mode`. + * + * The implementation of `crypto.createDecipher()` derives keys using the OpenSSL + * function [`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) with the digest algorithm set to MD5, one + * iteration, and no salt. The lack of salt allows dictionary attacks as the same + * password always creates the same key. The low iteration count and + * non-cryptographically secure hash algorithm allow passwords to be tested very + * rapidly. + * + * In line with OpenSSL's recommendation to use a more modern algorithm instead of [`EVP_BytesToKey`](https://www.openssl.org/docs/man1.1.0/crypto/EVP_BytesToKey.html) it is recommended that + * developers derive a key and IV on + * their own using {@link scrypt} and to use {@link createDecipheriv} to create the `Decipher` object. + * @since v0.1.94 + * @deprecated Since v10.0.0 - Use {@link createDecipheriv} instead. + * @param options `stream.transform` options + */ + function createDecipher(algorithm: CipherCCMTypes, password: BinaryLike, options: CipherCCMOptions): DecipherCCM; + /** @deprecated since v10.0.0 use `createDecipheriv()` */ + function createDecipher(algorithm: CipherGCMTypes, password: BinaryLike, options?: CipherGCMOptions): DecipherGCM; + /** @deprecated since v10.0.0 use `createDecipheriv()` */ + function createDecipher(algorithm: string, password: BinaryLike, options?: stream.TransformOptions): Decipher; + /** + * Creates and returns a `Decipher` object that uses the given `algorithm`, `key`and initialization vector (`iv`). + * + * The `options` argument controls stream behavior and is optional except when a + * cipher in CCM or OCB mode is used (e.g. `'aes-128-ccm'`). In that case, the`authTagLength` option is required and specifies the length of the + * authentication tag in bytes, see `CCM mode`. In GCM mode, the `authTagLength`option is not required but can be used to restrict accepted authentication tags + * to those with the specified length. + * + * The `algorithm` is dependent on OpenSSL, examples are `'aes192'`, etc. On + * recent OpenSSL releases, `openssl list -cipher-algorithms`(`openssl list-cipher-algorithms` for older versions of OpenSSL) will + * display the available cipher algorithms. + * + * The `key` is the raw key used by the `algorithm` and `iv` is an [initialization vector](https://en.wikipedia.org/wiki/Initialization_vector). Both arguments must be `'utf8'` encoded + * strings,`Buffers`, `TypedArray`, or `DataView`s. The `key` may optionally be + * a `KeyObject` of type `secret`. If the cipher does not need + * an initialization vector, `iv` may be `null`. + * + * When passing strings for `key` or `iv`, please consider `caveats when using strings as inputs to cryptographic APIs`. + * + * Initialization vectors should be unpredictable and unique; ideally, they will be + * cryptographically random. They do not have to be secret: IVs are typically just + * added to ciphertext messages unencrypted. It may sound contradictory that + * something has to be unpredictable and unique, but does not have to be secret; + * remember that an attacker must not be able to predict ahead of time what a given + * IV will be. + * @since v0.1.94 + * @param options `stream.transform` options + */ + function createDecipheriv(algorithm: CipherCCMTypes, key: CipherKey, iv: BinaryLike | null, options: CipherCCMOptions): DecipherCCM; + function createDecipheriv(algorithm: CipherGCMTypes, key: CipherKey, iv: BinaryLike | null, options?: CipherGCMOptions): DecipherGCM; + function createDecipheriv(algorithm: string, key: CipherKey, iv: BinaryLike | null, options?: stream.TransformOptions): Decipher; + /** + * Instances of the `Decipher` class are used to decrypt data. The class can be + * used in one of two ways: + * + * * As a `stream` that is both readable and writable, where plain encrypted + * data is written to produce unencrypted data on the readable side, or + * * Using the `decipher.update()` and `decipher.final()` methods to + * produce the unencrypted data. + * + * The {@link createDecipher} or {@link createDecipheriv} methods are + * used to create `Decipher` instances. `Decipher` objects are not to be created + * directly using the `new` keyword. + * + * Example: Using `Decipher` objects as streams: + * + * ```js + * import { Buffer } from 'buffer'; + * const { + * scryptSync, + * createDecipheriv + * } = await import('crypto'); + * + * const algorithm = 'aes-192-cbc'; + * const password = 'Password used to generate key'; + * // Key length is dependent on the algorithm. In this case for aes192, it is + * // 24 bytes (192 bits). + * // Use the async `crypto.scrypt()` instead. + * const key = scryptSync(password, 'salt', 24); + * // The IV is usually passed along with the ciphertext. + * const iv = Buffer.alloc(16, 0); // Initialization vector. + * + * const decipher = createDecipheriv(algorithm, key, iv); + * + * let decrypted = ''; + * decipher.on('readable', () => { + * while (null !== (chunk = decipher.read())) { + * decrypted += chunk.toString('utf8'); + * } + * }); + * decipher.on('end', () => { + * console.log(decrypted); + * // Prints: some clear text data + * }); + * + * // Encrypted with same algorithm, key and iv. + * const encrypted = + * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa'; + * decipher.write(encrypted, 'hex'); + * decipher.end(); + * ``` + * + * Example: Using `Decipher` and piped streams: + * + * ```js + * import { + * createReadStream, + * createWriteStream, + * } from 'fs'; + * import { Buffer } from 'buffer'; + * const { + * scryptSync, + * createDecipheriv + * } = await import('crypto'); + * + * const algorithm = 'aes-192-cbc'; + * const password = 'Password used to generate key'; + * // Use the async `crypto.scrypt()` instead. + * const key = scryptSync(password, 'salt', 24); + * // The IV is usually passed along with the ciphertext. + * const iv = Buffer.alloc(16, 0); // Initialization vector. + * + * const decipher = createDecipheriv(algorithm, key, iv); + * + * const input = createReadStream('test.enc'); + * const output = createWriteStream('test.js'); + * + * input.pipe(decipher).pipe(output); + * ``` + * + * Example: Using the `decipher.update()` and `decipher.final()` methods: + * + * ```js + * import { Buffer } from 'buffer'; + * const { + * scryptSync, + * createDecipheriv + * } = await import('crypto'); + * + * const algorithm = 'aes-192-cbc'; + * const password = 'Password used to generate key'; + * // Use the async `crypto.scrypt()` instead. + * const key = scryptSync(password, 'salt', 24); + * // The IV is usually passed along with the ciphertext. + * const iv = Buffer.alloc(16, 0); // Initialization vector. + * + * const decipher = createDecipheriv(algorithm, key, iv); + * + * // Encrypted using same algorithm, key and iv. + * const encrypted = + * 'e5f79c5915c02171eec6b212d5520d44480993d7d622a7c4c2da32f6efda0ffa'; + * let decrypted = decipher.update(encrypted, 'hex', 'utf8'); + * decrypted += decipher.final('utf8'); + * console.log(decrypted); + * // Prints: some clear text data + * ``` + * @since v0.1.94 + */ + class Decipher extends stream.Transform { + private constructor(); + /** + * Updates the decipher with `data`. If the `inputEncoding` argument is given, + * the `data`argument is a string using the specified encoding. If the `inputEncoding`argument is not given, `data` must be a `Buffer`. If `data` is a `Buffer` then `inputEncoding` is + * ignored. + * + * The `outputEncoding` specifies the output format of the enciphered + * data. If the `outputEncoding`is specified, a string using the specified encoding is returned. If no`outputEncoding` is provided, a `Buffer` is returned. + * + * The `decipher.update()` method can be called multiple times with new data until `decipher.final()` is called. Calling `decipher.update()` after `decipher.final()` will result in an error + * being thrown. + * @since v0.1.94 + * @param inputEncoding The `encoding` of the `data` string. + * @param outputEncoding The `encoding` of the return value. + */ + update(data: NodeJS.ArrayBufferView): Buffer; + update(data: string, inputEncoding: Encoding): Buffer; + update(data: NodeJS.ArrayBufferView, inputEncoding: undefined, outputEncoding: Encoding): string; + update(data: string, inputEncoding: Encoding | undefined, outputEncoding: Encoding): string; + /** + * Once the `decipher.final()` method has been called, the `Decipher` object can + * no longer be used to decrypt data. Attempts to call `decipher.final()` more + * than once will result in an error being thrown. + * @since v0.1.94 + * @param outputEncoding The `encoding` of the return value. + * @return Any remaining deciphered contents. If `outputEncoding` is specified, a string is returned. If an `outputEncoding` is not provided, a {@link Buffer} is returned. + */ + final(): Buffer; + final(outputEncoding: BufferEncoding): string; + /** + * When data has been encrypted without standard block padding, calling`decipher.setAutoPadding(false)` will disable automatic padding to prevent `decipher.final()` from checking for and + * removing padding. + * + * Turning auto padding off will only work if the input data's length is a + * multiple of the ciphers block size. + * + * The `decipher.setAutoPadding()` method must be called before `decipher.final()`. + * @since v0.7.1 + * @param [autoPadding=true] + * @return for method chaining. + */ + setAutoPadding(auto_padding?: boolean): this; + } + interface DecipherCCM extends Decipher { + setAuthTag(buffer: NodeJS.ArrayBufferView): this; + setAAD( + buffer: NodeJS.ArrayBufferView, + options: { + plaintextLength: number; + } + ): this; + } + interface DecipherGCM extends Decipher { + setAuthTag(buffer: NodeJS.ArrayBufferView): this; + setAAD( + buffer: NodeJS.ArrayBufferView, + options?: { + plaintextLength: number; + } + ): this; + } + interface PrivateKeyInput { + key: string | Buffer; + format?: KeyFormat | undefined; + type?: 'pkcs1' | 'pkcs8' | 'sec1' | undefined; + passphrase?: string | Buffer | undefined; + } + interface PublicKeyInput { + key: string | Buffer; + format?: KeyFormat | undefined; + type?: 'pkcs1' | 'spki' | undefined; + } + /** + * Asynchronously generates a new random secret key of the given `length`. The`type` will determine which validations will be performed on the `length`. + * + * ```js + * const { + * generateKey + * } = await import('crypto'); + * + * generateKey('hmac', { length: 64 }, (err, key) => { + * if (err) throw err; + * console.log(key.export().toString('hex')); // 46e..........620 + * }); + * ``` + * @since v15.0.0 + * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`. + */ + function generateKey( + type: 'hmac' | 'aes', + options: { + length: number; + }, + callback: (err: Error | null, key: KeyObject) => void + ): void; + /** + * Synchronously generates a new random secret key of the given `length`. The`type` will determine which validations will be performed on the `length`. + * + * ```js + * const { + * generateKeySync + * } = await import('crypto'); + * + * const key = generateKeySync('hmac', { length: 64 }); + * console.log(key.export().toString('hex')); // e89..........41e + * ``` + * @since v15.0.0 + * @param type The intended use of the generated secret key. Currently accepted values are `'hmac'` and `'aes'`. + */ + function generateKeySync( + type: 'hmac' | 'aes', + options: { + length: number; + } + ): KeyObject; + interface JsonWebKeyInput { + key: JsonWebKey; + format: 'jwk'; + } + /** + * Creates and returns a new key object containing a private key. If `key` is a + * string or `Buffer`, `format` is assumed to be `'pem'`; otherwise, `key`must be an object with the properties described above. + * + * If the private key is encrypted, a `passphrase` must be specified. The length + * of the passphrase is limited to 1024 bytes. + * @since v11.6.0 + */ + function createPrivateKey(key: PrivateKeyInput | string | Buffer | JsonWebKeyInput): KeyObject; + /** + * Creates and returns a new key object containing a public key. If `key` is a + * string or `Buffer`, `format` is assumed to be `'pem'`; if `key` is a `KeyObject`with type `'private'`, the public key is derived from the given private key; + * otherwise, `key` must be an object with the properties described above. + * + * If the format is `'pem'`, the `'key'` may also be an X.509 certificate. + * + * Because public keys can be derived from private keys, a private key may be + * passed instead of a public key. In that case, this function behaves as if {@link createPrivateKey} had been called, except that the type of the + * returned `KeyObject` will be `'public'` and that the private key cannot be + * extracted from the returned `KeyObject`. Similarly, if a `KeyObject` with type`'private'` is given, a new `KeyObject` with type `'public'` will be returned + * and it will be impossible to extract the private key from the returned object. + * @since v11.6.0 + */ + function createPublicKey(key: PublicKeyInput | string | Buffer | KeyObject | JsonWebKeyInput): KeyObject; + /** + * Creates and returns a new key object containing a secret key for symmetric + * encryption or `Hmac`. + * @since v11.6.0 + * @param encoding The string encoding when `key` is a string. + */ + function createSecretKey(key: NodeJS.ArrayBufferView): KeyObject; + function createSecretKey(key: string, encoding: BufferEncoding): KeyObject; + /** + * Creates and returns a `Sign` object that uses the given `algorithm`. Use {@link getHashes} to obtain the names of the available digest algorithms. + * Optional `options` argument controls the `stream.Writable` behavior. + * + * In some cases, a `Sign` instance can be created using the name of a signature + * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use + * the corresponding digest algorithm. This does not work for all signature + * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest + * algorithm names. + * @since v0.1.92 + * @param options `stream.Writable` options + */ + function createSign(algorithm: string, options?: stream.WritableOptions): Sign; + type DSAEncoding = 'der' | 'ieee-p1363'; + interface SigningOptions { + /** + * @See crypto.constants.RSA_PKCS1_PADDING + */ + padding?: number | undefined; + saltLength?: number | undefined; + dsaEncoding?: DSAEncoding | undefined; + } + interface SignPrivateKeyInput extends PrivateKeyInput, SigningOptions {} + interface SignKeyObjectInput extends SigningOptions { + key: KeyObject; + } + interface VerifyPublicKeyInput extends PublicKeyInput, SigningOptions {} + interface VerifyKeyObjectInput extends SigningOptions { + key: KeyObject; + } + type KeyLike = string | Buffer | KeyObject; + /** + * The `Sign` class is a utility for generating signatures. It can be used in one + * of two ways: + * + * * As a writable `stream`, where data to be signed is written and the `sign.sign()` method is used to generate and return the signature, or + * * Using the `sign.update()` and `sign.sign()` methods to produce the + * signature. + * + * The {@link createSign} method is used to create `Sign` instances. The + * argument is the string name of the hash function to use. `Sign` objects are not + * to be created directly using the `new` keyword. + * + * Example: Using `Sign` and `Verify` objects as streams: + * + * ```js + * const { + * generateKeyPairSync, + * createSign, + * createVerify + * } = await import('crypto'); + * + * const { privateKey, publicKey } = generateKeyPairSync('ec', { + * namedCurve: 'sect239k1' + * }); + * + * const sign = createSign('SHA256'); + * sign.write('some data to sign'); + * sign.end(); + * const signature = sign.sign(privateKey, 'hex'); + * + * const verify = createVerify('SHA256'); + * verify.write('some data to sign'); + * verify.end(); + * console.log(verify.verify(publicKey, signature, 'hex')); + * // Prints: true + * ``` + * + * Example: Using the `sign.update()` and `verify.update()` methods: + * + * ```js + * const { + * generateKeyPairSync, + * createSign, + * createVerify + * } = await import('crypto'); + * + * const { privateKey, publicKey } = generateKeyPairSync('rsa', { + * modulusLength: 2048, + * }); + * + * const sign = createSign('SHA256'); + * sign.update('some data to sign'); + * sign.end(); + * const signature = sign.sign(privateKey); + * + * const verify = createVerify('SHA256'); + * verify.update('some data to sign'); + * verify.end(); + * console.log(verify.verify(publicKey, signature)); + * // Prints: true + * ``` + * @since v0.1.92 + */ + class Sign extends stream.Writable { + private constructor(); + /** + * Updates the `Sign` content with the given `data`, the encoding of which + * is given in `inputEncoding`. + * If `encoding` is not provided, and the `data` is a string, an + * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. + * + * This can be called many times with new data as it is streamed. + * @since v0.1.92 + * @param inputEncoding The `encoding` of the `data` string. + */ + update(data: BinaryLike): this; + update(data: string, inputEncoding: Encoding): this; + /** + * Calculates the signature on all the data passed through using either `sign.update()` or `sign.write()`. + * + * If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an + * object, the following additional properties can be passed: + * + * If `outputEncoding` is provided a string is returned; otherwise a `Buffer` is returned. + * + * The `Sign` object can not be again used after `sign.sign()` method has been + * called. Multiple calls to `sign.sign()` will result in an error being thrown. + * @since v0.1.92 + */ + sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer; + sign(privateKey: KeyLike | SignKeyObjectInput | SignPrivateKeyInput, outputFormat: BinaryToTextEncoding): string; + } + /** + * Creates and returns a `Verify` object that uses the given algorithm. + * Use {@link getHashes} to obtain an array of names of the available + * signing algorithms. Optional `options` argument controls the`stream.Writable` behavior. + * + * In some cases, a `Verify` instance can be created using the name of a signature + * algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use + * the corresponding digest algorithm. This does not work for all signature + * algorithms, such as `'ecdsa-with-SHA256'`, so it is best to always use digest + * algorithm names. + * @since v0.1.92 + * @param options `stream.Writable` options + */ + function createVerify(algorithm: string, options?: stream.WritableOptions): Verify; + /** + * The `Verify` class is a utility for verifying signatures. It can be used in one + * of two ways: + * + * * As a writable `stream` where written data is used to validate against the + * supplied signature, or + * * Using the `verify.update()` and `verify.verify()` methods to verify + * the signature. + * + * The {@link createVerify} method is used to create `Verify` instances.`Verify` objects are not to be created directly using the `new` keyword. + * + * See `Sign` for examples. + * @since v0.1.92 + */ + class Verify extends stream.Writable { + private constructor(); + /** + * Updates the `Verify` content with the given `data`, the encoding of which + * is given in `inputEncoding`. + * If `inputEncoding` is not provided, and the `data` is a string, an + * encoding of `'utf8'` is enforced. If `data` is a `Buffer`, `TypedArray`, or`DataView`, then `inputEncoding` is ignored. + * + * This can be called many times with new data as it is streamed. + * @since v0.1.92 + * @param inputEncoding The `encoding` of the `data` string. + */ + update(data: BinaryLike): Verify; + update(data: string, inputEncoding: Encoding): Verify; + /** + * Verifies the provided data using the given `object` and `signature`. + * + * If `object` is not a `KeyObject`, this function behaves as if`object` had been passed to {@link createPublicKey}. If it is an + * object, the following additional properties can be passed: + * + * The `signature` argument is the previously calculated signature for the data, in + * the `signatureEncoding`. + * If a `signatureEncoding` is specified, the `signature` is expected to be a + * string; otherwise `signature` is expected to be a `Buffer`,`TypedArray`, or `DataView`. + * + * The `verify` object can not be used again after `verify.verify()` has been + * called. Multiple calls to `verify.verify()` will result in an error being + * thrown. + * + * Because public keys can be derived from private keys, a private key may + * be passed instead of a public key. + * @since v0.1.92 + */ + verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean; + verify(object: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: string, signature_format?: BinaryToTextEncoding): boolean; + } + /** + * Creates a `DiffieHellman` key exchange object using the supplied `prime` and an + * optional specific `generator`. + * + * The `generator` argument can be a number, string, or `Buffer`. If`generator` is not specified, the value `2` is used. + * + * If `primeEncoding` is specified, `prime` is expected to be a string; otherwise + * a `Buffer`, `TypedArray`, or `DataView` is expected. + * + * If `generatorEncoding` is specified, `generator` is expected to be a string; + * otherwise a number, `Buffer`, `TypedArray`, or `DataView` is expected. + * @since v0.11.12 + * @param primeEncoding The `encoding` of the `prime` string. + * @param [generator=2] + * @param generatorEncoding The `encoding` of the `generator` string. + */ + function createDiffieHellman(primeLength: number, generator?: number | NodeJS.ArrayBufferView): DiffieHellman; + function createDiffieHellman(prime: NodeJS.ArrayBufferView): DiffieHellman; + function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding): DiffieHellman; + function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding, generator: number | NodeJS.ArrayBufferView): DiffieHellman; + function createDiffieHellman(prime: string, primeEncoding: BinaryToTextEncoding, generator: string, generatorEncoding: BinaryToTextEncoding): DiffieHellman; + /** + * The `DiffieHellman` class is a utility for creating Diffie-Hellman key + * exchanges. + * + * Instances of the `DiffieHellman` class can be created using the {@link createDiffieHellman} function. + * + * ```js + * import assert from 'assert'; + * + * const { + * createDiffieHellman + * } = await import('crypto'); + * + * // Generate Alice's keys... + * const alice = createDiffieHellman(2048); + * const aliceKey = alice.generateKeys(); + * + * // Generate Bob's keys... + * const bob = createDiffieHellman(alice.getPrime(), alice.getGenerator()); + * const bobKey = bob.generateKeys(); + * + * // Exchange and generate the secret... + * const aliceSecret = alice.computeSecret(bobKey); + * const bobSecret = bob.computeSecret(aliceKey); + * + * // OK + * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex')); + * ``` + * @since v0.5.0 + */ + class DiffieHellman { + private constructor(); + /** + * Generates private and public Diffie-Hellman key values, and returns + * the public key in the specified `encoding`. This key should be + * transferred to the other party. + * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned. + * @since v0.5.0 + * @param encoding The `encoding` of the return value. + */ + generateKeys(): Buffer; + generateKeys(encoding: BinaryToTextEncoding): string; + /** + * Computes the shared secret using `otherPublicKey` as the other + * party's public key and returns the computed shared secret. The supplied + * key is interpreted using the specified `inputEncoding`, and secret is + * encoded using specified `outputEncoding`. + * If the `inputEncoding` is not + * provided, `otherPublicKey` is expected to be a `Buffer`,`TypedArray`, or `DataView`. + * + * If `outputEncoding` is given a string is returned; otherwise, a `Buffer` is returned. + * @since v0.5.0 + * @param inputEncoding The `encoding` of an `otherPublicKey` string. + * @param outputEncoding The `encoding` of the return value. + */ + computeSecret(otherPublicKey: NodeJS.ArrayBufferView): Buffer; + computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): Buffer; + computeSecret(otherPublicKey: NodeJS.ArrayBufferView, outputEncoding: BinaryToTextEncoding): string; + computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding: BinaryToTextEncoding): string; + /** + * Returns the Diffie-Hellman prime in the specified `encoding`. + * If `encoding` is provided a string is + * returned; otherwise a `Buffer` is returned. + * @since v0.5.0 + * @param encoding The `encoding` of the return value. + */ + getPrime(): Buffer; + getPrime(encoding: BinaryToTextEncoding): string; + /** + * Returns the Diffie-Hellman generator in the specified `encoding`. + * If `encoding` is provided a string is + * returned; otherwise a `Buffer` is returned. + * @since v0.5.0 + * @param encoding The `encoding` of the return value. + */ + getGenerator(): Buffer; + getGenerator(encoding: BinaryToTextEncoding): string; + /** + * Returns the Diffie-Hellman public key in the specified `encoding`. + * If `encoding` is provided a + * string is returned; otherwise a `Buffer` is returned. + * @since v0.5.0 + * @param encoding The `encoding` of the return value. + */ + getPublicKey(): Buffer; + getPublicKey(encoding: BinaryToTextEncoding): string; + /** + * Returns the Diffie-Hellman private key in the specified `encoding`. + * If `encoding` is provided a + * string is returned; otherwise a `Buffer` is returned. + * @since v0.5.0 + * @param encoding The `encoding` of the return value. + */ + getPrivateKey(): Buffer; + getPrivateKey(encoding: BinaryToTextEncoding): string; + /** + * Sets the Diffie-Hellman public key. If the `encoding` argument is provided,`publicKey` is expected + * to be a string. If no `encoding` is provided, `publicKey` is expected + * to be a `Buffer`, `TypedArray`, or `DataView`. + * @since v0.5.0 + * @param encoding The `encoding` of the `publicKey` string. + */ + setPublicKey(publicKey: NodeJS.ArrayBufferView): void; + setPublicKey(publicKey: string, encoding: BufferEncoding): void; + /** + * Sets the Diffie-Hellman private key. If the `encoding` argument is provided,`privateKey` is expected + * to be a string. If no `encoding` is provided, `privateKey` is expected + * to be a `Buffer`, `TypedArray`, or `DataView`. + * @since v0.5.0 + * @param encoding The `encoding` of the `privateKey` string. + */ + setPrivateKey(privateKey: NodeJS.ArrayBufferView): void; + setPrivateKey(privateKey: string, encoding: BufferEncoding): void; + /** + * A bit field containing any warnings and/or errors resulting from a check + * performed during initialization of the `DiffieHellman` object. + * + * The following values are valid for this property (as defined in `constants`module): + * + * * `DH_CHECK_P_NOT_SAFE_PRIME` + * * `DH_CHECK_P_NOT_PRIME` + * * `DH_UNABLE_TO_CHECK_GENERATOR` + * * `DH_NOT_SUITABLE_GENERATOR` + * @since v0.11.12 + */ + verifyError: number; + } + /** + * Creates a predefined `DiffieHellmanGroup` key exchange object. The + * supported groups are: `'modp1'`, `'modp2'`, `'modp5'` (defined in [RFC 2412](https://www.rfc-editor.org/rfc/rfc2412.txt), but see `Caveats`) and `'modp14'`, `'modp15'`,`'modp16'`, `'modp17'`, + * `'modp18'` (defined in [RFC 3526](https://www.rfc-editor.org/rfc/rfc3526.txt)). The + * returned object mimics the interface of objects created by {@link createDiffieHellman}, but will not allow changing + * the keys (with `diffieHellman.setPublicKey()`, for example). The + * advantage of using this method is that the parties do not have to + * generate nor exchange a group modulus beforehand, saving both processor + * and communication time. + * + * Example (obtaining a shared secret): + * + * ```js + * const { + * getDiffieHellman + * } = await import('crypto'); + * const alice = getDiffieHellman('modp14'); + * const bob = getDiffieHellman('modp14'); + * + * alice.generateKeys(); + * bob.generateKeys(); + * + * const aliceSecret = alice.computeSecret(bob.getPublicKey(), null, 'hex'); + * const bobSecret = bob.computeSecret(alice.getPublicKey(), null, 'hex'); + * + * // aliceSecret and bobSecret should be the same + * console.log(aliceSecret === bobSecret); + * ``` + * @since v0.7.5 + */ + function getDiffieHellman(groupName: string): DiffieHellman; + /** + * Provides an asynchronous Password-Based Key Derivation Function 2 (PBKDF2) + * implementation. A selected HMAC digest algorithm specified by `digest` is + * applied to derive a key of the requested byte length (`keylen`) from the`password`, `salt` and `iterations`. + * + * The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an error occurs while deriving the key, `err` will be set; + * otherwise `err` will be `null`. By default, the successfully generated`derivedKey` will be passed to the callback as a `Buffer`. An error will be + * thrown if any of the input arguments specify invalid values or types. + * + * If `digest` is `null`, `'sha1'` will be used. This behavior is deprecated, + * please specify a `digest` explicitly. + * + * The `iterations` argument must be a number set as high as possible. The + * higher the number of iterations, the more secure the derived key will be, + * but will take a longer amount of time to complete. + * + * The `salt` should be as unique as possible. It is recommended that a salt is + * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. + * + * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. + * + * ```js + * const { + * pbkdf2 + * } = await import('crypto'); + * + * pbkdf2('secret', 'salt', 100000, 64, 'sha512', (err, derivedKey) => { + * if (err) throw err; + * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae' + * }); + * ``` + * + * The `crypto.DEFAULT_ENCODING` property can be used to change the way the`derivedKey` is passed to the callback. This property, however, has been + * deprecated and use should be avoided. + * + * ```js + * import crypto from 'crypto'; + * crypto.DEFAULT_ENCODING = 'hex'; + * crypto.pbkdf2('secret', 'salt', 100000, 512, 'sha512', (err, derivedKey) => { + * if (err) throw err; + * console.log(derivedKey); // '3745e48...aa39b34' + * }); + * ``` + * + * An array of supported digest functions can be retrieved using {@link getHashes}. + * + * This API uses libuv's threadpool, which can have surprising and + * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information. + * @since v0.5.5 + */ + function pbkdf2(password: BinaryLike, salt: BinaryLike, iterations: number, keylen: number, digest: string, callback: (err: Error | null, derivedKey: Buffer) => void): void; + /** + * Provides a synchronous Password-Based Key Derivation Function 2 (PBKDF2) + * implementation. A selected HMAC digest algorithm specified by `digest` is + * applied to derive a key of the requested byte length (`keylen`) from the`password`, `salt` and `iterations`. + * + * If an error occurs an `Error` will be thrown, otherwise the derived key will be + * returned as a `Buffer`. + * + * If `digest` is `null`, `'sha1'` will be used. This behavior is deprecated, + * please specify a `digest` explicitly. + * + * The `iterations` argument must be a number set as high as possible. The + * higher the number of iterations, the more secure the derived key will be, + * but will take a longer amount of time to complete. + * + * The `salt` should be as unique as possible. It is recommended that a salt is + * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. + * + * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. + * + * ```js + * const { + * pbkdf2Sync + * } = await import('crypto'); + * + * const key = pbkdf2Sync('secret', 'salt', 100000, 64, 'sha512'); + * console.log(key.toString('hex')); // '3745e48...08d59ae' + * ``` + * + * The `crypto.DEFAULT_ENCODING` property may be used to change the way the`derivedKey` is returned. This property, however, is deprecated and use + * should be avoided. + * + * ```js + * import crypto from 'crypto'; + * crypto.DEFAULT_ENCODING = 'hex'; + * const key = crypto.pbkdf2Sync('secret', 'salt', 100000, 512, 'sha512'); + * console.log(key); // '3745e48...aa39b34' + * ``` + * + * An array of supported digest functions can be retrieved using {@link getHashes}. + * @since v0.9.3 + */ + function pbkdf2Sync(password: BinaryLike, salt: BinaryLike, iterations: number, keylen: number, digest: string): Buffer; + /** + * Generates cryptographically strong pseudorandom data. The `size` argument + * is a number indicating the number of bytes to generate. + * + * If a `callback` function is provided, the bytes are generated asynchronously + * and the `callback` function is invoked with two arguments: `err` and `buf`. + * If an error occurs, `err` will be an `Error` object; otherwise it is `null`. The`buf` argument is a `Buffer` containing the generated bytes. + * + * ```js + * // Asynchronous + * const { + * randomBytes + * } = await import('crypto'); + * + * randomBytes(256, (err, buf) => { + * if (err) throw err; + * console.log(`${buf.length} bytes of random data: ${buf.toString('hex')}`); + * }); + * ``` + * + * If the `callback` function is not provided, the random bytes are generated + * synchronously and returned as a `Buffer`. An error will be thrown if + * there is a problem generating the bytes. + * + * ```js + * // Synchronous + * const { + * randomBytes + * } = await import('crypto'); + * + * const buf = randomBytes(256); + * console.log( + * `${buf.length} bytes of random data: ${buf.toString('hex')}`); + * ``` + * + * The `crypto.randomBytes()` method will not complete until there is + * sufficient entropy available. + * This should normally never take longer than a few milliseconds. The only time + * when generating the random bytes may conceivably block for a longer period of + * time is right after boot, when the whole system is still low on entropy. + * + * This API uses libuv's threadpool, which can have surprising and + * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information. + * + * The asynchronous version of `crypto.randomBytes()` is carried out in a single + * threadpool request. To minimize threadpool task length variation, partition + * large `randomBytes` requests when doing so as part of fulfilling a client + * request. + * @since v0.5.8 + * @param size The number of bytes to generate. The `size` must not be larger than `2**31 - 1`. + * @return if the `callback` function is not provided. + */ + function randomBytes(size: number): Buffer; + function randomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void; + function pseudoRandomBytes(size: number): Buffer; + function pseudoRandomBytes(size: number, callback: (err: Error | null, buf: Buffer) => void): void; + /** + * Return a random integer `n` such that `min <= n < max`. This + * implementation avoids [modulo bias](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle#Modulo_bias). + * + * The range (`max - min`) must be less than 248. `min` and `max` must + * be [safe integers](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/isSafeInteger). + * + * If the `callback` function is not provided, the random integer is + * generated synchronously. + * + * ```js + * // Asynchronous + * const { + * randomInt + * } = await import('crypto'); + * + * randomInt(3, (err, n) => { + * if (err) throw err; + * console.log(`Random number chosen from (0, 1, 2): ${n}`); + * }); + * ``` + * + * ```js + * // Synchronous + * const { + * randomInt + * } = await import('crypto'); + * + * const n = randomInt(3); + * console.log(`Random number chosen from (0, 1, 2): ${n}`); + * ``` + * + * ```js + * // With `min` argument + * const { + * randomInt + * } = await import('crypto'); + * + * const n = randomInt(1, 7); + * console.log(`The dice rolled: ${n}`); + * ``` + * @since v14.10.0, v12.19.0 + * @param [min=0] Start of random range (inclusive). + * @param max End of random range (exclusive). + * @param callback `function(err, n) {}`. + */ + function randomInt(max: number): number; + function randomInt(min: number, max: number): number; + function randomInt(max: number, callback: (err: Error | null, value: number) => void): void; + function randomInt(min: number, max: number, callback: (err: Error | null, value: number) => void): void; + /** + * Synchronous version of {@link randomFill}. + * + * ```js + * import { Buffer } from 'buffer'; + * const { randomFillSync } = await import('crypto'); + * + * const buf = Buffer.alloc(10); + * console.log(randomFillSync(buf).toString('hex')); + * + * randomFillSync(buf, 5); + * console.log(buf.toString('hex')); + * + * // The above is equivalent to the following: + * randomFillSync(buf, 5, 5); + * console.log(buf.toString('hex')); + * ``` + * + * Any `ArrayBuffer`, `TypedArray` or `DataView` instance may be passed as`buffer`. + * + * ```js + * import { Buffer } from 'buffer'; + * const { randomFillSync } = await import('crypto'); + * + * const a = new Uint32Array(10); + * console.log(Buffer.from(randomFillSync(a).buffer, + * a.byteOffset, a.byteLength).toString('hex')); + * + * const b = new DataView(new ArrayBuffer(10)); + * console.log(Buffer.from(randomFillSync(b).buffer, + * b.byteOffset, b.byteLength).toString('hex')); + * + * const c = new ArrayBuffer(10); + * console.log(Buffer.from(randomFillSync(c)).toString('hex')); + * ``` + * @since v7.10.0, v6.13.0 + * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`. + * @param [offset=0] + * @param [size=buffer.length - offset] + * @return The object passed as `buffer` argument. + */ + function randomFillSync(buffer: T, offset?: number, size?: number): T; + /** + * This function is similar to {@link randomBytes} but requires the first + * argument to be a `Buffer` that will be filled. It also + * requires that a callback is passed in. + * + * If the `callback` function is not provided, an error will be thrown. + * + * ```js + * import { Buffer } from 'buffer'; + * const { randomFill } = await import('crypto'); + * + * const buf = Buffer.alloc(10); + * randomFill(buf, (err, buf) => { + * if (err) throw err; + * console.log(buf.toString('hex')); + * }); + * + * randomFill(buf, 5, (err, buf) => { + * if (err) throw err; + * console.log(buf.toString('hex')); + * }); + * + * // The above is equivalent to the following: + * randomFill(buf, 5, 5, (err, buf) => { + * if (err) throw err; + * console.log(buf.toString('hex')); + * }); + * ``` + * + * Any `ArrayBuffer`, `TypedArray`, or `DataView` instance may be passed as`buffer`. + * + * While this includes instances of `Float32Array` and `Float64Array`, this + * function should not be used to generate random floating-point numbers. The + * result may contain `+Infinity`, `-Infinity`, and `NaN`, and even if the array + * contains finite numbers only, they are not drawn from a uniform random + * distribution and have no meaningful lower or upper bounds. + * + * ```js + * import { Buffer } from 'buffer'; + * const { randomFill } = await import('crypto'); + * + * const a = new Uint32Array(10); + * randomFill(a, (err, buf) => { + * if (err) throw err; + * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength) + * .toString('hex')); + * }); + * + * const b = new DataView(new ArrayBuffer(10)); + * randomFill(b, (err, buf) => { + * if (err) throw err; + * console.log(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength) + * .toString('hex')); + * }); + * + * const c = new ArrayBuffer(10); + * randomFill(c, (err, buf) => { + * if (err) throw err; + * console.log(Buffer.from(buf).toString('hex')); + * }); + * ``` + * + * This API uses libuv's threadpool, which can have surprising and + * negative performance implications for some applications; see the `UV_THREADPOOL_SIZE` documentation for more information. + * + * The asynchronous version of `crypto.randomFill()` is carried out in a single + * threadpool request. To minimize threadpool task length variation, partition + * large `randomFill` requests when doing so as part of fulfilling a client + * request. + * @since v7.10.0, v6.13.0 + * @param buffer Must be supplied. The size of the provided `buffer` must not be larger than `2**31 - 1`. + * @param [offset=0] + * @param [size=buffer.length - offset] + * @param callback `function(err, buf) {}`. + */ + function randomFill(buffer: T, callback: (err: Error | null, buf: T) => void): void; + function randomFill(buffer: T, offset: number, callback: (err: Error | null, buf: T) => void): void; + function randomFill(buffer: T, offset: number, size: number, callback: (err: Error | null, buf: T) => void): void; + interface ScryptOptions { + cost?: number | undefined; + blockSize?: number | undefined; + parallelization?: number | undefined; + N?: number | undefined; + r?: number | undefined; + p?: number | undefined; + maxmem?: number | undefined; + } + /** + * Provides an asynchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based + * key derivation function that is designed to be expensive computationally and + * memory-wise in order to make brute-force attacks unrewarding. + * + * The `salt` should be as unique as possible. It is recommended that a salt is + * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. + * + * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. + * + * The `callback` function is called with two arguments: `err` and `derivedKey`.`err` is an exception object when key derivation fails, otherwise `err` is`null`. `derivedKey` is passed to the + * callback as a `Buffer`. + * + * An exception is thrown when any of the input arguments specify invalid values + * or types. + * + * ```js + * const { + * scrypt + * } = await import('crypto'); + * + * // Using the factory defaults. + * scrypt('password', 'salt', 64, (err, derivedKey) => { + * if (err) throw err; + * console.log(derivedKey.toString('hex')); // '3745e48...08d59ae' + * }); + * // Using a custom N parameter. Must be a power of two. + * scrypt('password', 'salt', 64, { N: 1024 }, (err, derivedKey) => { + * if (err) throw err; + * console.log(derivedKey.toString('hex')); // '3745e48...aa39b34' + * }); + * ``` + * @since v10.5.0 + */ + function scrypt(password: BinaryLike, salt: BinaryLike, keylen: number, callback: (err: Error | null, derivedKey: Buffer) => void): void; + function scrypt(password: BinaryLike, salt: BinaryLike, keylen: number, options: ScryptOptions, callback: (err: Error | null, derivedKey: Buffer) => void): void; + /** + * Provides a synchronous [scrypt](https://en.wikipedia.org/wiki/Scrypt) implementation. Scrypt is a password-based + * key derivation function that is designed to be expensive computationally and + * memory-wise in order to make brute-force attacks unrewarding. + * + * The `salt` should be as unique as possible. It is recommended that a salt is + * random and at least 16 bytes long. See [NIST SP 800-132](https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-132.pdf) for details. + * + * When passing strings for `password` or `salt`, please consider `caveats when using strings as inputs to cryptographic APIs`. + * + * An exception is thrown when key derivation fails, otherwise the derived key is + * returned as a `Buffer`. + * + * An exception is thrown when any of the input arguments specify invalid values + * or types. + * + * ```js + * const { + * scryptSync + * } = await import('crypto'); + * // Using the factory defaults. + * + * const key1 = scryptSync('password', 'salt', 64); + * console.log(key1.toString('hex')); // '3745e48...08d59ae' + * // Using a custom N parameter. Must be a power of two. + * const key2 = scryptSync('password', 'salt', 64, { N: 1024 }); + * console.log(key2.toString('hex')); // '3745e48...aa39b34' + * ``` + * @since v10.5.0 + */ + function scryptSync(password: BinaryLike, salt: BinaryLike, keylen: number, options?: ScryptOptions): Buffer; + interface RsaPublicKey { + key: KeyLike; + padding?: number | undefined; + } + interface RsaPrivateKey { + key: KeyLike; + passphrase?: string | undefined; + /** + * @default 'sha1' + */ + oaepHash?: string | undefined; + oaepLabel?: NodeJS.TypedArray | undefined; + padding?: number | undefined; + } + /** + * Encrypts the content of `buffer` with `key` and returns a new `Buffer` with encrypted content. The returned data can be decrypted using + * the corresponding private key, for example using {@link privateDecrypt}. + * + * If `key` is not a `KeyObject`, this function behaves as if`key` had been passed to {@link createPublicKey}. If it is an + * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_OAEP_PADDING`. + * + * Because RSA public keys can be derived from private keys, a private key may + * be passed instead of a public key. + * @since v0.11.14 + */ + function publicEncrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer; + /** + * Decrypts `buffer` with `key`.`buffer` was previously encrypted using + * the corresponding private key, for example using {@link privateEncrypt}. + * + * If `key` is not a `KeyObject`, this function behaves as if`key` had been passed to {@link createPublicKey}. If it is an + * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_PADDING`. + * + * Because RSA public keys can be derived from private keys, a private key may + * be passed instead of a public key. + * @since v1.1.0 + */ + function publicDecrypt(key: RsaPublicKey | RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer; + /** + * Decrypts `buffer` with `privateKey`. `buffer` was previously encrypted using + * the corresponding public key, for example using {@link publicEncrypt}. + * + * If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an + * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_OAEP_PADDING`. + * @since v0.11.14 + */ + function privateDecrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer; + /** + * Encrypts `buffer` with `privateKey`. The returned data can be decrypted using + * the corresponding public key, for example using {@link publicDecrypt}. + * + * If `privateKey` is not a `KeyObject`, this function behaves as if`privateKey` had been passed to {@link createPrivateKey}. If it is an + * object, the `padding` property can be passed. Otherwise, this function uses`RSA_PKCS1_PADDING`. + * @since v1.1.0 + */ + function privateEncrypt(privateKey: RsaPrivateKey | KeyLike, buffer: NodeJS.ArrayBufferView): Buffer; + /** + * ```js + * const { + * getCiphers + * } = await import('crypto'); + * + * console.log(getCiphers()); // ['aes-128-cbc', 'aes-128-ccm', ...] + * ``` + * @since v0.9.3 + * @return An array with the names of the supported cipher algorithms. + */ + function getCiphers(): string[]; + /** + * ```js + * const { + * getCurves + * } = await import('crypto'); + * + * console.log(getCurves()); // ['Oakley-EC2N-3', 'Oakley-EC2N-4', ...] + * ``` + * @since v2.3.0 + * @return An array with the names of the supported elliptic curves. + */ + function getCurves(): string[]; + /** + * @since v10.0.0 + * @return `1` if and only if a FIPS compliant crypto provider is currently in use, `0` otherwise. A future semver-major release may change the return type of this API to a {boolean}. + */ + function getFips(): 1 | 0; + /** + * ```js + * const { + * getHashes + * } = await import('crypto'); + * + * console.log(getHashes()); // ['DSA', 'DSA-SHA', 'DSA-SHA1', ...] + * ``` + * @since v0.9.3 + * @return An array of the names of the supported hash algorithms, such as `'RSA-SHA256'`. Hash algorithms are also called "digest" algorithms. + */ + function getHashes(): string[]; + /** + * The `ECDH` class is a utility for creating Elliptic Curve Diffie-Hellman (ECDH) + * key exchanges. + * + * Instances of the `ECDH` class can be created using the {@link createECDH} function. + * + * ```js + * import assert from 'assert'; + * + * const { + * createECDH + * } = await import('crypto'); + * + * // Generate Alice's keys... + * const alice = createECDH('secp521r1'); + * const aliceKey = alice.generateKeys(); + * + * // Generate Bob's keys... + * const bob = createECDH('secp521r1'); + * const bobKey = bob.generateKeys(); + * + * // Exchange and generate the secret... + * const aliceSecret = alice.computeSecret(bobKey); + * const bobSecret = bob.computeSecret(aliceKey); + * + * assert.strictEqual(aliceSecret.toString('hex'), bobSecret.toString('hex')); + * // OK + * ``` + * @since v0.11.14 + */ + class ECDH { + private constructor(); + /** + * Converts the EC Diffie-Hellman public key specified by `key` and `curve` to the + * format specified by `format`. The `format` argument specifies point encoding + * and can be `'compressed'`, `'uncompressed'` or `'hybrid'`. The supplied key is + * interpreted using the specified `inputEncoding`, and the returned key is encoded + * using the specified `outputEncoding`. + * + * Use {@link getCurves} to obtain a list of available curve names. + * On recent OpenSSL releases, `openssl ecparam -list_curves` will also display + * the name and description of each available elliptic curve. + * + * If `format` is not specified the point will be returned in `'uncompressed'`format. + * + * If the `inputEncoding` is not provided, `key` is expected to be a `Buffer`,`TypedArray`, or `DataView`. + * + * Example (uncompressing a key): + * + * ```js + * const { + * createECDH, + * ECDH + * } = await import('crypto'); + * + * const ecdh = createECDH('secp256k1'); + * ecdh.generateKeys(); + * + * const compressedKey = ecdh.getPublicKey('hex', 'compressed'); + * + * const uncompressedKey = ECDH.convertKey(compressedKey, + * 'secp256k1', + * 'hex', + * 'hex', + * 'uncompressed'); + * + * // The converted key and the uncompressed public key should be the same + * console.log(uncompressedKey === ecdh.getPublicKey('hex')); + * ``` + * @since v10.0.0 + * @param inputEncoding The `encoding` of the `key` string. + * @param outputEncoding The `encoding` of the return value. + * @param [format='uncompressed'] + */ + static convertKey( + key: BinaryLike, + curve: string, + inputEncoding?: BinaryToTextEncoding, + outputEncoding?: 'latin1' | 'hex' | 'base64' | 'base64url', + format?: 'uncompressed' | 'compressed' | 'hybrid' + ): Buffer | string; + /** + * Generates private and public EC Diffie-Hellman key values, and returns + * the public key in the specified `format` and `encoding`. This key should be + * transferred to the other party. + * + * The `format` argument specifies point encoding and can be `'compressed'` or`'uncompressed'`. If `format` is not specified, the point will be returned in`'uncompressed'` format. + * + * If `encoding` is provided a string is returned; otherwise a `Buffer` is returned. + * @since v0.11.14 + * @param encoding The `encoding` of the return value. + * @param [format='uncompressed'] + */ + generateKeys(): Buffer; + generateKeys(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string; + /** + * Computes the shared secret using `otherPublicKey` as the other + * party's public key and returns the computed shared secret. The supplied + * key is interpreted using specified `inputEncoding`, and the returned secret + * is encoded using the specified `outputEncoding`. + * If the `inputEncoding` is not + * provided, `otherPublicKey` is expected to be a `Buffer`, `TypedArray`, or`DataView`. + * + * If `outputEncoding` is given a string will be returned; otherwise a `Buffer` is returned. + * + * `ecdh.computeSecret` will throw an`ERR_CRYPTO_ECDH_INVALID_PUBLIC_KEY` error when `otherPublicKey`lies outside of the elliptic curve. Since `otherPublicKey` is + * usually supplied from a remote user over an insecure network, + * be sure to handle this exception accordingly. + * @since v0.11.14 + * @param inputEncoding The `encoding` of the `otherPublicKey` string. + * @param outputEncoding The `encoding` of the return value. + */ + computeSecret(otherPublicKey: NodeJS.ArrayBufferView): Buffer; + computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding): Buffer; + computeSecret(otherPublicKey: NodeJS.ArrayBufferView, outputEncoding: BinaryToTextEncoding): string; + computeSecret(otherPublicKey: string, inputEncoding: BinaryToTextEncoding, outputEncoding: BinaryToTextEncoding): string; + /** + * If `encoding` is specified, a string is returned; otherwise a `Buffer` is + * returned. + * @since v0.11.14 + * @param encoding The `encoding` of the return value. + * @return The EC Diffie-Hellman in the specified `encoding`. + */ + getPrivateKey(): Buffer; + getPrivateKey(encoding: BinaryToTextEncoding): string; + /** + * The `format` argument specifies point encoding and can be `'compressed'` or`'uncompressed'`. If `format` is not specified the point will be returned in`'uncompressed'` format. + * + * If `encoding` is specified, a string is returned; otherwise a `Buffer` is + * returned. + * @since v0.11.14 + * @param encoding The `encoding` of the return value. + * @param [format='uncompressed'] + * @return The EC Diffie-Hellman public key in the specified `encoding` and `format`. + */ + getPublicKey(): Buffer; + getPublicKey(encoding: BinaryToTextEncoding, format?: ECDHKeyFormat): string; + /** + * Sets the EC Diffie-Hellman private key. + * If `encoding` is provided, `privateKey` is expected + * to be a string; otherwise `privateKey` is expected to be a `Buffer`,`TypedArray`, or `DataView`. + * + * If `privateKey` is not valid for the curve specified when the `ECDH` object was + * created, an error is thrown. Upon setting the private key, the associated + * public point (key) is also generated and set in the `ECDH` object. + * @since v0.11.14 + * @param encoding The `encoding` of the `privateKey` string. + */ + setPrivateKey(privateKey: NodeJS.ArrayBufferView): void; + setPrivateKey(privateKey: string, encoding: BinaryToTextEncoding): void; + } + /** + * Creates an Elliptic Curve Diffie-Hellman (`ECDH`) key exchange object using a + * predefined curve specified by the `curveName` string. Use {@link getCurves} to obtain a list of available curve names. On recent + * OpenSSL releases, `openssl ecparam -list_curves` will also display the name + * and description of each available elliptic curve. + * @since v0.11.14 + */ + function createECDH(curveName: string): ECDH; + /** + * This function is based on a constant-time algorithm. + * Returns true if `a` is equal to `b`, without leaking timing information that + * would allow an attacker to guess one of the values. This is suitable for + * comparing HMAC digests or secret values like authentication cookies or [capability urls](https://www.w3.org/TR/capability-urls/). + * + * `a` and `b` must both be `Buffer`s, `TypedArray`s, or `DataView`s, and they + * must have the same byte length. + * + * If at least one of `a` and `b` is a `TypedArray` with more than one byte per + * entry, such as `Uint16Array`, the result will be computed using the platform + * byte order. + * + * Use of `crypto.timingSafeEqual` does not guarantee that the _surrounding_ code + * is timing-safe. Care should be taken to ensure that the surrounding code does + * not introduce timing vulnerabilities. + * @since v6.6.0 + */ + function timingSafeEqual(a: NodeJS.ArrayBufferView, b: NodeJS.ArrayBufferView): boolean; + /** @deprecated since v10.0.0 */ + const DEFAULT_ENCODING: BufferEncoding; + type KeyType = 'rsa' | 'rsa-pss' | 'dsa' | 'ec' | 'ed25519' | 'ed448' | 'x25519' | 'x448'; + type KeyFormat = 'pem' | 'der'; + interface BasePrivateKeyEncodingOptions { + format: T; + cipher?: string | undefined; + passphrase?: string | undefined; + } + interface KeyPairKeyObjectResult { + publicKey: KeyObject; + privateKey: KeyObject; + } + interface ED25519KeyPairKeyObjectOptions {} + interface ED448KeyPairKeyObjectOptions {} + interface X25519KeyPairKeyObjectOptions {} + interface X448KeyPairKeyObjectOptions {} + interface ECKeyPairKeyObjectOptions { + /** + * Name of the curve to use + */ + namedCurve: string; + } + interface RSAKeyPairKeyObjectOptions { + /** + * Key size in bits + */ + modulusLength: number; + /** + * Public exponent + * @default 0x10001 + */ + publicExponent?: number | undefined; + } + interface RSAPSSKeyPairKeyObjectOptions { + /** + * Key size in bits + */ + modulusLength: number; + /** + * Public exponent + * @default 0x10001 + */ + publicExponent?: number | undefined; + /** + * Name of the message digest + */ + hashAlgorithm?: string; + /** + * Name of the message digest used by MGF1 + */ + mgf1HashAlgorithm?: string; + /** + * Minimal salt length in bytes + */ + saltLength?: string; + } + interface DSAKeyPairKeyObjectOptions { + /** + * Key size in bits + */ + modulusLength: number; + /** + * Size of q in bits + */ + divisorLength: number; + } + interface RSAKeyPairOptions { + /** + * Key size in bits + */ + modulusLength: number; + /** + * Public exponent + * @default 0x10001 + */ + publicExponent?: number | undefined; + publicKeyEncoding: { + type: 'pkcs1' | 'spki'; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: 'pkcs1' | 'pkcs8'; + }; + } + interface RSAPSSKeyPairOptions { + /** + * Key size in bits + */ + modulusLength: number; + /** + * Public exponent + * @default 0x10001 + */ + publicExponent?: number | undefined; + /** + * Name of the message digest + */ + hashAlgorithm?: string; + /** + * Name of the message digest used by MGF1 + */ + mgf1HashAlgorithm?: string; + /** + * Minimal salt length in bytes + */ + saltLength?: string; + publicKeyEncoding: { + type: 'spki'; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: 'pkcs8'; + }; + } + interface DSAKeyPairOptions { + /** + * Key size in bits + */ + modulusLength: number; + /** + * Size of q in bits + */ + divisorLength: number; + publicKeyEncoding: { + type: 'spki'; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: 'pkcs8'; + }; + } + interface ECKeyPairOptions { + /** + * Name of the curve to use. + */ + namedCurve: string; + publicKeyEncoding: { + type: 'pkcs1' | 'spki'; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: 'sec1' | 'pkcs8'; + }; + } + interface ED25519KeyPairOptions { + publicKeyEncoding: { + type: 'spki'; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: 'pkcs8'; + }; + } + interface ED448KeyPairOptions { + publicKeyEncoding: { + type: 'spki'; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: 'pkcs8'; + }; + } + interface X25519KeyPairOptions { + publicKeyEncoding: { + type: 'spki'; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: 'pkcs8'; + }; + } + interface X448KeyPairOptions { + publicKeyEncoding: { + type: 'spki'; + format: PubF; + }; + privateKeyEncoding: BasePrivateKeyEncodingOptions & { + type: 'pkcs8'; + }; + } + interface KeyPairSyncResult { + publicKey: T1; + privateKey: T2; + } + /** + * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC, + * Ed25519, Ed448, X25519, X448, and DH are currently supported. + * + * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function + * behaves as if `keyObject.export()` had been called on its result. Otherwise, + * the respective part of the key is returned as a `KeyObject`. + * + * When encoding public keys, it is recommended to use `'spki'`. When encoding + * private keys, it is recommended to use `'pkcs8'` with a strong passphrase, + * and to keep the passphrase confidential. + * + * ```js + * const { + * generateKeyPairSync + * } = await import('crypto'); + * + * const { + * publicKey, + * privateKey, + * } = generateKeyPairSync('rsa', { + * modulusLength: 4096, + * publicKeyEncoding: { + * type: 'spki', + * format: 'pem' + * }, + * privateKeyEncoding: { + * type: 'pkcs8', + * format: 'pem', + * cipher: 'aes-256-cbc', + * passphrase: 'top secret' + * } + * }); + * ``` + * + * The return value `{ publicKey, privateKey }` represents the generated key pair. + * When PEM encoding was selected, the respective key will be a string, otherwise + * it will be a buffer containing the data encoded as DER. + * @since v10.12.0 + * @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`. + */ + function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'pem', 'der'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'der', 'pem'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'rsa', options: RSAKeyPairOptions<'der', 'der'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'rsa', options: RSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult; + function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'pem', 'der'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'der', 'pem'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'der', 'der'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'rsa-pss', options: RSAPSSKeyPairKeyObjectOptions): KeyPairKeyObjectResult; + function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'pem', 'der'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'der', 'pem'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'dsa', options: DSAKeyPairOptions<'der', 'der'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'dsa', options: DSAKeyPairKeyObjectOptions): KeyPairKeyObjectResult; + function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'pem', 'pem'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'pem', 'der'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'der', 'pem'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'ec', options: ECKeyPairOptions<'der', 'der'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'ec', options: ECKeyPairKeyObjectOptions): KeyPairKeyObjectResult; + function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'der'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'pem'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'der'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'ed25519', options?: ED25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult; + function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'pem', 'der'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'der', 'pem'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'ed448', options: ED448KeyPairOptions<'der', 'der'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): KeyPairKeyObjectResult; + function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'pem', 'der'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'der', 'pem'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'x25519', options: X25519KeyPairOptions<'der', 'der'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'x25519', options?: X25519KeyPairKeyObjectOptions): KeyPairKeyObjectResult; + function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'pem', 'pem'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'pem', 'der'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'der', 'pem'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'x448', options: X448KeyPairOptions<'der', 'der'>): KeyPairSyncResult; + function generateKeyPairSync(type: 'x448', options?: X448KeyPairKeyObjectOptions): KeyPairKeyObjectResult; + /** + * Generates a new asymmetric key pair of the given `type`. RSA, RSA-PSS, DSA, EC, + * Ed25519, Ed448, X25519, X448, and DH are currently supported. + * + * If a `publicKeyEncoding` or `privateKeyEncoding` was specified, this function + * behaves as if `keyObject.export()` had been called on its result. Otherwise, + * the respective part of the key is returned as a `KeyObject`. + * + * It is recommended to encode public keys as `'spki'` and private keys as`'pkcs8'` with encryption for long-term storage: + * + * ```js + * const { + * generateKeyPair + * } = await import('crypto'); + * + * generateKeyPair('rsa', { + * modulusLength: 4096, + * publicKeyEncoding: { + * type: 'spki', + * format: 'pem' + * }, + * privateKeyEncoding: { + * type: 'pkcs8', + * format: 'pem', + * cipher: 'aes-256-cbc', + * passphrase: 'top secret' + * } + * }, (err, publicKey, privateKey) => { + * // Handle errors and use the generated key pair. + * }); + * ``` + * + * On completion, `callback` will be called with `err` set to `undefined` and`publicKey` / `privateKey` representing the generated key pair. + * + * If this method is invoked as its `util.promisify()` ed version, it returns + * a `Promise` for an `Object` with `publicKey` and `privateKey` properties. + * @since v10.12.0 + * @param type Must be `'rsa'`, `'rsa-pss'`, `'dsa'`, `'ec'`, `'ed25519'`, `'ed448'`, `'x25519'`, `'x448'`, or `'dh'`. + */ + function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; + function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; + function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; + function generateKeyPair(type: 'rsa', options: RSAKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; + function generateKeyPair(type: 'rsa', options: RSAKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; + function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; + function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; + function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; + function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; + function generateKeyPair(type: 'rsa-pss', options: RSAPSSKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; + function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; + function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; + function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; + function generateKeyPair(type: 'dsa', options: DSAKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; + function generateKeyPair(type: 'dsa', options: DSAKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; + function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; + function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; + function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; + function generateKeyPair(type: 'ec', options: ECKeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; + function generateKeyPair(type: 'ec', options: ECKeyPairKeyObjectOptions, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; + function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; + function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; + function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; + function generateKeyPair(type: 'ed25519', options: ED25519KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; + function generateKeyPair(type: 'ed25519', options: ED25519KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; + function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; + function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; + function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; + function generateKeyPair(type: 'ed448', options: ED448KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; + function generateKeyPair(type: 'ed448', options: ED448KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; + function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; + function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; + function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; + function generateKeyPair(type: 'x25519', options: X25519KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; + function generateKeyPair(type: 'x25519', options: X25519KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; + function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'pem', 'pem'>, callback: (err: Error | null, publicKey: string, privateKey: string) => void): void; + function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'pem', 'der'>, callback: (err: Error | null, publicKey: string, privateKey: Buffer) => void): void; + function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'der', 'pem'>, callback: (err: Error | null, publicKey: Buffer, privateKey: string) => void): void; + function generateKeyPair(type: 'x448', options: X448KeyPairOptions<'der', 'der'>, callback: (err: Error | null, publicKey: Buffer, privateKey: Buffer) => void): void; + function generateKeyPair(type: 'x448', options: X448KeyPairKeyObjectOptions | undefined, callback: (err: Error | null, publicKey: KeyObject, privateKey: KeyObject) => void): void; + namespace generateKeyPair { + function __promisify__( + type: 'rsa', + options: RSAKeyPairOptions<'pem', 'pem'> + ): Promise<{ + publicKey: string; + privateKey: string; + }>; + function __promisify__( + type: 'rsa', + options: RSAKeyPairOptions<'pem', 'der'> + ): Promise<{ + publicKey: string; + privateKey: Buffer; + }>; + function __promisify__( + type: 'rsa', + options: RSAKeyPairOptions<'der', 'pem'> + ): Promise<{ + publicKey: Buffer; + privateKey: string; + }>; + function __promisify__( + type: 'rsa', + options: RSAKeyPairOptions<'der', 'der'> + ): Promise<{ + publicKey: Buffer; + privateKey: Buffer; + }>; + function __promisify__(type: 'rsa', options: RSAKeyPairKeyObjectOptions): Promise; + function __promisify__( + type: 'rsa-pss', + options: RSAPSSKeyPairOptions<'pem', 'pem'> + ): Promise<{ + publicKey: string; + privateKey: string; + }>; + function __promisify__( + type: 'rsa-pss', + options: RSAPSSKeyPairOptions<'pem', 'der'> + ): Promise<{ + publicKey: string; + privateKey: Buffer; + }>; + function __promisify__( + type: 'rsa-pss', + options: RSAPSSKeyPairOptions<'der', 'pem'> + ): Promise<{ + publicKey: Buffer; + privateKey: string; + }>; + function __promisify__( + type: 'rsa-pss', + options: RSAPSSKeyPairOptions<'der', 'der'> + ): Promise<{ + publicKey: Buffer; + privateKey: Buffer; + }>; + function __promisify__(type: 'rsa-pss', options: RSAPSSKeyPairKeyObjectOptions): Promise; + function __promisify__( + type: 'dsa', + options: DSAKeyPairOptions<'pem', 'pem'> + ): Promise<{ + publicKey: string; + privateKey: string; + }>; + function __promisify__( + type: 'dsa', + options: DSAKeyPairOptions<'pem', 'der'> + ): Promise<{ + publicKey: string; + privateKey: Buffer; + }>; + function __promisify__( + type: 'dsa', + options: DSAKeyPairOptions<'der', 'pem'> + ): Promise<{ + publicKey: Buffer; + privateKey: string; + }>; + function __promisify__( + type: 'dsa', + options: DSAKeyPairOptions<'der', 'der'> + ): Promise<{ + publicKey: Buffer; + privateKey: Buffer; + }>; + function __promisify__(type: 'dsa', options: DSAKeyPairKeyObjectOptions): Promise; + function __promisify__( + type: 'ec', + options: ECKeyPairOptions<'pem', 'pem'> + ): Promise<{ + publicKey: string; + privateKey: string; + }>; + function __promisify__( + type: 'ec', + options: ECKeyPairOptions<'pem', 'der'> + ): Promise<{ + publicKey: string; + privateKey: Buffer; + }>; + function __promisify__( + type: 'ec', + options: ECKeyPairOptions<'der', 'pem'> + ): Promise<{ + publicKey: Buffer; + privateKey: string; + }>; + function __promisify__( + type: 'ec', + options: ECKeyPairOptions<'der', 'der'> + ): Promise<{ + publicKey: Buffer; + privateKey: Buffer; + }>; + function __promisify__(type: 'ec', options: ECKeyPairKeyObjectOptions): Promise; + function __promisify__( + type: 'ed25519', + options: ED25519KeyPairOptions<'pem', 'pem'> + ): Promise<{ + publicKey: string; + privateKey: string; + }>; + function __promisify__( + type: 'ed25519', + options: ED25519KeyPairOptions<'pem', 'der'> + ): Promise<{ + publicKey: string; + privateKey: Buffer; + }>; + function __promisify__( + type: 'ed25519', + options: ED25519KeyPairOptions<'der', 'pem'> + ): Promise<{ + publicKey: Buffer; + privateKey: string; + }>; + function __promisify__( + type: 'ed25519', + options: ED25519KeyPairOptions<'der', 'der'> + ): Promise<{ + publicKey: Buffer; + privateKey: Buffer; + }>; + function __promisify__(type: 'ed25519', options?: ED25519KeyPairKeyObjectOptions): Promise; + function __promisify__( + type: 'ed448', + options: ED448KeyPairOptions<'pem', 'pem'> + ): Promise<{ + publicKey: string; + privateKey: string; + }>; + function __promisify__( + type: 'ed448', + options: ED448KeyPairOptions<'pem', 'der'> + ): Promise<{ + publicKey: string; + privateKey: Buffer; + }>; + function __promisify__( + type: 'ed448', + options: ED448KeyPairOptions<'der', 'pem'> + ): Promise<{ + publicKey: Buffer; + privateKey: string; + }>; + function __promisify__( + type: 'ed448', + options: ED448KeyPairOptions<'der', 'der'> + ): Promise<{ + publicKey: Buffer; + privateKey: Buffer; + }>; + function __promisify__(type: 'ed448', options?: ED448KeyPairKeyObjectOptions): Promise; + function __promisify__( + type: 'x25519', + options: X25519KeyPairOptions<'pem', 'pem'> + ): Promise<{ + publicKey: string; + privateKey: string; + }>; + function __promisify__( + type: 'x25519', + options: X25519KeyPairOptions<'pem', 'der'> + ): Promise<{ + publicKey: string; + privateKey: Buffer; + }>; + function __promisify__( + type: 'x25519', + options: X25519KeyPairOptions<'der', 'pem'> + ): Promise<{ + publicKey: Buffer; + privateKey: string; + }>; + function __promisify__( + type: 'x25519', + options: X25519KeyPairOptions<'der', 'der'> + ): Promise<{ + publicKey: Buffer; + privateKey: Buffer; + }>; + function __promisify__(type: 'x25519', options?: X25519KeyPairKeyObjectOptions): Promise; + function __promisify__( + type: 'x448', + options: X448KeyPairOptions<'pem', 'pem'> + ): Promise<{ + publicKey: string; + privateKey: string; + }>; + function __promisify__( + type: 'x448', + options: X448KeyPairOptions<'pem', 'der'> + ): Promise<{ + publicKey: string; + privateKey: Buffer; + }>; + function __promisify__( + type: 'x448', + options: X448KeyPairOptions<'der', 'pem'> + ): Promise<{ + publicKey: Buffer; + privateKey: string; + }>; + function __promisify__( + type: 'x448', + options: X448KeyPairOptions<'der', 'der'> + ): Promise<{ + publicKey: Buffer; + privateKey: Buffer; + }>; + function __promisify__(type: 'x448', options?: X448KeyPairKeyObjectOptions): Promise; + } + /** + * Calculates and returns the signature for `data` using the given private key and + * algorithm. If `algorithm` is `null` or `undefined`, then the algorithm is + * dependent upon the key type (especially Ed25519 and Ed448). + * + * If `key` is not a `KeyObject`, this function behaves as if `key` had been + * passed to {@link createPrivateKey}. If it is an object, the following + * additional properties can be passed: + * + * If the `callback` function is provided this function uses libuv's threadpool. + * @since v12.0.0 + */ + function sign(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput): Buffer; + function sign( + algorithm: string | null | undefined, + data: NodeJS.ArrayBufferView, + key: KeyLike | SignKeyObjectInput | SignPrivateKeyInput, + callback: (error: Error | null, data: Buffer) => void + ): void; + /** + * Verifies the given signature for `data` using the given key and algorithm. If`algorithm` is `null` or `undefined`, then the algorithm is dependent upon the + * key type (especially Ed25519 and Ed448). + * + * If `key` is not a `KeyObject`, this function behaves as if `key` had been + * passed to {@link createPublicKey}. If it is an object, the following + * additional properties can be passed: + * + * The `signature` argument is the previously calculated signature for the `data`. + * + * Because public keys can be derived from private keys, a private key or a public + * key may be passed for `key`. + * + * If the `callback` function is provided this function uses libuv's threadpool. + * @since v12.0.0 + */ + function verify(algorithm: string | null | undefined, data: NodeJS.ArrayBufferView, key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, signature: NodeJS.ArrayBufferView): boolean; + function verify( + algorithm: string | null | undefined, + data: NodeJS.ArrayBufferView, + key: KeyLike | VerifyKeyObjectInput | VerifyPublicKeyInput, + signature: NodeJS.ArrayBufferView, + callback: (error: Error | null, result: boolean) => void + ): void; + /** + * Computes the Diffie-Hellman secret based on a `privateKey` and a `publicKey`. + * Both keys must have the same `asymmetricKeyType`, which must be one of `'dh'`(for Diffie-Hellman), `'ec'` (for ECDH), `'x448'`, or `'x25519'` (for ECDH-ES). + * @since v13.9.0, v12.17.0 + */ + function diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject }): Buffer; + type CipherMode = 'cbc' | 'ccm' | 'cfb' | 'ctr' | 'ecb' | 'gcm' | 'ocb' | 'ofb' | 'stream' | 'wrap' | 'xts'; + interface CipherInfoOptions { + /** + * A test key length. + */ + keyLength?: number | undefined; + /** + * A test IV length. + */ + ivLength?: number | undefined; + } + interface CipherInfo { + /** + * The name of the cipher. + */ + name: string; + /** + * The nid of the cipher. + */ + nid: number; + /** + * The block size of the cipher in bytes. + * This property is omitted when mode is 'stream'. + */ + blockSize?: number | undefined; + /** + * The expected or default initialization vector length in bytes. + * This property is omitted if the cipher does not use an initialization vector. + */ + ivLength?: number | undefined; + /** + * The expected or default key length in bytes. + */ + keyLength: number; + /** + * The cipher mode. + */ + mode: CipherMode; + } + /** + * Returns information about a given cipher. + * + * Some ciphers accept variable length keys and initialization vectors. By default, + * the `crypto.getCipherInfo()` method will return the default values for these + * ciphers. To test if a given key length or iv length is acceptable for given + * cipher, use the `keyLength` and `ivLength` options. If the given values are + * unacceptable, `undefined` will be returned. + * @since v15.0.0 + * @param nameOrNid The name or nid of the cipher to query. + */ + function getCipherInfo(nameOrNid: string | number, options?: CipherInfoOptions): CipherInfo | undefined; + /** + * HKDF is a simple key derivation function defined in RFC 5869\. The given `ikm`,`salt` and `info` are used with the `digest` to derive a key of `keylen` bytes. + * + * The supplied `callback` function is called with two arguments: `err` and`derivedKey`. If an errors occurs while deriving the key, `err` will be set; + * otherwise `err` will be `null`. The successfully generated `derivedKey` will + * be passed to the callback as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). An error will be thrown if any + * of the input arguments specify invalid values or types. + * + * ```js + * import { Buffer } from 'buffer'; + * const { + * hkdf + * } = await import('crypto'); + * + * hkdf('sha512', 'key', 'salt', 'info', 64, (err, derivedKey) => { + * if (err) throw err; + * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653' + * }); + * ``` + * @since v15.0.0 + * @param digest The digest algorithm to use. + * @param ikm The input keying material. It must be at least one byte in length. + * @param salt The salt value. Must be provided but can be zero-length. + * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes. + * @param keylen The length of the key to generate. Must be greater than 0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512` + * generates 64-byte hashes, making the maximum HKDF output 16320 bytes). + */ + function hkdf(digest: string, irm: BinaryLike | KeyObject, salt: BinaryLike, info: BinaryLike, keylen: number, callback: (err: Error | null, derivedKey: ArrayBuffer) => void): void; + /** + * Provides a synchronous HKDF key derivation function as defined in RFC 5869\. The + * given `ikm`, `salt` and `info` are used with the `digest` to derive a key of`keylen` bytes. + * + * The successfully generated `derivedKey` will be returned as an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). + * + * An error will be thrown if any of the input arguments specify invalid values or + * types, or if the derived key cannot be generated. + * + * ```js + * import { Buffer } from 'buffer'; + * const { + * hkdfSync + * } = await import('crypto'); + * + * const derivedKey = hkdfSync('sha512', 'key', 'salt', 'info', 64); + * console.log(Buffer.from(derivedKey).toString('hex')); // '24156e2...5391653' + * ``` + * @since v15.0.0 + * @param digest The digest algorithm to use. + * @param ikm The input keying material. It must be at least one byte in length. + * @param salt The salt value. Must be provided but can be zero-length. + * @param info Additional info value. Must be provided but can be zero-length, and cannot be more than 1024 bytes. + * @param keylen The length of the key to generate. Must be greater than 0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512` + * generates 64-byte hashes, making the maximum HKDF output 16320 bytes). + */ + function hkdfSync(digest: string, ikm: BinaryLike | KeyObject, salt: BinaryLike, info: BinaryLike, keylen: number): ArrayBuffer; + interface SecureHeapUsage { + /** + * The total allocated secure heap size as specified using the `--secure-heap=n` command-line flag. + */ + total: number; + /** + * The minimum allocation from the secure heap as specified using the `--secure-heap-min` command-line flag. + */ + min: number; + /** + * The total number of bytes currently allocated from the secure heap. + */ + used: number; + /** + * The calculated ratio of `used` to `total` allocated bytes. + */ + utilization: number; + } + /** + * @since v15.6.0 + */ + function secureHeapUsed(): SecureHeapUsage; + interface RandomUUIDOptions { + /** + * By default, to improve performance, + * Node.js will pre-emptively generate and persistently cache enough + * random data to generate up to 128 random UUIDs. To generate a UUID + * without using the cache, set `disableEntropyCache` to `true`. + * + * @default `false` + */ + disableEntropyCache?: boolean | undefined; + } + /** + * Generates a random [RFC 4122](https://www.rfc-editor.org/rfc/rfc4122.txt) version 4 UUID. The UUID is generated using a + * cryptographic pseudorandom number generator. + * @since v15.6.0, v14.17.0 + */ + function randomUUID(options?: RandomUUIDOptions): string; + interface X509CheckOptions { + /** + * @default 'always' + */ + subject: 'always' | 'never'; + /** + * @default true + */ + wildcards: boolean; + /** + * @default true + */ + partialWildcards: boolean; + /** + * @default false + */ + multiLabelWildcards: boolean; + /** + * @default false + */ + singleLabelSubdomains: boolean; + } + /** + * Encapsulates an X509 certificate and provides read-only access to + * its information. + * + * ```js + * const { X509Certificate } = await import('crypto'); + * + * const x509 = new X509Certificate('{... pem encoded cert ...}'); + * + * console.log(x509.subject); + * ``` + * @since v15.6.0 + */ + class X509Certificate { + /** + * Will be \`true\` if this is a Certificate Authority (ca) certificate. + * @since v15.6.0 + */ + readonly ca: boolean; + /** + * The SHA-1 fingerprint of this certificate. + * @since v15.6.0 + */ + readonly fingerprint: string; + /** + * The SHA-256 fingerprint of this certificate. + * @since v15.6.0 + */ + readonly fingerprint256: string; + /** + * The complete subject of this certificate. + * @since v15.6.0 + */ + readonly subject: string; + /** + * The subject alternative name specified for this certificate. + * @since v15.6.0 + */ + readonly subjectAltName: string; + /** + * The information access content of this certificate. + * @since v15.6.0 + */ + readonly infoAccess: string; + /** + * An array detailing the key usages for this certificate. + * @since v15.6.0 + */ + readonly keyUsage: string[]; + /** + * The issuer identification included in this certificate. + * @since v15.6.0 + */ + readonly issuer: string; + /** + * The issuer certificate or `undefined` if the issuer certificate is not + * available. + * @since v15.9.0 + */ + readonly issuerCertificate?: X509Certificate | undefined; + /** + * The public key `KeyObject` for this certificate. + * @since v15.6.0 + */ + readonly publicKey: KeyObject; + /** + * A `Buffer` containing the DER encoding of this certificate. + * @since v15.6.0 + */ + readonly raw: Buffer; + /** + * The serial number of this certificate. + * @since v15.6.0 + */ + readonly serialNumber: string; + /** + * The date/time from which this certificate is considered valid. + * @since v15.6.0 + */ + readonly validFrom: string; + /** + * The date/time until which this certificate is considered valid. + * @since v15.6.0 + */ + readonly validTo: string; + constructor(buffer: BinaryLike); + /** + * Checks whether the certificate matches the given email address. + * @since v15.6.0 + * @return Returns `email` if the certificate matches, `undefined` if it does not. + */ + checkEmail(email: string, options?: X509CheckOptions): string | undefined; + /** + * Checks whether the certificate matches the given host name. + * @since v15.6.0 + * @return Returns `name` if the certificate matches, `undefined` if it does not. + */ + checkHost(name: string, options?: X509CheckOptions): string | undefined; + /** + * Checks whether the certificate matches the given IP address (IPv4 or IPv6). + * @since v15.6.0 + * @return Returns `ip` if the certificate matches, `undefined` if it does not. + */ + checkIP(ip: string, options?: X509CheckOptions): string | undefined; + /** + * Checks whether this certificate was issued by the given `otherCert`. + * @since v15.6.0 + */ + checkIssued(otherCert: X509Certificate): boolean; + /** + * Checks whether the public key for this certificate is consistent with + * the given private key. + * @since v15.6.0 + * @param privateKey A private key. + */ + checkPrivateKey(privateKey: KeyObject): boolean; + /** + * There is no standard JSON encoding for X509 certificates. The`toJSON()` method returns a string containing the PEM encoded + * certificate. + * @since v15.6.0 + */ + toJSON(): string; + /** + * Returns information about this certificate using the legacy `certificate object` encoding. + * @since v15.6.0 + */ + toLegacyObject(): PeerCertificate; + /** + * Returns the PEM-encoded certificate. + * @since v15.6.0 + */ + toString(): string; + /** + * Verifies that this certificate was signed by the given public key. + * Does not perform any other validation checks on the certificate. + * @since v15.6.0 + * @param publicKey A public key. + */ + verify(publicKey: KeyObject): boolean; + } + type LargeNumberLike = NodeJS.ArrayBufferView | SharedArrayBuffer | ArrayBuffer | bigint; + interface GeneratePrimeOptions { + add?: LargeNumberLike | undefined; + rem?: LargeNumberLike | undefined; + /** + * @default false + */ + safe?: boolean | undefined; + bigint?: boolean | undefined; + } + interface GeneratePrimeOptionsBigInt extends GeneratePrimeOptions { + bigint: true; + } + interface GeneratePrimeOptionsArrayBuffer extends GeneratePrimeOptions { + bigint?: false | undefined; + } + /** + * Generates a pseudorandom prime of `size` bits. + * + * If `options.safe` is `true`, the prime will be a safe prime -- that is,`(prime - 1) / 2` will also be a prime. + * + * The `options.add` and `options.rem` parameters can be used to enforce additional + * requirements, e.g., for Diffie-Hellman: + * + * * If `options.add` and `options.rem` are both set, the prime will satisfy the + * condition that `prime % add = rem`. + * * If only `options.add` is set and `options.safe` is not `true`, the prime will + * satisfy the condition that `prime % add = 1`. + * * If only `options.add` is set and `options.safe` is set to `true`, the prime + * will instead satisfy the condition that `prime % add = 3`. This is necessary + * because `prime % add = 1` for `options.add > 2` would contradict the condition + * enforced by `options.safe`. + * * `options.rem` is ignored if `options.add` is not given. + * + * Both `options.add` and `options.rem` must be encoded as big-endian sequences + * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or`DataView`. + * + * By default, the prime is encoded as a big-endian sequence of octets + * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a + * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided. + * @since v15.8.0 + * @param size The size (in bits) of the prime to generate. + */ + function generatePrime(size: number, callback: (err: Error | null, prime: ArrayBuffer) => void): void; + function generatePrime(size: number, options: GeneratePrimeOptionsBigInt, callback: (err: Error | null, prime: bigint) => void): void; + function generatePrime(size: number, options: GeneratePrimeOptionsArrayBuffer, callback: (err: Error | null, prime: ArrayBuffer) => void): void; + function generatePrime(size: number, options: GeneratePrimeOptions, callback: (err: Error | null, prime: ArrayBuffer | bigint) => void): void; + /** + * Generates a pseudorandom prime of `size` bits. + * + * If `options.safe` is `true`, the prime will be a safe prime -- that is,`(prime - 1) / 2` will also be a prime. + * + * The `options.add` and `options.rem` parameters can be used to enforce additional + * requirements, e.g., for Diffie-Hellman: + * + * * If `options.add` and `options.rem` are both set, the prime will satisfy the + * condition that `prime % add = rem`. + * * If only `options.add` is set and `options.safe` is not `true`, the prime will + * satisfy the condition that `prime % add = 1`. + * * If only `options.add` is set and `options.safe` is set to `true`, the prime + * will instead satisfy the condition that `prime % add = 3`. This is necessary + * because `prime % add = 1` for `options.add > 2` would contradict the condition + * enforced by `options.safe`. + * * `options.rem` is ignored if `options.add` is not given. + * + * Both `options.add` and `options.rem` must be encoded as big-endian sequences + * if given as an `ArrayBuffer`, `SharedArrayBuffer`, `TypedArray`, `Buffer`, or`DataView`. + * + * By default, the prime is encoded as a big-endian sequence of octets + * in an [ArrayBuffer](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer). If the `bigint` option is `true`, then a + * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) is provided. + * @since v15.8.0 + * @param size The size (in bits) of the prime to generate. + */ + function generatePrimeSync(size: number): ArrayBuffer; + function generatePrimeSync(size: number, options: GeneratePrimeOptionsBigInt): bigint; + function generatePrimeSync(size: number, options: GeneratePrimeOptionsArrayBuffer): ArrayBuffer; + function generatePrimeSync(size: number, options: GeneratePrimeOptions): ArrayBuffer | bigint; + interface CheckPrimeOptions { + /** + * The number of Miller-Rabin probabilistic primality iterations to perform. + * When the value is 0 (zero), a number of checks is used that yields a false positive rate of at most 2-64 for random input. + * Care must be used when selecting a number of checks. + * Refer to the OpenSSL documentation for the BN_is_prime_ex function nchecks options for more details. + * + * @default 0 + */ + checks?: number | undefined; + } + /** + * Checks the primality of the `candidate`. + * @since v15.8.0 + * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length. + */ + function checkPrime(value: LargeNumberLike, callback: (err: Error | null, result: boolean) => void): void; + function checkPrime(value: LargeNumberLike, options: CheckPrimeOptions, callback: (err: Error | null, result: boolean) => void): void; + /** + * Checks the primality of the `candidate`. + * @since v15.8.0 + * @param candidate A possible prime encoded as a sequence of big endian octets of arbitrary length. + * @return `true` if the candidate is a prime with an error probability less than `0.25 ** options.checks`. + */ + function checkPrimeSync(candidate: LargeNumberLike, options?: CheckPrimeOptions): boolean; + namespace webcrypto { + class CryptoKey {} // placeholder + } +} +declare module 'node:crypto' { + export * from 'crypto'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/dgram.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/dgram.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..b4a989279129cdb1adba42dcb1f9158967746b41 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/dgram.d.ts" @@ -0,0 +1,545 @@ +/** + * The `dgram` module provides an implementation of UDP datagram sockets. + * + * ```js + * import dgram from 'dgram'; + * + * const server = dgram.createSocket('udp4'); + * + * server.on('error', (err) => { + * console.log(`server error:\n${err.stack}`); + * server.close(); + * }); + * + * server.on('message', (msg, rinfo) => { + * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`); + * }); + * + * server.on('listening', () => { + * const address = server.address(); + * console.log(`server listening ${address.address}:${address.port}`); + * }); + * + * server.bind(41234); + * // Prints: server listening 0.0.0.0:41234 + * ``` + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/dgram.js) + */ +declare module 'dgram' { + import { AddressInfo } from 'node:net'; + import * as dns from 'node:dns'; + import { EventEmitter, Abortable } from 'node:events'; + interface RemoteInfo { + address: string; + family: 'IPv4' | 'IPv6'; + port: number; + size: number; + } + interface BindOptions { + port?: number | undefined; + address?: string | undefined; + exclusive?: boolean | undefined; + fd?: number | undefined; + } + type SocketType = 'udp4' | 'udp6'; + interface SocketOptions extends Abortable { + type: SocketType; + reuseAddr?: boolean | undefined; + /** + * @default false + */ + ipv6Only?: boolean | undefined; + recvBufferSize?: number | undefined; + sendBufferSize?: number | undefined; + lookup?: ((hostname: string, options: dns.LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void) => void) | undefined; + } + /** + * Creates a `dgram.Socket` object. Once the socket is created, calling `socket.bind()` will instruct the socket to begin listening for datagram + * messages. When `address` and `port` are not passed to `socket.bind()` the + * method will bind the socket to the "all interfaces" address on a random port + * (it does the right thing for both `udp4` and `udp6` sockets). The bound address + * and port can be retrieved using `socket.address().address` and `socket.address().port`. + * + * If the `signal` option is enabled, calling `.abort()` on the corresponding`AbortController` is similar to calling `.close()` on the socket: + * + * ```js + * const controller = new AbortController(); + * const { signal } = controller; + * const server = dgram.createSocket({ type: 'udp4', signal }); + * server.on('message', (msg, rinfo) => { + * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`); + * }); + * // Later, when you want to close the server. + * controller.abort(); + * ``` + * @since v0.11.13 + * @param options Available options are: + * @param callback Attached as a listener for `'message'` events. Optional. + */ + function createSocket(type: SocketType, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket; + function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket; + /** + * Encapsulates the datagram functionality. + * + * New instances of `dgram.Socket` are created using {@link createSocket}. + * The `new` keyword is not to be used to create `dgram.Socket` instances. + * @since v0.1.99 + */ + class Socket extends EventEmitter { + /** + * Tells the kernel to join a multicast group at the given `multicastAddress` and`multicastInterface` using the `IP_ADD_MEMBERSHIP` socket option. If the`multicastInterface` argument is not + * specified, the operating system will choose + * one interface and will add membership to it. To add membership to every + * available interface, call `addMembership` multiple times, once per interface. + * + * When called on an unbound socket, this method will implicitly bind to a random + * port, listening on all interfaces. + * + * When sharing a UDP socket across multiple `cluster` workers, the`socket.addMembership()` function must be called only once or an`EADDRINUSE` error will occur: + * + * ```js + * import cluster from 'cluster'; + * import dgram from 'dgram'; + * + * if (cluster.isPrimary) { + * cluster.fork(); // Works ok. + * cluster.fork(); // Fails with EADDRINUSE. + * } else { + * const s = dgram.createSocket('udp4'); + * s.bind(1234, () => { + * s.addMembership('224.0.0.114'); + * }); + * } + * ``` + * @since v0.6.9 + */ + addMembership(multicastAddress: string, multicastInterface?: string): void; + /** + * Returns an object containing the address information for a socket. + * For UDP sockets, this object will contain `address`, `family` and `port`properties. + * + * This method throws `EBADF` if called on an unbound socket. + * @since v0.1.99 + */ + address(): AddressInfo; + /** + * For UDP sockets, causes the `dgram.Socket` to listen for datagram + * messages on a named `port` and optional `address`. If `port` is not + * specified or is `0`, the operating system will attempt to bind to a + * random port. If `address` is not specified, the operating system will + * attempt to listen on all addresses. Once binding is complete, a`'listening'` event is emitted and the optional `callback` function is + * called. + * + * Specifying both a `'listening'` event listener and passing a`callback` to the `socket.bind()` method is not harmful but not very + * useful. + * + * A bound datagram socket keeps the Node.js process running to receive + * datagram messages. + * + * If binding fails, an `'error'` event is generated. In rare case (e.g. + * attempting to bind with a closed socket), an `Error` may be thrown. + * + * Example of a UDP server listening on port 41234: + * + * ```js + * import dgram from 'dgram'; + * + * const server = dgram.createSocket('udp4'); + * + * server.on('error', (err) => { + * console.log(`server error:\n${err.stack}`); + * server.close(); + * }); + * + * server.on('message', (msg, rinfo) => { + * console.log(`server got: ${msg} from ${rinfo.address}:${rinfo.port}`); + * }); + * + * server.on('listening', () => { + * const address = server.address(); + * console.log(`server listening ${address.address}:${address.port}`); + * }); + * + * server.bind(41234); + * // Prints: server listening 0.0.0.0:41234 + * ``` + * @since v0.1.99 + * @param callback with no parameters. Called when binding is complete. + */ + bind(port?: number, address?: string, callback?: () => void): this; + bind(port?: number, callback?: () => void): this; + bind(callback?: () => void): this; + bind(options: BindOptions, callback?: () => void): this; + /** + * Close the underlying socket and stop listening for data on it. If a callback is + * provided, it is added as a listener for the `'close'` event. + * @since v0.1.99 + * @param callback Called when the socket has been closed. + */ + close(callback?: () => void): this; + /** + * Associates the `dgram.Socket` to a remote address and port. Every + * message sent by this handle is automatically sent to that destination. Also, + * the socket will only receive messages from that remote peer. + * Trying to call `connect()` on an already connected socket will result + * in an `ERR_SOCKET_DGRAM_IS_CONNECTED` exception. If `address` is not + * provided, `'127.0.0.1'` (for `udp4` sockets) or `'::1'` (for `udp6` sockets) + * will be used by default. Once the connection is complete, a `'connect'` event + * is emitted and the optional `callback` function is called. In case of failure, + * the `callback` is called or, failing this, an `'error'` event is emitted. + * @since v12.0.0 + * @param callback Called when the connection is completed or on error. + */ + connect(port: number, address?: string, callback?: () => void): void; + connect(port: number, callback: () => void): void; + /** + * A synchronous function that disassociates a connected `dgram.Socket` from + * its remote address. Trying to call `disconnect()` on an unbound or already + * disconnected socket will result in an `ERR_SOCKET_DGRAM_NOT_CONNECTED` exception. + * @since v12.0.0 + */ + disconnect(): void; + /** + * Instructs the kernel to leave a multicast group at `multicastAddress` using the`IP_DROP_MEMBERSHIP` socket option. This method is automatically called by the + * kernel when the socket is closed or the process terminates, so most apps will + * never have reason to call this. + * + * If `multicastInterface` is not specified, the operating system will attempt to + * drop membership on all valid interfaces. + * @since v0.6.9 + */ + dropMembership(multicastAddress: string, multicastInterface?: string): void; + /** + * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. + * @since v8.7.0 + * @return the `SO_RCVBUF` socket receive buffer size in bytes. + */ + getRecvBufferSize(): number; + /** + * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. + * @since v8.7.0 + * @return the `SO_SNDBUF` socket send buffer size in bytes. + */ + getSendBufferSize(): number; + /** + * By default, binding a socket will cause it to block the Node.js process from + * exiting as long as the socket is open. The `socket.unref()` method can be used + * to exclude the socket from the reference counting that keeps the Node.js + * process active. The `socket.ref()` method adds the socket back to the reference + * counting and restores the default behavior. + * + * Calling `socket.ref()` multiples times will have no additional effect. + * + * The `socket.ref()` method returns a reference to the socket so calls can be + * chained. + * @since v0.9.1 + */ + ref(): this; + /** + * Returns an object containing the `address`, `family`, and `port` of the remote + * endpoint. This method throws an `ERR_SOCKET_DGRAM_NOT_CONNECTED` exception + * if the socket is not connected. + * @since v12.0.0 + */ + remoteAddress(): AddressInfo; + /** + * Broadcasts a datagram on the socket. + * For connectionless sockets, the destination `port` and `address` must be + * specified. Connected sockets, on the other hand, will use their associated + * remote endpoint, so the `port` and `address` arguments must not be set. + * + * The `msg` argument contains the message to be sent. + * Depending on its type, different behavior can apply. If `msg` is a `Buffer`, + * any `TypedArray` or a `DataView`, + * the `offset` and `length` specify the offset within the `Buffer` where the + * message begins and the number of bytes in the message, respectively. + * If `msg` is a `String`, then it is automatically converted to a `Buffer`with `'utf8'` encoding. With messages that + * contain multi-byte characters, `offset` and `length` will be calculated with + * respect to `byte length` and not the character position. + * If `msg` is an array, `offset` and `length` must not be specified. + * + * The `address` argument is a string. If the value of `address` is a host name, + * DNS will be used to resolve the address of the host. If `address` is not + * provided or otherwise nullish, `'127.0.0.1'` (for `udp4` sockets) or `'::1'`(for `udp6` sockets) will be used by default. + * + * If the socket has not been previously bound with a call to `bind`, the socket + * is assigned a random port number and is bound to the "all interfaces" address + * (`'0.0.0.0'` for `udp4` sockets, `'::0'` for `udp6` sockets.) + * + * An optional `callback` function may be specified to as a way of reporting + * DNS errors or for determining when it is safe to reuse the `buf` object. + * DNS lookups delay the time to send for at least one tick of the + * Node.js event loop. + * + * The only way to know for sure that the datagram has been sent is by using a`callback`. If an error occurs and a `callback` is given, the error will be + * passed as the first argument to the `callback`. If a `callback` is not given, + * the error is emitted as an `'error'` event on the `socket` object. + * + * Offset and length are optional but both _must_ be set if either are used. + * They are supported only when the first argument is a `Buffer`, a `TypedArray`, + * or a `DataView`. + * + * This method throws `ERR_SOCKET_BAD_PORT` if called on an unbound socket. + * + * Example of sending a UDP packet to a port on `localhost`; + * + * ```js + * import dgram from 'dgram'; + * import { Buffer } from 'buffer'; + * + * const message = Buffer.from('Some bytes'); + * const client = dgram.createSocket('udp4'); + * client.send(message, 41234, 'localhost', (err) => { + * client.close(); + * }); + * ``` + * + * Example of sending a UDP packet composed of multiple buffers to a port on`127.0.0.1`; + * + * ```js + * import dgram from 'dgram'; + * import { Buffer } from 'buffer'; + * + * const buf1 = Buffer.from('Some '); + * const buf2 = Buffer.from('bytes'); + * const client = dgram.createSocket('udp4'); + * client.send([buf1, buf2], 41234, (err) => { + * client.close(); + * }); + * ``` + * + * Sending multiple buffers might be faster or slower depending on the + * application and operating system. Run benchmarks to + * determine the optimal strategy on a case-by-case basis. Generally speaking, + * however, sending multiple buffers is faster. + * + * Example of sending a UDP packet using a socket connected to a port on`localhost`: + * + * ```js + * import dgram from 'dgram'; + * import { Buffer } from 'buffer'; + * + * const message = Buffer.from('Some bytes'); + * const client = dgram.createSocket('udp4'); + * client.connect(41234, 'localhost', (err) => { + * client.send(message, (err) => { + * client.close(); + * }); + * }); + * ``` + * @since v0.1.99 + * @param msg Message to be sent. + * @param offset Offset in the buffer where the message starts. + * @param length Number of bytes in the message. + * @param port Destination port. + * @param address Destination host name or IP address. + * @param callback Called when the message has been sent. + */ + send(msg: string | Uint8Array | ReadonlyArray, port?: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void; + send(msg: string | Uint8Array | ReadonlyArray, port?: number, callback?: (error: Error | null, bytes: number) => void): void; + send(msg: string | Uint8Array | ReadonlyArray, callback?: (error: Error | null, bytes: number) => void): void; + send(msg: string | Uint8Array, offset: number, length: number, port?: number, address?: string, callback?: (error: Error | null, bytes: number) => void): void; + send(msg: string | Uint8Array, offset: number, length: number, port?: number, callback?: (error: Error | null, bytes: number) => void): void; + send(msg: string | Uint8Array, offset: number, length: number, callback?: (error: Error | null, bytes: number) => void): void; + /** + * Sets or clears the `SO_BROADCAST` socket option. When set to `true`, UDP + * packets may be sent to a local interface's broadcast address. + * + * This method throws `EBADF` if called on an unbound socket. + * @since v0.6.9 + */ + setBroadcast(flag: boolean): void; + /** + * _All references to scope in this section are referring to [IPv6 Zone Indices](https://en.wikipedia.org/wiki/IPv6_address#Scoped_literal_IPv6_addresses), which are defined by [RFC + * 4007](https://tools.ietf.org/html/rfc4007). In string form, an IP_ + * _with a scope index is written as `'IP%scope'` where scope is an interface name_ + * _or interface number._ + * + * Sets the default outgoing multicast interface of the socket to a chosen + * interface or back to system interface selection. The `multicastInterface` must + * be a valid string representation of an IP from the socket's family. + * + * For IPv4 sockets, this should be the IP configured for the desired physical + * interface. All packets sent to multicast on the socket will be sent on the + * interface determined by the most recent successful use of this call. + * + * For IPv6 sockets, `multicastInterface` should include a scope to indicate the + * interface as in the examples that follow. In IPv6, individual `send` calls can + * also use explicit scope in addresses, so only packets sent to a multicast + * address without specifying an explicit scope are affected by the most recent + * successful use of this call. + * + * This method throws `EBADF` if called on an unbound socket. + * + * #### Example: IPv6 outgoing multicast interface + * + * On most systems, where scope format uses the interface name: + * + * ```js + * const socket = dgram.createSocket('udp6'); + * + * socket.bind(1234, () => { + * socket.setMulticastInterface('::%eth1'); + * }); + * ``` + * + * On Windows, where scope format uses an interface number: + * + * ```js + * const socket = dgram.createSocket('udp6'); + * + * socket.bind(1234, () => { + * socket.setMulticastInterface('::%2'); + * }); + * ``` + * + * #### Example: IPv4 outgoing multicast interface + * + * All systems use an IP of the host on the desired physical interface: + * + * ```js + * const socket = dgram.createSocket('udp4'); + * + * socket.bind(1234, () => { + * socket.setMulticastInterface('10.0.0.2'); + * }); + * ``` + * @since v8.6.0 + */ + setMulticastInterface(multicastInterface: string): void; + /** + * Sets or clears the `IP_MULTICAST_LOOP` socket option. When set to `true`, + * multicast packets will also be received on the local interface. + * + * This method throws `EBADF` if called on an unbound socket. + * @since v0.3.8 + */ + setMulticastLoopback(flag: boolean): boolean; + /** + * Sets the `IP_MULTICAST_TTL` socket option. While TTL generally stands for + * "Time to Live", in this context it specifies the number of IP hops that a + * packet is allowed to travel through, specifically for multicast traffic. Each + * router or gateway that forwards a packet decrements the TTL. If the TTL is + * decremented to 0 by a router, it will not be forwarded. + * + * The `ttl` argument may be between 0 and 255\. The default on most systems is `1`. + * + * This method throws `EBADF` if called on an unbound socket. + * @since v0.3.8 + */ + setMulticastTTL(ttl: number): number; + /** + * Sets the `SO_RCVBUF` socket option. Sets the maximum socket receive buffer + * in bytes. + * + * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. + * @since v8.7.0 + */ + setRecvBufferSize(size: number): void; + /** + * Sets the `SO_SNDBUF` socket option. Sets the maximum socket send buffer + * in bytes. + * + * This method throws `ERR_SOCKET_BUFFER_SIZE` if called on an unbound socket. + * @since v8.7.0 + */ + setSendBufferSize(size: number): void; + /** + * Sets the `IP_TTL` socket option. While TTL generally stands for "Time to Live", + * in this context it specifies the number of IP hops that a packet is allowed to + * travel through. Each router or gateway that forwards a packet decrements the + * TTL. If the TTL is decremented to 0 by a router, it will not be forwarded. + * Changing TTL values is typically done for network probes or when multicasting. + * + * The `ttl` argument may be between between 1 and 255\. The default on most systems + * is 64. + * + * This method throws `EBADF` if called on an unbound socket. + * @since v0.1.101 + */ + setTTL(ttl: number): number; + /** + * By default, binding a socket will cause it to block the Node.js process from + * exiting as long as the socket is open. The `socket.unref()` method can be used + * to exclude the socket from the reference counting that keeps the Node.js + * process active, allowing the process to exit even if the socket is still + * listening. + * + * Calling `socket.unref()` multiple times will have no addition effect. + * + * The `socket.unref()` method returns a reference to the socket so calls can be + * chained. + * @since v0.9.1 + */ + unref(): this; + /** + * Tells the kernel to join a source-specific multicast channel at the given`sourceAddress` and `groupAddress`, using the `multicastInterface` with the`IP_ADD_SOURCE_MEMBERSHIP` socket + * option. If the `multicastInterface` argument + * is not specified, the operating system will choose one interface and will add + * membership to it. To add membership to every available interface, call`socket.addSourceSpecificMembership()` multiple times, once per interface. + * + * When called on an unbound socket, this method will implicitly bind to a random + * port, listening on all interfaces. + * @since v13.1.0, v12.16.0 + */ + addSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void; + /** + * Instructs the kernel to leave a source-specific multicast channel at the given`sourceAddress` and `groupAddress` using the `IP_DROP_SOURCE_MEMBERSHIP`socket option. This method is + * automatically called by the kernel when the + * socket is closed or the process terminates, so most apps will never have + * reason to call this. + * + * If `multicastInterface` is not specified, the operating system will attempt to + * drop membership on all valid interfaces. + * @since v13.1.0, v12.16.0 + */ + dropSourceSpecificMembership(sourceAddress: string, groupAddress: string, multicastInterface?: string): void; + /** + * events.EventEmitter + * 1. close + * 2. connect + * 3. error + * 4. listening + * 5. message + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: 'close', listener: () => void): this; + addListener(event: 'connect', listener: () => void): this; + addListener(event: 'error', listener: (err: Error) => void): this; + addListener(event: 'listening', listener: () => void): this; + addListener(event: 'message', listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: 'close'): boolean; + emit(event: 'connect'): boolean; + emit(event: 'error', err: Error): boolean; + emit(event: 'listening'): boolean; + emit(event: 'message', msg: Buffer, rinfo: RemoteInfo): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: 'close', listener: () => void): this; + on(event: 'connect', listener: () => void): this; + on(event: 'error', listener: (err: Error) => void): this; + on(event: 'listening', listener: () => void): this; + on(event: 'message', listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: 'close', listener: () => void): this; + once(event: 'connect', listener: () => void): this; + once(event: 'error', listener: (err: Error) => void): this; + once(event: 'listening', listener: () => void): this; + once(event: 'message', listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: 'close', listener: () => void): this; + prependListener(event: 'connect', listener: () => void): this; + prependListener(event: 'error', listener: (err: Error) => void): this; + prependListener(event: 'listening', listener: () => void): this; + prependListener(event: 'message', listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'close', listener: () => void): this; + prependOnceListener(event: 'connect', listener: () => void): this; + prependOnceListener(event: 'error', listener: (err: Error) => void): this; + prependOnceListener(event: 'listening', listener: () => void): this; + prependOnceListener(event: 'message', listener: (msg: Buffer, rinfo: RemoteInfo) => void): this; + } +} +declare module 'node:dgram' { + export * from 'dgram'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/diagnostics_channel.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/diagnostics_channel.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..915d2af4bc2d9d284dd9d225d9d10bab7aa4a91b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/diagnostics_channel.d.ts" @@ -0,0 +1,134 @@ +/** + * The `diagnostics_channel` module provides an API to create named channels + * to report arbitrary message data for diagnostics purposes. + * + * It can be accessed using: + * + * ```js + * import diagnostics_channel from 'diagnostics_channel'; + * ``` + * + * It is intended that a module writer wanting to report diagnostics messages + * will create one or many top-level channels to report messages through. + * Channels may also be acquired at runtime but it is not encouraged + * due to the additional overhead of doing so. Channels may be exported for + * convenience, but as long as the name is known it can be acquired anywhere. + * + * If you intend for your module to produce diagnostics data for others to + * consume it is recommended that you include documentation of what named + * channels are used along with the shape of the message data. Channel names + * should generally include the module name to avoid collisions with data from + * other modules. + * @experimental + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/diagnostics_channel.js) + */ +declare module 'diagnostics_channel' { + /** + * Check if there are active subscribers to the named channel. This is helpful if + * the message you want to send might be expensive to prepare. + * + * This API is optional but helpful when trying to publish messages from very + * performance-sensitive code. + * + * ```js + * import diagnostics_channel from 'diagnostics_channel'; + * + * if (diagnostics_channel.hasSubscribers('my-channel')) { + * // There are subscribers, prepare and publish message + * } + * ``` + * @since v15.1.0, v14.17.0 + * @param name The channel name + * @return If there are active subscribers + */ + function hasSubscribers(name: string): boolean; + /** + * This is the primary entry-point for anyone wanting to interact with a named + * channel. It produces a channel object which is optimized to reduce overhead at + * publish time as much as possible. + * + * ```js + * import diagnostics_channel from 'diagnostics_channel'; + * + * const channel = diagnostics_channel.channel('my-channel'); + * ``` + * @since v15.1.0, v14.17.0 + * @param name The channel name + * @return The named channel object + */ + function channel(name: string): Channel; + type ChannelListener = (name: string, message: unknown) => void; + /** + * The class `Channel` represents an individual named channel within the data + * pipeline. It is use to track subscribers and to publish messages when there + * are subscribers present. It exists as a separate object to avoid channel + * lookups at publish time, enabling very fast publish speeds and allowing + * for heavy use while incurring very minimal cost. Channels are created with {@link channel}, constructing a channel directly + * with `new Channel(name)` is not supported. + * @since v15.1.0, v14.17.0 + */ + class Channel { + readonly name: string; + /** + * Check if there are active subscribers to this channel. This is helpful if + * the message you want to send might be expensive to prepare. + * + * This API is optional but helpful when trying to publish messages from very + * performance-sensitive code. + * + * ```js + * import diagnostics_channel from 'diagnostics_channel'; + * + * const channel = diagnostics_channel.channel('my-channel'); + * + * if (channel.hasSubscribers) { + * // There are subscribers, prepare and publish message + * } + * ``` + * @since v15.1.0, v14.17.0 + */ + readonly hasSubscribers: boolean; + private constructor(name: string); + /** + * Register a message handler to subscribe to this channel. This message handler + * will be run synchronously whenever a message is published to the channel. Any + * errors thrown in the message handler will trigger an `'uncaughtException'`. + * + * ```js + * import diagnostics_channel from 'diagnostics_channel'; + * + * const channel = diagnostics_channel.channel('my-channel'); + * + * channel.subscribe((message, name) => { + * // Received data + * }); + * ``` + * @since v15.1.0, v14.17.0 + * @param onMessage The handler to receive channel messages + */ + subscribe(onMessage: ChannelListener): void; + /** + * Remove a message handler previously registered to this channel with `channel.subscribe(onMessage)`. + * + * ```js + * import diagnostics_channel from 'diagnostics_channel'; + * + * const channel = diagnostics_channel.channel('my-channel'); + * + * function onMessage(message, name) { + * // Received data + * } + * + * channel.subscribe(onMessage); + * + * channel.unsubscribe(onMessage); + * ``` + * @since v15.1.0, v14.17.0 + * @param onMessage The previous subscribed handler to remove + */ + unsubscribe(onMessage: ChannelListener): void; + } +} +declare module 'node:diagnostics_channel' { + export * from 'diagnostics_channel'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/dns.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/dns.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..d59f554e1c9f600684121bdf2e2e11f0da5f7f42 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/dns.d.ts" @@ -0,0 +1,659 @@ +/** + * The `dns` module enables name resolution. For example, use it to look up IP + * addresses of host names. + * + * Although named for the [Domain Name System (DNS)](https://en.wikipedia.org/wiki/Domain_Name_System), it does not always use the + * DNS protocol for lookups. {@link lookup} uses the operating system + * facilities to perform name resolution. It may not need to perform any network + * communication. To perform name resolution the way other applications on the same + * system do, use {@link lookup}. + * + * ```js + * const dns = require('dns'); + * + * dns.lookup('example.org', (err, address, family) => { + * console.log('address: %j family: IPv%s', address, family); + * }); + * // address: "93.184.216.34" family: IPv4 + * ``` + * + * All other functions in the `dns` module connect to an actual DNS server to + * perform name resolution. They will always use the network to perform DNS + * queries. These functions do not use the same set of configuration files used by {@link lookup} (e.g. `/etc/hosts`). Use these functions to always perform + * DNS queries, bypassing other name-resolution facilities. + * + * ```js + * const dns = require('dns'); + * + * dns.resolve4('archive.org', (err, addresses) => { + * if (err) throw err; + * + * console.log(`addresses: ${JSON.stringify(addresses)}`); + * + * addresses.forEach((a) => { + * dns.reverse(a, (err, hostnames) => { + * if (err) { + * throw err; + * } + * console.log(`reverse for ${a}: ${JSON.stringify(hostnames)}`); + * }); + * }); + * }); + * ``` + * + * See the `Implementation considerations section` for more information. + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/dns.js) + */ +declare module 'dns' { + import * as dnsPromises from 'node:dns/promises'; + // Supported getaddrinfo flags. + export const ADDRCONFIG: number; + export const V4MAPPED: number; + /** + * If `dns.V4MAPPED` is specified, return resolved IPv6 addresses as + * well as IPv4 mapped IPv6 addresses. + */ + export const ALL: number; + export interface LookupOptions { + family?: number | undefined; + hints?: number | undefined; + all?: boolean | undefined; + /** + * @default true + */ + verbatim?: boolean | undefined; + } + export interface LookupOneOptions extends LookupOptions { + all?: false | undefined; + } + export interface LookupAllOptions extends LookupOptions { + all: true; + } + export interface LookupAddress { + address: string; + family: number; + } + /** + * Resolves a host name (e.g. `'nodejs.org'`) into the first found A (IPv4) or + * AAAA (IPv6) record. All `option` properties are optional. If `options` is an + * integer, then it must be `4` or `6` – if `options` is not provided, then IPv4 + * and IPv6 addresses are both returned if found. + * + * With the `all` option set to `true`, the arguments for `callback` change to`(err, addresses)`, with `addresses` being an array of objects with the + * properties `address` and `family`. + * + * On error, `err` is an `Error` object, where `err.code` is the error code. + * Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when + * the host name does not exist but also when the lookup fails in other ways + * such as no available file descriptors. + * + * `dns.lookup()` does not necessarily have anything to do with the DNS protocol. + * The implementation uses an operating system facility that can associate names + * with addresses, and vice versa. This implementation can have subtle but + * important consequences on the behavior of any Node.js program. Please take some + * time to consult the `Implementation considerations section` before using`dns.lookup()`. + * + * Example usage: + * + * ```js + * const dns = require('dns'); + * const options = { + * family: 6, + * hints: dns.ADDRCONFIG | dns.V4MAPPED, + * }; + * dns.lookup('example.com', options, (err, address, family) => + * console.log('address: %j family: IPv%s', address, family)); + * // address: "2606:2800:220:1:248:1893:25c8:1946" family: IPv6 + * + * // When options.all is true, the result will be an Array. + * options.all = true; + * dns.lookup('example.com', options, (err, addresses) => + * console.log('addresses: %j', addresses)); + * // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}] + * ``` + * + * If this method is invoked as its `util.promisify()` ed version, and `all`is not set to `true`, it returns a `Promise` for an `Object` with `address` and`family` properties. + * @since v0.1.90 + */ + export function lookup(hostname: string, family: number, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void; + export function lookup(hostname: string, options: LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void; + export function lookup(hostname: string, options: LookupAllOptions, callback: (err: NodeJS.ErrnoException | null, addresses: LookupAddress[]) => void): void; + export function lookup(hostname: string, options: LookupOptions, callback: (err: NodeJS.ErrnoException | null, address: string | LookupAddress[], family: number) => void): void; + export function lookup(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void): void; + export namespace lookup { + function __promisify__(hostname: string, options: LookupAllOptions): Promise; + function __promisify__(hostname: string, options?: LookupOneOptions | number): Promise; + function __promisify__(hostname: string, options: LookupOptions): Promise; + } + /** + * Resolves the given `address` and `port` into a host name and service using + * the operating system's underlying `getnameinfo` implementation. + * + * If `address` is not a valid IP address, a `TypeError` will be thrown. + * The `port` will be coerced to a number. If it is not a legal port, a `TypeError`will be thrown. + * + * On an error, `err` is an `Error` object, where `err.code` is the error code. + * + * ```js + * const dns = require('dns'); + * dns.lookupService('127.0.0.1', 22, (err, hostname, service) => { + * console.log(hostname, service); + * // Prints: localhost ssh + * }); + * ``` + * + * If this method is invoked as its `util.promisify()` ed version, it returns a`Promise` for an `Object` with `hostname` and `service` properties. + * @since v0.11.14 + */ + export function lookupService(address: string, port: number, callback: (err: NodeJS.ErrnoException | null, hostname: string, service: string) => void): void; + export namespace lookupService { + function __promisify__( + address: string, + port: number + ): Promise<{ + hostname: string; + service: string; + }>; + } + export interface ResolveOptions { + ttl: boolean; + } + export interface ResolveWithTtlOptions extends ResolveOptions { + ttl: true; + } + export interface RecordWithTtl { + address: string; + ttl: number; + } + /** @deprecated Use `AnyARecord` or `AnyAaaaRecord` instead. */ + export type AnyRecordWithTtl = AnyARecord | AnyAaaaRecord; + export interface AnyARecord extends RecordWithTtl { + type: 'A'; + } + export interface AnyAaaaRecord extends RecordWithTtl { + type: 'AAAA'; + } + export interface CaaRecord { + critial: number; + issue?: string | undefined; + issuewild?: string | undefined; + iodef?: string | undefined; + contactemail?: string | undefined; + contactphone?: string | undefined; + } + export interface MxRecord { + priority: number; + exchange: string; + } + export interface AnyMxRecord extends MxRecord { + type: 'MX'; + } + export interface NaptrRecord { + flags: string; + service: string; + regexp: string; + replacement: string; + order: number; + preference: number; + } + export interface AnyNaptrRecord extends NaptrRecord { + type: 'NAPTR'; + } + export interface SoaRecord { + nsname: string; + hostmaster: string; + serial: number; + refresh: number; + retry: number; + expire: number; + minttl: number; + } + export interface AnySoaRecord extends SoaRecord { + type: 'SOA'; + } + export interface SrvRecord { + priority: number; + weight: number; + port: number; + name: string; + } + export interface AnySrvRecord extends SrvRecord { + type: 'SRV'; + } + export interface AnyTxtRecord { + type: 'TXT'; + entries: string[]; + } + export interface AnyNsRecord { + type: 'NS'; + value: string; + } + export interface AnyPtrRecord { + type: 'PTR'; + value: string; + } + export interface AnyCnameRecord { + type: 'CNAME'; + value: string; + } + export type AnyRecord = AnyARecord | AnyAaaaRecord | AnyCnameRecord | AnyMxRecord | AnyNaptrRecord | AnyNsRecord | AnyPtrRecord | AnySoaRecord | AnySrvRecord | AnyTxtRecord; + /** + * Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array + * of the resource records. The `callback` function has arguments`(err, records)`. When successful, `records` will be an array of resource + * records. The type and structure of individual results varies based on `rrtype`: + * + * + * + * On error, `err` is an `Error` object, where `err.code` is one of theDNS error codes. + * @since v0.1.27 + * @param hostname Host name to resolve. + * @param [rrtype='A'] Resource record type. + */ + export function resolve(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + export function resolve(hostname: string, rrtype: 'A', callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + export function resolve(hostname: string, rrtype: 'AAAA', callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + export function resolve(hostname: string, rrtype: 'ANY', callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void): void; + export function resolve(hostname: string, rrtype: 'CNAME', callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + export function resolve(hostname: string, rrtype: 'MX', callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void; + export function resolve(hostname: string, rrtype: 'NAPTR', callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void; + export function resolve(hostname: string, rrtype: 'NS', callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + export function resolve(hostname: string, rrtype: 'PTR', callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + export function resolve(hostname: string, rrtype: 'SOA', callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void): void; + export function resolve(hostname: string, rrtype: 'SRV', callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void; + export function resolve(hostname: string, rrtype: 'TXT', callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void; + export function resolve( + hostname: string, + rrtype: string, + callback: (err: NodeJS.ErrnoException | null, addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]) => void + ): void; + export namespace resolve { + function __promisify__(hostname: string, rrtype?: 'A' | 'AAAA' | 'CNAME' | 'NS' | 'PTR'): Promise; + function __promisify__(hostname: string, rrtype: 'ANY'): Promise; + function __promisify__(hostname: string, rrtype: 'MX'): Promise; + function __promisify__(hostname: string, rrtype: 'NAPTR'): Promise; + function __promisify__(hostname: string, rrtype: 'SOA'): Promise; + function __promisify__(hostname: string, rrtype: 'SRV'): Promise; + function __promisify__(hostname: string, rrtype: 'TXT'): Promise; + function __promisify__(hostname: string, rrtype: string): Promise; + } + /** + * Uses the DNS protocol to resolve a IPv4 addresses (`A` records) for the`hostname`. The `addresses` argument passed to the `callback` function + * will contain an array of IPv4 addresses (e.g.`['74.125.79.104', '74.125.79.105', '74.125.79.106']`). + * @since v0.1.16 + * @param hostname Host name to resolve. + */ + export function resolve4(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + export function resolve4(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void): void; + export function resolve4(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void): void; + export namespace resolve4 { + function __promisify__(hostname: string): Promise; + function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise; + function __promisify__(hostname: string, options?: ResolveOptions): Promise; + } + /** + * Uses the DNS protocol to resolve a IPv6 addresses (`AAAA` records) for the`hostname`. The `addresses` argument passed to the `callback` function + * will contain an array of IPv6 addresses. + * @since v0.1.16 + * @param hostname Host name to resolve. + */ + export function resolve6(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + export function resolve6(hostname: string, options: ResolveWithTtlOptions, callback: (err: NodeJS.ErrnoException | null, addresses: RecordWithTtl[]) => void): void; + export function resolve6(hostname: string, options: ResolveOptions, callback: (err: NodeJS.ErrnoException | null, addresses: string[] | RecordWithTtl[]) => void): void; + export namespace resolve6 { + function __promisify__(hostname: string): Promise; + function __promisify__(hostname: string, options: ResolveWithTtlOptions): Promise; + function __promisify__(hostname: string, options?: ResolveOptions): Promise; + } + /** + * Uses the DNS protocol to resolve `CNAME` records for the `hostname`. The`addresses` argument passed to the `callback` function + * will contain an array of canonical name records available for the `hostname`(e.g. `['bar.example.com']`). + * @since v0.3.2 + */ + export function resolveCname(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + export namespace resolveCname { + function __promisify__(hostname: string): Promise; + } + /** + * Uses the DNS protocol to resolve `CAA` records for the `hostname`. The`addresses` argument passed to the `callback` function + * will contain an array of certification authority authorization records + * available for the `hostname` (e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'}, {critical: 128, issue: 'pki.example.com'}]`). + * @since v15.0.0, v14.17.0 + */ + export function resolveCaa(hostname: string, callback: (err: NodeJS.ErrnoException | null, records: CaaRecord[]) => void): void; + export namespace resolveCaa { + function __promisify__(hostname: string): Promise; + } + /** + * Uses the DNS protocol to resolve mail exchange records (`MX` records) for the`hostname`. The `addresses` argument passed to the `callback` function will + * contain an array of objects containing both a `priority` and `exchange`property (e.g. `[{priority: 10, exchange: 'mx.example.com'}, ...]`). + * @since v0.1.27 + */ + export function resolveMx(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: MxRecord[]) => void): void; + export namespace resolveMx { + function __promisify__(hostname: string): Promise; + } + /** + * Uses the DNS protocol to resolve regular expression based records (`NAPTR`records) for the `hostname`. The `addresses` argument passed to the `callback`function will contain an array of + * objects with the following properties: + * + * * `flags` + * * `service` + * * `regexp` + * * `replacement` + * * `order` + * * `preference` + * + * ```js + * { + * flags: 's', + * service: 'SIP+D2U', + * regexp: '', + * replacement: '_sip._udp.example.com', + * order: 30, + * preference: 100 + * } + * ``` + * @since v0.9.12 + */ + export function resolveNaptr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void): void; + export namespace resolveNaptr { + function __promisify__(hostname: string): Promise; + } + /** + * Uses the DNS protocol to resolve name server records (`NS` records) for the`hostname`. The `addresses` argument passed to the `callback` function will + * contain an array of name server records available for `hostname`(e.g. `['ns1.example.com', 'ns2.example.com']`). + * @since v0.1.90 + */ + export function resolveNs(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + export namespace resolveNs { + function __promisify__(hostname: string): Promise; + } + /** + * Uses the DNS protocol to resolve pointer records (`PTR` records) for the`hostname`. The `addresses` argument passed to the `callback` function will + * be an array of strings containing the reply records. + * @since v6.0.0 + */ + export function resolvePtr(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void): void; + export namespace resolvePtr { + function __promisify__(hostname: string): Promise; + } + /** + * Uses the DNS protocol to resolve a start of authority record (`SOA` record) for + * the `hostname`. The `address` argument passed to the `callback` function will + * be an object with the following properties: + * + * * `nsname` + * * `hostmaster` + * * `serial` + * * `refresh` + * * `retry` + * * `expire` + * * `minttl` + * + * ```js + * { + * nsname: 'ns.example.com', + * hostmaster: 'root.example.com', + * serial: 2013101809, + * refresh: 10000, + * retry: 2400, + * expire: 604800, + * minttl: 3600 + * } + * ``` + * @since v0.11.10 + */ + export function resolveSoa(hostname: string, callback: (err: NodeJS.ErrnoException | null, address: SoaRecord) => void): void; + export namespace resolveSoa { + function __promisify__(hostname: string): Promise; + } + /** + * Uses the DNS protocol to resolve service records (`SRV` records) for the`hostname`. The `addresses` argument passed to the `callback` function will + * be an array of objects with the following properties: + * + * * `priority` + * * `weight` + * * `port` + * * `name` + * + * ```js + * { + * priority: 10, + * weight: 5, + * port: 21223, + * name: 'service.example.com' + * } + * ``` + * @since v0.1.27 + */ + export function resolveSrv(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: SrvRecord[]) => void): void; + export namespace resolveSrv { + function __promisify__(hostname: string): Promise; + } + /** + * Uses the DNS protocol to resolve text queries (`TXT` records) for the`hostname`. The `records` argument passed to the `callback` function is a + * two-dimensional array of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of + * one record. Depending on the use case, these could be either joined together or + * treated separately. + * @since v0.1.27 + */ + export function resolveTxt(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: string[][]) => void): void; + export namespace resolveTxt { + function __promisify__(hostname: string): Promise; + } + /** + * Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query). + * The `ret` argument passed to the `callback` function will be an array containing + * various types of records. Each object has a property `type` that indicates the + * type of the current record. And depending on the `type`, additional properties + * will be present on the object: + * + * + * + * Here is an example of the `ret` object passed to the callback: + * + * ```js + * [ { type: 'A', address: '127.0.0.1', ttl: 299 }, + * { type: 'CNAME', value: 'example.com' }, + * { type: 'MX', exchange: 'alt4.aspmx.l.example.com', priority: 50 }, + * { type: 'NS', value: 'ns1.example.com' }, + * { type: 'TXT', entries: [ 'v=spf1 include:_spf.example.com ~all' ] }, + * { type: 'SOA', + * nsname: 'ns1.example.com', + * hostmaster: 'admin.example.com', + * serial: 156696742, + * refresh: 900, + * retry: 900, + * expire: 1800, + * minttl: 60 } ] + * ``` + * + * DNS server operators may choose not to respond to `ANY`queries. It may be better to call individual methods like {@link resolve4},{@link resolveMx}, and so on. For more details, see [RFC + * 8482](https://tools.ietf.org/html/rfc8482). + */ + export function resolveAny(hostname: string, callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void): void; + export namespace resolveAny { + function __promisify__(hostname: string): Promise; + } + /** + * Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an + * array of host names. + * + * On error, `err` is an `Error` object, where `err.code` is + * one of the `DNS error codes`. + * @since v0.1.16 + */ + export function reverse(ip: string, callback: (err: NodeJS.ErrnoException | null, hostnames: string[]) => void): void; + /** + * Sets the IP address and port of servers to be used when performing DNS + * resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted + * addresses. If the port is the IANA default DNS port (53) it can be omitted. + * + * ```js + * dns.setServers([ + * '4.4.4.4', + * '[2001:4860:4860::8888]', + * '4.4.4.4:1053', + * '[2001:4860:4860::8888]:1053', + * ]); + * ``` + * + * An error will be thrown if an invalid address is provided. + * + * The `dns.setServers()` method must not be called while a DNS query is in + * progress. + * + * The {@link setServers} method affects only {@link resolve},`dns.resolve*()` and {@link reverse} (and specifically _not_ {@link lookup}). + * + * This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html). + * That is, if attempting to resolve with the first server provided results in a`NOTFOUND` error, the `resolve()` method will _not_ attempt to resolve with + * subsequent servers provided. Fallback DNS servers will only be used if the + * earlier ones time out or result in some other error. + * @since v0.11.3 + * @param servers array of `RFC 5952` formatted addresses + */ + export function setServers(servers: ReadonlyArray): void; + /** + * Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6), + * that are currently configured for DNS resolution. A string will include a port + * section if a custom port is used. + * + * ```js + * [ + * '4.4.4.4', + * '2001:4860:4860::8888', + * '4.4.4.4:1053', + * '[2001:4860:4860::8888]:1053', + * ] + * ``` + * @since v0.11.3 + */ + export function getServers(): string[]; + /** + * Set the default value of `verbatim` in {@link lookup} and `dnsPromises.lookup()`. The value could be: + * + * * `ipv4first`: sets default `verbatim` `false`. + * * `verbatim`: sets default `verbatim` `true`. + * + * The default is `ipv4first` and {@link setDefaultResultOrder} have higher + * priority than `--dns-result-order`. When using `worker threads`,{@link setDefaultResultOrder} from the main thread won't affect the default + * dns orders in workers. + * @since v16.4.0, v14.18.0 + * @param order must be `'ipv4first'` or `'verbatim'`. + */ + export function setDefaultResultOrder(order: 'ipv4first' | 'verbatim'): void; + // Error codes + export const NODATA: string; + export const FORMERR: string; + export const SERVFAIL: string; + export const NOTFOUND: string; + export const NOTIMP: string; + export const REFUSED: string; + export const BADQUERY: string; + export const BADNAME: string; + export const BADFAMILY: string; + export const BADRESP: string; + export const CONNREFUSED: string; + export const TIMEOUT: string; + export const EOF: string; + export const FILE: string; + export const NOMEM: string; + export const DESTRUCTION: string; + export const BADSTR: string; + export const BADFLAGS: string; + export const NONAME: string; + export const BADHINTS: string; + export const NOTINITIALIZED: string; + export const LOADIPHLPAPI: string; + export const ADDRGETNETWORKPARAMS: string; + export const CANCELLED: string; + export interface ResolverOptions { + timeout?: number | undefined; + /** + * @default 4 + */ + tries?: number; + } + /** + * An independent resolver for DNS requests. + * + * Creating a new resolver uses the default server settings. Setting + * the servers used for a resolver using `resolver.setServers()` does not affect + * other resolvers: + * + * ```js + * const { Resolver } = require('dns'); + * const resolver = new Resolver(); + * resolver.setServers(['4.4.4.4']); + * + * // This request will use the server at 4.4.4.4, independent of global settings. + * resolver.resolve4('example.org', (err, addresses) => { + * // ... + * }); + * ``` + * + * The following methods from the `dns` module are available: + * + * * `resolver.getServers()` + * * `resolver.resolve()` + * * `resolver.resolve4()` + * * `resolver.resolve6()` + * * `resolver.resolveAny()` + * * `resolver.resolveCaa()` + * * `resolver.resolveCname()` + * * `resolver.resolveMx()` + * * `resolver.resolveNaptr()` + * * `resolver.resolveNs()` + * * `resolver.resolvePtr()` + * * `resolver.resolveSoa()` + * * `resolver.resolveSrv()` + * * `resolver.resolveTxt()` + * * `resolver.reverse()` + * * `resolver.setServers()` + * @since v8.3.0 + */ + export class Resolver { + constructor(options?: ResolverOptions); + /** + * Cancel all outstanding DNS queries made by this resolver. The corresponding + * callbacks will be called with an error with code `ECANCELLED`. + * @since v8.3.0 + */ + cancel(): void; + getServers: typeof getServers; + resolve: typeof resolve; + resolve4: typeof resolve4; + resolve6: typeof resolve6; + resolveAny: typeof resolveAny; + resolveCname: typeof resolveCname; + resolveMx: typeof resolveMx; + resolveNaptr: typeof resolveNaptr; + resolveNs: typeof resolveNs; + resolvePtr: typeof resolvePtr; + resolveSoa: typeof resolveSoa; + resolveSrv: typeof resolveSrv; + resolveTxt: typeof resolveTxt; + reverse: typeof reverse; + /** + * The resolver instance will send its requests from the specified IP address. + * This allows programs to specify outbound interfaces when used on multi-homed + * systems. + * + * If a v4 or v6 address is not specified, it is set to the default, and the + * operating system will choose a local address automatically. + * + * The resolver will use the v4 local address when making requests to IPv4 DNS + * servers, and the v6 local address when making requests to IPv6 DNS servers. + * The `rrtype` of resolution requests has no impact on the local address used. + * @since v15.1.0, v14.17.0 + * @param [ipv4='0.0.0.0'] A string representation of an IPv4 address. + * @param [ipv6='::0'] A string representation of an IPv6 address. + */ + setLocalAddress(ipv4?: string, ipv6?: string): void; + setServers: typeof setServers; + } + export { dnsPromises as promises }; +} +declare module 'node:dns' { + export * from 'dns'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/dns/promises.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/dns/promises.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..165b62bcf0a9ab4c3dee3ce3a6f6420d71a8be52 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/dns/promises.d.ts" @@ -0,0 +1,370 @@ +/** + * The `dns.promises` API provides an alternative set of asynchronous DNS methods + * that return `Promise` objects rather than using callbacks. The API is accessible + * via `require('dns').promises` or `require('dns/promises')`. + * @since v10.6.0 + */ +declare module 'dns/promises' { + import { + LookupAddress, + LookupOneOptions, + LookupAllOptions, + LookupOptions, + AnyRecord, + CaaRecord, + MxRecord, + NaptrRecord, + SoaRecord, + SrvRecord, + ResolveWithTtlOptions, + RecordWithTtl, + ResolveOptions, + ResolverOptions, + } from 'node:dns'; + /** + * Returns an array of IP address strings, formatted according to [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6), + * that are currently configured for DNS resolution. A string will include a port + * section if a custom port is used. + * + * ```js + * [ + * '4.4.4.4', + * '2001:4860:4860::8888', + * '4.4.4.4:1053', + * '[2001:4860:4860::8888]:1053', + * ] + * ``` + * @since v10.6.0 + */ + function getServers(): string[]; + /** + * Resolves a host name (e.g. `'nodejs.org'`) into the first found A (IPv4) or + * AAAA (IPv6) record. All `option` properties are optional. If `options` is an + * integer, then it must be `4` or `6` – if `options` is not provided, then IPv4 + * and IPv6 addresses are both returned if found. + * + * With the `all` option set to `true`, the `Promise` is resolved with `addresses`being an array of objects with the properties `address` and `family`. + * + * On error, the `Promise` is rejected with an `Error` object, where `err.code`is the error code. + * Keep in mind that `err.code` will be set to `'ENOTFOUND'` not only when + * the host name does not exist but also when the lookup fails in other ways + * such as no available file descriptors. + * + * `dnsPromises.lookup()` does not necessarily have anything to do with the DNS + * protocol. The implementation uses an operating system facility that can + * associate names with addresses, and vice versa. This implementation can have + * subtle but important consequences on the behavior of any Node.js program. Please + * take some time to consult the `Implementation considerations section` before + * using `dnsPromises.lookup()`. + * + * Example usage: + * + * ```js + * const dns = require('dns'); + * const dnsPromises = dns.promises; + * const options = { + * family: 6, + * hints: dns.ADDRCONFIG | dns.V4MAPPED, + * }; + * + * dnsPromises.lookup('example.com', options).then((result) => { + * console.log('address: %j family: IPv%s', result.address, result.family); + * // address: "2606:2800:220:1:248:1893:25c8:1946" family: IPv6 + * }); + * + * // When options.all is true, the result will be an Array. + * options.all = true; + * dnsPromises.lookup('example.com', options).then((result) => { + * console.log('addresses: %j', result); + * // addresses: [{"address":"2606:2800:220:1:248:1893:25c8:1946","family":6}] + * }); + * ``` + * @since v10.6.0 + */ + function lookup(hostname: string, family: number): Promise; + function lookup(hostname: string, options: LookupOneOptions): Promise; + function lookup(hostname: string, options: LookupAllOptions): Promise; + function lookup(hostname: string, options: LookupOptions): Promise; + function lookup(hostname: string): Promise; + /** + * Resolves the given `address` and `port` into a host name and service using + * the operating system's underlying `getnameinfo` implementation. + * + * If `address` is not a valid IP address, a `TypeError` will be thrown. + * The `port` will be coerced to a number. If it is not a legal port, a `TypeError`will be thrown. + * + * On error, the `Promise` is rejected with an `Error` object, where `err.code`is the error code. + * + * ```js + * const dnsPromises = require('dns').promises; + * dnsPromises.lookupService('127.0.0.1', 22).then((result) => { + * console.log(result.hostname, result.service); + * // Prints: localhost ssh + * }); + * ``` + * @since v10.6.0 + */ + function lookupService( + address: string, + port: number + ): Promise<{ + hostname: string; + service: string; + }>; + /** + * Uses the DNS protocol to resolve a host name (e.g. `'nodejs.org'`) into an array + * of the resource records. When successful, the `Promise` is resolved with an + * array of resource records. The type and structure of individual results vary + * based on `rrtype`: + * + * + * + * On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the DNS error codes. + * @since v10.6.0 + * @param hostname Host name to resolve. + * @param [rrtype='A'] Resource record type. + */ + function resolve(hostname: string): Promise; + function resolve(hostname: string, rrtype: 'A'): Promise; + function resolve(hostname: string, rrtype: 'AAAA'): Promise; + function resolve(hostname: string, rrtype: 'ANY'): Promise; + function resolve(hostname: string, rrtype: 'CAA'): Promise; + function resolve(hostname: string, rrtype: 'CNAME'): Promise; + function resolve(hostname: string, rrtype: 'MX'): Promise; + function resolve(hostname: string, rrtype: 'NAPTR'): Promise; + function resolve(hostname: string, rrtype: 'NS'): Promise; + function resolve(hostname: string, rrtype: 'PTR'): Promise; + function resolve(hostname: string, rrtype: 'SOA'): Promise; + function resolve(hostname: string, rrtype: 'SRV'): Promise; + function resolve(hostname: string, rrtype: 'TXT'): Promise; + function resolve(hostname: string, rrtype: string): Promise; + /** + * Uses the DNS protocol to resolve IPv4 addresses (`A` records) for the`hostname`. On success, the `Promise` is resolved with an array of IPv4 + * addresses (e.g. `['74.125.79.104', '74.125.79.105', '74.125.79.106']`). + * @since v10.6.0 + * @param hostname Host name to resolve. + */ + function resolve4(hostname: string): Promise; + function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise; + function resolve4(hostname: string, options: ResolveOptions): Promise; + /** + * Uses the DNS protocol to resolve IPv6 addresses (`AAAA` records) for the`hostname`. On success, the `Promise` is resolved with an array of IPv6 + * addresses. + * @since v10.6.0 + * @param hostname Host name to resolve. + */ + function resolve6(hostname: string): Promise; + function resolve6(hostname: string, options: ResolveWithTtlOptions): Promise; + function resolve6(hostname: string, options: ResolveOptions): Promise; + /** + * Uses the DNS protocol to resolve all records (also known as `ANY` or `*` query). + * On success, the `Promise` is resolved with an array containing various types of + * records. Each object has a property `type` that indicates the type of the + * current record. And depending on the `type`, additional properties will be + * present on the object: + * + * + * + * Here is an example of the result object: + * + * ```js + * [ { type: 'A', address: '127.0.0.1', ttl: 299 }, + * { type: 'CNAME', value: 'example.com' }, + * { type: 'MX', exchange: 'alt4.aspmx.l.example.com', priority: 50 }, + * { type: 'NS', value: 'ns1.example.com' }, + * { type: 'TXT', entries: [ 'v=spf1 include:_spf.example.com ~all' ] }, + * { type: 'SOA', + * nsname: 'ns1.example.com', + * hostmaster: 'admin.example.com', + * serial: 156696742, + * refresh: 900, + * retry: 900, + * expire: 1800, + * minttl: 60 } ] + * ``` + * @since v10.6.0 + */ + function resolveAny(hostname: string): Promise; + /** + * Uses the DNS protocol to resolve `CAA` records for the `hostname`. On success, + * the `Promise` is resolved with an array of objects containing available + * certification authority authorization records available for the `hostname`(e.g. `[{critical: 0, iodef: 'mailto:pki@example.com'},{critical: 128, issue: 'pki.example.com'}]`). + * @since v15.0.0, v14.17.0 + */ + function resolveCaa(hostname: string): Promise; + /** + * Uses the DNS protocol to resolve `CNAME` records for the `hostname`. On success, + * the `Promise` is resolved with an array of canonical name records available for + * the `hostname` (e.g. `['bar.example.com']`). + * @since v10.6.0 + */ + function resolveCname(hostname: string): Promise; + /** + * Uses the DNS protocol to resolve mail exchange records (`MX` records) for the`hostname`. On success, the `Promise` is resolved with an array of objects + * containing both a `priority` and `exchange` property (e.g.`[{priority: 10, exchange: 'mx.example.com'}, ...]`). + * @since v10.6.0 + */ + function resolveMx(hostname: string): Promise; + /** + * Uses the DNS protocol to resolve regular expression based records (`NAPTR`records) for the `hostname`. On success, the `Promise` is resolved with an array + * of objects with the following properties: + * + * * `flags` + * * `service` + * * `regexp` + * * `replacement` + * * `order` + * * `preference` + * + * ```js + * { + * flags: 's', + * service: 'SIP+D2U', + * regexp: '', + * replacement: '_sip._udp.example.com', + * order: 30, + * preference: 100 + * } + * ``` + * @since v10.6.0 + */ + function resolveNaptr(hostname: string): Promise; + /** + * Uses the DNS protocol to resolve name server records (`NS` records) for the`hostname`. On success, the `Promise` is resolved with an array of name server + * records available for `hostname` (e.g.`['ns1.example.com', 'ns2.example.com']`). + * @since v10.6.0 + */ + function resolveNs(hostname: string): Promise; + /** + * Uses the DNS protocol to resolve pointer records (`PTR` records) for the`hostname`. On success, the `Promise` is resolved with an array of strings + * containing the reply records. + * @since v10.6.0 + */ + function resolvePtr(hostname: string): Promise; + /** + * Uses the DNS protocol to resolve a start of authority record (`SOA` record) for + * the `hostname`. On success, the `Promise` is resolved with an object with the + * following properties: + * + * * `nsname` + * * `hostmaster` + * * `serial` + * * `refresh` + * * `retry` + * * `expire` + * * `minttl` + * + * ```js + * { + * nsname: 'ns.example.com', + * hostmaster: 'root.example.com', + * serial: 2013101809, + * refresh: 10000, + * retry: 2400, + * expire: 604800, + * minttl: 3600 + * } + * ``` + * @since v10.6.0 + */ + function resolveSoa(hostname: string): Promise; + /** + * Uses the DNS protocol to resolve service records (`SRV` records) for the`hostname`. On success, the `Promise` is resolved with an array of objects with + * the following properties: + * + * * `priority` + * * `weight` + * * `port` + * * `name` + * + * ```js + * { + * priority: 10, + * weight: 5, + * port: 21223, + * name: 'service.example.com' + * } + * ``` + * @since v10.6.0 + */ + function resolveSrv(hostname: string): Promise; + /** + * Uses the DNS protocol to resolve text queries (`TXT` records) for the`hostname`. On success, the `Promise` is resolved with a two-dimensional array + * of the text records available for `hostname` (e.g.`[ ['v=spf1 ip4:0.0.0.0 ', '~all' ] ]`). Each sub-array contains TXT chunks of + * one record. Depending on the use case, these could be either joined together or + * treated separately. + * @since v10.6.0 + */ + function resolveTxt(hostname: string): Promise; + /** + * Performs a reverse DNS query that resolves an IPv4 or IPv6 address to an + * array of host names. + * + * On error, the `Promise` is rejected with an `Error` object, where `err.code`is one of the DNS error codes. + * @since v10.6.0 + */ + function reverse(ip: string): Promise; + /** + * Sets the IP address and port of servers to be used when performing DNS + * resolution. The `servers` argument is an array of [RFC 5952](https://tools.ietf.org/html/rfc5952#section-6) formatted + * addresses. If the port is the IANA default DNS port (53) it can be omitted. + * + * ```js + * dnsPromises.setServers([ + * '4.4.4.4', + * '[2001:4860:4860::8888]', + * '4.4.4.4:1053', + * '[2001:4860:4860::8888]:1053', + * ]); + * ``` + * + * An error will be thrown if an invalid address is provided. + * + * The `dnsPromises.setServers()` method must not be called while a DNS query is in + * progress. + * + * This method works much like [resolve.conf](https://man7.org/linux/man-pages/man5/resolv.conf.5.html). + * That is, if attempting to resolve with the first server provided results in a`NOTFOUND` error, the `resolve()` method will _not_ attempt to resolve with + * subsequent servers provided. Fallback DNS servers will only be used if the + * earlier ones time out or result in some other error. + * @since v10.6.0 + * @param servers array of `RFC 5952` formatted addresses + */ + function setServers(servers: ReadonlyArray): void; + /** + * Set the default value of `verbatim` in `dns.lookup()` and `dnsPromises.lookup()`. The value could be: + * + * * `ipv4first`: sets default `verbatim` `false`. + * * `verbatim`: sets default `verbatim` `true`. + * + * The default is `ipv4first` and `dnsPromises.setDefaultResultOrder()` have + * higher priority than `--dns-result-order`. When using `worker threads`,`dnsPromises.setDefaultResultOrder()` from the main thread won't affect the + * default dns orders in workers. + * @since v16.4.0, v14.18.0 + * @param order must be `'ipv4first'` or `'verbatim'`. + */ + function setDefaultResultOrder(order: 'ipv4first' | 'verbatim'): void; + class Resolver { + constructor(options?: ResolverOptions); + cancel(): void; + getServers: typeof getServers; + resolve: typeof resolve; + resolve4: typeof resolve4; + resolve6: typeof resolve6; + resolveAny: typeof resolveAny; + resolveCname: typeof resolveCname; + resolveMx: typeof resolveMx; + resolveNaptr: typeof resolveNaptr; + resolveNs: typeof resolveNs; + resolvePtr: typeof resolvePtr; + resolveSoa: typeof resolveSoa; + resolveSrv: typeof resolveSrv; + resolveTxt: typeof resolveTxt; + reverse: typeof reverse; + setLocalAddress(ipv4?: string, ipv6?: string): void; + setServers: typeof setServers; + } +} +declare module 'node:dns/promises' { + export * from 'dns/promises'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/domain.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/domain.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..f8dd26ebee60ad08450621f12535c83542348753 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/domain.d.ts" @@ -0,0 +1,169 @@ +/** + * **This module is pending deprecation.** Once a replacement API has been + * finalized, this module will be fully deprecated. Most developers should**not** have cause to use this module. Users who absolutely must have + * the functionality that domains provide may rely on it for the time being + * but should expect to have to migrate to a different solution + * in the future. + * + * Domains provide a way to handle multiple different IO operations as a + * single group. If any of the event emitters or callbacks registered to a + * domain emit an `'error'` event, or throw an error, then the domain object + * will be notified, rather than losing the context of the error in the`process.on('uncaughtException')` handler, or causing the program to + * exit immediately with an error code. + * @deprecated Since v1.4.2 - Deprecated + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/domain.js) + */ +declare module 'domain' { + import EventEmitter = require('node:events'); + /** + * The `Domain` class encapsulates the functionality of routing errors and + * uncaught exceptions to the active `Domain` object. + * + * To handle the errors that it catches, listen to its `'error'` event. + */ + class Domain extends EventEmitter { + /** + * An array of timers and event emitters that have been explicitly added + * to the domain. + */ + members: Array; + /** + * The `enter()` method is plumbing used by the `run()`, `bind()`, and`intercept()` methods to set the active domain. It sets `domain.active` and`process.domain` to the domain, and implicitly + * pushes the domain onto the domain + * stack managed by the domain module (see {@link exit} for details on the + * domain stack). The call to `enter()` delimits the beginning of a chain of + * asynchronous calls and I/O operations bound to a domain. + * + * Calling `enter()` changes only the active domain, and does not alter the domain + * itself. `enter()` and `exit()` can be called an arbitrary number of times on a + * single domain. + */ + enter(): void; + /** + * The `exit()` method exits the current domain, popping it off the domain stack. + * Any time execution is going to switch to the context of a different chain of + * asynchronous calls, it's important to ensure that the current domain is exited. + * The call to `exit()` delimits either the end of or an interruption to the chain + * of asynchronous calls and I/O operations bound to a domain. + * + * If there are multiple, nested domains bound to the current execution context,`exit()` will exit any domains nested within this domain. + * + * Calling `exit()` changes only the active domain, and does not alter the domain + * itself. `enter()` and `exit()` can be called an arbitrary number of times on a + * single domain. + */ + exit(): void; + /** + * Run the supplied function in the context of the domain, implicitly + * binding all event emitters, timers, and lowlevel requests that are + * created in that context. Optionally, arguments can be passed to + * the function. + * + * This is the most basic way to use a domain. + * + * ```js + * const domain = require('domain'); + * const fs = require('fs'); + * const d = domain.create(); + * d.on('error', (er) => { + * console.error('Caught error!', er); + * }); + * d.run(() => { + * process.nextTick(() => { + * setTimeout(() => { // Simulating some various async stuff + * fs.open('non-existent file', 'r', (er, fd) => { + * if (er) throw er; + * // proceed... + * }); + * }, 100); + * }); + * }); + * ``` + * + * In this example, the `d.on('error')` handler will be triggered, rather + * than crashing the program. + */ + run(fn: (...args: any[]) => T, ...args: any[]): T; + /** + * Explicitly adds an emitter to the domain. If any event handlers called by + * the emitter throw an error, or if the emitter emits an `'error'` event, it + * will be routed to the domain's `'error'` event, just like with implicit + * binding. + * + * This also works with timers that are returned from `setInterval()` and `setTimeout()`. If their callback function throws, it will be caught by + * the domain `'error'` handler. + * + * If the Timer or `EventEmitter` was already bound to a domain, it is removed + * from that one, and bound to this one instead. + * @param emitter emitter or timer to be added to the domain + */ + add(emitter: EventEmitter | NodeJS.Timer): void; + /** + * The opposite of {@link add}. Removes domain handling from the + * specified emitter. + * @param emitter emitter or timer to be removed from the domain + */ + remove(emitter: EventEmitter | NodeJS.Timer): void; + /** + * The returned function will be a wrapper around the supplied callback + * function. When the returned function is called, any errors that are + * thrown will be routed to the domain's `'error'` event. + * + * ```js + * const d = domain.create(); + * + * function readSomeFile(filename, cb) { + * fs.readFile(filename, 'utf8', d.bind((er, data) => { + * // If this throws, it will also be passed to the domain. + * return cb(er, data ? JSON.parse(data) : null); + * })); + * } + * + * d.on('error', (er) => { + * // An error occurred somewhere. If we throw it now, it will crash the program + * // with the normal line number and stack message. + * }); + * ``` + * @param callback The callback function + * @return The bound function + */ + bind(callback: T): T; + /** + * This method is almost identical to {@link bind}. However, in + * addition to catching thrown errors, it will also intercept `Error` objects sent as the first argument to the function. + * + * In this way, the common `if (err) return callback(err);` pattern can be replaced + * with a single error handler in a single place. + * + * ```js + * const d = domain.create(); + * + * function readSomeFile(filename, cb) { + * fs.readFile(filename, 'utf8', d.intercept((data) => { + * // Note, the first argument is never passed to the + * // callback since it is assumed to be the 'Error' argument + * // and thus intercepted by the domain. + * + * // If this throws, it will also be passed to the domain + * // so the error-handling logic can be moved to the 'error' + * // event on the domain instead of being repeated throughout + * // the program. + * return cb(null, JSON.parse(data)); + * })); + * } + * + * d.on('error', (er) => { + * // An error occurred somewhere. If we throw it now, it will crash the program + * // with the normal line number and stack message. + * }); + * ``` + * @param callback The callback function + * @return The intercepted function + */ + intercept(callback: T): T; + } + function create(): Domain; +} +declare module 'node:domain' { + export * from 'domain'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/events.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/events.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..c1cef439f84251642c4bdb8edf640b01dc643357 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/events.d.ts" @@ -0,0 +1,651 @@ +/** + * Much of the Node.js core API is built around an idiomatic asynchronous + * event-driven architecture in which certain kinds of objects (called "emitters") + * emit named events that cause `Function` objects ("listeners") to be called. + * + * For instance: a `net.Server` object emits an event each time a peer + * connects to it; a `fs.ReadStream` emits an event when the file is opened; + * a `stream` emits an event whenever data is available to be read. + * + * All objects that emit events are instances of the `EventEmitter` class. These + * objects expose an `eventEmitter.on()` function that allows one or more + * functions to be attached to named events emitted by the object. Typically, + * event names are camel-cased strings but any valid JavaScript property key + * can be used. + * + * When the `EventEmitter` object emits an event, all of the functions attached + * to that specific event are called _synchronously_. Any values returned by the + * called listeners are _ignored_ and discarded. + * + * The following example shows a simple `EventEmitter` instance with a single + * listener. The `eventEmitter.on()` method is used to register listeners, while + * the `eventEmitter.emit()` method is used to trigger the event. + * + * ```js + * const EventEmitter = require('events'); + * + * class MyEmitter extends EventEmitter {} + * + * const myEmitter = new MyEmitter(); + * myEmitter.on('event', () => { + * console.log('an event occurred!'); + * }); + * myEmitter.emit('event'); + * ``` + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/events.js) + */ +declare module 'events' { + interface EventEmitterOptions { + /** + * Enables automatic capturing of promise rejection. + */ + captureRejections?: boolean | undefined; + } + interface NodeEventTarget { + once(eventName: string | symbol, listener: (...args: any[]) => void): this; + } + interface DOMEventTarget { + addEventListener( + eventName: string, + listener: (...args: any[]) => void, + opts?: { + once: boolean; + }, + ): any; + } + interface StaticEventEmitterOptions { + signal?: AbortSignal | undefined; + } + interface EventEmitter extends NodeJS.EventEmitter {} + /** + * The `EventEmitter` class is defined and exposed by the `events` module: + * + * ```js + * const EventEmitter = require('events'); + * ``` + * + * All `EventEmitter`s emit the event `'newListener'` when new listeners are + * added and `'removeListener'` when existing listeners are removed. + * + * It supports the following option: + * @since v0.1.26 + */ + class EventEmitter { + constructor(options?: EventEmitterOptions); + /** + * Creates a `Promise` that is fulfilled when the `EventEmitter` emits the given + * event or that is rejected if the `EventEmitter` emits `'error'` while waiting. + * The `Promise` will resolve with an array of all the arguments emitted to the + * given event. + * + * This method is intentionally generic and works with the web platform [EventTarget](https://dom.spec.whatwg.org/#interface-eventtarget) interface, which has no special`'error'` event + * semantics and does not listen to the `'error'` event. + * + * ```js + * const { once, EventEmitter } = require('events'); + * + * async function run() { + * const ee = new EventEmitter(); + * + * process.nextTick(() => { + * ee.emit('myevent', 42); + * }); + * + * const [value] = await once(ee, 'myevent'); + * console.log(value); + * + * const err = new Error('kaboom'); + * process.nextTick(() => { + * ee.emit('error', err); + * }); + * + * try { + * await once(ee, 'myevent'); + * } catch (err) { + * console.log('error happened', err); + * } + * } + * + * run(); + * ``` + * + * The special handling of the `'error'` event is only used when `events.once()`is used to wait for another event. If `events.once()` is used to wait for the + * '`error'` event itself, then it is treated as any other kind of event without + * special handling: + * + * ```js + * const { EventEmitter, once } = require('events'); + * + * const ee = new EventEmitter(); + * + * once(ee, 'error') + * .then(([err]) => console.log('ok', err.message)) + * .catch((err) => console.log('error', err.message)); + * + * ee.emit('error', new Error('boom')); + * + * // Prints: ok boom + * ``` + * + * An `AbortSignal` can be used to cancel waiting for the event: + * + * ```js + * const { EventEmitter, once } = require('events'); + * + * const ee = new EventEmitter(); + * const ac = new AbortController(); + * + * async function foo(emitter, event, signal) { + * try { + * await once(emitter, event, { signal }); + * console.log('event emitted!'); + * } catch (error) { + * if (error.name === 'AbortError') { + * console.error('Waiting for the event was canceled!'); + * } else { + * console.error('There was an error', error.message); + * } + * } + * } + * + * foo(ee, 'foo', ac.signal); + * ac.abort(); // Abort waiting for the event + * ee.emit('foo'); // Prints: Waiting for the event was canceled! + * ``` + * @since v11.13.0, v10.16.0 + */ + static once( + emitter: NodeEventTarget, + eventName: string | symbol, + options?: StaticEventEmitterOptions, + ): Promise; + static once(emitter: DOMEventTarget, eventName: string, options?: StaticEventEmitterOptions): Promise; + /** + * ```js + * const { on, EventEmitter } = require('events'); + * + * (async () => { + * const ee = new EventEmitter(); + * + * // Emit later on + * process.nextTick(() => { + * ee.emit('foo', 'bar'); + * ee.emit('foo', 42); + * }); + * + * for await (const event of on(ee, 'foo')) { + * // The execution of this inner block is synchronous and it + * // processes one event at a time (even with await). Do not use + * // if concurrent execution is required. + * console.log(event); // prints ['bar'] [42] + * } + * // Unreachable here + * })(); + * ``` + * + * Returns an `AsyncIterator` that iterates `eventName` events. It will throw + * if the `EventEmitter` emits `'error'`. It removes all listeners when + * exiting the loop. The `value` returned by each iteration is an array + * composed of the emitted event arguments. + * + * An `AbortSignal` can be used to cancel waiting on events: + * + * ```js + * const { on, EventEmitter } = require('events'); + * const ac = new AbortController(); + * + * (async () => { + * const ee = new EventEmitter(); + * + * // Emit later on + * process.nextTick(() => { + * ee.emit('foo', 'bar'); + * ee.emit('foo', 42); + * }); + * + * for await (const event of on(ee, 'foo', { signal: ac.signal })) { + * // The execution of this inner block is synchronous and it + * // processes one event at a time (even with await). Do not use + * // if concurrent execution is required. + * console.log(event); // prints ['bar'] [42] + * } + * // Unreachable here + * })(); + * + * process.nextTick(() => ac.abort()); + * ``` + * @since v13.6.0, v12.16.0 + * @param eventName The name of the event being listened for + * @return that iterates `eventName` events emitted by the `emitter` + */ + static on( + emitter: NodeJS.EventEmitter, + eventName: string, + options?: StaticEventEmitterOptions, + ): AsyncIterableIterator; + /** + * A class method that returns the number of listeners for the given `eventName`registered on the given `emitter`. + * + * ```js + * const { EventEmitter, listenerCount } = require('events'); + * const myEmitter = new EventEmitter(); + * myEmitter.on('event', () => {}); + * myEmitter.on('event', () => {}); + * console.log(listenerCount(myEmitter, 'event')); + * // Prints: 2 + * ``` + * @since v0.9.12 + * @deprecated Since v3.2.0 - Use `listenerCount` instead. + * @param emitter The emitter to query + * @param eventName The event name + */ + static listenerCount(emitter: NodeJS.EventEmitter, eventName: string | symbol): number; + /** + * Returns a copy of the array of listeners for the event named `eventName`. + * + * For `EventEmitter`s this behaves exactly the same as calling `.listeners` on + * the emitter. + * + * For `EventTarget`s this is the only way to get the event listeners for the + * event target. This is useful for debugging and diagnostic purposes. + * + * ```js + * const { getEventListeners, EventEmitter } = require('events'); + * + * { + * const ee = new EventEmitter(); + * const listener = () => console.log('Events are fun'); + * ee.on('foo', listener); + * getEventListeners(ee, 'foo'); // [listener] + * } + * { + * const et = new EventTarget(); + * const listener = () => console.log('Events are fun'); + * et.addEventListener('foo', listener); + * getEventListeners(et, 'foo'); // [listener] + * } + * ``` + * @since v15.2.0, v14.17.0 + */ + static getEventListeners(emitter: DOMEventTarget | NodeJS.EventEmitter, name: string | symbol): Function[]; + /** + * By default `EventEmitter`s will print a warning if more than `10` listeners are + * added for a particular event. This is a useful default that helps finding + * memory leaks. The `EventEmitter.setMaxListeners()` method allows the default limit to be + * modified (if eventTargets is empty) or modify the limit specified in every `EventTarget` | `EventEmitter` passed as arguments. + * The value can be set to`Infinity` (or `0`) to indicate an unlimited number of listeners. + * + * ```js + * EventEmitter.setMaxListeners(20); + * // Equivalent to + * EventEmitter.defaultMaxListeners = 20; + * + * const eventTarget = new EventTarget(); + * // Only way to increase limit for `EventTarget` instances + * // as these doesn't expose its own `setMaxListeners` method + * EventEmitter.setMaxListeners(20, eventTarget); + * ``` + * @since v15.3.0, v14.17.0 + */ + static setMaxListeners(n?: number, ...eventTargets: Array): void; + /** + * This symbol shall be used to install a listener for only monitoring `'error'` + * events. Listeners installed using this symbol are called before the regular + * `'error'` listeners are called. + * + * Installing a listener using this symbol does not change the behavior once an + * `'error'` event is emitted, therefore the process will still crash if no + * regular `'error'` listener is installed. + */ + static readonly errorMonitor: unique symbol; + static readonly captureRejectionSymbol: unique symbol; + /** + * Sets or gets the default captureRejection value for all emitters. + */ + // TODO: These should be described using static getter/setter pairs: + static captureRejections: boolean; + static defaultMaxListeners: number; + } + import internal = require('node:events'); + namespace EventEmitter { + // Should just be `export { EventEmitter }`, but that doesn't work in TypeScript 3.4 + export { internal as EventEmitter }; + export interface Abortable { + /** + * When provided the corresponding `AbortController` can be used to cancel an asynchronous action. + */ + signal?: AbortSignal | undefined; + } + } + global { + namespace NodeJS { + interface EventEmitter { + /** + * Alias for `emitter.on(eventName, listener)`. + * @since v0.1.26 + */ + addListener(eventName: string | symbol, listener: (...args: any[]) => void): this; + /** + * Adds the `listener` function to the end of the listeners array for the + * event named `eventName`. No checks are made to see if the `listener` has + * already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple + * times. + * + * ```js + * server.on('connection', (stream) => { + * console.log('someone connected!'); + * }); + * ``` + * + * Returns a reference to the `EventEmitter`, so that calls can be chained. + * + * By default, event listeners are invoked in the order they are added. The`emitter.prependListener()` method can be used as an alternative to add the + * event listener to the beginning of the listeners array. + * + * ```js + * const myEE = new EventEmitter(); + * myEE.on('foo', () => console.log('a')); + * myEE.prependListener('foo', () => console.log('b')); + * myEE.emit('foo'); + * // Prints: + * // b + * // a + * ``` + * @since v0.1.101 + * @param eventName The name of the event. + * @param listener The callback function + */ + on(eventName: string | symbol, listener: (...args: any[]) => void): this; + /** + * Adds a **one-time**`listener` function for the event named `eventName`. The + * next time `eventName` is triggered, this listener is removed and then invoked. + * + * ```js + * server.once('connection', (stream) => { + * console.log('Ah, we have our first user!'); + * }); + * ``` + * + * Returns a reference to the `EventEmitter`, so that calls can be chained. + * + * By default, event listeners are invoked in the order they are added. The`emitter.prependOnceListener()` method can be used as an alternative to add the + * event listener to the beginning of the listeners array. + * + * ```js + * const myEE = new EventEmitter(); + * myEE.once('foo', () => console.log('a')); + * myEE.prependOnceListener('foo', () => console.log('b')); + * myEE.emit('foo'); + * // Prints: + * // b + * // a + * ``` + * @since v0.3.0 + * @param eventName The name of the event. + * @param listener The callback function + */ + once(eventName: string | symbol, listener: (...args: any[]) => void): this; + /** + * Removes the specified `listener` from the listener array for the event named`eventName`. + * + * ```js + * const callback = (stream) => { + * console.log('someone connected!'); + * }; + * server.on('connection', callback); + * // ... + * server.removeListener('connection', callback); + * ``` + * + * `removeListener()` will remove, at most, one instance of a listener from the + * listener array. If any single listener has been added multiple times to the + * listener array for the specified `eventName`, then `removeListener()` must be + * called multiple times to remove each instance. + * + * Once an event is emitted, all listeners attached to it at the + * time of emitting are called in order. This implies that any`removeListener()` or `removeAllListeners()` calls _after_ emitting and_before_ the last listener finishes execution will + * not remove them from`emit()` in progress. Subsequent events behave as expected. + * + * ```js + * const myEmitter = new MyEmitter(); + * + * const callbackA = () => { + * console.log('A'); + * myEmitter.removeListener('event', callbackB); + * }; + * + * const callbackB = () => { + * console.log('B'); + * }; + * + * myEmitter.on('event', callbackA); + * + * myEmitter.on('event', callbackB); + * + * // callbackA removes listener callbackB but it will still be called. + * // Internal listener array at time of emit [callbackA, callbackB] + * myEmitter.emit('event'); + * // Prints: + * // A + * // B + * + * // callbackB is now removed. + * // Internal listener array [callbackA] + * myEmitter.emit('event'); + * // Prints: + * // A + * ``` + * + * Because listeners are managed using an internal array, calling this will + * change the position indices of any listener registered _after_ the listener + * being removed. This will not impact the order in which listeners are called, + * but it means that any copies of the listener array as returned by + * the `emitter.listeners()` method will need to be recreated. + * + * When a single function has been added as a handler multiple times for a single + * event (as in the example below), `removeListener()` will remove the most + * recently added instance. In the example the `once('ping')`listener is removed: + * + * ```js + * const ee = new EventEmitter(); + * + * function pong() { + * console.log('pong'); + * } + * + * ee.on('ping', pong); + * ee.once('ping', pong); + * ee.removeListener('ping', pong); + * + * ee.emit('ping'); + * ee.emit('ping'); + * ``` + * + * Returns a reference to the `EventEmitter`, so that calls can be chained. + * @since v0.1.26 + */ + removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this; + /** + * Alias for `emitter.removeListener()`. + * @since v10.0.0 + */ + off(eventName: string | symbol, listener: (...args: any[]) => void): this; + /** + * Removes all listeners, or those of the specified `eventName`. + * + * It is bad practice to remove listeners added elsewhere in the code, + * particularly when the `EventEmitter` instance was created by some other + * component or module (e.g. sockets or file streams). + * + * Returns a reference to the `EventEmitter`, so that calls can be chained. + * @since v0.1.26 + */ + removeAllListeners(event?: string | symbol): this; + /** + * By default `EventEmitter`s will print a warning if more than `10` listeners are + * added for a particular event. This is a useful default that helps finding + * memory leaks. The `emitter.setMaxListeners()` method allows the limit to be + * modified for this specific `EventEmitter` instance. The value can be set to`Infinity` (or `0`) to indicate an unlimited number of listeners. + * + * Returns a reference to the `EventEmitter`, so that calls can be chained. + * @since v0.3.5 + */ + setMaxListeners(n: number): this; + /** + * Returns the current max listener value for the `EventEmitter` which is either + * set by `emitter.setMaxListeners(n)` or defaults to {@link defaultMaxListeners}. + * @since v1.0.0 + */ + getMaxListeners(): number; + /** + * Returns a copy of the array of listeners for the event named `eventName`. + * + * ```js + * server.on('connection', (stream) => { + * console.log('someone connected!'); + * }); + * console.log(util.inspect(server.listeners('connection'))); + * // Prints: [ [Function] ] + * ``` + * @since v0.1.26 + */ + listeners(eventName: string | symbol): Function[]; + /** + * Returns a copy of the array of listeners for the event named `eventName`, + * including any wrappers (such as those created by `.once()`). + * + * ```js + * const emitter = new EventEmitter(); + * emitter.once('log', () => console.log('log once')); + * + * // Returns a new Array with a function `onceWrapper` which has a property + * // `listener` which contains the original listener bound above + * const listeners = emitter.rawListeners('log'); + * const logFnWrapper = listeners[0]; + * + * // Logs "log once" to the console and does not unbind the `once` event + * logFnWrapper.listener(); + * + * // Logs "log once" to the console and removes the listener + * logFnWrapper(); + * + * emitter.on('log', () => console.log('log persistently')); + * // Will return a new Array with a single function bound by `.on()` above + * const newListeners = emitter.rawListeners('log'); + * + * // Logs "log persistently" twice + * newListeners[0](); + * emitter.emit('log'); + * ``` + * @since v9.4.0 + */ + rawListeners(eventName: string | symbol): Function[]; + /** + * Synchronously calls each of the listeners registered for the event named`eventName`, in the order they were registered, passing the supplied arguments + * to each. + * + * Returns `true` if the event had listeners, `false` otherwise. + * + * ```js + * const EventEmitter = require('events'); + * const myEmitter = new EventEmitter(); + * + * // First listener + * myEmitter.on('event', function firstListener() { + * console.log('Helloooo! first listener'); + * }); + * // Second listener + * myEmitter.on('event', function secondListener(arg1, arg2) { + * console.log(`event with parameters ${arg1}, ${arg2} in second listener`); + * }); + * // Third listener + * myEmitter.on('event', function thirdListener(...args) { + * const parameters = args.join(', '); + * console.log(`event with parameters ${parameters} in third listener`); + * }); + * + * console.log(myEmitter.listeners('event')); + * + * myEmitter.emit('event', 1, 2, 3, 4, 5); + * + * // Prints: + * // [ + * // [Function: firstListener], + * // [Function: secondListener], + * // [Function: thirdListener] + * // ] + * // Helloooo! first listener + * // event with parameters 1, 2 in second listener + * // event with parameters 1, 2, 3, 4, 5 in third listener + * ``` + * @since v0.1.26 + */ + emit(eventName: string | symbol, ...args: any[]): boolean; + /** + * Returns the number of listeners listening to the event named `eventName`. + * @since v3.2.0 + * @param eventName The name of the event being listened for + */ + listenerCount(eventName: string | symbol): number; + /** + * Adds the `listener` function to the _beginning_ of the listeners array for the + * event named `eventName`. No checks are made to see if the `listener` has + * already been added. Multiple calls passing the same combination of `eventName`and `listener` will result in the `listener` being added, and called, multiple + * times. + * + * ```js + * server.prependListener('connection', (stream) => { + * console.log('someone connected!'); + * }); + * ``` + * + * Returns a reference to the `EventEmitter`, so that calls can be chained. + * @since v6.0.0 + * @param eventName The name of the event. + * @param listener The callback function + */ + prependListener(eventName: string | symbol, listener: (...args: any[]) => void): this; + /** + * Adds a **one-time**`listener` function for the event named `eventName` to the_beginning_ of the listeners array. The next time `eventName` is triggered, this + * listener is removed, and then invoked. + * + * ```js + * server.prependOnceListener('connection', (stream) => { + * console.log('Ah, we have our first user!'); + * }); + * ``` + * + * Returns a reference to the `EventEmitter`, so that calls can be chained. + * @since v6.0.0 + * @param eventName The name of the event. + * @param listener The callback function + */ + prependOnceListener(eventName: string | symbol, listener: (...args: any[]) => void): this; + /** + * Returns an array listing the events for which the emitter has registered + * listeners. The values in the array are strings or `Symbol`s. + * + * ```js + * const EventEmitter = require('events'); + * const myEE = new EventEmitter(); + * myEE.on('foo', () => {}); + * myEE.on('bar', () => {}); + * + * const sym = Symbol('symbol'); + * myEE.on(sym, () => {}); + * + * console.log(myEE.eventNames()); + * // Prints: [ 'foo', 'bar', Symbol(symbol) ] + * ``` + * @since v6.0.0 + */ + eventNames(): Array; + } + } + } + export = EventEmitter; +} +declare module 'node:events' { + import events = require('events'); + export = events; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/fs.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/fs.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..c220c039ede17ef72e0d3ad9ce8729d6e0121428 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/fs.d.ts" @@ -0,0 +1,3869 @@ +/** + * The `fs` module enables interacting with the file system in a + * way modeled on standard POSIX functions. + * + * To use the promise-based APIs: + * + * ```js + * import * as fs from 'fs/promises'; + * ``` + * + * To use the callback and sync APIs: + * + * ```js + * import * as fs from 'fs'; + * ``` + * + * All file system operations have synchronous, callback, and promise-based + * forms, and are accessible using both CommonJS syntax and ES6 Modules (ESM). + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/fs.js) + */ +declare module 'fs' { + import * as stream from 'node:stream'; + import { Abortable, EventEmitter } from 'node:events'; + import { URL } from 'node:url'; + import * as promises from 'node:fs/promises'; + export { promises }; + /** + * Valid types for path values in "fs". + */ + export type PathLike = string | Buffer | URL; + export type PathOrFileDescriptor = PathLike | number; + export type TimeLike = string | number | Date; + export type NoParamCallback = (err: NodeJS.ErrnoException | null) => void; + export type BufferEncodingOption = + | 'buffer' + | { + encoding: 'buffer'; + }; + export interface ObjectEncodingOptions { + encoding?: BufferEncoding | null | undefined; + } + export type EncodingOption = ObjectEncodingOptions | BufferEncoding | undefined | null; + export type OpenMode = number | string; + export type Mode = number | string; + export interface StatsBase { + isFile(): boolean; + isDirectory(): boolean; + isBlockDevice(): boolean; + isCharacterDevice(): boolean; + isSymbolicLink(): boolean; + isFIFO(): boolean; + isSocket(): boolean; + dev: T; + ino: T; + mode: T; + nlink: T; + uid: T; + gid: T; + rdev: T; + size: T; + blksize: T; + blocks: T; + atimeMs: T; + mtimeMs: T; + ctimeMs: T; + birthtimeMs: T; + atime: Date; + mtime: Date; + ctime: Date; + birthtime: Date; + } + export interface Stats extends StatsBase {} + /** + * A `fs.Stats` object provides information about a file. + * + * Objects returned from {@link stat}, {@link lstat} and {@link fstat} and + * their synchronous counterparts are of this type. + * If `bigint` in the `options` passed to those methods is true, the numeric values + * will be `bigint` instead of `number`, and the object will contain additional + * nanosecond-precision properties suffixed with `Ns`. + * + * ```console + * Stats { + * dev: 2114, + * ino: 48064969, + * mode: 33188, + * nlink: 1, + * uid: 85, + * gid: 100, + * rdev: 0, + * size: 527, + * blksize: 4096, + * blocks: 8, + * atimeMs: 1318289051000.1, + * mtimeMs: 1318289051000.1, + * ctimeMs: 1318289051000.1, + * birthtimeMs: 1318289051000.1, + * atime: Mon, 10 Oct 2011 23:24:11 GMT, + * mtime: Mon, 10 Oct 2011 23:24:11 GMT, + * ctime: Mon, 10 Oct 2011 23:24:11 GMT, + * birthtime: Mon, 10 Oct 2011 23:24:11 GMT } + * ``` + * + * `bigint` version: + * + * ```console + * BigIntStats { + * dev: 2114n, + * ino: 48064969n, + * mode: 33188n, + * nlink: 1n, + * uid: 85n, + * gid: 100n, + * rdev: 0n, + * size: 527n, + * blksize: 4096n, + * blocks: 8n, + * atimeMs: 1318289051000n, + * mtimeMs: 1318289051000n, + * ctimeMs: 1318289051000n, + * birthtimeMs: 1318289051000n, + * atimeNs: 1318289051000000000n, + * mtimeNs: 1318289051000000000n, + * ctimeNs: 1318289051000000000n, + * birthtimeNs: 1318289051000000000n, + * atime: Mon, 10 Oct 2011 23:24:11 GMT, + * mtime: Mon, 10 Oct 2011 23:24:11 GMT, + * ctime: Mon, 10 Oct 2011 23:24:11 GMT, + * birthtime: Mon, 10 Oct 2011 23:24:11 GMT } + * ``` + * @since v0.1.21 + */ + export class Stats {} + /** + * A representation of a directory entry, which can be a file or a subdirectory + * within the directory, as returned by reading from an `fs.Dir`. The + * directory entry is a combination of the file name and file type pairs. + * + * Additionally, when {@link readdir} or {@link readdirSync} is called with + * the `withFileTypes` option set to `true`, the resulting array is filled with `fs.Dirent` objects, rather than strings or `Buffer` s. + * @since v10.10.0 + */ + export class Dirent { + /** + * Returns `true` if the `fs.Dirent` object describes a regular file. + * @since v10.10.0 + */ + isFile(): boolean; + /** + * Returns `true` if the `fs.Dirent` object describes a file system + * directory. + * @since v10.10.0 + */ + isDirectory(): boolean; + /** + * Returns `true` if the `fs.Dirent` object describes a block device. + * @since v10.10.0 + */ + isBlockDevice(): boolean; + /** + * Returns `true` if the `fs.Dirent` object describes a character device. + * @since v10.10.0 + */ + isCharacterDevice(): boolean; + /** + * Returns `true` if the `fs.Dirent` object describes a symbolic link. + * @since v10.10.0 + */ + isSymbolicLink(): boolean; + /** + * Returns `true` if the `fs.Dirent` object describes a first-in-first-out + * (FIFO) pipe. + * @since v10.10.0 + */ + isFIFO(): boolean; + /** + * Returns `true` if the `fs.Dirent` object describes a socket. + * @since v10.10.0 + */ + isSocket(): boolean; + /** + * The file name that this `fs.Dirent` object refers to. The type of this + * value is determined by the `options.encoding` passed to {@link readdir} or {@link readdirSync}. + * @since v10.10.0 + */ + name: string; + } + /** + * A class representing a directory stream. + * + * Created by {@link opendir}, {@link opendirSync}, or `fsPromises.opendir()`. + * + * ```js + * import { opendir } from 'fs/promises'; + * + * try { + * const dir = await opendir('./'); + * for await (const dirent of dir) + * console.log(dirent.name); + * } catch (err) { + * console.error(err); + * } + * ``` + * + * When using the async iterator, the `fs.Dir` object will be automatically + * closed after the iterator exits. + * @since v12.12.0 + */ + export class Dir implements AsyncIterable { + /** + * The read-only path of this directory as was provided to {@link opendir},{@link opendirSync}, or `fsPromises.opendir()`. + * @since v12.12.0 + */ + readonly path: string; + /** + * Asynchronously iterates over the directory via `readdir(3)` until all entries have been read. + */ + [Symbol.asyncIterator](): AsyncIterableIterator; + /** + * Asynchronously close the directory's underlying resource handle. + * Subsequent reads will result in errors. + * + * A promise is returned that will be resolved after the resource has been + * closed. + * @since v12.12.0 + */ + close(): Promise; + close(cb: NoParamCallback): void; + /** + * Synchronously close the directory's underlying resource handle. + * Subsequent reads will result in errors. + * @since v12.12.0 + */ + closeSync(): void; + /** + * Asynchronously read the next directory entry via [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) as an `fs.Dirent`. + * + * A promise is returned that will be resolved with an `fs.Dirent`, or `null`if there are no more directory entries to read. + * + * Directory entries returned by this function are in no particular order as + * provided by the operating system's underlying directory mechanisms. + * Entries added or removed while iterating over the directory might not be + * included in the iteration results. + * @since v12.12.0 + * @return containing {fs.Dirent|null} + */ + read(): Promise; + read(cb: (err: NodeJS.ErrnoException | null, dirEnt: Dirent | null) => void): void; + /** + * Synchronously read the next directory entry as an `fs.Dirent`. See the + * POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more detail. + * + * If there are no more directory entries to read, `null` will be returned. + * + * Directory entries returned by this function are in no particular order as + * provided by the operating system's underlying directory mechanisms. + * Entries added or removed while iterating over the directory might not be + * included in the iteration results. + * @since v12.12.0 + */ + readSync(): Dirent | null; + } + /** + * Class: fs.StatWatcher + * @since v14.3.0, v12.20.0 + * Extends `EventEmitter` + * A successful call to {@link watchFile} method will return a new fs.StatWatcher object. + */ + export interface StatWatcher extends EventEmitter { + /** + * When called, requests that the Node.js event loop _not_ exit so long as the `fs.StatWatcher` is active. Calling `watcher.ref()` multiple times will have + * no effect. + * + * By default, all `fs.StatWatcher` objects are "ref'ed", making it normally + * unnecessary to call `watcher.ref()` unless `watcher.unref()` had been + * called previously. + * @since v14.3.0, v12.20.0 + */ + ref(): this; + /** + * When called, the active `fs.StatWatcher` object will not require the Node.js + * event loop to remain active. If there is no other activity keeping the + * event loop running, the process may exit before the `fs.StatWatcher` object's + * callback is invoked. Calling `watcher.unref()` multiple times will have + * no effect. + * @since v14.3.0, v12.20.0 + */ + unref(): this; + } + export interface FSWatcher extends EventEmitter { + /** + * Stop watching for changes on the given `fs.FSWatcher`. Once stopped, the `fs.FSWatcher` object is no longer usable. + * @since v0.5.8 + */ + close(): void; + /** + * events.EventEmitter + * 1. change + * 2. error + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: 'change', listener: (eventType: string, filename: string | Buffer) => void): this; + addListener(event: 'error', listener: (error: Error) => void): this; + addListener(event: 'close', listener: () => void): this; + on(event: string, listener: (...args: any[]) => void): this; + on(event: 'change', listener: (eventType: string, filename: string | Buffer) => void): this; + on(event: 'error', listener: (error: Error) => void): this; + on(event: 'close', listener: () => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: 'change', listener: (eventType: string, filename: string | Buffer) => void): this; + once(event: 'error', listener: (error: Error) => void): this; + once(event: 'close', listener: () => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: 'change', listener: (eventType: string, filename: string | Buffer) => void): this; + prependListener(event: 'error', listener: (error: Error) => void): this; + prependListener(event: 'close', listener: () => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'change', listener: (eventType: string, filename: string | Buffer) => void): this; + prependOnceListener(event: 'error', listener: (error: Error) => void): this; + prependOnceListener(event: 'close', listener: () => void): this; + } + /** + * Instances of `fs.ReadStream` are created and returned using the {@link createReadStream} function. + * @since v0.1.93 + */ + export class ReadStream extends stream.Readable { + close(callback?: (err?: NodeJS.ErrnoException | null) => void): void; + /** + * The number of bytes that have been read so far. + * @since v6.4.0 + */ + bytesRead: number; + /** + * The path to the file the stream is reading from as specified in the first + * argument to `fs.createReadStream()`. If `path` is passed as a string, then`readStream.path` will be a string. If `path` is passed as a `Buffer`, then`readStream.path` will be a + * `Buffer`. If `fd` is specified, then`readStream.path` will be `undefined`. + * @since v0.1.93 + */ + path: string | Buffer; + /** + * This property is `true` if the underlying file has not been opened yet, + * i.e. before the `'ready'` event is emitted. + * @since v11.2.0, v10.16.0 + */ + pending: boolean; + /** + * events.EventEmitter + * 1. open + * 2. close + * 3. ready + */ + addListener(event: 'close', listener: () => void): this; + addListener(event: 'data', listener: (chunk: Buffer | string) => void): this; + addListener(event: 'end', listener: () => void): this; + addListener(event: 'error', listener: (err: Error) => void): this; + addListener(event: 'open', listener: (fd: number) => void): this; + addListener(event: 'pause', listener: () => void): this; + addListener(event: 'readable', listener: () => void): this; + addListener(event: 'ready', listener: () => void): this; + addListener(event: 'resume', listener: () => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + on(event: 'close', listener: () => void): this; + on(event: 'data', listener: (chunk: Buffer | string) => void): this; + on(event: 'end', listener: () => void): this; + on(event: 'error', listener: (err: Error) => void): this; + on(event: 'open', listener: (fd: number) => void): this; + on(event: 'pause', listener: () => void): this; + on(event: 'readable', listener: () => void): this; + on(event: 'ready', listener: () => void): this; + on(event: 'resume', listener: () => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: 'close', listener: () => void): this; + once(event: 'data', listener: (chunk: Buffer | string) => void): this; + once(event: 'end', listener: () => void): this; + once(event: 'error', listener: (err: Error) => void): this; + once(event: 'open', listener: (fd: number) => void): this; + once(event: 'pause', listener: () => void): this; + once(event: 'readable', listener: () => void): this; + once(event: 'ready', listener: () => void): this; + once(event: 'resume', listener: () => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: 'close', listener: () => void): this; + prependListener(event: 'data', listener: (chunk: Buffer | string) => void): this; + prependListener(event: 'end', listener: () => void): this; + prependListener(event: 'error', listener: (err: Error) => void): this; + prependListener(event: 'open', listener: (fd: number) => void): this; + prependListener(event: 'pause', listener: () => void): this; + prependListener(event: 'readable', listener: () => void): this; + prependListener(event: 'ready', listener: () => void): this; + prependListener(event: 'resume', listener: () => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'close', listener: () => void): this; + prependOnceListener(event: 'data', listener: (chunk: Buffer | string) => void): this; + prependOnceListener(event: 'end', listener: () => void): this; + prependOnceListener(event: 'error', listener: (err: Error) => void): this; + prependOnceListener(event: 'open', listener: (fd: number) => void): this; + prependOnceListener(event: 'pause', listener: () => void): this; + prependOnceListener(event: 'readable', listener: () => void): this; + prependOnceListener(event: 'ready', listener: () => void): this; + prependOnceListener(event: 'resume', listener: () => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + /** + * * Extends `stream.Writable` + * + * Instances of `fs.WriteStream` are created and returned using the {@link createWriteStream} function. + * @since v0.1.93 + */ + export class WriteStream extends stream.Writable { + /** + * Closes `writeStream`. Optionally accepts a + * callback that will be executed once the `writeStream`is closed. + * @since v0.9.4 + */ + close(callback?: (err?: NodeJS.ErrnoException | null) => void): void; + /** + * The number of bytes written so far. Does not include data that is still queued + * for writing. + * @since v0.4.7 + */ + bytesWritten: number; + /** + * The path to the file the stream is writing to as specified in the first + * argument to {@link createWriteStream}. If `path` is passed as a string, then`writeStream.path` will be a string. If `path` is passed as a `Buffer`, then`writeStream.path` will be a + * `Buffer`. + * @since v0.1.93 + */ + path: string | Buffer; + /** + * This property is `true` if the underlying file has not been opened yet, + * i.e. before the `'ready'` event is emitted. + * @since v11.2.0 + */ + pending: boolean; + /** + * events.EventEmitter + * 1. open + * 2. close + * 3. ready + */ + addListener(event: 'close', listener: () => void): this; + addListener(event: 'drain', listener: () => void): this; + addListener(event: 'error', listener: (err: Error) => void): this; + addListener(event: 'finish', listener: () => void): this; + addListener(event: 'open', listener: (fd: number) => void): this; + addListener(event: 'pipe', listener: (src: stream.Readable) => void): this; + addListener(event: 'ready', listener: () => void): this; + addListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + on(event: 'close', listener: () => void): this; + on(event: 'drain', listener: () => void): this; + on(event: 'error', listener: (err: Error) => void): this; + on(event: 'finish', listener: () => void): this; + on(event: 'open', listener: (fd: number) => void): this; + on(event: 'pipe', listener: (src: stream.Readable) => void): this; + on(event: 'ready', listener: () => void): this; + on(event: 'unpipe', listener: (src: stream.Readable) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: 'close', listener: () => void): this; + once(event: 'drain', listener: () => void): this; + once(event: 'error', listener: (err: Error) => void): this; + once(event: 'finish', listener: () => void): this; + once(event: 'open', listener: (fd: number) => void): this; + once(event: 'pipe', listener: (src: stream.Readable) => void): this; + once(event: 'ready', listener: () => void): this; + once(event: 'unpipe', listener: (src: stream.Readable) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: 'close', listener: () => void): this; + prependListener(event: 'drain', listener: () => void): this; + prependListener(event: 'error', listener: (err: Error) => void): this; + prependListener(event: 'finish', listener: () => void): this; + prependListener(event: 'open', listener: (fd: number) => void): this; + prependListener(event: 'pipe', listener: (src: stream.Readable) => void): this; + prependListener(event: 'ready', listener: () => void): this; + prependListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'close', listener: () => void): this; + prependOnceListener(event: 'drain', listener: () => void): this; + prependOnceListener(event: 'error', listener: (err: Error) => void): this; + prependOnceListener(event: 'finish', listener: () => void): this; + prependOnceListener(event: 'open', listener: (fd: number) => void): this; + prependOnceListener(event: 'pipe', listener: (src: stream.Readable) => void): this; + prependOnceListener(event: 'ready', listener: () => void): this; + prependOnceListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + /** + * Asynchronously rename file at `oldPath` to the pathname provided + * as `newPath`. In the case that `newPath` already exists, it will + * be overwritten. If there is a directory at `newPath`, an error will + * be raised instead. No arguments other than a possible exception are + * given to the completion callback. + * + * See also: [`rename(2)`](http://man7.org/linux/man-pages/man2/rename.2.html). + * + * ```js + * import { rename } from 'fs'; + * + * rename('oldFile.txt', 'newFile.txt', (err) => { + * if (err) throw err; + * console.log('Rename complete!'); + * }); + * ``` + * @since v0.0.2 + */ + export function rename(oldPath: PathLike, newPath: PathLike, callback: NoParamCallback): void; + export namespace rename { + /** + * Asynchronous rename(2) - Change the name or location of a file or directory. + * @param oldPath A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function __promisify__(oldPath: PathLike, newPath: PathLike): Promise; + } + /** + * Renames the file from `oldPath` to `newPath`. Returns `undefined`. + * + * See the POSIX [`rename(2)`](http://man7.org/linux/man-pages/man2/rename.2.html) documentation for more details. + * @since v0.1.21 + */ + export function renameSync(oldPath: PathLike, newPath: PathLike): void; + /** + * Truncates the file. No arguments other than a possible exception are + * given to the completion callback. A file descriptor can also be passed as the + * first argument. In this case, `fs.ftruncate()` is called. + * + * ```js + * import { truncate } from 'fs'; + * // Assuming that 'path/file.txt' is a regular file. + * truncate('path/file.txt', (err) => { + * if (err) throw err; + * console.log('path/file.txt was truncated'); + * }); + * ``` + * + * Passing a file descriptor is deprecated and may result in an error being thrown + * in the future. + * + * See the POSIX [`truncate(2)`](http://man7.org/linux/man-pages/man2/truncate.2.html) documentation for more details. + * @since v0.8.6 + * @param [len=0] + */ + export function truncate(path: PathLike, len: number | undefined | null, callback: NoParamCallback): void; + /** + * Asynchronous truncate(2) - Truncate a file to a specified length. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + export function truncate(path: PathLike, callback: NoParamCallback): void; + export namespace truncate { + /** + * Asynchronous truncate(2) - Truncate a file to a specified length. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param len If not specified, defaults to `0`. + */ + function __promisify__(path: PathLike, len?: number | null): Promise; + } + /** + * Truncates the file. Returns `undefined`. A file descriptor can also be + * passed as the first argument. In this case, `fs.ftruncateSync()` is called. + * + * Passing a file descriptor is deprecated and may result in an error being thrown + * in the future. + * @since v0.8.6 + * @param [len=0] + */ + export function truncateSync(path: PathLike, len?: number | null): void; + /** + * Truncates the file descriptor. No arguments other than a possible exception are + * given to the completion callback. + * + * See the POSIX [`ftruncate(2)`](http://man7.org/linux/man-pages/man2/ftruncate.2.html) documentation for more detail. + * + * If the file referred to by the file descriptor was larger than `len` bytes, only + * the first `len` bytes will be retained in the file. + * + * For example, the following program retains only the first four bytes of the + * file: + * + * ```js + * import { open, close, ftruncate } from 'fs'; + * + * function closeFd(fd) { + * close(fd, (err) => { + * if (err) throw err; + * }); + * } + * + * open('temp.txt', 'r+', (err, fd) => { + * if (err) throw err; + * + * try { + * ftruncate(fd, 4, (err) => { + * closeFd(fd); + * if (err) throw err; + * }); + * } catch (err) { + * closeFd(fd); + * if (err) throw err; + * } + * }); + * ``` + * + * If the file previously was shorter than `len` bytes, it is extended, and the + * extended part is filled with null bytes (`'\0'`): + * + * If `len` is negative then `0` will be used. + * @since v0.8.6 + * @param [len=0] + */ + export function ftruncate(fd: number, len: number | undefined | null, callback: NoParamCallback): void; + /** + * Asynchronous ftruncate(2) - Truncate a file to a specified length. + * @param fd A file descriptor. + */ + export function ftruncate(fd: number, callback: NoParamCallback): void; + export namespace ftruncate { + /** + * Asynchronous ftruncate(2) - Truncate a file to a specified length. + * @param fd A file descriptor. + * @param len If not specified, defaults to `0`. + */ + function __promisify__(fd: number, len?: number | null): Promise; + } + /** + * Truncates the file descriptor. Returns `undefined`. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link ftruncate}. + * @since v0.8.6 + * @param [len=0] + */ + export function ftruncateSync(fd: number, len?: number | null): void; + /** + * Asynchronously changes owner and group of a file. No arguments other than a + * possible exception are given to the completion callback. + * + * See the POSIX [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html) documentation for more detail. + * @since v0.1.97 + */ + export function chown(path: PathLike, uid: number, gid: number, callback: NoParamCallback): void; + export namespace chown { + /** + * Asynchronous chown(2) - Change ownership of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__(path: PathLike, uid: number, gid: number): Promise; + } + /** + * Synchronously changes owner and group of a file. Returns `undefined`. + * This is the synchronous version of {@link chown}. + * + * See the POSIX [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html) documentation for more detail. + * @since v0.1.97 + */ + export function chownSync(path: PathLike, uid: number, gid: number): void; + /** + * Sets the owner of the file. No arguments other than a possible exception are + * given to the completion callback. + * + * See the POSIX [`fchown(2)`](http://man7.org/linux/man-pages/man2/fchown.2.html) documentation for more detail. + * @since v0.4.7 + */ + export function fchown(fd: number, uid: number, gid: number, callback: NoParamCallback): void; + export namespace fchown { + /** + * Asynchronous fchown(2) - Change ownership of a file. + * @param fd A file descriptor. + */ + function __promisify__(fd: number, uid: number, gid: number): Promise; + } + /** + * Sets the owner of the file. Returns `undefined`. + * + * See the POSIX [`fchown(2)`](http://man7.org/linux/man-pages/man2/fchown.2.html) documentation for more detail. + * @since v0.4.7 + * @param uid The file's new owner's user id. + * @param gid The file's new group's group id. + */ + export function fchownSync(fd: number, uid: number, gid: number): void; + /** + * Set the owner of the symbolic link. No arguments other than a possible + * exception are given to the completion callback. + * + * See the POSIX [`lchown(2)`](http://man7.org/linux/man-pages/man2/lchown.2.html) documentation for more detail. + */ + export function lchown(path: PathLike, uid: number, gid: number, callback: NoParamCallback): void; + export namespace lchown { + /** + * Asynchronous lchown(2) - Change ownership of a file. Does not dereference symbolic links. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__(path: PathLike, uid: number, gid: number): Promise; + } + /** + * Set the owner for the path. Returns `undefined`. + * + * See the POSIX [`lchown(2)`](http://man7.org/linux/man-pages/man2/lchown.2.html) documentation for more details. + * @param uid The file's new owner's user id. + * @param gid The file's new group's group id. + */ + export function lchownSync(path: PathLike, uid: number, gid: number): void; + /** + * Changes the access and modification times of a file in the same way as {@link utimes}, with the difference that if the path refers to a symbolic + * link, then the link is not dereferenced: instead, the timestamps of the + * symbolic link itself are changed. + * + * No arguments other than a possible exception are given to the completion + * callback. + * @since v14.5.0, v12.19.0 + */ + export function lutimes(path: PathLike, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void; + export namespace lutimes { + /** + * Changes the access and modification times of a file in the same way as `fsPromises.utimes()`, + * with the difference that if the path refers to a symbolic link, then the link is not + * dereferenced: instead, the timestamps of the symbolic link itself are changed. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. + */ + function __promisify__(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise; + } + /** + * Change the file system timestamps of the symbolic link referenced by `path`. + * Returns `undefined`, or throws an exception when parameters are incorrect or + * the operation fails. This is the synchronous version of {@link lutimes}. + * @since v14.5.0, v12.19.0 + */ + export function lutimesSync(path: PathLike, atime: TimeLike, mtime: TimeLike): void; + /** + * Asynchronously changes the permissions of a file. No arguments other than a + * possible exception are given to the completion callback. + * + * See the POSIX [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html) documentation for more detail. + * + * ```js + * import { chmod } from 'fs'; + * + * chmod('my_file.txt', 0o775, (err) => { + * if (err) throw err; + * console.log('The permissions for file "my_file.txt" have been changed!'); + * }); + * ``` + * @since v0.1.30 + */ + export function chmod(path: PathLike, mode: Mode, callback: NoParamCallback): void; + export namespace chmod { + /** + * Asynchronous chmod(2) - Change permissions of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. + */ + function __promisify__(path: PathLike, mode: Mode): Promise; + } + /** + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link chmod}. + * + * See the POSIX [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html) documentation for more detail. + * @since v0.6.7 + */ + export function chmodSync(path: PathLike, mode: Mode): void; + /** + * Sets the permissions on the file. No arguments other than a possible exception + * are given to the completion callback. + * + * See the POSIX [`fchmod(2)`](http://man7.org/linux/man-pages/man2/fchmod.2.html) documentation for more detail. + * @since v0.4.7 + */ + export function fchmod(fd: number, mode: Mode, callback: NoParamCallback): void; + export namespace fchmod { + /** + * Asynchronous fchmod(2) - Change permissions of a file. + * @param fd A file descriptor. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. + */ + function __promisify__(fd: number, mode: Mode): Promise; + } + /** + * Sets the permissions on the file. Returns `undefined`. + * + * See the POSIX [`fchmod(2)`](http://man7.org/linux/man-pages/man2/fchmod.2.html) documentation for more detail. + * @since v0.4.7 + */ + export function fchmodSync(fd: number, mode: Mode): void; + /** + * Changes the permissions on a symbolic link. No arguments other than a possible + * exception are given to the completion callback. + * + * This method is only implemented on macOS. + * + * See the POSIX [`lchmod(2)`](https://www.freebsd.org/cgi/man.cgi?query=lchmod&sektion=2) documentation for more detail. + * @deprecated Since v0.4.7 + */ + export function lchmod(path: PathLike, mode: Mode, callback: NoParamCallback): void; + /** @deprecated */ + export namespace lchmod { + /** + * Asynchronous lchmod(2) - Change permissions of a file. Does not dereference symbolic links. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. + */ + function __promisify__(path: PathLike, mode: Mode): Promise; + } + /** + * Changes the permissions on a symbolic link. Returns `undefined`. + * + * This method is only implemented on macOS. + * + * See the POSIX [`lchmod(2)`](https://www.freebsd.org/cgi/man.cgi?query=lchmod&sektion=2) documentation for more detail. + * @deprecated Since v0.4.7 + */ + export function lchmodSync(path: PathLike, mode: Mode): void; + /** + * Asynchronous [`stat(2)`](http://man7.org/linux/man-pages/man2/stat.2.html). The callback gets two arguments `(err, stats)` where`stats` is an `fs.Stats` object. + * + * In case of an error, the `err.code` will be one of `Common System Errors`. + * + * Using `fs.stat()` to check for the existence of a file before calling`fs.open()`, `fs.readFile()` or `fs.writeFile()` is not recommended. + * Instead, user code should open/read/write the file directly and handle the + * error raised if the file is not available. + * + * To check if a file exists without manipulating it afterwards, {@link access} is recommended. + * + * For example, given the following directory structure: + * + * ```text + * - txtDir + * -- file.txt + * - app.js + * ``` + * + * The next program will check for the stats of the given paths: + * + * ```js + * import { stat } from 'fs'; + * + * const pathsToCheck = ['./txtDir', './txtDir/file.txt']; + * + * for (let i = 0; i < pathsToCheck.length; i++) { + * stat(pathsToCheck[i], (err, stats) => { + * console.log(stats.isDirectory()); + * console.log(stats); + * }); + * } + * ``` + * + * The resulting output will resemble: + * + * ```console + * true + * Stats { + * dev: 16777220, + * mode: 16877, + * nlink: 3, + * uid: 501, + * gid: 20, + * rdev: 0, + * blksize: 4096, + * ino: 14214262, + * size: 96, + * blocks: 0, + * atimeMs: 1561174653071.963, + * mtimeMs: 1561174614583.3518, + * ctimeMs: 1561174626623.5366, + * birthtimeMs: 1561174126937.2893, + * atime: 2019-06-22T03:37:33.072Z, + * mtime: 2019-06-22T03:36:54.583Z, + * ctime: 2019-06-22T03:37:06.624Z, + * birthtime: 2019-06-22T03:28:46.937Z + * } + * false + * Stats { + * dev: 16777220, + * mode: 33188, + * nlink: 1, + * uid: 501, + * gid: 20, + * rdev: 0, + * blksize: 4096, + * ino: 14214074, + * size: 8, + * blocks: 8, + * atimeMs: 1561174616618.8555, + * mtimeMs: 1561174614584, + * ctimeMs: 1561174614583.8145, + * birthtimeMs: 1561174007710.7478, + * atime: 2019-06-22T03:36:56.619Z, + * mtime: 2019-06-22T03:36:54.584Z, + * ctime: 2019-06-22T03:36:54.584Z, + * birthtime: 2019-06-22T03:26:47.711Z + * } + * ``` + * @since v0.0.2 + */ + export function stat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; + export function stat( + path: PathLike, + options: + | (StatOptions & { + bigint?: false | undefined; + }) + | undefined, + callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void + ): void; + export function stat( + path: PathLike, + options: StatOptions & { + bigint: true; + }, + callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void + ): void; + export function stat(path: PathLike, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void; + export namespace stat { + /** + * Asynchronous stat(2) - Get file status. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__( + path: PathLike, + options?: StatOptions & { + bigint?: false | undefined; + } + ): Promise; + function __promisify__( + path: PathLike, + options: StatOptions & { + bigint: true; + } + ): Promise; + function __promisify__(path: PathLike, options?: StatOptions): Promise; + } + export interface StatSyncFn extends Function { + (path: PathLike, options?: undefined): Stats; + ( + path: PathLike, + options?: StatSyncOptions & { + bigint?: false | undefined; + throwIfNoEntry: false; + } + ): Stats | undefined; + ( + path: PathLike, + options: StatSyncOptions & { + bigint: true; + throwIfNoEntry: false; + } + ): BigIntStats | undefined; + ( + path: PathLike, + options?: StatSyncOptions & { + bigint?: false | undefined; + } + ): Stats; + ( + path: PathLike, + options: StatSyncOptions & { + bigint: true; + } + ): BigIntStats; + ( + path: PathLike, + options: StatSyncOptions & { + bigint: boolean; + throwIfNoEntry?: false | undefined; + } + ): Stats | BigIntStats; + (path: PathLike, options?: StatSyncOptions): Stats | BigIntStats | undefined; + } + /** + * Synchronous stat(2) - Get file status. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + export const statSync: StatSyncFn; + /** + * Invokes the callback with the `fs.Stats` for the file descriptor. + * + * See the POSIX [`fstat(2)`](http://man7.org/linux/man-pages/man2/fstat.2.html) documentation for more detail. + * @since v0.1.95 + */ + export function fstat(fd: number, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; + export function fstat( + fd: number, + options: + | (StatOptions & { + bigint?: false | undefined; + }) + | undefined, + callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void + ): void; + export function fstat( + fd: number, + options: StatOptions & { + bigint: true; + }, + callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void + ): void; + export function fstat(fd: number, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void; + export namespace fstat { + /** + * Asynchronous fstat(2) - Get file status. + * @param fd A file descriptor. + */ + function __promisify__( + fd: number, + options?: StatOptions & { + bigint?: false | undefined; + } + ): Promise; + function __promisify__( + fd: number, + options: StatOptions & { + bigint: true; + } + ): Promise; + function __promisify__(fd: number, options?: StatOptions): Promise; + } + /** + * Retrieves the `fs.Stats` for the file descriptor. + * + * See the POSIX [`fstat(2)`](http://man7.org/linux/man-pages/man2/fstat.2.html) documentation for more detail. + * @since v0.1.95 + */ + export function fstatSync( + fd: number, + options?: StatOptions & { + bigint?: false | undefined; + } + ): Stats; + export function fstatSync( + fd: number, + options: StatOptions & { + bigint: true; + } + ): BigIntStats; + export function fstatSync(fd: number, options?: StatOptions): Stats | BigIntStats; + /** + * Retrieves the `fs.Stats` for the symbolic link referred to by the path. + * The callback gets two arguments `(err, stats)` where `stats` is a `fs.Stats` object. `lstat()` is identical to `stat()`, except that if `path` is a symbolic + * link, then the link itself is stat-ed, not the file that it refers to. + * + * See the POSIX [`lstat(2)`](http://man7.org/linux/man-pages/man2/lstat.2.html) documentation for more details. + * @since v0.1.30 + */ + export function lstat(path: PathLike, callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void): void; + export function lstat( + path: PathLike, + options: + | (StatOptions & { + bigint?: false | undefined; + }) + | undefined, + callback: (err: NodeJS.ErrnoException | null, stats: Stats) => void + ): void; + export function lstat( + path: PathLike, + options: StatOptions & { + bigint: true; + }, + callback: (err: NodeJS.ErrnoException | null, stats: BigIntStats) => void + ): void; + export function lstat(path: PathLike, options: StatOptions | undefined, callback: (err: NodeJS.ErrnoException | null, stats: Stats | BigIntStats) => void): void; + export namespace lstat { + /** + * Asynchronous lstat(2) - Get file status. Does not dereference symbolic links. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__( + path: PathLike, + options?: StatOptions & { + bigint?: false | undefined; + } + ): Promise; + function __promisify__( + path: PathLike, + options: StatOptions & { + bigint: true; + } + ): Promise; + function __promisify__(path: PathLike, options?: StatOptions): Promise; + } + /** + * Synchronous lstat(2) - Get file status. Does not dereference symbolic links. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + export const lstatSync: StatSyncFn; + /** + * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. No arguments other than + * a possible + * exception are given to the completion callback. + * @since v0.1.31 + */ + export function link(existingPath: PathLike, newPath: PathLike, callback: NoParamCallback): void; + export namespace link { + /** + * Asynchronous link(2) - Create a new link (also known as a hard link) to an existing file. + * @param existingPath A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param newPath A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__(existingPath: PathLike, newPath: PathLike): Promise; + } + /** + * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. Returns `undefined`. + * @since v0.1.31 + */ + export function linkSync(existingPath: PathLike, newPath: PathLike): void; + /** + * Creates the link called `path` pointing to `target`. No arguments other than a + * possible exception are given to the completion callback. + * + * See the POSIX [`symlink(2)`](http://man7.org/linux/man-pages/man2/symlink.2.html) documentation for more details. + * + * The `type` argument is only available on Windows and ignored on other platforms. + * It can be set to `'dir'`, `'file'`, or `'junction'`. If the `type` argument is + * not set, Node.js will autodetect `target` type and use `'file'` or `'dir'`. If + * the `target` does not exist, `'file'` will be used. Windows junction points + * require the destination path to be absolute. When using `'junction'`, the`target` argument will automatically be normalized to absolute path. + * + * Relative targets are relative to the link’s parent directory. + * + * ```js + * import { symlink } from 'fs'; + * + * symlink('./mew', './example/mewtwo', callback); + * ``` + * + * The above example creates a symbolic link `mewtwo` in the `example` which points + * to `mew` in the same directory: + * + * ```bash + * $ tree example/ + * example/ + * ├── mew + * └── mewtwo -> ./mew + * ``` + * @since v0.1.31 + */ + export function symlink(target: PathLike, path: PathLike, type: symlink.Type | undefined | null, callback: NoParamCallback): void; + /** + * Asynchronous symlink(2) - Create a new symbolic link to an existing file. + * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol. + * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol. + */ + export function symlink(target: PathLike, path: PathLike, callback: NoParamCallback): void; + export namespace symlink { + /** + * Asynchronous symlink(2) - Create a new symbolic link to an existing file. + * @param target A path to an existing file. If a URL is provided, it must use the `file:` protocol. + * @param path A path to the new symlink. If a URL is provided, it must use the `file:` protocol. + * @param type May be set to `'dir'`, `'file'`, or `'junction'` (default is `'file'`) and is only available on Windows (ignored on other platforms). + * When using `'junction'`, the `target` argument will automatically be normalized to an absolute path. + */ + function __promisify__(target: PathLike, path: PathLike, type?: string | null): Promise; + type Type = 'dir' | 'file' | 'junction'; + } + /** + * Returns `undefined`. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link symlink}. + * @since v0.1.31 + */ + export function symlinkSync(target: PathLike, path: PathLike, type?: symlink.Type | null): void; + /** + * Reads the contents of the symbolic link referred to by `path`. The callback gets + * two arguments `(err, linkString)`. + * + * See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more details. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use for + * the link path passed to the callback. If the `encoding` is set to `'buffer'`, + * the link path returned will be passed as a `Buffer` object. + * @since v0.1.31 + */ + export function readlink(path: PathLike, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, linkString: string) => void): void; + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function readlink(path: PathLike, options: BufferEncodingOption, callback: (err: NodeJS.ErrnoException | null, linkString: Buffer) => void): void; + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function readlink(path: PathLike, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, linkString: string | Buffer) => void): void; + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + export function readlink(path: PathLike, callback: (err: NodeJS.ErrnoException | null, linkString: string) => void): void; + export namespace readlink { + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options?: EncodingOption): Promise; + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options: BufferEncodingOption): Promise; + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options?: EncodingOption): Promise; + } + /** + * Returns the symbolic link's string value. + * + * See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more details. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use for + * the link path returned. If the `encoding` is set to `'buffer'`, + * the link path returned will be passed as a `Buffer` object. + * @since v0.1.31 + */ + export function readlinkSync(path: PathLike, options?: EncodingOption): string; + /** + * Synchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function readlinkSync(path: PathLike, options: BufferEncodingOption): Buffer; + /** + * Synchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function readlinkSync(path: PathLike, options?: EncodingOption): string | Buffer; + /** + * Asynchronously computes the canonical pathname by resolving `.`, `..` and + * symbolic links. + * + * A canonical pathname is not necessarily unique. Hard links and bind mounts can + * expose a file system entity through many pathnames. + * + * This function behaves like [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html), with some exceptions: + * + * 1. No case conversion is performed on case-insensitive file systems. + * 2. The maximum number of symbolic links is platform-independent and generally + * (much) higher than what the native [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html) implementation supports. + * + * The `callback` gets two arguments `(err, resolvedPath)`. May use `process.cwd`to resolve relative paths. + * + * Only paths that can be converted to UTF8 strings are supported. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use for + * the path passed to the callback. If the `encoding` is set to `'buffer'`, + * the path returned will be passed as a `Buffer` object. + * + * If `path` resolves to a socket or a pipe, the function will return a system + * dependent name for that object. + * @since v0.1.31 + */ + export function realpath(path: PathLike, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void; + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function realpath(path: PathLike, options: BufferEncodingOption, callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void): void; + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function realpath(path: PathLike, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void): void; + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + export function realpath(path: PathLike, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void; + export namespace realpath { + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options?: EncodingOption): Promise; + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options: BufferEncodingOption): Promise; + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(path: PathLike, options?: EncodingOption): Promise; + /** + * Asynchronous [`realpath(3)`](http://man7.org/linux/man-pages/man3/realpath.3.html). + * + * The `callback` gets two arguments `(err, resolvedPath)`. + * + * Only paths that can be converted to UTF8 strings are supported. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use for + * the path passed to the callback. If the `encoding` is set to `'buffer'`, + * the path returned will be passed as a `Buffer` object. + * + * On Linux, when Node.js is linked against musl libc, the procfs file system must + * be mounted on `/proc` in order for this function to work. Glibc does not have + * this restriction. + * @since v9.2.0 + */ + function native(path: PathLike, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void; + function native(path: PathLike, options: BufferEncodingOption, callback: (err: NodeJS.ErrnoException | null, resolvedPath: Buffer) => void): void; + function native(path: PathLike, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string | Buffer) => void): void; + function native(path: PathLike, callback: (err: NodeJS.ErrnoException | null, resolvedPath: string) => void): void; + } + /** + * Returns the resolved pathname. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link realpath}. + * @since v0.1.31 + */ + export function realpathSync(path: PathLike, options?: EncodingOption): string; + /** + * Synchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function realpathSync(path: PathLike, options: BufferEncodingOption): Buffer; + /** + * Synchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function realpathSync(path: PathLike, options?: EncodingOption): string | Buffer; + export namespace realpathSync { + function native(path: PathLike, options?: EncodingOption): string; + function native(path: PathLike, options: BufferEncodingOption): Buffer; + function native(path: PathLike, options?: EncodingOption): string | Buffer; + } + /** + * Asynchronously removes a file or symbolic link. No arguments other than a + * possible exception are given to the completion callback. + * + * ```js + * import { unlink } from 'fs'; + * // Assuming that 'path/file.txt' is a regular file. + * unlink('path/file.txt', (err) => { + * if (err) throw err; + * console.log('path/file.txt was deleted'); + * }); + * ``` + * + * `fs.unlink()` will not work on a directory, empty or otherwise. To remove a + * directory, use {@link rmdir}. + * + * See the POSIX [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html) documentation for more details. + * @since v0.0.2 + */ + export function unlink(path: PathLike, callback: NoParamCallback): void; + export namespace unlink { + /** + * Asynchronous unlink(2) - delete a name and possibly the file it refers to. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__(path: PathLike): Promise; + } + /** + * Synchronous [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html). Returns `undefined`. + * @since v0.1.21 + */ + export function unlinkSync(path: PathLike): void; + export interface RmDirOptions { + /** + * If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or + * `EPERM` error is encountered, Node.js will retry the operation with a linear + * backoff wait of `retryDelay` ms longer on each try. This option represents the + * number of retries. This option is ignored if the `recursive` option is not + * `true`. + * @default 0 + */ + maxRetries?: number | undefined; + /** + * @deprecated since v14.14.0 In future versions of Node.js and will trigger a warning + * `fs.rmdir(path, { recursive: true })` will throw if `path` does not exist or is a file. + * Use `fs.rm(path, { recursive: true, force: true })` instead. + * + * If `true`, perform a recursive directory removal. In + * recursive mode soperations are retried on failure. + * @default false + */ + recursive?: boolean | undefined; + /** + * The amount of time in milliseconds to wait between retries. + * This option is ignored if the `recursive` option is not `true`. + * @default 100 + */ + retryDelay?: number | undefined; + } + /** + * Asynchronous [`rmdir(2)`](http://man7.org/linux/man-pages/man2/rmdir.2.html). No arguments other than a possible exception are given + * to the completion callback. + * + * Using `fs.rmdir()` on a file (not a directory) results in an `ENOENT` error on + * Windows and an `ENOTDIR` error on POSIX. + * + * To get a behavior similar to the `rm -rf` Unix command, use {@link rm} with options `{ recursive: true, force: true }`. + * @since v0.0.2 + */ + export function rmdir(path: PathLike, callback: NoParamCallback): void; + export function rmdir(path: PathLike, options: RmDirOptions, callback: NoParamCallback): void; + export namespace rmdir { + /** + * Asynchronous rmdir(2) - delete a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + function __promisify__(path: PathLike, options?: RmDirOptions): Promise; + } + /** + * Synchronous [`rmdir(2)`](http://man7.org/linux/man-pages/man2/rmdir.2.html). Returns `undefined`. + * + * Using `fs.rmdirSync()` on a file (not a directory) results in an `ENOENT` error + * on Windows and an `ENOTDIR` error on POSIX. + * + * To get a behavior similar to the `rm -rf` Unix command, use {@link rmSync} with options `{ recursive: true, force: true }`. + * @since v0.1.21 + */ + export function rmdirSync(path: PathLike, options?: RmDirOptions): void; + export interface RmOptions { + /** + * When `true`, exceptions will be ignored if `path` does not exist. + * @default false + */ + force?: boolean | undefined; + /** + * If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or + * `EPERM` error is encountered, Node.js will retry the operation with a linear + * backoff wait of `retryDelay` ms longer on each try. This option represents the + * number of retries. This option is ignored if the `recursive` option is not + * `true`. + * @default 0 + */ + maxRetries?: number | undefined; + /** + * If `true`, perform a recursive directory removal. In + * recursive mode, operations are retried on failure. + * @default false + */ + recursive?: boolean | undefined; + /** + * The amount of time in milliseconds to wait between retries. + * This option is ignored if the `recursive` option is not `true`. + * @default 100 + */ + retryDelay?: number | undefined; + } + /** + * Asynchronously removes files and directories (modeled on the standard POSIX `rm`utility). No arguments other than a possible exception are given to the + * completion callback. + * @since v14.14.0 + */ + export function rm(path: PathLike, callback: NoParamCallback): void; + export function rm(path: PathLike, options: RmOptions, callback: NoParamCallback): void; + export namespace rm { + /** + * Asynchronously removes files and directories (modeled on the standard POSIX `rm` utility). + */ + function __promisify__(path: PathLike, options?: RmOptions): Promise; + } + /** + * Synchronously removes files and directories (modeled on the standard POSIX `rm`utility). Returns `undefined`. + * @since v14.14.0 + */ + export function rmSync(path: PathLike, options?: RmOptions): void; + export interface MakeDirectoryOptions { + /** + * Indicates whether parent folders should be created. + * If a folder was created, the path to the first created folder will be returned. + * @default false + */ + recursive?: boolean | undefined; + /** + * A file mode. If a string is passed, it is parsed as an octal integer. If not specified + * @default 0o777 + */ + mode?: Mode | undefined; + } + /** + * Asynchronously creates a directory. + * + * The callback is given a possible exception and, if `recursive` is `true`, the + * first directory path created, `(err[, path])`.`path` can still be `undefined` when `recursive` is `true`, if no directory was + * created. + * + * The optional `options` argument can be an integer specifying `mode` (permission + * and sticky bits), or an object with a `mode` property and a `recursive`property indicating whether parent directories should be created. Calling`fs.mkdir()` when `path` is a directory that + * exists results in an error only + * when `recursive` is false. + * + * ```js + * import { mkdir } from 'fs'; + * + * // Creates /tmp/a/apple, regardless of whether `/tmp` and /tmp/a exist. + * mkdir('/tmp/a/apple', { recursive: true }, (err) => { + * if (err) throw err; + * }); + * ``` + * + * On Windows, using `fs.mkdir()` on the root directory even with recursion will + * result in an error: + * + * ```js + * import { mkdir } from 'fs'; + * + * mkdir('/', { recursive: true }, (err) => { + * // => [Error: EPERM: operation not permitted, mkdir 'C:\'] + * }); + * ``` + * + * See the POSIX [`mkdir(2)`](http://man7.org/linux/man-pages/man2/mkdir.2.html) documentation for more details. + * @since v0.1.8 + */ + export function mkdir( + path: PathLike, + options: MakeDirectoryOptions & { + recursive: true; + }, + callback: (err: NodeJS.ErrnoException | null, path?: string) => void + ): void; + /** + * Asynchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + export function mkdir( + path: PathLike, + options: + | Mode + | (MakeDirectoryOptions & { + recursive?: false | undefined; + }) + | null + | undefined, + callback: NoParamCallback + ): void; + /** + * Asynchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + export function mkdir(path: PathLike, options: Mode | MakeDirectoryOptions | null | undefined, callback: (err: NodeJS.ErrnoException | null, path?: string) => void): void; + /** + * Asynchronous mkdir(2) - create a directory with a mode of `0o777`. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + export function mkdir(path: PathLike, callback: NoParamCallback): void; + export namespace mkdir { + /** + * Asynchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + function __promisify__( + path: PathLike, + options: MakeDirectoryOptions & { + recursive: true; + } + ): Promise; + /** + * Asynchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + function __promisify__( + path: PathLike, + options?: + | Mode + | (MakeDirectoryOptions & { + recursive?: false | undefined; + }) + | null + ): Promise; + /** + * Asynchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + function __promisify__(path: PathLike, options?: Mode | MakeDirectoryOptions | null): Promise; + } + /** + * Synchronously creates a directory. Returns `undefined`, or if `recursive` is`true`, the first directory path created. + * This is the synchronous version of {@link mkdir}. + * + * See the POSIX [`mkdir(2)`](http://man7.org/linux/man-pages/man2/mkdir.2.html) documentation for more details. + * @since v0.1.21 + */ + export function mkdirSync( + path: PathLike, + options: MakeDirectoryOptions & { + recursive: true; + } + ): string | undefined; + /** + * Synchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + export function mkdirSync( + path: PathLike, + options?: + | Mode + | (MakeDirectoryOptions & { + recursive?: false | undefined; + }) + | null + ): void; + /** + * Synchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + export function mkdirSync(path: PathLike, options?: Mode | MakeDirectoryOptions | null): string | undefined; + /** + * Creates a unique temporary directory. + * + * Generates six random characters to be appended behind a required`prefix` to create a unique temporary directory. Due to platform + * inconsistencies, avoid trailing `X` characters in `prefix`. Some platforms, + * notably the BSDs, can return more than six random characters, and replace + * trailing `X` characters in `prefix` with random characters. + * + * The created directory path is passed as a string to the callback's second + * parameter. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use. + * + * ```js + * import { mkdtemp } from 'fs'; + * + * mkdtemp(path.join(os.tmpdir(), 'foo-'), (err, directory) => { + * if (err) throw err; + * console.log(directory); + * // Prints: /tmp/foo-itXde2 or C:\Users\...\AppData\Local\Temp\foo-itXde2 + * }); + * ``` + * + * The `fs.mkdtemp()` method will append the six randomly selected characters + * directly to the `prefix` string. For instance, given a directory `/tmp`, if the + * intention is to create a temporary directory _within_`/tmp`, the `prefix`must end with a trailing platform-specific path separator + * (`require('path').sep`). + * + * ```js + * import { tmpdir } from 'os'; + * import { mkdtemp } from 'fs'; + * + * // The parent directory for the new temporary directory + * const tmpDir = tmpdir(); + * + * // This method is *INCORRECT*: + * mkdtemp(tmpDir, (err, directory) => { + * if (err) throw err; + * console.log(directory); + * // Will print something similar to `/tmpabc123`. + * // A new temporary directory is created at the file system root + * // rather than *within* the /tmp directory. + * }); + * + * // This method is *CORRECT*: + * import { sep } from 'path'; + * mkdtemp(`${tmpDir}${sep}`, (err, directory) => { + * if (err) throw err; + * console.log(directory); + * // Will print something similar to `/tmp/abc123`. + * // A new temporary directory is created within + * // the /tmp directory. + * }); + * ``` + * @since v5.10.0 + */ + export function mkdtemp(prefix: string, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, folder: string) => void): void; + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function mkdtemp( + prefix: string, + options: + | 'buffer' + | { + encoding: 'buffer'; + }, + callback: (err: NodeJS.ErrnoException | null, folder: Buffer) => void + ): void; + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function mkdtemp(prefix: string, options: EncodingOption, callback: (err: NodeJS.ErrnoException | null, folder: string | Buffer) => void): void; + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + */ + export function mkdtemp(prefix: string, callback: (err: NodeJS.ErrnoException | null, folder: string) => void): void; + export namespace mkdtemp { + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(prefix: string, options?: EncodingOption): Promise; + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(prefix: string, options: BufferEncodingOption): Promise; + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__(prefix: string, options?: EncodingOption): Promise; + } + /** + * Returns the created directory path. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link mkdtemp}. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use. + * @since v5.10.0 + */ + export function mkdtempSync(prefix: string, options?: EncodingOption): string; + /** + * Synchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function mkdtempSync(prefix: string, options: BufferEncodingOption): Buffer; + /** + * Synchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required prefix to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function mkdtempSync(prefix: string, options?: EncodingOption): string | Buffer; + /** + * Reads the contents of a directory. The callback gets two arguments `(err, files)`where `files` is an array of the names of the files in the directory excluding`'.'` and `'..'`. + * + * See the POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more details. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use for + * the filenames passed to the callback. If the `encoding` is set to `'buffer'`, + * the filenames returned will be passed as `Buffer` objects. + * + * If `options.withFileTypes` is set to `true`, the `files` array will contain `fs.Dirent` objects. + * @since v0.1.8 + */ + export function readdir( + path: PathLike, + options: + | { + encoding: BufferEncoding | null; + withFileTypes?: false | undefined; + } + | BufferEncoding + | undefined + | null, + callback: (err: NodeJS.ErrnoException | null, files: string[]) => void + ): void; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function readdir( + path: PathLike, + options: + | { + encoding: 'buffer'; + withFileTypes?: false | undefined; + } + | 'buffer', + callback: (err: NodeJS.ErrnoException | null, files: Buffer[]) => void + ): void; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function readdir( + path: PathLike, + options: + | (ObjectEncodingOptions & { + withFileTypes?: false | undefined; + }) + | BufferEncoding + | undefined + | null, + callback: (err: NodeJS.ErrnoException | null, files: string[] | Buffer[]) => void + ): void; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + export function readdir(path: PathLike, callback: (err: NodeJS.ErrnoException | null, files: string[]) => void): void; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. + */ + export function readdir( + path: PathLike, + options: ObjectEncodingOptions & { + withFileTypes: true; + }, + callback: (err: NodeJS.ErrnoException | null, files: Dirent[]) => void + ): void; + export namespace readdir { + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__( + path: PathLike, + options?: + | { + encoding: BufferEncoding | null; + withFileTypes?: false | undefined; + } + | BufferEncoding + | null + ): Promise; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__( + path: PathLike, + options: + | 'buffer' + | { + encoding: 'buffer'; + withFileTypes?: false | undefined; + } + ): Promise; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function __promisify__( + path: PathLike, + options?: + | (ObjectEncodingOptions & { + withFileTypes?: false | undefined; + }) + | BufferEncoding + | null + ): Promise; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options If called with `withFileTypes: true` the result data will be an array of Dirent + */ + function __promisify__( + path: PathLike, + options: ObjectEncodingOptions & { + withFileTypes: true; + } + ): Promise; + } + /** + * Reads the contents of the directory. + * + * See the POSIX [`readdir(3)`](http://man7.org/linux/man-pages/man3/readdir.3.html) documentation for more details. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use for + * the filenames returned. If the `encoding` is set to `'buffer'`, + * the filenames returned will be passed as `Buffer` objects. + * + * If `options.withFileTypes` is set to `true`, the result will contain `fs.Dirent` objects. + * @since v0.1.21 + */ + export function readdirSync( + path: PathLike, + options?: + | { + encoding: BufferEncoding | null; + withFileTypes?: false | undefined; + } + | BufferEncoding + | null + ): string[]; + /** + * Synchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function readdirSync( + path: PathLike, + options: + | { + encoding: 'buffer'; + withFileTypes?: false | undefined; + } + | 'buffer' + ): Buffer[]; + /** + * Synchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + export function readdirSync( + path: PathLike, + options?: + | (ObjectEncodingOptions & { + withFileTypes?: false | undefined; + }) + | BufferEncoding + | null + ): string[] | Buffer[]; + /** + * Synchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. + */ + export function readdirSync( + path: PathLike, + options: ObjectEncodingOptions & { + withFileTypes: true; + } + ): Dirent[]; + /** + * Closes the file descriptor. No arguments other than a possible exception are + * given to the completion callback. + * + * Calling `fs.close()` on any file descriptor (`fd`) that is currently in use + * through any other `fs` operation may lead to undefined behavior. + * + * See the POSIX [`close(2)`](http://man7.org/linux/man-pages/man2/close.2.html) documentation for more detail. + * @since v0.0.2 + */ + export function close(fd: number, callback?: NoParamCallback): void; + export namespace close { + /** + * Asynchronous close(2) - close a file descriptor. + * @param fd A file descriptor. + */ + function __promisify__(fd: number): Promise; + } + /** + * Closes the file descriptor. Returns `undefined`. + * + * Calling `fs.closeSync()` on any file descriptor (`fd`) that is currently in use + * through any other `fs` operation may lead to undefined behavior. + * + * See the POSIX [`close(2)`](http://man7.org/linux/man-pages/man2/close.2.html) documentation for more detail. + * @since v0.1.21 + */ + export function closeSync(fd: number): void; + /** + * Asynchronous file open. See the POSIX [`open(2)`](http://man7.org/linux/man-pages/man2/open.2.html) documentation for more details. + * + * `mode` sets the file mode (permission and sticky bits), but only if the file was + * created. On Windows, only the write permission can be manipulated; see {@link chmod}. + * + * The callback gets two arguments `(err, fd)`. + * + * Some characters (`< > : " / \ | ? *`) are reserved under Windows as documented + * by [Naming Files, Paths, and Namespaces](https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file). Under NTFS, if the filename contains + * a colon, Node.js will open a file system stream, as described by [this MSDN page](https://docs.microsoft.com/en-us/windows/desktop/FileIO/using-streams). + * + * Functions based on `fs.open()` exhibit this behavior as well:`fs.writeFile()`, `fs.readFile()`, etc. + * @since v0.0.2 + * @param [flags='r'] See `support of file system `flags``. + * @param [mode=0o666] + */ + export function open(path: PathLike, flags: OpenMode, mode: Mode | undefined | null, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void; + /** + * Asynchronous open(2) - open and possibly create a file. If the file is created, its mode will be `0o666`. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + */ + export function open(path: PathLike, flags: OpenMode, callback: (err: NodeJS.ErrnoException | null, fd: number) => void): void; + export namespace open { + /** + * Asynchronous open(2) - open and possibly create a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param mode A file mode. If a string is passed, it is parsed as an octal integer. If not supplied, defaults to `0o666`. + */ + function __promisify__(path: PathLike, flags: OpenMode, mode?: Mode | null): Promise; + } + /** + * Returns an integer representing the file descriptor. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link open}. + * @since v0.1.21 + * @param [flags='r'] + * @param [mode=0o666] + */ + export function openSync(path: PathLike, flags: OpenMode, mode?: Mode | null): number; + /** + * Change the file system timestamps of the object referenced by `path`. + * + * The `atime` and `mtime` arguments follow these rules: + * + * * Values can be either numbers representing Unix epoch time in seconds,`Date`s, or a numeric string like `'123456789.0'`. + * * If the value can not be converted to a number, or is `NaN`, `Infinity` or`-Infinity`, an `Error` will be thrown. + * @since v0.4.2 + */ + export function utimes(path: PathLike, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void; + export namespace utimes { + /** + * Asynchronously change file timestamps of the file referenced by the supplied path. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. + */ + function __promisify__(path: PathLike, atime: TimeLike, mtime: TimeLike): Promise; + } + /** + * Returns `undefined`. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link utimes}. + * @since v0.4.2 + */ + export function utimesSync(path: PathLike, atime: TimeLike, mtime: TimeLike): void; + /** + * Change the file system timestamps of the object referenced by the supplied file + * descriptor. See {@link utimes}. + * @since v0.4.2 + */ + export function futimes(fd: number, atime: TimeLike, mtime: TimeLike, callback: NoParamCallback): void; + export namespace futimes { + /** + * Asynchronously change file timestamps of the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param atime The last access time. If a string is provided, it will be coerced to number. + * @param mtime The last modified time. If a string is provided, it will be coerced to number. + */ + function __promisify__(fd: number, atime: TimeLike, mtime: TimeLike): Promise; + } + /** + * Synchronous version of {@link futimes}. Returns `undefined`. + * @since v0.4.2 + */ + export function futimesSync(fd: number, atime: TimeLike, mtime: TimeLike): void; + /** + * Request that all data for the open file descriptor is flushed to the storage + * device. The specific implementation is operating system and device specific. + * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. No arguments other + * than a possible exception are given to the completion callback. + * @since v0.1.96 + */ + export function fsync(fd: number, callback: NoParamCallback): void; + export namespace fsync { + /** + * Asynchronous fsync(2) - synchronize a file's in-core state with the underlying storage device. + * @param fd A file descriptor. + */ + function __promisify__(fd: number): Promise; + } + /** + * Request that all data for the open file descriptor is flushed to the storage + * device. The specific implementation is operating system and device specific. + * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. Returns `undefined`. + * @since v0.1.96 + */ + export function fsyncSync(fd: number): void; + /** + * Write `buffer` to the file specified by `fd`. If `buffer` is a normal object, it + * must have an own `toString` function property. + * + * `offset` determines the part of the buffer to be written, and `length` is + * an integer specifying the number of bytes to write. + * + * `position` refers to the offset from the beginning of the file where this data + * should be written. If `typeof position !== 'number'`, the data will be written + * at the current position. See [`pwrite(2)`](http://man7.org/linux/man-pages/man2/pwrite.2.html). + * + * The callback will be given three arguments `(err, bytesWritten, buffer)` where`bytesWritten` specifies how many _bytes_ were written from `buffer`. + * + * If this method is invoked as its `util.promisify()` ed version, it returns + * a promise for an `Object` with `bytesWritten` and `buffer` properties. + * + * It is unsafe to use `fs.write()` multiple times on the same file without waiting + * for the callback. For this scenario, {@link createWriteStream} is + * recommended. + * + * On Linux, positional writes don't work when the file is opened in append mode. + * The kernel ignores the position argument and always appends the data to + * the end of the file. + * @since v0.0.2 + */ + export function write( + fd: number, + buffer: TBuffer, + offset: number | undefined | null, + length: number | undefined | null, + position: number | undefined | null, + callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void + ): void; + /** + * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. + * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. + */ + export function write( + fd: number, + buffer: TBuffer, + offset: number | undefined | null, + length: number | undefined | null, + callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void + ): void; + /** + * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. + */ + export function write( + fd: number, + buffer: TBuffer, + offset: number | undefined | null, + callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void + ): void; + /** + * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + */ + export function write(fd: number, buffer: TBuffer, callback: (err: NodeJS.ErrnoException | null, written: number, buffer: TBuffer) => void): void; + /** + * Asynchronously writes `string` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param string A string to write. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + * @param encoding The expected string encoding. + */ + export function write( + fd: number, + string: string, + position: number | undefined | null, + encoding: BufferEncoding | undefined | null, + callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void + ): void; + /** + * Asynchronously writes `string` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param string A string to write. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + */ + export function write(fd: number, string: string, position: number | undefined | null, callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void): void; + /** + * Asynchronously writes `string` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param string A string to write. + */ + export function write(fd: number, string: string, callback: (err: NodeJS.ErrnoException | null, written: number, str: string) => void): void; + export namespace write { + /** + * Asynchronously writes `buffer` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param offset The part of the buffer to be written. If not supplied, defaults to `0`. + * @param length The number of bytes to write. If not supplied, defaults to `buffer.length - offset`. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + */ + function __promisify__( + fd: number, + buffer?: TBuffer, + offset?: number, + length?: number, + position?: number | null + ): Promise<{ + bytesWritten: number; + buffer: TBuffer; + }>; + /** + * Asynchronously writes `string` to the file referenced by the supplied file descriptor. + * @param fd A file descriptor. + * @param string A string to write. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + * @param encoding The expected string encoding. + */ + function __promisify__( + fd: number, + string: string, + position?: number | null, + encoding?: BufferEncoding | null + ): Promise<{ + bytesWritten: number; + buffer: string; + }>; + } + /** + * If `buffer` is a plain object, it must have an own (not inherited) `toString`function property. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link write}. + * @since v0.1.21 + * @return The number of bytes written. + */ + export function writeSync(fd: number, buffer: NodeJS.ArrayBufferView, offset?: number | null, length?: number | null, position?: number | null): number; + /** + * Synchronously writes `string` to the file referenced by the supplied file descriptor, returning the number of bytes written. + * @param fd A file descriptor. + * @param string A string to write. + * @param position The offset from the beginning of the file where this data should be written. If not supplied, defaults to the current position. + * @param encoding The expected string encoding. + */ + export function writeSync(fd: number, string: string, position?: number | null, encoding?: BufferEncoding | null): number; + export type ReadPosition = number | bigint; + export interface ReadSyncOptions { + /** + * @default 0 + */ + offset?: number | undefined; + /** + * @default `length of buffer` + */ + length?: number | undefined; + /** + * @default null + */ + position?: ReadPosition | null | undefined; + } + export interface ReadAsyncOptions extends ReadSyncOptions { + buffer?: TBuffer; + } + /** + * Read data from the file specified by `fd`. + * + * The callback is given the three arguments, `(err, bytesRead, buffer)`. + * + * If the file is not modified concurrently, the end-of-file is reached when the + * number of bytes read is zero. + * + * If this method is invoked as its `util.promisify()` ed version, it returns + * a promise for an `Object` with `bytesRead` and `buffer` properties. + * @since v0.0.2 + * @param buffer The buffer that the data will be written to. + * @param offset The position in `buffer` to write the data to. + * @param length The number of bytes to read. + * @param position Specifies where to begin reading from in the file. If `position` is `null` or `-1 `, data will be read from the current file position, and the file position will be updated. If + * `position` is an integer, the file position will be unchanged. + */ + export function read( + fd: number, + buffer: TBuffer, + offset: number, + length: number, + position: ReadPosition | null, + callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void + ): void; + /** + * Similar to the above `fs.read` function, this version takes an optional `options` object. + * If not otherwise specified in an `options` object, + * `buffer` defaults to `Buffer.alloc(16384)`, + * `offset` defaults to `0`, + * `length` defaults to `buffer.byteLength`, `- offset` as of Node 17.6.0 + * `position` defaults to `null` + * @since v12.17.0, 13.11.0 + */ + export function read( + fd: number, + options: ReadAsyncOptions, + callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: TBuffer) => void + ): void; + export function read( + fd: number, + callback: (err: NodeJS.ErrnoException | null, bytesRead: number, buffer: NodeJS.ArrayBufferView) => void + ): void; + export namespace read { + /** + * @param fd A file descriptor. + * @param buffer The buffer that the data will be written to. + * @param offset The offset in the buffer at which to start writing. + * @param length The number of bytes to read. + * @param position The offset from the beginning of the file from which data should be read. If `null`, data will be read from the current position. + */ + function __promisify__( + fd: number, + buffer: TBuffer, + offset: number, + length: number, + position: number | null + ): Promise<{ + bytesRead: number; + buffer: TBuffer; + }>; + function __promisify__( + fd: number, + options: ReadAsyncOptions + ): Promise<{ + bytesRead: number; + buffer: TBuffer; + }>; + function __promisify__( + fd: number + ): Promise<{ + bytesRead: number; + buffer: NodeJS.ArrayBufferView; + }>; + } + /** + * Returns the number of `bytesRead`. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link read}. + * @since v0.1.21 + */ + export function readSync(fd: number, buffer: NodeJS.ArrayBufferView, offset: number, length: number, position: ReadPosition | null): number; + /** + * Similar to the above `fs.readSync` function, this version takes an optional `options` object. + * If no `options` object is specified, it will default with the above values. + */ + export function readSync(fd: number, buffer: NodeJS.ArrayBufferView, opts?: ReadSyncOptions): number; + /** + * Asynchronously reads the entire contents of a file. + * + * ```js + * import { readFile } from 'fs'; + * + * readFile('/etc/passwd', (err, data) => { + * if (err) throw err; + * console.log(data); + * }); + * ``` + * + * The callback is passed two arguments `(err, data)`, where `data` is the + * contents of the file. + * + * If no encoding is specified, then the raw buffer is returned. + * + * If `options` is a string, then it specifies the encoding: + * + * ```js + * import { readFile } from 'fs'; + * + * readFile('/etc/passwd', 'utf8', callback); + * ``` + * + * When the path is a directory, the behavior of `fs.readFile()` and {@link readFileSync} is platform-specific. On macOS, Linux, and Windows, an + * error will be returned. On FreeBSD, a representation of the directory's contents + * will be returned. + * + * ```js + * import { readFile } from 'fs'; + * + * // macOS, Linux, and Windows + * readFile('', (err, data) => { + * // => [Error: EISDIR: illegal operation on a directory, read ] + * }); + * + * // FreeBSD + * readFile('', (err, data) => { + * // => null, + * }); + * ``` + * + * It is possible to abort an ongoing request using an `AbortSignal`. If a + * request is aborted the callback is called with an `AbortError`: + * + * ```js + * import { readFile } from 'fs'; + * + * const controller = new AbortController(); + * const signal = controller.signal; + * readFile(fileInfo[0].name, { signal }, (err, buf) => { + * // ... + * }); + * // When you want to abort the request + * controller.abort(); + * ``` + * + * The `fs.readFile()` function buffers the entire file. To minimize memory costs, + * when possible prefer streaming via `fs.createReadStream()`. + * + * Aborting an ongoing request does not abort individual operating + * system requests but rather the internal buffering `fs.readFile` performs. + * @since v0.1.29 + * @param path filename or file descriptor + */ + export function readFile( + path: PathOrFileDescriptor, + options: + | ({ + encoding?: null | undefined; + flag?: string | undefined; + } & Abortable) + | undefined + | null, + callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void + ): void; + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + export function readFile( + path: PathOrFileDescriptor, + options: + | ({ + encoding: BufferEncoding; + flag?: string | undefined; + } & Abortable) + | BufferEncoding, + callback: (err: NodeJS.ErrnoException | null, data: string) => void + ): void; + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + export function readFile( + path: PathOrFileDescriptor, + options: + | (ObjectEncodingOptions & { + flag?: string | undefined; + } & Abortable) + | BufferEncoding + | undefined + | null, + callback: (err: NodeJS.ErrnoException | null, data: string | Buffer) => void + ): void; + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + */ + export function readFile(path: PathOrFileDescriptor, callback: (err: NodeJS.ErrnoException | null, data: Buffer) => void): void; + export namespace readFile { + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options An object that may contain an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function __promisify__( + path: PathOrFileDescriptor, + options?: { + encoding?: null | undefined; + flag?: string | undefined; + } | null + ): Promise; + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function __promisify__( + path: PathOrFileDescriptor, + options: + | { + encoding: BufferEncoding; + flag?: string | undefined; + } + | BufferEncoding + ): Promise; + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function __promisify__( + path: PathOrFileDescriptor, + options?: + | (ObjectEncodingOptions & { + flag?: string | undefined; + }) + | BufferEncoding + | null + ): Promise; + } + /** + * Returns the contents of the `path`. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link readFile}. + * + * If the `encoding` option is specified then this function returns a + * string. Otherwise it returns a buffer. + * + * Similar to {@link readFile}, when the path is a directory, the behavior of`fs.readFileSync()` is platform-specific. + * + * ```js + * import { readFileSync } from 'fs'; + * + * // macOS, Linux, and Windows + * readFileSync(''); + * // => [Error: EISDIR: illegal operation on a directory, read ] + * + * // FreeBSD + * readFileSync(''); // => + * ``` + * @since v0.1.8 + * @param path filename or file descriptor + */ + export function readFileSync( + path: PathOrFileDescriptor, + options?: { + encoding?: null | undefined; + flag?: string | undefined; + } | null + ): Buffer; + /** + * Synchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + export function readFileSync( + path: PathOrFileDescriptor, + options: + | { + encoding: BufferEncoding; + flag?: string | undefined; + } + | BufferEncoding + ): string; + /** + * Synchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param options Either the encoding for the result, or an object that contains the encoding and an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + export function readFileSync( + path: PathOrFileDescriptor, + options?: + | (ObjectEncodingOptions & { + flag?: string | undefined; + }) + | BufferEncoding + | null + ): string | Buffer; + export type WriteFileOptions = + | (ObjectEncodingOptions & + Abortable & { + mode?: Mode | undefined; + flag?: string | undefined; + }) + | BufferEncoding + | null; + /** + * When `file` is a filename, asynchronously writes data to the file, replacing the + * file if it already exists. `data` can be a string or a buffer. + * + * When `file` is a file descriptor, the behavior is similar to calling`fs.write()` directly (which is recommended). See the notes below on using + * a file descriptor. + * + * The `encoding` option is ignored if `data` is a buffer. + * + * The `mode` option only affects the newly created file. See {@link open} for more details. + * + * If `data` is a plain object, it must have an own (not inherited) `toString`function property. + * + * ```js + * import { writeFile } from 'fs'; + * import { Buffer } from 'buffer'; + * + * const data = new Uint8Array(Buffer.from('Hello Node.js')); + * writeFile('message.txt', data, (err) => { + * if (err) throw err; + * console.log('The file has been saved!'); + * }); + * ``` + * + * If `options` is a string, then it specifies the encoding: + * + * ```js + * import { writeFile } from 'fs'; + * + * writeFile('message.txt', 'Hello Node.js', 'utf8', callback); + * ``` + * + * It is unsafe to use `fs.writeFile()` multiple times on the same file without + * waiting for the callback. For this scenario, {@link createWriteStream} is + * recommended. + * + * Similarly to `fs.readFile` \- `fs.writeFile` is a convenience method that + * performs multiple `write` calls internally to write the buffer passed to it. + * For performance sensitive code consider using {@link createWriteStream}. + * + * It is possible to use an `AbortSignal` to cancel an `fs.writeFile()`. + * Cancelation is "best effort", and some amount of data is likely still + * to be written. + * + * ```js + * import { writeFile } from 'fs'; + * import { Buffer } from 'buffer'; + * + * const controller = new AbortController(); + * const { signal } = controller; + * const data = new Uint8Array(Buffer.from('Hello Node.js')); + * writeFile('message.txt', data, { signal }, (err) => { + * // When a request is aborted - the callback is called with an AbortError + * }); + * // When the request should be aborted + * controller.abort(); + * ``` + * + * Aborting an ongoing request does not abort individual operating + * system requests but rather the internal buffering `fs.writeFile` performs. + * @since v0.1.29 + * @param file filename or file descriptor + */ + export function writeFile(file: PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView, options: WriteFileOptions, callback: NoParamCallback): void; + /** + * Asynchronously writes data to a file, replacing the file if it already exists. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. + */ + export function writeFile(path: PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView, callback: NoParamCallback): void; + export namespace writeFile { + /** + * Asynchronously writes data to a file, replacing the file if it already exists. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. + * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `mode` is not supplied, the default of `0o666` is used. + * If `mode` is a string, it is parsed as an octal integer. + * If `flag` is not supplied, the default of `'w'` is used. + */ + function __promisify__(path: PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView, options?: WriteFileOptions): Promise; + } + /** + * Returns `undefined`. + * + * If `data` is a plain object, it must have an own (not inherited) `toString`function property. + * + * The `mode` option only affects the newly created file. See {@link open} for more details. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link writeFile}. + * @since v0.1.29 + * @param file filename or file descriptor + */ + export function writeFileSync(file: PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView, options?: WriteFileOptions): void; + /** + * Asynchronously append data to a file, creating the file if it does not yet + * exist. `data` can be a string or a `Buffer`. + * + * The `mode` option only affects the newly created file. See {@link open} for more details. + * + * ```js + * import { appendFile } from 'fs'; + * + * appendFile('message.txt', 'data to append', (err) => { + * if (err) throw err; + * console.log('The "data to append" was appended to file!'); + * }); + * ``` + * + * If `options` is a string, then it specifies the encoding: + * + * ```js + * import { appendFile } from 'fs'; + * + * appendFile('message.txt', 'data to append', 'utf8', callback); + * ``` + * + * The `path` may be specified as a numeric file descriptor that has been opened + * for appending (using `fs.open()` or `fs.openSync()`). The file descriptor will + * not be closed automatically. + * + * ```js + * import { open, close, appendFile } from 'fs'; + * + * function closeFd(fd) { + * close(fd, (err) => { + * if (err) throw err; + * }); + * } + * + * open('message.txt', 'a', (err, fd) => { + * if (err) throw err; + * + * try { + * appendFile(fd, 'data to append', 'utf8', (err) => { + * closeFd(fd); + * if (err) throw err; + * }); + * } catch (err) { + * closeFd(fd); + * throw err; + * } + * }); + * ``` + * @since v0.6.7 + * @param path filename or file descriptor + */ + export function appendFile(path: PathOrFileDescriptor, data: string | Uint8Array, options: WriteFileOptions, callback: NoParamCallback): void; + /** + * Asynchronously append data to a file, creating the file if it does not exist. + * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. + */ + export function appendFile(file: PathOrFileDescriptor, data: string | Uint8Array, callback: NoParamCallback): void; + export namespace appendFile { + /** + * Asynchronously append data to a file, creating the file if it does not exist. + * @param file A path to a file. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + * If a file descriptor is provided, the underlying file will _not_ be closed automatically. + * @param data The data to write. If something other than a Buffer or Uint8Array is provided, the value is coerced to a string. + * @param options Either the encoding for the file, or an object optionally specifying the encoding, file mode, and flag. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `mode` is not supplied, the default of `0o666` is used. + * If `mode` is a string, it is parsed as an octal integer. + * If `flag` is not supplied, the default of `'a'` is used. + */ + function __promisify__(file: PathOrFileDescriptor, data: string | Uint8Array, options?: WriteFileOptions): Promise; + } + /** + * Synchronously append data to a file, creating the file if it does not yet + * exist. `data` can be a string or a `Buffer`. + * + * The `mode` option only affects the newly created file. See {@link open} for more details. + * + * ```js + * import { appendFileSync } from 'fs'; + * + * try { + * appendFileSync('message.txt', 'data to append'); + * console.log('The "data to append" was appended to file!'); + * } catch (err) { + * // Handle the error + * } + * ``` + * + * If `options` is a string, then it specifies the encoding: + * + * ```js + * import { appendFileSync } from 'fs'; + * + * appendFileSync('message.txt', 'data to append', 'utf8'); + * ``` + * + * The `path` may be specified as a numeric file descriptor that has been opened + * for appending (using `fs.open()` or `fs.openSync()`). The file descriptor will + * not be closed automatically. + * + * ```js + * import { openSync, closeSync, appendFileSync } from 'fs'; + * + * let fd; + * + * try { + * fd = openSync('message.txt', 'a'); + * appendFileSync(fd, 'data to append', 'utf8'); + * } catch (err) { + * // Handle the error + * } finally { + * if (fd !== undefined) + * closeSync(fd); + * } + * ``` + * @since v0.6.7 + * @param path filename or file descriptor + */ + export function appendFileSync(path: PathOrFileDescriptor, data: string | Uint8Array, options?: WriteFileOptions): void; + /** + * Watch for changes on `filename`. The callback `listener` will be called each + * time the file is accessed. + * + * The `options` argument may be omitted. If provided, it should be an object. The`options` object may contain a boolean named `persistent` that indicates + * whether the process should continue to run as long as files are being watched. + * The `options` object may specify an `interval` property indicating how often the + * target should be polled in milliseconds. + * + * The `listener` gets two arguments the current stat object and the previous + * stat object: + * + * ```js + * import { watchFile } from 'fs'; + * + * watchFile('message.text', (curr, prev) => { + * console.log(`the current mtime is: ${curr.mtime}`); + * console.log(`the previous mtime was: ${prev.mtime}`); + * }); + * ``` + * + * These stat objects are instances of `fs.Stat`. If the `bigint` option is `true`, + * the numeric values in these objects are specified as `BigInt`s. + * + * To be notified when the file was modified, not just accessed, it is necessary + * to compare `curr.mtimeMs` and `prev.mtimeMs`. + * + * When an `fs.watchFile` operation results in an `ENOENT` error, it + * will invoke the listener once, with all the fields zeroed (or, for dates, the + * Unix Epoch). If the file is created later on, the listener will be called + * again, with the latest stat objects. This is a change in functionality since + * v0.10. + * + * Using {@link watch} is more efficient than `fs.watchFile` and`fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and`fs.unwatchFile` when possible. + * + * When a file being watched by `fs.watchFile()` disappears and reappears, + * then the contents of `previous` in the second callback event (the file's + * reappearance) will be the same as the contents of `previous` in the first + * callback event (its disappearance). + * + * This happens when: + * + * * the file is deleted, followed by a restore + * * the file is renamed and then renamed a second time back to its original name + * @since v0.1.31 + */ + export interface WatchFileOptions { + bigint?: boolean | undefined; + persistent?: boolean | undefined; + interval?: number | undefined; + } + /** + * Watch for changes on `filename`. The callback `listener` will be called each + * time the file is accessed. + * + * The `options` argument may be omitted. If provided, it should be an object. The`options` object may contain a boolean named `persistent` that indicates + * whether the process should continue to run as long as files are being watched. + * The `options` object may specify an `interval` property indicating how often the + * target should be polled in milliseconds. + * + * The `listener` gets two arguments the current stat object and the previous + * stat object: + * + * ```js + * import { watchFile } from 'fs'; + * + * watchFile('message.text', (curr, prev) => { + * console.log(`the current mtime is: ${curr.mtime}`); + * console.log(`the previous mtime was: ${prev.mtime}`); + * }); + * ``` + * + * These stat objects are instances of `fs.Stat`. If the `bigint` option is `true`, + * the numeric values in these objects are specified as `BigInt`s. + * + * To be notified when the file was modified, not just accessed, it is necessary + * to compare `curr.mtimeMs` and `prev.mtimeMs`. + * + * When an `fs.watchFile` operation results in an `ENOENT` error, it + * will invoke the listener once, with all the fields zeroed (or, for dates, the + * Unix Epoch). If the file is created later on, the listener will be called + * again, with the latest stat objects. This is a change in functionality since + * v0.10. + * + * Using {@link watch} is more efficient than `fs.watchFile` and`fs.unwatchFile`. `fs.watch` should be used instead of `fs.watchFile` and`fs.unwatchFile` when possible. + * + * When a file being watched by `fs.watchFile()` disappears and reappears, + * then the contents of `previous` in the second callback event (the file's + * reappearance) will be the same as the contents of `previous` in the first + * callback event (its disappearance). + * + * This happens when: + * + * * the file is deleted, followed by a restore + * * the file is renamed and then renamed a second time back to its original name + * @since v0.1.31 + */ + export function watchFile( + filename: PathLike, + options: + | (WatchFileOptions & { + bigint?: false | undefined; + }) + | undefined, + listener: (curr: Stats, prev: Stats) => void + ): StatWatcher; + export function watchFile( + filename: PathLike, + options: + | (WatchFileOptions & { + bigint: true; + }) + | undefined, + listener: (curr: BigIntStats, prev: BigIntStats) => void + ): StatWatcher; + /** + * Watch for changes on `filename`. The callback `listener` will be called each time the file is accessed. + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + */ + export function watchFile(filename: PathLike, listener: (curr: Stats, prev: Stats) => void): StatWatcher; + /** + * Stop watching for changes on `filename`. If `listener` is specified, only that + * particular listener is removed. Otherwise, _all_ listeners are removed, + * effectively stopping watching of `filename`. + * + * Calling `fs.unwatchFile()` with a filename that is not being watched is a + * no-op, not an error. + * + * Using {@link watch} is more efficient than `fs.watchFile()` and`fs.unwatchFile()`. `fs.watch()` should be used instead of `fs.watchFile()`and `fs.unwatchFile()` when possible. + * @since v0.1.31 + * @param listener Optional, a listener previously attached using `fs.watchFile()` + */ + export function unwatchFile(filename: PathLike, listener?: (curr: Stats, prev: Stats) => void): void; + export interface WatchOptions extends Abortable { + encoding?: BufferEncoding | 'buffer' | undefined; + persistent?: boolean | undefined; + recursive?: boolean | undefined; + } + export type WatchEventType = 'rename' | 'change'; + export type WatchListener = (event: WatchEventType, filename: T) => void; + /** + * Watch for changes on `filename`, where `filename` is either a file or a + * directory. + * + * The second argument is optional. If `options` is provided as a string, it + * specifies the `encoding`. Otherwise `options` should be passed as an object. + * + * The listener callback gets two arguments `(eventType, filename)`. `eventType`is either `'rename'` or `'change'`, and `filename` is the name of the file + * which triggered the event. + * + * On most platforms, `'rename'` is emitted whenever a filename appears or + * disappears in the directory. + * + * The listener callback is attached to the `'change'` event fired by `fs.FSWatcher`, but it is not the same thing as the `'change'` value of`eventType`. + * + * If a `signal` is passed, aborting the corresponding AbortController will close + * the returned `fs.FSWatcher`. + * @since v0.5.10 + * @param listener + */ + export function watch( + filename: PathLike, + options: + | (WatchOptions & { + encoding: 'buffer'; + }) + | 'buffer', + listener?: WatchListener + ): FSWatcher; + /** + * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `persistent` is not supplied, the default of `true` is used. + * If `recursive` is not supplied, the default of `false` is used. + */ + export function watch(filename: PathLike, options?: WatchOptions | BufferEncoding | null, listener?: WatchListener): FSWatcher; + /** + * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `persistent` is not supplied, the default of `true` is used. + * If `recursive` is not supplied, the default of `false` is used. + */ + export function watch(filename: PathLike, options: WatchOptions | string, listener?: WatchListener): FSWatcher; + /** + * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + */ + export function watch(filename: PathLike, listener?: WatchListener): FSWatcher; + /** + * Test whether or not the given path exists by checking with the file system. + * Then call the `callback` argument with either true or false: + * + * ```js + * import { exists } from 'fs'; + * + * exists('/etc/passwd', (e) => { + * console.log(e ? 'it exists' : 'no passwd!'); + * }); + * ``` + * + * **The parameters for this callback are not consistent with other Node.js** + * **callbacks.** Normally, the first parameter to a Node.js callback is an `err`parameter, optionally followed by other parameters. The `fs.exists()` callback + * has only one boolean parameter. This is one reason `fs.access()` is recommended + * instead of `fs.exists()`. + * + * Using `fs.exists()` to check for the existence of a file before calling`fs.open()`, `fs.readFile()` or `fs.writeFile()` is not recommended. Doing + * so introduces a race condition, since other processes may change the file's + * state between the two calls. Instead, user code should open/read/write the + * file directly and handle the error raised if the file does not exist. + * + * **write (NOT RECOMMENDED)** + * + * ```js + * import { exists, open, close } from 'fs'; + * + * exists('myfile', (e) => { + * if (e) { + * console.error('myfile already exists'); + * } else { + * open('myfile', 'wx', (err, fd) => { + * if (err) throw err; + * + * try { + * writeMyData(fd); + * } finally { + * close(fd, (err) => { + * if (err) throw err; + * }); + * } + * }); + * } + * }); + * ``` + * + * **write (RECOMMENDED)** + * + * ```js + * import { open, close } from 'fs'; + * open('myfile', 'wx', (err, fd) => { + * if (err) { + * if (err.code === 'EEXIST') { + * console.error('myfile already exists'); + * return; + * } + * + * throw err; + * } + * + * try { + * writeMyData(fd); + * } finally { + * close(fd, (err) => { + * if (err) throw err; + * }); + * } + * }); + * ``` + * + * **read (NOT RECOMMENDED)** + * + * ```js + * import { open, close, exists } from 'fs'; + * + * exists('myfile', (e) => { + * if (e) { + * open('myfile', 'r', (err, fd) => { + * if (err) throw err; + * + * try { + * readMyData(fd); + * } finally { + * close(fd, (err) => { + * if (err) throw err; + * }); + * } + * }); + * } else { + * console.error('myfile does not exist'); + * } + * }); + * ``` + * + * **read (RECOMMENDED)** + * + * ```js + * import { open, close } from 'fs'; + * + * open('myfile', 'r', (err, fd) => { + * if (err) { + * if (err.code === 'ENOENT') { + * console.error('myfile does not exist'); + * return; + * } + * + * throw err; + * } + * + * try { + * readMyData(fd); + * } finally { + * close(fd, (err) => { + * if (err) throw err; + * }); + * } + * }); + * ``` + * + * The "not recommended" examples above check for existence and then use the + * file; the "recommended" examples are better because they use the file directly + * and handle the error, if any. + * + * In general, check for the existence of a file only if the file won’t be + * used directly, for example when its existence is a signal from another + * process. + * @since v0.0.2 + * @deprecated Since v1.0.0 - Use {@link stat} or {@link access} instead. + */ + export function exists(path: PathLike, callback: (exists: boolean) => void): void; + /** @deprecated */ + export namespace exists { + /** + * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function __promisify__(path: PathLike): Promise; + } + /** + * Returns `true` if the path exists, `false` otherwise. + * + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link exists}. + * + * `fs.exists()` is deprecated, but `fs.existsSync()` is not. The `callback`parameter to `fs.exists()` accepts parameters that are inconsistent with other + * Node.js callbacks. `fs.existsSync()` does not use a callback. + * + * ```js + * import { existsSync } from 'fs'; + * + * if (existsSync('/etc/passwd')) + * console.log('The path exists.'); + * ``` + * @since v0.1.21 + */ + export function existsSync(path: PathLike): boolean; + export namespace constants { + // File Access Constants + /** Constant for fs.access(). File is visible to the calling process. */ + const F_OK: number; + /** Constant for fs.access(). File can be read by the calling process. */ + const R_OK: number; + /** Constant for fs.access(). File can be written by the calling process. */ + const W_OK: number; + /** Constant for fs.access(). File can be executed by the calling process. */ + const X_OK: number; + // File Copy Constants + /** Constant for fs.copyFile. Flag indicating the destination file should not be overwritten if it already exists. */ + const COPYFILE_EXCL: number; + /** + * Constant for fs.copyFile. copy operation will attempt to create a copy-on-write reflink. + * If the underlying platform does not support copy-on-write, then a fallback copy mechanism is used. + */ + const COPYFILE_FICLONE: number; + /** + * Constant for fs.copyFile. Copy operation will attempt to create a copy-on-write reflink. + * If the underlying platform does not support copy-on-write, then the operation will fail with an error. + */ + const COPYFILE_FICLONE_FORCE: number; + // File Open Constants + /** Constant for fs.open(). Flag indicating to open a file for read-only access. */ + const O_RDONLY: number; + /** Constant for fs.open(). Flag indicating to open a file for write-only access. */ + const O_WRONLY: number; + /** Constant for fs.open(). Flag indicating to open a file for read-write access. */ + const O_RDWR: number; + /** Constant for fs.open(). Flag indicating to create the file if it does not already exist. */ + const O_CREAT: number; + /** Constant for fs.open(). Flag indicating that opening a file should fail if the O_CREAT flag is set and the file already exists. */ + const O_EXCL: number; + /** + * Constant for fs.open(). Flag indicating that if path identifies a terminal device, + * opening the path shall not cause that terminal to become the controlling terminal for the process + * (if the process does not already have one). + */ + const O_NOCTTY: number; + /** Constant for fs.open(). Flag indicating that if the file exists and is a regular file, and the file is opened successfully for write access, its length shall be truncated to zero. */ + const O_TRUNC: number; + /** Constant for fs.open(). Flag indicating that data will be appended to the end of the file. */ + const O_APPEND: number; + /** Constant for fs.open(). Flag indicating that the open should fail if the path is not a directory. */ + const O_DIRECTORY: number; + /** + * constant for fs.open(). + * Flag indicating reading accesses to the file system will no longer result in + * an update to the atime information associated with the file. + * This flag is available on Linux operating systems only. + */ + const O_NOATIME: number; + /** Constant for fs.open(). Flag indicating that the open should fail if the path is a symbolic link. */ + const O_NOFOLLOW: number; + /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O. */ + const O_SYNC: number; + /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O with write operations waiting for data integrity. */ + const O_DSYNC: number; + /** Constant for fs.open(). Flag indicating to open the symbolic link itself rather than the resource it is pointing to. */ + const O_SYMLINK: number; + /** Constant for fs.open(). When set, an attempt will be made to minimize caching effects of file I/O. */ + const O_DIRECT: number; + /** Constant for fs.open(). Flag indicating to open the file in nonblocking mode when possible. */ + const O_NONBLOCK: number; + // File Type Constants + /** Constant for fs.Stats mode property for determining a file's type. Bit mask used to extract the file type code. */ + const S_IFMT: number; + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a regular file. */ + const S_IFREG: number; + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a directory. */ + const S_IFDIR: number; + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a character-oriented device file. */ + const S_IFCHR: number; + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a block-oriented device file. */ + const S_IFBLK: number; + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a FIFO/pipe. */ + const S_IFIFO: number; + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a symbolic link. */ + const S_IFLNK: number; + /** Constant for fs.Stats mode property for determining a file's type. File type constant for a socket. */ + const S_IFSOCK: number; + // File Mode Constants + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by owner. */ + const S_IRWXU: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by owner. */ + const S_IRUSR: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by owner. */ + const S_IWUSR: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by owner. */ + const S_IXUSR: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by group. */ + const S_IRWXG: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by group. */ + const S_IRGRP: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by group. */ + const S_IWGRP: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by group. */ + const S_IXGRP: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable, writable and executable by others. */ + const S_IRWXO: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating readable by others. */ + const S_IROTH: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating writable by others. */ + const S_IWOTH: number; + /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by others. */ + const S_IXOTH: number; + /** + * When set, a memory file mapping is used to access the file. This flag + * is available on Windows operating systems only. On other operating systems, + * this flag is ignored. + */ + const UV_FS_O_FILEMAP: number; + } + /** + * Tests a user's permissions for the file or directory specified by `path`. + * The `mode` argument is an optional integer that specifies the accessibility + * checks to be performed. Check `File access constants` for possible values + * of `mode`. It is possible to create a mask consisting of the bitwise OR of + * two or more values (e.g. `fs.constants.W_OK | fs.constants.R_OK`). + * + * The final argument, `callback`, is a callback function that is invoked with + * a possible error argument. If any of the accessibility checks fail, the error + * argument will be an `Error` object. The following examples check if`package.json` exists, and if it is readable or writable. + * + * ```js + * import { access, constants } from 'fs'; + * + * const file = 'package.json'; + * + * // Check if the file exists in the current directory. + * access(file, constants.F_OK, (err) => { + * console.log(`${file} ${err ? 'does not exist' : 'exists'}`); + * }); + * + * // Check if the file is readable. + * access(file, constants.R_OK, (err) => { + * console.log(`${file} ${err ? 'is not readable' : 'is readable'}`); + * }); + * + * // Check if the file is writable. + * access(file, constants.W_OK, (err) => { + * console.log(`${file} ${err ? 'is not writable' : 'is writable'}`); + * }); + * + * // Check if the file exists in the current directory, and if it is writable. + * access(file, constants.F_OK | constants.W_OK, (err) => { + * if (err) { + * console.error( + * `${file} ${err.code === 'ENOENT' ? 'does not exist' : 'is read-only'}`); + * } else { + * console.log(`${file} exists, and it is writable`); + * } + * }); + * ``` + * + * Do not use `fs.access()` to check for the accessibility of a file before calling`fs.open()`, `fs.readFile()` or `fs.writeFile()`. Doing + * so introduces a race condition, since other processes may change the file's + * state between the two calls. Instead, user code should open/read/write the + * file directly and handle the error raised if the file is not accessible. + * + * **write (NOT RECOMMENDED)** + * + * ```js + * import { access, open, close } from 'fs'; + * + * access('myfile', (err) => { + * if (!err) { + * console.error('myfile already exists'); + * return; + * } + * + * open('myfile', 'wx', (err, fd) => { + * if (err) throw err; + * + * try { + * writeMyData(fd); + * } finally { + * close(fd, (err) => { + * if (err) throw err; + * }); + * } + * }); + * }); + * ``` + * + * **write (RECOMMENDED)** + * + * ```js + * import { open, close } from 'fs'; + * + * open('myfile', 'wx', (err, fd) => { + * if (err) { + * if (err.code === 'EEXIST') { + * console.error('myfile already exists'); + * return; + * } + * + * throw err; + * } + * + * try { + * writeMyData(fd); + * } finally { + * close(fd, (err) => { + * if (err) throw err; + * }); + * } + * }); + * ``` + * + * **read (NOT RECOMMENDED)** + * + * ```js + * import { access, open, close } from 'fs'; + * access('myfile', (err) => { + * if (err) { + * if (err.code === 'ENOENT') { + * console.error('myfile does not exist'); + * return; + * } + * + * throw err; + * } + * + * open('myfile', 'r', (err, fd) => { + * if (err) throw err; + * + * try { + * readMyData(fd); + * } finally { + * close(fd, (err) => { + * if (err) throw err; + * }); + * } + * }); + * }); + * ``` + * + * **read (RECOMMENDED)** + * + * ```js + * import { open, close } from 'fs'; + * + * open('myfile', 'r', (err, fd) => { + * if (err) { + * if (err.code === 'ENOENT') { + * console.error('myfile does not exist'); + * return; + * } + * + * throw err; + * } + * + * try { + * readMyData(fd); + * } finally { + * close(fd, (err) => { + * if (err) throw err; + * }); + * } + * }); + * ``` + * + * The "not recommended" examples above check for accessibility and then use the + * file; the "recommended" examples are better because they use the file directly + * and handle the error, if any. + * + * In general, check for the accessibility of a file only if the file will not be + * used directly, for example when its accessibility is a signal from another + * process. + * + * On Windows, access-control policies (ACLs) on a directory may limit access to + * a file or directory. The `fs.access()` function, however, does not check the + * ACL and therefore may report that a path is accessible even if the ACL restricts + * the user from reading or writing to it. + * @since v0.11.15 + * @param [mode=fs.constants.F_OK] + */ + export function access(path: PathLike, mode: number | undefined, callback: NoParamCallback): void; + /** + * Asynchronously tests a user's permissions for the file specified by path. + * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + */ + export function access(path: PathLike, callback: NoParamCallback): void; + export namespace access { + /** + * Asynchronously tests a user's permissions for the file specified by path. + * @param path A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * URL support is _experimental_. + */ + function __promisify__(path: PathLike, mode?: number): Promise; + } + /** + * Synchronously tests a user's permissions for the file or directory specified + * by `path`. The `mode` argument is an optional integer that specifies the + * accessibility checks to be performed. Check `File access constants` for + * possible values of `mode`. It is possible to create a mask consisting of + * the bitwise OR of two or more values + * (e.g. `fs.constants.W_OK | fs.constants.R_OK`). + * + * If any of the accessibility checks fail, an `Error` will be thrown. Otherwise, + * the method will return `undefined`. + * + * ```js + * import { accessSync, constants } from 'fs'; + * + * try { + * accessSync('etc/passwd', constants.R_OK | constants.W_OK); + * console.log('can read/write'); + * } catch (err) { + * console.error('no access!'); + * } + * ``` + * @since v0.11.15 + * @param [mode=fs.constants.F_OK] + */ + export function accessSync(path: PathLike, mode?: number): void; + interface StreamOptions { + flags?: string | undefined; + encoding?: BufferEncoding | undefined; + fd?: number | promises.FileHandle | undefined; + mode?: number | undefined; + autoClose?: boolean | undefined; + /** + * @default false + */ + emitClose?: boolean | undefined; + start?: number | undefined; + highWaterMark?: number | undefined; + } + interface ReadStreamOptions extends StreamOptions { + end?: number | undefined; + } + /** + * Unlike the 16 kb default `highWaterMark` for a `stream.Readable`, the stream + * returned by this method has a default `highWaterMark` of 64 kb. + * + * `options` can include `start` and `end` values to read a range of bytes from + * the file instead of the entire file. Both `start` and `end` are inclusive and + * start counting at 0, allowed values are in the + * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. If `fd` is specified and `start` is + * omitted or `undefined`, `fs.createReadStream()` reads sequentially from the + * current file position. The `encoding` can be any one of those accepted by `Buffer`. + * + * If `fd` is specified, `ReadStream` will ignore the `path` argument and will use + * the specified file descriptor. This means that no `'open'` event will be + * emitted. `fd` should be blocking; non-blocking `fd`s should be passed to `net.Socket`. + * + * If `fd` points to a character device that only supports blocking reads + * (such as keyboard or sound card), read operations do not finish until data is + * available. This can prevent the process from exiting and the stream from + * closing naturally. + * + * By default, the stream will emit a `'close'` event after it has been + * destroyed. Set the `emitClose` option to `false` to change this behavior. + * + * By providing the `fs` option, it is possible to override the corresponding `fs`implementations for `open`, `read`, and `close`. When providing the `fs` option, + * an override for `read` is required. If no `fd` is provided, an override for`open` is also required. If `autoClose` is `true`, an override for `close` is + * also required. + * + * ```js + * import { createReadStream } from 'fs'; + * + * // Create a stream from some character device. + * const stream = createReadStream('/dev/input/event0'); + * setTimeout(() => { + * stream.close(); // This may not close the stream. + * // Artificially marking end-of-stream, as if the underlying resource had + * // indicated end-of-file by itself, allows the stream to close. + * // This does not cancel pending read operations, and if there is such an + * // operation, the process may still not be able to exit successfully + * // until it finishes. + * stream.push(null); + * stream.read(0); + * }, 100); + * ``` + * + * If `autoClose` is false, then the file descriptor won't be closed, even if + * there's an error. It is the application's responsibility to close it and make + * sure there's no file descriptor leak. If `autoClose` is set to true (default + * behavior), on `'error'` or `'end'` the file descriptor will be closed + * automatically. + * + * `mode` sets the file mode (permission and sticky bits), but only if the + * file was created. + * + * An example to read the last 10 bytes of a file which is 100 bytes long: + * + * ```js + * import { createReadStream } from 'fs'; + * + * createReadStream('sample.txt', { start: 90, end: 99 }); + * ``` + * + * If `options` is a string, then it specifies the encoding. + * @since v0.1.31 + */ + export function createReadStream(path: PathLike, options?: BufferEncoding | ReadStreamOptions): ReadStream; + /** + * `options` may also include a `start` option to allow writing data at some + * position past the beginning of the file, allowed values are in the + * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than replacing + * it may require the `flags` option to be set to `r+` rather than the default `w`. + * The `encoding` can be any one of those accepted by `Buffer`. + * + * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'`the file descriptor will be closed automatically. If `autoClose` is false, + * then the file descriptor won't be closed, even if there's an error. + * It is the application's responsibility to close it and make sure there's no + * file descriptor leak. + * + * By default, the stream will emit a `'close'` event after it has been + * destroyed. Set the `emitClose` option to `false` to change this behavior. + * + * By providing the `fs` option it is possible to override the corresponding `fs`implementations for `open`, `write`, `writev` and `close`. Overriding `write()`without `writev()` can reduce + * performance as some optimizations (`_writev()`) + * will be disabled. When providing the `fs` option, overrides for at least one of`write` and `writev` are required. If no `fd` option is supplied, an override + * for `open` is also required. If `autoClose` is `true`, an override for `close`is also required. + * + * Like `fs.ReadStream`, if `fd` is specified, `fs.WriteStream` will ignore the`path` argument and will use the specified file descriptor. This means that no`'open'` event will be + * emitted. `fd` should be blocking; non-blocking `fd`s + * should be passed to `net.Socket`. + * + * If `options` is a string, then it specifies the encoding. + * @since v0.1.31 + */ + export function createWriteStream(path: PathLike, options?: BufferEncoding | StreamOptions): WriteStream; + /** + * Forces all currently queued I/O operations associated with the file to the + * operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. No arguments other + * than a possible + * exception are given to the completion callback. + * @since v0.1.96 + */ + export function fdatasync(fd: number, callback: NoParamCallback): void; + export namespace fdatasync { + /** + * Asynchronous fdatasync(2) - synchronize a file's in-core state with storage device. + * @param fd A file descriptor. + */ + function __promisify__(fd: number): Promise; + } + /** + * Forces all currently queued I/O operations associated with the file to the + * operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. Returns `undefined`. + * @since v0.1.96 + */ + export function fdatasyncSync(fd: number): void; + /** + * Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it + * already exists. No arguments other than a possible exception are given to the + * callback function. Node.js makes no guarantees about the atomicity of the copy + * operation. If an error occurs after the destination file has been opened for + * writing, Node.js will attempt to remove the destination. + * + * `mode` is an optional integer that specifies the behavior + * of the copy operation. It is possible to create a mask consisting of the bitwise + * OR of two or more values (e.g.`fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`). + * + * * `fs.constants.COPYFILE_EXCL`: The copy operation will fail if `dest` already + * exists. + * * `fs.constants.COPYFILE_FICLONE`: The copy operation will attempt to create a + * copy-on-write reflink. If the platform does not support copy-on-write, then a + * fallback copy mechanism is used. + * * `fs.constants.COPYFILE_FICLONE_FORCE`: The copy operation will attempt to + * create a copy-on-write reflink. If the platform does not support + * copy-on-write, then the operation will fail. + * + * ```js + * import { copyFile, constants } from 'fs'; + * + * function callback(err) { + * if (err) throw err; + * console.log('source.txt was copied to destination.txt'); + * } + * + * // destination.txt will be created or overwritten by default. + * copyFile('source.txt', 'destination.txt', callback); + * + * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists. + * copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL, callback); + * ``` + * @since v8.5.0 + * @param src source filename to copy + * @param dest destination filename of the copy operation + * @param [mode=0] modifiers for copy operation. + */ + export function copyFile(src: PathLike, dest: PathLike, callback: NoParamCallback): void; + export function copyFile(src: PathLike, dest: PathLike, mode: number, callback: NoParamCallback): void; + export namespace copyFile { + function __promisify__(src: PathLike, dst: PathLike, mode?: number): Promise; + } + /** + * Synchronously copies `src` to `dest`. By default, `dest` is overwritten if it + * already exists. Returns `undefined`. Node.js makes no guarantees about the + * atomicity of the copy operation. If an error occurs after the destination file + * has been opened for writing, Node.js will attempt to remove the destination. + * + * `mode` is an optional integer that specifies the behavior + * of the copy operation. It is possible to create a mask consisting of the bitwise + * OR of two or more values (e.g.`fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`). + * + * * `fs.constants.COPYFILE_EXCL`: The copy operation will fail if `dest` already + * exists. + * * `fs.constants.COPYFILE_FICLONE`: The copy operation will attempt to create a + * copy-on-write reflink. If the platform does not support copy-on-write, then a + * fallback copy mechanism is used. + * * `fs.constants.COPYFILE_FICLONE_FORCE`: The copy operation will attempt to + * create a copy-on-write reflink. If the platform does not support + * copy-on-write, then the operation will fail. + * + * ```js + * import { copyFileSync, constants } from 'fs'; + * + * // destination.txt will be created or overwritten by default. + * copyFileSync('source.txt', 'destination.txt'); + * console.log('source.txt was copied to destination.txt'); + * + * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists. + * copyFileSync('source.txt', 'destination.txt', constants.COPYFILE_EXCL); + * ``` + * @since v8.5.0 + * @param src source filename to copy + * @param dest destination filename of the copy operation + * @param [mode=0] modifiers for copy operation. + */ + export function copyFileSync(src: PathLike, dest: PathLike, mode?: number): void; + /** + * Write an array of `ArrayBufferView`s to the file specified by `fd` using`writev()`. + * + * `position` is the offset from the beginning of the file where this data + * should be written. If `typeof position !== 'number'`, the data will be written + * at the current position. + * + * The callback will be given three arguments: `err`, `bytesWritten`, and`buffers`. `bytesWritten` is how many bytes were written from `buffers`. + * + * If this method is `util.promisify()` ed, it returns a promise for an`Object` with `bytesWritten` and `buffers` properties. + * + * It is unsafe to use `fs.writev()` multiple times on the same file without + * waiting for the callback. For this scenario, use {@link createWriteStream}. + * + * On Linux, positional writes don't work when the file is opened in append mode. + * The kernel ignores the position argument and always appends the data to + * the end of the file. + * @since v12.9.0 + */ + export function writev(fd: number, buffers: ReadonlyArray, cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void): void; + export function writev( + fd: number, + buffers: ReadonlyArray, + position: number, + cb: (err: NodeJS.ErrnoException | null, bytesWritten: number, buffers: NodeJS.ArrayBufferView[]) => void + ): void; + export interface WriteVResult { + bytesWritten: number; + buffers: NodeJS.ArrayBufferView[]; + } + export namespace writev { + function __promisify__(fd: number, buffers: ReadonlyArray, position?: number): Promise; + } + /** + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link writev}. + * @since v12.9.0 + * @return The number of bytes written. + */ + export function writevSync(fd: number, buffers: ReadonlyArray, position?: number): number; + /** + * Read from a file specified by `fd` and write to an array of `ArrayBufferView`s + * using `readv()`. + * + * `position` is the offset from the beginning of the file from where data + * should be read. If `typeof position !== 'number'`, the data will be read + * from the current position. + * + * The callback will be given three arguments: `err`, `bytesRead`, and`buffers`. `bytesRead` is how many bytes were read from the file. + * + * If this method is invoked as its `util.promisify()` ed version, it returns + * a promise for an `Object` with `bytesRead` and `buffers` properties. + * @since v13.13.0, v12.17.0 + */ + export function readv(fd: number, buffers: ReadonlyArray, cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void): void; + export function readv( + fd: number, + buffers: ReadonlyArray, + position: number, + cb: (err: NodeJS.ErrnoException | null, bytesRead: number, buffers: NodeJS.ArrayBufferView[]) => void + ): void; + export interface ReadVResult { + bytesRead: number; + buffers: NodeJS.ArrayBufferView[]; + } + export namespace readv { + function __promisify__(fd: number, buffers: ReadonlyArray, position?: number): Promise; + } + /** + * For detailed information, see the documentation of the asynchronous version of + * this API: {@link readv}. + * @since v13.13.0, v12.17.0 + * @return The number of bytes read. + */ + export function readvSync(fd: number, buffers: ReadonlyArray, position?: number): number; + export interface OpenDirOptions { + encoding?: BufferEncoding | undefined; + /** + * Number of directory entries that are buffered + * internally when reading from the directory. Higher values lead to better + * performance but higher memory usage. + * @default 32 + */ + bufferSize?: number | undefined; + } + /** + * Synchronously open a directory. See [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html). + * + * Creates an `fs.Dir`, which contains all further functions for reading from + * and cleaning up the directory. + * + * The `encoding` option sets the encoding for the `path` while opening the + * directory and subsequent read operations. + * @since v12.12.0 + */ + export function opendirSync(path: PathLike, options?: OpenDirOptions): Dir; + /** + * Asynchronously open a directory. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for + * more details. + * + * Creates an `fs.Dir`, which contains all further functions for reading from + * and cleaning up the directory. + * + * The `encoding` option sets the encoding for the `path` while opening the + * directory and subsequent read operations. + * @since v12.12.0 + */ + export function opendir(path: PathLike, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void; + export function opendir(path: PathLike, options: OpenDirOptions, cb: (err: NodeJS.ErrnoException | null, dir: Dir) => void): void; + export namespace opendir { + function __promisify__(path: PathLike, options?: OpenDirOptions): Promise; + } + export interface BigIntStats extends StatsBase { + atimeNs: bigint; + mtimeNs: bigint; + ctimeNs: bigint; + birthtimeNs: bigint; + } + export interface BigIntOptions { + bigint: true; + } + export interface StatOptions { + bigint?: boolean | undefined; + } + export interface StatSyncOptions extends StatOptions { + throwIfNoEntry?: boolean | undefined; + } + export interface CopyOptions { + /** + * Dereference symlinks + * @default false + */ + dereference?: boolean; + /** + * When `force` is `false`, and the destination + * exists, throw an error. + * @default false + */ + errorOnExist?: boolean; + /** + * Function to filter copied files/directories. Return + * `true` to copy the item, `false` to ignore it. + */ + filter?(source: string, destination: string): boolean; + /** + * Overwrite existing file or directory. _The copy + * operation will ignore errors if you set this to false and the destination + * exists. Use the `errorOnExist` option to change this behavior. + * @default true + */ + force?: boolean; + /** + * When `true` timestamps from `src` will + * be preserved. + * @default false + */ + preserveTimestamps?: boolean; + /** + * Copy directories recursively. + * @default false + */ + recursive?: boolean; + } + /** + * Asynchronously copies the entire directory structure from `src` to `dest`, + * including subdirectories and files. + * + * When copying a directory to another directory, globs are not supported and + * behavior is similar to `cp dir1/ dir2/`. + * @since v16.7.0 + * @experimental + * @param src source path to copy. + * @param dest destination path to copy to. + */ + export function cp(source: string, destination: string, callback: (err: NodeJS.ErrnoException | null) => void): void; + export function cp(source: string, destination: string, opts: CopyOptions, callback: (err: NodeJS.ErrnoException | null) => void): void; + /** + * Synchronously copies the entire directory structure from `src` to `dest`, + * including subdirectories and files. + * + * When copying a directory to another directory, globs are not supported and + * behavior is similar to `cp dir1/ dir2/`. + * @since v16.7.0 + * @experimental + * @param src source path to copy. + * @param dest destination path to copy to. + */ + export function cpSync(source: string, destination: string, opts?: CopyOptions): void; +} +declare module 'node:fs' { + export * from 'fs'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/fs/promises.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/fs/promises.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..f6c77d3bd043e760cac5fa6ea3c532c8c442acef --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/fs/promises.d.ts" @@ -0,0 +1,1091 @@ +/** + * The `fs/promises` API provides asynchronous file system methods that return + * promises. + * + * The promise APIs use the underlying Node.js threadpool to perform file + * system operations off the event loop thread. These operations are not + * synchronized or threadsafe. Care must be taken when performing multiple + * concurrent modifications on the same file or data corruption may occur. + * @since v10.0.0 + */ +declare module 'fs/promises' { + import { Abortable } from 'node:events'; + import { Stream } from 'node:stream'; + import { + Stats, + BigIntStats, + StatOptions, + WriteVResult, + ReadVResult, + PathLike, + RmDirOptions, + RmOptions, + MakeDirectoryOptions, + Dirent, + OpenDirOptions, + Dir, + ObjectEncodingOptions, + BufferEncodingOption, + OpenMode, + Mode, + WatchOptions, + WatchEventType, + CopyOptions, + ReadStream, + WriteStream, + } from 'node:fs'; + interface FileChangeInfo { + eventType: WatchEventType; + filename: T; + } + interface FlagAndOpenMode { + mode?: Mode | undefined; + flag?: OpenMode | undefined; + } + interface FileReadResult { + bytesRead: number; + buffer: T; + } + interface FileReadOptions { + /** + * @default `Buffer.alloc(0xffff)` + */ + buffer?: T; + /** + * @default 0 + */ + offset?: number | null; + /** + * @default `buffer.byteLength` + */ + length?: number | null; + position?: number | null; + } + interface CreateReadStreamOptions { + encoding?: BufferEncoding | null | undefined; + autoClose?: boolean | undefined; + emitClose?: boolean | undefined; + start?: number | undefined; + end?: number | undefined; + highWaterMark?: number | undefined; + } + interface CreateWriteStreamOptions { + encoding?: BufferEncoding | null | undefined; + autoClose?: boolean | undefined; + emitClose?: boolean | undefined; + start?: number | undefined; + } + // TODO: Add `EventEmitter` close + interface FileHandle { + /** + * The numeric file descriptor managed by the {FileHandle} object. + * @since v10.0.0 + */ + readonly fd: number; + /** + * Alias of `filehandle.writeFile()`. + * + * When operating on file handles, the mode cannot be changed from what it was set + * to with `fsPromises.open()`. Therefore, this is equivalent to `filehandle.writeFile()`. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + appendFile(data: string | Uint8Array, options?: (ObjectEncodingOptions & FlagAndOpenMode) | BufferEncoding | null): Promise; + /** + * Changes the ownership of the file. A wrapper for [`chown(2)`](http://man7.org/linux/man-pages/man2/chown.2.html). + * @since v10.0.0 + * @param uid The file's new owner's user id. + * @param gid The file's new group's group id. + * @return Fulfills with `undefined` upon success. + */ + chown(uid: number, gid: number): Promise; + /** + * Modifies the permissions on the file. See [`chmod(2)`](http://man7.org/linux/man-pages/man2/chmod.2.html). + * @since v10.0.0 + * @param mode the file mode bit mask. + * @return Fulfills with `undefined` upon success. + */ + chmod(mode: Mode): Promise; + /** + * Unlike the 16 kb default `highWaterMark` for a `stream.Readable`, the stream + * returned by this method has a default `highWaterMark` of 64 kb. + * + * `options` can include `start` and `end` values to read a range of bytes from + * the file instead of the entire file. Both `start` and `end` are inclusive and + * start counting at 0, allowed values are in the + * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. If `start` is + * omitted or `undefined`, `filehandle.createReadStream()` reads sequentially from + * the current file position. The `encoding` can be any one of those accepted by `Buffer`. + * + * If the `FileHandle` points to a character device that only supports blocking + * reads (such as keyboard or sound card), read operations do not finish until data + * is available. This can prevent the process from exiting and the stream from + * closing naturally. + * + * By default, the stream will emit a `'close'` event after it has been + * destroyed. Set the `emitClose` option to `false` to change this behavior. + * + * ```js + * import { open } from 'fs/promises'; + * + * const fd = await open('/dev/input/event0'); + * // Create a stream from some character device. + * const stream = fd.createReadStream(); + * setTimeout(() => { + * stream.close(); // This may not close the stream. + * // Artificially marking end-of-stream, as if the underlying resource had + * // indicated end-of-file by itself, allows the stream to close. + * // This does not cancel pending read operations, and if there is such an + * // operation, the process may still not be able to exit successfully + * // until it finishes. + * stream.push(null); + * stream.read(0); + * }, 100); + * ``` + * + * If `autoClose` is false, then the file descriptor won't be closed, even if + * there's an error. It is the application's responsibility to close it and make + * sure there's no file descriptor leak. If `autoClose` is set to true (default + * behavior), on `'error'` or `'end'` the file descriptor will be closed + * automatically. + * + * An example to read the last 10 bytes of a file which is 100 bytes long: + * + * ```js + * import { open } from 'fs/promises'; + * + * const fd = await open('sample.txt'); + * fd.createReadStream({ start: 90, end: 99 }); + * ``` + * @since v16.11.0 + */ + createReadStream(options?: CreateReadStreamOptions): ReadStream; + /** + * `options` may also include a `start` option to allow writing data at some + * position past the beginning of the file, allowed values are in the + * \[0, [`Number.MAX_SAFE_INTEGER`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER)\] range. Modifying a file rather than replacing + * it may require the `flags` `open` option to be set to `r+` rather than the + * default `r`. The `encoding` can be any one of those accepted by `Buffer`. + * + * If `autoClose` is set to true (default behavior) on `'error'` or `'finish'`the file descriptor will be closed automatically. If `autoClose` is false, + * then the file descriptor won't be closed, even if there's an error. + * It is the application's responsibility to close it and make sure there's no + * file descriptor leak. + * + * By default, the stream will emit a `'close'` event after it has been + * destroyed. Set the `emitClose` option to `false` to change this behavior. + * @since v16.11.0 + */ + createWriteStream(options?: CreateWriteStreamOptions): WriteStream; + /** + * Forces all currently queued I/O operations associated with the file to the + * operating system's synchronized I/O completion state. Refer to the POSIX [`fdatasync(2)`](http://man7.org/linux/man-pages/man2/fdatasync.2.html) documentation for details. + * + * Unlike `filehandle.sync` this method does not flush modified metadata. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + datasync(): Promise; + /** + * Request that all data for the open file descriptor is flushed to the storage + * device. The specific implementation is operating system and device specific. + * Refer to the POSIX [`fsync(2)`](http://man7.org/linux/man-pages/man2/fsync.2.html) documentation for more detail. + * @since v10.0.0 + * @return Fufills with `undefined` upon success. + */ + sync(): Promise; + /** + * Reads data from the file and stores that in the given buffer. + * + * If the file is not modified concurrently, the end-of-file is reached when the + * number of bytes read is zero. + * @since v10.0.0 + * @param buffer A buffer that will be filled with the file data read. + * @param offset The location in the buffer at which to start filling. + * @param length The number of bytes to read. + * @param position The location where to begin reading data from the file. If `null`, data will be read from the current file position, and the position will be updated. If `position` is an + * integer, the current file position will remain unchanged. + * @return Fulfills upon success with an object with two properties: + */ + read(buffer: T, offset?: number | null, length?: number | null, position?: number | null): Promise>; + read(options?: FileReadOptions): Promise>; + /** + * Asynchronously reads the entire contents of a file. + * + * If `options` is a string, then it specifies the `encoding`. + * + * The `FileHandle` has to support reading. + * + * If one or more `filehandle.read()` calls are made on a file handle and then a`filehandle.readFile()` call is made, the data will be read from the current + * position till the end of the file. It doesn't always read from the beginning + * of the file. + * @since v10.0.0 + * @return Fulfills upon a successful read with the contents of the file. If no encoding is specified (using `options.encoding`), the data is returned as a {Buffer} object. Otherwise, the + * data will be a string. + */ + readFile( + options?: { + encoding?: null | undefined; + flag?: OpenMode | undefined; + } | null + ): Promise; + /** + * Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically. + * The `FileHandle` must have been opened for reading. + * @param options An object that may contain an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + readFile( + options: + | { + encoding: BufferEncoding; + flag?: OpenMode | undefined; + } + | BufferEncoding + ): Promise; + /** + * Asynchronously reads the entire contents of a file. The underlying file will _not_ be closed automatically. + * The `FileHandle` must have been opened for reading. + * @param options An object that may contain an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + readFile( + options?: + | (ObjectEncodingOptions & { + flag?: OpenMode | undefined; + }) + | BufferEncoding + | null + ): Promise; + /** + * @since v10.0.0 + * @return Fulfills with an {fs.Stats} for the file. + */ + stat( + opts?: StatOptions & { + bigint?: false | undefined; + } + ): Promise; + stat( + opts: StatOptions & { + bigint: true; + } + ): Promise; + stat(opts?: StatOptions): Promise; + /** + * Truncates the file. + * + * If the file was larger than `len` bytes, only the first `len` bytes will be + * retained in the file. + * + * The following example retains only the first four bytes of the file: + * + * ```js + * import { open } from 'fs/promises'; + * + * let filehandle = null; + * try { + * filehandle = await open('temp.txt', 'r+'); + * await filehandle.truncate(4); + * } finally { + * await filehandle?.close(); + * } + * ``` + * + * If the file previously was shorter than `len` bytes, it is extended, and the + * extended part is filled with null bytes (`'\0'`): + * + * If `len` is negative then `0` will be used. + * @since v10.0.0 + * @param [len=0] + * @return Fulfills with `undefined` upon success. + */ + truncate(len?: number): Promise; + /** + * Change the file system timestamps of the object referenced by the `FileHandle` then resolves the promise with no arguments upon success. + * @since v10.0.0 + */ + utimes(atime: string | number | Date, mtime: string | number | Date): Promise; + /** + * Asynchronously writes data to a file, replacing the file if it already exists.`data` can be a string, a buffer, an + * [AsyncIterable](https://tc39.github.io/ecma262/#sec-asynciterable-interface) or + * [Iterable](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols#The_iterable_protocol) object, or an + * object with an own `toString` function + * property. The promise is resolved with no arguments upon success. + * + * If `options` is a string, then it specifies the `encoding`. + * + * The `FileHandle` has to support writing. + * + * It is unsafe to use `filehandle.writeFile()` multiple times on the same file + * without waiting for the promise to be resolved (or rejected). + * + * If one or more `filehandle.write()` calls are made on a file handle and then a`filehandle.writeFile()` call is made, the data will be written from the + * current position till the end of the file. It doesn't always write from the + * beginning of the file. + * @since v10.0.0 + */ + writeFile(data: string | Uint8Array, options?: (ObjectEncodingOptions & FlagAndOpenMode & Abortable) | BufferEncoding | null): Promise; + /** + * Write `buffer` to the file. + * + * If `buffer` is a plain object, it must have an own (not inherited) `toString`function property. + * + * The promise is resolved with an object containing two properties: + * + * It is unsafe to use `filehandle.write()` multiple times on the same file + * without waiting for the promise to be resolved (or rejected). For this + * scenario, use `fs.createWriteStream()`. + * + * On Linux, positional writes do not work when the file is opened in append mode. + * The kernel ignores the position argument and always appends the data to + * the end of the file. + * @since v10.0.0 + * @param [offset=0] The start position from within `buffer` where the data to write begins. + * @param [length=buffer.byteLength] The number of bytes from `buffer` to write. + * @param position The offset from the beginning of the file where the data from `buffer` should be written. If `position` is not a `number`, the data will be written at the current position. + * See the POSIX pwrite(2) documentation for more detail. + */ + write( + buffer: TBuffer, + offset?: number | null, + length?: number | null, + position?: number | null + ): Promise<{ + bytesWritten: number; + buffer: TBuffer; + }>; + write( + data: string, + position?: number | null, + encoding?: BufferEncoding | null + ): Promise<{ + bytesWritten: number; + buffer: string; + }>; + /** + * Write an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s to the file. + * + * The promise is resolved with an object containing a two properties: + * + * It is unsafe to call `writev()` multiple times on the same file without waiting + * for the promise to be resolved (or rejected). + * + * On Linux, positional writes don't work when the file is opened in append mode. + * The kernel ignores the position argument and always appends the data to + * the end of the file. + * @since v12.9.0 + * @param position The offset from the beginning of the file where the data from `buffers` should be written. If `position` is not a `number`, the data will be written at the current + * position. + */ + writev(buffers: ReadonlyArray, position?: number): Promise; + /** + * Read from a file and write to an array of [ArrayBufferView](https://developer.mozilla.org/en-US/docs/Web/API/ArrayBufferView) s + * @since v13.13.0, v12.17.0 + * @param position The offset from the beginning of the file where the data should be read from. If `position` is not a `number`, the data will be read from the current position. + * @return Fulfills upon success an object containing two properties: + */ + readv(buffers: ReadonlyArray, position?: number): Promise; + /** + * Closes the file handle after waiting for any pending operation on the handle to + * complete. + * + * ```js + * import { open } from 'fs/promises'; + * + * let filehandle; + * try { + * filehandle = await open('thefile.txt', 'r'); + * } finally { + * await filehandle?.close(); + * } + * ``` + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + close(): Promise; + } + /** + * Tests a user's permissions for the file or directory specified by `path`. + * The `mode` argument is an optional integer that specifies the accessibility + * checks to be performed. Check `File access constants` for possible values + * of `mode`. It is possible to create a mask consisting of the bitwise OR of + * two or more values (e.g. `fs.constants.W_OK | fs.constants.R_OK`). + * + * If the accessibility check is successful, the promise is resolved with no + * value. If any of the accessibility checks fail, the promise is rejected + * with an [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object. The following example checks if the file`/etc/passwd` can be read and + * written by the current process. + * + * ```js + * import { access } from 'fs/promises'; + * import { constants } from 'fs'; + * + * try { + * await access('/etc/passwd', constants.R_OK | constants.W_OK); + * console.log('can access'); + * } catch { + * console.error('cannot access'); + * } + * ``` + * + * Using `fsPromises.access()` to check for the accessibility of a file before + * calling `fsPromises.open()` is not recommended. Doing so introduces a race + * condition, since other processes may change the file's state between the two + * calls. Instead, user code should open/read/write the file directly and handle + * the error raised if the file is not accessible. + * @since v10.0.0 + * @param [mode=fs.constants.F_OK] + * @return Fulfills with `undefined` upon success. + */ + function access(path: PathLike, mode?: number): Promise; + /** + * Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it + * already exists. + * + * No guarantees are made about the atomicity of the copy operation. If an + * error occurs after the destination file has been opened for writing, an attempt + * will be made to remove the destination. + * + * ```js + * import { constants } from 'fs'; + * import { copyFile } from 'fs/promises'; + * + * try { + * await copyFile('source.txt', 'destination.txt'); + * console.log('source.txt was copied to destination.txt'); + * } catch { + * console.log('The file could not be copied'); + * } + * + * // By using COPYFILE_EXCL, the operation will fail if destination.txt exists. + * try { + * await copyFile('source.txt', 'destination.txt', constants.COPYFILE_EXCL); + * console.log('source.txt was copied to destination.txt'); + * } catch { + * console.log('The file could not be copied'); + * } + * ``` + * @since v10.0.0 + * @param src source filename to copy + * @param dest destination filename of the copy operation + * @param [mode=0] Optional modifiers that specify the behavior of the copy operation. It is possible to create a mask consisting of the bitwise OR of two or more values (e.g. + * `fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE`) + * @return Fulfills with `undefined` upon success. + */ + function copyFile(src: PathLike, dest: PathLike, mode?: number): Promise; + /** + * Opens a `FileHandle`. + * + * Refer to the POSIX [`open(2)`](http://man7.org/linux/man-pages/man2/open.2.html) documentation for more detail. + * + * Some characters (`< > : " / \ | ? *`) are reserved under Windows as documented + * by [Naming Files, Paths, and Namespaces](https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file). Under NTFS, if the filename contains + * a colon, Node.js will open a file system stream, as described by [this MSDN page](https://docs.microsoft.com/en-us/windows/desktop/FileIO/using-streams). + * @since v10.0.0 + * @param [flags='r'] See `support of file system `flags``. + * @param [mode=0o666] Sets the file mode (permission and sticky bits) if the file is created. + * @return Fulfills with a {FileHandle} object. + */ + function open(path: PathLike, flags: string | number, mode?: Mode): Promise; + /** + * Renames `oldPath` to `newPath`. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + function rename(oldPath: PathLike, newPath: PathLike): Promise; + /** + * Truncates (shortens or extends the length) of the content at `path` to `len`bytes. + * @since v10.0.0 + * @param [len=0] + * @return Fulfills with `undefined` upon success. + */ + function truncate(path: PathLike, len?: number): Promise; + /** + * Removes the directory identified by `path`. + * + * Using `fsPromises.rmdir()` on a file (not a directory) results in the + * promise being rejected with an `ENOENT` error on Windows and an `ENOTDIR`error on POSIX. + * + * To get a behavior similar to the `rm -rf` Unix command, use `fsPromises.rm()` with options `{ recursive: true, force: true }`. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + function rmdir(path: PathLike, options?: RmDirOptions): Promise; + /** + * Removes files and directories (modeled on the standard POSIX `rm` utility). + * @since v14.14.0 + * @return Fulfills with `undefined` upon success. + */ + function rm(path: PathLike, options?: RmOptions): Promise; + /** + * Asynchronously creates a directory. + * + * The optional `options` argument can be an integer specifying `mode` (permission + * and sticky bits), or an object with a `mode` property and a `recursive`property indicating whether parent directories should be created. Calling`fsPromises.mkdir()` when `path` is a directory + * that exists results in a + * rejection only when `recursive` is false. + * @since v10.0.0 + * @return Upon success, fulfills with `undefined` if `recursive` is `false`, or the first directory path created if `recursive` is `true`. + */ + function mkdir( + path: PathLike, + options: MakeDirectoryOptions & { + recursive: true; + } + ): Promise; + /** + * Asynchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + function mkdir( + path: PathLike, + options?: + | Mode + | (MakeDirectoryOptions & { + recursive?: false | undefined; + }) + | null + ): Promise; + /** + * Asynchronous mkdir(2) - create a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options Either the file mode, or an object optionally specifying the file mode and whether parent folders + * should be created. If a string is passed, it is parsed as an octal integer. If not specified, defaults to `0o777`. + */ + function mkdir(path: PathLike, options?: Mode | MakeDirectoryOptions | null): Promise; + /** + * Reads the contents of a directory. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use for + * the filenames. If the `encoding` is set to `'buffer'`, the filenames returned + * will be passed as `Buffer` objects. + * + * If `options.withFileTypes` is set to `true`, the resolved array will contain `fs.Dirent` objects. + * + * ```js + * import { readdir } from 'fs/promises'; + * + * try { + * const files = await readdir(path); + * for (const file of files) + * console.log(file); + * } catch (err) { + * console.error(err); + * } + * ``` + * @since v10.0.0 + * @return Fulfills with an array of the names of the files in the directory excluding `'.'` and `'..'`. + */ + function readdir( + path: PathLike, + options?: + | (ObjectEncodingOptions & { + withFileTypes?: false | undefined; + }) + | BufferEncoding + | null + ): Promise; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readdir( + path: PathLike, + options: + | { + encoding: 'buffer'; + withFileTypes?: false | undefined; + } + | 'buffer' + ): Promise; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readdir( + path: PathLike, + options?: + | (ObjectEncodingOptions & { + withFileTypes?: false | undefined; + }) + | BufferEncoding + | null + ): Promise; + /** + * Asynchronous readdir(3) - read a directory. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options If called with `withFileTypes: true` the result data will be an array of Dirent. + */ + function readdir( + path: PathLike, + options: ObjectEncodingOptions & { + withFileTypes: true; + } + ): Promise; + /** + * Reads the contents of the symbolic link referred to by `path`. See the POSIX [`readlink(2)`](http://man7.org/linux/man-pages/man2/readlink.2.html) documentation for more detail. The promise is + * resolved with the`linkString` upon success. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use for + * the link path returned. If the `encoding` is set to `'buffer'`, the link path + * returned will be passed as a `Buffer` object. + * @since v10.0.0 + * @return Fulfills with the `linkString` upon success. + */ + function readlink(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readlink(path: PathLike, options: BufferEncodingOption): Promise; + /** + * Asynchronous readlink(2) - read value of a symbolic link. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function readlink(path: PathLike, options?: ObjectEncodingOptions | string | null): Promise; + /** + * Creates a symbolic link. + * + * The `type` argument is only used on Windows platforms and can be one of `'dir'`,`'file'`, or `'junction'`. Windows junction points require the destination path + * to be absolute. When using `'junction'`, the `target` argument will + * automatically be normalized to absolute path. + * @since v10.0.0 + * @param [type='file'] + * @return Fulfills with `undefined` upon success. + */ + function symlink(target: PathLike, path: PathLike, type?: string | null): Promise; + /** + * Equivalent to `fsPromises.stat()` unless `path` refers to a symbolic link, + * in which case the link itself is stat-ed, not the file that it refers to. + * Refer to the POSIX [`lstat(2)`](http://man7.org/linux/man-pages/man2/lstat.2.html) document for more detail. + * @since v10.0.0 + * @return Fulfills with the {fs.Stats} object for the given symbolic link `path`. + */ + function lstat( + path: PathLike, + opts?: StatOptions & { + bigint?: false | undefined; + } + ): Promise; + function lstat( + path: PathLike, + opts: StatOptions & { + bigint: true; + } + ): Promise; + function lstat(path: PathLike, opts?: StatOptions): Promise; + /** + * @since v10.0.0 + * @return Fulfills with the {fs.Stats} object for the given `path`. + */ + function stat( + path: PathLike, + opts?: StatOptions & { + bigint?: false | undefined; + } + ): Promise; + function stat( + path: PathLike, + opts: StatOptions & { + bigint: true; + } + ): Promise; + function stat(path: PathLike, opts?: StatOptions): Promise; + /** + * Creates a new link from the `existingPath` to the `newPath`. See the POSIX [`link(2)`](http://man7.org/linux/man-pages/man2/link.2.html) documentation for more detail. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + function link(existingPath: PathLike, newPath: PathLike): Promise; + /** + * If `path` refers to a symbolic link, then the link is removed without affecting + * the file or directory to which that link refers. If the `path` refers to a file + * path that is not a symbolic link, the file is deleted. See the POSIX [`unlink(2)`](http://man7.org/linux/man-pages/man2/unlink.2.html) documentation for more detail. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + function unlink(path: PathLike): Promise; + /** + * Changes the permissions of a file. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + function chmod(path: PathLike, mode: Mode): Promise; + /** + * Changes the permissions on a symbolic link. + * + * This method is only implemented on macOS. + * @deprecated Since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + function lchmod(path: PathLike, mode: Mode): Promise; + /** + * Changes the ownership on a symbolic link. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + function lchown(path: PathLike, uid: number, gid: number): Promise; + /** + * Changes the access and modification times of a file in the same way as `fsPromises.utimes()`, with the difference that if the path refers to a + * symbolic link, then the link is not dereferenced: instead, the timestamps of + * the symbolic link itself are changed. + * @since v14.5.0, v12.19.0 + * @return Fulfills with `undefined` upon success. + */ + function lutimes(path: PathLike, atime: string | number | Date, mtime: string | number | Date): Promise; + /** + * Changes the ownership of a file. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + function chown(path: PathLike, uid: number, gid: number): Promise; + /** + * Change the file system timestamps of the object referenced by `path`. + * + * The `atime` and `mtime` arguments follow these rules: + * + * * Values can be either numbers representing Unix epoch time, `Date`s, or a + * numeric string like `'123456789.0'`. + * * If the value can not be converted to a number, or is `NaN`, `Infinity` or`-Infinity`, an `Error` will be thrown. + * @since v10.0.0 + * @return Fulfills with `undefined` upon success. + */ + function utimes(path: PathLike, atime: string | number | Date, mtime: string | number | Date): Promise; + /** + * Determines the actual location of `path` using the same semantics as the`fs.realpath.native()` function. + * + * Only paths that can be converted to UTF8 strings are supported. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use for + * the path. If the `encoding` is set to `'buffer'`, the path returned will be + * passed as a `Buffer` object. + * + * On Linux, when Node.js is linked against musl libc, the procfs file system must + * be mounted on `/proc` in order for this function to work. Glibc does not have + * this restriction. + * @since v10.0.0 + * @return Fulfills with the resolved path upon success. + */ + function realpath(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function realpath(path: PathLike, options: BufferEncodingOption): Promise; + /** + * Asynchronous realpath(3) - return the canonicalized absolute pathname. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function realpath(path: PathLike, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; + /** + * Creates a unique temporary directory. A unique directory name is generated by + * appending six random characters to the end of the provided `prefix`. Due to + * platform inconsistencies, avoid trailing `X` characters in `prefix`. Some + * platforms, notably the BSDs, can return more than six random characters, and + * replace trailing `X` characters in `prefix` with random characters. + * + * The optional `options` argument can be a string specifying an encoding, or an + * object with an `encoding` property specifying the character encoding to use. + * + * ```js + * import { mkdtemp } from 'fs/promises'; + * + * try { + * await mkdtemp(path.join(os.tmpdir(), 'foo-')); + * } catch (err) { + * console.error(err); + * } + * ``` + * + * The `fsPromises.mkdtemp()` method will append the six randomly selected + * characters directly to the `prefix` string. For instance, given a directory`/tmp`, if the intention is to create a temporary directory _within_`/tmp`, the`prefix` must end with a trailing + * platform-specific path separator + * (`require('path').sep`). + * @since v10.0.0 + * @return Fulfills with a string containing the filesystem path of the newly created temporary directory. + */ + function mkdtemp(prefix: string, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function mkdtemp(prefix: string, options: BufferEncodingOption): Promise; + /** + * Asynchronously creates a unique temporary directory. + * Generates six random characters to be appended behind a required `prefix` to create a unique temporary directory. + * @param options The encoding (or an object specifying the encoding), used as the encoding of the result. If not provided, `'utf8'` is used. + */ + function mkdtemp(prefix: string, options?: ObjectEncodingOptions | BufferEncoding | null): Promise; + /** + * Asynchronously writes data to a file, replacing the file if it already exists.`data` can be a string, a `Buffer`, or, an object with an own (not inherited)`toString` function property. + * + * The `encoding` option is ignored if `data` is a buffer. + * + * If `options` is a string, then it specifies the encoding. + * + * The `mode` option only affects the newly created file. See `fs.open()` for more details. + * + * Any specified `FileHandle` has to support writing. + * + * It is unsafe to use `fsPromises.writeFile()` multiple times on the same file + * without waiting for the promise to be settled. + * + * Similarly to `fsPromises.readFile` \- `fsPromises.writeFile` is a convenience + * method that performs multiple `write` calls internally to write the buffer + * passed to it. For performance sensitive code consider using `fs.createWriteStream()`. + * + * It is possible to use an `AbortSignal` to cancel an `fsPromises.writeFile()`. + * Cancelation is "best effort", and some amount of data is likely still + * to be written. + * + * ```js + * import { writeFile } from 'fs/promises'; + * import { Buffer } from 'buffer'; + * + * try { + * const controller = new AbortController(); + * const { signal } = controller; + * const data = new Uint8Array(Buffer.from('Hello Node.js')); + * const promise = writeFile('message.txt', data, { signal }); + * + * // Abort the request before the promise settles. + * controller.abort(); + * + * await promise; + * } catch (err) { + * // When a request is aborted - err is an AbortError + * console.error(err); + * } + * ``` + * + * Aborting an ongoing request does not abort individual operating + * system requests but rather the internal buffering `fs.writeFile` performs. + * @since v10.0.0 + * @param file filename or `FileHandle` + * @return Fulfills with `undefined` upon success. + */ + function writeFile( + file: PathLike | FileHandle, + data: string | NodeJS.ArrayBufferView | Iterable | AsyncIterable | Stream, + options?: + | (ObjectEncodingOptions & { + mode?: Mode | undefined; + flag?: OpenMode | undefined; + } & Abortable) + | BufferEncoding + | null + ): Promise; + /** + * Asynchronously append data to a file, creating the file if it does not yet + * exist. `data` can be a string or a `Buffer`. + * + * If `options` is a string, then it specifies the `encoding`. + * + * The `mode` option only affects the newly created file. See `fs.open()` for more details. + * + * The `path` may be specified as a `FileHandle` that has been opened + * for appending (using `fsPromises.open()`). + * @since v10.0.0 + * @param path filename or {FileHandle} + * @return Fulfills with `undefined` upon success. + */ + function appendFile(path: PathLike | FileHandle, data: string | Uint8Array, options?: (ObjectEncodingOptions & FlagAndOpenMode) | BufferEncoding | null): Promise; + /** + * Asynchronously reads the entire contents of a file. + * + * If no encoding is specified (using `options.encoding`), the data is returned + * as a `Buffer` object. Otherwise, the data will be a string. + * + * If `options` is a string, then it specifies the encoding. + * + * When the `path` is a directory, the behavior of `fsPromises.readFile()` is + * platform-specific. On macOS, Linux, and Windows, the promise will be rejected + * with an error. On FreeBSD, a representation of the directory's contents will be + * returned. + * + * It is possible to abort an ongoing `readFile` using an `AbortSignal`. If a + * request is aborted the promise returned is rejected with an `AbortError`: + * + * ```js + * import { readFile } from 'fs/promises'; + * + * try { + * const controller = new AbortController(); + * const { signal } = controller; + * const promise = readFile(fileName, { signal }); + * + * // Abort the request before the promise settles. + * controller.abort(); + * + * await promise; + * } catch (err) { + * // When a request is aborted - err is an AbortError + * console.error(err); + * } + * ``` + * + * Aborting an ongoing request does not abort individual operating + * system requests but rather the internal buffering `fs.readFile` performs. + * + * Any specified `FileHandle` has to support reading. + * @since v10.0.0 + * @param path filename or `FileHandle` + * @return Fulfills with the contents of the file. + */ + function readFile( + path: PathLike | FileHandle, + options?: + | ({ + encoding?: null | undefined; + flag?: OpenMode | undefined; + } & Abortable) + | null + ): Promise; + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically. + * @param options An object that may contain an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function readFile( + path: PathLike | FileHandle, + options: + | ({ + encoding: BufferEncoding; + flag?: OpenMode | undefined; + } & Abortable) + | BufferEncoding + ): Promise; + /** + * Asynchronously reads the entire contents of a file. + * @param path A path to a file. If a URL is provided, it must use the `file:` protocol. + * If a `FileHandle` is provided, the underlying file will _not_ be closed automatically. + * @param options An object that may contain an optional flag. + * If a flag is not provided, it defaults to `'r'`. + */ + function readFile( + path: PathLike | FileHandle, + options?: + | (ObjectEncodingOptions & + Abortable & { + flag?: OpenMode | undefined; + }) + | BufferEncoding + | null + ): Promise; + /** + * Asynchronously open a directory for iterative scanning. See the POSIX [`opendir(3)`](http://man7.org/linux/man-pages/man3/opendir.3.html) documentation for more detail. + * + * Creates an `fs.Dir`, which contains all further functions for reading from + * and cleaning up the directory. + * + * The `encoding` option sets the encoding for the `path` while opening the + * directory and subsequent read operations. + * + * Example using async iteration: + * + * ```js + * import { opendir } from 'fs/promises'; + * + * try { + * const dir = await opendir('./'); + * for await (const dirent of dir) + * console.log(dirent.name); + * } catch (err) { + * console.error(err); + * } + * ``` + * + * When using the async iterator, the `fs.Dir` object will be automatically + * closed after the iterator exits. + * @since v12.12.0 + * @return Fulfills with an {fs.Dir}. + */ + function opendir(path: PathLike, options?: OpenDirOptions): Promise; + /** + * Returns an async iterator that watches for changes on `filename`, where `filename`is either a file or a directory. + * + * ```js + * const { watch } = require('fs/promises'); + * + * const ac = new AbortController(); + * const { signal } = ac; + * setTimeout(() => ac.abort(), 10000); + * + * (async () => { + * try { + * const watcher = watch(__filename, { signal }); + * for await (const event of watcher) + * console.log(event); + * } catch (err) { + * if (err.name === 'AbortError') + * return; + * throw err; + * } + * })(); + * ``` + * + * On most platforms, `'rename'` is emitted whenever a filename appears or + * disappears in the directory. + * + * All the `caveats` for `fs.watch()` also apply to `fsPromises.watch()`. + * @since v15.9.0, v14.18.0 + * @return of objects with the properties: + */ + function watch( + filename: PathLike, + options: + | (WatchOptions & { + encoding: 'buffer'; + }) + | 'buffer' + ): AsyncIterable>; + /** + * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `persistent` is not supplied, the default of `true` is used. + * If `recursive` is not supplied, the default of `false` is used. + */ + function watch(filename: PathLike, options?: WatchOptions | BufferEncoding): AsyncIterable>; + /** + * Watch for changes on `filename`, where `filename` is either a file or a directory, returning an `FSWatcher`. + * @param filename A path to a file or directory. If a URL is provided, it must use the `file:` protocol. + * @param options Either the encoding for the filename provided to the listener, or an object optionally specifying encoding, persistent, and recursive options. + * If `encoding` is not supplied, the default of `'utf8'` is used. + * If `persistent` is not supplied, the default of `true` is used. + * If `recursive` is not supplied, the default of `false` is used. + */ + function watch(filename: PathLike, options: WatchOptions | string): AsyncIterable> | AsyncIterable>; + /** + * Asynchronously copies the entire directory structure from `src` to `dest`, + * including subdirectories and files. + * + * When copying a directory to another directory, globs are not supported and + * behavior is similar to `cp dir1/ dir2/`. + * @since v16.7.0 + * @experimental + * @param src source path to copy. + * @param dest destination path to copy to. + * @return Fulfills with `undefined` upon success. + */ + function cp(source: string, destination: string, opts?: CopyOptions): Promise; +} +declare module 'node:fs/promises' { + export * from 'fs/promises'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/globals.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/globals.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..4533f1cbd7d15f3cd7db5426f72cadb925663257 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/globals.d.ts" @@ -0,0 +1,284 @@ +// Declare "static" methods in Error +interface ErrorConstructor { + /** Create .stack property on a target object */ + captureStackTrace(targetObject: object, constructorOpt?: Function): void; + + /** + * Optional override for formatting stack traces + * + * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces + */ + prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; + + stackTraceLimit: number; +} + +/*-----------------------------------------------* + * * + * GLOBAL * + * * + ------------------------------------------------*/ + +// For backwards compability +interface NodeRequire extends NodeJS.Require { } +interface RequireResolve extends NodeJS.RequireResolve { } +interface NodeModule extends NodeJS.Module { } + +declare var process: NodeJS.Process; +declare var console: Console; + +declare var __filename: string; +declare var __dirname: string; + +declare var require: NodeRequire; +declare var module: NodeModule; + +// Same as module.exports +declare var exports: any; + +/** + * Only available if `--expose-gc` is passed to the process. + */ +declare var gc: undefined | (() => void); + +//#region borrowed +// from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib +/** A controller object that allows you to abort one or more DOM requests as and when desired. */ +interface AbortController { + /** + * Returns the AbortSignal object associated with this object. + */ + + readonly signal: AbortSignal; + /** + * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted. + */ + abort(): void; +} + +/** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */ +interface AbortSignal { + /** + * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise. + */ + readonly aborted: boolean; +} + +declare var AbortController: { + prototype: AbortController; + new(): AbortController; +}; + +declare var AbortSignal: { + prototype: AbortSignal; + new(): AbortSignal; + // TODO: Add abort() static +}; +//#endregion borrowed + +//#region ArrayLike.at() +interface RelativeIndexable { + /** + * Takes an integer value and returns the item at that index, + * allowing for positive and negative integers. + * Negative integers count back from the last item in the array. + */ + at(index: number): T | undefined; +} +interface String extends RelativeIndexable {} +interface Array extends RelativeIndexable {} +interface Int8Array extends RelativeIndexable {} +interface Uint8Array extends RelativeIndexable {} +interface Uint8ClampedArray extends RelativeIndexable {} +interface Int16Array extends RelativeIndexable {} +interface Uint16Array extends RelativeIndexable {} +interface Int32Array extends RelativeIndexable {} +interface Uint32Array extends RelativeIndexable {} +interface Float32Array extends RelativeIndexable {} +interface Float64Array extends RelativeIndexable {} +interface BigInt64Array extends RelativeIndexable {} +interface BigUint64Array extends RelativeIndexable {} +//#endregion ArrayLike.at() end + +/*----------------------------------------------* +* * +* GLOBAL INTERFACES * +* * +*-----------------------------------------------*/ +declare namespace NodeJS { + interface CallSite { + /** + * Value of "this" + */ + getThis(): unknown; + + /** + * Type of "this" as a string. + * This is the name of the function stored in the constructor field of + * "this", if available. Otherwise the object's [[Class]] internal + * property. + */ + getTypeName(): string | null; + + /** + * Current function + */ + getFunction(): Function | undefined; + + /** + * Name of the current function, typically its name property. + * If a name property is not available an attempt will be made to try + * to infer a name from the function's context. + */ + getFunctionName(): string | null; + + /** + * Name of the property [of "this" or one of its prototypes] that holds + * the current function + */ + getMethodName(): string | null; + + /** + * Name of the script [if this function was defined in a script] + */ + getFileName(): string | null; + + /** + * Current line number [if this function was defined in a script] + */ + getLineNumber(): number | null; + + /** + * Current column number [if this function was defined in a script] + */ + getColumnNumber(): number | null; + + /** + * A call site object representing the location where eval was called + * [if this function was created using a call to eval] + */ + getEvalOrigin(): string | undefined; + + /** + * Is this a toplevel invocation, that is, is "this" the global object? + */ + isToplevel(): boolean; + + /** + * Does this call take place in code defined by a call to eval? + */ + isEval(): boolean; + + /** + * Is this call in native V8 code? + */ + isNative(): boolean; + + /** + * Is this a constructor call? + */ + isConstructor(): boolean; + } + + interface ErrnoException extends Error { + errno?: number | undefined; + code?: string | undefined; + path?: string | undefined; + syscall?: string | undefined; + } + + interface ReadableStream extends EventEmitter { + readable: boolean; + read(size?: number): string | Buffer; + setEncoding(encoding: BufferEncoding): this; + pause(): this; + resume(): this; + isPaused(): boolean; + pipe(destination: T, options?: { end?: boolean | undefined; }): T; + unpipe(destination?: WritableStream): this; + unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void; + wrap(oldStream: ReadableStream): this; + [Symbol.asyncIterator](): AsyncIterableIterator; + } + + interface WritableStream extends EventEmitter { + writable: boolean; + write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean; + write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean; + end(cb?: () => void): this; + end(data: string | Uint8Array, cb?: () => void): this; + end(str: string, encoding?: BufferEncoding, cb?: () => void): this; + } + + interface ReadWriteStream extends ReadableStream, WritableStream { } + + interface RefCounted { + ref(): this; + unref(): this; + } + + type TypedArray = + | Uint8Array + | Uint8ClampedArray + | Uint16Array + | Uint32Array + | Int8Array + | Int16Array + | Int32Array + | BigUint64Array + | BigInt64Array + | Float32Array + | Float64Array; + type ArrayBufferView = TypedArray | DataView; + + interface Require { + (id: string): any; + resolve: RequireResolve; + cache: Dict; + /** + * @deprecated + */ + extensions: RequireExtensions; + main: Module | undefined; + } + + interface RequireResolve { + (id: string, options?: { paths?: string[] | undefined; }): string; + paths(request: string): string[] | null; + } + + interface RequireExtensions extends Dict<(m: Module, filename: string) => any> { + '.js': (m: Module, filename: string) => any; + '.json': (m: Module, filename: string) => any; + '.node': (m: Module, filename: string) => any; + } + interface Module { + /** + * `true` if the module is running during the Node.js preload + */ + isPreloading: boolean; + exports: any; + require: Require; + id: string; + filename: string; + loaded: boolean; + /** @deprecated since 14.6.0 Please use `require.main` and `module.children` instead. */ + parent: Module | null | undefined; + children: Module[]; + /** + * @since 11.14.0 + * + * The directory name of the module. This is usually the same as the path.dirname() of the module.id. + */ + path: string; + paths: string[]; + } + + interface Dict { + [key: string]: T | undefined; + } + + interface ReadOnlyDict { + readonly [key: string]: T | undefined; + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/globals.global.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/globals.global.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..ef1198c05024940c44e3c1a6429c26091fe2a94f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/globals.global.d.ts" @@ -0,0 +1 @@ +declare var global: typeof globalThis; diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/http.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/http.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..bb3a93cd52a97dba5f0d8f0ce61648c68cfe043d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/http.d.ts" @@ -0,0 +1,1396 @@ +/** + * To use the HTTP server and client one must `require('http')`. + * + * The HTTP interfaces in Node.js are designed to support many features + * of the protocol which have been traditionally difficult to use. + * In particular, large, possibly chunk-encoded, messages. The interface is + * careful to never buffer entire requests or responses, so the + * user is able to stream data. + * + * HTTP message headers are represented by an object like this: + * + * ```js + * { 'content-length': '123', + * 'content-type': 'text/plain', + * 'connection': 'keep-alive', + * 'host': 'mysite.com', + * 'accept': '*' } + * ``` + * + * Keys are lowercased. Values are not modified. + * + * In order to support the full spectrum of possible HTTP applications, the Node.js + * HTTP API is very low-level. It deals with stream handling and message + * parsing only. It parses a message into headers and body but it does not + * parse the actual headers or the body. + * + * See `message.headers` for details on how duplicate headers are handled. + * + * The raw headers as they were received are retained in the `rawHeaders`property, which is an array of `[key, value, key2, value2, ...]`. For + * example, the previous message header object might have a `rawHeaders`list like the following: + * + * ```js + * [ 'ConTent-Length', '123456', + * 'content-LENGTH', '123', + * 'content-type', 'text/plain', + * 'CONNECTION', 'keep-alive', + * 'Host', 'mysite.com', + * 'accepT', '*' ] + * ``` + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/http.js) + */ +declare module 'http' { + import * as stream from 'node:stream'; + import { URL } from 'node:url'; + import { TcpSocketConnectOpts, Socket, Server as NetServer, LookupFunction } from 'node:net'; + // incoming headers will never contain number + interface IncomingHttpHeaders extends NodeJS.Dict { + accept?: string | undefined; + 'accept-language'?: string | undefined; + 'accept-patch'?: string | undefined; + 'accept-ranges'?: string | undefined; + 'access-control-allow-credentials'?: string | undefined; + 'access-control-allow-headers'?: string | undefined; + 'access-control-allow-methods'?: string | undefined; + 'access-control-allow-origin'?: string | undefined; + 'access-control-expose-headers'?: string | undefined; + 'access-control-max-age'?: string | undefined; + 'access-control-request-headers'?: string | undefined; + 'access-control-request-method'?: string | undefined; + age?: string | undefined; + allow?: string | undefined; + 'alt-svc'?: string | undefined; + authorization?: string | undefined; + 'cache-control'?: string | undefined; + connection?: string | undefined; + 'content-disposition'?: string | undefined; + 'content-encoding'?: string | undefined; + 'content-language'?: string | undefined; + 'content-length'?: string | undefined; + 'content-location'?: string | undefined; + 'content-range'?: string | undefined; + 'content-type'?: string | undefined; + cookie?: string | undefined; + date?: string | undefined; + etag?: string | undefined; + expect?: string | undefined; + expires?: string | undefined; + forwarded?: string | undefined; + from?: string | undefined; + host?: string | undefined; + 'if-match'?: string | undefined; + 'if-modified-since'?: string | undefined; + 'if-none-match'?: string | undefined; + 'if-unmodified-since'?: string | undefined; + 'last-modified'?: string | undefined; + location?: string | undefined; + origin?: string | undefined; + pragma?: string | undefined; + 'proxy-authenticate'?: string | undefined; + 'proxy-authorization'?: string | undefined; + 'public-key-pins'?: string | undefined; + range?: string | undefined; + referer?: string | undefined; + 'retry-after'?: string | undefined; + 'sec-websocket-accept'?: string | undefined; + 'sec-websocket-extensions'?: string | undefined; + 'sec-websocket-key'?: string | undefined; + 'sec-websocket-protocol'?: string | undefined; + 'sec-websocket-version'?: string | undefined; + 'set-cookie'?: string[] | undefined; + 'strict-transport-security'?: string | undefined; + tk?: string | undefined; + trailer?: string | undefined; + 'transfer-encoding'?: string | undefined; + upgrade?: string | undefined; + 'user-agent'?: string | undefined; + vary?: string | undefined; + via?: string | undefined; + warning?: string | undefined; + 'www-authenticate'?: string | undefined; + } + // outgoing headers allows numbers (as they are converted internally to strings) + type OutgoingHttpHeader = number | string | string[]; + interface OutgoingHttpHeaders extends NodeJS.Dict {} + interface ClientRequestArgs { + signal?: AbortSignal | undefined; + protocol?: string | null | undefined; + host?: string | null | undefined; + hostname?: string | null | undefined; + family?: number | undefined; + port?: number | string | null | undefined; + defaultPort?: number | string | undefined; + localAddress?: string | undefined; + socketPath?: string | undefined; + /** + * @default 8192 + */ + maxHeaderSize?: number | undefined; + method?: string | undefined; + path?: string | null | undefined; + headers?: OutgoingHttpHeaders | undefined; + auth?: string | null | undefined; + agent?: Agent | boolean | undefined; + _defaultAgent?: Agent | undefined; + timeout?: number | undefined; + setHost?: boolean | undefined; + // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278 + createConnection?: ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket) | undefined; + lookup?: LookupFunction | undefined; + } + interface ServerOptions { + IncomingMessage?: typeof IncomingMessage | undefined; + ServerResponse?: typeof ServerResponse | undefined; + /** + * Optionally overrides the value of + * `--max-http-header-size` for requests received by this server, i.e. + * the maximum length of request headers in bytes. + * @default 8192 + */ + maxHeaderSize?: number | undefined; + /** + * Use an insecure HTTP parser that accepts invalid HTTP headers when true. + * Using the insecure parser should be avoided. + * See --insecure-http-parser for more information. + * @default false + */ + insecureHTTPParser?: boolean | undefined; + } + type RequestListener = (req: IncomingMessage, res: ServerResponse) => void; + /** + * @since v0.1.17 + */ + class Server extends NetServer { + constructor(requestListener?: RequestListener); + constructor(options: ServerOptions, requestListener?: RequestListener); + /** + * Sets the timeout value for sockets, and emits a `'timeout'` event on + * the Server object, passing the socket as an argument, if a timeout + * occurs. + * + * If there is a `'timeout'` event listener on the Server object, then it + * will be called with the timed-out socket as an argument. + * + * By default, the Server does not timeout sockets. However, if a callback + * is assigned to the Server's `'timeout'` event, timeouts must be handled + * explicitly. + * @since v0.9.12 + * @param [msecs=0 (no timeout)] + */ + setTimeout(msecs?: number, callback?: () => void): this; + setTimeout(callback: () => void): this; + /** + * Limits maximum incoming headers count. If set to 0, no limit will be applied. + * @since v0.7.0 + */ + maxHeadersCount: number | null; + /** + * The maximum number of requests socket can handle + * before closing keep alive connection. + * + * A value of `0` will disable the limit. + * + * When the limit is reached it will set the `Connection` header value to `close`, + * but will not actually close the connection, subsequent requests sent + * after the limit is reached will get `503 Service Unavailable` as a response. + * @since v16.10.0 + */ + maxRequestsPerSocket: number | null; + /** + * The number of milliseconds of inactivity before a socket is presumed + * to have timed out. + * + * A value of `0` will disable the timeout behavior on incoming connections. + * + * The socket timeout logic is set up on connection, so changing this + * value only affects new connections to the server, not any existing connections. + * @since v0.9.12 + */ + timeout: number; + /** + * Limit the amount of time the parser will wait to receive the complete HTTP + * headers. + * + * In case of inactivity, the rules defined in `server.timeout` apply. However, + * that inactivity based timeout would still allow the connection to be kept open + * if the headers are being sent very slowly (by default, up to a byte per 2 + * minutes). In order to prevent this, whenever header data arrives an additional + * check is made that more than `server.headersTimeout` milliseconds has not + * passed since the connection was established. If the check fails, a `'timeout'`event is emitted on the server object, and (by default) the socket is destroyed. + * See `server.timeout` for more information on how timeout behavior can be + * customized. + * @since v11.3.0, v10.14.0 + */ + headersTimeout: number; + /** + * The number of milliseconds of inactivity a server needs to wait for additional + * incoming data, after it has finished writing the last response, before a socket + * will be destroyed. If the server receives new data before the keep-alive + * timeout has fired, it will reset the regular inactivity timeout, i.e.,`server.timeout`. + * + * A value of `0` will disable the keep-alive timeout behavior on incoming + * connections. + * A value of `0` makes the http server behave similarly to Node.js versions prior + * to 8.0.0, which did not have a keep-alive timeout. + * + * The socket timeout logic is set up on connection, so changing this value only + * affects new connections to the server, not any existing connections. + * @since v8.0.0 + */ + keepAliveTimeout: number; + /** + * Sets the timeout value in milliseconds for receiving the entire request from + * the client. + * + * If the timeout expires, the server responds with status 408 without + * forwarding the request to the request listener and then closes the connection. + * + * It must be set to a non-zero value (e.g. 120 seconds) to protect against + * potential Denial-of-Service attacks in case the server is deployed without a + * reverse proxy in front. + * @since v14.11.0 + */ + requestTimeout: number; + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: 'close', listener: () => void): this; + addListener(event: 'connection', listener: (socket: Socket) => void): this; + addListener(event: 'error', listener: (err: Error) => void): this; + addListener(event: 'listening', listener: () => void): this; + addListener(event: 'checkContinue', listener: RequestListener): this; + addListener(event: 'checkExpectation', listener: RequestListener): this; + addListener(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this; + addListener(event: 'connect', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; + addListener(event: 'request', listener: RequestListener): this; + addListener(event: 'upgrade', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; + emit(event: string, ...args: any[]): boolean; + emit(event: 'close'): boolean; + emit(event: 'connection', socket: Socket): boolean; + emit(event: 'error', err: Error): boolean; + emit(event: 'listening'): boolean; + emit(event: 'checkContinue', req: IncomingMessage, res: ServerResponse): boolean; + emit(event: 'checkExpectation', req: IncomingMessage, res: ServerResponse): boolean; + emit(event: 'clientError', err: Error, socket: stream.Duplex): boolean; + emit(event: 'connect', req: IncomingMessage, socket: stream.Duplex, head: Buffer): boolean; + emit(event: 'request', req: IncomingMessage, res: ServerResponse): boolean; + emit(event: 'upgrade', req: IncomingMessage, socket: stream.Duplex, head: Buffer): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: 'close', listener: () => void): this; + on(event: 'connection', listener: (socket: Socket) => void): this; + on(event: 'error', listener: (err: Error) => void): this; + on(event: 'listening', listener: () => void): this; + on(event: 'checkContinue', listener: RequestListener): this; + on(event: 'checkExpectation', listener: RequestListener): this; + on(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this; + on(event: 'connect', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; + on(event: 'request', listener: RequestListener): this; + on(event: 'upgrade', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: 'close', listener: () => void): this; + once(event: 'connection', listener: (socket: Socket) => void): this; + once(event: 'error', listener: (err: Error) => void): this; + once(event: 'listening', listener: () => void): this; + once(event: 'checkContinue', listener: RequestListener): this; + once(event: 'checkExpectation', listener: RequestListener): this; + once(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this; + once(event: 'connect', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; + once(event: 'request', listener: RequestListener): this; + once(event: 'upgrade', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: 'close', listener: () => void): this; + prependListener(event: 'connection', listener: (socket: Socket) => void): this; + prependListener(event: 'error', listener: (err: Error) => void): this; + prependListener(event: 'listening', listener: () => void): this; + prependListener(event: 'checkContinue', listener: RequestListener): this; + prependListener(event: 'checkExpectation', listener: RequestListener): this; + prependListener(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this; + prependListener(event: 'connect', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; + prependListener(event: 'request', listener: RequestListener): this; + prependListener(event: 'upgrade', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'close', listener: () => void): this; + prependOnceListener(event: 'connection', listener: (socket: Socket) => void): this; + prependOnceListener(event: 'error', listener: (err: Error) => void): this; + prependOnceListener(event: 'listening', listener: () => void): this; + prependOnceListener(event: 'checkContinue', listener: RequestListener): this; + prependOnceListener(event: 'checkExpectation', listener: RequestListener): this; + prependOnceListener(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this; + prependOnceListener(event: 'connect', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; + prependOnceListener(event: 'request', listener: RequestListener): this; + prependOnceListener(event: 'upgrade', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this; + } + /** + * This class serves as the parent class of {@link ClientRequest} and {@link ServerResponse}. It is an abstract of outgoing message from + * the perspective of the participants of HTTP transaction. + * @since v0.1.17 + */ + class OutgoingMessage extends stream.Writable { + readonly req: IncomingMessage; + chunkedEncoding: boolean; + shouldKeepAlive: boolean; + useChunkedEncodingByDefault: boolean; + sendDate: boolean; + /** + * @deprecated Use `writableEnded` instead. + */ + finished: boolean; + /** + * Read-only. `true` if the headers were sent, otherwise `false`. + * @since v0.9.3 + */ + readonly headersSent: boolean; + /** + * Aliases of `outgoingMessage.socket` + * @since v0.3.0 + * @deprecated Since v15.12.0,v14.17.1 - Use `socket` instead. + */ + readonly connection: Socket | null; + /** + * Reference to the underlying socket. Usually, users will not want to access + * this property. + * + * After calling `outgoingMessage.end()`, this property will be nulled. + * @since v0.3.0 + */ + readonly socket: Socket | null; + constructor(); + /** + * Once a socket is associated with the message and is connected,`socket.setTimeout()` will be called with `msecs` as the first parameter. + * @since v0.9.12 + * @param callback Optional function to be called when a timeout occurs. Same as binding to the `timeout` event. + */ + setTimeout(msecs: number, callback?: () => void): this; + /** + * Sets a single header value for the header object. + * @since v0.4.0 + * @param name Header name + * @param value Header value + */ + setHeader(name: string, value: number | string | ReadonlyArray): this; + /** + * Gets the value of HTTP header with the given name. If such a name doesn't + * exist in message, it will be `undefined`. + * @since v0.4.0 + * @param name Name of header + */ + getHeader(name: string): number | string | string[] | undefined; + /** + * Returns a shallow copy of the current outgoing headers. Since a shallow + * copy is used, array values may be mutated without additional calls to + * various header-related HTTP module methods. The keys of the returned + * object are the header names and the values are the respective header + * values. All header names are lowercase. + * + * The object returned by the `outgoingMessage.getHeaders()` method does + * not prototypically inherit from the JavaScript Object. This means that + * typical Object methods such as `obj.toString()`, `obj.hasOwnProperty()`, + * and others are not defined and will not work. + * + * ```js + * outgoingMessage.setHeader('Foo', 'bar'); + * outgoingMessage.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); + * + * const headers = outgoingMessage.getHeaders(); + * // headers === { foo: 'bar', 'set-cookie': ['foo=bar', 'bar=baz'] } + * ``` + * @since v8.0.0 + */ + getHeaders(): OutgoingHttpHeaders; + /** + * Returns an array of names of headers of the outgoing outgoingMessage. All + * names are lowercase. + * @since v8.0.0 + */ + getHeaderNames(): string[]; + /** + * Returns `true` if the header identified by `name` is currently set in the + * outgoing headers. The header name is case-insensitive. + * + * ```js + * const hasContentType = outgoingMessage.hasHeader('content-type'); + * ``` + * @since v8.0.0 + */ + hasHeader(name: string): boolean; + /** + * Removes a header that is queued for implicit sending. + * + * ```js + * outgoingMessage.removeHeader('Content-Encoding'); + * ``` + * @since v0.4.0 + */ + removeHeader(name: string): void; + /** + * Adds HTTP trailers (headers but at the end of the message) to the message. + * + * Trailers are **only** be emitted if the message is chunked encoded. If not, + * the trailer will be silently discarded. + * + * HTTP requires the `Trailer` header to be sent to emit trailers, + * with a list of header fields in its value, e.g. + * + * ```js + * message.writeHead(200, { 'Content-Type': 'text/plain', + * 'Trailer': 'Content-MD5' }); + * message.write(fileData); + * message.addTrailers({ 'Content-MD5': '7895bf4b8828b55ceaf47747b4bca667' }); + * message.end(); + * ``` + * + * Attempting to set a header field name or value that contains invalid characters + * will result in a `TypeError` being thrown. + * @since v0.3.0 + */ + addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void; + /** + * Compulsorily flushes the message headers + * + * For efficiency reason, Node.js normally buffers the message headers + * until `outgoingMessage.end()` is called or the first chunk of message data + * is written. It then tries to pack the headers and data into a single TCP + * packet. + * + * It is usually desired (it saves a TCP round-trip), but not when the first + * data is not sent until possibly much later. `outgoingMessage.flushHeaders()`bypasses the optimization and kickstarts the request. + * @since v1.6.0 + */ + flushHeaders(): void; + } + /** + * This object is created internally by an HTTP server, not by the user. It is + * passed as the second parameter to the `'request'` event. + * @since v0.1.17 + */ + class ServerResponse extends OutgoingMessage { + /** + * When using implicit headers (not calling `response.writeHead()` explicitly), + * this property controls the status code that will be sent to the client when + * the headers get flushed. + * + * ```js + * response.statusCode = 404; + * ``` + * + * After response header was sent to the client, this property indicates the + * status code which was sent out. + * @since v0.4.0 + */ + statusCode: number; + /** + * When using implicit headers (not calling `response.writeHead()` explicitly), + * this property controls the status message that will be sent to the client when + * the headers get flushed. If this is left as `undefined` then the standard + * message for the status code will be used. + * + * ```js + * response.statusMessage = 'Not found'; + * ``` + * + * After response header was sent to the client, this property indicates the + * status message which was sent out. + * @since v0.11.8 + */ + statusMessage: string; + constructor(req: IncomingMessage); + assignSocket(socket: Socket): void; + detachSocket(socket: Socket): void; + /** + * Sends a HTTP/1.1 100 Continue message to the client, indicating that + * the request body should be sent. See the `'checkContinue'` event on`Server`. + * @since v0.3.0 + */ + writeContinue(callback?: () => void): void; + /** + * Sends a response header to the request. The status code is a 3-digit HTTP + * status code, like `404`. The last argument, `headers`, are the response headers. + * Optionally one can give a human-readable `statusMessage` as the second + * argument. + * + * `headers` may be an `Array` where the keys and values are in the same list. + * It is _not_ a list of tuples. So, the even-numbered offsets are key values, + * and the odd-numbered offsets are the associated values. The array is in the same + * format as `request.rawHeaders`. + * + * Returns a reference to the `ServerResponse`, so that calls can be chained. + * + * ```js + * const body = 'hello world'; + * response + * .writeHead(200, { + * 'Content-Length': Buffer.byteLength(body), + * 'Content-Type': 'text/plain' + * }) + * .end(body); + * ``` + * + * This method must only be called once on a message and it must + * be called before `response.end()` is called. + * + * If `response.write()` or `response.end()` are called before calling + * this, the implicit/mutable headers will be calculated and call this function. + * + * When headers have been set with `response.setHeader()`, they will be merged + * with any headers passed to `response.writeHead()`, with the headers passed + * to `response.writeHead()` given precedence. + * + * If this method is called and `response.setHeader()` has not been called, + * it will directly write the supplied header values onto the network channel + * without caching internally, and the `response.getHeader()` on the header + * will not yield the expected result. If progressive population of headers is + * desired with potential future retrieval and modification, use `response.setHeader()` instead. + * + * ```js + * // Returns content-type = text/plain + * const server = http.createServer((req, res) => { + * res.setHeader('Content-Type', 'text/html'); + * res.setHeader('X-Foo', 'bar'); + * res.writeHead(200, { 'Content-Type': 'text/plain' }); + * res.end('ok'); + * }); + * ``` + * + * `Content-Length` is given in bytes, not characters. Use `Buffer.byteLength()` to determine the length of the body in bytes. Node.js + * does not check whether `Content-Length` and the length of the body which has + * been transmitted are equal or not. + * + * Attempting to set a header field name or value that contains invalid characters + * will result in a `TypeError` being thrown. + * @since v0.1.30 + */ + writeHead(statusCode: number, statusMessage?: string, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this; + writeHead(statusCode: number, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this; + /** + * Sends a HTTP/1.1 102 Processing message to the client, indicating that + * the request body should be sent. + * @since v10.0.0 + */ + writeProcessing(): void; + } + interface InformationEvent { + statusCode: number; + statusMessage: string; + httpVersion: string; + httpVersionMajor: number; + httpVersionMinor: number; + headers: IncomingHttpHeaders; + rawHeaders: string[]; + } + /** + * This object is created internally and returned from {@link request}. It + * represents an _in-progress_ request whose header has already been queued. The + * header is still mutable using the `setHeader(name, value)`,`getHeader(name)`, `removeHeader(name)` API. The actual header will + * be sent along with the first data chunk or when calling `request.end()`. + * + * To get the response, add a listener for `'response'` to the request object.`'response'` will be emitted from the request object when the response + * headers have been received. The `'response'` event is executed with one + * argument which is an instance of {@link IncomingMessage}. + * + * During the `'response'` event, one can add listeners to the + * response object; particularly to listen for the `'data'` event. + * + * If no `'response'` handler is added, then the response will be + * entirely discarded. However, if a `'response'` event handler is added, + * then the data from the response object **must** be consumed, either by + * calling `response.read()` whenever there is a `'readable'` event, or + * by adding a `'data'` handler, or by calling the `.resume()` method. + * Until the data is consumed, the `'end'` event will not fire. Also, until + * the data is read it will consume memory that can eventually lead to a + * 'process out of memory' error. + * + * For backward compatibility, `res` will only emit `'error'` if there is an`'error'` listener registered. + * + * Node.js does not check whether Content-Length and the length of the + * body which has been transmitted are equal or not. + * @since v0.1.17 + */ + class ClientRequest extends OutgoingMessage { + /** + * The `request.aborted` property will be `true` if the request has + * been aborted. + * @since v0.11.14 + * @deprecated Since v17.0.0 - Check `destroyed` instead. + */ + aborted: boolean; + /** + * The request host. + * @since v14.5.0, v12.19.0 + */ + host: string; + /** + * The request protocol. + * @since v14.5.0, v12.19.0 + */ + protocol: string; + /** + * Whether the request is send through a reused socket. + * @since v13.0.0, v12.16.0 + */ + reusedSocket: boolean; + /** + * Limits maximum response headers count. If set to 0, no limit will be applied. + * @default 2000 + */ + maxHeadersCount: number; + constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void); + /** + * The request method. + * @since v0.1.97 + */ + method: string; + /** + * The request path. + * @since v0.4.0 + */ + path: string; + /** + * Marks the request as aborting. Calling this will cause remaining data + * in the response to be dropped and the socket to be destroyed. + * @since v0.3.8 + * @deprecated Since v14.1.0,v13.14.0 - Use `destroy` instead. + */ + abort(): void; + onSocket(socket: Socket): void; + /** + * Once a socket is assigned to this request and is connected `socket.setTimeout()` will be called. + * @since v0.5.9 + * @param timeout Milliseconds before a request times out. + * @param callback Optional function to be called when a timeout occurs. Same as binding to the `'timeout'` event. + */ + setTimeout(timeout: number, callback?: () => void): this; + /** + * Once a socket is assigned to this request and is connected `socket.setNoDelay()` will be called. + * @since v0.5.9 + */ + setNoDelay(noDelay?: boolean): void; + /** + * Once a socket is assigned to this request and is connected `socket.setKeepAlive()` will be called. + * @since v0.5.9 + */ + setSocketKeepAlive(enable?: boolean, initialDelay?: number): void; + /** + * Returns an array containing the unique names of the current outgoing raw + * headers. Header names are returned with their exact casing being set. + * + * ```js + * request.setHeader('Foo', 'bar'); + * request.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); + * + * const headerNames = request.getRawHeaderNames(); + * // headerNames === ['Foo', 'Set-Cookie'] + * ``` + * @since v15.13.0, v14.17.0 + */ + getRawHeaderNames(): string[]; + /** + * @deprecated + */ + addListener(event: 'abort', listener: () => void): this; + addListener(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; + addListener(event: 'continue', listener: () => void): this; + addListener(event: 'information', listener: (info: InformationEvent) => void): this; + addListener(event: 'response', listener: (response: IncomingMessage) => void): this; + addListener(event: 'socket', listener: (socket: Socket) => void): this; + addListener(event: 'timeout', listener: () => void): this; + addListener(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; + addListener(event: 'close', listener: () => void): this; + addListener(event: 'drain', listener: () => void): this; + addListener(event: 'error', listener: (err: Error) => void): this; + addListener(event: 'finish', listener: () => void): this; + addListener(event: 'pipe', listener: (src: stream.Readable) => void): this; + addListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + /** + * @deprecated + */ + on(event: 'abort', listener: () => void): this; + on(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; + on(event: 'continue', listener: () => void): this; + on(event: 'information', listener: (info: InformationEvent) => void): this; + on(event: 'response', listener: (response: IncomingMessage) => void): this; + on(event: 'socket', listener: (socket: Socket) => void): this; + on(event: 'timeout', listener: () => void): this; + on(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; + on(event: 'close', listener: () => void): this; + on(event: 'drain', listener: () => void): this; + on(event: 'error', listener: (err: Error) => void): this; + on(event: 'finish', listener: () => void): this; + on(event: 'pipe', listener: (src: stream.Readable) => void): this; + on(event: 'unpipe', listener: (src: stream.Readable) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + /** + * @deprecated + */ + once(event: 'abort', listener: () => void): this; + once(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; + once(event: 'continue', listener: () => void): this; + once(event: 'information', listener: (info: InformationEvent) => void): this; + once(event: 'response', listener: (response: IncomingMessage) => void): this; + once(event: 'socket', listener: (socket: Socket) => void): this; + once(event: 'timeout', listener: () => void): this; + once(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; + once(event: 'close', listener: () => void): this; + once(event: 'drain', listener: () => void): this; + once(event: 'error', listener: (err: Error) => void): this; + once(event: 'finish', listener: () => void): this; + once(event: 'pipe', listener: (src: stream.Readable) => void): this; + once(event: 'unpipe', listener: (src: stream.Readable) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + /** + * @deprecated + */ + prependListener(event: 'abort', listener: () => void): this; + prependListener(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; + prependListener(event: 'continue', listener: () => void): this; + prependListener(event: 'information', listener: (info: InformationEvent) => void): this; + prependListener(event: 'response', listener: (response: IncomingMessage) => void): this; + prependListener(event: 'socket', listener: (socket: Socket) => void): this; + prependListener(event: 'timeout', listener: () => void): this; + prependListener(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; + prependListener(event: 'close', listener: () => void): this; + prependListener(event: 'drain', listener: () => void): this; + prependListener(event: 'error', listener: (err: Error) => void): this; + prependListener(event: 'finish', listener: () => void): this; + prependListener(event: 'pipe', listener: (src: stream.Readable) => void): this; + prependListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + /** + * @deprecated + */ + prependOnceListener(event: 'abort', listener: () => void): this; + prependOnceListener(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; + prependOnceListener(event: 'continue', listener: () => void): this; + prependOnceListener(event: 'information', listener: (info: InformationEvent) => void): this; + prependOnceListener(event: 'response', listener: (response: IncomingMessage) => void): this; + prependOnceListener(event: 'socket', listener: (socket: Socket) => void): this; + prependOnceListener(event: 'timeout', listener: () => void): this; + prependOnceListener(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this; + prependOnceListener(event: 'close', listener: () => void): this; + prependOnceListener(event: 'drain', listener: () => void): this; + prependOnceListener(event: 'error', listener: (err: Error) => void): this; + prependOnceListener(event: 'finish', listener: () => void): this; + prependOnceListener(event: 'pipe', listener: (src: stream.Readable) => void): this; + prependOnceListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + /** + * An `IncomingMessage` object is created by {@link Server} or {@link ClientRequest} and passed as the first argument to the `'request'` and `'response'` event respectively. It may be used to + * access response + * status, headers and data. + * + * Different from its `socket` value which is a subclass of `stream.Duplex`, the`IncomingMessage` itself extends `stream.Readable` and is created separately to + * parse and emit the incoming HTTP headers and payload, as the underlying socket + * may be reused multiple times in case of keep-alive. + * @since v0.1.17 + */ + class IncomingMessage extends stream.Readable { + constructor(socket: Socket); + /** + * The `message.aborted` property will be `true` if the request has + * been aborted. + * @since v10.1.0 + * @deprecated Since v17.0.0 - Check `message.destroyed` from [stream.Readable](https://nodejs.org/dist/latest-v17.x/docs/api/stream.html#class-streamreadable). + */ + aborted: boolean; + /** + * In case of server request, the HTTP version sent by the client. In the case of + * client response, the HTTP version of the connected-to server. + * Probably either `'1.1'` or `'1.0'`. + * + * Also `message.httpVersionMajor` is the first integer and`message.httpVersionMinor` is the second. + * @since v0.1.1 + */ + httpVersion: string; + httpVersionMajor: number; + httpVersionMinor: number; + /** + * The `message.complete` property will be `true` if a complete HTTP message has + * been received and successfully parsed. + * + * This property is particularly useful as a means of determining if a client or + * server fully transmitted a message before a connection was terminated: + * + * ```js + * const req = http.request({ + * host: '127.0.0.1', + * port: 8080, + * method: 'POST' + * }, (res) => { + * res.resume(); + * res.on('end', () => { + * if (!res.complete) + * console.error( + * 'The connection was terminated while the message was still being sent'); + * }); + * }); + * ``` + * @since v0.3.0 + */ + complete: boolean; + /** + * Alias for `message.socket`. + * @since v0.1.90 + * @deprecated Since v16.0.0 - Use `socket`. + */ + connection: Socket; + /** + * The `net.Socket` object associated with the connection. + * + * With HTTPS support, use `request.socket.getPeerCertificate()` to obtain the + * client's authentication details. + * + * This property is guaranteed to be an instance of the `net.Socket` class, + * a subclass of `stream.Duplex`, unless the user specified a socket + * type other than `net.Socket`. + * @since v0.3.0 + */ + socket: Socket; + /** + * The request/response headers object. + * + * Key-value pairs of header names and values. Header names are lower-cased. + * + * ```js + * // Prints something like: + * // + * // { 'user-agent': 'curl/7.22.0', + * // host: '127.0.0.1:8000', + * // accept: '*' } + * console.log(request.headers); + * ``` + * + * Duplicates in raw headers are handled in the following ways, depending on the + * header name: + * + * * Duplicates of `age`, `authorization`, `content-length`, `content-type`,`etag`, `expires`, `from`, `host`, `if-modified-since`, `if-unmodified-since`,`last-modified`, `location`, + * `max-forwards`, `proxy-authorization`, `referer`,`retry-after`, `server`, or `user-agent` are discarded. + * * `set-cookie` is always an array. Duplicates are added to the array. + * * For duplicate `cookie` headers, the values are joined together with '; '. + * * For all other headers, the values are joined together with ', '. + * @since v0.1.5 + */ + headers: IncomingHttpHeaders; + /** + * The raw request/response headers list exactly as they were received. + * + * The keys and values are in the same list. It is _not_ a + * list of tuples. So, the even-numbered offsets are key values, and the + * odd-numbered offsets are the associated values. + * + * Header names are not lowercased, and duplicates are not merged. + * + * ```js + * // Prints something like: + * // + * // [ 'user-agent', + * // 'this is invalid because there can be only one', + * // 'User-Agent', + * // 'curl/7.22.0', + * // 'Host', + * // '127.0.0.1:8000', + * // 'ACCEPT', + * // '*' ] + * console.log(request.rawHeaders); + * ``` + * @since v0.11.6 + */ + rawHeaders: string[]; + /** + * The request/response trailers object. Only populated at the `'end'` event. + * @since v0.3.0 + */ + trailers: NodeJS.Dict; + /** + * The raw request/response trailer keys and values exactly as they were + * received. Only populated at the `'end'` event. + * @since v0.11.6 + */ + rawTrailers: string[]; + /** + * Calls `message.socket.setTimeout(msecs, callback)`. + * @since v0.5.9 + */ + setTimeout(msecs: number, callback?: () => void): this; + /** + * **Only valid for request obtained from {@link Server}.** + * + * The request method as a string. Read only. Examples: `'GET'`, `'DELETE'`. + * @since v0.1.1 + */ + method?: string | undefined; + /** + * **Only valid for request obtained from {@link Server}.** + * + * Request URL string. This contains only the URL that is present in the actual + * HTTP request. Take the following request: + * + * ```http + * GET /status?name=ryan HTTP/1.1 + * Accept: text/plain + * ``` + * + * To parse the URL into its parts: + * + * ```js + * new URL(request.url, `http://${request.headers.host}`); + * ``` + * + * When `request.url` is `'/status?name=ryan'` and`request.headers.host` is `'localhost:3000'`: + * + * ```console + * $ node + * > new URL(request.url, `http://${request.headers.host}`) + * URL { + * href: 'http://localhost:3000/status?name=ryan', + * origin: 'http://localhost:3000', + * protocol: 'http:', + * username: '', + * password: '', + * host: 'localhost:3000', + * hostname: 'localhost', + * port: '3000', + * pathname: '/status', + * search: '?name=ryan', + * searchParams: URLSearchParams { 'name' => 'ryan' }, + * hash: '' + * } + * ``` + * @since v0.1.90 + */ + url?: string | undefined; + /** + * **Only valid for response obtained from {@link ClientRequest}.** + * + * The 3-digit HTTP response status code. E.G. `404`. + * @since v0.1.1 + */ + statusCode?: number | undefined; + /** + * **Only valid for response obtained from {@link ClientRequest}.** + * + * The HTTP response status message (reason phrase). E.G. `OK` or `Internal Server Error`. + * @since v0.11.10 + */ + statusMessage?: string | undefined; + /** + * Calls `destroy()` on the socket that received the `IncomingMessage`. If `error`is provided, an `'error'` event is emitted on the socket and `error` is passed + * as an argument to any listeners on the event. + * @since v0.3.0 + */ + destroy(error?: Error): this; + } + interface AgentOptions extends Partial { + /** + * Keep sockets around in a pool to be used by other requests in the future. Default = false + */ + keepAlive?: boolean | undefined; + /** + * When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000. + * Only relevant if keepAlive is set to true. + */ + keepAliveMsecs?: number | undefined; + /** + * Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity + */ + maxSockets?: number | undefined; + /** + * Maximum number of sockets allowed for all hosts in total. Each request will use a new socket until the maximum is reached. Default: Infinity. + */ + maxTotalSockets?: number | undefined; + /** + * Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256. + */ + maxFreeSockets?: number | undefined; + /** + * Socket timeout in milliseconds. This will set the timeout after the socket is connected. + */ + timeout?: number | undefined; + /** + * Scheduling strategy to apply when picking the next free socket to use. + * @default `lifo` + */ + scheduling?: 'fifo' | 'lifo' | undefined; + } + /** + * An `Agent` is responsible for managing connection persistence + * and reuse for HTTP clients. It maintains a queue of pending requests + * for a given host and port, reusing a single socket connection for each + * until the queue is empty, at which time the socket is either destroyed + * or put into a pool where it is kept to be used again for requests to the + * same host and port. Whether it is destroyed or pooled depends on the`keepAlive` `option`. + * + * Pooled connections have TCP Keep-Alive enabled for them, but servers may + * still close idle connections, in which case they will be removed from the + * pool and a new connection will be made when a new HTTP request is made for + * that host and port. Servers may also refuse to allow multiple requests + * over the same connection, in which case the connection will have to be + * remade for every request and cannot be pooled. The `Agent` will still make + * the requests to that server, but each one will occur over a new connection. + * + * When a connection is closed by the client or the server, it is removed + * from the pool. Any unused sockets in the pool will be unrefed so as not + * to keep the Node.js process running when there are no outstanding requests. + * (see `socket.unref()`). + * + * It is good practice, to `destroy()` an `Agent` instance when it is no + * longer in use, because unused sockets consume OS resources. + * + * Sockets are removed from an agent when the socket emits either + * a `'close'` event or an `'agentRemove'` event. When intending to keep one + * HTTP request open for a long time without keeping it in the agent, something + * like the following may be done: + * + * ```js + * http.get(options, (res) => { + * // Do stuff + * }).on('socket', (socket) => { + * socket.emit('agentRemove'); + * }); + * ``` + * + * An agent may also be used for an individual request. By providing`{agent: false}` as an option to the `http.get()` or `http.request()`functions, a one-time use `Agent` with default options + * will be used + * for the client connection. + * + * `agent:false`: + * + * ```js + * http.get({ + * hostname: 'localhost', + * port: 80, + * path: '/', + * agent: false // Create a new agent just for this one request + * }, (res) => { + * // Do stuff with response + * }); + * ``` + * @since v0.3.4 + */ + class Agent { + /** + * By default set to 256\. For agents with `keepAlive` enabled, this + * sets the maximum number of sockets that will be left open in the free + * state. + * @since v0.11.7 + */ + maxFreeSockets: number; + /** + * By default set to `Infinity`. Determines how many concurrent sockets the agent + * can have open per origin. Origin is the returned value of `agent.getName()`. + * @since v0.3.6 + */ + maxSockets: number; + /** + * By default set to `Infinity`. Determines how many concurrent sockets the agent + * can have open. Unlike `maxSockets`, this parameter applies across all origins. + * @since v14.5.0, v12.19.0 + */ + maxTotalSockets: number; + /** + * An object which contains arrays of sockets currently awaiting use by + * the agent when `keepAlive` is enabled. Do not modify. + * + * Sockets in the `freeSockets` list will be automatically destroyed and + * removed from the array on `'timeout'`. + * @since v0.11.4 + */ + readonly freeSockets: NodeJS.ReadOnlyDict; + /** + * An object which contains arrays of sockets currently in use by the + * agent. Do not modify. + * @since v0.3.6 + */ + readonly sockets: NodeJS.ReadOnlyDict; + /** + * An object which contains queues of requests that have not yet been assigned to + * sockets. Do not modify. + * @since v0.5.9 + */ + readonly requests: NodeJS.ReadOnlyDict; + constructor(opts?: AgentOptions); + /** + * Destroy any sockets that are currently in use by the agent. + * + * It is usually not necessary to do this. However, if using an + * agent with `keepAlive` enabled, then it is best to explicitly shut down + * the agent when it is no longer needed. Otherwise, + * sockets might stay open for quite a long time before the server + * terminates them. + * @since v0.11.4 + */ + destroy(): void; + } + const METHODS: string[]; + const STATUS_CODES: { + [errorCode: number]: string | undefined; + [errorCode: string]: string | undefined; + }; + /** + * Returns a new instance of {@link Server}. + * + * The `requestListener` is a function which is automatically + * added to the `'request'` event. + * @since v0.1.13 + */ + function createServer(requestListener?: RequestListener): Server; + function createServer(options: ServerOptions, requestListener?: RequestListener): Server; + // although RequestOptions are passed as ClientRequestArgs to ClientRequest directly, + // create interface RequestOptions would make the naming more clear to developers + interface RequestOptions extends ClientRequestArgs {} + /** + * Node.js maintains several connections per server to make HTTP requests. + * This function allows one to transparently issue requests. + * + * `url` can be a string or a `URL` object. If `url` is a + * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object. + * + * If both `url` and `options` are specified, the objects are merged, with the`options` properties taking precedence. + * + * The optional `callback` parameter will be added as a one-time listener for + * the `'response'` event. + * + * `http.request()` returns an instance of the {@link ClientRequest} class. The `ClientRequest` instance is a writable stream. If one needs to + * upload a file with a POST request, then write to the `ClientRequest` object. + * + * ```js + * const http = require('http'); + * + * const postData = JSON.stringify({ + * 'msg': 'Hello World!' + * }); + * + * const options = { + * hostname: 'www.google.com', + * port: 80, + * path: '/upload', + * method: 'POST', + * headers: { + * 'Content-Type': 'application/json', + * 'Content-Length': Buffer.byteLength(postData) + * } + * }; + * + * const req = http.request(options, (res) => { + * console.log(`STATUS: ${res.statusCode}`); + * console.log(`HEADERS: ${JSON.stringify(res.headers)}`); + * res.setEncoding('utf8'); + * res.on('data', (chunk) => { + * console.log(`BODY: ${chunk}`); + * }); + * res.on('end', () => { + * console.log('No more data in response.'); + * }); + * }); + * + * req.on('error', (e) => { + * console.error(`problem with request: ${e.message}`); + * }); + * + * // Write data to request body + * req.write(postData); + * req.end(); + * ``` + * + * In the example `req.end()` was called. With `http.request()` one + * must always call `req.end()` to signify the end of the request - + * even if there is no data being written to the request body. + * + * If any error is encountered during the request (be that with DNS resolution, + * TCP level errors, or actual HTTP parse errors) an `'error'` event is emitted + * on the returned request object. As with all `'error'` events, if no listeners + * are registered the error will be thrown. + * + * There are a few special headers that should be noted. + * + * * Sending a 'Connection: keep-alive' will notify Node.js that the connection to + * the server should be persisted until the next request. + * * Sending a 'Content-Length' header will disable the default chunked encoding. + * * Sending an 'Expect' header will immediately send the request headers. + * Usually, when sending 'Expect: 100-continue', both a timeout and a listener + * for the `'continue'` event should be set. See RFC 2616 Section 8.2.3 for more + * information. + * * Sending an Authorization header will override using the `auth` option + * to compute basic authentication. + * + * Example using a `URL` as `options`: + * + * ```js + * const options = new URL('http://abc:xyz@example.com'); + * + * const req = http.request(options, (res) => { + * // ... + * }); + * ``` + * + * In a successful request, the following events will be emitted in the following + * order: + * + * * `'socket'` + * * `'response'` + * * `'data'` any number of times, on the `res` object + * (`'data'` will not be emitted at all if the response body is empty, for + * instance, in most redirects) + * * `'end'` on the `res` object + * * `'close'` + * + * In the case of a connection error, the following events will be emitted: + * + * * `'socket'` + * * `'error'` + * * `'close'` + * + * In the case of a premature connection close before the response is received, + * the following events will be emitted in the following order: + * + * * `'socket'` + * * `'error'` with an error with message `'Error: socket hang up'` and code`'ECONNRESET'` + * * `'close'` + * + * In the case of a premature connection close after the response is received, + * the following events will be emitted in the following order: + * + * * `'socket'` + * * `'response'` + * * `'data'` any number of times, on the `res` object + * * (connection closed here) + * * `'aborted'` on the `res` object + * * `'error'` on the `res` object with an error with message`'Error: aborted'` and code `'ECONNRESET'`. + * * `'close'` + * * `'close'` on the `res` object + * + * If `req.destroy()` is called before a socket is assigned, the following + * events will be emitted in the following order: + * + * * (`req.destroy()` called here) + * * `'error'` with an error with message `'Error: socket hang up'` and code`'ECONNRESET'` + * * `'close'` + * + * If `req.destroy()` is called before the connection succeeds, the following + * events will be emitted in the following order: + * + * * `'socket'` + * * (`req.destroy()` called here) + * * `'error'` with an error with message `'Error: socket hang up'` and code`'ECONNRESET'` + * * `'close'` + * + * If `req.destroy()` is called after the response is received, the following + * events will be emitted in the following order: + * + * * `'socket'` + * * `'response'` + * * `'data'` any number of times, on the `res` object + * * (`req.destroy()` called here) + * * `'aborted'` on the `res` object + * * `'error'` on the `res` object with an error with message`'Error: aborted'` and code `'ECONNRESET'`. + * * `'close'` + * * `'close'` on the `res` object + * + * If `req.abort()` is called before a socket is assigned, the following + * events will be emitted in the following order: + * + * * (`req.abort()` called here) + * * `'abort'` + * * `'close'` + * + * If `req.abort()` is called before the connection succeeds, the following + * events will be emitted in the following order: + * + * * `'socket'` + * * (`req.abort()` called here) + * * `'abort'` + * * `'error'` with an error with message `'Error: socket hang up'` and code`'ECONNRESET'` + * * `'close'` + * + * If `req.abort()` is called after the response is received, the following + * events will be emitted in the following order: + * + * * `'socket'` + * * `'response'` + * * `'data'` any number of times, on the `res` object + * * (`req.abort()` called here) + * * `'abort'` + * * `'aborted'` on the `res` object + * * `'error'` on the `res` object with an error with message`'Error: aborted'` and code `'ECONNRESET'`. + * * `'close'` + * * `'close'` on the `res` object + * + * Setting the `timeout` option or using the `setTimeout()` function will + * not abort the request or do anything besides add a `'timeout'` event. + * + * Passing an `AbortSignal` and then calling `abort` on the corresponding`AbortController` will behave the same way as calling `.destroy()` on the + * request itself. + * @since v0.3.6 + */ + function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest; + function request(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest; + /** + * Since most requests are GET requests without bodies, Node.js provides this + * convenience method. The only difference between this method and {@link request} is that it sets the method to GET and calls `req.end()`automatically. The callback must take care to consume the + * response + * data for reasons stated in {@link ClientRequest} section. + * + * The `callback` is invoked with a single argument that is an instance of {@link IncomingMessage}. + * + * JSON fetching example: + * + * ```js + * http.get('http://localhost:8000/', (res) => { + * const { statusCode } = res; + * const contentType = res.headers['content-type']; + * + * let error; + * // Any 2xx status code signals a successful response but + * // here we're only checking for 200. + * if (statusCode !== 200) { + * error = new Error('Request Failed.\n' + + * `Status Code: ${statusCode}`); + * } else if (!/^application\/json/.test(contentType)) { + * error = new Error('Invalid content-type.\n' + + * `Expected application/json but received ${contentType}`); + * } + * if (error) { + * console.error(error.message); + * // Consume response data to free up memory + * res.resume(); + * return; + * } + * + * res.setEncoding('utf8'); + * let rawData = ''; + * res.on('data', (chunk) => { rawData += chunk; }); + * res.on('end', () => { + * try { + * const parsedData = JSON.parse(rawData); + * console.log(parsedData); + * } catch (e) { + * console.error(e.message); + * } + * }); + * }).on('error', (e) => { + * console.error(`Got error: ${e.message}`); + * }); + * + * // Create a local server to receive data from + * const server = http.createServer((req, res) => { + * res.writeHead(200, { 'Content-Type': 'application/json' }); + * res.end(JSON.stringify({ + * data: 'Hello World!' + * })); + * }); + * + * server.listen(8000); + * ``` + * @since v0.3.6 + * @param options Accepts the same `options` as {@link request}, with the `method` always set to `GET`. Properties that are inherited from the prototype are ignored. + */ + function get(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest; + function get(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest; + let globalAgent: Agent; + /** + * Read-only property specifying the maximum allowed size of HTTP headers in bytes. + * Defaults to 16KB. Configurable using the `--max-http-header-size` CLI option. + */ + const maxHeaderSize: number; +} +declare module 'node:http' { + export * from 'http'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/http2.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/http2.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..1166c9087397779442481dc3b13f35a0a7f374df --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/http2.d.ts" @@ -0,0 +1,2100 @@ +/** + * The `http2` module provides an implementation of the [HTTP/2](https://tools.ietf.org/html/rfc7540) protocol. It + * can be accessed using: + * + * ```js + * const http2 = require('http2'); + * ``` + * @since v8.4.0 + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/http2.js) + */ +declare module 'http2' { + import EventEmitter = require('node:events'); + import * as fs from 'node:fs'; + import * as net from 'node:net'; + import * as stream from 'node:stream'; + import * as tls from 'node:tls'; + import * as url from 'node:url'; + import { IncomingHttpHeaders as Http1IncomingHttpHeaders, OutgoingHttpHeaders, IncomingMessage, ServerResponse } from 'node:http'; + export { OutgoingHttpHeaders } from 'node:http'; + export interface IncomingHttpStatusHeader { + ':status'?: number | undefined; + } + export interface IncomingHttpHeaders extends Http1IncomingHttpHeaders { + ':path'?: string | undefined; + ':method'?: string | undefined; + ':authority'?: string | undefined; + ':scheme'?: string | undefined; + } + // Http2Stream + export interface StreamPriorityOptions { + exclusive?: boolean | undefined; + parent?: number | undefined; + weight?: number | undefined; + silent?: boolean | undefined; + } + export interface StreamState { + localWindowSize?: number | undefined; + state?: number | undefined; + localClose?: number | undefined; + remoteClose?: number | undefined; + sumDependencyWeight?: number | undefined; + weight?: number | undefined; + } + export interface ServerStreamResponseOptions { + endStream?: boolean | undefined; + waitForTrailers?: boolean | undefined; + } + export interface StatOptions { + offset: number; + length: number; + } + export interface ServerStreamFileResponseOptions { + statCheck?(stats: fs.Stats, headers: OutgoingHttpHeaders, statOptions: StatOptions): void | boolean; + waitForTrailers?: boolean | undefined; + offset?: number | undefined; + length?: number | undefined; + } + export interface ServerStreamFileResponseOptionsWithError extends ServerStreamFileResponseOptions { + onError?(err: NodeJS.ErrnoException): void; + } + export interface Http2Stream extends stream.Duplex { + /** + * Set to `true` if the `Http2Stream` instance was aborted abnormally. When set, + * the `'aborted'` event will have been emitted. + * @since v8.4.0 + */ + readonly aborted: boolean; + /** + * This property shows the number of characters currently buffered to be written. + * See `net.Socket.bufferSize` for details. + * @since v11.2.0, v10.16.0 + */ + readonly bufferSize: number; + /** + * Set to `true` if the `Http2Stream` instance has been closed. + * @since v9.4.0 + */ + readonly closed: boolean; + /** + * Set to `true` if the `Http2Stream` instance has been destroyed and is no longer + * usable. + * @since v8.4.0 + */ + readonly destroyed: boolean; + /** + * Set the `true` if the `END_STREAM` flag was set in the request or response + * HEADERS frame received, indicating that no additional data should be received + * and the readable side of the `Http2Stream` will be closed. + * @since v10.11.0 + */ + readonly endAfterHeaders: boolean; + /** + * The numeric stream identifier of this `Http2Stream` instance. Set to `undefined`if the stream identifier has not yet been assigned. + * @since v8.4.0 + */ + readonly id?: number | undefined; + /** + * Set to `true` if the `Http2Stream` instance has not yet been assigned a + * numeric stream identifier. + * @since v9.4.0 + */ + readonly pending: boolean; + /** + * Set to the `RST_STREAM` `error code` reported when the `Http2Stream` is + * destroyed after either receiving an `RST_STREAM` frame from the connected peer, + * calling `http2stream.close()`, or `http2stream.destroy()`. Will be`undefined` if the `Http2Stream` has not been closed. + * @since v8.4.0 + */ + readonly rstCode: number; + /** + * An object containing the outbound headers sent for this `Http2Stream`. + * @since v9.5.0 + */ + readonly sentHeaders: OutgoingHttpHeaders; + /** + * An array of objects containing the outbound informational (additional) headers + * sent for this `Http2Stream`. + * @since v9.5.0 + */ + readonly sentInfoHeaders?: OutgoingHttpHeaders[] | undefined; + /** + * An object containing the outbound trailers sent for this `HttpStream`. + * @since v9.5.0 + */ + readonly sentTrailers?: OutgoingHttpHeaders | undefined; + /** + * A reference to the `Http2Session` instance that owns this `Http2Stream`. The + * value will be `undefined` after the `Http2Stream` instance is destroyed. + * @since v8.4.0 + */ + readonly session: Http2Session; + /** + * Provides miscellaneous information about the current state of the`Http2Stream`. + * + * A current state of this `Http2Stream`. + * @since v8.4.0 + */ + readonly state: StreamState; + /** + * Closes the `Http2Stream` instance by sending an `RST_STREAM` frame to the + * connected HTTP/2 peer. + * @since v8.4.0 + * @param [code=http2.constants.NGHTTP2_NO_ERROR] Unsigned 32-bit integer identifying the error code. + * @param callback An optional function registered to listen for the `'close'` event. + */ + close(code?: number, callback?: () => void): void; + /** + * Updates the priority for this `Http2Stream` instance. + * @since v8.4.0 + */ + priority(options: StreamPriorityOptions): void; + /** + * ```js + * const http2 = require('http2'); + * const client = http2.connect('http://example.org:8000'); + * const { NGHTTP2_CANCEL } = http2.constants; + * const req = client.request({ ':path': '/' }); + * + * // Cancel the stream if there's no activity after 5 seconds + * req.setTimeout(5000, () => req.close(NGHTTP2_CANCEL)); + * ``` + * @since v8.4.0 + */ + setTimeout(msecs: number, callback?: () => void): void; + /** + * Sends a trailing `HEADERS` frame to the connected HTTP/2 peer. This method + * will cause the `Http2Stream` to be immediately closed and must only be + * called after the `'wantTrailers'` event has been emitted. When sending a + * request or sending a response, the `options.waitForTrailers` option must be set + * in order to keep the `Http2Stream` open after the final `DATA` frame so that + * trailers can be sent. + * + * ```js + * const http2 = require('http2'); + * const server = http2.createServer(); + * server.on('stream', (stream) => { + * stream.respond(undefined, { waitForTrailers: true }); + * stream.on('wantTrailers', () => { + * stream.sendTrailers({ xyz: 'abc' }); + * }); + * stream.end('Hello World'); + * }); + * ``` + * + * The HTTP/1 specification forbids trailers from containing HTTP/2 pseudo-header + * fields (e.g. `':method'`, `':path'`, etc). + * @since v10.0.0 + */ + sendTrailers(headers: OutgoingHttpHeaders): void; + addListener(event: 'aborted', listener: () => void): this; + addListener(event: 'close', listener: () => void): this; + addListener(event: 'data', listener: (chunk: Buffer | string) => void): this; + addListener(event: 'drain', listener: () => void): this; + addListener(event: 'end', listener: () => void): this; + addListener(event: 'error', listener: (err: Error) => void): this; + addListener(event: 'finish', listener: () => void): this; + addListener(event: 'frameError', listener: (frameType: number, errorCode: number) => void): this; + addListener(event: 'pipe', listener: (src: stream.Readable) => void): this; + addListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; + addListener(event: 'streamClosed', listener: (code: number) => void): this; + addListener(event: 'timeout', listener: () => void): this; + addListener(event: 'trailers', listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; + addListener(event: 'wantTrailers', listener: () => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: 'aborted'): boolean; + emit(event: 'close'): boolean; + emit(event: 'data', chunk: Buffer | string): boolean; + emit(event: 'drain'): boolean; + emit(event: 'end'): boolean; + emit(event: 'error', err: Error): boolean; + emit(event: 'finish'): boolean; + emit(event: 'frameError', frameType: number, errorCode: number): boolean; + emit(event: 'pipe', src: stream.Readable): boolean; + emit(event: 'unpipe', src: stream.Readable): boolean; + emit(event: 'streamClosed', code: number): boolean; + emit(event: 'timeout'): boolean; + emit(event: 'trailers', trailers: IncomingHttpHeaders, flags: number): boolean; + emit(event: 'wantTrailers'): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: 'aborted', listener: () => void): this; + on(event: 'close', listener: () => void): this; + on(event: 'data', listener: (chunk: Buffer | string) => void): this; + on(event: 'drain', listener: () => void): this; + on(event: 'end', listener: () => void): this; + on(event: 'error', listener: (err: Error) => void): this; + on(event: 'finish', listener: () => void): this; + on(event: 'frameError', listener: (frameType: number, errorCode: number) => void): this; + on(event: 'pipe', listener: (src: stream.Readable) => void): this; + on(event: 'unpipe', listener: (src: stream.Readable) => void): this; + on(event: 'streamClosed', listener: (code: number) => void): this; + on(event: 'timeout', listener: () => void): this; + on(event: 'trailers', listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; + on(event: 'wantTrailers', listener: () => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: 'aborted', listener: () => void): this; + once(event: 'close', listener: () => void): this; + once(event: 'data', listener: (chunk: Buffer | string) => void): this; + once(event: 'drain', listener: () => void): this; + once(event: 'end', listener: () => void): this; + once(event: 'error', listener: (err: Error) => void): this; + once(event: 'finish', listener: () => void): this; + once(event: 'frameError', listener: (frameType: number, errorCode: number) => void): this; + once(event: 'pipe', listener: (src: stream.Readable) => void): this; + once(event: 'unpipe', listener: (src: stream.Readable) => void): this; + once(event: 'streamClosed', listener: (code: number) => void): this; + once(event: 'timeout', listener: () => void): this; + once(event: 'trailers', listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; + once(event: 'wantTrailers', listener: () => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: 'aborted', listener: () => void): this; + prependListener(event: 'close', listener: () => void): this; + prependListener(event: 'data', listener: (chunk: Buffer | string) => void): this; + prependListener(event: 'drain', listener: () => void): this; + prependListener(event: 'end', listener: () => void): this; + prependListener(event: 'error', listener: (err: Error) => void): this; + prependListener(event: 'finish', listener: () => void): this; + prependListener(event: 'frameError', listener: (frameType: number, errorCode: number) => void): this; + prependListener(event: 'pipe', listener: (src: stream.Readable) => void): this; + prependListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; + prependListener(event: 'streamClosed', listener: (code: number) => void): this; + prependListener(event: 'timeout', listener: () => void): this; + prependListener(event: 'trailers', listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; + prependListener(event: 'wantTrailers', listener: () => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'aborted', listener: () => void): this; + prependOnceListener(event: 'close', listener: () => void): this; + prependOnceListener(event: 'data', listener: (chunk: Buffer | string) => void): this; + prependOnceListener(event: 'drain', listener: () => void): this; + prependOnceListener(event: 'end', listener: () => void): this; + prependOnceListener(event: 'error', listener: (err: Error) => void): this; + prependOnceListener(event: 'finish', listener: () => void): this; + prependOnceListener(event: 'frameError', listener: (frameType: number, errorCode: number) => void): this; + prependOnceListener(event: 'pipe', listener: (src: stream.Readable) => void): this; + prependOnceListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; + prependOnceListener(event: 'streamClosed', listener: (code: number) => void): this; + prependOnceListener(event: 'timeout', listener: () => void): this; + prependOnceListener(event: 'trailers', listener: (trailers: IncomingHttpHeaders, flags: number) => void): this; + prependOnceListener(event: 'wantTrailers', listener: () => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + export interface ClientHttp2Stream extends Http2Stream { + addListener(event: 'continue', listener: () => {}): this; + addListener(event: 'headers', listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + addListener(event: 'push', listener: (headers: IncomingHttpHeaders, flags: number) => void): this; + addListener(event: 'response', listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: 'continue'): boolean; + emit(event: 'headers', headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean; + emit(event: 'push', headers: IncomingHttpHeaders, flags: number): boolean; + emit(event: 'response', headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: 'continue', listener: () => {}): this; + on(event: 'headers', listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + on(event: 'push', listener: (headers: IncomingHttpHeaders, flags: number) => void): this; + on(event: 'response', listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: 'continue', listener: () => {}): this; + once(event: 'headers', listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + once(event: 'push', listener: (headers: IncomingHttpHeaders, flags: number) => void): this; + once(event: 'response', listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: 'continue', listener: () => {}): this; + prependListener(event: 'headers', listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + prependListener(event: 'push', listener: (headers: IncomingHttpHeaders, flags: number) => void): this; + prependListener(event: 'response', listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'continue', listener: () => {}): this; + prependOnceListener(event: 'headers', listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + prependOnceListener(event: 'push', listener: (headers: IncomingHttpHeaders, flags: number) => void): this; + prependOnceListener(event: 'response', listener: (headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + export interface ServerHttp2Stream extends Http2Stream { + /** + * True if headers were sent, false otherwise (read-only). + * @since v8.4.0 + */ + readonly headersSent: boolean; + /** + * Read-only property mapped to the `SETTINGS_ENABLE_PUSH` flag of the remote + * client's most recent `SETTINGS` frame. Will be `true` if the remote peer + * accepts push streams, `false` otherwise. Settings are the same for every`Http2Stream` in the same `Http2Session`. + * @since v8.4.0 + */ + readonly pushAllowed: boolean; + /** + * Sends an additional informational `HEADERS` frame to the connected HTTP/2 peer. + * @since v8.4.0 + */ + additionalHeaders(headers: OutgoingHttpHeaders): void; + /** + * Initiates a push stream. The callback is invoked with the new `Http2Stream`instance created for the push stream passed as the second argument, or an`Error` passed as the first argument. + * + * ```js + * const http2 = require('http2'); + * const server = http2.createServer(); + * server.on('stream', (stream) => { + * stream.respond({ ':status': 200 }); + * stream.pushStream({ ':path': '/' }, (err, pushStream, headers) => { + * if (err) throw err; + * pushStream.respond({ ':status': 200 }); + * pushStream.end('some pushed data'); + * }); + * stream.end('some data'); + * }); + * ``` + * + * Setting the weight of a push stream is not allowed in the `HEADERS` frame. Pass + * a `weight` value to `http2stream.priority` with the `silent` option set to`true` to enable server-side bandwidth balancing between concurrent streams. + * + * Calling `http2stream.pushStream()` from within a pushed stream is not permitted + * and will throw an error. + * @since v8.4.0 + * @param callback Callback that is called once the push stream has been initiated. + */ + pushStream(headers: OutgoingHttpHeaders, callback?: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void): void; + pushStream(headers: OutgoingHttpHeaders, options?: StreamPriorityOptions, callback?: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void): void; + /** + * ```js + * const http2 = require('http2'); + * const server = http2.createServer(); + * server.on('stream', (stream) => { + * stream.respond({ ':status': 200 }); + * stream.end('some data'); + * }); + * ``` + * + * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event + * will be emitted immediately after queuing the last chunk of payload data to be + * sent. The `http2stream.sendTrailers()` method can then be used to sent trailing + * header fields to the peer. + * + * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically + * close when the final `DATA` frame is transmitted. User code must call either`http2stream.sendTrailers()` or `http2stream.close()` to close the`Http2Stream`. + * + * ```js + * const http2 = require('http2'); + * const server = http2.createServer(); + * server.on('stream', (stream) => { + * stream.respond({ ':status': 200 }, { waitForTrailers: true }); + * stream.on('wantTrailers', () => { + * stream.sendTrailers({ ABC: 'some value to send' }); + * }); + * stream.end('some data'); + * }); + * ``` + * @since v8.4.0 + */ + respond(headers?: OutgoingHttpHeaders, options?: ServerStreamResponseOptions): void; + /** + * Initiates a response whose data is read from the given file descriptor. No + * validation is performed on the given file descriptor. If an error occurs while + * attempting to read data using the file descriptor, the `Http2Stream` will be + * closed using an `RST_STREAM` frame using the standard `INTERNAL_ERROR` code. + * + * When used, the `Http2Stream` object's `Duplex` interface will be closed + * automatically. + * + * ```js + * const http2 = require('http2'); + * const fs = require('fs'); + * + * const server = http2.createServer(); + * server.on('stream', (stream) => { + * const fd = fs.openSync('/some/file', 'r'); + * + * const stat = fs.fstatSync(fd); + * const headers = { + * 'content-length': stat.size, + * 'last-modified': stat.mtime.toUTCString(), + * 'content-type': 'text/plain; charset=utf-8' + * }; + * stream.respondWithFD(fd, headers); + * stream.on('close', () => fs.closeSync(fd)); + * }); + * ``` + * + * The optional `options.statCheck` function may be specified to give user code + * an opportunity to set additional content headers based on the `fs.Stat` details + * of the given fd. If the `statCheck` function is provided, the`http2stream.respondWithFD()` method will perform an `fs.fstat()` call to + * collect details on the provided file descriptor. + * + * The `offset` and `length` options may be used to limit the response to a + * specific range subset. This can be used, for instance, to support HTTP Range + * requests. + * + * The file descriptor or `FileHandle` is not closed when the stream is closed, + * so it will need to be closed manually once it is no longer needed. + * Using the same file descriptor concurrently for multiple streams + * is not supported and may result in data loss. Re-using a file descriptor + * after a stream has finished is supported. + * + * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event + * will be emitted immediately after queuing the last chunk of payload data to be + * sent. The `http2stream.sendTrailers()` method can then be used to sent trailing + * header fields to the peer. + * + * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically + * close when the final `DATA` frame is transmitted. User code _must_ call either`http2stream.sendTrailers()` or `http2stream.close()` to close the`Http2Stream`. + * + * ```js + * const http2 = require('http2'); + * const fs = require('fs'); + * + * const server = http2.createServer(); + * server.on('stream', (stream) => { + * const fd = fs.openSync('/some/file', 'r'); + * + * const stat = fs.fstatSync(fd); + * const headers = { + * 'content-length': stat.size, + * 'last-modified': stat.mtime.toUTCString(), + * 'content-type': 'text/plain; charset=utf-8' + * }; + * stream.respondWithFD(fd, headers, { waitForTrailers: true }); + * stream.on('wantTrailers', () => { + * stream.sendTrailers({ ABC: 'some value to send' }); + * }); + * + * stream.on('close', () => fs.closeSync(fd)); + * }); + * ``` + * @since v8.4.0 + * @param fd A readable file descriptor. + */ + respondWithFD(fd: number | fs.promises.FileHandle, headers?: OutgoingHttpHeaders, options?: ServerStreamFileResponseOptions): void; + /** + * Sends a regular file as the response. The `path` must specify a regular file + * or an `'error'` event will be emitted on the `Http2Stream` object. + * + * When used, the `Http2Stream` object's `Duplex` interface will be closed + * automatically. + * + * The optional `options.statCheck` function may be specified to give user code + * an opportunity to set additional content headers based on the `fs.Stat` details + * of the given file: + * + * If an error occurs while attempting to read the file data, the `Http2Stream`will be closed using an `RST_STREAM` frame using the standard `INTERNAL_ERROR`code. If the `onError` callback is + * defined, then it will be called. Otherwise + * the stream will be destroyed. + * + * Example using a file path: + * + * ```js + * const http2 = require('http2'); + * const server = http2.createServer(); + * server.on('stream', (stream) => { + * function statCheck(stat, headers) { + * headers['last-modified'] = stat.mtime.toUTCString(); + * } + * + * function onError(err) { + * // stream.respond() can throw if the stream has been destroyed by + * // the other side. + * try { + * if (err.code === 'ENOENT') { + * stream.respond({ ':status': 404 }); + * } else { + * stream.respond({ ':status': 500 }); + * } + * } catch (err) { + * // Perform actual error handling. + * console.log(err); + * } + * stream.end(); + * } + * + * stream.respondWithFile('/some/file', + * { 'content-type': 'text/plain; charset=utf-8' }, + * { statCheck, onError }); + * }); + * ``` + * + * The `options.statCheck` function may also be used to cancel the send operation + * by returning `false`. For instance, a conditional request may check the stat + * results to determine if the file has been modified to return an appropriate`304` response: + * + * ```js + * const http2 = require('http2'); + * const server = http2.createServer(); + * server.on('stream', (stream) => { + * function statCheck(stat, headers) { + * // Check the stat here... + * stream.respond({ ':status': 304 }); + * return false; // Cancel the send operation + * } + * stream.respondWithFile('/some/file', + * { 'content-type': 'text/plain; charset=utf-8' }, + * { statCheck }); + * }); + * ``` + * + * The `content-length` header field will be automatically set. + * + * The `offset` and `length` options may be used to limit the response to a + * specific range subset. This can be used, for instance, to support HTTP Range + * requests. + * + * The `options.onError` function may also be used to handle all the errors + * that could happen before the delivery of the file is initiated. The + * default behavior is to destroy the stream. + * + * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event + * will be emitted immediately after queuing the last chunk of payload data to be + * sent. The `http2stream.sendTrailers()` method can then be used to sent trailing + * header fields to the peer. + * + * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically + * close when the final `DATA` frame is transmitted. User code must call either`http2stream.sendTrailers()` or `http2stream.close()` to close the`Http2Stream`. + * + * ```js + * const http2 = require('http2'); + * const server = http2.createServer(); + * server.on('stream', (stream) => { + * stream.respondWithFile('/some/file', + * { 'content-type': 'text/plain; charset=utf-8' }, + * { waitForTrailers: true }); + * stream.on('wantTrailers', () => { + * stream.sendTrailers({ ABC: 'some value to send' }); + * }); + * }); + * ``` + * @since v8.4.0 + */ + respondWithFile(path: string, headers?: OutgoingHttpHeaders, options?: ServerStreamFileResponseOptionsWithError): void; + } + // Http2Session + export interface Settings { + headerTableSize?: number | undefined; + enablePush?: boolean | undefined; + initialWindowSize?: number | undefined; + maxFrameSize?: number | undefined; + maxConcurrentStreams?: number | undefined; + maxHeaderListSize?: number | undefined; + enableConnectProtocol?: boolean | undefined; + } + export interface ClientSessionRequestOptions { + endStream?: boolean | undefined; + exclusive?: boolean | undefined; + parent?: number | undefined; + weight?: number | undefined; + waitForTrailers?: boolean | undefined; + } + export interface SessionState { + effectiveLocalWindowSize?: number | undefined; + effectiveRecvDataLength?: number | undefined; + nextStreamID?: number | undefined; + localWindowSize?: number | undefined; + lastProcStreamID?: number | undefined; + remoteWindowSize?: number | undefined; + outboundQueueSize?: number | undefined; + deflateDynamicTableSize?: number | undefined; + inflateDynamicTableSize?: number | undefined; + } + export interface Http2Session extends EventEmitter { + /** + * Value will be `undefined` if the `Http2Session` is not yet connected to a + * socket, `h2c` if the `Http2Session` is not connected to a `TLSSocket`, or + * will return the value of the connected `TLSSocket`'s own `alpnProtocol`property. + * @since v9.4.0 + */ + readonly alpnProtocol?: string | undefined; + /** + * Will be `true` if this `Http2Session` instance has been closed, otherwise`false`. + * @since v9.4.0 + */ + readonly closed: boolean; + /** + * Will be `true` if this `Http2Session` instance is still connecting, will be set + * to `false` before emitting `connect` event and/or calling the `http2.connect`callback. + * @since v10.0.0 + */ + readonly connecting: boolean; + /** + * Will be `true` if this `Http2Session` instance has been destroyed and must no + * longer be used, otherwise `false`. + * @since v8.4.0 + */ + readonly destroyed: boolean; + /** + * Value is `undefined` if the `Http2Session` session socket has not yet been + * connected, `true` if the `Http2Session` is connected with a `TLSSocket`, + * and `false` if the `Http2Session` is connected to any other kind of socket + * or stream. + * @since v9.4.0 + */ + readonly encrypted?: boolean | undefined; + /** + * A prototype-less object describing the current local settings of this`Http2Session`. The local settings are local to _this_`Http2Session` instance. + * @since v8.4.0 + */ + readonly localSettings: Settings; + /** + * If the `Http2Session` is connected to a `TLSSocket`, the `originSet` property + * will return an `Array` of origins for which the `Http2Session` may be + * considered authoritative. + * + * The `originSet` property is only available when using a secure TLS connection. + * @since v9.4.0 + */ + readonly originSet?: string[] | undefined; + /** + * Indicates whether the `Http2Session` is currently waiting for acknowledgment of + * a sent `SETTINGS` frame. Will be `true` after calling the`http2session.settings()` method. Will be `false` once all sent `SETTINGS`frames have been acknowledged. + * @since v8.4.0 + */ + readonly pendingSettingsAck: boolean; + /** + * A prototype-less object describing the current remote settings of this`Http2Session`. The remote settings are set by the _connected_ HTTP/2 peer. + * @since v8.4.0 + */ + readonly remoteSettings: Settings; + /** + * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but + * limits available methods to ones safe to use with HTTP/2. + * + * `destroy`, `emit`, `end`, `pause`, `read`, `resume`, and `write` will throw + * an error with code `ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for more information. + * + * `setTimeout` method will be called on this `Http2Session`. + * + * All other interactions will be routed directly to the socket. + * @since v8.4.0 + */ + readonly socket: net.Socket | tls.TLSSocket; + /** + * Provides miscellaneous information about the current state of the`Http2Session`. + * + * An object describing the current status of this `Http2Session`. + * @since v8.4.0 + */ + readonly state: SessionState; + /** + * The `http2session.type` will be equal to`http2.constants.NGHTTP2_SESSION_SERVER` if this `Http2Session` instance is a + * server, and `http2.constants.NGHTTP2_SESSION_CLIENT` if the instance is a + * client. + * @since v8.4.0 + */ + readonly type: number; + /** + * Gracefully closes the `Http2Session`, allowing any existing streams to + * complete on their own and preventing new `Http2Stream` instances from being + * created. Once closed, `http2session.destroy()`_might_ be called if there + * are no open `Http2Stream` instances. + * + * If specified, the `callback` function is registered as a handler for the`'close'` event. + * @since v9.4.0 + */ + close(callback?: () => void): void; + /** + * Immediately terminates the `Http2Session` and the associated `net.Socket` or`tls.TLSSocket`. + * + * Once destroyed, the `Http2Session` will emit the `'close'` event. If `error`is not undefined, an `'error'` event will be emitted immediately before the`'close'` event. + * + * If there are any remaining open `Http2Streams` associated with the`Http2Session`, those will also be destroyed. + * @since v8.4.0 + * @param error An `Error` object if the `Http2Session` is being destroyed due to an error. + * @param code The HTTP/2 error code to send in the final `GOAWAY` frame. If unspecified, and `error` is not undefined, the default is `INTERNAL_ERROR`, otherwise defaults to `NO_ERROR`. + */ + destroy(error?: Error, code?: number): void; + /** + * Transmits a `GOAWAY` frame to the connected peer _without_ shutting down the`Http2Session`. + * @since v9.4.0 + * @param code An HTTP/2 error code + * @param lastStreamID The numeric ID of the last processed `Http2Stream` + * @param opaqueData A `TypedArray` or `DataView` instance containing additional data to be carried within the `GOAWAY` frame. + */ + goaway(code?: number, lastStreamID?: number, opaqueData?: NodeJS.ArrayBufferView): void; + /** + * Sends a `PING` frame to the connected HTTP/2 peer. A `callback` function must + * be provided. The method will return `true` if the `PING` was sent, `false`otherwise. + * + * The maximum number of outstanding (unacknowledged) pings is determined by the`maxOutstandingPings` configuration option. The default maximum is 10. + * + * If provided, the `payload` must be a `Buffer`, `TypedArray`, or `DataView`containing 8 bytes of data that will be transmitted with the `PING` and + * returned with the ping acknowledgment. + * + * The callback will be invoked with three arguments: an error argument that will + * be `null` if the `PING` was successfully acknowledged, a `duration` argument + * that reports the number of milliseconds elapsed since the ping was sent and the + * acknowledgment was received, and a `Buffer` containing the 8-byte `PING`payload. + * + * ```js + * session.ping(Buffer.from('abcdefgh'), (err, duration, payload) => { + * if (!err) { + * console.log(`Ping acknowledged in ${duration} milliseconds`); + * console.log(`With payload '${payload.toString()}'`); + * } + * }); + * ``` + * + * If the `payload` argument is not specified, the default payload will be the + * 64-bit timestamp (little endian) marking the start of the `PING` duration. + * @since v8.9.3 + * @param payload Optional ping payload. + */ + ping(callback: (err: Error | null, duration: number, payload: Buffer) => void): boolean; + ping(payload: NodeJS.ArrayBufferView, callback: (err: Error | null, duration: number, payload: Buffer) => void): boolean; + /** + * Calls `ref()` on this `Http2Session`instance's underlying `net.Socket`. + * @since v9.4.0 + */ + ref(): void; + /** + * Sets the local endpoint's window size. + * The `windowSize` is the total window size to set, not + * the delta. + * + * ```js + * const http2 = require('http2'); + * + * const server = http2.createServer(); + * const expectedWindowSize = 2 ** 20; + * server.on('connect', (session) => { + * + * // Set local window size to be 2 ** 20 + * session.setLocalWindowSize(expectedWindowSize); + * }); + * ``` + * @since v15.3.0, v14.18.0 + */ + setLocalWindowSize(windowSize: number): void; + /** + * Used to set a callback function that is called when there is no activity on + * the `Http2Session` after `msecs` milliseconds. The given `callback` is + * registered as a listener on the `'timeout'` event. + * @since v8.4.0 + */ + setTimeout(msecs: number, callback?: () => void): void; + /** + * Updates the current local settings for this `Http2Session` and sends a new`SETTINGS` frame to the connected HTTP/2 peer. + * + * Once called, the `http2session.pendingSettingsAck` property will be `true`while the session is waiting for the remote peer to acknowledge the new + * settings. + * + * The new settings will not become effective until the `SETTINGS` acknowledgment + * is received and the `'localSettings'` event is emitted. It is possible to send + * multiple `SETTINGS` frames while acknowledgment is still pending. + * @since v8.4.0 + * @param callback Callback that is called once the session is connected or right away if the session is already connected. + */ + settings(settings: Settings): void; + /** + * Calls `unref()` on this `Http2Session`instance's underlying `net.Socket`. + * @since v9.4.0 + */ + unref(): void; + addListener(event: 'close', listener: () => void): this; + addListener(event: 'error', listener: (err: Error) => void): this; + addListener(event: 'frameError', listener: (frameType: number, errorCode: number, streamID: number) => void): this; + addListener(event: 'goaway', listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this; + addListener(event: 'localSettings', listener: (settings: Settings) => void): this; + addListener(event: 'ping', listener: () => void): this; + addListener(event: 'remoteSettings', listener: (settings: Settings) => void): this; + addListener(event: 'timeout', listener: () => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: 'close'): boolean; + emit(event: 'error', err: Error): boolean; + emit(event: 'frameError', frameType: number, errorCode: number, streamID: number): boolean; + emit(event: 'goaway', errorCode: number, lastStreamID: number, opaqueData: Buffer): boolean; + emit(event: 'localSettings', settings: Settings): boolean; + emit(event: 'ping'): boolean; + emit(event: 'remoteSettings', settings: Settings): boolean; + emit(event: 'timeout'): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: 'close', listener: () => void): this; + on(event: 'error', listener: (err: Error) => void): this; + on(event: 'frameError', listener: (frameType: number, errorCode: number, streamID: number) => void): this; + on(event: 'goaway', listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this; + on(event: 'localSettings', listener: (settings: Settings) => void): this; + on(event: 'ping', listener: () => void): this; + on(event: 'remoteSettings', listener: (settings: Settings) => void): this; + on(event: 'timeout', listener: () => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: 'close', listener: () => void): this; + once(event: 'error', listener: (err: Error) => void): this; + once(event: 'frameError', listener: (frameType: number, errorCode: number, streamID: number) => void): this; + once(event: 'goaway', listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this; + once(event: 'localSettings', listener: (settings: Settings) => void): this; + once(event: 'ping', listener: () => void): this; + once(event: 'remoteSettings', listener: (settings: Settings) => void): this; + once(event: 'timeout', listener: () => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: 'close', listener: () => void): this; + prependListener(event: 'error', listener: (err: Error) => void): this; + prependListener(event: 'frameError', listener: (frameType: number, errorCode: number, streamID: number) => void): this; + prependListener(event: 'goaway', listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this; + prependListener(event: 'localSettings', listener: (settings: Settings) => void): this; + prependListener(event: 'ping', listener: () => void): this; + prependListener(event: 'remoteSettings', listener: (settings: Settings) => void): this; + prependListener(event: 'timeout', listener: () => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'close', listener: () => void): this; + prependOnceListener(event: 'error', listener: (err: Error) => void): this; + prependOnceListener(event: 'frameError', listener: (frameType: number, errorCode: number, streamID: number) => void): this; + prependOnceListener(event: 'goaway', listener: (errorCode: number, lastStreamID: number, opaqueData: Buffer) => void): this; + prependOnceListener(event: 'localSettings', listener: (settings: Settings) => void): this; + prependOnceListener(event: 'ping', listener: () => void): this; + prependOnceListener(event: 'remoteSettings', listener: (settings: Settings) => void): this; + prependOnceListener(event: 'timeout', listener: () => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + export interface ClientHttp2Session extends Http2Session { + /** + * For HTTP/2 Client `Http2Session` instances only, the `http2session.request()`creates and returns an `Http2Stream` instance that can be used to send an + * HTTP/2 request to the connected server. + * + * This method is only available if `http2session.type` is equal to`http2.constants.NGHTTP2_SESSION_CLIENT`. + * + * ```js + * const http2 = require('http2'); + * const clientSession = http2.connect('https://localhost:1234'); + * const { + * HTTP2_HEADER_PATH, + * HTTP2_HEADER_STATUS + * } = http2.constants; + * + * const req = clientSession.request({ [HTTP2_HEADER_PATH]: '/' }); + * req.on('response', (headers) => { + * console.log(headers[HTTP2_HEADER_STATUS]); + * req.on('data', (chunk) => { // .. }); + * req.on('end', () => { // .. }); + * }); + * ``` + * + * When the `options.waitForTrailers` option is set, the `'wantTrailers'` event + * is emitted immediately after queuing the last chunk of payload data to be sent. + * The `http2stream.sendTrailers()` method can then be called to send trailing + * headers to the peer. + * + * When `options.waitForTrailers` is set, the `Http2Stream` will not automatically + * close when the final `DATA` frame is transmitted. User code must call either`http2stream.sendTrailers()` or `http2stream.close()` to close the`Http2Stream`. + * + * When `options.signal` is set with an `AbortSignal` and then `abort` on the + * corresponding `AbortController` is called, the request will emit an `'error'`event with an `AbortError` error. + * + * The `:method` and `:path` pseudo-headers are not specified within `headers`, + * they respectively default to: + * + * * `:method` \= `'GET'` + * * `:path` \= `/` + * @since v8.4.0 + */ + request(headers?: OutgoingHttpHeaders, options?: ClientSessionRequestOptions): ClientHttp2Stream; + addListener(event: 'altsvc', listener: (alt: string, origin: string, stream: number) => void): this; + addListener(event: 'origin', listener: (origins: string[]) => void): this; + addListener(event: 'connect', listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + addListener(event: 'stream', listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: 'altsvc', alt: string, origin: string, stream: number): boolean; + emit(event: 'origin', origins: ReadonlyArray): boolean; + emit(event: 'connect', session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket): boolean; + emit(event: 'stream', stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: 'altsvc', listener: (alt: string, origin: string, stream: number) => void): this; + on(event: 'origin', listener: (origins: string[]) => void): this; + on(event: 'connect', listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + on(event: 'stream', listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: 'altsvc', listener: (alt: string, origin: string, stream: number) => void): this; + once(event: 'origin', listener: (origins: string[]) => void): this; + once(event: 'connect', listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + once(event: 'stream', listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: 'altsvc', listener: (alt: string, origin: string, stream: number) => void): this; + prependListener(event: 'origin', listener: (origins: string[]) => void): this; + prependListener(event: 'connect', listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + prependListener(event: 'stream', listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'altsvc', listener: (alt: string, origin: string, stream: number) => void): this; + prependOnceListener(event: 'origin', listener: (origins: string[]) => void): this; + prependOnceListener(event: 'connect', listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + prependOnceListener(event: 'stream', listener: (stream: ClientHttp2Stream, headers: IncomingHttpHeaders & IncomingHttpStatusHeader, flags: number) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + export interface AlternativeServiceOptions { + origin: number | string | url.URL; + } + export interface ServerHttp2Session extends Http2Session { + readonly server: Http2Server | Http2SecureServer; + /** + * Submits an `ALTSVC` frame (as defined by [RFC 7838](https://tools.ietf.org/html/rfc7838)) to the connected client. + * + * ```js + * const http2 = require('http2'); + * + * const server = http2.createServer(); + * server.on('session', (session) => { + * // Set altsvc for origin https://example.org:80 + * session.altsvc('h2=":8000"', 'https://example.org:80'); + * }); + * + * server.on('stream', (stream) => { + * // Set altsvc for a specific stream + * stream.session.altsvc('h2=":8000"', stream.id); + * }); + * ``` + * + * Sending an `ALTSVC` frame with a specific stream ID indicates that the alternate + * service is associated with the origin of the given `Http2Stream`. + * + * The `alt` and origin string _must_ contain only ASCII bytes and are + * strictly interpreted as a sequence of ASCII bytes. The special value `'clear'`may be passed to clear any previously set alternative service for a given + * domain. + * + * When a string is passed for the `originOrStream` argument, it will be parsed as + * a URL and the origin will be derived. For instance, the origin for the + * HTTP URL `'https://example.org/foo/bar'` is the ASCII string`'https://example.org'`. An error will be thrown if either the given string + * cannot be parsed as a URL or if a valid origin cannot be derived. + * + * A `URL` object, or any object with an `origin` property, may be passed as`originOrStream`, in which case the value of the `origin` property will be + * used. The value of the `origin` property _must_ be a properly serialized + * ASCII origin. + * @since v9.4.0 + * @param alt A description of the alternative service configuration as defined by `RFC 7838`. + * @param originOrStream Either a URL string specifying the origin (or an `Object` with an `origin` property) or the numeric identifier of an active `Http2Stream` as given by the + * `http2stream.id` property. + */ + altsvc(alt: string, originOrStream: number | string | url.URL | AlternativeServiceOptions): void; + /** + * Submits an `ORIGIN` frame (as defined by [RFC 8336](https://tools.ietf.org/html/rfc8336)) to the connected client + * to advertise the set of origins for which the server is capable of providing + * authoritative responses. + * + * ```js + * const http2 = require('http2'); + * const options = getSecureOptionsSomehow(); + * const server = http2.createSecureServer(options); + * server.on('stream', (stream) => { + * stream.respond(); + * stream.end('ok'); + * }); + * server.on('session', (session) => { + * session.origin('https://example.com', 'https://example.org'); + * }); + * ``` + * + * When a string is passed as an `origin`, it will be parsed as a URL and the + * origin will be derived. For instance, the origin for the HTTP URL`'https://example.org/foo/bar'` is the ASCII string`'https://example.org'`. An error will be thrown if either the given + * string + * cannot be parsed as a URL or if a valid origin cannot be derived. + * + * A `URL` object, or any object with an `origin` property, may be passed as + * an `origin`, in which case the value of the `origin` property will be + * used. The value of the `origin` property _must_ be a properly serialized + * ASCII origin. + * + * Alternatively, the `origins` option may be used when creating a new HTTP/2 + * server using the `http2.createSecureServer()` method: + * + * ```js + * const http2 = require('http2'); + * const options = getSecureOptionsSomehow(); + * options.origins = ['https://example.com', 'https://example.org']; + * const server = http2.createSecureServer(options); + * server.on('stream', (stream) => { + * stream.respond(); + * stream.end('ok'); + * }); + * ``` + * @since v10.12.0 + * @param origins One or more URL Strings passed as separate arguments. + */ + origin( + ...origins: Array< + | string + | url.URL + | { + origin: string; + } + > + ): void; + addListener(event: 'connect', listener: (session: ServerHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + addListener(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: 'connect', session: ServerHttp2Session, socket: net.Socket | tls.TLSSocket): boolean; + emit(event: 'stream', stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: 'connect', listener: (session: ServerHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + on(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: 'connect', listener: (session: ServerHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + once(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: 'connect', listener: (session: ServerHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + prependListener(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'connect', listener: (session: ServerHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this; + prependOnceListener(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + // Http2Server + export interface SessionOptions { + maxDeflateDynamicTableSize?: number | undefined; + maxSessionMemory?: number | undefined; + maxHeaderListPairs?: number | undefined; + maxOutstandingPings?: number | undefined; + maxSendHeaderBlockLength?: number | undefined; + paddingStrategy?: number | undefined; + peerMaxConcurrentStreams?: number | undefined; + settings?: Settings | undefined; + /** + * Specifies a timeout in milliseconds that + * a server should wait when an [`'unknownProtocol'`][] is emitted. If the + * socket has not been destroyed by that time the server will destroy it. + * @default 100000 + */ + unknownProtocolTimeout?: number | undefined; + selectPadding?(frameLen: number, maxFrameLen: number): number; + createConnection?(authority: url.URL, option: SessionOptions): stream.Duplex; + } + export interface ClientSessionOptions extends SessionOptions { + maxReservedRemoteStreams?: number | undefined; + createConnection?: ((authority: url.URL, option: SessionOptions) => stream.Duplex) | undefined; + protocol?: 'http:' | 'https:' | undefined; + } + export interface ServerSessionOptions extends SessionOptions { + Http1IncomingMessage?: typeof IncomingMessage | undefined; + Http1ServerResponse?: typeof ServerResponse | undefined; + Http2ServerRequest?: typeof Http2ServerRequest | undefined; + Http2ServerResponse?: typeof Http2ServerResponse | undefined; + } + export interface SecureClientSessionOptions extends ClientSessionOptions, tls.ConnectionOptions {} + export interface SecureServerSessionOptions extends ServerSessionOptions, tls.TlsOptions {} + export interface ServerOptions extends ServerSessionOptions {} + export interface SecureServerOptions extends SecureServerSessionOptions { + allowHTTP1?: boolean | undefined; + origins?: string[] | undefined; + } + interface HTTP2ServerCommon { + setTimeout(msec?: number, callback?: () => void): this; + /** + * Throws ERR_HTTP2_INVALID_SETTING_VALUE for invalid settings values. + * Throws ERR_INVALID_ARG_TYPE for invalid settings argument. + */ + updateSettings(settings: Settings): void; + } + export interface Http2Server extends net.Server, HTTP2ServerCommon { + addListener(event: 'checkContinue', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + addListener(event: 'request', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + addListener(event: 'session', listener: (session: ServerHttp2Session) => void): this; + addListener(event: 'sessionError', listener: (err: Error) => void): this; + addListener(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + addListener(event: 'timeout', listener: () => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: 'checkContinue', request: Http2ServerRequest, response: Http2ServerResponse): boolean; + emit(event: 'request', request: Http2ServerRequest, response: Http2ServerResponse): boolean; + emit(event: 'session', session: ServerHttp2Session): boolean; + emit(event: 'sessionError', err: Error): boolean; + emit(event: 'stream', stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean; + emit(event: 'timeout'): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: 'checkContinue', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + on(event: 'request', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + on(event: 'session', listener: (session: ServerHttp2Session) => void): this; + on(event: 'sessionError', listener: (err: Error) => void): this; + on(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + on(event: 'timeout', listener: () => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: 'checkContinue', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + once(event: 'request', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + once(event: 'session', listener: (session: ServerHttp2Session) => void): this; + once(event: 'sessionError', listener: (err: Error) => void): this; + once(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + once(event: 'timeout', listener: () => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: 'checkContinue', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + prependListener(event: 'request', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + prependListener(event: 'session', listener: (session: ServerHttp2Session) => void): this; + prependListener(event: 'sessionError', listener: (err: Error) => void): this; + prependListener(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + prependListener(event: 'timeout', listener: () => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'checkContinue', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + prependOnceListener(event: 'request', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + prependOnceListener(event: 'session', listener: (session: ServerHttp2Session) => void): this; + prependOnceListener(event: 'sessionError', listener: (err: Error) => void): this; + prependOnceListener(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + prependOnceListener(event: 'timeout', listener: () => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + export interface Http2SecureServer extends tls.Server, HTTP2ServerCommon { + addListener(event: 'checkContinue', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + addListener(event: 'request', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + addListener(event: 'session', listener: (session: ServerHttp2Session) => void): this; + addListener(event: 'sessionError', listener: (err: Error) => void): this; + addListener(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + addListener(event: 'timeout', listener: () => void): this; + addListener(event: 'unknownProtocol', listener: (socket: tls.TLSSocket) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: 'checkContinue', request: Http2ServerRequest, response: Http2ServerResponse): boolean; + emit(event: 'request', request: Http2ServerRequest, response: Http2ServerResponse): boolean; + emit(event: 'session', session: ServerHttp2Session): boolean; + emit(event: 'sessionError', err: Error): boolean; + emit(event: 'stream', stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean; + emit(event: 'timeout'): boolean; + emit(event: 'unknownProtocol', socket: tls.TLSSocket): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: 'checkContinue', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + on(event: 'request', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + on(event: 'session', listener: (session: ServerHttp2Session) => void): this; + on(event: 'sessionError', listener: (err: Error) => void): this; + on(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + on(event: 'timeout', listener: () => void): this; + on(event: 'unknownProtocol', listener: (socket: tls.TLSSocket) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: 'checkContinue', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + once(event: 'request', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + once(event: 'session', listener: (session: ServerHttp2Session) => void): this; + once(event: 'sessionError', listener: (err: Error) => void): this; + once(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + once(event: 'timeout', listener: () => void): this; + once(event: 'unknownProtocol', listener: (socket: tls.TLSSocket) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: 'checkContinue', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + prependListener(event: 'request', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + prependListener(event: 'session', listener: (session: ServerHttp2Session) => void): this; + prependListener(event: 'sessionError', listener: (err: Error) => void): this; + prependListener(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + prependListener(event: 'timeout', listener: () => void): this; + prependListener(event: 'unknownProtocol', listener: (socket: tls.TLSSocket) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'checkContinue', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + prependOnceListener(event: 'request', listener: (request: Http2ServerRequest, response: Http2ServerResponse) => void): this; + prependOnceListener(event: 'session', listener: (session: ServerHttp2Session) => void): this; + prependOnceListener(event: 'sessionError', listener: (err: Error) => void): this; + prependOnceListener(event: 'stream', listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void): this; + prependOnceListener(event: 'timeout', listener: () => void): this; + prependOnceListener(event: 'unknownProtocol', listener: (socket: tls.TLSSocket) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + /** + * A `Http2ServerRequest` object is created by {@link Server} or {@link SecureServer} and passed as the first argument to the `'request'` event. It may be used to access a request status, + * headers, and + * data. + * @since v8.4.0 + */ + export class Http2ServerRequest extends stream.Readable { + constructor(stream: ServerHttp2Stream, headers: IncomingHttpHeaders, options: stream.ReadableOptions, rawHeaders: ReadonlyArray); + /** + * The `request.aborted` property will be `true` if the request has + * been aborted. + * @since v10.1.0 + */ + readonly aborted: boolean; + /** + * The request authority pseudo header field. Because HTTP/2 allows requests + * to set either `:authority` or `host`, this value is derived from`req.headers[':authority']` if present. Otherwise, it is derived from`req.headers['host']`. + * @since v8.4.0 + */ + readonly authority: string; + /** + * See `request.socket`. + * @since v8.4.0 + * @deprecated Since v13.0.0 - Use `socket`. + */ + readonly connection: net.Socket | tls.TLSSocket; + /** + * The `request.complete` property will be `true` if the request has + * been completed, aborted, or destroyed. + * @since v12.10.0 + */ + readonly complete: boolean; + /** + * The request/response headers object. + * + * Key-value pairs of header names and values. Header names are lower-cased. + * + * ```js + * // Prints something like: + * // + * // { 'user-agent': 'curl/7.22.0', + * // host: '127.0.0.1:8000', + * // accept: '*' } + * console.log(request.headers); + * ``` + * + * See `HTTP/2 Headers Object`. + * + * In HTTP/2, the request path, host name, protocol, and method are represented as + * special headers prefixed with the `:` character (e.g. `':path'`). These special + * headers will be included in the `request.headers` object. Care must be taken not + * to inadvertently modify these special headers or errors may occur. For instance, + * removing all headers from the request will cause errors to occur: + * + * ```js + * removeAllHeaders(request.headers); + * assert(request.url); // Fails because the :path header has been removed + * ``` + * @since v8.4.0 + */ + readonly headers: IncomingHttpHeaders; + /** + * In case of server request, the HTTP version sent by the client. In the case of + * client response, the HTTP version of the connected-to server. Returns`'2.0'`. + * + * Also `message.httpVersionMajor` is the first integer and`message.httpVersionMinor` is the second. + * @since v8.4.0 + */ + readonly httpVersion: string; + readonly httpVersionMinor: number; + readonly httpVersionMajor: number; + /** + * The request method as a string. Read-only. Examples: `'GET'`, `'DELETE'`. + * @since v8.4.0 + */ + readonly method: string; + /** + * The raw request/response headers list exactly as they were received. + * + * The keys and values are in the same list. It is _not_ a + * list of tuples. So, the even-numbered offsets are key values, and the + * odd-numbered offsets are the associated values. + * + * Header names are not lowercased, and duplicates are not merged. + * + * ```js + * // Prints something like: + * // + * // [ 'user-agent', + * // 'this is invalid because there can be only one', + * // 'User-Agent', + * // 'curl/7.22.0', + * // 'Host', + * // '127.0.0.1:8000', + * // 'ACCEPT', + * // '*' ] + * console.log(request.rawHeaders); + * ``` + * @since v8.4.0 + */ + readonly rawHeaders: string[]; + /** + * The raw request/response trailer keys and values exactly as they were + * received. Only populated at the `'end'` event. + * @since v8.4.0 + */ + readonly rawTrailers: string[]; + /** + * The request scheme pseudo header field indicating the scheme + * portion of the target URL. + * @since v8.4.0 + */ + readonly scheme: string; + /** + * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but + * applies getters, setters, and methods based on HTTP/2 logic. + * + * `destroyed`, `readable`, and `writable` properties will be retrieved from and + * set on `request.stream`. + * + * `destroy`, `emit`, `end`, `on` and `once` methods will be called on`request.stream`. + * + * `setTimeout` method will be called on `request.stream.session`. + * + * `pause`, `read`, `resume`, and `write` will throw an error with code`ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for + * more information. + * + * All other interactions will be routed directly to the socket. With TLS support, + * use `request.socket.getPeerCertificate()` to obtain the client's + * authentication details. + * @since v8.4.0 + */ + readonly socket: net.Socket | tls.TLSSocket; + /** + * The `Http2Stream` object backing the request. + * @since v8.4.0 + */ + readonly stream: ServerHttp2Stream; + /** + * The request/response trailers object. Only populated at the `'end'` event. + * @since v8.4.0 + */ + readonly trailers: IncomingHttpHeaders; + /** + * Request URL string. This contains only the URL that is present in the actual + * HTTP request. If the request is: + * + * ```http + * GET /status?name=ryan HTTP/1.1 + * Accept: text/plain + * ``` + * + * Then `request.url` will be: + * + * ```js + * '/status?name=ryan' + * ``` + * + * To parse the url into its parts, `new URL()` can be used: + * + * ```console + * $ node + * > new URL('/status?name=ryan', 'http://example.com') + * URL { + * href: 'http://example.com/status?name=ryan', + * origin: 'http://example.com', + * protocol: 'http:', + * username: '', + * password: '', + * host: 'example.com', + * hostname: 'example.com', + * port: '', + * pathname: '/status', + * search: '?name=ryan', + * searchParams: URLSearchParams { 'name' => 'ryan' }, + * hash: '' + * } + * ``` + * @since v8.4.0 + */ + url: string; + /** + * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is + * provided, then it is added as a listener on the `'timeout'` event on + * the response object. + * + * If no `'timeout'` listener is added to the request, the response, or + * the server, then `Http2Stream` s are destroyed when they time out. If a + * handler is assigned to the request, the response, or the server's `'timeout'`events, timed out sockets must be handled explicitly. + * @since v8.4.0 + */ + setTimeout(msecs: number, callback?: () => void): void; + read(size?: number): Buffer | string | null; + addListener(event: 'aborted', listener: (hadError: boolean, code: number) => void): this; + addListener(event: 'close', listener: () => void): this; + addListener(event: 'data', listener: (chunk: Buffer | string) => void): this; + addListener(event: 'end', listener: () => void): this; + addListener(event: 'readable', listener: () => void): this; + addListener(event: 'error', listener: (err: Error) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: 'aborted', hadError: boolean, code: number): boolean; + emit(event: 'close'): boolean; + emit(event: 'data', chunk: Buffer | string): boolean; + emit(event: 'end'): boolean; + emit(event: 'readable'): boolean; + emit(event: 'error', err: Error): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: 'aborted', listener: (hadError: boolean, code: number) => void): this; + on(event: 'close', listener: () => void): this; + on(event: 'data', listener: (chunk: Buffer | string) => void): this; + on(event: 'end', listener: () => void): this; + on(event: 'readable', listener: () => void): this; + on(event: 'error', listener: (err: Error) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: 'aborted', listener: (hadError: boolean, code: number) => void): this; + once(event: 'close', listener: () => void): this; + once(event: 'data', listener: (chunk: Buffer | string) => void): this; + once(event: 'end', listener: () => void): this; + once(event: 'readable', listener: () => void): this; + once(event: 'error', listener: (err: Error) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: 'aborted', listener: (hadError: boolean, code: number) => void): this; + prependListener(event: 'close', listener: () => void): this; + prependListener(event: 'data', listener: (chunk: Buffer | string) => void): this; + prependListener(event: 'end', listener: () => void): this; + prependListener(event: 'readable', listener: () => void): this; + prependListener(event: 'error', listener: (err: Error) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'aborted', listener: (hadError: boolean, code: number) => void): this; + prependOnceListener(event: 'close', listener: () => void): this; + prependOnceListener(event: 'data', listener: (chunk: Buffer | string) => void): this; + prependOnceListener(event: 'end', listener: () => void): this; + prependOnceListener(event: 'readable', listener: () => void): this; + prependOnceListener(event: 'error', listener: (err: Error) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + /** + * This object is created internally by an HTTP server, not by the user. It is + * passed as the second parameter to the `'request'` event. + * @since v8.4.0 + */ + export class Http2ServerResponse extends stream.Writable { + constructor(stream: ServerHttp2Stream); + /** + * See `response.socket`. + * @since v8.4.0 + * @deprecated Since v13.0.0 - Use `socket`. + */ + readonly connection: net.Socket | tls.TLSSocket; + /** + * Boolean value that indicates whether the response has completed. Starts + * as `false`. After `response.end()` executes, the value will be `true`. + * @since v8.4.0 + * @deprecated Since v13.4.0,v12.16.0 - Use `writableEnded`. + */ + readonly finished: boolean; + /** + * True if headers were sent, false otherwise (read-only). + * @since v8.4.0 + */ + readonly headersSent: boolean; + /** + * A reference to the original HTTP2 request object. + * @since v15.7.0 + */ + readonly req: Http2ServerRequest; + /** + * Returns a `Proxy` object that acts as a `net.Socket` (or `tls.TLSSocket`) but + * applies getters, setters, and methods based on HTTP/2 logic. + * + * `destroyed`, `readable`, and `writable` properties will be retrieved from and + * set on `response.stream`. + * + * `destroy`, `emit`, `end`, `on` and `once` methods will be called on`response.stream`. + * + * `setTimeout` method will be called on `response.stream.session`. + * + * `pause`, `read`, `resume`, and `write` will throw an error with code`ERR_HTTP2_NO_SOCKET_MANIPULATION`. See `Http2Session and Sockets` for + * more information. + * + * All other interactions will be routed directly to the socket. + * + * ```js + * const http2 = require('http2'); + * const server = http2.createServer((req, res) => { + * const ip = req.socket.remoteAddress; + * const port = req.socket.remotePort; + * res.end(`Your IP address is ${ip} and your source port is ${port}.`); + * }).listen(3000); + * ``` + * @since v8.4.0 + */ + readonly socket: net.Socket | tls.TLSSocket; + /** + * The `Http2Stream` object backing the response. + * @since v8.4.0 + */ + readonly stream: ServerHttp2Stream; + /** + * When true, the Date header will be automatically generated and sent in + * the response if it is not already present in the headers. Defaults to true. + * + * This should only be disabled for testing; HTTP requires the Date header + * in responses. + * @since v8.4.0 + */ + sendDate: boolean; + /** + * When using implicit headers (not calling `response.writeHead()` explicitly), + * this property controls the status code that will be sent to the client when + * the headers get flushed. + * + * ```js + * response.statusCode = 404; + * ``` + * + * After response header was sent to the client, this property indicates the + * status code which was sent out. + * @since v8.4.0 + */ + statusCode: number; + /** + * Status message is not supported by HTTP/2 (RFC 7540 8.1.2.4). It returns + * an empty string. + * @since v8.4.0 + */ + statusMessage: ''; + /** + * This method adds HTTP trailing headers (a header but at the end of the + * message) to the response. + * + * Attempting to set a header field name or value that contains invalid characters + * will result in a `TypeError` being thrown. + * @since v8.4.0 + */ + addTrailers(trailers: OutgoingHttpHeaders): void; + /** + * This method signals to the server that all of the response headers and body + * have been sent; that server should consider this message complete. + * The method, `response.end()`, MUST be called on each response. + * + * If `data` is specified, it is equivalent to calling `response.write(data, encoding)` followed by `response.end(callback)`. + * + * If `callback` is specified, it will be called when the response stream + * is finished. + * @since v8.4.0 + */ + end(callback?: () => void): this; + end(data: string | Uint8Array, callback?: () => void): this; + end(data: string | Uint8Array, encoding: BufferEncoding, callback?: () => void): this; + /** + * Reads out a header that has already been queued but not sent to the client. + * The name is case-insensitive. + * + * ```js + * const contentType = response.getHeader('content-type'); + * ``` + * @since v8.4.0 + */ + getHeader(name: string): string; + /** + * Returns an array containing the unique names of the current outgoing headers. + * All header names are lowercase. + * + * ```js + * response.setHeader('Foo', 'bar'); + * response.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); + * + * const headerNames = response.getHeaderNames(); + * // headerNames === ['foo', 'set-cookie'] + * ``` + * @since v8.4.0 + */ + getHeaderNames(): string[]; + /** + * Returns a shallow copy of the current outgoing headers. Since a shallow copy + * is used, array values may be mutated without additional calls to various + * header-related http module methods. The keys of the returned object are the + * header names and the values are the respective header values. All header names + * are lowercase. + * + * The object returned by the `response.getHeaders()` method _does not_prototypically inherit from the JavaScript `Object`. This means that typical`Object` methods such as `obj.toString()`, + * `obj.hasOwnProperty()`, and others + * are not defined and _will not work_. + * + * ```js + * response.setHeader('Foo', 'bar'); + * response.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']); + * + * const headers = response.getHeaders(); + * // headers === { foo: 'bar', 'set-cookie': ['foo=bar', 'bar=baz'] } + * ``` + * @since v8.4.0 + */ + getHeaders(): OutgoingHttpHeaders; + /** + * Returns `true` if the header identified by `name` is currently set in the + * outgoing headers. The header name matching is case-insensitive. + * + * ```js + * const hasContentType = response.hasHeader('content-type'); + * ``` + * @since v8.4.0 + */ + hasHeader(name: string): boolean; + /** + * Removes a header that has been queued for implicit sending. + * + * ```js + * response.removeHeader('Content-Encoding'); + * ``` + * @since v8.4.0 + */ + removeHeader(name: string): void; + /** + * Sets a single header value for implicit headers. If this header already exists + * in the to-be-sent headers, its value will be replaced. Use an array of strings + * here to send multiple headers with the same name. + * + * ```js + * response.setHeader('Content-Type', 'text/html; charset=utf-8'); + * ``` + * + * or + * + * ```js + * response.setHeader('Set-Cookie', ['type=ninja', 'language=javascript']); + * ``` + * + * Attempting to set a header field name or value that contains invalid characters + * will result in a `TypeError` being thrown. + * + * When headers have been set with `response.setHeader()`, they will be merged + * with any headers passed to `response.writeHead()`, with the headers passed + * to `response.writeHead()` given precedence. + * + * ```js + * // Returns content-type = text/plain + * const server = http2.createServer((req, res) => { + * res.setHeader('Content-Type', 'text/html; charset=utf-8'); + * res.setHeader('X-Foo', 'bar'); + * res.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8' }); + * res.end('ok'); + * }); + * ``` + * @since v8.4.0 + */ + setHeader(name: string, value: number | string | ReadonlyArray): void; + /** + * Sets the `Http2Stream`'s timeout value to `msecs`. If a callback is + * provided, then it is added as a listener on the `'timeout'` event on + * the response object. + * + * If no `'timeout'` listener is added to the request, the response, or + * the server, then `Http2Stream` s are destroyed when they time out. If a + * handler is assigned to the request, the response, or the server's `'timeout'`events, timed out sockets must be handled explicitly. + * @since v8.4.0 + */ + setTimeout(msecs: number, callback?: () => void): void; + /** + * If this method is called and `response.writeHead()` has not been called, + * it will switch to implicit header mode and flush the implicit headers. + * + * This sends a chunk of the response body. This method may + * be called multiple times to provide successive parts of the body. + * + * In the `http` module, the response body is omitted when the + * request is a HEAD request. Similarly, the `204` and `304` responses_must not_ include a message body. + * + * `chunk` can be a string or a buffer. If `chunk` is a string, + * the second parameter specifies how to encode it into a byte stream. + * By default the `encoding` is `'utf8'`. `callback` will be called when this chunk + * of data is flushed. + * + * This is the raw HTTP body and has nothing to do with higher-level multi-part + * body encodings that may be used. + * + * The first time `response.write()` is called, it will send the buffered + * header information and the first chunk of the body to the client. The second + * time `response.write()` is called, Node.js assumes data will be streamed, + * and sends the new data separately. That is, the response is buffered up to the + * first chunk of the body. + * + * Returns `true` if the entire data was flushed successfully to the kernel + * buffer. Returns `false` if all or part of the data was queued in user memory.`'drain'` will be emitted when the buffer is free again. + * @since v8.4.0 + */ + write(chunk: string | Uint8Array, callback?: (err: Error) => void): boolean; + write(chunk: string | Uint8Array, encoding: BufferEncoding, callback?: (err: Error) => void): boolean; + /** + * Sends a status `100 Continue` to the client, indicating that the request body + * should be sent. See the `'checkContinue'` event on `Http2Server` and`Http2SecureServer`. + * @since v8.4.0 + */ + writeContinue(): void; + /** + * Sends a response header to the request. The status code is a 3-digit HTTP + * status code, like `404`. The last argument, `headers`, are the response headers. + * + * Returns a reference to the `Http2ServerResponse`, so that calls can be chained. + * + * For compatibility with `HTTP/1`, a human-readable `statusMessage` may be + * passed as the second argument. However, because the `statusMessage` has no + * meaning within HTTP/2, the argument will have no effect and a process warning + * will be emitted. + * + * ```js + * const body = 'hello world'; + * response.writeHead(200, { + * 'Content-Length': Buffer.byteLength(body), + * 'Content-Type': 'text/plain; charset=utf-8', + * }); + * ``` + * + * `Content-Length` is given in bytes not characters. The`Buffer.byteLength()` API may be used to determine the number of bytes in a + * given encoding. On outbound messages, Node.js does not check if Content-Length + * and the length of the body being transmitted are equal or not. However, when + * receiving messages, Node.js will automatically reject messages when the`Content-Length` does not match the actual payload size. + * + * This method may be called at most one time on a message before `response.end()` is called. + * + * If `response.write()` or `response.end()` are called before calling + * this, the implicit/mutable headers will be calculated and call this function. + * + * When headers have been set with `response.setHeader()`, they will be merged + * with any headers passed to `response.writeHead()`, with the headers passed + * to `response.writeHead()` given precedence. + * + * ```js + * // Returns content-type = text/plain + * const server = http2.createServer((req, res) => { + * res.setHeader('Content-Type', 'text/html; charset=utf-8'); + * res.setHeader('X-Foo', 'bar'); + * res.writeHead(200, { 'Content-Type': 'text/plain; charset=utf-8' }); + * res.end('ok'); + * }); + * ``` + * + * Attempting to set a header field name or value that contains invalid characters + * will result in a `TypeError` being thrown. + * @since v8.4.0 + */ + writeHead(statusCode: number, headers?: OutgoingHttpHeaders): this; + writeHead(statusCode: number, statusMessage: string, headers?: OutgoingHttpHeaders): this; + /** + * Call `http2stream.pushStream()` with the given headers, and wrap the + * given `Http2Stream` on a newly created `Http2ServerResponse` as the callback + * parameter if successful. When `Http2ServerRequest` is closed, the callback is + * called with an error `ERR_HTTP2_INVALID_STREAM`. + * @since v8.4.0 + * @param headers An object describing the headers + * @param callback Called once `http2stream.pushStream()` is finished, or either when the attempt to create the pushed `Http2Stream` has failed or has been rejected, or the state of + * `Http2ServerRequest` is closed prior to calling the `http2stream.pushStream()` method + */ + createPushResponse(headers: OutgoingHttpHeaders, callback: (err: Error | null, res: Http2ServerResponse) => void): void; + addListener(event: 'close', listener: () => void): this; + addListener(event: 'drain', listener: () => void): this; + addListener(event: 'error', listener: (error: Error) => void): this; + addListener(event: 'finish', listener: () => void): this; + addListener(event: 'pipe', listener: (src: stream.Readable) => void): this; + addListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: 'close'): boolean; + emit(event: 'drain'): boolean; + emit(event: 'error', error: Error): boolean; + emit(event: 'finish'): boolean; + emit(event: 'pipe', src: stream.Readable): boolean; + emit(event: 'unpipe', src: stream.Readable): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: 'close', listener: () => void): this; + on(event: 'drain', listener: () => void): this; + on(event: 'error', listener: (error: Error) => void): this; + on(event: 'finish', listener: () => void): this; + on(event: 'pipe', listener: (src: stream.Readable) => void): this; + on(event: 'unpipe', listener: (src: stream.Readable) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: 'close', listener: () => void): this; + once(event: 'drain', listener: () => void): this; + once(event: 'error', listener: (error: Error) => void): this; + once(event: 'finish', listener: () => void): this; + once(event: 'pipe', listener: (src: stream.Readable) => void): this; + once(event: 'unpipe', listener: (src: stream.Readable) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: 'close', listener: () => void): this; + prependListener(event: 'drain', listener: () => void): this; + prependListener(event: 'error', listener: (error: Error) => void): this; + prependListener(event: 'finish', listener: () => void): this; + prependListener(event: 'pipe', listener: (src: stream.Readable) => void): this; + prependListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'close', listener: () => void): this; + prependOnceListener(event: 'drain', listener: () => void): this; + prependOnceListener(event: 'error', listener: (error: Error) => void): this; + prependOnceListener(event: 'finish', listener: () => void): this; + prependOnceListener(event: 'pipe', listener: (src: stream.Readable) => void): this; + prependOnceListener(event: 'unpipe', listener: (src: stream.Readable) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + export namespace constants { + const NGHTTP2_SESSION_SERVER: number; + const NGHTTP2_SESSION_CLIENT: number; + const NGHTTP2_STREAM_STATE_IDLE: number; + const NGHTTP2_STREAM_STATE_OPEN: number; + const NGHTTP2_STREAM_STATE_RESERVED_LOCAL: number; + const NGHTTP2_STREAM_STATE_RESERVED_REMOTE: number; + const NGHTTP2_STREAM_STATE_HALF_CLOSED_LOCAL: number; + const NGHTTP2_STREAM_STATE_HALF_CLOSED_REMOTE: number; + const NGHTTP2_STREAM_STATE_CLOSED: number; + const NGHTTP2_NO_ERROR: number; + const NGHTTP2_PROTOCOL_ERROR: number; + const NGHTTP2_INTERNAL_ERROR: number; + const NGHTTP2_FLOW_CONTROL_ERROR: number; + const NGHTTP2_SETTINGS_TIMEOUT: number; + const NGHTTP2_STREAM_CLOSED: number; + const NGHTTP2_FRAME_SIZE_ERROR: number; + const NGHTTP2_REFUSED_STREAM: number; + const NGHTTP2_CANCEL: number; + const NGHTTP2_COMPRESSION_ERROR: number; + const NGHTTP2_CONNECT_ERROR: number; + const NGHTTP2_ENHANCE_YOUR_CALM: number; + const NGHTTP2_INADEQUATE_SECURITY: number; + const NGHTTP2_HTTP_1_1_REQUIRED: number; + const NGHTTP2_ERR_FRAME_SIZE_ERROR: number; + const NGHTTP2_FLAG_NONE: number; + const NGHTTP2_FLAG_END_STREAM: number; + const NGHTTP2_FLAG_END_HEADERS: number; + const NGHTTP2_FLAG_ACK: number; + const NGHTTP2_FLAG_PADDED: number; + const NGHTTP2_FLAG_PRIORITY: number; + const DEFAULT_SETTINGS_HEADER_TABLE_SIZE: number; + const DEFAULT_SETTINGS_ENABLE_PUSH: number; + const DEFAULT_SETTINGS_INITIAL_WINDOW_SIZE: number; + const DEFAULT_SETTINGS_MAX_FRAME_SIZE: number; + const MAX_MAX_FRAME_SIZE: number; + const MIN_MAX_FRAME_SIZE: number; + const MAX_INITIAL_WINDOW_SIZE: number; + const NGHTTP2_DEFAULT_WEIGHT: number; + const NGHTTP2_SETTINGS_HEADER_TABLE_SIZE: number; + const NGHTTP2_SETTINGS_ENABLE_PUSH: number; + const NGHTTP2_SETTINGS_MAX_CONCURRENT_STREAMS: number; + const NGHTTP2_SETTINGS_INITIAL_WINDOW_SIZE: number; + const NGHTTP2_SETTINGS_MAX_FRAME_SIZE: number; + const NGHTTP2_SETTINGS_MAX_HEADER_LIST_SIZE: number; + const PADDING_STRATEGY_NONE: number; + const PADDING_STRATEGY_MAX: number; + const PADDING_STRATEGY_CALLBACK: number; + const HTTP2_HEADER_STATUS: string; + const HTTP2_HEADER_METHOD: string; + const HTTP2_HEADER_AUTHORITY: string; + const HTTP2_HEADER_SCHEME: string; + const HTTP2_HEADER_PATH: string; + const HTTP2_HEADER_ACCEPT_CHARSET: string; + const HTTP2_HEADER_ACCEPT_ENCODING: string; + const HTTP2_HEADER_ACCEPT_LANGUAGE: string; + const HTTP2_HEADER_ACCEPT_RANGES: string; + const HTTP2_HEADER_ACCEPT: string; + const HTTP2_HEADER_ACCESS_CONTROL_ALLOW_ORIGIN: string; + const HTTP2_HEADER_AGE: string; + const HTTP2_HEADER_ALLOW: string; + const HTTP2_HEADER_AUTHORIZATION: string; + const HTTP2_HEADER_CACHE_CONTROL: string; + const HTTP2_HEADER_CONNECTION: string; + const HTTP2_HEADER_CONTENT_DISPOSITION: string; + const HTTP2_HEADER_CONTENT_ENCODING: string; + const HTTP2_HEADER_CONTENT_LANGUAGE: string; + const HTTP2_HEADER_CONTENT_LENGTH: string; + const HTTP2_HEADER_CONTENT_LOCATION: string; + const HTTP2_HEADER_CONTENT_MD5: string; + const HTTP2_HEADER_CONTENT_RANGE: string; + const HTTP2_HEADER_CONTENT_TYPE: string; + const HTTP2_HEADER_COOKIE: string; + const HTTP2_HEADER_DATE: string; + const HTTP2_HEADER_ETAG: string; + const HTTP2_HEADER_EXPECT: string; + const HTTP2_HEADER_EXPIRES: string; + const HTTP2_HEADER_FROM: string; + const HTTP2_HEADER_HOST: string; + const HTTP2_HEADER_IF_MATCH: string; + const HTTP2_HEADER_IF_MODIFIED_SINCE: string; + const HTTP2_HEADER_IF_NONE_MATCH: string; + const HTTP2_HEADER_IF_RANGE: string; + const HTTP2_HEADER_IF_UNMODIFIED_SINCE: string; + const HTTP2_HEADER_LAST_MODIFIED: string; + const HTTP2_HEADER_LINK: string; + const HTTP2_HEADER_LOCATION: string; + const HTTP2_HEADER_MAX_FORWARDS: string; + const HTTP2_HEADER_PREFER: string; + const HTTP2_HEADER_PROXY_AUTHENTICATE: string; + const HTTP2_HEADER_PROXY_AUTHORIZATION: string; + const HTTP2_HEADER_RANGE: string; + const HTTP2_HEADER_REFERER: string; + const HTTP2_HEADER_REFRESH: string; + const HTTP2_HEADER_RETRY_AFTER: string; + const HTTP2_HEADER_SERVER: string; + const HTTP2_HEADER_SET_COOKIE: string; + const HTTP2_HEADER_STRICT_TRANSPORT_SECURITY: string; + const HTTP2_HEADER_TRANSFER_ENCODING: string; + const HTTP2_HEADER_TE: string; + const HTTP2_HEADER_UPGRADE: string; + const HTTP2_HEADER_USER_AGENT: string; + const HTTP2_HEADER_VARY: string; + const HTTP2_HEADER_VIA: string; + const HTTP2_HEADER_WWW_AUTHENTICATE: string; + const HTTP2_HEADER_HTTP2_SETTINGS: string; + const HTTP2_HEADER_KEEP_ALIVE: string; + const HTTP2_HEADER_PROXY_CONNECTION: string; + const HTTP2_METHOD_ACL: string; + const HTTP2_METHOD_BASELINE_CONTROL: string; + const HTTP2_METHOD_BIND: string; + const HTTP2_METHOD_CHECKIN: string; + const HTTP2_METHOD_CHECKOUT: string; + const HTTP2_METHOD_CONNECT: string; + const HTTP2_METHOD_COPY: string; + const HTTP2_METHOD_DELETE: string; + const HTTP2_METHOD_GET: string; + const HTTP2_METHOD_HEAD: string; + const HTTP2_METHOD_LABEL: string; + const HTTP2_METHOD_LINK: string; + const HTTP2_METHOD_LOCK: string; + const HTTP2_METHOD_MERGE: string; + const HTTP2_METHOD_MKACTIVITY: string; + const HTTP2_METHOD_MKCALENDAR: string; + const HTTP2_METHOD_MKCOL: string; + const HTTP2_METHOD_MKREDIRECTREF: string; + const HTTP2_METHOD_MKWORKSPACE: string; + const HTTP2_METHOD_MOVE: string; + const HTTP2_METHOD_OPTIONS: string; + const HTTP2_METHOD_ORDERPATCH: string; + const HTTP2_METHOD_PATCH: string; + const HTTP2_METHOD_POST: string; + const HTTP2_METHOD_PRI: string; + const HTTP2_METHOD_PROPFIND: string; + const HTTP2_METHOD_PROPPATCH: string; + const HTTP2_METHOD_PUT: string; + const HTTP2_METHOD_REBIND: string; + const HTTP2_METHOD_REPORT: string; + const HTTP2_METHOD_SEARCH: string; + const HTTP2_METHOD_TRACE: string; + const HTTP2_METHOD_UNBIND: string; + const HTTP2_METHOD_UNCHECKOUT: string; + const HTTP2_METHOD_UNLINK: string; + const HTTP2_METHOD_UNLOCK: string; + const HTTP2_METHOD_UPDATE: string; + const HTTP2_METHOD_UPDATEREDIRECTREF: string; + const HTTP2_METHOD_VERSION_CONTROL: string; + const HTTP_STATUS_CONTINUE: number; + const HTTP_STATUS_SWITCHING_PROTOCOLS: number; + const HTTP_STATUS_PROCESSING: number; + const HTTP_STATUS_OK: number; + const HTTP_STATUS_CREATED: number; + const HTTP_STATUS_ACCEPTED: number; + const HTTP_STATUS_NON_AUTHORITATIVE_INFORMATION: number; + const HTTP_STATUS_NO_CONTENT: number; + const HTTP_STATUS_RESET_CONTENT: number; + const HTTP_STATUS_PARTIAL_CONTENT: number; + const HTTP_STATUS_MULTI_STATUS: number; + const HTTP_STATUS_ALREADY_REPORTED: number; + const HTTP_STATUS_IM_USED: number; + const HTTP_STATUS_MULTIPLE_CHOICES: number; + const HTTP_STATUS_MOVED_PERMANENTLY: number; + const HTTP_STATUS_FOUND: number; + const HTTP_STATUS_SEE_OTHER: number; + const HTTP_STATUS_NOT_MODIFIED: number; + const HTTP_STATUS_USE_PROXY: number; + const HTTP_STATUS_TEMPORARY_REDIRECT: number; + const HTTP_STATUS_PERMANENT_REDIRECT: number; + const HTTP_STATUS_BAD_REQUEST: number; + const HTTP_STATUS_UNAUTHORIZED: number; + const HTTP_STATUS_PAYMENT_REQUIRED: number; + const HTTP_STATUS_FORBIDDEN: number; + const HTTP_STATUS_NOT_FOUND: number; + const HTTP_STATUS_METHOD_NOT_ALLOWED: number; + const HTTP_STATUS_NOT_ACCEPTABLE: number; + const HTTP_STATUS_PROXY_AUTHENTICATION_REQUIRED: number; + const HTTP_STATUS_REQUEST_TIMEOUT: number; + const HTTP_STATUS_CONFLICT: number; + const HTTP_STATUS_GONE: number; + const HTTP_STATUS_LENGTH_REQUIRED: number; + const HTTP_STATUS_PRECONDITION_FAILED: number; + const HTTP_STATUS_PAYLOAD_TOO_LARGE: number; + const HTTP_STATUS_URI_TOO_LONG: number; + const HTTP_STATUS_UNSUPPORTED_MEDIA_TYPE: number; + const HTTP_STATUS_RANGE_NOT_SATISFIABLE: number; + const HTTP_STATUS_EXPECTATION_FAILED: number; + const HTTP_STATUS_TEAPOT: number; + const HTTP_STATUS_MISDIRECTED_REQUEST: number; + const HTTP_STATUS_UNPROCESSABLE_ENTITY: number; + const HTTP_STATUS_LOCKED: number; + const HTTP_STATUS_FAILED_DEPENDENCY: number; + const HTTP_STATUS_UNORDERED_COLLECTION: number; + const HTTP_STATUS_UPGRADE_REQUIRED: number; + const HTTP_STATUS_PRECONDITION_REQUIRED: number; + const HTTP_STATUS_TOO_MANY_REQUESTS: number; + const HTTP_STATUS_REQUEST_HEADER_FIELDS_TOO_LARGE: number; + const HTTP_STATUS_UNAVAILABLE_FOR_LEGAL_REASONS: number; + const HTTP_STATUS_INTERNAL_SERVER_ERROR: number; + const HTTP_STATUS_NOT_IMPLEMENTED: number; + const HTTP_STATUS_BAD_GATEWAY: number; + const HTTP_STATUS_SERVICE_UNAVAILABLE: number; + const HTTP_STATUS_GATEWAY_TIMEOUT: number; + const HTTP_STATUS_HTTP_VERSION_NOT_SUPPORTED: number; + const HTTP_STATUS_VARIANT_ALSO_NEGOTIATES: number; + const HTTP_STATUS_INSUFFICIENT_STORAGE: number; + const HTTP_STATUS_LOOP_DETECTED: number; + const HTTP_STATUS_BANDWIDTH_LIMIT_EXCEEDED: number; + const HTTP_STATUS_NOT_EXTENDED: number; + const HTTP_STATUS_NETWORK_AUTHENTICATION_REQUIRED: number; + } + /** + * This symbol can be set as a property on the HTTP/2 headers object with + * an array value in order to provide a list of headers considered sensitive. + */ + export const sensitiveHeaders: symbol; + /** + * Returns an object containing the default settings for an `Http2Session`instance. This method returns a new object instance every time it is called + * so instances returned may be safely modified for use. + * @since v8.4.0 + */ + export function getDefaultSettings(): Settings; + /** + * Returns a `Buffer` instance containing serialized representation of the given + * HTTP/2 settings as specified in the [HTTP/2](https://tools.ietf.org/html/rfc7540) specification. This is intended + * for use with the `HTTP2-Settings` header field. + * + * ```js + * const http2 = require('http2'); + * + * const packed = http2.getPackedSettings({ enablePush: false }); + * + * console.log(packed.toString('base64')); + * // Prints: AAIAAAAA + * ``` + * @since v8.4.0 + */ + export function getPackedSettings(settings: Settings): Buffer; + /** + * Returns a `HTTP/2 Settings Object` containing the deserialized settings from + * the given `Buffer` as generated by `http2.getPackedSettings()`. + * @since v8.4.0 + * @param buf The packed settings. + */ + export function getUnpackedSettings(buf: Uint8Array): Settings; + /** + * Returns a `net.Server` instance that creates and manages `Http2Session`instances. + * + * Since there are no browsers known that support [unencrypted HTTP/2](https://http2.github.io/faq/#does-http2-require-encryption), the use of {@link createSecureServer} is necessary when + * communicating + * with browser clients. + * + * ```js + * const http2 = require('http2'); + * + * // Create an unencrypted HTTP/2 server. + * // Since there are no browsers known that support + * // unencrypted HTTP/2, the use of `http2.createSecureServer()` + * // is necessary when communicating with browser clients. + * const server = http2.createServer(); + * + * server.on('stream', (stream, headers) => { + * stream.respond({ + * 'content-type': 'text/html; charset=utf-8', + * ':status': 200 + * }); + * stream.end('

Hello World

'); + * }); + * + * server.listen(80); + * ``` + * @since v8.4.0 + * @param onRequestHandler See `Compatibility API` + */ + export function createServer(onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void): Http2Server; + export function createServer(options: ServerOptions, onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void): Http2Server; + /** + * Returns a `tls.Server` instance that creates and manages `Http2Session`instances. + * + * ```js + * const http2 = require('http2'); + * const fs = require('fs'); + * + * const options = { + * key: fs.readFileSync('server-key.pem'), + * cert: fs.readFileSync('server-cert.pem') + * }; + * + * // Create a secure HTTP/2 server + * const server = http2.createSecureServer(options); + * + * server.on('stream', (stream, headers) => { + * stream.respond({ + * 'content-type': 'text/html; charset=utf-8', + * ':status': 200 + * }); + * stream.end('

Hello World

'); + * }); + * + * server.listen(80); + * ``` + * @since v8.4.0 + * @param onRequestHandler See `Compatibility API` + */ + export function createSecureServer(onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void): Http2SecureServer; + export function createSecureServer(options: SecureServerOptions, onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void): Http2SecureServer; + /** + * Returns a `ClientHttp2Session` instance. + * + * ```js + * const http2 = require('http2'); + * const client = http2.connect('https://localhost:1234'); + * + * // Use the client + * + * client.close(); + * ``` + * @since v8.4.0 + * @param authority The remote HTTP/2 server to connect to. This must be in the form of a minimal, valid URL with the `http://` or `https://` prefix, host name, and IP port (if a non-default port + * is used). Userinfo (user ID and password), path, querystring, and fragment details in the URL will be ignored. + * @param listener Will be registered as a one-time listener of the {@link 'connect'} event. + */ + export function connect(authority: string | url.URL, listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): ClientHttp2Session; + export function connect( + authority: string | url.URL, + options?: ClientSessionOptions | SecureClientSessionOptions, + listener?: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void + ): ClientHttp2Session; +} +declare module 'node:http2' { + export * from 'http2'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/https.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/https.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..9abd7b190a791ce667f1ea50995baffe2993385a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/https.d.ts" @@ -0,0 +1,391 @@ +/** + * HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a + * separate module. + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/https.js) + */ +declare module 'https' { + import { Duplex } from 'node:stream'; + import * as tls from 'node:tls'; + import * as http from 'node:http'; + import { URL } from 'node:url'; + type ServerOptions = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions; + type RequestOptions = http.RequestOptions & + tls.SecureContextOptions & { + rejectUnauthorized?: boolean | undefined; // Defaults to true + servername?: string | undefined; // SNI TLS Extension + }; + interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions { + rejectUnauthorized?: boolean | undefined; + maxCachedSessions?: number | undefined; + } + /** + * An `Agent` object for HTTPS similar to `http.Agent`. See {@link request} for more information. + * @since v0.4.5 + */ + class Agent extends http.Agent { + constructor(options?: AgentOptions); + options: AgentOptions; + } + interface Server extends http.Server {} + /** + * See `http.Server` for more information. + * @since v0.3.4 + */ + class Server extends tls.Server { + constructor(requestListener?: http.RequestListener); + constructor(options: ServerOptions, requestListener?: http.RequestListener); + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this; + addListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; + addListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; + addListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; + addListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this; + addListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; + addListener(event: 'close', listener: () => void): this; + addListener(event: 'connection', listener: (socket: Duplex) => void): this; + addListener(event: 'error', listener: (err: Error) => void): this; + addListener(event: 'listening', listener: () => void): this; + addListener(event: 'checkContinue', listener: http.RequestListener): this; + addListener(event: 'checkExpectation', listener: http.RequestListener): this; + addListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this; + addListener(event: 'connect', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; + addListener(event: 'request', listener: http.RequestListener): this; + addListener(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; + emit(event: string, ...args: any[]): boolean; + emit(event: 'keylog', line: Buffer, tlsSocket: tls.TLSSocket): boolean; + emit(event: 'newSession', sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void): boolean; + emit(event: 'OCSPRequest', certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void): boolean; + emit(event: 'resumeSession', sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean; + emit(event: 'secureConnection', tlsSocket: tls.TLSSocket): boolean; + emit(event: 'tlsClientError', err: Error, tlsSocket: tls.TLSSocket): boolean; + emit(event: 'close'): boolean; + emit(event: 'connection', socket: Duplex): boolean; + emit(event: 'error', err: Error): boolean; + emit(event: 'listening'): boolean; + emit(event: 'checkContinue', req: http.IncomingMessage, res: http.ServerResponse): boolean; + emit(event: 'checkExpectation', req: http.IncomingMessage, res: http.ServerResponse): boolean; + emit(event: 'clientError', err: Error, socket: Duplex): boolean; + emit(event: 'connect', req: http.IncomingMessage, socket: Duplex, head: Buffer): boolean; + emit(event: 'request', req: http.IncomingMessage, res: http.ServerResponse): boolean; + emit(event: 'upgrade', req: http.IncomingMessage, socket: Duplex, head: Buffer): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this; + on(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; + on(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; + on(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; + on(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this; + on(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; + on(event: 'close', listener: () => void): this; + on(event: 'connection', listener: (socket: Duplex) => void): this; + on(event: 'error', listener: (err: Error) => void): this; + on(event: 'listening', listener: () => void): this; + on(event: 'checkContinue', listener: http.RequestListener): this; + on(event: 'checkExpectation', listener: http.RequestListener): this; + on(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this; + on(event: 'connect', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; + on(event: 'request', listener: http.RequestListener): this; + on(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this; + once(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; + once(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; + once(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; + once(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this; + once(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; + once(event: 'close', listener: () => void): this; + once(event: 'connection', listener: (socket: Duplex) => void): this; + once(event: 'error', listener: (err: Error) => void): this; + once(event: 'listening', listener: () => void): this; + once(event: 'checkContinue', listener: http.RequestListener): this; + once(event: 'checkExpectation', listener: http.RequestListener): this; + once(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this; + once(event: 'connect', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; + once(event: 'request', listener: http.RequestListener): this; + once(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this; + prependListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; + prependListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; + prependListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; + prependListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this; + prependListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; + prependListener(event: 'close', listener: () => void): this; + prependListener(event: 'connection', listener: (socket: Duplex) => void): this; + prependListener(event: 'error', listener: (err: Error) => void): this; + prependListener(event: 'listening', listener: () => void): this; + prependListener(event: 'checkContinue', listener: http.RequestListener): this; + prependListener(event: 'checkExpectation', listener: http.RequestListener): this; + prependListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this; + prependListener(event: 'connect', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; + prependListener(event: 'request', listener: http.RequestListener): this; + prependListener(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'keylog', listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this; + prependOnceListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; + prependOnceListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; + prependOnceListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; + prependOnceListener(event: 'secureConnection', listener: (tlsSocket: tls.TLSSocket) => void): this; + prependOnceListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this; + prependOnceListener(event: 'close', listener: () => void): this; + prependOnceListener(event: 'connection', listener: (socket: Duplex) => void): this; + prependOnceListener(event: 'error', listener: (err: Error) => void): this; + prependOnceListener(event: 'listening', listener: () => void): this; + prependOnceListener(event: 'checkContinue', listener: http.RequestListener): this; + prependOnceListener(event: 'checkExpectation', listener: http.RequestListener): this; + prependOnceListener(event: 'clientError', listener: (err: Error, socket: Duplex) => void): this; + prependOnceListener(event: 'connect', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; + prependOnceListener(event: 'request', listener: http.RequestListener): this; + prependOnceListener(event: 'upgrade', listener: (req: http.IncomingMessage, socket: Duplex, head: Buffer) => void): this; + } + /** + * ```js + * // curl -k https://localhost:8000/ + * const https = require('https'); + * const fs = require('fs'); + * + * const options = { + * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), + * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem') + * }; + * + * https.createServer(options, (req, res) => { + * res.writeHead(200); + * res.end('hello world\n'); + * }).listen(8000); + * ``` + * + * Or + * + * ```js + * const https = require('https'); + * const fs = require('fs'); + * + * const options = { + * pfx: fs.readFileSync('test/fixtures/test_cert.pfx'), + * passphrase: 'sample' + * }; + * + * https.createServer(options, (req, res) => { + * res.writeHead(200); + * res.end('hello world\n'); + * }).listen(8000); + * ``` + * @since v0.3.4 + * @param options Accepts `options` from `createServer`, `createSecureContext` and `createServer`. + * @param requestListener A listener to be added to the `'request'` event. + */ + function createServer(requestListener?: http.RequestListener): Server; + function createServer(options: ServerOptions, requestListener?: http.RequestListener): Server; + /** + * Makes a request to a secure web server. + * + * The following additional `options` from `tls.connect()` are also accepted:`ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`,`honorCipherOrder`, `key`, `passphrase`, + * `pfx`, `rejectUnauthorized`,`secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`,`highWaterMark`. + * + * `options` can be an object, a string, or a `URL` object. If `options` is a + * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object. + * + * `https.request()` returns an instance of the `http.ClientRequest` class. The `ClientRequest` instance is a writable stream. If one needs to + * upload a file with a POST request, then write to the `ClientRequest` object. + * + * ```js + * const https = require('https'); + * + * const options = { + * hostname: 'encrypted.google.com', + * port: 443, + * path: '/', + * method: 'GET' + * }; + * + * const req = https.request(options, (res) => { + * console.log('statusCode:', res.statusCode); + * console.log('headers:', res.headers); + * + * res.on('data', (d) => { + * process.stdout.write(d); + * }); + * }); + * + * req.on('error', (e) => { + * console.error(e); + * }); + * req.end(); + * ``` + * + * Example using options from `tls.connect()`: + * + * ```js + * const options = { + * hostname: 'encrypted.google.com', + * port: 443, + * path: '/', + * method: 'GET', + * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), + * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem') + * }; + * options.agent = new https.Agent(options); + * + * const req = https.request(options, (res) => { + * // ... + * }); + * ``` + * + * Alternatively, opt out of connection pooling by not using an `Agent`. + * + * ```js + * const options = { + * hostname: 'encrypted.google.com', + * port: 443, + * path: '/', + * method: 'GET', + * key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'), + * cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'), + * agent: false + * }; + * + * const req = https.request(options, (res) => { + * // ... + * }); + * ``` + * + * Example using a `URL` as `options`: + * + * ```js + * const options = new URL('https://abc:xyz@example.com'); + * + * const req = https.request(options, (res) => { + * // ... + * }); + * ``` + * + * Example pinning on certificate fingerprint, or the public key (similar to`pin-sha256`): + * + * ```js + * const tls = require('tls'); + * const https = require('https'); + * const crypto = require('crypto'); + * + * function sha256(s) { + * return crypto.createHash('sha256').update(s).digest('base64'); + * } + * const options = { + * hostname: 'github.com', + * port: 443, + * path: '/', + * method: 'GET', + * checkServerIdentity: function(host, cert) { + * // Make sure the certificate is issued to the host we are connected to + * const err = tls.checkServerIdentity(host, cert); + * if (err) { + * return err; + * } + * + * // Pin the public key, similar to HPKP pin-sha25 pinning + * const pubkey256 = 'pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU='; + * if (sha256(cert.pubkey) !== pubkey256) { + * const msg = 'Certificate verification error: ' + + * `The public key of '${cert.subject.CN}' ` + + * 'does not match our pinned fingerprint'; + * return new Error(msg); + * } + * + * // Pin the exact certificate, rather than the pub key + * const cert256 = '25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:' + + * 'D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16'; + * if (cert.fingerprint256 !== cert256) { + * const msg = 'Certificate verification error: ' + + * `The certificate of '${cert.subject.CN}' ` + + * 'does not match our pinned fingerprint'; + * return new Error(msg); + * } + * + * // This loop is informational only. + * // Print the certificate and public key fingerprints of all certs in the + * // chain. Its common to pin the public key of the issuer on the public + * // internet, while pinning the public key of the service in sensitive + * // environments. + * do { + * console.log('Subject Common Name:', cert.subject.CN); + * console.log(' Certificate SHA256 fingerprint:', cert.fingerprint256); + * + * hash = crypto.createHash('sha256'); + * console.log(' Public key ping-sha256:', sha256(cert.pubkey)); + * + * lastprint256 = cert.fingerprint256; + * cert = cert.issuerCertificate; + * } while (cert.fingerprint256 !== lastprint256); + * + * }, + * }; + * + * options.agent = new https.Agent(options); + * const req = https.request(options, (res) => { + * console.log('All OK. Server matched our pinned cert or public key'); + * console.log('statusCode:', res.statusCode); + * // Print the HPKP values + * console.log('headers:', res.headers['public-key-pins']); + * + * res.on('data', (d) => {}); + * }); + * + * req.on('error', (e) => { + * console.error(e.message); + * }); + * req.end(); + * ``` + * + * Outputs for example: + * + * ```text + * Subject Common Name: github.com + * Certificate SHA256 fingerprint: 25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16 + * Public key ping-sha256: pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU= + * Subject Common Name: DigiCert SHA2 Extended Validation Server CA + * Certificate SHA256 fingerprint: 40:3E:06:2A:26:53:05:91:13:28:5B:AF:80:A0:D4:AE:42:2C:84:8C:9F:78:FA:D0:1F:C9:4B:C5:B8:7F:EF:1A + * Public key ping-sha256: RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho= + * Subject Common Name: DigiCert High Assurance EV Root CA + * Certificate SHA256 fingerprint: 74:31:E5:F4:C3:C1:CE:46:90:77:4F:0B:61:E0:54:40:88:3B:A9:A0:1E:D0:0B:A6:AB:D7:80:6E:D3:B1:18:CF + * Public key ping-sha256: WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18= + * All OK. Server matched our pinned cert or public key + * statusCode: 200 + * headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; pin-sha256="RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho="; + * pin-sha256="k2v657xBsOVe1PQRwOsHsw3bsGT2VzIqz5K+59sNQws="; pin-sha256="K87oWBWM9UZfyddvDfoxL+8lpNyoUB2ptGtn0fv6G2Q="; pin-sha256="IQBnNBEiFuhj+8x6X8XLgh01V9Ic5/V3IRQLNFFc7v4="; + * pin-sha256="iie1VXtL7HzAMF+/PVPR9xzT80kQxdZeJ+zduCB3uj0="; pin-sha256="LvRiGEjRqfzurezaWuj8Wie2gyHMrW5Q06LspMnox7A="; includeSubDomains + * ``` + * @since v0.3.6 + * @param options Accepts all `options` from `request`, with some differences in default values: + */ + function request(options: RequestOptions | string | URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; + function request(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; + /** + * Like `http.get()` but for HTTPS. + * + * `options` can be an object, a string, or a `URL` object. If `options` is a + * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object. + * + * ```js + * const https = require('https'); + * + * https.get('https://encrypted.google.com/', (res) => { + * console.log('statusCode:', res.statusCode); + * console.log('headers:', res.headers); + * + * res.on('data', (d) => { + * process.stdout.write(d); + * }); + * + * }).on('error', (e) => { + * console.error(e); + * }); + * ``` + * @since v0.3.6 + * @param options Accepts the same `options` as {@link request}, with the `method` always set to `GET`. + */ + function get(options: RequestOptions | string | URL, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; + function get(url: string | URL, options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; + let globalAgent: Agent; +} +declare module 'node:https' { + export * from 'https'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/index.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/index.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..ae3e4cc425f09e08d331bca90afdd7453e0f0cbe --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/index.d.ts" @@ -0,0 +1,129 @@ +// Type definitions for non-npm package Node.js 17.0 +// Project: https://nodejs.org/ +// Definitions by: Microsoft TypeScript +// DefinitelyTyped +// Alberto Schiabel +// Alvis HT Tang +// Andrew Makarov +// Benjamin Toueg +// Chigozirim C. +// David Junger +// Deividas Bakanas +// Eugene Y. Q. Shen +// Hannes Magnusson +// Huw +// Kelvin Jin +// Klaus Meinhardt +// Lishude +// Mariusz Wiktorczyk +// Mohsen Azimi +// Nicolas Even +// Nikita Galkin +// Parambir Singh +// Sebastian Silbermann +// Simon Schick +// Thomas den Hollander +// Wilco Bakker +// wwwy3y3 +// Samuel Ainsworth +// Kyle Uehlein +// Thanik Bhongbhibhat +// Marcin Kopacz +// Trivikram Kamat +// Junxiao Shi +// Ilia Baryshnikov +// ExE Boss +// Piotr Błażejewicz +// Anna Henningsen +// Victor Perin +// Yongsheng Zhang +// NodeJS Contributors +// Linus Unnebäck +// wafuwafu13 +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/** + * License for programmatically and manually incorporated + * documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc + * + * Copyright Node.js contributors. All rights reserved. + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to + * deal in the Software without restriction, including without limitation the + * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ + +// NOTE: These definitions support NodeJS and TypeScript 3.7+. + +// Reference required types from the default lib: +/// +/// +/// +/// + +// Base definitions for all NodeJS modules that are not specific to any version of TypeScript: +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// + +/// diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/inspector.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/inspector.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..7b9598c4421e12bcf40886d9fe36399bcbb17975 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/inspector.d.ts" @@ -0,0 +1,2744 @@ +// tslint:disable-next-line:dt-header +// Type definitions for inspector + +// These definitions are auto-generated. +// Please see https://github.com/DefinitelyTyped/DefinitelyTyped/pull/19330 +// for more information. + +// tslint:disable:max-line-length + +/** + * The `inspector` module provides an API for interacting with the V8 inspector. + * + * It can be accessed using: + * + * ```js + * const inspector = require('inspector'); + * ``` + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/inspector.js) + */ +declare module 'inspector' { + import EventEmitter = require('node:events'); + interface InspectorNotification { + method: string; + params: T; + } + namespace Schema { + /** + * Description of the protocol domain. + */ + interface Domain { + /** + * Domain name. + */ + name: string; + /** + * Domain version. + */ + version: string; + } + interface GetDomainsReturnType { + /** + * List of supported domains. + */ + domains: Domain[]; + } + } + namespace Runtime { + /** + * Unique script identifier. + */ + type ScriptId = string; + /** + * Unique object identifier. + */ + type RemoteObjectId = string; + /** + * Primitive value which cannot be JSON-stringified. + */ + type UnserializableValue = string; + /** + * Mirror object referencing original JavaScript object. + */ + interface RemoteObject { + /** + * Object type. + */ + type: string; + /** + * Object subtype hint. Specified for object type values only. + */ + subtype?: string | undefined; + /** + * Object class (constructor) name. Specified for object type values only. + */ + className?: string | undefined; + /** + * Remote object value in case of primitive values or JSON values (if it was requested). + */ + value?: any; + /** + * Primitive value which can not be JSON-stringified does not have value, but gets this property. + */ + unserializableValue?: UnserializableValue | undefined; + /** + * String representation of the object. + */ + description?: string | undefined; + /** + * Unique object identifier (for non-primitive values). + */ + objectId?: RemoteObjectId | undefined; + /** + * Preview containing abbreviated property values. Specified for object type values only. + * @experimental + */ + preview?: ObjectPreview | undefined; + /** + * @experimental + */ + customPreview?: CustomPreview | undefined; + } + /** + * @experimental + */ + interface CustomPreview { + header: string; + hasBody: boolean; + formatterObjectId: RemoteObjectId; + bindRemoteObjectFunctionId: RemoteObjectId; + configObjectId?: RemoteObjectId | undefined; + } + /** + * Object containing abbreviated remote object value. + * @experimental + */ + interface ObjectPreview { + /** + * Object type. + */ + type: string; + /** + * Object subtype hint. Specified for object type values only. + */ + subtype?: string | undefined; + /** + * String representation of the object. + */ + description?: string | undefined; + /** + * True iff some of the properties or entries of the original object did not fit. + */ + overflow: boolean; + /** + * List of the properties. + */ + properties: PropertyPreview[]; + /** + * List of the entries. Specified for map and set subtype values only. + */ + entries?: EntryPreview[] | undefined; + } + /** + * @experimental + */ + interface PropertyPreview { + /** + * Property name. + */ + name: string; + /** + * Object type. Accessor means that the property itself is an accessor property. + */ + type: string; + /** + * User-friendly property value string. + */ + value?: string | undefined; + /** + * Nested value preview. + */ + valuePreview?: ObjectPreview | undefined; + /** + * Object subtype hint. Specified for object type values only. + */ + subtype?: string | undefined; + } + /** + * @experimental + */ + interface EntryPreview { + /** + * Preview of the key. Specified for map-like collection entries. + */ + key?: ObjectPreview | undefined; + /** + * Preview of the value. + */ + value: ObjectPreview; + } + /** + * Object property descriptor. + */ + interface PropertyDescriptor { + /** + * Property name or symbol description. + */ + name: string; + /** + * The value associated with the property. + */ + value?: RemoteObject | undefined; + /** + * True if the value associated with the property may be changed (data descriptors only). + */ + writable?: boolean | undefined; + /** + * A function which serves as a getter for the property, or undefined if there is no getter (accessor descriptors only). + */ + get?: RemoteObject | undefined; + /** + * A function which serves as a setter for the property, or undefined if there is no setter (accessor descriptors only). + */ + set?: RemoteObject | undefined; + /** + * True if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object. + */ + configurable: boolean; + /** + * True if this property shows up during enumeration of the properties on the corresponding object. + */ + enumerable: boolean; + /** + * True if the result was thrown during the evaluation. + */ + wasThrown?: boolean | undefined; + /** + * True if the property is owned for the object. + */ + isOwn?: boolean | undefined; + /** + * Property symbol object, if the property is of the symbol type. + */ + symbol?: RemoteObject | undefined; + } + /** + * Object internal property descriptor. This property isn't normally visible in JavaScript code. + */ + interface InternalPropertyDescriptor { + /** + * Conventional property name. + */ + name: string; + /** + * The value associated with the property. + */ + value?: RemoteObject | undefined; + } + /** + * Represents function call argument. Either remote object id objectId, primitive value, unserializable primitive value or neither of (for undefined) them should be specified. + */ + interface CallArgument { + /** + * Primitive value or serializable javascript object. + */ + value?: any; + /** + * Primitive value which can not be JSON-stringified. + */ + unserializableValue?: UnserializableValue | undefined; + /** + * Remote object handle. + */ + objectId?: RemoteObjectId | undefined; + } + /** + * Id of an execution context. + */ + type ExecutionContextId = number; + /** + * Description of an isolated world. + */ + interface ExecutionContextDescription { + /** + * Unique id of the execution context. It can be used to specify in which execution context script evaluation should be performed. + */ + id: ExecutionContextId; + /** + * Execution context origin. + */ + origin: string; + /** + * Human readable name describing given context. + */ + name: string; + /** + * Embedder-specific auxiliary data. + */ + auxData?: {} | undefined; + } + /** + * Detailed information about exception (or error) that was thrown during script compilation or execution. + */ + interface ExceptionDetails { + /** + * Exception id. + */ + exceptionId: number; + /** + * Exception text, which should be used together with exception object when available. + */ + text: string; + /** + * Line number of the exception location (0-based). + */ + lineNumber: number; + /** + * Column number of the exception location (0-based). + */ + columnNumber: number; + /** + * Script ID of the exception location. + */ + scriptId?: ScriptId | undefined; + /** + * URL of the exception location, to be used when the script was not reported. + */ + url?: string | undefined; + /** + * JavaScript stack trace if available. + */ + stackTrace?: StackTrace | undefined; + /** + * Exception object if available. + */ + exception?: RemoteObject | undefined; + /** + * Identifier of the context where exception happened. + */ + executionContextId?: ExecutionContextId | undefined; + } + /** + * Number of milliseconds since epoch. + */ + type Timestamp = number; + /** + * Stack entry for runtime errors and assertions. + */ + interface CallFrame { + /** + * JavaScript function name. + */ + functionName: string; + /** + * JavaScript script id. + */ + scriptId: ScriptId; + /** + * JavaScript script name or url. + */ + url: string; + /** + * JavaScript script line number (0-based). + */ + lineNumber: number; + /** + * JavaScript script column number (0-based). + */ + columnNumber: number; + } + /** + * Call frames for assertions or error messages. + */ + interface StackTrace { + /** + * String label of this stack trace. For async traces this may be a name of the function that initiated the async call. + */ + description?: string | undefined; + /** + * JavaScript function name. + */ + callFrames: CallFrame[]; + /** + * Asynchronous JavaScript stack trace that preceded this stack, if available. + */ + parent?: StackTrace | undefined; + /** + * Asynchronous JavaScript stack trace that preceded this stack, if available. + * @experimental + */ + parentId?: StackTraceId | undefined; + } + /** + * Unique identifier of current debugger. + * @experimental + */ + type UniqueDebuggerId = string; + /** + * If debuggerId is set stack trace comes from another debugger and can be resolved there. This allows to track cross-debugger calls. See Runtime.StackTrace and Debugger.paused for usages. + * @experimental + */ + interface StackTraceId { + id: string; + debuggerId?: UniqueDebuggerId | undefined; + } + interface EvaluateParameterType { + /** + * Expression to evaluate. + */ + expression: string; + /** + * Symbolic group name that can be used to release multiple objects. + */ + objectGroup?: string | undefined; + /** + * Determines whether Command Line API should be available during the evaluation. + */ + includeCommandLineAPI?: boolean | undefined; + /** + * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. + */ + silent?: boolean | undefined; + /** + * Specifies in which execution context to perform evaluation. If the parameter is omitted the evaluation will be performed in the context of the inspected page. + */ + contextId?: ExecutionContextId | undefined; + /** + * Whether the result is expected to be a JSON object that should be sent by value. + */ + returnByValue?: boolean | undefined; + /** + * Whether preview should be generated for the result. + * @experimental + */ + generatePreview?: boolean | undefined; + /** + * Whether execution should be treated as initiated by user in the UI. + */ + userGesture?: boolean | undefined; + /** + * Whether execution should await for resulting value and return once awaited promise is resolved. + */ + awaitPromise?: boolean | undefined; + } + interface AwaitPromiseParameterType { + /** + * Identifier of the promise. + */ + promiseObjectId: RemoteObjectId; + /** + * Whether the result is expected to be a JSON object that should be sent by value. + */ + returnByValue?: boolean | undefined; + /** + * Whether preview should be generated for the result. + */ + generatePreview?: boolean | undefined; + } + interface CallFunctionOnParameterType { + /** + * Declaration of the function to call. + */ + functionDeclaration: string; + /** + * Identifier of the object to call function on. Either objectId or executionContextId should be specified. + */ + objectId?: RemoteObjectId | undefined; + /** + * Call arguments. All call arguments must belong to the same JavaScript world as the target object. + */ + arguments?: CallArgument[] | undefined; + /** + * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. + */ + silent?: boolean | undefined; + /** + * Whether the result is expected to be a JSON object which should be sent by value. + */ + returnByValue?: boolean | undefined; + /** + * Whether preview should be generated for the result. + * @experimental + */ + generatePreview?: boolean | undefined; + /** + * Whether execution should be treated as initiated by user in the UI. + */ + userGesture?: boolean | undefined; + /** + * Whether execution should await for resulting value and return once awaited promise is resolved. + */ + awaitPromise?: boolean | undefined; + /** + * Specifies execution context which global object will be used to call function on. Either executionContextId or objectId should be specified. + */ + executionContextId?: ExecutionContextId | undefined; + /** + * Symbolic group name that can be used to release multiple objects. If objectGroup is not specified and objectId is, objectGroup will be inherited from object. + */ + objectGroup?: string | undefined; + } + interface GetPropertiesParameterType { + /** + * Identifier of the object to return properties for. + */ + objectId: RemoteObjectId; + /** + * If true, returns properties belonging only to the element itself, not to its prototype chain. + */ + ownProperties?: boolean | undefined; + /** + * If true, returns accessor properties (with getter/setter) only; internal properties are not returned either. + * @experimental + */ + accessorPropertiesOnly?: boolean | undefined; + /** + * Whether preview should be generated for the results. + * @experimental + */ + generatePreview?: boolean | undefined; + } + interface ReleaseObjectParameterType { + /** + * Identifier of the object to release. + */ + objectId: RemoteObjectId; + } + interface ReleaseObjectGroupParameterType { + /** + * Symbolic object group name. + */ + objectGroup: string; + } + interface SetCustomObjectFormatterEnabledParameterType { + enabled: boolean; + } + interface CompileScriptParameterType { + /** + * Expression to compile. + */ + expression: string; + /** + * Source url to be set for the script. + */ + sourceURL: string; + /** + * Specifies whether the compiled script should be persisted. + */ + persistScript: boolean; + /** + * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page. + */ + executionContextId?: ExecutionContextId | undefined; + } + interface RunScriptParameterType { + /** + * Id of the script to run. + */ + scriptId: ScriptId; + /** + * Specifies in which execution context to perform script run. If the parameter is omitted the evaluation will be performed in the context of the inspected page. + */ + executionContextId?: ExecutionContextId | undefined; + /** + * Symbolic group name that can be used to release multiple objects. + */ + objectGroup?: string | undefined; + /** + * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. + */ + silent?: boolean | undefined; + /** + * Determines whether Command Line API should be available during the evaluation. + */ + includeCommandLineAPI?: boolean | undefined; + /** + * Whether the result is expected to be a JSON object which should be sent by value. + */ + returnByValue?: boolean | undefined; + /** + * Whether preview should be generated for the result. + */ + generatePreview?: boolean | undefined; + /** + * Whether execution should await for resulting value and return once awaited promise is resolved. + */ + awaitPromise?: boolean | undefined; + } + interface QueryObjectsParameterType { + /** + * Identifier of the prototype to return objects for. + */ + prototypeObjectId: RemoteObjectId; + } + interface GlobalLexicalScopeNamesParameterType { + /** + * Specifies in which execution context to lookup global scope variables. + */ + executionContextId?: ExecutionContextId | undefined; + } + interface EvaluateReturnType { + /** + * Evaluation result. + */ + result: RemoteObject; + /** + * Exception details. + */ + exceptionDetails?: ExceptionDetails | undefined; + } + interface AwaitPromiseReturnType { + /** + * Promise result. Will contain rejected value if promise was rejected. + */ + result: RemoteObject; + /** + * Exception details if stack strace is available. + */ + exceptionDetails?: ExceptionDetails | undefined; + } + interface CallFunctionOnReturnType { + /** + * Call result. + */ + result: RemoteObject; + /** + * Exception details. + */ + exceptionDetails?: ExceptionDetails | undefined; + } + interface GetPropertiesReturnType { + /** + * Object properties. + */ + result: PropertyDescriptor[]; + /** + * Internal object properties (only of the element itself). + */ + internalProperties?: InternalPropertyDescriptor[] | undefined; + /** + * Exception details. + */ + exceptionDetails?: ExceptionDetails | undefined; + } + interface CompileScriptReturnType { + /** + * Id of the script. + */ + scriptId?: ScriptId | undefined; + /** + * Exception details. + */ + exceptionDetails?: ExceptionDetails | undefined; + } + interface RunScriptReturnType { + /** + * Run result. + */ + result: RemoteObject; + /** + * Exception details. + */ + exceptionDetails?: ExceptionDetails | undefined; + } + interface QueryObjectsReturnType { + /** + * Array with objects. + */ + objects: RemoteObject; + } + interface GlobalLexicalScopeNamesReturnType { + names: string[]; + } + interface ExecutionContextCreatedEventDataType { + /** + * A newly created execution context. + */ + context: ExecutionContextDescription; + } + interface ExecutionContextDestroyedEventDataType { + /** + * Id of the destroyed context + */ + executionContextId: ExecutionContextId; + } + interface ExceptionThrownEventDataType { + /** + * Timestamp of the exception. + */ + timestamp: Timestamp; + exceptionDetails: ExceptionDetails; + } + interface ExceptionRevokedEventDataType { + /** + * Reason describing why exception was revoked. + */ + reason: string; + /** + * The id of revoked exception, as reported in exceptionThrown. + */ + exceptionId: number; + } + interface ConsoleAPICalledEventDataType { + /** + * Type of the call. + */ + type: string; + /** + * Call arguments. + */ + args: RemoteObject[]; + /** + * Identifier of the context where the call was made. + */ + executionContextId: ExecutionContextId; + /** + * Call timestamp. + */ + timestamp: Timestamp; + /** + * Stack trace captured when the call was made. + */ + stackTrace?: StackTrace | undefined; + /** + * Console context descriptor for calls on non-default console context (not console.*): 'anonymous#unique-logger-id' for call on unnamed context, 'name#unique-logger-id' for call on named context. + * @experimental + */ + context?: string | undefined; + } + interface InspectRequestedEventDataType { + object: RemoteObject; + hints: {}; + } + } + namespace Debugger { + /** + * Breakpoint identifier. + */ + type BreakpointId = string; + /** + * Call frame identifier. + */ + type CallFrameId = string; + /** + * Location in the source code. + */ + interface Location { + /** + * Script identifier as reported in the Debugger.scriptParsed. + */ + scriptId: Runtime.ScriptId; + /** + * Line number in the script (0-based). + */ + lineNumber: number; + /** + * Column number in the script (0-based). + */ + columnNumber?: number | undefined; + } + /** + * Location in the source code. + * @experimental + */ + interface ScriptPosition { + lineNumber: number; + columnNumber: number; + } + /** + * JavaScript call frame. Array of call frames form the call stack. + */ + interface CallFrame { + /** + * Call frame identifier. This identifier is only valid while the virtual machine is paused. + */ + callFrameId: CallFrameId; + /** + * Name of the JavaScript function called on this call frame. + */ + functionName: string; + /** + * Location in the source code. + */ + functionLocation?: Location | undefined; + /** + * Location in the source code. + */ + location: Location; + /** + * JavaScript script name or url. + */ + url: string; + /** + * Scope chain for this call frame. + */ + scopeChain: Scope[]; + /** + * this object for this call frame. + */ + this: Runtime.RemoteObject; + /** + * The value being returned, if the function is at return point. + */ + returnValue?: Runtime.RemoteObject | undefined; + } + /** + * Scope description. + */ + interface Scope { + /** + * Scope type. + */ + type: string; + /** + * Object representing the scope. For global and with scopes it represents the actual object; for the rest of the scopes, it is artificial transient object enumerating scope variables as its properties. + */ + object: Runtime.RemoteObject; + name?: string | undefined; + /** + * Location in the source code where scope starts + */ + startLocation?: Location | undefined; + /** + * Location in the source code where scope ends + */ + endLocation?: Location | undefined; + } + /** + * Search match for resource. + */ + interface SearchMatch { + /** + * Line number in resource content. + */ + lineNumber: number; + /** + * Line with match content. + */ + lineContent: string; + } + interface BreakLocation { + /** + * Script identifier as reported in the Debugger.scriptParsed. + */ + scriptId: Runtime.ScriptId; + /** + * Line number in the script (0-based). + */ + lineNumber: number; + /** + * Column number in the script (0-based). + */ + columnNumber?: number | undefined; + type?: string | undefined; + } + interface SetBreakpointsActiveParameterType { + /** + * New value for breakpoints active state. + */ + active: boolean; + } + interface SetSkipAllPausesParameterType { + /** + * New value for skip pauses state. + */ + skip: boolean; + } + interface SetBreakpointByUrlParameterType { + /** + * Line number to set breakpoint at. + */ + lineNumber: number; + /** + * URL of the resources to set breakpoint on. + */ + url?: string | undefined; + /** + * Regex pattern for the URLs of the resources to set breakpoints on. Either url or urlRegex must be specified. + */ + urlRegex?: string | undefined; + /** + * Script hash of the resources to set breakpoint on. + */ + scriptHash?: string | undefined; + /** + * Offset in the line to set breakpoint at. + */ + columnNumber?: number | undefined; + /** + * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true. + */ + condition?: string | undefined; + } + interface SetBreakpointParameterType { + /** + * Location to set breakpoint in. + */ + location: Location; + /** + * Expression to use as a breakpoint condition. When specified, debugger will only stop on the breakpoint if this expression evaluates to true. + */ + condition?: string | undefined; + } + interface RemoveBreakpointParameterType { + breakpointId: BreakpointId; + } + interface GetPossibleBreakpointsParameterType { + /** + * Start of range to search possible breakpoint locations in. + */ + start: Location; + /** + * End of range to search possible breakpoint locations in (excluding). When not specified, end of scripts is used as end of range. + */ + end?: Location | undefined; + /** + * Only consider locations which are in the same (non-nested) function as start. + */ + restrictToFunction?: boolean | undefined; + } + interface ContinueToLocationParameterType { + /** + * Location to continue to. + */ + location: Location; + targetCallFrames?: string | undefined; + } + interface PauseOnAsyncCallParameterType { + /** + * Debugger will pause when async call with given stack trace is started. + */ + parentStackTraceId: Runtime.StackTraceId; + } + interface StepIntoParameterType { + /** + * Debugger will issue additional Debugger.paused notification if any async task is scheduled before next pause. + * @experimental + */ + breakOnAsyncCall?: boolean | undefined; + } + interface GetStackTraceParameterType { + stackTraceId: Runtime.StackTraceId; + } + interface SearchInContentParameterType { + /** + * Id of the script to search in. + */ + scriptId: Runtime.ScriptId; + /** + * String to search for. + */ + query: string; + /** + * If true, search is case sensitive. + */ + caseSensitive?: boolean | undefined; + /** + * If true, treats string parameter as regex. + */ + isRegex?: boolean | undefined; + } + interface SetScriptSourceParameterType { + /** + * Id of the script to edit. + */ + scriptId: Runtime.ScriptId; + /** + * New content of the script. + */ + scriptSource: string; + /** + * If true the change will not actually be applied. Dry run may be used to get result description without actually modifying the code. + */ + dryRun?: boolean | undefined; + } + interface RestartFrameParameterType { + /** + * Call frame identifier to evaluate on. + */ + callFrameId: CallFrameId; + } + interface GetScriptSourceParameterType { + /** + * Id of the script to get source for. + */ + scriptId: Runtime.ScriptId; + } + interface SetPauseOnExceptionsParameterType { + /** + * Pause on exceptions mode. + */ + state: string; + } + interface EvaluateOnCallFrameParameterType { + /** + * Call frame identifier to evaluate on. + */ + callFrameId: CallFrameId; + /** + * Expression to evaluate. + */ + expression: string; + /** + * String object group name to put result into (allows rapid releasing resulting object handles using releaseObjectGroup). + */ + objectGroup?: string | undefined; + /** + * Specifies whether command line API should be available to the evaluated expression, defaults to false. + */ + includeCommandLineAPI?: boolean | undefined; + /** + * In silent mode exceptions thrown during evaluation are not reported and do not pause execution. Overrides setPauseOnException state. + */ + silent?: boolean | undefined; + /** + * Whether the result is expected to be a JSON object that should be sent by value. + */ + returnByValue?: boolean | undefined; + /** + * Whether preview should be generated for the result. + * @experimental + */ + generatePreview?: boolean | undefined; + /** + * Whether to throw an exception if side effect cannot be ruled out during evaluation. + */ + throwOnSideEffect?: boolean | undefined; + } + interface SetVariableValueParameterType { + /** + * 0-based number of scope as was listed in scope chain. Only 'local', 'closure' and 'catch' scope types are allowed. Other scopes could be manipulated manually. + */ + scopeNumber: number; + /** + * Variable name. + */ + variableName: string; + /** + * New variable value. + */ + newValue: Runtime.CallArgument; + /** + * Id of callframe that holds variable. + */ + callFrameId: CallFrameId; + } + interface SetReturnValueParameterType { + /** + * New return value. + */ + newValue: Runtime.CallArgument; + } + interface SetAsyncCallStackDepthParameterType { + /** + * Maximum depth of async call stacks. Setting to 0 will effectively disable collecting async call stacks (default). + */ + maxDepth: number; + } + interface SetBlackboxPatternsParameterType { + /** + * Array of regexps that will be used to check script url for blackbox state. + */ + patterns: string[]; + } + interface SetBlackboxedRangesParameterType { + /** + * Id of the script. + */ + scriptId: Runtime.ScriptId; + positions: ScriptPosition[]; + } + interface EnableReturnType { + /** + * Unique identifier of the debugger. + * @experimental + */ + debuggerId: Runtime.UniqueDebuggerId; + } + interface SetBreakpointByUrlReturnType { + /** + * Id of the created breakpoint for further reference. + */ + breakpointId: BreakpointId; + /** + * List of the locations this breakpoint resolved into upon addition. + */ + locations: Location[]; + } + interface SetBreakpointReturnType { + /** + * Id of the created breakpoint for further reference. + */ + breakpointId: BreakpointId; + /** + * Location this breakpoint resolved into. + */ + actualLocation: Location; + } + interface GetPossibleBreakpointsReturnType { + /** + * List of the possible breakpoint locations. + */ + locations: BreakLocation[]; + } + interface GetStackTraceReturnType { + stackTrace: Runtime.StackTrace; + } + interface SearchInContentReturnType { + /** + * List of search matches. + */ + result: SearchMatch[]; + } + interface SetScriptSourceReturnType { + /** + * New stack trace in case editing has happened while VM was stopped. + */ + callFrames?: CallFrame[] | undefined; + /** + * Whether current call stack was modified after applying the changes. + */ + stackChanged?: boolean | undefined; + /** + * Async stack trace, if any. + */ + asyncStackTrace?: Runtime.StackTrace | undefined; + /** + * Async stack trace, if any. + * @experimental + */ + asyncStackTraceId?: Runtime.StackTraceId | undefined; + /** + * Exception details if any. + */ + exceptionDetails?: Runtime.ExceptionDetails | undefined; + } + interface RestartFrameReturnType { + /** + * New stack trace. + */ + callFrames: CallFrame[]; + /** + * Async stack trace, if any. + */ + asyncStackTrace?: Runtime.StackTrace | undefined; + /** + * Async stack trace, if any. + * @experimental + */ + asyncStackTraceId?: Runtime.StackTraceId | undefined; + } + interface GetScriptSourceReturnType { + /** + * Script source. + */ + scriptSource: string; + } + interface EvaluateOnCallFrameReturnType { + /** + * Object wrapper for the evaluation result. + */ + result: Runtime.RemoteObject; + /** + * Exception details. + */ + exceptionDetails?: Runtime.ExceptionDetails | undefined; + } + interface ScriptParsedEventDataType { + /** + * Identifier of the script parsed. + */ + scriptId: Runtime.ScriptId; + /** + * URL or name of the script parsed (if any). + */ + url: string; + /** + * Line offset of the script within the resource with given URL (for script tags). + */ + startLine: number; + /** + * Column offset of the script within the resource with given URL. + */ + startColumn: number; + /** + * Last line of the script. + */ + endLine: number; + /** + * Length of the last line of the script. + */ + endColumn: number; + /** + * Specifies script creation context. + */ + executionContextId: Runtime.ExecutionContextId; + /** + * Content hash of the script. + */ + hash: string; + /** + * Embedder-specific auxiliary data. + */ + executionContextAuxData?: {} | undefined; + /** + * True, if this script is generated as a result of the live edit operation. + * @experimental + */ + isLiveEdit?: boolean | undefined; + /** + * URL of source map associated with script (if any). + */ + sourceMapURL?: string | undefined; + /** + * True, if this script has sourceURL. + */ + hasSourceURL?: boolean | undefined; + /** + * True, if this script is ES6 module. + */ + isModule?: boolean | undefined; + /** + * This script length. + */ + length?: number | undefined; + /** + * JavaScript top stack frame of where the script parsed event was triggered if available. + * @experimental + */ + stackTrace?: Runtime.StackTrace | undefined; + } + interface ScriptFailedToParseEventDataType { + /** + * Identifier of the script parsed. + */ + scriptId: Runtime.ScriptId; + /** + * URL or name of the script parsed (if any). + */ + url: string; + /** + * Line offset of the script within the resource with given URL (for script tags). + */ + startLine: number; + /** + * Column offset of the script within the resource with given URL. + */ + startColumn: number; + /** + * Last line of the script. + */ + endLine: number; + /** + * Length of the last line of the script. + */ + endColumn: number; + /** + * Specifies script creation context. + */ + executionContextId: Runtime.ExecutionContextId; + /** + * Content hash of the script. + */ + hash: string; + /** + * Embedder-specific auxiliary data. + */ + executionContextAuxData?: {} | undefined; + /** + * URL of source map associated with script (if any). + */ + sourceMapURL?: string | undefined; + /** + * True, if this script has sourceURL. + */ + hasSourceURL?: boolean | undefined; + /** + * True, if this script is ES6 module. + */ + isModule?: boolean | undefined; + /** + * This script length. + */ + length?: number | undefined; + /** + * JavaScript top stack frame of where the script parsed event was triggered if available. + * @experimental + */ + stackTrace?: Runtime.StackTrace | undefined; + } + interface BreakpointResolvedEventDataType { + /** + * Breakpoint unique identifier. + */ + breakpointId: BreakpointId; + /** + * Actual breakpoint location. + */ + location: Location; + } + interface PausedEventDataType { + /** + * Call stack the virtual machine stopped on. + */ + callFrames: CallFrame[]; + /** + * Pause reason. + */ + reason: string; + /** + * Object containing break-specific auxiliary properties. + */ + data?: {} | undefined; + /** + * Hit breakpoints IDs + */ + hitBreakpoints?: string[] | undefined; + /** + * Async stack trace, if any. + */ + asyncStackTrace?: Runtime.StackTrace | undefined; + /** + * Async stack trace, if any. + * @experimental + */ + asyncStackTraceId?: Runtime.StackTraceId | undefined; + /** + * Just scheduled async call will have this stack trace as parent stack during async execution. This field is available only after Debugger.stepInto call with breakOnAsynCall flag. + * @experimental + */ + asyncCallStackTraceId?: Runtime.StackTraceId | undefined; + } + } + namespace Console { + /** + * Console message. + */ + interface ConsoleMessage { + /** + * Message source. + */ + source: string; + /** + * Message severity. + */ + level: string; + /** + * Message text. + */ + text: string; + /** + * URL of the message origin. + */ + url?: string | undefined; + /** + * Line number in the resource that generated this message (1-based). + */ + line?: number | undefined; + /** + * Column number in the resource that generated this message (1-based). + */ + column?: number | undefined; + } + interface MessageAddedEventDataType { + /** + * Console message that has been added. + */ + message: ConsoleMessage; + } + } + namespace Profiler { + /** + * Profile node. Holds callsite information, execution statistics and child nodes. + */ + interface ProfileNode { + /** + * Unique id of the node. + */ + id: number; + /** + * Function location. + */ + callFrame: Runtime.CallFrame; + /** + * Number of samples where this node was on top of the call stack. + */ + hitCount?: number | undefined; + /** + * Child node ids. + */ + children?: number[] | undefined; + /** + * The reason of being not optimized. The function may be deoptimized or marked as don't optimize. + */ + deoptReason?: string | undefined; + /** + * An array of source position ticks. + */ + positionTicks?: PositionTickInfo[] | undefined; + } + /** + * Profile. + */ + interface Profile { + /** + * The list of profile nodes. First item is the root node. + */ + nodes: ProfileNode[]; + /** + * Profiling start timestamp in microseconds. + */ + startTime: number; + /** + * Profiling end timestamp in microseconds. + */ + endTime: number; + /** + * Ids of samples top nodes. + */ + samples?: number[] | undefined; + /** + * Time intervals between adjacent samples in microseconds. The first delta is relative to the profile startTime. + */ + timeDeltas?: number[] | undefined; + } + /** + * Specifies a number of samples attributed to a certain source position. + */ + interface PositionTickInfo { + /** + * Source line number (1-based). + */ + line: number; + /** + * Number of samples attributed to the source line. + */ + ticks: number; + } + /** + * Coverage data for a source range. + */ + interface CoverageRange { + /** + * JavaScript script source offset for the range start. + */ + startOffset: number; + /** + * JavaScript script source offset for the range end. + */ + endOffset: number; + /** + * Collected execution count of the source range. + */ + count: number; + } + /** + * Coverage data for a JavaScript function. + */ + interface FunctionCoverage { + /** + * JavaScript function name. + */ + functionName: string; + /** + * Source ranges inside the function with coverage data. + */ + ranges: CoverageRange[]; + /** + * Whether coverage data for this function has block granularity. + */ + isBlockCoverage: boolean; + } + /** + * Coverage data for a JavaScript script. + */ + interface ScriptCoverage { + /** + * JavaScript script id. + */ + scriptId: Runtime.ScriptId; + /** + * JavaScript script name or url. + */ + url: string; + /** + * Functions contained in the script that has coverage data. + */ + functions: FunctionCoverage[]; + } + /** + * Describes a type collected during runtime. + * @experimental + */ + interface TypeObject { + /** + * Name of a type collected with type profiling. + */ + name: string; + } + /** + * Source offset and types for a parameter or return value. + * @experimental + */ + interface TypeProfileEntry { + /** + * Source offset of the parameter or end of function for return values. + */ + offset: number; + /** + * The types for this parameter or return value. + */ + types: TypeObject[]; + } + /** + * Type profile data collected during runtime for a JavaScript script. + * @experimental + */ + interface ScriptTypeProfile { + /** + * JavaScript script id. + */ + scriptId: Runtime.ScriptId; + /** + * JavaScript script name or url. + */ + url: string; + /** + * Type profile entries for parameters and return values of the functions in the script. + */ + entries: TypeProfileEntry[]; + } + interface SetSamplingIntervalParameterType { + /** + * New sampling interval in microseconds. + */ + interval: number; + } + interface StartPreciseCoverageParameterType { + /** + * Collect accurate call counts beyond simple 'covered' or 'not covered'. + */ + callCount?: boolean | undefined; + /** + * Collect block-based coverage. + */ + detailed?: boolean | undefined; + } + interface StopReturnType { + /** + * Recorded profile. + */ + profile: Profile; + } + interface TakePreciseCoverageReturnType { + /** + * Coverage data for the current isolate. + */ + result: ScriptCoverage[]; + } + interface GetBestEffortCoverageReturnType { + /** + * Coverage data for the current isolate. + */ + result: ScriptCoverage[]; + } + interface TakeTypeProfileReturnType { + /** + * Type profile for all scripts since startTypeProfile() was turned on. + */ + result: ScriptTypeProfile[]; + } + interface ConsoleProfileStartedEventDataType { + id: string; + /** + * Location of console.profile(). + */ + location: Debugger.Location; + /** + * Profile title passed as an argument to console.profile(). + */ + title?: string | undefined; + } + interface ConsoleProfileFinishedEventDataType { + id: string; + /** + * Location of console.profileEnd(). + */ + location: Debugger.Location; + profile: Profile; + /** + * Profile title passed as an argument to console.profile(). + */ + title?: string | undefined; + } + } + namespace HeapProfiler { + /** + * Heap snapshot object id. + */ + type HeapSnapshotObjectId = string; + /** + * Sampling Heap Profile node. Holds callsite information, allocation statistics and child nodes. + */ + interface SamplingHeapProfileNode { + /** + * Function location. + */ + callFrame: Runtime.CallFrame; + /** + * Allocations size in bytes for the node excluding children. + */ + selfSize: number; + /** + * Child nodes. + */ + children: SamplingHeapProfileNode[]; + } + /** + * Profile. + */ + interface SamplingHeapProfile { + head: SamplingHeapProfileNode; + } + interface StartTrackingHeapObjectsParameterType { + trackAllocations?: boolean | undefined; + } + interface StopTrackingHeapObjectsParameterType { + /** + * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken when the tracking is stopped. + */ + reportProgress?: boolean | undefined; + } + interface TakeHeapSnapshotParameterType { + /** + * If true 'reportHeapSnapshotProgress' events will be generated while snapshot is being taken. + */ + reportProgress?: boolean | undefined; + } + interface GetObjectByHeapObjectIdParameterType { + objectId: HeapSnapshotObjectId; + /** + * Symbolic group name that can be used to release multiple objects. + */ + objectGroup?: string | undefined; + } + interface AddInspectedHeapObjectParameterType { + /** + * Heap snapshot object id to be accessible by means of $x command line API. + */ + heapObjectId: HeapSnapshotObjectId; + } + interface GetHeapObjectIdParameterType { + /** + * Identifier of the object to get heap object id for. + */ + objectId: Runtime.RemoteObjectId; + } + interface StartSamplingParameterType { + /** + * Average sample interval in bytes. Poisson distribution is used for the intervals. The default value is 32768 bytes. + */ + samplingInterval?: number | undefined; + } + interface GetObjectByHeapObjectIdReturnType { + /** + * Evaluation result. + */ + result: Runtime.RemoteObject; + } + interface GetHeapObjectIdReturnType { + /** + * Id of the heap snapshot object corresponding to the passed remote object id. + */ + heapSnapshotObjectId: HeapSnapshotObjectId; + } + interface StopSamplingReturnType { + /** + * Recorded sampling heap profile. + */ + profile: SamplingHeapProfile; + } + interface GetSamplingProfileReturnType { + /** + * Return the sampling profile being collected. + */ + profile: SamplingHeapProfile; + } + interface AddHeapSnapshotChunkEventDataType { + chunk: string; + } + interface ReportHeapSnapshotProgressEventDataType { + done: number; + total: number; + finished?: boolean | undefined; + } + interface LastSeenObjectIdEventDataType { + lastSeenObjectId: number; + timestamp: number; + } + interface HeapStatsUpdateEventDataType { + /** + * An array of triplets. Each triplet describes a fragment. The first integer is the fragment index, the second integer is a total count of objects for the fragment, the third integer is a total size of the objects for the fragment. + */ + statsUpdate: number[]; + } + } + namespace NodeTracing { + interface TraceConfig { + /** + * Controls how the trace buffer stores data. + */ + recordMode?: string; + /** + * Included category filters. + */ + includedCategories: string[]; + } + interface StartParameterType { + traceConfig: TraceConfig; + } + interface GetCategoriesReturnType { + /** + * A list of supported tracing categories. + */ + categories: string[]; + } + interface DataCollectedEventDataType { + value: Array<{}>; + } + } + namespace NodeWorker { + type WorkerID = string; + /** + * Unique identifier of attached debugging session. + */ + type SessionID = string; + interface WorkerInfo { + workerId: WorkerID; + type: string; + title: string; + url: string; + } + interface SendMessageToWorkerParameterType { + message: string; + /** + * Identifier of the session. + */ + sessionId: SessionID; + } + interface EnableParameterType { + /** + * Whether to new workers should be paused until the frontend sends `Runtime.runIfWaitingForDebugger` + * message to run them. + */ + waitForDebuggerOnStart: boolean; + } + interface DetachParameterType { + sessionId: SessionID; + } + interface AttachedToWorkerEventDataType { + /** + * Identifier assigned to the session used to send/receive messages. + */ + sessionId: SessionID; + workerInfo: WorkerInfo; + waitingForDebugger: boolean; + } + interface DetachedFromWorkerEventDataType { + /** + * Detached session identifier. + */ + sessionId: SessionID; + } + interface ReceivedMessageFromWorkerEventDataType { + /** + * Identifier of a session which sends a message. + */ + sessionId: SessionID; + message: string; + } + } + namespace NodeRuntime { + interface NotifyWhenWaitingForDisconnectParameterType { + enabled: boolean; + } + } + /** + * The `inspector.Session` is used for dispatching messages to the V8 inspector + * back-end and receiving message responses and notifications. + */ + class Session extends EventEmitter { + /** + * Create a new instance of the inspector.Session class. + * The inspector session needs to be connected through session.connect() before the messages can be dispatched to the inspector backend. + */ + constructor(); + /** + * Connects a session to the inspector back-end. + * @since v8.0.0 + */ + connect(): void; + /** + * Connects a session to the main thread inspector back-end. An exception will + * be thrown if this API was not called on a Worker thread. + * @since v12.11.0 + */ + connectToMainThread(): void; + /** + * Immediately close the session. All pending message callbacks will be called + * with an error. `session.connect()` will need to be called to be able to send + * messages again. Reconnected session will lose all inspector state, such as + * enabled agents or configured breakpoints. + * @since v8.0.0 + */ + disconnect(): void; + /** + * Posts a message to the inspector back-end. `callback` will be notified when + * a response is received. `callback` is a function that accepts two optional + * arguments: error and message-specific result. + * + * ```js + * session.post('Runtime.evaluate', { expression: '2 + 2' }, + * (error, { result }) => console.log(result)); + * // Output: { type: 'number', value: 4, description: '4' } + * ``` + * + * The latest version of the V8 inspector protocol is published on the [Chrome DevTools Protocol Viewer](https://chromedevtools.github.io/devtools-protocol/v8/). + * + * Node.js inspector supports all the Chrome DevTools Protocol domains declared + * by V8\. Chrome DevTools Protocol domain provides an interface for interacting + * with one of the runtime agents used to inspect the application state and listen + * to the run-time events. + * + * ## Example usage + * + * Apart from the debugger, various V8 Profilers are available through the DevTools + * protocol. + * @since v8.0.0 + */ + post(method: string, params?: {}, callback?: (err: Error | null, params?: {}) => void): void; + post(method: string, callback?: (err: Error | null, params?: {}) => void): void; + /** + * Returns supported domains. + */ + post(method: 'Schema.getDomains', callback?: (err: Error | null, params: Schema.GetDomainsReturnType) => void): void; + /** + * Evaluates expression on global object. + */ + post(method: 'Runtime.evaluate', params?: Runtime.EvaluateParameterType, callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void; + post(method: 'Runtime.evaluate', callback?: (err: Error | null, params: Runtime.EvaluateReturnType) => void): void; + /** + * Add handler to promise with given promise object id. + */ + post(method: 'Runtime.awaitPromise', params?: Runtime.AwaitPromiseParameterType, callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void; + post(method: 'Runtime.awaitPromise', callback?: (err: Error | null, params: Runtime.AwaitPromiseReturnType) => void): void; + /** + * Calls function with given declaration on the given object. Object group of the result is inherited from the target object. + */ + post(method: 'Runtime.callFunctionOn', params?: Runtime.CallFunctionOnParameterType, callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void; + post(method: 'Runtime.callFunctionOn', callback?: (err: Error | null, params: Runtime.CallFunctionOnReturnType) => void): void; + /** + * Returns properties of a given object. Object group of the result is inherited from the target object. + */ + post(method: 'Runtime.getProperties', params?: Runtime.GetPropertiesParameterType, callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void; + post(method: 'Runtime.getProperties', callback?: (err: Error | null, params: Runtime.GetPropertiesReturnType) => void): void; + /** + * Releases remote object with given id. + */ + post(method: 'Runtime.releaseObject', params?: Runtime.ReleaseObjectParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Runtime.releaseObject', callback?: (err: Error | null) => void): void; + /** + * Releases all remote objects that belong to a given group. + */ + post(method: 'Runtime.releaseObjectGroup', params?: Runtime.ReleaseObjectGroupParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Runtime.releaseObjectGroup', callback?: (err: Error | null) => void): void; + /** + * Tells inspected instance to run if it was waiting for debugger to attach. + */ + post(method: 'Runtime.runIfWaitingForDebugger', callback?: (err: Error | null) => void): void; + /** + * Enables reporting of execution contexts creation by means of executionContextCreated event. When the reporting gets enabled the event will be sent immediately for each existing execution context. + */ + post(method: 'Runtime.enable', callback?: (err: Error | null) => void): void; + /** + * Disables reporting of execution contexts creation. + */ + post(method: 'Runtime.disable', callback?: (err: Error | null) => void): void; + /** + * Discards collected exceptions and console API calls. + */ + post(method: 'Runtime.discardConsoleEntries', callback?: (err: Error | null) => void): void; + /** + * @experimental + */ + post(method: 'Runtime.setCustomObjectFormatterEnabled', params?: Runtime.SetCustomObjectFormatterEnabledParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Runtime.setCustomObjectFormatterEnabled', callback?: (err: Error | null) => void): void; + /** + * Compiles expression. + */ + post(method: 'Runtime.compileScript', params?: Runtime.CompileScriptParameterType, callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void; + post(method: 'Runtime.compileScript', callback?: (err: Error | null, params: Runtime.CompileScriptReturnType) => void): void; + /** + * Runs script with given id in a given context. + */ + post(method: 'Runtime.runScript', params?: Runtime.RunScriptParameterType, callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void; + post(method: 'Runtime.runScript', callback?: (err: Error | null, params: Runtime.RunScriptReturnType) => void): void; + post(method: 'Runtime.queryObjects', params?: Runtime.QueryObjectsParameterType, callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void; + post(method: 'Runtime.queryObjects', callback?: (err: Error | null, params: Runtime.QueryObjectsReturnType) => void): void; + /** + * Returns all let, const and class variables from global scope. + */ + post( + method: 'Runtime.globalLexicalScopeNames', + params?: Runtime.GlobalLexicalScopeNamesParameterType, + callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void + ): void; + post(method: 'Runtime.globalLexicalScopeNames', callback?: (err: Error | null, params: Runtime.GlobalLexicalScopeNamesReturnType) => void): void; + /** + * Enables debugger for the given page. Clients should not assume that the debugging has been enabled until the result for this command is received. + */ + post(method: 'Debugger.enable', callback?: (err: Error | null, params: Debugger.EnableReturnType) => void): void; + /** + * Disables debugger for given page. + */ + post(method: 'Debugger.disable', callback?: (err: Error | null) => void): void; + /** + * Activates / deactivates all breakpoints on the page. + */ + post(method: 'Debugger.setBreakpointsActive', params?: Debugger.SetBreakpointsActiveParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.setBreakpointsActive', callback?: (err: Error | null) => void): void; + /** + * Makes page not interrupt on any pauses (breakpoint, exception, dom exception etc). + */ + post(method: 'Debugger.setSkipAllPauses', params?: Debugger.SetSkipAllPausesParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.setSkipAllPauses', callback?: (err: Error | null) => void): void; + /** + * Sets JavaScript breakpoint at given location specified either by URL or URL regex. Once this command is issued, all existing parsed scripts will have breakpoints resolved and returned in locations property. Further matching script parsing will result in subsequent breakpointResolved events issued. This logical breakpoint will survive page reloads. + */ + post(method: 'Debugger.setBreakpointByUrl', params?: Debugger.SetBreakpointByUrlParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void; + post(method: 'Debugger.setBreakpointByUrl', callback?: (err: Error | null, params: Debugger.SetBreakpointByUrlReturnType) => void): void; + /** + * Sets JavaScript breakpoint at a given location. + */ + post(method: 'Debugger.setBreakpoint', params?: Debugger.SetBreakpointParameterType, callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void; + post(method: 'Debugger.setBreakpoint', callback?: (err: Error | null, params: Debugger.SetBreakpointReturnType) => void): void; + /** + * Removes JavaScript breakpoint. + */ + post(method: 'Debugger.removeBreakpoint', params?: Debugger.RemoveBreakpointParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.removeBreakpoint', callback?: (err: Error | null) => void): void; + /** + * Returns possible locations for breakpoint. scriptId in start and end range locations should be the same. + */ + post( + method: 'Debugger.getPossibleBreakpoints', + params?: Debugger.GetPossibleBreakpointsParameterType, + callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void + ): void; + post(method: 'Debugger.getPossibleBreakpoints', callback?: (err: Error | null, params: Debugger.GetPossibleBreakpointsReturnType) => void): void; + /** + * Continues execution until specific location is reached. + */ + post(method: 'Debugger.continueToLocation', params?: Debugger.ContinueToLocationParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.continueToLocation', callback?: (err: Error | null) => void): void; + /** + * @experimental + */ + post(method: 'Debugger.pauseOnAsyncCall', params?: Debugger.PauseOnAsyncCallParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.pauseOnAsyncCall', callback?: (err: Error | null) => void): void; + /** + * Steps over the statement. + */ + post(method: 'Debugger.stepOver', callback?: (err: Error | null) => void): void; + /** + * Steps into the function call. + */ + post(method: 'Debugger.stepInto', params?: Debugger.StepIntoParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.stepInto', callback?: (err: Error | null) => void): void; + /** + * Steps out of the function call. + */ + post(method: 'Debugger.stepOut', callback?: (err: Error | null) => void): void; + /** + * Stops on the next JavaScript statement. + */ + post(method: 'Debugger.pause', callback?: (err: Error | null) => void): void; + /** + * This method is deprecated - use Debugger.stepInto with breakOnAsyncCall and Debugger.pauseOnAsyncTask instead. Steps into next scheduled async task if any is scheduled before next pause. Returns success when async task is actually scheduled, returns error if no task were scheduled or another scheduleStepIntoAsync was called. + * @experimental + */ + post(method: 'Debugger.scheduleStepIntoAsync', callback?: (err: Error | null) => void): void; + /** + * Resumes JavaScript execution. + */ + post(method: 'Debugger.resume', callback?: (err: Error | null) => void): void; + /** + * Returns stack trace with given stackTraceId. + * @experimental + */ + post(method: 'Debugger.getStackTrace', params?: Debugger.GetStackTraceParameterType, callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void; + post(method: 'Debugger.getStackTrace', callback?: (err: Error | null, params: Debugger.GetStackTraceReturnType) => void): void; + /** + * Searches for given string in script content. + */ + post(method: 'Debugger.searchInContent', params?: Debugger.SearchInContentParameterType, callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void; + post(method: 'Debugger.searchInContent', callback?: (err: Error | null, params: Debugger.SearchInContentReturnType) => void): void; + /** + * Edits JavaScript source live. + */ + post(method: 'Debugger.setScriptSource', params?: Debugger.SetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void; + post(method: 'Debugger.setScriptSource', callback?: (err: Error | null, params: Debugger.SetScriptSourceReturnType) => void): void; + /** + * Restarts particular call frame from the beginning. + */ + post(method: 'Debugger.restartFrame', params?: Debugger.RestartFrameParameterType, callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void; + post(method: 'Debugger.restartFrame', callback?: (err: Error | null, params: Debugger.RestartFrameReturnType) => void): void; + /** + * Returns source for the script with given id. + */ + post(method: 'Debugger.getScriptSource', params?: Debugger.GetScriptSourceParameterType, callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void; + post(method: 'Debugger.getScriptSource', callback?: (err: Error | null, params: Debugger.GetScriptSourceReturnType) => void): void; + /** + * Defines pause on exceptions state. Can be set to stop on all exceptions, uncaught exceptions or no exceptions. Initial pause on exceptions state is none. + */ + post(method: 'Debugger.setPauseOnExceptions', params?: Debugger.SetPauseOnExceptionsParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.setPauseOnExceptions', callback?: (err: Error | null) => void): void; + /** + * Evaluates expression on a given call frame. + */ + post(method: 'Debugger.evaluateOnCallFrame', params?: Debugger.EvaluateOnCallFrameParameterType, callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void; + post(method: 'Debugger.evaluateOnCallFrame', callback?: (err: Error | null, params: Debugger.EvaluateOnCallFrameReturnType) => void): void; + /** + * Changes value of variable in a callframe. Object-based scopes are not supported and must be mutated manually. + */ + post(method: 'Debugger.setVariableValue', params?: Debugger.SetVariableValueParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.setVariableValue', callback?: (err: Error | null) => void): void; + /** + * Changes return value in top frame. Available only at return break position. + * @experimental + */ + post(method: 'Debugger.setReturnValue', params?: Debugger.SetReturnValueParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.setReturnValue', callback?: (err: Error | null) => void): void; + /** + * Enables or disables async call stacks tracking. + */ + post(method: 'Debugger.setAsyncCallStackDepth', params?: Debugger.SetAsyncCallStackDepthParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.setAsyncCallStackDepth', callback?: (err: Error | null) => void): void; + /** + * Replace previous blackbox patterns with passed ones. Forces backend to skip stepping/pausing in scripts with url matching one of the patterns. VM will try to leave blackboxed script by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. + * @experimental + */ + post(method: 'Debugger.setBlackboxPatterns', params?: Debugger.SetBlackboxPatternsParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.setBlackboxPatterns', callback?: (err: Error | null) => void): void; + /** + * Makes backend skip steps in the script in blackboxed ranges. VM will try leave blacklisted scripts by performing 'step in' several times, finally resorting to 'step out' if unsuccessful. Positions array contains positions where blackbox state is changed. First interval isn't blackboxed. Array should be sorted. + * @experimental + */ + post(method: 'Debugger.setBlackboxedRanges', params?: Debugger.SetBlackboxedRangesParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Debugger.setBlackboxedRanges', callback?: (err: Error | null) => void): void; + /** + * Enables console domain, sends the messages collected so far to the client by means of the messageAdded notification. + */ + post(method: 'Console.enable', callback?: (err: Error | null) => void): void; + /** + * Disables console domain, prevents further console messages from being reported to the client. + */ + post(method: 'Console.disable', callback?: (err: Error | null) => void): void; + /** + * Does nothing. + */ + post(method: 'Console.clearMessages', callback?: (err: Error | null) => void): void; + post(method: 'Profiler.enable', callback?: (err: Error | null) => void): void; + post(method: 'Profiler.disable', callback?: (err: Error | null) => void): void; + /** + * Changes CPU profiler sampling interval. Must be called before CPU profiles recording started. + */ + post(method: 'Profiler.setSamplingInterval', params?: Profiler.SetSamplingIntervalParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Profiler.setSamplingInterval', callback?: (err: Error | null) => void): void; + post(method: 'Profiler.start', callback?: (err: Error | null) => void): void; + post(method: 'Profiler.stop', callback?: (err: Error | null, params: Profiler.StopReturnType) => void): void; + /** + * Enable precise code coverage. Coverage data for JavaScript executed before enabling precise code coverage may be incomplete. Enabling prevents running optimized code and resets execution counters. + */ + post(method: 'Profiler.startPreciseCoverage', params?: Profiler.StartPreciseCoverageParameterType, callback?: (err: Error | null) => void): void; + post(method: 'Profiler.startPreciseCoverage', callback?: (err: Error | null) => void): void; + /** + * Disable precise code coverage. Disabling releases unnecessary execution count records and allows executing optimized code. + */ + post(method: 'Profiler.stopPreciseCoverage', callback?: (err: Error | null) => void): void; + /** + * Collect coverage data for the current isolate, and resets execution counters. Precise code coverage needs to have started. + */ + post(method: 'Profiler.takePreciseCoverage', callback?: (err: Error | null, params: Profiler.TakePreciseCoverageReturnType) => void): void; + /** + * Collect coverage data for the current isolate. The coverage data may be incomplete due to garbage collection. + */ + post(method: 'Profiler.getBestEffortCoverage', callback?: (err: Error | null, params: Profiler.GetBestEffortCoverageReturnType) => void): void; + /** + * Enable type profile. + * @experimental + */ + post(method: 'Profiler.startTypeProfile', callback?: (err: Error | null) => void): void; + /** + * Disable type profile. Disabling releases type profile data collected so far. + * @experimental + */ + post(method: 'Profiler.stopTypeProfile', callback?: (err: Error | null) => void): void; + /** + * Collect type profile. + * @experimental + */ + post(method: 'Profiler.takeTypeProfile', callback?: (err: Error | null, params: Profiler.TakeTypeProfileReturnType) => void): void; + post(method: 'HeapProfiler.enable', callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.disable', callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.startTrackingHeapObjects', params?: HeapProfiler.StartTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.startTrackingHeapObjects', callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.stopTrackingHeapObjects', params?: HeapProfiler.StopTrackingHeapObjectsParameterType, callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.stopTrackingHeapObjects', callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.takeHeapSnapshot', params?: HeapProfiler.TakeHeapSnapshotParameterType, callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.takeHeapSnapshot', callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.collectGarbage', callback?: (err: Error | null) => void): void; + post( + method: 'HeapProfiler.getObjectByHeapObjectId', + params?: HeapProfiler.GetObjectByHeapObjectIdParameterType, + callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void + ): void; + post(method: 'HeapProfiler.getObjectByHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetObjectByHeapObjectIdReturnType) => void): void; + /** + * Enables console to refer to the node with given id via $x (see Command Line API for more details $x functions). + */ + post(method: 'HeapProfiler.addInspectedHeapObject', params?: HeapProfiler.AddInspectedHeapObjectParameterType, callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.addInspectedHeapObject', callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.getHeapObjectId', params?: HeapProfiler.GetHeapObjectIdParameterType, callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void; + post(method: 'HeapProfiler.getHeapObjectId', callback?: (err: Error | null, params: HeapProfiler.GetHeapObjectIdReturnType) => void): void; + post(method: 'HeapProfiler.startSampling', params?: HeapProfiler.StartSamplingParameterType, callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.startSampling', callback?: (err: Error | null) => void): void; + post(method: 'HeapProfiler.stopSampling', callback?: (err: Error | null, params: HeapProfiler.StopSamplingReturnType) => void): void; + post(method: 'HeapProfiler.getSamplingProfile', callback?: (err: Error | null, params: HeapProfiler.GetSamplingProfileReturnType) => void): void; + /** + * Gets supported tracing categories. + */ + post(method: 'NodeTracing.getCategories', callback?: (err: Error | null, params: NodeTracing.GetCategoriesReturnType) => void): void; + /** + * Start trace events collection. + */ + post(method: 'NodeTracing.start', params?: NodeTracing.StartParameterType, callback?: (err: Error | null) => void): void; + post(method: 'NodeTracing.start', callback?: (err: Error | null) => void): void; + /** + * Stop trace events collection. Remaining collected events will be sent as a sequence of + * dataCollected events followed by tracingComplete event. + */ + post(method: 'NodeTracing.stop', callback?: (err: Error | null) => void): void; + /** + * Sends protocol message over session with given id. + */ + post(method: 'NodeWorker.sendMessageToWorker', params?: NodeWorker.SendMessageToWorkerParameterType, callback?: (err: Error | null) => void): void; + post(method: 'NodeWorker.sendMessageToWorker', callback?: (err: Error | null) => void): void; + /** + * Instructs the inspector to attach to running workers. Will also attach to new workers + * as they start + */ + post(method: 'NodeWorker.enable', params?: NodeWorker.EnableParameterType, callback?: (err: Error | null) => void): void; + post(method: 'NodeWorker.enable', callback?: (err: Error | null) => void): void; + /** + * Detaches from all running workers and disables attaching to new workers as they are started. + */ + post(method: 'NodeWorker.disable', callback?: (err: Error | null) => void): void; + /** + * Detached from the worker with given sessionId. + */ + post(method: 'NodeWorker.detach', params?: NodeWorker.DetachParameterType, callback?: (err: Error | null) => void): void; + post(method: 'NodeWorker.detach', callback?: (err: Error | null) => void): void; + /** + * Enable the `NodeRuntime.waitingForDisconnect`. + */ + post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', params?: NodeRuntime.NotifyWhenWaitingForDisconnectParameterType, callback?: (err: Error | null) => void): void; + post(method: 'NodeRuntime.notifyWhenWaitingForDisconnect', callback?: (err: Error | null) => void): void; + // Events + addListener(event: string, listener: (...args: any[]) => void): this; + /** + * Emitted when any notification from the V8 Inspector is received. + */ + addListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this; + /** + * Issued when new execution context is created. + */ + addListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; + /** + * Issued when execution context is destroyed. + */ + addListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; + /** + * Issued when all executionContexts were cleared in browser + */ + addListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; + /** + * Issued when exception was thrown and unhandled. + */ + addListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; + /** + * Issued when unhandled exception was revoked. + */ + addListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; + /** + * Issued when console API was called. + */ + addListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; + /** + * Issued when object should be inspected (for example, as a result of inspect() command line API call). + */ + addListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. + */ + addListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine fails to parse the script. + */ + addListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; + /** + * Fired when breakpoint is resolved to an actual script and location. + */ + addListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + */ + addListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine resumed execution. + */ + addListener(event: 'Debugger.resumed', listener: () => void): this; + /** + * Issued when new console message is added. + */ + addListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; + /** + * Sent when new profile recording is started using console.profile() call. + */ + addListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; + addListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; + addListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; + addListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; + addListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + */ + addListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend may send update for one or more fragments + */ + addListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; + /** + * Contains an bucket of collected trace events. + */ + addListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; + /** + * Signals that tracing is stopped and there is no trace buffers pending flush, all data were + * delivered via dataCollected events. + */ + addListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; + /** + * Issued when attached to a worker. + */ + addListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; + /** + * Issued when detached from the worker. + */ + addListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Notifies about a new protocol message received from the session + * (session ID is provided in attachedToWorker notification). + */ + addListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * This event is fired instead of `Runtime.executionContextDestroyed` when + * enabled. + * It is fired when the Node process finished all code execution and is + * waiting for all frontends to disconnect. + */ + addListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: 'inspectorNotification', message: InspectorNotification<{}>): boolean; + emit(event: 'Runtime.executionContextCreated', message: InspectorNotification): boolean; + emit(event: 'Runtime.executionContextDestroyed', message: InspectorNotification): boolean; + emit(event: 'Runtime.executionContextsCleared'): boolean; + emit(event: 'Runtime.exceptionThrown', message: InspectorNotification): boolean; + emit(event: 'Runtime.exceptionRevoked', message: InspectorNotification): boolean; + emit(event: 'Runtime.consoleAPICalled', message: InspectorNotification): boolean; + emit(event: 'Runtime.inspectRequested', message: InspectorNotification): boolean; + emit(event: 'Debugger.scriptParsed', message: InspectorNotification): boolean; + emit(event: 'Debugger.scriptFailedToParse', message: InspectorNotification): boolean; + emit(event: 'Debugger.breakpointResolved', message: InspectorNotification): boolean; + emit(event: 'Debugger.paused', message: InspectorNotification): boolean; + emit(event: 'Debugger.resumed'): boolean; + emit(event: 'Console.messageAdded', message: InspectorNotification): boolean; + emit(event: 'Profiler.consoleProfileStarted', message: InspectorNotification): boolean; + emit(event: 'Profiler.consoleProfileFinished', message: InspectorNotification): boolean; + emit(event: 'HeapProfiler.addHeapSnapshotChunk', message: InspectorNotification): boolean; + emit(event: 'HeapProfiler.resetProfiles'): boolean; + emit(event: 'HeapProfiler.reportHeapSnapshotProgress', message: InspectorNotification): boolean; + emit(event: 'HeapProfiler.lastSeenObjectId', message: InspectorNotification): boolean; + emit(event: 'HeapProfiler.heapStatsUpdate', message: InspectorNotification): boolean; + emit(event: 'NodeTracing.dataCollected', message: InspectorNotification): boolean; + emit(event: 'NodeTracing.tracingComplete'): boolean; + emit(event: 'NodeWorker.attachedToWorker', message: InspectorNotification): boolean; + emit(event: 'NodeWorker.detachedFromWorker', message: InspectorNotification): boolean; + emit(event: 'NodeWorker.receivedMessageFromWorker', message: InspectorNotification): boolean; + emit(event: 'NodeRuntime.waitingForDisconnect'): boolean; + on(event: string, listener: (...args: any[]) => void): this; + /** + * Emitted when any notification from the V8 Inspector is received. + */ + on(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this; + /** + * Issued when new execution context is created. + */ + on(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; + /** + * Issued when execution context is destroyed. + */ + on(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; + /** + * Issued when all executionContexts were cleared in browser + */ + on(event: 'Runtime.executionContextsCleared', listener: () => void): this; + /** + * Issued when exception was thrown and unhandled. + */ + on(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; + /** + * Issued when unhandled exception was revoked. + */ + on(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; + /** + * Issued when console API was called. + */ + on(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; + /** + * Issued when object should be inspected (for example, as a result of inspect() command line API call). + */ + on(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. + */ + on(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine fails to parse the script. + */ + on(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; + /** + * Fired when breakpoint is resolved to an actual script and location. + */ + on(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + */ + on(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine resumed execution. + */ + on(event: 'Debugger.resumed', listener: () => void): this; + /** + * Issued when new console message is added. + */ + on(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; + /** + * Sent when new profile recording is started using console.profile() call. + */ + on(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; + on(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; + on(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; + on(event: 'HeapProfiler.resetProfiles', listener: () => void): this; + on(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + */ + on(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend may send update for one or more fragments + */ + on(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; + /** + * Contains an bucket of collected trace events. + */ + on(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; + /** + * Signals that tracing is stopped and there is no trace buffers pending flush, all data were + * delivered via dataCollected events. + */ + on(event: 'NodeTracing.tracingComplete', listener: () => void): this; + /** + * Issued when attached to a worker. + */ + on(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; + /** + * Issued when detached from the worker. + */ + on(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Notifies about a new protocol message received from the session + * (session ID is provided in attachedToWorker notification). + */ + on(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * This event is fired instead of `Runtime.executionContextDestroyed` when + * enabled. + * It is fired when the Node process finished all code execution and is + * waiting for all frontends to disconnect. + */ + on(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; + once(event: string, listener: (...args: any[]) => void): this; + /** + * Emitted when any notification from the V8 Inspector is received. + */ + once(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this; + /** + * Issued when new execution context is created. + */ + once(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; + /** + * Issued when execution context is destroyed. + */ + once(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; + /** + * Issued when all executionContexts were cleared in browser + */ + once(event: 'Runtime.executionContextsCleared', listener: () => void): this; + /** + * Issued when exception was thrown and unhandled. + */ + once(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; + /** + * Issued when unhandled exception was revoked. + */ + once(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; + /** + * Issued when console API was called. + */ + once(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; + /** + * Issued when object should be inspected (for example, as a result of inspect() command line API call). + */ + once(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. + */ + once(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine fails to parse the script. + */ + once(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; + /** + * Fired when breakpoint is resolved to an actual script and location. + */ + once(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + */ + once(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine resumed execution. + */ + once(event: 'Debugger.resumed', listener: () => void): this; + /** + * Issued when new console message is added. + */ + once(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; + /** + * Sent when new profile recording is started using console.profile() call. + */ + once(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; + once(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; + once(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; + once(event: 'HeapProfiler.resetProfiles', listener: () => void): this; + once(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + */ + once(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend may send update for one or more fragments + */ + once(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; + /** + * Contains an bucket of collected trace events. + */ + once(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; + /** + * Signals that tracing is stopped and there is no trace buffers pending flush, all data were + * delivered via dataCollected events. + */ + once(event: 'NodeTracing.tracingComplete', listener: () => void): this; + /** + * Issued when attached to a worker. + */ + once(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; + /** + * Issued when detached from the worker. + */ + once(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Notifies about a new protocol message received from the session + * (session ID is provided in attachedToWorker notification). + */ + once(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * This event is fired instead of `Runtime.executionContextDestroyed` when + * enabled. + * It is fired when the Node process finished all code execution and is + * waiting for all frontends to disconnect. + */ + once(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + /** + * Emitted when any notification from the V8 Inspector is received. + */ + prependListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this; + /** + * Issued when new execution context is created. + */ + prependListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; + /** + * Issued when execution context is destroyed. + */ + prependListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; + /** + * Issued when all executionContexts were cleared in browser + */ + prependListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; + /** + * Issued when exception was thrown and unhandled. + */ + prependListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; + /** + * Issued when unhandled exception was revoked. + */ + prependListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; + /** + * Issued when console API was called. + */ + prependListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; + /** + * Issued when object should be inspected (for example, as a result of inspect() command line API call). + */ + prependListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. + */ + prependListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine fails to parse the script. + */ + prependListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; + /** + * Fired when breakpoint is resolved to an actual script and location. + */ + prependListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + */ + prependListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine resumed execution. + */ + prependListener(event: 'Debugger.resumed', listener: () => void): this; + /** + * Issued when new console message is added. + */ + prependListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; + /** + * Sent when new profile recording is started using console.profile() call. + */ + prependListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; + prependListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; + prependListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; + prependListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; + prependListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + */ + prependListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend may send update for one or more fragments + */ + prependListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; + /** + * Contains an bucket of collected trace events. + */ + prependListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; + /** + * Signals that tracing is stopped and there is no trace buffers pending flush, all data were + * delivered via dataCollected events. + */ + prependListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; + /** + * Issued when attached to a worker. + */ + prependListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; + /** + * Issued when detached from the worker. + */ + prependListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Notifies about a new protocol message received from the session + * (session ID is provided in attachedToWorker notification). + */ + prependListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * This event is fired instead of `Runtime.executionContextDestroyed` when + * enabled. + * It is fired when the Node process finished all code execution and is + * waiting for all frontends to disconnect. + */ + prependListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + /** + * Emitted when any notification from the V8 Inspector is received. + */ + prependOnceListener(event: 'inspectorNotification', listener: (message: InspectorNotification<{}>) => void): this; + /** + * Issued when new execution context is created. + */ + prependOnceListener(event: 'Runtime.executionContextCreated', listener: (message: InspectorNotification) => void): this; + /** + * Issued when execution context is destroyed. + */ + prependOnceListener(event: 'Runtime.executionContextDestroyed', listener: (message: InspectorNotification) => void): this; + /** + * Issued when all executionContexts were cleared in browser + */ + prependOnceListener(event: 'Runtime.executionContextsCleared', listener: () => void): this; + /** + * Issued when exception was thrown and unhandled. + */ + prependOnceListener(event: 'Runtime.exceptionThrown', listener: (message: InspectorNotification) => void): this; + /** + * Issued when unhandled exception was revoked. + */ + prependOnceListener(event: 'Runtime.exceptionRevoked', listener: (message: InspectorNotification) => void): this; + /** + * Issued when console API was called. + */ + prependOnceListener(event: 'Runtime.consoleAPICalled', listener: (message: InspectorNotification) => void): this; + /** + * Issued when object should be inspected (for example, as a result of inspect() command line API call). + */ + prependOnceListener(event: 'Runtime.inspectRequested', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine parses script. This event is also fired for all known and uncollected scripts upon enabling debugger. + */ + prependOnceListener(event: 'Debugger.scriptParsed', listener: (message: InspectorNotification) => void): this; + /** + * Fired when virtual machine fails to parse the script. + */ + prependOnceListener(event: 'Debugger.scriptFailedToParse', listener: (message: InspectorNotification) => void): this; + /** + * Fired when breakpoint is resolved to an actual script and location. + */ + prependOnceListener(event: 'Debugger.breakpointResolved', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine stopped on breakpoint or exception or any other stop criteria. + */ + prependOnceListener(event: 'Debugger.paused', listener: (message: InspectorNotification) => void): this; + /** + * Fired when the virtual machine resumed execution. + */ + prependOnceListener(event: 'Debugger.resumed', listener: () => void): this; + /** + * Issued when new console message is added. + */ + prependOnceListener(event: 'Console.messageAdded', listener: (message: InspectorNotification) => void): this; + /** + * Sent when new profile recording is started using console.profile() call. + */ + prependOnceListener(event: 'Profiler.consoleProfileStarted', listener: (message: InspectorNotification) => void): this; + prependOnceListener(event: 'Profiler.consoleProfileFinished', listener: (message: InspectorNotification) => void): this; + prependOnceListener(event: 'HeapProfiler.addHeapSnapshotChunk', listener: (message: InspectorNotification) => void): this; + prependOnceListener(event: 'HeapProfiler.resetProfiles', listener: () => void): this; + prependOnceListener(event: 'HeapProfiler.reportHeapSnapshotProgress', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend regularly sends a current value for last seen object id and corresponding timestamp. If the were changes in the heap since last event then one or more heapStatsUpdate events will be sent before a new lastSeenObjectId event. + */ + prependOnceListener(event: 'HeapProfiler.lastSeenObjectId', listener: (message: InspectorNotification) => void): this; + /** + * If heap objects tracking has been started then backend may send update for one or more fragments + */ + prependOnceListener(event: 'HeapProfiler.heapStatsUpdate', listener: (message: InspectorNotification) => void): this; + /** + * Contains an bucket of collected trace events. + */ + prependOnceListener(event: 'NodeTracing.dataCollected', listener: (message: InspectorNotification) => void): this; + /** + * Signals that tracing is stopped and there is no trace buffers pending flush, all data were + * delivered via dataCollected events. + */ + prependOnceListener(event: 'NodeTracing.tracingComplete', listener: () => void): this; + /** + * Issued when attached to a worker. + */ + prependOnceListener(event: 'NodeWorker.attachedToWorker', listener: (message: InspectorNotification) => void): this; + /** + * Issued when detached from the worker. + */ + prependOnceListener(event: 'NodeWorker.detachedFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * Notifies about a new protocol message received from the session + * (session ID is provided in attachedToWorker notification). + */ + prependOnceListener(event: 'NodeWorker.receivedMessageFromWorker', listener: (message: InspectorNotification) => void): this; + /** + * This event is fired instead of `Runtime.executionContextDestroyed` when + * enabled. + * It is fired when the Node process finished all code execution and is + * waiting for all frontends to disconnect. + */ + prependOnceListener(event: 'NodeRuntime.waitingForDisconnect', listener: () => void): this; + } + /** + * Activate inspector on host and port. Equivalent to `node --inspect=[[host:]port]`, but can be done programmatically after node has + * started. + * + * If wait is `true`, will block until a client has connected to the inspect port + * and flow control has been passed to the debugger client. + * + * See the `security warning` regarding the `host`parameter usage. + * @param [port='what was specified on the CLI'] Port to listen on for inspector connections. Optional. + * @param [host='what was specified on the CLI'] Host to listen on for inspector connections. Optional. + * @param [wait=false] Block until a client has connected. Optional. + */ + function open(port?: number, host?: string, wait?: boolean): void; + /** + * Deactivate the inspector. Blocks until there are no active connections. + */ + function close(): void; + /** + * Return the URL of the active inspector, or `undefined` if there is none. + * + * ```console + * $ node --inspect -p 'inspector.url()' + * Debugger listening on ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34 + * For help see https://nodejs.org/en/docs/inspector + * ws://127.0.0.1:9229/166e272e-7a30-4d09-97ce-f1c012b43c34 + * + * $ node --inspect=localhost:3000 -p 'inspector.url()' + * Debugger listening on ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a + * For help see https://nodejs.org/en/docs/inspector + * ws://localhost:3000/51cf8d0e-3c36-4c59-8efd-54519839e56a + * + * $ node -p 'inspector.url()' + * undefined + * ``` + */ + function url(): string | undefined; + /** + * Blocks until a client (existing or connected later) has sent`Runtime.runIfWaitingForDebugger` command. + * + * An exception will be thrown if there is no active inspector. + * @since v12.7.0 + */ + function waitForDebugger(): void; +} +declare module 'node:inspector' { + import EventEmitter = require('inspector'); + export = EventEmitter; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/module.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/module.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..d83aec94aae2df96e4028c6fdb09bf61051e5a38 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/module.d.ts" @@ -0,0 +1,114 @@ +/** + * @since v0.3.7 + */ +declare module 'module' { + import { URL } from 'node:url'; + namespace Module { + /** + * The `module.syncBuiltinESMExports()` method updates all the live bindings for + * builtin `ES Modules` to match the properties of the `CommonJS` exports. It + * does not add or remove exported names from the `ES Modules`. + * + * ```js + * const fs = require('fs'); + * const assert = require('assert'); + * const { syncBuiltinESMExports } = require('module'); + * + * fs.readFile = newAPI; + * + * delete fs.readFileSync; + * + * function newAPI() { + * // ... + * } + * + * fs.newAPI = newAPI; + * + * syncBuiltinESMExports(); + * + * import('fs').then((esmFS) => { + * // It syncs the existing readFile property with the new value + * assert.strictEqual(esmFS.readFile, newAPI); + * // readFileSync has been deleted from the required fs + * assert.strictEqual('readFileSync' in fs, false); + * // syncBuiltinESMExports() does not remove readFileSync from esmFS + * assert.strictEqual('readFileSync' in esmFS, true); + * // syncBuiltinESMExports() does not add names + * assert.strictEqual(esmFS.newAPI, undefined); + * }); + * ``` + * @since v12.12.0 + */ + function syncBuiltinESMExports(): void; + /** + * `path` is the resolved path for the file for which a corresponding source map + * should be fetched. + * @since v13.7.0, v12.17.0 + */ + function findSourceMap(path: string, error?: Error): SourceMap; + interface SourceMapPayload { + file: string; + version: number; + sources: string[]; + sourcesContent: string[]; + names: string[]; + mappings: string; + sourceRoot: string; + } + interface SourceMapping { + generatedLine: number; + generatedColumn: number; + originalSource: string; + originalLine: number; + originalColumn: number; + } + /** + * @since v13.7.0, v12.17.0 + */ + class SourceMap { + /** + * Getter for the payload used to construct the `SourceMap` instance. + */ + readonly payload: SourceMapPayload; + constructor(payload: SourceMapPayload); + /** + * Given a line number and column number in the generated source file, returns + * an object representing the position in the original file. The object returned + * consists of the following keys: + */ + findEntry(line: number, column: number): SourceMapping; + } + } + interface Module extends NodeModule {} + class Module { + static runMain(): void; + static wrap(code: string): string; + static createRequire(path: string | URL): NodeRequire; + static builtinModules: string[]; + static Module: typeof Module; + constructor(id: string, parent?: Module); + } + global { + interface ImportMeta { + url: string; + /** + * @experimental + * This feature is only available with the `--experimental-import-meta-resolve` + * command flag enabled. + * + * Provides a module-relative resolution function scoped to each module, returning + * the URL string. + * + * @param specified The module specifier to resolve relative to `parent`. + * @param parent The absolute parent module URL to resolve from. If none + * is specified, the value of `import.meta.url` is used as the default. + */ + resolve?(specified: string, parent?: string | URL): Promise; + } + } + export = Module; +} +declare module 'node:module' { + import module = require('module'); + export = module; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/net.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/net.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..f2c10a23a6c068d2ab07a4c9c36d4d07ccd72de6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/net.d.ts" @@ -0,0 +1,791 @@ +/** + * > Stability: 2 - Stable + * + * The `net` module provides an asynchronous network API for creating stream-based + * TCP or `IPC` servers ({@link createServer}) and clients + * ({@link createConnection}). + * + * It can be accessed using: + * + * ```js + * const net = require('net'); + * ``` + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/net.js) + */ +declare module 'net' { + import * as stream from 'node:stream'; + import { Abortable, EventEmitter } from 'node:events'; + import * as dns from 'node:dns'; + type LookupFunction = (hostname: string, options: dns.LookupOneOptions, callback: (err: NodeJS.ErrnoException | null, address: string, family: number) => void) => void; + interface AddressInfo { + address: string; + family: string; + port: number; + } + interface SocketConstructorOpts { + fd?: number | undefined; + allowHalfOpen?: boolean | undefined; + readable?: boolean | undefined; + writable?: boolean | undefined; + signal?: AbortSignal; + } + interface OnReadOpts { + buffer: Uint8Array | (() => Uint8Array); + /** + * This function is called for every chunk of incoming data. + * Two arguments are passed to it: the number of bytes written to buffer and a reference to buffer. + * Return false from this function to implicitly pause() the socket. + */ + callback(bytesWritten: number, buf: Uint8Array): boolean; + } + interface ConnectOpts { + /** + * If specified, incoming data is stored in a single buffer and passed to the supplied callback when data arrives on the socket. + * Note: this will cause the streaming functionality to not provide any data, however events like 'error', 'end', and 'close' will + * still be emitted as normal and methods like pause() and resume() will also behave as expected. + */ + onread?: OnReadOpts | undefined; + } + interface TcpSocketConnectOpts extends ConnectOpts { + port: number; + host?: string | undefined; + localAddress?: string | undefined; + localPort?: number | undefined; + hints?: number | undefined; + family?: number | undefined; + lookup?: LookupFunction | undefined; + } + interface IpcSocketConnectOpts extends ConnectOpts { + path: string; + } + type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts; + type SocketReadyState = 'opening' | 'open' | 'readOnly' | 'writeOnly' | 'closed'; + /** + * This class is an abstraction of a TCP socket or a streaming `IPC` endpoint + * (uses named pipes on Windows, and Unix domain sockets otherwise). It is also + * an `EventEmitter`. + * + * A `net.Socket` can be created by the user and used directly to interact with + * a server. For example, it is returned by {@link createConnection}, + * so the user can use it to talk to the server. + * + * It can also be created by Node.js and passed to the user when a connection + * is received. For example, it is passed to the listeners of a `'connection'` event emitted on a {@link Server}, so the user can use + * it to interact with the client. + * @since v0.3.4 + */ + class Socket extends stream.Duplex { + constructor(options?: SocketConstructorOpts); + /** + * Sends data on the socket. The second parameter specifies the encoding in the + * case of a string. It defaults to UTF8 encoding. + * + * Returns `true` if the entire data was flushed successfully to the kernel + * buffer. Returns `false` if all or part of the data was queued in user memory.`'drain'` will be emitted when the buffer is again free. + * + * The optional `callback` parameter will be executed when the data is finally + * written out, which may not be immediately. + * + * See `Writable` stream `write()` method for more + * information. + * @since v0.1.90 + * @param [encoding='utf8'] Only used when data is `string`. + */ + write(buffer: Uint8Array | string, cb?: (err?: Error) => void): boolean; + write(str: Uint8Array | string, encoding?: BufferEncoding, cb?: (err?: Error) => void): boolean; + /** + * Initiate a connection on a given socket. + * + * Possible signatures: + * + * * `socket.connect(options[, connectListener])` + * * `socket.connect(path[, connectListener])` for `IPC` connections. + * * `socket.connect(port[, host][, connectListener])` for TCP connections. + * * Returns: `net.Socket` The socket itself. + * + * This function is asynchronous. When the connection is established, the `'connect'` event will be emitted. If there is a problem connecting, + * instead of a `'connect'` event, an `'error'` event will be emitted with + * the error passed to the `'error'` listener. + * The last parameter `connectListener`, if supplied, will be added as a listener + * for the `'connect'` event **once**. + * + * This function should only be used for reconnecting a socket after`'close'` has been emitted or otherwise it may lead to undefined + * behavior. + */ + connect(options: SocketConnectOpts, connectionListener?: () => void): this; + connect(port: number, host: string, connectionListener?: () => void): this; + connect(port: number, connectionListener?: () => void): this; + connect(path: string, connectionListener?: () => void): this; + /** + * Set the encoding for the socket as a `Readable Stream`. See `readable.setEncoding()` for more information. + * @since v0.1.90 + * @return The socket itself. + */ + setEncoding(encoding?: BufferEncoding): this; + /** + * Pauses the reading of data. That is, `'data'` events will not be emitted. + * Useful to throttle back an upload. + * @return The socket itself. + */ + pause(): this; + /** + * Resumes reading after a call to `socket.pause()`. + * @return The socket itself. + */ + resume(): this; + /** + * Sets the socket to timeout after `timeout` milliseconds of inactivity on + * the socket. By default `net.Socket` do not have a timeout. + * + * When an idle timeout is triggered the socket will receive a `'timeout'` event but the connection will not be severed. The user must manually call `socket.end()` or `socket.destroy()` to + * end the connection. + * + * ```js + * socket.setTimeout(3000); + * socket.on('timeout', () => { + * console.log('socket timeout'); + * socket.end(); + * }); + * ``` + * + * If `timeout` is 0, then the existing idle timeout is disabled. + * + * The optional `callback` parameter will be added as a one-time listener for the `'timeout'` event. + * @since v0.1.90 + * @return The socket itself. + */ + setTimeout(timeout: number, callback?: () => void): this; + /** + * Enable/disable the use of Nagle's algorithm. + * + * When a TCP connection is created, it will have Nagle's algorithm enabled. + * + * Nagle's algorithm delays data before it is sent via the network. It attempts + * to optimize throughput at the expense of latency. + * + * Passing `true` for `noDelay` or not passing an argument will disable Nagle's + * algorithm for the socket. Passing `false` for `noDelay` will enable Nagle's + * algorithm. + * @since v0.1.90 + * @param [noDelay=true] + * @return The socket itself. + */ + setNoDelay(noDelay?: boolean): this; + /** + * Enable/disable keep-alive functionality, and optionally set the initial + * delay before the first keepalive probe is sent on an idle socket. + * + * Set `initialDelay` (in milliseconds) to set the delay between the last + * data packet received and the first keepalive probe. Setting `0` for`initialDelay` will leave the value unchanged from the default + * (or previous) setting. + * + * Enabling the keep-alive functionality will set the following socket options: + * + * * `SO_KEEPALIVE=1` + * * `TCP_KEEPIDLE=initialDelay` + * * `TCP_KEEPCNT=10` + * * `TCP_KEEPINTVL=1` + * @since v0.1.92 + * @param [enable=false] + * @param [initialDelay=0] + * @return The socket itself. + */ + setKeepAlive(enable?: boolean, initialDelay?: number): this; + /** + * Returns the bound `address`, the address `family` name and `port` of the + * socket as reported by the operating system:`{ port: 12346, family: 'IPv4', address: '127.0.0.1' }` + * @since v0.1.90 + */ + address(): AddressInfo | {}; + /** + * Calling `unref()` on a socket will allow the program to exit if this is the only + * active socket in the event system. If the socket is already `unref`ed calling`unref()` again will have no effect. + * @since v0.9.1 + * @return The socket itself. + */ + unref(): this; + /** + * Opposite of `unref()`, calling `ref()` on a previously `unref`ed socket will_not_ let the program exit if it's the only socket left (the default behavior). + * If the socket is `ref`ed calling `ref` again will have no effect. + * @since v0.9.1 + * @return The socket itself. + */ + ref(): this; + /** + * This property shows the number of characters buffered for writing. The buffer + * may contain strings whose length after encoding is not yet known. So this number + * is only an approximation of the number of bytes in the buffer. + * + * `net.Socket` has the property that `socket.write()` always works. This is to + * help users get up and running quickly. The computer cannot always keep up + * with the amount of data that is written to a socket. The network connection + * simply might be too slow. Node.js will internally queue up the data written to a + * socket and send it out over the wire when it is possible. + * + * The consequence of this internal buffering is that memory may grow. + * Users who experience large or growing `bufferSize` should attempt to + * "throttle" the data flows in their program with `socket.pause()` and `socket.resume()`. + * @since v0.3.8 + * @deprecated Since v14.6.0 - Use `writableLength` instead. + */ + readonly bufferSize: number; + /** + * The amount of received bytes. + * @since v0.5.3 + */ + readonly bytesRead: number; + /** + * The amount of bytes sent. + * @since v0.5.3 + */ + readonly bytesWritten: number; + /** + * If `true`,`socket.connect(options[, connectListener])` was + * called and has not yet finished. It will stay `true` until the socket becomes + * connected, then it is set to `false` and the `'connect'` event is emitted. Note + * that the `socket.connect(options[, connectListener])` callback is a listener for the `'connect'` event. + * @since v6.1.0 + */ + readonly connecting: boolean; + /** + * See `writable.destroyed` for further details. + */ + readonly destroyed: boolean; + /** + * The string representation of the local IP address the remote client is + * connecting on. For example, in a server listening on `'0.0.0.0'`, if a client + * connects on `'192.168.1.1'`, the value of `socket.localAddress` would be`'192.168.1.1'`. + * @since v0.9.6 + */ + readonly localAddress?: string; + /** + * The numeric representation of the local port. For example, `80` or `21`. + * @since v0.9.6 + */ + readonly localPort?: number; + /** + * This property represents the state of the connection as a string. + * @see {https://nodejs.org/api/net.html#socketreadystate} + * @since v0.5.0 + */ + readonly readyState: SocketReadyState; + /** + * The string representation of the remote IP address. For example,`'74.125.127.100'` or `'2001:4860:a005::68'`. Value may be `undefined` if + * the socket is destroyed (for example, if the client disconnected). + * @since v0.5.10 + */ + readonly remoteAddress?: string | undefined; + /** + * The string representation of the remote IP family. `'IPv4'` or `'IPv6'`. + * @since v0.11.14 + */ + readonly remoteFamily?: string | undefined; + /** + * The numeric representation of the remote port. For example, `80` or `21`. + * @since v0.5.10 + */ + readonly remotePort?: number | undefined; + /** + * Half-closes the socket. i.e., it sends a FIN packet. It is possible the + * server will still send some data. + * + * See `writable.end()` for further details. + * @since v0.1.90 + * @param [encoding='utf8'] Only used when data is `string`. + * @param callback Optional callback for when the socket is finished. + * @return The socket itself. + */ + end(callback?: () => void): this; + end(buffer: Uint8Array | string, callback?: () => void): this; + end(str: Uint8Array | string, encoding?: BufferEncoding, callback?: () => void): this; + /** + * events.EventEmitter + * 1. close + * 2. connect + * 3. data + * 4. drain + * 5. end + * 6. error + * 7. lookup + * 8. timeout + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: 'close', listener: (hadError: boolean) => void): this; + addListener(event: 'connect', listener: () => void): this; + addListener(event: 'data', listener: (data: Buffer) => void): this; + addListener(event: 'drain', listener: () => void): this; + addListener(event: 'end', listener: () => void): this; + addListener(event: 'error', listener: (err: Error) => void): this; + addListener(event: 'lookup', listener: (err: Error, address: string, family: string | number, host: string) => void): this; + addListener(event: 'ready', listener: () => void): this; + addListener(event: 'timeout', listener: () => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: 'close', hadError: boolean): boolean; + emit(event: 'connect'): boolean; + emit(event: 'data', data: Buffer): boolean; + emit(event: 'drain'): boolean; + emit(event: 'end'): boolean; + emit(event: 'error', err: Error): boolean; + emit(event: 'lookup', err: Error, address: string, family: string | number, host: string): boolean; + emit(event: 'ready'): boolean; + emit(event: 'timeout'): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: 'close', listener: (hadError: boolean) => void): this; + on(event: 'connect', listener: () => void): this; + on(event: 'data', listener: (data: Buffer) => void): this; + on(event: 'drain', listener: () => void): this; + on(event: 'end', listener: () => void): this; + on(event: 'error', listener: (err: Error) => void): this; + on(event: 'lookup', listener: (err: Error, address: string, family: string | number, host: string) => void): this; + on(event: 'ready', listener: () => void): this; + on(event: 'timeout', listener: () => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: 'close', listener: (hadError: boolean) => void): this; + once(event: 'connect', listener: () => void): this; + once(event: 'data', listener: (data: Buffer) => void): this; + once(event: 'drain', listener: () => void): this; + once(event: 'end', listener: () => void): this; + once(event: 'error', listener: (err: Error) => void): this; + once(event: 'lookup', listener: (err: Error, address: string, family: string | number, host: string) => void): this; + once(event: 'ready', listener: () => void): this; + once(event: 'timeout', listener: () => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: 'close', listener: (hadError: boolean) => void): this; + prependListener(event: 'connect', listener: () => void): this; + prependListener(event: 'data', listener: (data: Buffer) => void): this; + prependListener(event: 'drain', listener: () => void): this; + prependListener(event: 'end', listener: () => void): this; + prependListener(event: 'error', listener: (err: Error) => void): this; + prependListener(event: 'lookup', listener: (err: Error, address: string, family: string | number, host: string) => void): this; + prependListener(event: 'ready', listener: () => void): this; + prependListener(event: 'timeout', listener: () => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'close', listener: (hadError: boolean) => void): this; + prependOnceListener(event: 'connect', listener: () => void): this; + prependOnceListener(event: 'data', listener: (data: Buffer) => void): this; + prependOnceListener(event: 'drain', listener: () => void): this; + prependOnceListener(event: 'end', listener: () => void): this; + prependOnceListener(event: 'error', listener: (err: Error) => void): this; + prependOnceListener(event: 'lookup', listener: (err: Error, address: string, family: string | number, host: string) => void): this; + prependOnceListener(event: 'ready', listener: () => void): this; + prependOnceListener(event: 'timeout', listener: () => void): this; + } + interface ListenOptions extends Abortable { + port?: number | undefined; + host?: string | undefined; + backlog?: number | undefined; + path?: string | undefined; + exclusive?: boolean | undefined; + readableAll?: boolean | undefined; + writableAll?: boolean | undefined; + /** + * @default false + */ + ipv6Only?: boolean | undefined; + } + interface ServerOpts { + /** + * Indicates whether half-opened TCP connections are allowed. + * @default false + */ + allowHalfOpen?: boolean | undefined; + /** + * Indicates whether the socket should be paused on incoming connections. + * @default false + */ + pauseOnConnect?: boolean | undefined; + } + /** + * This class is used to create a TCP or `IPC` server. + * @since v0.1.90 + */ + class Server extends EventEmitter { + constructor(connectionListener?: (socket: Socket) => void); + constructor(options?: ServerOpts, connectionListener?: (socket: Socket) => void); + /** + * Start a server listening for connections. A `net.Server` can be a TCP or + * an `IPC` server depending on what it listens to. + * + * Possible signatures: + * + * * `server.listen(handle[, backlog][, callback])` + * * `server.listen(options[, callback])` + * * `server.listen(path[, backlog][, callback])` for `IPC` servers + * * `server.listen([port[, host[, backlog]]][, callback])` for TCP servers + * + * This function is asynchronous. When the server starts listening, the `'listening'` event will be emitted. The last parameter `callback`will be added as a listener for the `'listening'` + * event. + * + * All `listen()` methods can take a `backlog` parameter to specify the maximum + * length of the queue of pending connections. The actual length will be determined + * by the OS through sysctl settings such as `tcp_max_syn_backlog` and `somaxconn`on Linux. The default value of this parameter is 511 (not 512). + * + * All {@link Socket} are set to `SO_REUSEADDR` (see [`socket(7)`](https://man7.org/linux/man-pages/man7/socket.7.html) for + * details). + * + * The `server.listen()` method can be called again if and only if there was an + * error during the first `server.listen()` call or `server.close()` has been + * called. Otherwise, an `ERR_SERVER_ALREADY_LISTEN` error will be thrown. + * + * One of the most common errors raised when listening is `EADDRINUSE`. + * This happens when another server is already listening on the requested`port`/`path`/`handle`. One way to handle this would be to retry + * after a certain amount of time: + * + * ```js + * server.on('error', (e) => { + * if (e.code === 'EADDRINUSE') { + * console.log('Address in use, retrying...'); + * setTimeout(() => { + * server.close(); + * server.listen(PORT, HOST); + * }, 1000); + * } + * }); + * ``` + */ + listen(port?: number, hostname?: string, backlog?: number, listeningListener?: () => void): this; + listen(port?: number, hostname?: string, listeningListener?: () => void): this; + listen(port?: number, backlog?: number, listeningListener?: () => void): this; + listen(port?: number, listeningListener?: () => void): this; + listen(path: string, backlog?: number, listeningListener?: () => void): this; + listen(path: string, listeningListener?: () => void): this; + listen(options: ListenOptions, listeningListener?: () => void): this; + listen(handle: any, backlog?: number, listeningListener?: () => void): this; + listen(handle: any, listeningListener?: () => void): this; + /** + * Stops the server from accepting new connections and keeps existing + * connections. This function is asynchronous, the server is finally closed + * when all connections are ended and the server emits a `'close'` event. + * The optional `callback` will be called once the `'close'` event occurs. Unlike + * that event, it will be called with an `Error` as its only argument if the server + * was not open when it was closed. + * @since v0.1.90 + * @param callback Called when the server is closed. + */ + close(callback?: (err?: Error) => void): this; + /** + * Returns the bound `address`, the address `family` name, and `port` of the server + * as reported by the operating system if listening on an IP socket + * (useful to find which port was assigned when getting an OS-assigned address):`{ port: 12346, family: 'IPv4', address: '127.0.0.1' }`. + * + * For a server listening on a pipe or Unix domain socket, the name is returned + * as a string. + * + * ```js + * const server = net.createServer((socket) => { + * socket.end('goodbye\n'); + * }).on('error', (err) => { + * // Handle errors here. + * throw err; + * }); + * + * // Grab an arbitrary unused port. + * server.listen(() => { + * console.log('opened server on', server.address()); + * }); + * ``` + * + * `server.address()` returns `null` before the `'listening'` event has been + * emitted or after calling `server.close()`. + * @since v0.1.90 + */ + address(): AddressInfo | string | null; + /** + * Asynchronously get the number of concurrent connections on the server. Works + * when sockets were sent to forks. + * + * Callback should take two arguments `err` and `count`. + * @since v0.9.7 + */ + getConnections(cb: (error: Error | null, count: number) => void): void; + /** + * Opposite of `unref()`, calling `ref()` on a previously `unref`ed server will_not_ let the program exit if it's the only server left (the default behavior). + * If the server is `ref`ed calling `ref()` again will have no effect. + * @since v0.9.1 + */ + ref(): this; + /** + * Calling `unref()` on a server will allow the program to exit if this is the only + * active server in the event system. If the server is already `unref`ed calling`unref()` again will have no effect. + * @since v0.9.1 + */ + unref(): this; + /** + * Set this property to reject connections when the server's connection count gets + * high. + * + * It is not recommended to use this option once a socket has been sent to a child + * with `child_process.fork()`. + * @since v0.2.0 + */ + maxConnections: number; + connections: number; + /** + * Indicates whether or not the server is listening for connections. + * @since v5.7.0 + */ + listening: boolean; + /** + * events.EventEmitter + * 1. close + * 2. connection + * 3. error + * 4. listening + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: 'close', listener: () => void): this; + addListener(event: 'connection', listener: (socket: Socket) => void): this; + addListener(event: 'error', listener: (err: Error) => void): this; + addListener(event: 'listening', listener: () => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: 'close'): boolean; + emit(event: 'connection', socket: Socket): boolean; + emit(event: 'error', err: Error): boolean; + emit(event: 'listening'): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: 'close', listener: () => void): this; + on(event: 'connection', listener: (socket: Socket) => void): this; + on(event: 'error', listener: (err: Error) => void): this; + on(event: 'listening', listener: () => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: 'close', listener: () => void): this; + once(event: 'connection', listener: (socket: Socket) => void): this; + once(event: 'error', listener: (err: Error) => void): this; + once(event: 'listening', listener: () => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: 'close', listener: () => void): this; + prependListener(event: 'connection', listener: (socket: Socket) => void): this; + prependListener(event: 'error', listener: (err: Error) => void): this; + prependListener(event: 'listening', listener: () => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'close', listener: () => void): this; + prependOnceListener(event: 'connection', listener: (socket: Socket) => void): this; + prependOnceListener(event: 'error', listener: (err: Error) => void): this; + prependOnceListener(event: 'listening', listener: () => void): this; + } + type IPVersion = 'ipv4' | 'ipv6'; + /** + * The `BlockList` object can be used with some network APIs to specify rules for + * disabling inbound or outbound access to specific IP addresses, IP ranges, or + * IP subnets. + * @since v15.0.0, v14.18.0 + */ + class BlockList { + /** + * Adds a rule to block the given IP address. + * @since v15.0.0, v14.18.0 + * @param address An IPv4 or IPv6 address. + * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. + */ + addAddress(address: string, type?: IPVersion): void; + addAddress(address: SocketAddress): void; + /** + * Adds a rule to block a range of IP addresses from `start` (inclusive) to`end` (inclusive). + * @since v15.0.0, v14.18.0 + * @param start The starting IPv4 or IPv6 address in the range. + * @param end The ending IPv4 or IPv6 address in the range. + * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. + */ + addRange(start: string, end: string, type?: IPVersion): void; + addRange(start: SocketAddress, end: SocketAddress): void; + /** + * Adds a rule to block a range of IP addresses specified as a subnet mask. + * @since v15.0.0, v14.18.0 + * @param net The network IPv4 or IPv6 address. + * @param prefix The number of CIDR prefix bits. For IPv4, this must be a value between `0` and `32`. For IPv6, this must be between `0` and `128`. + * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. + */ + addSubnet(net: SocketAddress, prefix: number): void; + addSubnet(net: string, prefix: number, type?: IPVersion): void; + /** + * Returns `true` if the given IP address matches any of the rules added to the`BlockList`. + * + * ```js + * const blockList = new net.BlockList(); + * blockList.addAddress('123.123.123.123'); + * blockList.addRange('10.0.0.1', '10.0.0.10'); + * blockList.addSubnet('8592:757c:efae:4e45::', 64, 'ipv6'); + * + * console.log(blockList.check('123.123.123.123')); // Prints: true + * console.log(blockList.check('10.0.0.3')); // Prints: true + * console.log(blockList.check('222.111.111.222')); // Prints: false + * + * // IPv6 notation for IPv4 addresses works: + * console.log(blockList.check('::ffff:7b7b:7b7b', 'ipv6')); // Prints: true + * console.log(blockList.check('::ffff:123.123.123.123', 'ipv6')); // Prints: true + * ``` + * @since v15.0.0, v14.18.0 + * @param address The IP address to check + * @param [type='ipv4'] Either `'ipv4'` or `'ipv6'`. + */ + check(address: SocketAddress): boolean; + check(address: string, type?: IPVersion): boolean; + } + interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts { + timeout?: number | undefined; + } + interface IpcNetConnectOpts extends IpcSocketConnectOpts, SocketConstructorOpts { + timeout?: number | undefined; + } + type NetConnectOpts = TcpNetConnectOpts | IpcNetConnectOpts; + /** + * Creates a new TCP or `IPC` server. + * + * If `allowHalfOpen` is set to `true`, when the other end of the socket + * signals the end of transmission, the server will only send back the end of + * transmission when `socket.end()` is explicitly called. For example, in the + * context of TCP, when a FIN packed is received, a FIN packed is sent + * back only when `socket.end()` is explicitly called. Until then the + * connection is half-closed (non-readable but still writable). See `'end'` event and [RFC 1122](https://tools.ietf.org/html/rfc1122) (section 4.2.2.13) for more information. + * + * If `pauseOnConnect` is set to `true`, then the socket associated with each + * incoming connection will be paused, and no data will be read from its handle. + * This allows connections to be passed between processes without any data being + * read by the original process. To begin reading data from a paused socket, call `socket.resume()`. + * + * The server can be a TCP server or an `IPC` server, depending on what it `listen()` to. + * + * Here is an example of an TCP echo server which listens for connections + * on port 8124: + * + * ```js + * const net = require('net'); + * const server = net.createServer((c) => { + * // 'connection' listener. + * console.log('client connected'); + * c.on('end', () => { + * console.log('client disconnected'); + * }); + * c.write('hello\r\n'); + * c.pipe(c); + * }); + * server.on('error', (err) => { + * throw err; + * }); + * server.listen(8124, () => { + * console.log('server bound'); + * }); + * ``` + * + * Test this by using `telnet`: + * + * ```console + * $ telnet localhost 8124 + * ``` + * + * To listen on the socket `/tmp/echo.sock`: + * + * ```js + * server.listen('/tmp/echo.sock', () => { + * console.log('server bound'); + * }); + * ``` + * + * Use `nc` to connect to a Unix domain socket server: + * + * ```console + * $ nc -U /tmp/echo.sock + * ``` + * @since v0.5.0 + * @param connectionListener Automatically set as a listener for the {@link 'connection'} event. + */ + function createServer(connectionListener?: (socket: Socket) => void): Server; + function createServer(options?: ServerOpts, connectionListener?: (socket: Socket) => void): Server; + /** + * Aliases to {@link createConnection}. + * + * Possible signatures: + * + * * {@link connect} + * * {@link connect} for `IPC` connections. + * * {@link connect} for TCP connections. + */ + function connect(options: NetConnectOpts, connectionListener?: () => void): Socket; + function connect(port: number, host?: string, connectionListener?: () => void): Socket; + function connect(path: string, connectionListener?: () => void): Socket; + /** + * A factory function, which creates a new {@link Socket}, + * immediately initiates connection with `socket.connect()`, + * then returns the `net.Socket` that starts the connection. + * + * When the connection is established, a `'connect'` event will be emitted + * on the returned socket. The last parameter `connectListener`, if supplied, + * will be added as a listener for the `'connect'` event **once**. + * + * Possible signatures: + * + * * {@link createConnection} + * * {@link createConnection} for `IPC` connections. + * * {@link createConnection} for TCP connections. + * + * The {@link connect} function is an alias to this function. + */ + function createConnection(options: NetConnectOpts, connectionListener?: () => void): Socket; + function createConnection(port: number, host?: string, connectionListener?: () => void): Socket; + function createConnection(path: string, connectionListener?: () => void): Socket; + /** + * Tests if input is an IP address. Returns `0` for invalid strings, + * returns `4` for IP version 4 addresses, and returns `6` for IP version 6 + * addresses. + * @since v0.3.0 + */ + function isIP(input: string): number; + /** + * Returns `true` if input is a version 4 IP address, otherwise returns `false`. + * @since v0.3.0 + */ + function isIPv4(input: string): boolean; + /** + * Returns `true` if input is a version 6 IP address, otherwise returns `false`. + * @since v0.3.0 + */ + function isIPv6(input: string): boolean; + interface SocketAddressInitOptions { + /** + * The network address as either an IPv4 or IPv6 string. + * @default 127.0.0.1 + */ + address?: string | undefined; + /** + * @default `'ipv4'` + */ + family?: IPVersion | undefined; + /** + * An IPv6 flow-label used only if `family` is `'ipv6'`. + * @default 0 + */ + flowlabel?: number | undefined; + /** + * An IP port. + * @default 0 + */ + port?: number | undefined; + } + /** + * @since v15.14.0, v14.18.0 + */ + class SocketAddress { + constructor(options: SocketAddressInitOptions); + /** + * Either \`'ipv4'\` or \`'ipv6'\`. + * @since v15.14.0, v14.18.0 + */ + readonly address: string; + /** + * Either \`'ipv4'\` or \`'ipv6'\`. + * @since v15.14.0, v14.18.0 + */ + readonly family: IPVersion; + /** + * @since v15.14.0, v14.18.0 + */ + readonly port: number; + /** + * @since v15.14.0, v14.18.0 + */ + readonly flowlabel: number; + } +} +declare module 'node:net' { + export * from 'net'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/os.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/os.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..a618e9164d23e7b2d13fc610b905dd75b2a386e7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/os.d.ts" @@ -0,0 +1,455 @@ +/** + * The `os` module provides operating system-related utility methods and + * properties. It can be accessed using: + * + * ```js + * const os = require('os'); + * ``` + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/os.js) + */ +declare module 'os' { + interface CpuInfo { + model: string; + speed: number; + times: { + user: number; + nice: number; + sys: number; + idle: number; + irq: number; + }; + } + interface NetworkInterfaceBase { + address: string; + netmask: string; + mac: string; + internal: boolean; + cidr: string | null; + } + interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase { + family: 'IPv4'; + } + interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase { + family: 'IPv6'; + scopeid: number; + } + interface UserInfo { + username: T; + uid: number; + gid: number; + shell: T; + homedir: T; + } + type NetworkInterfaceInfo = NetworkInterfaceInfoIPv4 | NetworkInterfaceInfoIPv6; + /** + * Returns the host name of the operating system as a string. + * @since v0.3.3 + */ + function hostname(): string; + /** + * Returns an array containing the 1, 5, and 15 minute load averages. + * + * The load average is a measure of system activity calculated by the operating + * system and expressed as a fractional number. + * + * The load average is a Unix-specific concept. On Windows, the return value is + * always `[0, 0, 0]`. + * @since v0.3.3 + */ + function loadavg(): number[]; + /** + * Returns the system uptime in number of seconds. + * @since v0.3.3 + */ + function uptime(): number; + /** + * Returns the amount of free system memory in bytes as an integer. + * @since v0.3.3 + */ + function freemem(): number; + /** + * Returns the total amount of system memory in bytes as an integer. + * @since v0.3.3 + */ + function totalmem(): number; + /** + * Returns an array of objects containing information about each logical CPU core. + * + * The properties included on each object include: + * + * ```js + * [ + * { + * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', + * speed: 2926, + * times: { + * user: 252020, + * nice: 0, + * sys: 30340, + * idle: 1070356870, + * irq: 0 + * } + * }, + * { + * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', + * speed: 2926, + * times: { + * user: 306960, + * nice: 0, + * sys: 26980, + * idle: 1071569080, + * irq: 0 + * } + * }, + * { + * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', + * speed: 2926, + * times: { + * user: 248450, + * nice: 0, + * sys: 21750, + * idle: 1070919370, + * irq: 0 + * } + * }, + * { + * model: 'Intel(R) Core(TM) i7 CPU 860 @ 2.80GHz', + * speed: 2926, + * times: { + * user: 256880, + * nice: 0, + * sys: 19430, + * idle: 1070905480, + * irq: 20 + * } + * }, + * ] + * ``` + * + * `nice` values are POSIX-only. On Windows, the `nice` values of all processors + * are always 0. + * @since v0.3.3 + */ + function cpus(): CpuInfo[]; + /** + * Returns the operating system name as returned by [`uname(3)`](https://linux.die.net/man/3/uname). For example, it + * returns `'Linux'` on Linux, `'Darwin'` on macOS, and `'Windows_NT'` on Windows. + * + * See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for additional information + * about the output of running [`uname(3)`](https://linux.die.net/man/3/uname) on various operating systems. + * @since v0.3.3 + */ + function type(): string; + /** + * Returns the operating system as a string. + * + * On POSIX systems, the operating system release is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `GetVersionExW()` is used. See + * [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information. + * @since v0.3.3 + */ + function release(): string; + /** + * Returns an object containing network interfaces that have been assigned a + * network address. + * + * Each key on the returned object identifies a network interface. The associated + * value is an array of objects that each describe an assigned network address. + * + * The properties available on the assigned network address object include: + * + * ```js + * { + * lo: [ + * { + * address: '127.0.0.1', + * netmask: '255.0.0.0', + * family: 'IPv4', + * mac: '00:00:00:00:00:00', + * internal: true, + * cidr: '127.0.0.1/8' + * }, + * { + * address: '::1', + * netmask: 'ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff', + * family: 'IPv6', + * mac: '00:00:00:00:00:00', + * scopeid: 0, + * internal: true, + * cidr: '::1/128' + * } + * ], + * eth0: [ + * { + * address: '192.168.1.108', + * netmask: '255.255.255.0', + * family: 'IPv4', + * mac: '01:02:03:0a:0b:0c', + * internal: false, + * cidr: '192.168.1.108/24' + * }, + * { + * address: 'fe80::a00:27ff:fe4e:66a1', + * netmask: 'ffff:ffff:ffff:ffff::', + * family: 'IPv6', + * mac: '01:02:03:0a:0b:0c', + * scopeid: 1, + * internal: false, + * cidr: 'fe80::a00:27ff:fe4e:66a1/64' + * } + * ] + * } + * ``` + * @since v0.6.0 + */ + function networkInterfaces(): NodeJS.Dict; + /** + * Returns the string path of the current user's home directory. + * + * On POSIX, it uses the `$HOME` environment variable if defined. Otherwise it + * uses the [effective UID](https://en.wikipedia.org/wiki/User_identifier#Effective_user_ID) to look up the user's home directory. + * + * On Windows, it uses the `USERPROFILE` environment variable if defined. + * Otherwise it uses the path to the profile directory of the current user. + * @since v2.3.0 + */ + function homedir(): string; + /** + * Returns information about the currently effective user. On POSIX platforms, + * this is typically a subset of the password file. The returned object includes + * the `username`, `uid`, `gid`, `shell`, and `homedir`. On Windows, the `uid` and`gid` fields are `-1`, and `shell` is `null`. + * + * The value of `homedir` returned by `os.userInfo()` is provided by the operating + * system. This differs from the result of `os.homedir()`, which queries + * environment variables for the home directory before falling back to the + * operating system response. + * + * Throws a `SystemError` if a user has no `username` or `homedir`. + * @since v6.0.0 + */ + function userInfo(options: { encoding: 'buffer' }): UserInfo; + function userInfo(options?: { encoding: BufferEncoding }): UserInfo; + type SignalConstants = { + [key in NodeJS.Signals]: number; + }; + namespace constants { + const UV_UDP_REUSEADDR: number; + namespace signals {} + const signals: SignalConstants; + namespace errno { + const E2BIG: number; + const EACCES: number; + const EADDRINUSE: number; + const EADDRNOTAVAIL: number; + const EAFNOSUPPORT: number; + const EAGAIN: number; + const EALREADY: number; + const EBADF: number; + const EBADMSG: number; + const EBUSY: number; + const ECANCELED: number; + const ECHILD: number; + const ECONNABORTED: number; + const ECONNREFUSED: number; + const ECONNRESET: number; + const EDEADLK: number; + const EDESTADDRREQ: number; + const EDOM: number; + const EDQUOT: number; + const EEXIST: number; + const EFAULT: number; + const EFBIG: number; + const EHOSTUNREACH: number; + const EIDRM: number; + const EILSEQ: number; + const EINPROGRESS: number; + const EINTR: number; + const EINVAL: number; + const EIO: number; + const EISCONN: number; + const EISDIR: number; + const ELOOP: number; + const EMFILE: number; + const EMLINK: number; + const EMSGSIZE: number; + const EMULTIHOP: number; + const ENAMETOOLONG: number; + const ENETDOWN: number; + const ENETRESET: number; + const ENETUNREACH: number; + const ENFILE: number; + const ENOBUFS: number; + const ENODATA: number; + const ENODEV: number; + const ENOENT: number; + const ENOEXEC: number; + const ENOLCK: number; + const ENOLINK: number; + const ENOMEM: number; + const ENOMSG: number; + const ENOPROTOOPT: number; + const ENOSPC: number; + const ENOSR: number; + const ENOSTR: number; + const ENOSYS: number; + const ENOTCONN: number; + const ENOTDIR: number; + const ENOTEMPTY: number; + const ENOTSOCK: number; + const ENOTSUP: number; + const ENOTTY: number; + const ENXIO: number; + const EOPNOTSUPP: number; + const EOVERFLOW: number; + const EPERM: number; + const EPIPE: number; + const EPROTO: number; + const EPROTONOSUPPORT: number; + const EPROTOTYPE: number; + const ERANGE: number; + const EROFS: number; + const ESPIPE: number; + const ESRCH: number; + const ESTALE: number; + const ETIME: number; + const ETIMEDOUT: number; + const ETXTBSY: number; + const EWOULDBLOCK: number; + const EXDEV: number; + const WSAEINTR: number; + const WSAEBADF: number; + const WSAEACCES: number; + const WSAEFAULT: number; + const WSAEINVAL: number; + const WSAEMFILE: number; + const WSAEWOULDBLOCK: number; + const WSAEINPROGRESS: number; + const WSAEALREADY: number; + const WSAENOTSOCK: number; + const WSAEDESTADDRREQ: number; + const WSAEMSGSIZE: number; + const WSAEPROTOTYPE: number; + const WSAENOPROTOOPT: number; + const WSAEPROTONOSUPPORT: number; + const WSAESOCKTNOSUPPORT: number; + const WSAEOPNOTSUPP: number; + const WSAEPFNOSUPPORT: number; + const WSAEAFNOSUPPORT: number; + const WSAEADDRINUSE: number; + const WSAEADDRNOTAVAIL: number; + const WSAENETDOWN: number; + const WSAENETUNREACH: number; + const WSAENETRESET: number; + const WSAECONNABORTED: number; + const WSAECONNRESET: number; + const WSAENOBUFS: number; + const WSAEISCONN: number; + const WSAENOTCONN: number; + const WSAESHUTDOWN: number; + const WSAETOOMANYREFS: number; + const WSAETIMEDOUT: number; + const WSAECONNREFUSED: number; + const WSAELOOP: number; + const WSAENAMETOOLONG: number; + const WSAEHOSTDOWN: number; + const WSAEHOSTUNREACH: number; + const WSAENOTEMPTY: number; + const WSAEPROCLIM: number; + const WSAEUSERS: number; + const WSAEDQUOT: number; + const WSAESTALE: number; + const WSAEREMOTE: number; + const WSASYSNOTREADY: number; + const WSAVERNOTSUPPORTED: number; + const WSANOTINITIALISED: number; + const WSAEDISCON: number; + const WSAENOMORE: number; + const WSAECANCELLED: number; + const WSAEINVALIDPROCTABLE: number; + const WSAEINVALIDPROVIDER: number; + const WSAEPROVIDERFAILEDINIT: number; + const WSASYSCALLFAILURE: number; + const WSASERVICE_NOT_FOUND: number; + const WSATYPE_NOT_FOUND: number; + const WSA_E_NO_MORE: number; + const WSA_E_CANCELLED: number; + const WSAEREFUSED: number; + } + namespace priority { + const PRIORITY_LOW: number; + const PRIORITY_BELOW_NORMAL: number; + const PRIORITY_NORMAL: number; + const PRIORITY_ABOVE_NORMAL: number; + const PRIORITY_HIGH: number; + const PRIORITY_HIGHEST: number; + } + } + const devNull: string; + const EOL: string; + /** + * Returns the operating system CPU architecture for which the Node.js binary was + * compiled. Possible values are `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`, `'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`. + * + * The return value is equivalent to `process.arch`. + * @since v0.5.0 + */ + function arch(): string; + /** + * Returns a string identifying the kernel version. + * + * On POSIX systems, the operating system release is determined by calling [`uname(3)`](https://linux.die.net/man/3/uname). On Windows, `RtlGetVersion()` is used, and if it is not + * available, `GetVersionExW()` will be used. See [https://en.wikipedia.org/wiki/Uname#Examples](https://en.wikipedia.org/wiki/Uname#Examples) for more information. + * @since v13.11.0, v12.17.0 + */ + function version(): string; + /** + * Returns a string identifying the operating system platform. The value is set + * at compile time. Possible values are `'aix'`, `'darwin'`, `'freebsd'`,`'linux'`, `'openbsd'`, `'sunos'`, and `'win32'`. + * + * The return value is equivalent to `process.platform`. + * + * The value `'android'` may also be returned if Node.js is built on the Android + * operating system. [Android support is experimental](https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os). + * @since v0.5.0 + */ + function platform(): NodeJS.Platform; + /** + * Returns the operating system's default directory for temporary files as a + * string. + * @since v0.9.9 + */ + function tmpdir(): string; + /** + * Returns a string identifying the endianness of the CPU for which the Node.js + * binary was compiled. + * + * Possible values are `'BE'` for big endian and `'LE'` for little endian. + * @since v0.9.4 + */ + function endianness(): 'BE' | 'LE'; + /** + * Returns the scheduling priority for the process specified by `pid`. If `pid` is + * not provided or is `0`, the priority of the current process is returned. + * @since v10.10.0 + * @param [pid=0] The process ID to retrieve scheduling priority for. + */ + function getPriority(pid?: number): number; + /** + * Attempts to set the scheduling priority for the process specified by `pid`. If`pid` is not provided or is `0`, the process ID of the current process is used. + * + * The `priority` input must be an integer between `-20` (high priority) and `19`(low priority). Due to differences between Unix priority levels and Windows + * priority classes, `priority` is mapped to one of six priority constants in`os.constants.priority`. When retrieving a process priority level, this range + * mapping may cause the return value to be slightly different on Windows. To avoid + * confusion, set `priority` to one of the priority constants. + * + * On Windows, setting priority to `PRIORITY_HIGHEST` requires elevated user + * privileges. Otherwise the set priority will be silently reduced to`PRIORITY_HIGH`. + * @since v10.10.0 + * @param [pid=0] The process ID to set scheduling priority for. + * @param priority The scheduling priority to assign to the process. + */ + function setPriority(priority: number): void; + function setPriority(pid: number, priority: number): void; +} +declare module 'node:os' { + export * from 'os'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..9f6d54469e6901099f730bf13e653582e5d58ba4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/package.json" @@ -0,0 +1,220 @@ +{ + "name": "@types/node", + "version": "17.0.25", + "description": "TypeScript definitions for Node.js", + "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", + "license": "MIT", + "contributors": [ + { + "name": "Microsoft TypeScript", + "url": "https://github.com/Microsoft", + "githubUsername": "Microsoft" + }, + { + "name": "DefinitelyTyped", + "url": "https://github.com/DefinitelyTyped", + "githubUsername": "DefinitelyTyped" + }, + { + "name": "Alberto Schiabel", + "url": "https://github.com/jkomyno", + "githubUsername": "jkomyno" + }, + { + "name": "Alvis HT Tang", + "url": "https://github.com/alvis", + "githubUsername": "alvis" + }, + { + "name": "Andrew Makarov", + "url": "https://github.com/r3nya", + "githubUsername": "r3nya" + }, + { + "name": "Benjamin Toueg", + "url": "https://github.com/btoueg", + "githubUsername": "btoueg" + }, + { + "name": "Chigozirim C.", + "url": "https://github.com/smac89", + "githubUsername": "smac89" + }, + { + "name": "David Junger", + "url": "https://github.com/touffy", + "githubUsername": "touffy" + }, + { + "name": "Deividas Bakanas", + "url": "https://github.com/DeividasBakanas", + "githubUsername": "DeividasBakanas" + }, + { + "name": "Eugene Y. Q. Shen", + "url": "https://github.com/eyqs", + "githubUsername": "eyqs" + }, + { + "name": "Hannes Magnusson", + "url": "https://github.com/Hannes-Magnusson-CK", + "githubUsername": "Hannes-Magnusson-CK" + }, + { + "name": "Huw", + "url": "https://github.com/hoo29", + "githubUsername": "hoo29" + }, + { + "name": "Kelvin Jin", + "url": "https://github.com/kjin", + "githubUsername": "kjin" + }, + { + "name": "Klaus Meinhardt", + "url": "https://github.com/ajafff", + "githubUsername": "ajafff" + }, + { + "name": "Lishude", + "url": "https://github.com/islishude", + "githubUsername": "islishude" + }, + { + "name": "Mariusz Wiktorczyk", + "url": "https://github.com/mwiktorczyk", + "githubUsername": "mwiktorczyk" + }, + { + "name": "Mohsen Azimi", + "url": "https://github.com/mohsen1", + "githubUsername": "mohsen1" + }, + { + "name": "Nicolas Even", + "url": "https://github.com/n-e", + "githubUsername": "n-e" + }, + { + "name": "Nikita Galkin", + "url": "https://github.com/galkin", + "githubUsername": "galkin" + }, + { + "name": "Parambir Singh", + "url": "https://github.com/parambirs", + "githubUsername": "parambirs" + }, + { + "name": "Sebastian Silbermann", + "url": "https://github.com/eps1lon", + "githubUsername": "eps1lon" + }, + { + "name": "Simon Schick", + "url": "https://github.com/SimonSchick", + "githubUsername": "SimonSchick" + }, + { + "name": "Thomas den Hollander", + "url": "https://github.com/ThomasdenH", + "githubUsername": "ThomasdenH" + }, + { + "name": "Wilco Bakker", + "url": "https://github.com/WilcoBakker", + "githubUsername": "WilcoBakker" + }, + { + "name": "wwwy3y3", + "url": "https://github.com/wwwy3y3", + "githubUsername": "wwwy3y3" + }, + { + "name": "Samuel Ainsworth", + "url": "https://github.com/samuela", + "githubUsername": "samuela" + }, + { + "name": "Kyle Uehlein", + "url": "https://github.com/kuehlein", + "githubUsername": "kuehlein" + }, + { + "name": "Thanik Bhongbhibhat", + "url": "https://github.com/bhongy", + "githubUsername": "bhongy" + }, + { + "name": "Marcin Kopacz", + "url": "https://github.com/chyzwar", + "githubUsername": "chyzwar" + }, + { + "name": "Trivikram Kamat", + "url": "https://github.com/trivikr", + "githubUsername": "trivikr" + }, + { + "name": "Junxiao Shi", + "url": "https://github.com/yoursunny", + "githubUsername": "yoursunny" + }, + { + "name": "Ilia Baryshnikov", + "url": "https://github.com/qwelias", + "githubUsername": "qwelias" + }, + { + "name": "ExE Boss", + "url": "https://github.com/ExE-Boss", + "githubUsername": "ExE-Boss" + }, + { + "name": "Piotr Błażejewicz", + "url": "https://github.com/peterblazejewicz", + "githubUsername": "peterblazejewicz" + }, + { + "name": "Anna Henningsen", + "url": "https://github.com/addaleax", + "githubUsername": "addaleax" + }, + { + "name": "Victor Perin", + "url": "https://github.com/victorperin", + "githubUsername": "victorperin" + }, + { + "name": "Yongsheng Zhang", + "url": "https://github.com/ZYSzys", + "githubUsername": "ZYSzys" + }, + { + "name": "NodeJS Contributors", + "url": "https://github.com/NodeJS", + "githubUsername": "NodeJS" + }, + { + "name": "Linus Unnebäck", + "url": "https://github.com/LinusU", + "githubUsername": "LinusU" + }, + { + "name": "wafuwafu13", + "url": "https://github.com/wafuwafu13", + "githubUsername": "wafuwafu13" + } + ], + "main": "", + "types": "index.d.ts", + "repository": { + "type": "git", + "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", + "directory": "types/node" + }, + "scripts": {}, + "dependencies": {}, + "typesPublisherContentHash": "825e787f0a7c6fde372f102a7e96d0c64b5cb4ff7c07557941bedf371f097b76", + "typeScriptVersion": "3.9" +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/path.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/path.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..c19dce83d5a2ce498bd96cca4f85bc633b4e8ae6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/path.d.ts" @@ -0,0 +1,180 @@ +declare module 'path/posix' { + import path = require('path'); + export = path; +} +declare module 'path/win32' { + import path = require('path'); + export = path; +} +/** + * The `path` module provides utilities for working with file and directory paths. + * It can be accessed using: + * + * ```js + * const path = require('path'); + * ``` + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/path.js) + */ +declare module 'path' { + namespace path { + /** + * A parsed path object generated by path.parse() or consumed by path.format(). + */ + interface ParsedPath { + /** + * The root of the path such as '/' or 'c:\' + */ + root: string; + /** + * The full directory path such as '/home/user/dir' or 'c:\path\dir' + */ + dir: string; + /** + * The file name including extension (if any) such as 'index.html' + */ + base: string; + /** + * The file extension (if any) such as '.html' + */ + ext: string; + /** + * The file name without extension (if any) such as 'index' + */ + name: string; + } + interface FormatInputPathObject { + /** + * The root of the path such as '/' or 'c:\' + */ + root?: string | undefined; + /** + * The full directory path such as '/home/user/dir' or 'c:\path\dir' + */ + dir?: string | undefined; + /** + * The file name including extension (if any) such as 'index.html' + */ + base?: string | undefined; + /** + * The file extension (if any) such as '.html' + */ + ext?: string | undefined; + /** + * The file name without extension (if any) such as 'index' + */ + name?: string | undefined; + } + interface PlatformPath { + /** + * Normalize a string path, reducing '..' and '.' parts. + * When multiple slashes are found, they're replaced by a single one; when the path contains a trailing slash, it is preserved. On Windows backslashes are used. + * + * @param p string path to normalize. + */ + normalize(p: string): string; + /** + * Join all arguments together and normalize the resulting path. + * Arguments must be strings. In v0.8, non-string arguments were silently ignored. In v0.10 and up, an exception is thrown. + * + * @param paths paths to join. + */ + join(...paths: string[]): string; + /** + * The right-most parameter is considered {to}. Other parameters are considered an array of {from}. + * + * Starting from leftmost {from} parameter, resolves {to} to an absolute path. + * + * If {to} isn't already absolute, {from} arguments are prepended in right to left order, + * until an absolute path is found. If after using all {from} paths still no absolute path is found, + * the current working directory is used as well. The resulting path is normalized, + * and trailing slashes are removed unless the path gets resolved to the root directory. + * + * @param pathSegments string paths to join. Non-string arguments are ignored. + */ + resolve(...pathSegments: string[]): string; + /** + * Determines whether {path} is an absolute path. An absolute path will always resolve to the same location, regardless of the working directory. + * + * @param path path to test. + */ + isAbsolute(p: string): boolean; + /** + * Solve the relative path from {from} to {to}. + * At times we have two absolute paths, and we need to derive the relative path from one to the other. This is actually the reverse transform of path.resolve. + */ + relative(from: string, to: string): string; + /** + * Return the directory name of a path. Similar to the Unix dirname command. + * + * @param p the path to evaluate. + */ + dirname(p: string): string; + /** + * Return the last portion of a path. Similar to the Unix basename command. + * Often used to extract the file name from a fully qualified path. + * + * @param p the path to evaluate. + * @param ext optionally, an extension to remove from the result. + */ + basename(p: string, ext?: string): string; + /** + * Return the extension of the path, from the last '.' to end of string in the last portion of the path. + * If there is no '.' in the last portion of the path or the first character of it is '.', then it returns an empty string + * + * @param p the path to evaluate. + */ + extname(p: string): string; + /** + * The platform-specific file separator. '\\' or '/'. + */ + readonly sep: string; + /** + * The platform-specific file delimiter. ';' or ':'. + */ + readonly delimiter: string; + /** + * Returns an object from a path string - the opposite of format(). + * + * @param pathString path to evaluate. + */ + parse(p: string): ParsedPath; + /** + * Returns a path string from an object - the opposite of parse(). + * + * @param pathString path to evaluate. + */ + format(pP: FormatInputPathObject): string; + /** + * On Windows systems only, returns an equivalent namespace-prefixed path for the given path. + * If path is not a string, path will be returned without modifications. + * This method is meaningful only on Windows system. + * On POSIX systems, the method is non-operational and always returns path without modifications. + */ + toNamespacedPath(path: string): string; + /** + * Posix specific pathing. + * Same as parent object on posix. + */ + readonly posix: PlatformPath; + /** + * Windows specific pathing. + * Same as parent object on windows + */ + readonly win32: PlatformPath; + } + } + const path: path.PlatformPath; + export = path; +} +declare module 'node:path' { + import path = require('path'); + export = path; +} +declare module 'node:path/posix' { + import path = require('path/posix'); + export = path; +} +declare module 'node:path/win32' { + import path = require('path/win32'); + export = path; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/perf_hooks.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/perf_hooks.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..7d1e0b34161d29416f8010a08524bebf51d8ee3e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/perf_hooks.d.ts" @@ -0,0 +1,557 @@ +/** + * This module provides an implementation of a subset of the W3C [Web Performance APIs](https://w3c.github.io/perf-timing-primer/) as well as additional APIs for + * Node.js-specific performance measurements. + * + * Node.js supports the following [Web Performance APIs](https://w3c.github.io/perf-timing-primer/): + * + * * [High Resolution Time](https://www.w3.org/TR/hr-time-2) + * * [Performance Timeline](https://w3c.github.io/performance-timeline/) + * * [User Timing](https://www.w3.org/TR/user-timing/) + * + * ```js + * const { PerformanceObserver, performance } = require('perf_hooks'); + * + * const obs = new PerformanceObserver((items) => { + * console.log(items.getEntries()[0].duration); + * performance.clearMarks(); + * }); + * obs.observe({ type: 'measure' }); + * performance.measure('Start to Now'); + * + * performance.mark('A'); + * doSomeLongRunningProcess(() => { + * performance.measure('A to Now', 'A'); + * + * performance.mark('B'); + * performance.measure('A to B', 'A', 'B'); + * }); + * ``` + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/perf_hooks.js) + */ +declare module 'perf_hooks' { + import { AsyncResource } from 'node:async_hooks'; + type EntryType = 'node' | 'mark' | 'measure' | 'gc' | 'function' | 'http2' | 'http'; + interface NodeGCPerformanceDetail { + /** + * When `performanceEntry.entryType` is equal to 'gc', `the performance.kind` property identifies + * the type of garbage collection operation that occurred. + * See perf_hooks.constants for valid values. + */ + readonly kind?: number | undefined; + /** + * When `performanceEntry.entryType` is equal to 'gc', the `performance.flags` + * property contains additional information about garbage collection operation. + * See perf_hooks.constants for valid values. + */ + readonly flags?: number | undefined; + } + /** + * @since v8.5.0 + */ + class PerformanceEntry { + protected constructor(); + /** + * The total number of milliseconds elapsed for this entry. This value will not + * be meaningful for all Performance Entry types. + * @since v8.5.0 + */ + readonly duration: number; + /** + * The name of the performance entry. + * @since v8.5.0 + */ + readonly name: string; + /** + * The high resolution millisecond timestamp marking the starting time of the + * Performance Entry. + * @since v8.5.0 + */ + readonly startTime: number; + /** + * The type of the performance entry. It may be one of: + * + * * `'node'` (Node.js only) + * * `'mark'` (available on the Web) + * * `'measure'` (available on the Web) + * * `'gc'` (Node.js only) + * * `'function'` (Node.js only) + * * `'http2'` (Node.js only) + * * `'http'` (Node.js only) + * @since v8.5.0 + */ + readonly entryType: EntryType; + /** + * Additional detail specific to the `entryType`. + * @since v16.0.0 + */ + readonly detail?: NodeGCPerformanceDetail | unknown | undefined; // TODO: Narrow this based on entry type. + } + /** + * _This property is an extension by Node.js. It is not available in Web browsers._ + * + * Provides timing details for Node.js itself. The constructor of this class + * is not exposed to users. + * @since v8.5.0 + */ + class PerformanceNodeTiming extends PerformanceEntry { + /** + * The high resolution millisecond timestamp at which the Node.js process + * completed bootstrapping. If bootstrapping has not yet finished, the property + * has the value of -1. + * @since v8.5.0 + */ + readonly bootstrapComplete: number; + /** + * The high resolution millisecond timestamp at which the Node.js environment was + * initialized. + * @since v8.5.0 + */ + readonly environment: number; + /** + * The high resolution millisecond timestamp of the amount of time the event loop + * has been idle within the event loop's event provider (e.g. `epoll_wait`). This + * does not take CPU usage into consideration. If the event loop has not yet + * started (e.g., in the first tick of the main script), the property has the + * value of 0. + * @since v14.10.0, v12.19.0 + */ + readonly idleTime: number; + /** + * The high resolution millisecond timestamp at which the Node.js event loop + * exited. If the event loop has not yet exited, the property has the value of -1\. + * It can only have a value of not -1 in a handler of the `'exit'` event. + * @since v8.5.0 + */ + readonly loopExit: number; + /** + * The high resolution millisecond timestamp at which the Node.js event loop + * started. If the event loop has not yet started (e.g., in the first tick of the + * main script), the property has the value of -1. + * @since v8.5.0 + */ + readonly loopStart: number; + /** + * The high resolution millisecond timestamp at which the V8 platform was + * initialized. + * @since v8.5.0 + */ + readonly v8Start: number; + } + interface EventLoopUtilization { + idle: number; + active: number; + utilization: number; + } + /** + * @param util1 The result of a previous call to eventLoopUtilization() + * @param util2 The result of a previous call to eventLoopUtilization() prior to util1 + */ + type EventLoopUtilityFunction = (util1?: EventLoopUtilization, util2?: EventLoopUtilization) => EventLoopUtilization; + interface MarkOptions { + /** + * Additional optional detail to include with the mark. + */ + detail?: unknown | undefined; + /** + * An optional timestamp to be used as the mark time. + * @default `performance.now()`. + */ + startTime?: number | undefined; + } + interface MeasureOptions { + /** + * Additional optional detail to include with the mark. + */ + detail?: unknown | undefined; + /** + * Duration between start and end times. + */ + duration?: number | undefined; + /** + * Timestamp to be used as the end time, or a string identifying a previously recorded mark. + */ + end?: number | string | undefined; + /** + * Timestamp to be used as the start time, or a string identifying a previously recorded mark. + */ + start?: number | string | undefined; + } + interface TimerifyOptions { + /** + * A histogram object created using + * `perf_hooks.createHistogram()` that will record runtime durations in + * nanoseconds. + */ + histogram?: RecordableHistogram | undefined; + } + interface Performance { + /** + * If name is not provided, removes all PerformanceMark objects from the Performance Timeline. + * If name is provided, removes only the named mark. + * @param name + */ + clearMarks(name?: string): void; + /** + * Creates a new PerformanceMark entry in the Performance Timeline. + * A PerformanceMark is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'mark', + * and whose performanceEntry.duration is always 0. + * Performance marks are used to mark specific significant moments in the Performance Timeline. + * @param name + */ + mark(name?: string, options?: MarkOptions): void; + /** + * Creates a new PerformanceMeasure entry in the Performance Timeline. + * A PerformanceMeasure is a subclass of PerformanceEntry whose performanceEntry.entryType is always 'measure', + * and whose performanceEntry.duration measures the number of milliseconds elapsed since startMark and endMark. + * + * The startMark argument may identify any existing PerformanceMark in the the Performance Timeline, or may identify + * any of the timestamp properties provided by the PerformanceNodeTiming class. If the named startMark does not exist, + * then startMark is set to timeOrigin by default. + * + * The endMark argument must identify any existing PerformanceMark in the the Performance Timeline or any of the timestamp + * properties provided by the PerformanceNodeTiming class. If the named endMark does not exist, an error will be thrown. + * @param name + * @param startMark + * @param endMark + */ + measure(name: string, startMark?: string, endMark?: string): void; + measure(name: string, options: MeasureOptions): void; + /** + * An instance of the PerformanceNodeTiming class that provides performance metrics for specific Node.js operational milestones. + */ + readonly nodeTiming: PerformanceNodeTiming; + /** + * @return the current high resolution millisecond timestamp + */ + now(): number; + /** + * The timeOrigin specifies the high resolution millisecond timestamp from which all performance metric durations are measured. + */ + readonly timeOrigin: number; + /** + * Wraps a function within a new function that measures the running time of the wrapped function. + * A PerformanceObserver must be subscribed to the 'function' event type in order for the timing details to be accessed. + * @param fn + */ + timerify any>(fn: T, options?: TimerifyOptions): T; + /** + * eventLoopUtilization is similar to CPU utilization except that it is calculated using high precision wall-clock time. + * It represents the percentage of time the event loop has spent outside the event loop's event provider (e.g. epoll_wait). + * No other CPU idle time is taken into consideration. + */ + eventLoopUtilization: EventLoopUtilityFunction; + } + interface PerformanceObserverEntryList { + /** + * Returns a list of `PerformanceEntry` objects in chronological order + * with respect to `performanceEntry.startTime`. + * + * ```js + * const { + * performance, + * PerformanceObserver + * } = require('perf_hooks'); + * + * const obs = new PerformanceObserver((perfObserverList, observer) => { + * console.log(perfObserverList.getEntries()); + * + * * [ + * * PerformanceEntry { + * * name: 'test', + * * entryType: 'mark', + * * startTime: 81.465639, + * * duration: 0 + * * }, + * * PerformanceEntry { + * * name: 'meow', + * * entryType: 'mark', + * * startTime: 81.860064, + * * duration: 0 + * * } + * * ] + * + * observer.disconnect(); + * }); + * obs.observe({ type: 'mark' }); + * + * performance.mark('test'); + * performance.mark('meow'); + * ``` + * @since v8.5.0 + */ + getEntries(): PerformanceEntry[]; + /** + * Returns a list of `PerformanceEntry` objects in chronological order + * with respect to `performanceEntry.startTime` whose `performanceEntry.name` is + * equal to `name`, and optionally, whose `performanceEntry.entryType` is equal to`type`. + * + * ```js + * const { + * performance, + * PerformanceObserver + * } = require('perf_hooks'); + * + * const obs = new PerformanceObserver((perfObserverList, observer) => { + * console.log(perfObserverList.getEntriesByName('meow')); + * + * * [ + * * PerformanceEntry { + * * name: 'meow', + * * entryType: 'mark', + * * startTime: 98.545991, + * * duration: 0 + * * } + * * ] + * + * console.log(perfObserverList.getEntriesByName('nope')); // [] + * + * console.log(perfObserverList.getEntriesByName('test', 'mark')); + * + * * [ + * * PerformanceEntry { + * * name: 'test', + * * entryType: 'mark', + * * startTime: 63.518931, + * * duration: 0 + * * } + * * ] + * + * console.log(perfObserverList.getEntriesByName('test', 'measure')); // [] + * observer.disconnect(); + * }); + * obs.observe({ entryTypes: ['mark', 'measure'] }); + * + * performance.mark('test'); + * performance.mark('meow'); + * ``` + * @since v8.5.0 + */ + getEntriesByName(name: string, type?: EntryType): PerformanceEntry[]; + /** + * Returns a list of `PerformanceEntry` objects in chronological order + * with respect to `performanceEntry.startTime` whose `performanceEntry.entryType`is equal to `type`. + * + * ```js + * const { + * performance, + * PerformanceObserver + * } = require('perf_hooks'); + * + * const obs = new PerformanceObserver((perfObserverList, observer) => { + * console.log(perfObserverList.getEntriesByType('mark')); + * + * * [ + * * PerformanceEntry { + * * name: 'test', + * * entryType: 'mark', + * * startTime: 55.897834, + * * duration: 0 + * * }, + * * PerformanceEntry { + * * name: 'meow', + * * entryType: 'mark', + * * startTime: 56.350146, + * * duration: 0 + * * } + * * ] + * + * observer.disconnect(); + * }); + * obs.observe({ type: 'mark' }); + * + * performance.mark('test'); + * performance.mark('meow'); + * ``` + * @since v8.5.0 + */ + getEntriesByType(type: EntryType): PerformanceEntry[]; + } + type PerformanceObserverCallback = (list: PerformanceObserverEntryList, observer: PerformanceObserver) => void; + class PerformanceObserver extends AsyncResource { + constructor(callback: PerformanceObserverCallback); + /** + * Disconnects the `PerformanceObserver` instance from all notifications. + * @since v8.5.0 + */ + disconnect(): void; + /** + * Subscribes the `PerformanceObserver` instance to notifications of new `PerformanceEntry` instances identified either by `options.entryTypes`or `options.type`: + * + * ```js + * const { + * performance, + * PerformanceObserver + * } = require('perf_hooks'); + * + * const obs = new PerformanceObserver((list, observer) => { + * // Called three times synchronously. `list` contains one item. + * }); + * obs.observe({ type: 'mark' }); + * + * for (let n = 0; n < 3; n++) + * performance.mark(`test${n}`); + * ``` + * @since v8.5.0 + */ + observe( + options: + | { + entryTypes: ReadonlyArray; + buffered?: boolean | undefined; + } + | { + type: EntryType; + buffered?: boolean | undefined; + } + ): void; + } + namespace constants { + const NODE_PERFORMANCE_GC_MAJOR: number; + const NODE_PERFORMANCE_GC_MINOR: number; + const NODE_PERFORMANCE_GC_INCREMENTAL: number; + const NODE_PERFORMANCE_GC_WEAKCB: number; + const NODE_PERFORMANCE_GC_FLAGS_NO: number; + const NODE_PERFORMANCE_GC_FLAGS_CONSTRUCT_RETAINED: number; + const NODE_PERFORMANCE_GC_FLAGS_FORCED: number; + const NODE_PERFORMANCE_GC_FLAGS_SYNCHRONOUS_PHANTOM_PROCESSING: number; + const NODE_PERFORMANCE_GC_FLAGS_ALL_AVAILABLE_GARBAGE: number; + const NODE_PERFORMANCE_GC_FLAGS_ALL_EXTERNAL_MEMORY: number; + const NODE_PERFORMANCE_GC_FLAGS_SCHEDULE_IDLE: number; + } + const performance: Performance; + interface EventLoopMonitorOptions { + /** + * The sampling rate in milliseconds. + * Must be greater than zero. + * @default 10 + */ + resolution?: number | undefined; + } + interface Histogram { + /** + * Returns a `Map` object detailing the accumulated percentile distribution. + * @since v11.10.0 + */ + readonly percentiles: Map; + /** + * The number of times the event loop delay exceeded the maximum 1 hour event + * loop delay threshold. + * @since v11.10.0 + */ + readonly exceeds: number; + /** + * The minimum recorded event loop delay. + * @since v11.10.0 + */ + readonly min: number; + /** + * The maximum recorded event loop delay. + * @since v11.10.0 + */ + readonly max: number; + /** + * The mean of the recorded event loop delays. + * @since v11.10.0 + */ + readonly mean: number; + /** + * The standard deviation of the recorded event loop delays. + * @since v11.10.0 + */ + readonly stddev: number; + /** + * Resets the collected histogram data. + * @since v11.10.0 + */ + reset(): void; + /** + * Returns the value at the given percentile. + * @since v11.10.0 + * @param percentile A percentile value in the range (0, 100]. + */ + percentile(percentile: number): number; + } + interface IntervalHistogram extends Histogram { + /** + * Enables the update interval timer. Returns `true` if the timer was + * started, `false` if it was already started. + * @since v11.10.0 + */ + enable(): boolean; + /** + * Disables the update interval timer. Returns `true` if the timer was + * stopped, `false` if it was already stopped. + * @since v11.10.0 + */ + disable(): boolean; + } + interface RecordableHistogram extends Histogram { + /** + * @since v15.9.0, v14.18.0 + * @param val The amount to record in the histogram. + */ + record(val: number | bigint): void; + /** + * Calculates the amount of time (in nanoseconds) that has passed since the + * previous call to `recordDelta()` and records that amount in the histogram. + * + * ## Examples + * @since v15.9.0, v14.18.0 + */ + recordDelta(): void; + } + /** + * _This property is an extension by Node.js. It is not available in Web browsers._ + * + * Creates an `IntervalHistogram` object that samples and reports the event loop + * delay over time. The delays will be reported in nanoseconds. + * + * Using a timer to detect approximate event loop delay works because the + * execution of timers is tied specifically to the lifecycle of the libuv + * event loop. That is, a delay in the loop will cause a delay in the execution + * of the timer, and those delays are specifically what this API is intended to + * detect. + * + * ```js + * const { monitorEventLoopDelay } = require('perf_hooks'); + * const h = monitorEventLoopDelay({ resolution: 20 }); + * h.enable(); + * // Do something. + * h.disable(); + * console.log(h.min); + * console.log(h.max); + * console.log(h.mean); + * console.log(h.stddev); + * console.log(h.percentiles); + * console.log(h.percentile(50)); + * console.log(h.percentile(99)); + * ``` + * @since v11.10.0 + */ + function monitorEventLoopDelay(options?: EventLoopMonitorOptions): IntervalHistogram; + interface CreateHistogramOptions { + /** + * The minimum recordable value. Must be an integer value greater than 0. + * @default 1 + */ + min?: number | bigint | undefined; + /** + * The maximum recordable value. Must be an integer value greater than min. + * @default Number.MAX_SAFE_INTEGER + */ + max?: number | bigint | undefined; + /** + * The number of accuracy digits. Must be a number between 1 and 5. + * @default 3 + */ + figures?: number | undefined; + } + /** + * Returns a `RecordableHistogram`. + * @since v15.9.0, v14.18.0 + */ + function createHistogram(options?: CreateHistogramOptions): RecordableHistogram; +} +declare module 'node:perf_hooks' { + export * from 'perf_hooks'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/process.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/process.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..24bbfba5822f2d76a8675e7a6af172bebffe8e56 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/process.d.ts" @@ -0,0 +1,1481 @@ +declare module 'process' { + import * as tty from 'node:tty'; + import { Worker } from 'node:worker_threads'; + global { + var process: NodeJS.Process; + namespace NodeJS { + // this namespace merge is here because these are specifically used + // as the type for process.stdin, process.stdout, and process.stderr. + // they can't live in tty.d.ts because we need to disambiguate the imported name. + interface ReadStream extends tty.ReadStream {} + interface WriteStream extends tty.WriteStream {} + interface MemoryUsageFn { + /** + * The `process.memoryUsage()` method iterate over each page to gather informations about memory + * usage which can be slow depending on the program memory allocations. + */ + (): MemoryUsage; + /** + * method returns an integer representing the Resident Set Size (RSS) in bytes. + */ + rss(): number; + } + interface MemoryUsage { + rss: number; + heapTotal: number; + heapUsed: number; + external: number; + arrayBuffers: number; + } + interface CpuUsage { + user: number; + system: number; + } + interface ProcessRelease { + name: string; + sourceUrl?: string | undefined; + headersUrl?: string | undefined; + libUrl?: string | undefined; + lts?: string | undefined; + } + interface ProcessVersions extends Dict { + http_parser: string; + node: string; + v8: string; + ares: string; + uv: string; + zlib: string; + modules: string; + openssl: string; + } + type Platform = 'aix' | 'android' | 'darwin' | 'freebsd' | 'haiku' | 'linux' | 'openbsd' | 'sunos' | 'win32' | 'cygwin' | 'netbsd'; + type Signals = + | 'SIGABRT' + | 'SIGALRM' + | 'SIGBUS' + | 'SIGCHLD' + | 'SIGCONT' + | 'SIGFPE' + | 'SIGHUP' + | 'SIGILL' + | 'SIGINT' + | 'SIGIO' + | 'SIGIOT' + | 'SIGKILL' + | 'SIGPIPE' + | 'SIGPOLL' + | 'SIGPROF' + | 'SIGPWR' + | 'SIGQUIT' + | 'SIGSEGV' + | 'SIGSTKFLT' + | 'SIGSTOP' + | 'SIGSYS' + | 'SIGTERM' + | 'SIGTRAP' + | 'SIGTSTP' + | 'SIGTTIN' + | 'SIGTTOU' + | 'SIGUNUSED' + | 'SIGURG' + | 'SIGUSR1' + | 'SIGUSR2' + | 'SIGVTALRM' + | 'SIGWINCH' + | 'SIGXCPU' + | 'SIGXFSZ' + | 'SIGBREAK' + | 'SIGLOST' + | 'SIGINFO'; + type UncaughtExceptionOrigin = 'uncaughtException' | 'unhandledRejection'; + type MultipleResolveType = 'resolve' | 'reject'; + type BeforeExitListener = (code: number) => void; + type DisconnectListener = () => void; + type ExitListener = (code: number) => void; + type RejectionHandledListener = (promise: Promise) => void; + type UncaughtExceptionListener = (error: Error, origin: UncaughtExceptionOrigin) => void; + /** + * Most of the time the unhandledRejection will be an Error, but this should not be relied upon + * as *anything* can be thrown/rejected, it is therefore unsafe to assume the the value is an Error. + */ + type UnhandledRejectionListener = (reason: unknown, promise: Promise) => void; + type WarningListener = (warning: Error) => void; + type MessageListener = (message: unknown, sendHandle: unknown) => void; + type SignalsListener = (signal: Signals) => void; + type MultipleResolveListener = (type: MultipleResolveType, promise: Promise, value: unknown) => void; + type WorkerListener = (worker: Worker) => void; + interface Socket extends ReadWriteStream { + isTTY?: true | undefined; + } + // Alias for compatibility + interface ProcessEnv extends Dict { + /** + * Can be used to change the default timezone at runtime + */ + TZ?: string; + } + interface HRTime { + (time?: [number, number]): [number, number]; + bigint(): bigint; + } + interface ProcessReport { + /** + * Directory where the report is written. + * working directory of the Node.js process. + * @default '' indicating that reports are written to the current + */ + directory: string; + /** + * Filename where the report is written. + * The default value is the empty string. + * @default '' the output filename will be comprised of a timestamp, + * PID, and sequence number. + */ + filename: string; + /** + * Returns a JSON-formatted diagnostic report for the running process. + * The report's JavaScript stack trace is taken from err, if present. + */ + getReport(err?: Error): string; + /** + * If true, a diagnostic report is generated on fatal errors, + * such as out of memory errors or failed C++ assertions. + * @default false + */ + reportOnFatalError: boolean; + /** + * If true, a diagnostic report is generated when the process + * receives the signal specified by process.report.signal. + * @default false + */ + reportOnSignal: boolean; + /** + * If true, a diagnostic report is generated on uncaught exception. + * @default false + */ + reportOnUncaughtException: boolean; + /** + * The signal used to trigger the creation of a diagnostic report. + * @default 'SIGUSR2' + */ + signal: Signals; + /** + * Writes a diagnostic report to a file. If filename is not provided, the default filename + * includes the date, time, PID, and a sequence number. + * The report's JavaScript stack trace is taken from err, if present. + * + * @param fileName Name of the file where the report is written. + * This should be a relative path, that will be appended to the directory specified in + * `process.report.directory`, or the current working directory of the Node.js process, + * if unspecified. + * @param error A custom error used for reporting the JavaScript stack. + * @return Filename of the generated report. + */ + writeReport(fileName?: string): string; + writeReport(error?: Error): string; + writeReport(fileName?: string, err?: Error): string; + } + interface ResourceUsage { + fsRead: number; + fsWrite: number; + involuntaryContextSwitches: number; + ipcReceived: number; + ipcSent: number; + majorPageFault: number; + maxRSS: number; + minorPageFault: number; + sharedMemorySize: number; + signalsCount: number; + swappedOut: number; + systemCPUTime: number; + unsharedDataSize: number; + unsharedStackSize: number; + userCPUTime: number; + voluntaryContextSwitches: number; + } + interface EmitWarningOptions { + /** + * When `warning` is a `string`, `type` is the name to use for the _type_ of warning being emitted. + * + * @default 'Warning' + */ + type?: string | undefined; + /** + * A unique identifier for the warning instance being emitted. + */ + code?: string | undefined; + /** + * When `warning` is a `string`, `ctor` is an optional function used to limit the generated stack trace. + * + * @default process.emitWarning + */ + ctor?: Function | undefined; + /** + * Additional text to include with the error. + */ + detail?: string | undefined; + } + interface ProcessConfig { + readonly target_defaults: { + readonly cflags: any[]; + readonly default_configuration: string; + readonly defines: string[]; + readonly include_dirs: string[]; + readonly libraries: string[]; + }; + readonly variables: { + readonly clang: number; + readonly host_arch: string; + readonly node_install_npm: boolean; + readonly node_install_waf: boolean; + readonly node_prefix: string; + readonly node_shared_openssl: boolean; + readonly node_shared_v8: boolean; + readonly node_shared_zlib: boolean; + readonly node_use_dtrace: boolean; + readonly node_use_etw: boolean; + readonly node_use_openssl: boolean; + readonly target_arch: string; + readonly v8_no_strict_aliasing: number; + readonly v8_use_snapshot: boolean; + readonly visibility: string; + }; + } + interface Process extends EventEmitter { + /** + * The `process.stdout` property returns a stream connected to`stdout` (fd `1`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `1` refers to a file, in which case it is + * a `Writable` stream. + * + * For example, to copy `process.stdin` to `process.stdout`: + * + * ```js + * import { stdin, stdout } from 'process'; + * + * stdin.pipe(stdout); + * ``` + * + * `process.stdout` differs from other Node.js streams in important ways. See `note on process I/O` for more information. + */ + stdout: WriteStream & { + fd: 1; + }; + /** + * The `process.stderr` property returns a stream connected to`stderr` (fd `2`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `2` refers to a file, in which case it is + * a `Writable` stream. + * + * `process.stderr` differs from other Node.js streams in important ways. See `note on process I/O` for more information. + */ + stderr: WriteStream & { + fd: 2; + }; + /** + * The `process.stdin` property returns a stream connected to`stdin` (fd `0`). It is a `net.Socket` (which is a `Duplex` stream) unless fd `0` refers to a file, in which case it is + * a `Readable` stream. + * + * For details of how to read from `stdin` see `readable.read()`. + * + * As a `Duplex` stream, `process.stdin` can also be used in "old" mode that + * is compatible with scripts written for Node.js prior to v0.10\. + * For more information see `Stream compatibility`. + * + * In "old" streams mode the `stdin` stream is paused by default, so one + * must call `process.stdin.resume()` to read from it. Note also that calling`process.stdin.resume()` itself would switch stream to "old" mode. + */ + stdin: ReadStream & { + fd: 0; + }; + openStdin(): Socket; + /** + * The `process.argv` property returns an array containing the command-line + * arguments passed when the Node.js process was launched. The first element will + * be {@link execPath}. See `process.argv0` if access to the original value + * of `argv[0]` is needed. The second element will be the path to the JavaScript + * file being executed. The remaining elements will be any additional command-line + * arguments. + * + * For example, assuming the following script for `process-args.js`: + * + * ```js + * import { argv } from 'process'; + * + * // print process.argv + * argv.forEach((val, index) => { + * console.log(`${index}: ${val}`); + * }); + * ``` + * + * Launching the Node.js process as: + * + * ```console + * $ node process-args.js one two=three four + * ``` + * + * Would generate the output: + * + * ```text + * 0: /usr/local/bin/node + * 1: /Users/mjr/work/node/process-args.js + * 2: one + * 3: two=three + * 4: four + * ``` + * @since v0.1.27 + */ + argv: string[]; + /** + * The `process.argv0` property stores a read-only copy of the original value of`argv[0]` passed when Node.js starts. + * + * ```console + * $ bash -c 'exec -a customArgv0 ./node' + * > process.argv[0] + * '/Volumes/code/external/node/out/Release/node' + * > process.argv0 + * 'customArgv0' + * ``` + * @since v6.4.0 + */ + argv0: string; + /** + * The `process.execArgv` property returns the set of Node.js-specific command-line + * options passed when the Node.js process was launched. These options do not + * appear in the array returned by the {@link argv} property, and do not + * include the Node.js executable, the name of the script, or any options following + * the script name. These options are useful in order to spawn child processes with + * the same execution environment as the parent. + * + * ```console + * $ node --harmony script.js --version + * ``` + * + * Results in `process.execArgv`: + * + * ```js + * ['--harmony'] + * ``` + * + * And `process.argv`: + * + * ```js + * ['/usr/local/bin/node', 'script.js', '--version'] + * ``` + * + * Refer to `Worker constructor` for the detailed behavior of worker + * threads with this property. + * @since v0.7.7 + */ + execArgv: string[]; + /** + * The `process.execPath` property returns the absolute pathname of the executable + * that started the Node.js process. Symbolic links, if any, are resolved. + * + * ```js + * '/usr/local/bin/node' + * ``` + * @since v0.1.100 + */ + execPath: string; + /** + * The `process.abort()` method causes the Node.js process to exit immediately and + * generate a core file. + * + * This feature is not available in `Worker` threads. + * @since v0.7.0 + */ + abort(): never; + /** + * The `process.chdir()` method changes the current working directory of the + * Node.js process or throws an exception if doing so fails (for instance, if + * the specified `directory` does not exist). + * + * ```js + * import { chdir, cwd } from 'process'; + * + * console.log(`Starting directory: ${cwd()}`); + * try { + * chdir('/tmp'); + * console.log(`New directory: ${cwd()}`); + * } catch (err) { + * console.error(`chdir: ${err}`); + * } + * ``` + * + * This feature is not available in `Worker` threads. + * @since v0.1.17 + */ + chdir(directory: string): void; + /** + * The `process.cwd()` method returns the current working directory of the Node.js + * process. + * + * ```js + * import { cwd } from 'process'; + * + * console.log(`Current directory: ${cwd()}`); + * ``` + * @since v0.1.8 + */ + cwd(): string; + /** + * The port used by the Node.js debugger when enabled. + * + * ```js + * import process from 'process'; + * + * process.debugPort = 5858; + * ``` + * @since v0.7.2 + */ + debugPort: number; + /** + * The `process.emitWarning()` method can be used to emit custom or application + * specific process warnings. These can be listened for by adding a handler to the `'warning'` event. + * + * ```js + * import { emitWarning } from 'process'; + * + * // Emit a warning with a code and additional detail. + * emitWarning('Something happened!', { + * code: 'MY_WARNING', + * detail: 'This is some additional information' + * }); + * // Emits: + * // (node:56338) [MY_WARNING] Warning: Something happened! + * // This is some additional information + * ``` + * + * In this example, an `Error` object is generated internally by`process.emitWarning()` and passed through to the `'warning'` handler. + * + * ```js + * import process from 'process'; + * + * process.on('warning', (warning) => { + * console.warn(warning.name); // 'Warning' + * console.warn(warning.message); // 'Something happened!' + * console.warn(warning.code); // 'MY_WARNING' + * console.warn(warning.stack); // Stack trace + * console.warn(warning.detail); // 'This is some additional information' + * }); + * ``` + * + * If `warning` is passed as an `Error` object, the `options` argument is ignored. + * @since v8.0.0 + * @param warning The warning to emit. + */ + emitWarning(warning: string | Error, ctor?: Function): void; + emitWarning(warning: string | Error, type?: string, ctor?: Function): void; + emitWarning(warning: string | Error, type?: string, code?: string, ctor?: Function): void; + emitWarning(warning: string | Error, options?: EmitWarningOptions): void; + /** + * The `process.env` property returns an object containing the user environment. + * See [`environ(7)`](http://man7.org/linux/man-pages/man7/environ.7.html). + * + * An example of this object looks like: + * + * ```js + * { + * TERM: 'xterm-256color', + * SHELL: '/usr/local/bin/bash', + * USER: 'maciej', + * PATH: '~/.bin/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin', + * PWD: '/Users/maciej', + * EDITOR: 'vim', + * SHLVL: '1', + * HOME: '/Users/maciej', + * LOGNAME: 'maciej', + * _: '/usr/local/bin/node' + * } + * ``` + * + * It is possible to modify this object, but such modifications will not be + * reflected outside the Node.js process, or (unless explicitly requested) + * to other `Worker` threads. + * In other words, the following example would not work: + * + * ```console + * $ node -e 'process.env.foo = "bar"' && echo $foo + * ``` + * + * While the following will: + * + * ```js + * import { env } from 'process'; + * + * env.foo = 'bar'; + * console.log(env.foo); + * ``` + * + * Assigning a property on `process.env` will implicitly convert the value + * to a string. **This behavior is deprecated.** Future versions of Node.js may + * throw an error when the value is not a string, number, or boolean. + * + * ```js + * import { env } from 'process'; + * + * env.test = null; + * console.log(env.test); + * // => 'null' + * env.test = undefined; + * console.log(env.test); + * // => 'undefined' + * ``` + * + * Use `delete` to delete a property from `process.env`. + * + * ```js + * import { env } from 'process'; + * + * env.TEST = 1; + * delete env.TEST; + * console.log(env.TEST); + * // => undefined + * ``` + * + * On Windows operating systems, environment variables are case-insensitive. + * + * ```js + * import { env } from 'process'; + * + * env.TEST = 1; + * console.log(env.test); + * // => 1 + * ``` + * + * Unless explicitly specified when creating a `Worker` instance, + * each `Worker` thread has its own copy of `process.env`, based on its + * parent thread’s `process.env`, or whatever was specified as the `env` option + * to the `Worker` constructor. Changes to `process.env` will not be visible + * across `Worker` threads, and only the main thread can make changes that + * are visible to the operating system or to native add-ons. + * @since v0.1.27 + */ + env: ProcessEnv; + /** + * The `process.exit()` method instructs Node.js to terminate the process + * synchronously with an exit status of `code`. If `code` is omitted, exit uses + * either the 'success' code `0` or the value of `process.exitCode` if it has been + * set. Node.js will not terminate until all the `'exit'` event listeners are + * called. + * + * To exit with a 'failure' code: + * + * ```js + * import { exit } from 'process'; + * + * exit(1); + * ``` + * + * The shell that executed Node.js should see the exit code as `1`. + * + * Calling `process.exit()` will force the process to exit as quickly as possible + * even if there are still asynchronous operations pending that have not yet + * completed fully, including I/O operations to `process.stdout` and`process.stderr`. + * + * In most situations, it is not actually necessary to call `process.exit()`explicitly. The Node.js process will exit on its own _if there is no additional_ + * _work pending_ in the event loop. The `process.exitCode` property can be set to + * tell the process which exit code to use when the process exits gracefully. + * + * For instance, the following example illustrates a _misuse_ of the`process.exit()` method that could lead to data printed to stdout being + * truncated and lost: + * + * ```js + * import { exit } from 'process'; + * + * // This is an example of what *not* to do: + * if (someConditionNotMet()) { + * printUsageToStdout(); + * exit(1); + * } + * ``` + * + * The reason this is problematic is because writes to `process.stdout` in Node.js + * are sometimes _asynchronous_ and may occur over multiple ticks of the Node.js + * event loop. Calling `process.exit()`, however, forces the process to exit_before_ those additional writes to `stdout` can be performed. + * + * Rather than calling `process.exit()` directly, the code _should_ set the`process.exitCode` and allow the process to exit naturally by avoiding + * scheduling any additional work for the event loop: + * + * ```js + * import process from 'process'; + * + * // How to properly set the exit code while letting + * // the process exit gracefully. + * if (someConditionNotMet()) { + * printUsageToStdout(); + * process.exitCode = 1; + * } + * ``` + * + * If it is necessary to terminate the Node.js process due to an error condition, + * throwing an _uncaught_ error and allowing the process to terminate accordingly + * is safer than calling `process.exit()`. + * + * In `Worker` threads, this function stops the current thread rather + * than the current process. + * @since v0.1.13 + * @param [code=0] The exit code. + */ + exit(code?: number): never; + /** + * A number which will be the process exit code, when the process either + * exits gracefully, or is exited via {@link exit} without specifying + * a code. + * + * Specifying a code to {@link exit} will override any + * previous setting of `process.exitCode`. + * @since v0.11.8 + */ + exitCode?: number | undefined; + /** + * The `process.getgid()` method returns the numerical group identity of the + * process. (See [`getgid(2)`](http://man7.org/linux/man-pages/man2/getgid.2.html).) + * + * ```js + * import process from 'process'; + * + * if (process.getgid) { + * console.log(`Current gid: ${process.getgid()}`); + * } + * ``` + * + * This function is only available on POSIX platforms (i.e. not Windows or + * Android). + * @since v0.1.31 + */ + getgid(): number; + /** + * The `process.setgid()` method sets the group identity of the process. (See [`setgid(2)`](http://man7.org/linux/man-pages/man2/setgid.2.html).) The `id` can be passed as either a + * numeric ID or a group name + * string. If a group name is specified, this method blocks while resolving the + * associated numeric ID. + * + * ```js + * import process from 'process'; + * + * if (process.getgid && process.setgid) { + * console.log(`Current gid: ${process.getgid()}`); + * try { + * process.setgid(501); + * console.log(`New gid: ${process.getgid()}`); + * } catch (err) { + * console.log(`Failed to set gid: ${err}`); + * } + * } + * ``` + * + * This function is only available on POSIX platforms (i.e. not Windows or + * Android). + * This feature is not available in `Worker` threads. + * @since v0.1.31 + * @param id The group name or ID + */ + setgid(id: number | string): void; + /** + * The `process.getuid()` method returns the numeric user identity of the process. + * (See [`getuid(2)`](http://man7.org/linux/man-pages/man2/getuid.2.html).) + * + * ```js + * import process from 'process'; + * + * if (process.getuid) { + * console.log(`Current uid: ${process.getuid()}`); + * } + * ``` + * + * This function is only available on POSIX platforms (i.e. not Windows or + * Android). + * @since v0.1.28 + */ + getuid(): number; + /** + * The `process.setuid(id)` method sets the user identity of the process. (See [`setuid(2)`](http://man7.org/linux/man-pages/man2/setuid.2.html).) The `id` can be passed as either a + * numeric ID or a username string. + * If a username is specified, the method blocks while resolving the associated + * numeric ID. + * + * ```js + * import process from 'process'; + * + * if (process.getuid && process.setuid) { + * console.log(`Current uid: ${process.getuid()}`); + * try { + * process.setuid(501); + * console.log(`New uid: ${process.getuid()}`); + * } catch (err) { + * console.log(`Failed to set uid: ${err}`); + * } + * } + * ``` + * + * This function is only available on POSIX platforms (i.e. not Windows or + * Android). + * This feature is not available in `Worker` threads. + * @since v0.1.28 + */ + setuid(id: number | string): void; + /** + * The `process.geteuid()` method returns the numerical effective user identity of + * the process. (See [`geteuid(2)`](http://man7.org/linux/man-pages/man2/geteuid.2.html).) + * + * ```js + * import process from 'process'; + * + * if (process.geteuid) { + * console.log(`Current uid: ${process.geteuid()}`); + * } + * ``` + * + * This function is only available on POSIX platforms (i.e. not Windows or + * Android). + * @since v2.0.0 + */ + geteuid(): number; + /** + * The `process.seteuid()` method sets the effective user identity of the process. + * (See [`seteuid(2)`](http://man7.org/linux/man-pages/man2/seteuid.2.html).) The `id` can be passed as either a numeric ID or a username + * string. If a username is specified, the method blocks while resolving the + * associated numeric ID. + * + * ```js + * import process from 'process'; + * + * if (process.geteuid && process.seteuid) { + * console.log(`Current uid: ${process.geteuid()}`); + * try { + * process.seteuid(501); + * console.log(`New uid: ${process.geteuid()}`); + * } catch (err) { + * console.log(`Failed to set uid: ${err}`); + * } + * } + * ``` + * + * This function is only available on POSIX platforms (i.e. not Windows or + * Android). + * This feature is not available in `Worker` threads. + * @since v2.0.0 + * @param id A user name or ID + */ + seteuid(id: number | string): void; + /** + * The `process.getegid()` method returns the numerical effective group identity + * of the Node.js process. (See [`getegid(2)`](http://man7.org/linux/man-pages/man2/getegid.2.html).) + * + * ```js + * import process from 'process'; + * + * if (process.getegid) { + * console.log(`Current gid: ${process.getegid()}`); + * } + * ``` + * + * This function is only available on POSIX platforms (i.e. not Windows or + * Android). + * @since v2.0.0 + */ + getegid(): number; + /** + * The `process.setegid()` method sets the effective group identity of the process. + * (See [`setegid(2)`](http://man7.org/linux/man-pages/man2/setegid.2.html).) The `id` can be passed as either a numeric ID or a group + * name string. If a group name is specified, this method blocks while resolving + * the associated a numeric ID. + * + * ```js + * import process from 'process'; + * + * if (process.getegid && process.setegid) { + * console.log(`Current gid: ${process.getegid()}`); + * try { + * process.setegid(501); + * console.log(`New gid: ${process.getegid()}`); + * } catch (err) { + * console.log(`Failed to set gid: ${err}`); + * } + * } + * ``` + * + * This function is only available on POSIX platforms (i.e. not Windows or + * Android). + * This feature is not available in `Worker` threads. + * @since v2.0.0 + * @param id A group name or ID + */ + setegid(id: number | string): void; + /** + * The `process.getgroups()` method returns an array with the supplementary group + * IDs. POSIX leaves it unspecified if the effective group ID is included but + * Node.js ensures it always is. + * + * ```js + * import process from 'process'; + * + * if (process.getgroups) { + * console.log(process.getgroups()); // [ 16, 21, 297 ] + * } + * ``` + * + * This function is only available on POSIX platforms (i.e. not Windows or + * Android). + * @since v0.9.4 + */ + getgroups(): number[]; + /** + * The `process.setgroups()` method sets the supplementary group IDs for the + * Node.js process. This is a privileged operation that requires the Node.js + * process to have `root` or the `CAP_SETGID` capability. + * + * The `groups` array can contain numeric group IDs, group names, or both. + * + * ```js + * import process from 'process'; + * + * if (process.getgroups && process.setgroups) { + * try { + * process.setgroups([501]); + * console.log(process.getgroups()); // new groups + * } catch (err) { + * console.log(`Failed to set groups: ${err}`); + * } + * } + * ``` + * + * This function is only available on POSIX platforms (i.e. not Windows or + * Android). + * This feature is not available in `Worker` threads. + * @since v0.9.4 + */ + setgroups(groups: ReadonlyArray): void; + /** + * The `process.setUncaughtExceptionCaptureCallback()` function sets a function + * that will be invoked when an uncaught exception occurs, which will receive the + * exception value itself as its first argument. + * + * If such a function is set, the `'uncaughtException'` event will + * not be emitted. If `--abort-on-uncaught-exception` was passed from the + * command line or set through `v8.setFlagsFromString()`, the process will + * not abort. Actions configured to take place on exceptions such as report + * generations will be affected too + * + * To unset the capture function,`process.setUncaughtExceptionCaptureCallback(null)` may be used. Calling this + * method with a non-`null` argument while another capture function is set will + * throw an error. + * + * Using this function is mutually exclusive with using the deprecated `domain` built-in module. + * @since v9.3.0 + */ + setUncaughtExceptionCaptureCallback(cb: ((err: Error) => void) | null): void; + /** + * Indicates whether a callback has been set using {@link setUncaughtExceptionCaptureCallback}. + * @since v9.3.0 + */ + hasUncaughtExceptionCaptureCallback(): boolean; + /** + * The `process.version` property contains the Node.js version string. + * + * ```js + * import { version } from 'process'; + * + * console.log(`Version: ${version}`); + * // Version: v14.8.0 + * ``` + * + * To get the version string without the prepended _v_, use`process.versions.node`. + * @since v0.1.3 + */ + readonly version: string; + /** + * The `process.versions` property returns an object listing the version strings of + * Node.js and its dependencies. `process.versions.modules` indicates the current + * ABI version, which is increased whenever a C++ API changes. Node.js will refuse + * to load modules that were compiled against a different module ABI version. + * + * ```js + * import { versions } from 'process'; + * + * console.log(versions); + * ``` + * + * Will generate an object similar to: + * + * ```console + * { node: '11.13.0', + * v8: '7.0.276.38-node.18', + * uv: '1.27.0', + * zlib: '1.2.11', + * brotli: '1.0.7', + * ares: '1.15.0', + * modules: '67', + * nghttp2: '1.34.0', + * napi: '4', + * llhttp: '1.1.1', + * openssl: '1.1.1b', + * cldr: '34.0', + * icu: '63.1', + * tz: '2018e', + * unicode: '11.0' } + * ``` + * @since v0.2.0 + */ + readonly versions: ProcessVersions; + /** + * The `process.config` property returns an `Object` containing the JavaScript + * representation of the configure options used to compile the current Node.js + * executable. This is the same as the `config.gypi` file that was produced when + * running the `./configure` script. + * + * An example of the possible output looks like: + * + * ```js + * { + * target_defaults: + * { cflags: [], + * default_configuration: 'Release', + * defines: [], + * include_dirs: [], + * libraries: [] }, + * variables: + * { + * host_arch: 'x64', + * napi_build_version: 5, + * node_install_npm: 'true', + * node_prefix: '', + * node_shared_cares: 'false', + * node_shared_http_parser: 'false', + * node_shared_libuv: 'false', + * node_shared_zlib: 'false', + * node_use_dtrace: 'false', + * node_use_openssl: 'true', + * node_shared_openssl: 'false', + * strict_aliasing: 'true', + * target_arch: 'x64', + * v8_use_snapshot: 1 + * } + * } + * ``` + * + * The `process.config` property is **not** read-only and there are existing + * modules in the ecosystem that are known to extend, modify, or entirely replace + * the value of `process.config`. + * + * Modifying the `process.config` property, or any child-property of the`process.config` object has been deprecated. The `process.config` will be made + * read-only in a future release. + * @since v0.7.7 + */ + readonly config: ProcessConfig; + /** + * The `process.kill()` method sends the `signal` to the process identified by`pid`. + * + * Signal names are strings such as `'SIGINT'` or `'SIGHUP'`. See `Signal Events` and [`kill(2)`](http://man7.org/linux/man-pages/man2/kill.2.html) for more information. + * + * This method will throw an error if the target `pid` does not exist. As a special + * case, a signal of `0` can be used to test for the existence of a process. + * Windows platforms will throw an error if the `pid` is used to kill a process + * group. + * + * Even though the name of this function is `process.kill()`, it is really just a + * signal sender, like the `kill` system call. The signal sent may do something + * other than kill the target process. + * + * ```js + * import process, { kill } from 'process'; + * + * process.on('SIGHUP', () => { + * console.log('Got SIGHUP signal.'); + * }); + * + * setTimeout(() => { + * console.log('Exiting.'); + * process.exit(0); + * }, 100); + * + * kill(process.pid, 'SIGHUP'); + * ``` + * + * When `SIGUSR1` is received by a Node.js process, Node.js will start the + * debugger. See `Signal Events`. + * @since v0.0.6 + * @param pid A process ID + * @param [signal='SIGTERM'] The signal to send, either as a string or number. + */ + kill(pid: number, signal?: string | number): true; + /** + * The `process.pid` property returns the PID of the process. + * + * ```js + * import { pid } from 'process'; + * + * console.log(`This process is pid ${pid}`); + * ``` + * @since v0.1.15 + */ + readonly pid: number; + /** + * The `process.ppid` property returns the PID of the parent of the + * current process. + * + * ```js + * import { ppid } from 'process'; + * + * console.log(`The parent process is pid ${ppid}`); + * ``` + * @since v9.2.0, v8.10.0, v6.13.0 + */ + readonly ppid: number; + /** + * The `process.title` property returns the current process title (i.e. returns + * the current value of `ps`). Assigning a new value to `process.title` modifies + * the current value of `ps`. + * + * When a new value is assigned, different platforms will impose different maximum + * length restrictions on the title. Usually such restrictions are quite limited. + * For instance, on Linux and macOS, `process.title` is limited to the size of the + * binary name plus the length of the command-line arguments because setting the`process.title` overwrites the `argv` memory of the process. Node.js v0.8 + * allowed for longer process title strings by also overwriting the `environ`memory but that was potentially insecure and confusing in some (rather obscure) + * cases. + * + * Assigning a value to `process.title` might not result in an accurate label + * within process manager applications such as macOS Activity Monitor or Windows + * Services Manager. + * @since v0.1.104 + */ + title: string; + /** + * The operating system CPU architecture for which the Node.js binary was compiled. + * Possible values are: `'arm'`, `'arm64'`, `'ia32'`, `'mips'`,`'mipsel'`, `'ppc'`,`'ppc64'`, `'s390'`, `'s390x'`, `'x32'`, and `'x64'`. + * + * ```js + * import { arch } from 'process'; + * + * console.log(`This processor architecture is ${arch}`); + * ``` + * @since v0.5.0 + */ + readonly arch: string; + /** + * The `process.platform` property returns a string identifying the operating + * system platform on which the Node.js process is running. + * + * Currently possible values are: + * + * * `'aix'` + * * `'darwin'` + * * `'freebsd'` + * * `'linux'` + * * `'openbsd'` + * * `'sunos'` + * * `'win32'` + * + * ```js + * import { platform } from 'process'; + * + * console.log(`This platform is ${platform}`); + * ``` + * + * The value `'android'` may also be returned if the Node.js is built on the + * Android operating system. However, Android support in Node.js [is experimental](https://github.com/nodejs/node/blob/HEAD/BUILDING.md#androidandroid-based-devices-eg-firefox-os). + * @since v0.1.16 + */ + readonly platform: Platform; + /** + * The `process.mainModule` property provides an alternative way of retrieving `require.main`. The difference is that if the main module changes at + * runtime, `require.main` may still refer to the original main module in + * modules that were required before the change occurred. Generally, it's + * safe to assume that the two refer to the same module. + * + * As with `require.main`, `process.mainModule` will be `undefined` if there + * is no entry script. + * @since v0.1.17 + * @deprecated Since v14.0.0 - Use `main` instead. + */ + mainModule?: Module | undefined; + memoryUsage: MemoryUsageFn; + /** + * The `process.cpuUsage()` method returns the user and system CPU time usage of + * the current process, in an object with properties `user` and `system`, whose + * values are microsecond values (millionth of a second). These values measure time + * spent in user and system code respectively, and may end up being greater than + * actual elapsed time if multiple CPU cores are performing work for this process. + * + * The result of a previous call to `process.cpuUsage()` can be passed as the + * argument to the function, to get a diff reading. + * + * ```js + * import { cpuUsage } from 'process'; + * + * const startUsage = cpuUsage(); + * // { user: 38579, system: 6986 } + * + * // spin the CPU for 500 milliseconds + * const now = Date.now(); + * while (Date.now() - now < 500); + * + * console.log(cpuUsage(startUsage)); + * // { user: 514883, system: 11226 } + * ``` + * @since v6.1.0 + * @param previousValue A previous return value from calling `process.cpuUsage()` + */ + cpuUsage(previousValue?: CpuUsage): CpuUsage; + /** + * `process.nextTick()` adds `callback` to the "next tick queue". This queue is + * fully drained after the current operation on the JavaScript stack runs to + * completion and before the event loop is allowed to continue. It's possible to + * create an infinite loop if one were to recursively call `process.nextTick()`. + * See the [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#process-nexttick) guide for more background. + * + * ```js + * import { nextTick } from 'process'; + * + * console.log('start'); + * nextTick(() => { + * console.log('nextTick callback'); + * }); + * console.log('scheduled'); + * // Output: + * // start + * // scheduled + * // nextTick callback + * ``` + * + * This is important when developing APIs in order to give users the opportunity + * to assign event handlers _after_ an object has been constructed but before any + * I/O has occurred: + * + * ```js + * import { nextTick } from 'process'; + * + * function MyThing(options) { + * this.setupOptions(options); + * + * nextTick(() => { + * this.startDoingStuff(); + * }); + * } + * + * const thing = new MyThing(); + * thing.getReadyForStuff(); + * + * // thing.startDoingStuff() gets called now, not before. + * ``` + * + * It is very important for APIs to be either 100% synchronous or 100% + * asynchronous. Consider this example: + * + * ```js + * // WARNING! DO NOT USE! BAD UNSAFE HAZARD! + * function maybeSync(arg, cb) { + * if (arg) { + * cb(); + * return; + * } + * + * fs.stat('file', cb); + * } + * ``` + * + * This API is hazardous because in the following case: + * + * ```js + * const maybeTrue = Math.random() > 0.5; + * + * maybeSync(maybeTrue, () => { + * foo(); + * }); + * + * bar(); + * ``` + * + * It is not clear whether `foo()` or `bar()` will be called first. + * + * The following approach is much better: + * + * ```js + * import { nextTick } from 'process'; + * + * function definitelyAsync(arg, cb) { + * if (arg) { + * nextTick(cb); + * return; + * } + * + * fs.stat('file', cb); + * } + * ``` + * @since v0.1.26 + * @param args Additional arguments to pass when invoking the `callback` + */ + nextTick(callback: Function, ...args: any[]): void; + /** + * The `process.release` property returns an `Object` containing metadata related + * to the current release, including URLs for the source tarball and headers-only + * tarball. + * + * `process.release` contains the following properties: + * + * ```js + * { + * name: 'node', + * lts: 'Erbium', + * sourceUrl: 'https://nodejs.org/download/release/v12.18.1/node-v12.18.1.tar.gz', + * headersUrl: 'https://nodejs.org/download/release/v12.18.1/node-v12.18.1-headers.tar.gz', + * libUrl: 'https://nodejs.org/download/release/v12.18.1/win-x64/node.lib' + * } + * ``` + * + * In custom builds from non-release versions of the source tree, only the`name` property may be present. The additional properties should not be + * relied upon to exist. + * @since v3.0.0 + */ + readonly release: ProcessRelease; + features: { + inspector: boolean; + debug: boolean; + uv: boolean; + ipv6: boolean; + tls_alpn: boolean; + tls_sni: boolean; + tls_ocsp: boolean; + tls: boolean; + }; + /** + * `process.umask()` returns the Node.js process's file mode creation mask. Child + * processes inherit the mask from the parent process. + * @since v0.1.19 + * @deprecated Calling `process.umask()` with no argument causes the process-wide umask to be written twice. This introduces a race condition between threads, and is a potential * + * security vulnerability. There is no safe, cross-platform alternative API. + */ + umask(): number; + /** + * Can only be set if not in worker thread. + */ + umask(mask: string | number): number; + /** + * The `process.uptime()` method returns the number of seconds the current Node.js + * process has been running. + * + * The return value includes fractions of a second. Use `Math.floor()` to get whole + * seconds. + * @since v0.5.0 + */ + uptime(): number; + hrtime: HRTime; + /** + * If Node.js is spawned with an IPC channel, the `process.send()` method can be + * used to send messages to the parent process. Messages will be received as a `'message'` event on the parent's `ChildProcess` object. + * + * If Node.js was not spawned with an IPC channel, `process.send` will be`undefined`. + * + * The message goes through serialization and parsing. The resulting message might + * not be the same as what is originally sent. + * @since v0.5.9 + * @param options used to parameterize the sending of certain types of handles.`options` supports the following properties: + */ + send?( + message: any, + sendHandle?: any, + options?: { + swallowErrors?: boolean | undefined; + }, + callback?: (error: Error | null) => void + ): boolean; + /** + * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.disconnect()` method will close the + * IPC channel to the parent process, allowing the child process to exit gracefully + * once there are no other connections keeping it alive. + * + * The effect of calling `process.disconnect()` is the same as calling `ChildProcess.disconnect()` from the parent process. + * + * If the Node.js process was not spawned with an IPC channel,`process.disconnect()` will be `undefined`. + * @since v0.7.2 + */ + disconnect(): void; + /** + * If the Node.js process is spawned with an IPC channel (see the `Child Process` and `Cluster` documentation), the `process.connected` property will return`true` so long as the IPC + * channel is connected and will return `false` after`process.disconnect()` is called. + * + * Once `process.connected` is `false`, it is no longer possible to send messages + * over the IPC channel using `process.send()`. + * @since v0.7.2 + */ + connected: boolean; + /** + * The `process.allowedNodeEnvironmentFlags` property is a special, + * read-only `Set` of flags allowable within the `NODE_OPTIONS` environment variable. + * + * `process.allowedNodeEnvironmentFlags` extends `Set`, but overrides`Set.prototype.has` to recognize several different possible flag + * representations. `process.allowedNodeEnvironmentFlags.has()` will + * return `true` in the following cases: + * + * * Flags may omit leading single (`-`) or double (`--`) dashes; e.g.,`inspect-brk` for `--inspect-brk`, or `r` for `-r`. + * * Flags passed through to V8 (as listed in `--v8-options`) may replace + * one or more _non-leading_ dashes for an underscore, or vice-versa; + * e.g., `--perf_basic_prof`, `--perf-basic-prof`, `--perf_basic-prof`, + * etc. + * * Flags may contain one or more equals (`=`) characters; all + * characters after and including the first equals will be ignored; + * e.g., `--stack-trace-limit=100`. + * * Flags _must_ be allowable within `NODE_OPTIONS`. + * + * When iterating over `process.allowedNodeEnvironmentFlags`, flags will + * appear only _once_; each will begin with one or more dashes. Flags + * passed through to V8 will contain underscores instead of non-leading + * dashes: + * + * ```js + * import { allowedNodeEnvironmentFlags } from 'process'; + * + * allowedNodeEnvironmentFlags.forEach((flag) => { + * // -r + * // --inspect-brk + * // --abort_on_uncaught_exception + * // ... + * }); + * ``` + * + * The methods `add()`, `clear()`, and `delete()` of`process.allowedNodeEnvironmentFlags` do nothing, and will fail + * silently. + * + * If Node.js was compiled _without_ `NODE_OPTIONS` support (shown in {@link config}), `process.allowedNodeEnvironmentFlags` will + * contain what _would have_ been allowable. + * @since v10.10.0 + */ + allowedNodeEnvironmentFlags: ReadonlySet; + /** + * `process.report` is an object whose methods are used to generate diagnostic + * reports for the current process. Additional documentation is available in the `report documentation`. + * @since v11.8.0 + */ + report?: ProcessReport | undefined; + /** + * ```js + * import { resourceUsage } from 'process'; + * + * console.log(resourceUsage()); + * /* + * Will output: + * { + * userCPUTime: 82872, + * systemCPUTime: 4143, + * maxRSS: 33164, + * sharedMemorySize: 0, + * unsharedDataSize: 0, + * unsharedStackSize: 0, + * minorPageFault: 2469, + * majorPageFault: 0, + * swappedOut: 0, + * fsRead: 0, + * fsWrite: 8, + * ipcSent: 0, + * ipcReceived: 0, + * signalsCount: 0, + * voluntaryContextSwitches: 79, + * involuntaryContextSwitches: 1 + * } + * + * ``` + * @since v12.6.0 + * @return the resource usage for the current process. All of these values come from the `uv_getrusage` call which returns a [`uv_rusage_t` struct][uv_rusage_t]. + */ + resourceUsage(): ResourceUsage; + /** + * The `process.traceDeprecation` property indicates whether the`--trace-deprecation` flag is set on the current Node.js process. See the + * documentation for the `'warning' event` and the `emitWarning() method` for more information about this + * flag's behavior. + * @since v0.8.0 + */ + traceDeprecation: boolean; + /* EventEmitter */ + addListener(event: 'beforeExit', listener: BeforeExitListener): this; + addListener(event: 'disconnect', listener: DisconnectListener): this; + addListener(event: 'exit', listener: ExitListener): this; + addListener(event: 'rejectionHandled', listener: RejectionHandledListener): this; + addListener(event: 'uncaughtException', listener: UncaughtExceptionListener): this; + addListener(event: 'uncaughtExceptionMonitor', listener: UncaughtExceptionListener): this; + addListener(event: 'unhandledRejection', listener: UnhandledRejectionListener): this; + addListener(event: 'warning', listener: WarningListener): this; + addListener(event: 'message', listener: MessageListener): this; + addListener(event: Signals, listener: SignalsListener): this; + addListener(event: 'multipleResolves', listener: MultipleResolveListener): this; + addListener(event: 'worker', listener: WorkerListener): this; + emit(event: 'beforeExit', code: number): boolean; + emit(event: 'disconnect'): boolean; + emit(event: 'exit', code: number): boolean; + emit(event: 'rejectionHandled', promise: Promise): boolean; + emit(event: 'uncaughtException', error: Error): boolean; + emit(event: 'uncaughtExceptionMonitor', error: Error): boolean; + emit(event: 'unhandledRejection', reason: unknown, promise: Promise): boolean; + emit(event: 'warning', warning: Error): boolean; + emit(event: 'message', message: unknown, sendHandle: unknown): this; + emit(event: Signals, signal?: Signals): boolean; + emit(event: 'multipleResolves', type: MultipleResolveType, promise: Promise, value: unknown): this; + emit(event: 'worker', listener: WorkerListener): this; + on(event: 'beforeExit', listener: BeforeExitListener): this; + on(event: 'disconnect', listener: DisconnectListener): this; + on(event: 'exit', listener: ExitListener): this; + on(event: 'rejectionHandled', listener: RejectionHandledListener): this; + on(event: 'uncaughtException', listener: UncaughtExceptionListener): this; + on(event: 'uncaughtExceptionMonitor', listener: UncaughtExceptionListener): this; + on(event: 'unhandledRejection', listener: UnhandledRejectionListener): this; + on(event: 'warning', listener: WarningListener): this; + on(event: 'message', listener: MessageListener): this; + on(event: Signals, listener: SignalsListener): this; + on(event: 'multipleResolves', listener: MultipleResolveListener): this; + on(event: 'worker', listener: WorkerListener): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: 'beforeExit', listener: BeforeExitListener): this; + once(event: 'disconnect', listener: DisconnectListener): this; + once(event: 'exit', listener: ExitListener): this; + once(event: 'rejectionHandled', listener: RejectionHandledListener): this; + once(event: 'uncaughtException', listener: UncaughtExceptionListener): this; + once(event: 'uncaughtExceptionMonitor', listener: UncaughtExceptionListener): this; + once(event: 'unhandledRejection', listener: UnhandledRejectionListener): this; + once(event: 'warning', listener: WarningListener): this; + once(event: 'message', listener: MessageListener): this; + once(event: Signals, listener: SignalsListener): this; + once(event: 'multipleResolves', listener: MultipleResolveListener): this; + once(event: 'worker', listener: WorkerListener): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: 'beforeExit', listener: BeforeExitListener): this; + prependListener(event: 'disconnect', listener: DisconnectListener): this; + prependListener(event: 'exit', listener: ExitListener): this; + prependListener(event: 'rejectionHandled', listener: RejectionHandledListener): this; + prependListener(event: 'uncaughtException', listener: UncaughtExceptionListener): this; + prependListener(event: 'uncaughtExceptionMonitor', listener: UncaughtExceptionListener): this; + prependListener(event: 'unhandledRejection', listener: UnhandledRejectionListener): this; + prependListener(event: 'warning', listener: WarningListener): this; + prependListener(event: 'message', listener: MessageListener): this; + prependListener(event: Signals, listener: SignalsListener): this; + prependListener(event: 'multipleResolves', listener: MultipleResolveListener): this; + prependListener(event: 'worker', listener: WorkerListener): this; + prependOnceListener(event: 'beforeExit', listener: BeforeExitListener): this; + prependOnceListener(event: 'disconnect', listener: DisconnectListener): this; + prependOnceListener(event: 'exit', listener: ExitListener): this; + prependOnceListener(event: 'rejectionHandled', listener: RejectionHandledListener): this; + prependOnceListener(event: 'uncaughtException', listener: UncaughtExceptionListener): this; + prependOnceListener(event: 'uncaughtExceptionMonitor', listener: UncaughtExceptionListener): this; + prependOnceListener(event: 'unhandledRejection', listener: UnhandledRejectionListener): this; + prependOnceListener(event: 'warning', listener: WarningListener): this; + prependOnceListener(event: 'message', listener: MessageListener): this; + prependOnceListener(event: Signals, listener: SignalsListener): this; + prependOnceListener(event: 'multipleResolves', listener: MultipleResolveListener): this; + prependOnceListener(event: 'worker', listener: WorkerListener): this; + listeners(event: 'beforeExit'): BeforeExitListener[]; + listeners(event: 'disconnect'): DisconnectListener[]; + listeners(event: 'exit'): ExitListener[]; + listeners(event: 'rejectionHandled'): RejectionHandledListener[]; + listeners(event: 'uncaughtException'): UncaughtExceptionListener[]; + listeners(event: 'uncaughtExceptionMonitor'): UncaughtExceptionListener[]; + listeners(event: 'unhandledRejection'): UnhandledRejectionListener[]; + listeners(event: 'warning'): WarningListener[]; + listeners(event: 'message'): MessageListener[]; + listeners(event: Signals): SignalsListener[]; + listeners(event: 'multipleResolves'): MultipleResolveListener[]; + listeners(event: 'worker'): WorkerListener[]; + } + } + } + export = process; +} +declare module 'node:process' { + import process = require('process'); + export = process; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/punycode.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/punycode.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..81b3c636b1ee69012e67cf577d9f06b7d3cb9037 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/punycode.d.ts" @@ -0,0 +1,117 @@ +/** + * **The version of the punycode module bundled in Node.js is being deprecated.**In a future major version of Node.js this module will be removed. Users + * currently depending on the `punycode` module should switch to using the + * userland-provided [Punycode.js](https://github.com/bestiejs/punycode.js) module instead. For punycode-based URL + * encoding, see `url.domainToASCII` or, more generally, the `WHATWG URL API`. + * + * The `punycode` module is a bundled version of the [Punycode.js](https://github.com/bestiejs/punycode.js) module. It + * can be accessed using: + * + * ```js + * const punycode = require('punycode'); + * ``` + * + * [Punycode](https://tools.ietf.org/html/rfc3492) is a character encoding scheme defined by RFC 3492 that is + * primarily intended for use in Internationalized Domain Names. Because host + * names in URLs are limited to ASCII characters only, Domain Names that contain + * non-ASCII characters must be converted into ASCII using the Punycode scheme. + * For instance, the Japanese character that translates into the English word,`'example'` is `'例'`. The Internationalized Domain Name, `'例.com'` (equivalent + * to `'example.com'`) is represented by Punycode as the ASCII string`'xn--fsq.com'`. + * + * The `punycode` module provides a simple implementation of the Punycode standard. + * + * The `punycode` module is a third-party dependency used by Node.js and + * made available to developers as a convenience. Fixes or other modifications to + * the module must be directed to the [Punycode.js](https://github.com/bestiejs/punycode.js) project. + * @deprecated Since v7.0.0 - Deprecated + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/punycode.js) + */ +declare module 'punycode' { + /** + * The `punycode.decode()` method converts a [Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only + * characters to the equivalent string of Unicode codepoints. + * + * ```js + * punycode.decode('maana-pta'); // 'mañana' + * punycode.decode('--dqo34k'); // '☃-⌘' + * ``` + * @since v0.5.1 + */ + function decode(string: string): string; + /** + * The `punycode.encode()` method converts a string of Unicode codepoints to a [Punycode](https://tools.ietf.org/html/rfc3492) string of ASCII-only characters. + * + * ```js + * punycode.encode('mañana'); // 'maana-pta' + * punycode.encode('☃-⌘'); // '--dqo34k' + * ``` + * @since v0.5.1 + */ + function encode(string: string): string; + /** + * The `punycode.toUnicode()` method converts a string representing a domain name + * containing [Punycode](https://tools.ietf.org/html/rfc3492) encoded characters into Unicode. Only the [Punycode](https://tools.ietf.org/html/rfc3492) encoded parts of the domain name are be + * converted. + * + * ```js + * // decode domain names + * punycode.toUnicode('xn--maana-pta.com'); // 'mañana.com' + * punycode.toUnicode('xn----dqo34k.com'); // '☃-⌘.com' + * punycode.toUnicode('example.com'); // 'example.com' + * ``` + * @since v0.6.1 + */ + function toUnicode(domain: string): string; + /** + * The `punycode.toASCII()` method converts a Unicode string representing an + * Internationalized Domain Name to [Punycode](https://tools.ietf.org/html/rfc3492). Only the non-ASCII parts of the + * domain name will be converted. Calling `punycode.toASCII()` on a string that + * already only contains ASCII characters will have no effect. + * + * ```js + * // encode domain names + * punycode.toASCII('mañana.com'); // 'xn--maana-pta.com' + * punycode.toASCII('☃-⌘.com'); // 'xn----dqo34k.com' + * punycode.toASCII('example.com'); // 'example.com' + * ``` + * @since v0.6.1 + */ + function toASCII(domain: string): string; + /** + * @deprecated since v7.0.0 + * The version of the punycode module bundled in Node.js is being deprecated. + * In a future major version of Node.js this module will be removed. + * Users currently depending on the punycode module should switch to using + * the userland-provided Punycode.js module instead. + */ + const ucs2: ucs2; + interface ucs2 { + /** + * @deprecated since v7.0.0 + * The version of the punycode module bundled in Node.js is being deprecated. + * In a future major version of Node.js this module will be removed. + * Users currently depending on the punycode module should switch to using + * the userland-provided Punycode.js module instead. + */ + decode(string: string): number[]; + /** + * @deprecated since v7.0.0 + * The version of the punycode module bundled in Node.js is being deprecated. + * In a future major version of Node.js this module will be removed. + * Users currently depending on the punycode module should switch to using + * the userland-provided Punycode.js module instead. + */ + encode(codePoints: ReadonlyArray): string; + } + /** + * @deprecated since v7.0.0 + * The version of the punycode module bundled in Node.js is being deprecated. + * In a future major version of Node.js this module will be removed. + * Users currently depending on the punycode module should switch to using + * the userland-provided Punycode.js module instead. + */ + const version: string; +} +declare module 'node:punycode' { + export * from 'punycode'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/querystring.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/querystring.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..572828a8494c134b5bad1eae57e50be75cdbc4f1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/querystring.d.ts" @@ -0,0 +1,131 @@ +/** + * The `querystring` module provides utilities for parsing and formatting URL + * query strings. It can be accessed using: + * + * ```js + * const querystring = require('querystring'); + * ``` + * + * The `querystring` API is considered Legacy. While it is still maintained, + * new code should use the `URLSearchParams` API instead. + * @deprecated Legacy + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/querystring.js) + */ +declare module 'querystring' { + interface StringifyOptions { + encodeURIComponent?: ((str: string) => string) | undefined; + } + interface ParseOptions { + maxKeys?: number | undefined; + decodeURIComponent?: ((str: string) => string) | undefined; + } + interface ParsedUrlQuery extends NodeJS.Dict {} + interface ParsedUrlQueryInput extends NodeJS.Dict | ReadonlyArray | ReadonlyArray | null> {} + /** + * The `querystring.stringify()` method produces a URL query string from a + * given `obj` by iterating through the object's "own properties". + * + * It serializes the following types of values passed in `obj`:[string](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) | + * [number](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type) | + * [bigint](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) | + * [boolean](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type) | + * [string\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#String_type) | + * [number\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Number_type) | + * [bigint\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt) | + * [boolean\[\]](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type) The numeric values must be finite. Any other input values will be coerced to + * empty strings. + * + * ```js + * querystring.stringify({ foo: 'bar', baz: ['qux', 'quux'], corge: '' }); + * // Returns 'foo=bar&baz=qux&baz=quux&corge=' + * + * querystring.stringify({ foo: 'bar', baz: 'qux' }, ';', ':'); + * // Returns 'foo:bar;baz:qux' + * ``` + * + * By default, characters requiring percent-encoding within the query string will + * be encoded as UTF-8\. If an alternative encoding is required, then an alternative`encodeURIComponent` option will need to be specified: + * + * ```js + * // Assuming gbkEncodeURIComponent function already exists, + * + * querystring.stringify({ w: '中文', foo: 'bar' }, null, null, + * { encodeURIComponent: gbkEncodeURIComponent }); + * ``` + * @since v0.1.25 + * @param obj The object to serialize into a URL query string + * @param [sep='&'] The substring used to delimit key and value pairs in the query string. + * @param [eq='='] . The substring used to delimit keys and values in the query string. + */ + function stringify(obj?: ParsedUrlQueryInput, sep?: string, eq?: string, options?: StringifyOptions): string; + /** + * The `querystring.parse()` method parses a URL query string (`str`) into a + * collection of key and value pairs. + * + * For example, the query string `'foo=bar&abc=xyz&abc=123'` is parsed into: + * + * ```js + * { + * foo: 'bar', + * abc: ['xyz', '123'] + * } + * ``` + * + * The object returned by the `querystring.parse()` method _does not_prototypically inherit from the JavaScript `Object`. This means that typical`Object` methods such as `obj.toString()`, + * `obj.hasOwnProperty()`, and others + * are not defined and _will not work_. + * + * By default, percent-encoded characters within the query string will be assumed + * to use UTF-8 encoding. If an alternative character encoding is used, then an + * alternative `decodeURIComponent` option will need to be specified: + * + * ```js + * // Assuming gbkDecodeURIComponent function already exists... + * + * querystring.parse('w=%D6%D0%CE%C4&foo=bar', null, null, + * { decodeURIComponent: gbkDecodeURIComponent }); + * ``` + * @since v0.1.25 + * @param str The URL query string to parse + * @param [sep='&'] The substring used to delimit key and value pairs in the query string. + * @param [eq='='] . The substring used to delimit keys and values in the query string. + */ + function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): ParsedUrlQuery; + /** + * The querystring.encode() function is an alias for querystring.stringify(). + */ + const encode: typeof stringify; + /** + * The querystring.decode() function is an alias for querystring.parse(). + */ + const decode: typeof parse; + /** + * The `querystring.escape()` method performs URL percent-encoding on the given`str` in a manner that is optimized for the specific requirements of URL + * query strings. + * + * The `querystring.escape()` method is used by `querystring.stringify()` and is + * generally not expected to be used directly. It is exported primarily to allow + * application code to provide a replacement percent-encoding implementation if + * necessary by assigning `querystring.escape` to an alternative function. + * @since v0.1.25 + */ + function escape(str: string): string; + /** + * The `querystring.unescape()` method performs decoding of URL percent-encoded + * characters on the given `str`. + * + * The `querystring.unescape()` method is used by `querystring.parse()` and is + * generally not expected to be used directly. It is exported primarily to allow + * application code to provide a replacement decoding implementation if + * necessary by assigning `querystring.unescape` to an alternative function. + * + * By default, the `querystring.unescape()` method will attempt to use the + * JavaScript built-in `decodeURIComponent()` method to decode. If that fails, + * a safer equivalent that does not throw on malformed URLs will be used. + * @since v0.1.25 + */ + function unescape(str: string): string; +} +declare module 'node:querystring' { + export * from 'querystring'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/readline.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/readline.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..43ab1dbdc95304e0647a354784e4fb9e26528ce3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/readline.d.ts" @@ -0,0 +1,650 @@ +/** + * The `readline` module provides an interface for reading data from a `Readable` stream (such as `process.stdin`) one line at a time. + * + * To use the promise-based APIs: + * + * ```js + * import * as readline from 'node:readline/promises'; + * ``` + * + * To use the callback and sync APIs: + * + * ```js + * import * as readline from 'node:readline'; + * ``` + * + * The following simple example illustrates the basic use of the `readline` module. + * + * ```js + * import * as readline from 'node:readline/promises'; + * import { stdin as input, stdout as output } from 'process'; + * + * const rl = readline.createInterface({ input, output }); + * + * const answer = await rl.question('What do you think of Node.js? '); + * + * console.log(`Thank you for your valuable feedback: ${answer}`); + * + * rl.close(); + * ``` + * + * Once this code is invoked, the Node.js application will not terminate until the`readline.Interface` is closed because the interface waits for data to be + * received on the `input` stream. + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/readline.js) + */ +declare module 'readline' { + import { Abortable, EventEmitter } from 'node:events'; + interface Key { + sequence?: string | undefined; + name?: string | undefined; + ctrl?: boolean | undefined; + meta?: boolean | undefined; + shift?: boolean | undefined; + } + /** + * Instances of the `readline.Interface` class are constructed using the`readline.createInterface()` method. Every instance is associated with a + * single `input` `Readable` stream and a single `output` `Writable` stream. + * The `output` stream is used to print prompts for user input that arrives on, + * and is read from, the `input` stream. + * @since v0.1.104 + */ + class Interface extends EventEmitter { + readonly terminal: boolean; + /** + * The current input data being processed by node. + * + * This can be used when collecting input from a TTY stream to retrieve the + * current value that has been processed thus far, prior to the `line` event + * being emitted. Once the `line` event has been emitted, this property will + * be an empty string. + * + * Be aware that modifying the value during the instance runtime may have + * unintended consequences if `rl.cursor` is not also controlled. + * + * **If not using a TTY stream for input, use the `'line'` event.** + * + * One possible use case would be as follows: + * + * ```js + * const values = ['lorem ipsum', 'dolor sit amet']; + * const rl = readline.createInterface(process.stdin); + * const showResults = debounce(() => { + * console.log( + * '\n', + * values.filter((val) => val.startsWith(rl.line)).join(' ') + * ); + * }, 300); + * process.stdin.on('keypress', (c, k) => { + * showResults(); + * }); + * ``` + * @since v0.1.98 + */ + readonly line: string; + /** + * The cursor position relative to `rl.line`. + * + * This will track where the current cursor lands in the input string, when + * reading input from a TTY stream. The position of cursor determines the + * portion of the input string that will be modified as input is processed, + * as well as the column where the terminal caret will be rendered. + * @since v0.1.98 + */ + readonly cursor: number; + /** + * NOTE: According to the documentation: + * + * > Instances of the `readline.Interface` class are constructed using the + * > `readline.createInterface()` method. + * + * @see https://nodejs.org/dist/latest-v10.x/docs/api/readline.html#readline_class_interface + */ + protected constructor(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean); + /** + * NOTE: According to the documentation: + * + * > Instances of the `readline.Interface` class are constructed using the + * > `readline.createInterface()` method. + * + * @see https://nodejs.org/dist/latest-v10.x/docs/api/readline.html#readline_class_interface + */ + protected constructor(options: ReadLineOptions); + /** + * The `rl.getPrompt()` method returns the current prompt used by `rl.prompt()`. + * @since v15.3.0 + * @return the current prompt string + */ + getPrompt(): string; + /** + * The `rl.setPrompt()` method sets the prompt that will be written to `output`whenever `rl.prompt()` is called. + * @since v0.1.98 + */ + setPrompt(prompt: string): void; + /** + * The `rl.prompt()` method writes the `readline.Interface` instances configured`prompt` to a new line in `output` in order to provide a user with a new + * location at which to provide input. + * + * When called, `rl.prompt()` will resume the `input` stream if it has been + * paused. + * + * If the `readline.Interface` was created with `output` set to `null` or`undefined` the prompt is not written. + * @since v0.1.98 + * @param preserveCursor If `true`, prevents the cursor placement from being reset to `0`. + */ + prompt(preserveCursor?: boolean): void; + /** + * The `rl.question()` method displays the `query` by writing it to the `output`, + * waits for user input to be provided on `input`, then invokes the `callback`function passing the provided input as the first argument. + * + * When called, `rl.question()` will resume the `input` stream if it has been + * paused. + * + * If the `readline.Interface` was created with `output` set to `null` or`undefined` the `query` is not written. + * + * The `callback` function passed to `rl.question()` does not follow the typical + * pattern of accepting an `Error` object or `null` as the first argument. + * The `callback` is called with the provided answer as the only argument. + * + * Example usage: + * + * ```js + * rl.question('What is your favorite food? ', (answer) => { + * console.log(`Oh, so your favorite food is ${answer}`); + * }); + * ``` + * + * Using an `AbortController` to cancel a question. + * + * ```js + * const ac = new AbortController(); + * const signal = ac.signal; + * + * rl.question('What is your favorite food? ', { signal }, (answer) => { + * console.log(`Oh, so your favorite food is ${answer}`); + * }); + * + * signal.addEventListener('abort', () => { + * console.log('The food question timed out'); + * }, { once: true }); + * + * setTimeout(() => ac.abort(), 10000); + * ``` + * + * If this method is invoked as it's util.promisify()ed version, it returns a + * Promise that fulfills with the answer. If the question is canceled using + * an `AbortController` it will reject with an `AbortError`. + * + * ```js + * const util = require('util'); + * const question = util.promisify(rl.question).bind(rl); + * + * async function questionExample() { + * try { + * const answer = await question('What is you favorite food? '); + * console.log(`Oh, so your favorite food is ${answer}`); + * } catch (err) { + * console.error('Question rejected', err); + * } + * } + * questionExample(); + * ``` + * @since v0.3.3 + * @param query A statement or query to write to `output`, prepended to the prompt. + * @param callback A callback function that is invoked with the user's input in response to the `query`. + */ + question(query: string, callback: (answer: string) => void): void; + question(query: string, options: Abortable, callback: (answer: string) => void): void; + /** + * The `rl.pause()` method pauses the `input` stream, allowing it to be resumed + * later if necessary. + * + * Calling `rl.pause()` does not immediately pause other events (including`'line'`) from being emitted by the `readline.Interface` instance. + * @since v0.3.4 + */ + pause(): this; + /** + * The `rl.resume()` method resumes the `input` stream if it has been paused. + * @since v0.3.4 + */ + resume(): this; + /** + * The `rl.close()` method closes the `readline.Interface` instance and + * relinquishes control over the `input` and `output` streams. When called, + * the `'close'` event will be emitted. + * + * Calling `rl.close()` does not immediately stop other events (including `'line'`) + * from being emitted by the `readline.Interface` instance. + * @since v0.1.98 + */ + close(): void; + /** + * The `rl.write()` method will write either `data` or a key sequence identified + * by `key` to the `output`. The `key` argument is supported only if `output` is + * a `TTY` text terminal. See `TTY keybindings` for a list of key + * combinations. + * + * If `key` is specified, `data` is ignored. + * + * When called, `rl.write()` will resume the `input` stream if it has been + * paused. + * + * If the `readline.Interface` was created with `output` set to `null` or`undefined` the `data` and `key` are not written. + * + * ```js + * rl.write('Delete this!'); + * // Simulate Ctrl+U to delete the line written previously + * rl.write(null, { ctrl: true, name: 'u' }); + * ``` + * + * The `rl.write()` method will write the data to the `readline` `Interface`'s`input`_as if it were provided by the user_. + * @since v0.1.98 + */ + write(data: string | Buffer, key?: Key): void; + write(data: undefined | null | string | Buffer, key: Key): void; + /** + * Returns the real position of the cursor in relation to the input + * prompt + string. Long input (wrapping) strings, as well as multiple + * line prompts are included in the calculations. + * @since v13.5.0, v12.16.0 + */ + getCursorPos(): CursorPos; + /** + * events.EventEmitter + * 1. close + * 2. line + * 3. pause + * 4. resume + * 5. SIGCONT + * 6. SIGINT + * 7. SIGTSTP + * 8. history + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: 'close', listener: () => void): this; + addListener(event: 'line', listener: (input: string) => void): this; + addListener(event: 'pause', listener: () => void): this; + addListener(event: 'resume', listener: () => void): this; + addListener(event: 'SIGCONT', listener: () => void): this; + addListener(event: 'SIGINT', listener: () => void): this; + addListener(event: 'SIGTSTP', listener: () => void): this; + addListener(event: 'history', listener: (history: string[]) => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: 'close'): boolean; + emit(event: 'line', input: string): boolean; + emit(event: 'pause'): boolean; + emit(event: 'resume'): boolean; + emit(event: 'SIGCONT'): boolean; + emit(event: 'SIGINT'): boolean; + emit(event: 'SIGTSTP'): boolean; + emit(event: 'history', history: string[]): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: 'close', listener: () => void): this; + on(event: 'line', listener: (input: string) => void): this; + on(event: 'pause', listener: () => void): this; + on(event: 'resume', listener: () => void): this; + on(event: 'SIGCONT', listener: () => void): this; + on(event: 'SIGINT', listener: () => void): this; + on(event: 'SIGTSTP', listener: () => void): this; + on(event: 'history', listener: (history: string[]) => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: 'close', listener: () => void): this; + once(event: 'line', listener: (input: string) => void): this; + once(event: 'pause', listener: () => void): this; + once(event: 'resume', listener: () => void): this; + once(event: 'SIGCONT', listener: () => void): this; + once(event: 'SIGINT', listener: () => void): this; + once(event: 'SIGTSTP', listener: () => void): this; + once(event: 'history', listener: (history: string[]) => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: 'close', listener: () => void): this; + prependListener(event: 'line', listener: (input: string) => void): this; + prependListener(event: 'pause', listener: () => void): this; + prependListener(event: 'resume', listener: () => void): this; + prependListener(event: 'SIGCONT', listener: () => void): this; + prependListener(event: 'SIGINT', listener: () => void): this; + prependListener(event: 'SIGTSTP', listener: () => void): this; + prependListener(event: 'history', listener: (history: string[]) => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'close', listener: () => void): this; + prependOnceListener(event: 'line', listener: (input: string) => void): this; + prependOnceListener(event: 'pause', listener: () => void): this; + prependOnceListener(event: 'resume', listener: () => void): this; + prependOnceListener(event: 'SIGCONT', listener: () => void): this; + prependOnceListener(event: 'SIGINT', listener: () => void): this; + prependOnceListener(event: 'SIGTSTP', listener: () => void): this; + prependOnceListener(event: 'history', listener: (history: string[]) => void): this; + [Symbol.asyncIterator](): AsyncIterableIterator; + } + type ReadLine = Interface; // type forwarded for backwards compatibility + type Completer = (line: string) => CompleterResult; + type AsyncCompleter = (line: string, callback: (err?: null | Error, result?: CompleterResult) => void) => void; + type CompleterResult = [string[], string]; + interface ReadLineOptions { + input: NodeJS.ReadableStream; + output?: NodeJS.WritableStream | undefined; + completer?: Completer | AsyncCompleter | undefined; + terminal?: boolean | undefined; + /** + * Initial list of history lines. This option makes sense + * only if `terminal` is set to `true` by the user or by an internal `output` + * check, otherwise the history caching mechanism is not initialized at all. + * @default [] + */ + history?: string[] | undefined; + historySize?: number | undefined; + prompt?: string | undefined; + crlfDelay?: number | undefined; + /** + * If `true`, when a new input line added + * to the history list duplicates an older one, this removes the older line + * from the list. + * @default false + */ + removeHistoryDuplicates?: boolean | undefined; + escapeCodeTimeout?: number | undefined; + tabSize?: number | undefined; + } + /** + * The `readline.createInterface()` method creates a new `readline.Interface`instance. + * + * ```js + * const readline = require('readline'); + * const rl = readline.createInterface({ + * input: process.stdin, + * output: process.stdout + * }); + * ``` + * + * Once the `readline.Interface` instance is created, the most common case is to + * listen for the `'line'` event: + * + * ```js + * rl.on('line', (line) => { + * console.log(`Received: ${line}`); + * }); + * ``` + * + * If `terminal` is `true` for this instance then the `output` stream will get + * the best compatibility if it defines an `output.columns` property and emits + * a `'resize'` event on the `output` if or when the columns ever change + * (`process.stdout` does this automatically when it is a TTY). + * + * When creating a `readline.Interface` using `stdin` as input, the program + * will not terminate until it receives `EOF` (Ctrl+D on + * Linux/macOS, Ctrl+Z followed by Return on + * Windows). + * If you want your application to exit without waiting for user input, you can `unref()` the standard input stream: + * + * ```js + * process.stdin.unref(); + * ``` + * @since v0.1.98 + */ + function createInterface(input: NodeJS.ReadableStream, output?: NodeJS.WritableStream, completer?: Completer | AsyncCompleter, terminal?: boolean): Interface; + function createInterface(options: ReadLineOptions): Interface; + /** + * The `readline.emitKeypressEvents()` method causes the given `Readable` stream to begin emitting `'keypress'` events corresponding to received input. + * + * Optionally, `interface` specifies a `readline.Interface` instance for which + * autocompletion is disabled when copy-pasted input is detected. + * + * If the `stream` is a `TTY`, then it must be in raw mode. + * + * This is automatically called by any readline instance on its `input` if the`input` is a terminal. Closing the `readline` instance does not stop + * the `input` from emitting `'keypress'` events. + * + * ```js + * readline.emitKeypressEvents(process.stdin); + * if (process.stdin.isTTY) + * process.stdin.setRawMode(true); + * ``` + * + * ## Example: Tiny CLI + * + * The following example illustrates the use of `readline.Interface` class to + * implement a small command-line interface: + * + * ```js + * const readline = require('readline'); + * const rl = readline.createInterface({ + * input: process.stdin, + * output: process.stdout, + * prompt: 'OHAI> ' + * }); + * + * rl.prompt(); + * + * rl.on('line', (line) => { + * switch (line.trim()) { + * case 'hello': + * console.log('world!'); + * break; + * default: + * console.log(`Say what? I might have heard '${line.trim()}'`); + * break; + * } + * rl.prompt(); + * }).on('close', () => { + * console.log('Have a great day!'); + * process.exit(0); + * }); + * ``` + * + * ## Example: Read file stream line-by-Line + * + * A common use case for `readline` is to consume an input file one line at a + * time. The easiest way to do so is leveraging the `fs.ReadStream` API as + * well as a `for await...of` loop: + * + * ```js + * const fs = require('fs'); + * const readline = require('readline'); + * + * async function processLineByLine() { + * const fileStream = fs.createReadStream('input.txt'); + * + * const rl = readline.createInterface({ + * input: fileStream, + * crlfDelay: Infinity + * }); + * // Note: we use the crlfDelay option to recognize all instances of CR LF + * // ('\r\n') in input.txt as a single line break. + * + * for await (const line of rl) { + * // Each line in input.txt will be successively available here as `line`. + * console.log(`Line from file: ${line}`); + * } + * } + * + * processLineByLine(); + * ``` + * + * Alternatively, one could use the `'line'` event: + * + * ```js + * const fs = require('fs'); + * const readline = require('readline'); + * + * const rl = readline.createInterface({ + * input: fs.createReadStream('sample.txt'), + * crlfDelay: Infinity + * }); + * + * rl.on('line', (line) => { + * console.log(`Line from file: ${line}`); + * }); + * ``` + * + * Currently, `for await...of` loop can be a bit slower. If `async` / `await`flow and speed are both essential, a mixed approach can be applied: + * + * ```js + * const { once } = require('events'); + * const { createReadStream } = require('fs'); + * const { createInterface } = require('readline'); + * + * (async function processLineByLine() { + * try { + * const rl = createInterface({ + * input: createReadStream('big-file.txt'), + * crlfDelay: Infinity + * }); + * + * rl.on('line', (line) => { + * // Process the line. + * }); + * + * await once(rl, 'close'); + * + * console.log('File processed.'); + * } catch (err) { + * console.error(err); + * } + * })(); + * ``` + * @since v0.7.7 + */ + function emitKeypressEvents(stream: NodeJS.ReadableStream, readlineInterface?: Interface): void; + type Direction = -1 | 0 | 1; + interface CursorPos { + rows: number; + cols: number; + } + /** + * The `readline.clearLine()` method clears current line of given `TTY` stream + * in a specified direction identified by `dir`. + * @since v0.7.7 + * @param callback Invoked once the operation completes. + * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. + */ + function clearLine(stream: NodeJS.WritableStream, dir: Direction, callback?: () => void): boolean; + /** + * The `readline.clearScreenDown()` method clears the given `TTY` stream from + * the current position of the cursor down. + * @since v0.7.7 + * @param callback Invoked once the operation completes. + * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. + */ + function clearScreenDown(stream: NodeJS.WritableStream, callback?: () => void): boolean; + /** + * The `readline.cursorTo()` method moves cursor to the specified position in a + * given `TTY` `stream`. + * @since v0.7.7 + * @param callback Invoked once the operation completes. + * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. + */ + function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number, callback?: () => void): boolean; + /** + * The `readline.moveCursor()` method moves the cursor _relative_ to its current + * position in a given `TTY` `stream`. + * + * ## Example: Tiny CLI + * + * The following example illustrates the use of `readline.Interface` class to + * implement a small command-line interface: + * + * ```js + * const readline = require('readline'); + * const rl = readline.createInterface({ + * input: process.stdin, + * output: process.stdout, + * prompt: 'OHAI> ' + * }); + * + * rl.prompt(); + * + * rl.on('line', (line) => { + * switch (line.trim()) { + * case 'hello': + * console.log('world!'); + * break; + * default: + * console.log(`Say what? I might have heard '${line.trim()}'`); + * break; + * } + * rl.prompt(); + * }).on('close', () => { + * console.log('Have a great day!'); + * process.exit(0); + * }); + * ``` + * + * ## Example: Read file stream line-by-Line + * + * A common use case for `readline` is to consume an input file one line at a + * time. The easiest way to do so is leveraging the `fs.ReadStream` API as + * well as a `for await...of` loop: + * + * ```js + * const fs = require('fs'); + * const readline = require('readline'); + * + * async function processLineByLine() { + * const fileStream = fs.createReadStream('input.txt'); + * + * const rl = readline.createInterface({ + * input: fileStream, + * crlfDelay: Infinity + * }); + * // Note: we use the crlfDelay option to recognize all instances of CR LF + * // ('\r\n') in input.txt as a single line break. + * + * for await (const line of rl) { + * // Each line in input.txt will be successively available here as `line`. + * console.log(`Line from file: ${line}`); + * } + * } + * + * processLineByLine(); + * ``` + * + * Alternatively, one could use the `'line'` event: + * + * ```js + * const fs = require('fs'); + * const readline = require('readline'); + * + * const rl = readline.createInterface({ + * input: fs.createReadStream('sample.txt'), + * crlfDelay: Infinity + * }); + * + * rl.on('line', (line) => { + * console.log(`Line from file: ${line}`); + * }); + * ``` + * + * Currently, `for await...of` loop can be a bit slower. If `async` / `await`flow and speed are both essential, a mixed approach can be applied: + * + * ```js + * const { once } = require('events'); + * const { createReadStream } = require('fs'); + * const { createInterface } = require('readline'); + * + * (async function processLineByLine() { + * try { + * const rl = createInterface({ + * input: createReadStream('big-file.txt'), + * crlfDelay: Infinity + * }); + * + * rl.on('line', (line) => { + * // Process the line. + * }); + * + * await once(rl, 'close'); + * + * console.log('File processed.'); + * } catch (err) { + * console.error(err); + * } + * })(); + * ``` + * @since v0.7.7 + * @param callback Invoked once the operation completes. + * @return `false` if `stream` wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. + */ + function moveCursor(stream: NodeJS.WritableStream, dx: number, dy: number, callback?: () => void): boolean; +} +declare module 'node:readline' { + export * from 'readline'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/repl.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/repl.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..e81fee5d800d75a71b224019cefe0c35f497add4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/repl.d.ts" @@ -0,0 +1,424 @@ +/** + * The `repl` module provides a Read-Eval-Print-Loop (REPL) implementation that + * is available both as a standalone program or includible in other applications. + * It can be accessed using: + * + * ```js + * const repl = require('repl'); + * ``` + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/repl.js) + */ +declare module 'repl' { + import { Interface, Completer, AsyncCompleter } from 'node:readline'; + import { Context } from 'node:vm'; + import { InspectOptions } from 'node:util'; + interface ReplOptions { + /** + * The input prompt to display. + * @default "> " + */ + prompt?: string | undefined; + /** + * The `Readable` stream from which REPL input will be read. + * @default process.stdin + */ + input?: NodeJS.ReadableStream | undefined; + /** + * The `Writable` stream to which REPL output will be written. + * @default process.stdout + */ + output?: NodeJS.WritableStream | undefined; + /** + * If `true`, specifies that the output should be treated as a TTY terminal, and have + * ANSI/VT100 escape codes written to it. + * Default: checking the value of the `isTTY` property on the output stream upon + * instantiation. + */ + terminal?: boolean | undefined; + /** + * The function to be used when evaluating each given line of input. + * Default: an async wrapper for the JavaScript `eval()` function. An `eval` function can + * error with `repl.Recoverable` to indicate the input was incomplete and prompt for + * additional lines. + * + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_default_evaluation + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_custom_evaluation_functions + */ + eval?: REPLEval | undefined; + /** + * Defines if the repl prints output previews or not. + * @default `true` Always `false` in case `terminal` is falsy. + */ + preview?: boolean | undefined; + /** + * If `true`, specifies that the default `writer` function should include ANSI color + * styling to REPL output. If a custom `writer` function is provided then this has no + * effect. + * Default: the REPL instance's `terminal` value. + */ + useColors?: boolean | undefined; + /** + * If `true`, specifies that the default evaluation function will use the JavaScript + * `global` as the context as opposed to creating a new separate context for the REPL + * instance. The node CLI REPL sets this value to `true`. + * Default: `false`. + */ + useGlobal?: boolean | undefined; + /** + * If `true`, specifies that the default writer will not output the return value of a + * command if it evaluates to `undefined`. + * Default: `false`. + */ + ignoreUndefined?: boolean | undefined; + /** + * The function to invoke to format the output of each command before writing to `output`. + * Default: a wrapper for `util.inspect`. + * + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_customizing_repl_output + */ + writer?: REPLWriter | undefined; + /** + * An optional function used for custom Tab auto completion. + * + * @see https://nodejs.org/dist/latest-v11.x/docs/api/readline.html#readline_use_of_the_completer_function + */ + completer?: Completer | AsyncCompleter | undefined; + /** + * A flag that specifies whether the default evaluator executes all JavaScript commands in + * strict mode or default (sloppy) mode. + * Accepted values are: + * - `repl.REPL_MODE_SLOPPY` - evaluates expressions in sloppy mode. + * - `repl.REPL_MODE_STRICT` - evaluates expressions in strict mode. This is equivalent to + * prefacing every repl statement with `'use strict'`. + */ + replMode?: typeof REPL_MODE_SLOPPY | typeof REPL_MODE_STRICT | undefined; + /** + * Stop evaluating the current piece of code when `SIGINT` is received, i.e. `Ctrl+C` is + * pressed. This cannot be used together with a custom `eval` function. + * Default: `false`. + */ + breakEvalOnSigint?: boolean | undefined; + } + type REPLEval = (this: REPLServer, evalCmd: string, context: Context, file: string, cb: (err: Error | null, result: any) => void) => void; + type REPLWriter = (this: REPLServer, obj: any) => string; + /** + * This is the default "writer" value, if none is passed in the REPL options, + * and it can be overridden by custom print functions. + */ + const writer: REPLWriter & { + options: InspectOptions; + }; + type REPLCommandAction = (this: REPLServer, text: string) => void; + interface REPLCommand { + /** + * Help text to be displayed when `.help` is entered. + */ + help?: string | undefined; + /** + * The function to execute, optionally accepting a single string argument. + */ + action: REPLCommandAction; + } + /** + * Instances of `repl.REPLServer` are created using the {@link start} method + * or directly using the JavaScript `new` keyword. + * + * ```js + * const repl = require('repl'); + * + * const options = { useColors: true }; + * + * const firstInstance = repl.start(options); + * const secondInstance = new repl.REPLServer(options); + * ``` + * @since v0.1.91 + */ + class REPLServer extends Interface { + /** + * The `vm.Context` provided to the `eval` function to be used for JavaScript + * evaluation. + */ + readonly context: Context; + /** + * @deprecated since v14.3.0 - Use `input` instead. + */ + readonly inputStream: NodeJS.ReadableStream; + /** + * @deprecated since v14.3.0 - Use `output` instead. + */ + readonly outputStream: NodeJS.WritableStream; + /** + * The `Readable` stream from which REPL input will be read. + */ + readonly input: NodeJS.ReadableStream; + /** + * The `Writable` stream to which REPL output will be written. + */ + readonly output: NodeJS.WritableStream; + /** + * The commands registered via `replServer.defineCommand()`. + */ + readonly commands: NodeJS.ReadOnlyDict; + /** + * A value indicating whether the REPL is currently in "editor mode". + * + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_commands_and_special_keys + */ + readonly editorMode: boolean; + /** + * A value indicating whether the `_` variable has been assigned. + * + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable + */ + readonly underscoreAssigned: boolean; + /** + * The last evaluation result from the REPL (assigned to the `_` variable inside of the REPL). + * + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable + */ + readonly last: any; + /** + * A value indicating whether the `_error` variable has been assigned. + * + * @since v9.8.0 + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable + */ + readonly underscoreErrAssigned: boolean; + /** + * The last error raised inside the REPL (assigned to the `_error` variable inside of the REPL). + * + * @since v9.8.0 + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_assignment_of_the_underscore_variable + */ + readonly lastError: any; + /** + * Specified in the REPL options, this is the function to be used when evaluating each + * given line of input. If not specified in the REPL options, this is an async wrapper + * for the JavaScript `eval()` function. + */ + readonly eval: REPLEval; + /** + * Specified in the REPL options, this is a value indicating whether the default + * `writer` function should include ANSI color styling to REPL output. + */ + readonly useColors: boolean; + /** + * Specified in the REPL options, this is a value indicating whether the default `eval` + * function will use the JavaScript `global` as the context as opposed to creating a new + * separate context for the REPL instance. + */ + readonly useGlobal: boolean; + /** + * Specified in the REPL options, this is a value indicating whether the default `writer` + * function should output the result of a command if it evaluates to `undefined`. + */ + readonly ignoreUndefined: boolean; + /** + * Specified in the REPL options, this is the function to invoke to format the output of + * each command before writing to `outputStream`. If not specified in the REPL options, + * this will be a wrapper for `util.inspect`. + */ + readonly writer: REPLWriter; + /** + * Specified in the REPL options, this is the function to use for custom Tab auto-completion. + */ + readonly completer: Completer | AsyncCompleter; + /** + * Specified in the REPL options, this is a flag that specifies whether the default `eval` + * function should execute all JavaScript commands in strict mode or default (sloppy) mode. + * Possible values are: + * - `repl.REPL_MODE_SLOPPY` - evaluates expressions in sloppy mode. + * - `repl.REPL_MODE_STRICT` - evaluates expressions in strict mode. This is equivalent to + * prefacing every repl statement with `'use strict'`. + */ + readonly replMode: typeof REPL_MODE_SLOPPY | typeof REPL_MODE_STRICT; + /** + * NOTE: According to the documentation: + * + * > Instances of `repl.REPLServer` are created using the `repl.start()` method and + * > _should not_ be created directly using the JavaScript `new` keyword. + * + * `REPLServer` cannot be subclassed due to implementation specifics in NodeJS. + * + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_class_replserver + */ + private constructor(); + /** + * The `replServer.defineCommand()` method is used to add new `.`\-prefixed commands + * to the REPL instance. Such commands are invoked by typing a `.` followed by the`keyword`. The `cmd` is either a `Function` or an `Object` with the following + * properties: + * + * The following example shows two new commands added to the REPL instance: + * + * ```js + * const repl = require('repl'); + * + * const replServer = repl.start({ prompt: '> ' }); + * replServer.defineCommand('sayhello', { + * help: 'Say hello', + * action(name) { + * this.clearBufferedCommand(); + * console.log(`Hello, ${name}!`); + * this.displayPrompt(); + * } + * }); + * replServer.defineCommand('saybye', function saybye() { + * console.log('Goodbye!'); + * this.close(); + * }); + * ``` + * + * The new commands can then be used from within the REPL instance: + * + * ```console + * > .sayhello Node.js User + * Hello, Node.js User! + * > .saybye + * Goodbye! + * ``` + * @since v0.3.0 + * @param keyword The command keyword (*without* a leading `.` character). + * @param cmd The function to invoke when the command is processed. + */ + defineCommand(keyword: string, cmd: REPLCommandAction | REPLCommand): void; + /** + * The `replServer.displayPrompt()` method readies the REPL instance for input + * from the user, printing the configured `prompt` to a new line in the `output`and resuming the `input` to accept new input. + * + * When multi-line input is being entered, an ellipsis is printed rather than the + * 'prompt'. + * + * When `preserveCursor` is `true`, the cursor placement will not be reset to `0`. + * + * The `replServer.displayPrompt` method is primarily intended to be called from + * within the action function for commands registered using the`replServer.defineCommand()` method. + * @since v0.1.91 + */ + displayPrompt(preserveCursor?: boolean): void; + /** + * The `replServer.clearBufferedCommand()` method clears any command that has been + * buffered but not yet executed. This method is primarily intended to be + * called from within the action function for commands registered using the`replServer.defineCommand()` method. + * @since v9.0.0 + */ + clearBufferedCommand(): void; + /** + * Initializes a history log file for the REPL instance. When executing the + * Node.js binary and using the command-line REPL, a history file is initialized + * by default. However, this is not the case when creating a REPL + * programmatically. Use this method to initialize a history log file when working + * with REPL instances programmatically. + * @since v11.10.0 + * @param historyPath the path to the history file + * @param callback called when history writes are ready or upon error + */ + setupHistory(path: string, callback: (err: Error | null, repl: this) => void): void; + /** + * events.EventEmitter + * 1. close - inherited from `readline.Interface` + * 2. line - inherited from `readline.Interface` + * 3. pause - inherited from `readline.Interface` + * 4. resume - inherited from `readline.Interface` + * 5. SIGCONT - inherited from `readline.Interface` + * 6. SIGINT - inherited from `readline.Interface` + * 7. SIGTSTP - inherited from `readline.Interface` + * 8. exit + * 9. reset + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: 'close', listener: () => void): this; + addListener(event: 'line', listener: (input: string) => void): this; + addListener(event: 'pause', listener: () => void): this; + addListener(event: 'resume', listener: () => void): this; + addListener(event: 'SIGCONT', listener: () => void): this; + addListener(event: 'SIGINT', listener: () => void): this; + addListener(event: 'SIGTSTP', listener: () => void): this; + addListener(event: 'exit', listener: () => void): this; + addListener(event: 'reset', listener: (context: Context) => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: 'close'): boolean; + emit(event: 'line', input: string): boolean; + emit(event: 'pause'): boolean; + emit(event: 'resume'): boolean; + emit(event: 'SIGCONT'): boolean; + emit(event: 'SIGINT'): boolean; + emit(event: 'SIGTSTP'): boolean; + emit(event: 'exit'): boolean; + emit(event: 'reset', context: Context): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: 'close', listener: () => void): this; + on(event: 'line', listener: (input: string) => void): this; + on(event: 'pause', listener: () => void): this; + on(event: 'resume', listener: () => void): this; + on(event: 'SIGCONT', listener: () => void): this; + on(event: 'SIGINT', listener: () => void): this; + on(event: 'SIGTSTP', listener: () => void): this; + on(event: 'exit', listener: () => void): this; + on(event: 'reset', listener: (context: Context) => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: 'close', listener: () => void): this; + once(event: 'line', listener: (input: string) => void): this; + once(event: 'pause', listener: () => void): this; + once(event: 'resume', listener: () => void): this; + once(event: 'SIGCONT', listener: () => void): this; + once(event: 'SIGINT', listener: () => void): this; + once(event: 'SIGTSTP', listener: () => void): this; + once(event: 'exit', listener: () => void): this; + once(event: 'reset', listener: (context: Context) => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: 'close', listener: () => void): this; + prependListener(event: 'line', listener: (input: string) => void): this; + prependListener(event: 'pause', listener: () => void): this; + prependListener(event: 'resume', listener: () => void): this; + prependListener(event: 'SIGCONT', listener: () => void): this; + prependListener(event: 'SIGINT', listener: () => void): this; + prependListener(event: 'SIGTSTP', listener: () => void): this; + prependListener(event: 'exit', listener: () => void): this; + prependListener(event: 'reset', listener: (context: Context) => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'close', listener: () => void): this; + prependOnceListener(event: 'line', listener: (input: string) => void): this; + prependOnceListener(event: 'pause', listener: () => void): this; + prependOnceListener(event: 'resume', listener: () => void): this; + prependOnceListener(event: 'SIGCONT', listener: () => void): this; + prependOnceListener(event: 'SIGINT', listener: () => void): this; + prependOnceListener(event: 'SIGTSTP', listener: () => void): this; + prependOnceListener(event: 'exit', listener: () => void): this; + prependOnceListener(event: 'reset', listener: (context: Context) => void): this; + } + /** + * A flag passed in the REPL options. Evaluates expressions in sloppy mode. + */ + const REPL_MODE_SLOPPY: unique symbol; + /** + * A flag passed in the REPL options. Evaluates expressions in strict mode. + * This is equivalent to prefacing every repl statement with `'use strict'`. + */ + const REPL_MODE_STRICT: unique symbol; + /** + * The `repl.start()` method creates and starts a {@link REPLServer} instance. + * + * If `options` is a string, then it specifies the input prompt: + * + * ```js + * const repl = require('repl'); + * + * // a Unix style prompt + * repl.start('$ '); + * ``` + * @since v0.1.91 + */ + function start(options?: string | ReplOptions): REPLServer; + /** + * Indicates a recoverable error that a `REPLServer` can use to support multi-line input. + * + * @see https://nodejs.org/dist/latest-v10.x/docs/api/repl.html#repl_recoverable_errors + */ + class Recoverable extends SyntaxError { + err: Error; + constructor(err: Error); + } +} +declare module 'node:repl' { + export * from 'repl'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/stream.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/stream.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..7edc7bfa8ddacef81fd8f1dfa5c1e0f0b0e9b9ad --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/stream.d.ts" @@ -0,0 +1,1249 @@ +/** + * A stream is an abstract interface for working with streaming data in Node.js. + * The `stream` module provides an API for implementing the stream interface. + * + * There are many stream objects provided by Node.js. For instance, a `request to an HTTP server` and `process.stdout` are both stream instances. + * + * Streams can be readable, writable, or both. All streams are instances of `EventEmitter`. + * + * To access the `stream` module: + * + * ```js + * const stream = require('stream'); + * ``` + * + * The `stream` module is useful for creating new types of stream instances. It is + * usually not necessary to use the `stream` module to consume streams. + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/stream.js) + */ +declare module 'stream' { + import { EventEmitter, Abortable } from 'node:events'; + import * as streamPromises from 'node:stream/promises'; + import * as streamConsumers from 'node:stream/consumers'; + class internal extends EventEmitter { + pipe( + destination: T, + options?: { + end?: boolean | undefined; + } + ): T; + } + namespace internal { + class Stream extends internal { + constructor(opts?: ReadableOptions); + } + interface StreamOptions extends Abortable { + emitClose?: boolean | undefined; + highWaterMark?: number | undefined; + objectMode?: boolean | undefined; + construct?(this: T, callback: (error?: Error | null) => void): void; + destroy?(this: T, error: Error | null, callback: (error: Error | null) => void): void; + autoDestroy?: boolean | undefined; + } + interface ReadableOptions extends StreamOptions { + encoding?: BufferEncoding | undefined; + read?(this: Readable, size: number): void; + } + /** + * @since v0.9.4 + */ + class Readable extends Stream implements NodeJS.ReadableStream { + /** + * A utility method for creating Readable Streams out of iterators. + */ + static from(iterable: Iterable | AsyncIterable, options?: ReadableOptions): Readable; + /** + * Returns whether the stream has been read from or cancelled. + * @since v16.8.0 + */ + static isDisturbed(stream: Readable | NodeJS.ReadableStream): boolean; + /** + * Returns whether the stream was destroyed or errored before emitting `'end'`. + * @since v16.8.0 + * @experimental + */ + readonly readableAborted: boolean; + /** + * Is `true` if it is safe to call `readable.read()`, which means + * the stream has not been destroyed or emitted `'error'` or `'end'`. + * @since v11.4.0 + */ + readable: boolean; + /** + * Returns whether `'data'` has been emitted. + * @since v16.7.0, v14.18.0 + * @experimental + */ + readonly readableDidRead: boolean; + /** + * Getter for the property `encoding` of a given `Readable` stream. The `encoding`property can be set using the `readable.setEncoding()` method. + * @since v12.7.0 + */ + readonly readableEncoding: BufferEncoding | null; + /** + * Becomes `true` when `'end'` event is emitted. + * @since v12.9.0 + */ + readonly readableEnded: boolean; + /** + * This property reflects the current state of a `Readable` stream as described + * in the `Three states` section. + * @since v9.4.0 + */ + readonly readableFlowing: boolean | null; + /** + * Returns the value of `highWaterMark` passed when creating this `Readable`. + * @since v9.3.0 + */ + readonly readableHighWaterMark: number; + /** + * This property contains the number of bytes (or objects) in the queue + * ready to be read. The value provides introspection data regarding + * the status of the `highWaterMark`. + * @since v9.4.0 + */ + readonly readableLength: number; + /** + * Getter for the property `objectMode` of a given `Readable` stream. + * @since v12.3.0 + */ + readonly readableObjectMode: boolean; + /** + * Is `true` after `readable.destroy()` has been called. + * @since v8.0.0 + */ + destroyed: boolean; + constructor(opts?: ReadableOptions); + _construct?(callback: (error?: Error | null) => void): void; + _read(size: number): void; + /** + * The `readable.read()` method pulls some data out of the internal buffer and + * returns it. If no data available to be read, `null` is returned. By default, + * the data will be returned as a `Buffer` object unless an encoding has been + * specified using the `readable.setEncoding()` method or the stream is operating + * in object mode. + * + * The optional `size` argument specifies a specific number of bytes to read. If`size` bytes are not available to be read, `null` will be returned _unless_the stream has ended, in which + * case all of the data remaining in the internal + * buffer will be returned. + * + * If the `size` argument is not specified, all of the data contained in the + * internal buffer will be returned. + * + * The `size` argument must be less than or equal to 1 GiB. + * + * The `readable.read()` method should only be called on `Readable` streams + * operating in paused mode. In flowing mode, `readable.read()` is called + * automatically until the internal buffer is fully drained. + * + * ```js + * const readable = getReadableStreamSomehow(); + * + * // 'readable' may be triggered multiple times as data is buffered in + * readable.on('readable', () => { + * let chunk; + * console.log('Stream is readable (new data received in buffer)'); + * // Use a loop to make sure we read all currently available data + * while (null !== (chunk = readable.read())) { + * console.log(`Read ${chunk.length} bytes of data...`); + * } + * }); + * + * // 'end' will be triggered once when there is no more data available + * readable.on('end', () => { + * console.log('Reached end of stream.'); + * }); + * ``` + * + * Each call to `readable.read()` returns a chunk of data, or `null`. The chunks + * are not concatenated. A `while` loop is necessary to consume all data + * currently in the buffer. When reading a large file `.read()` may return `null`, + * having consumed all buffered content so far, but there is still more data to + * come not yet buffered. In this case a new `'readable'` event will be emitted + * when there is more data in the buffer. Finally the `'end'` event will be + * emitted when there is no more data to come. + * + * Therefore to read a file's whole contents from a `readable`, it is necessary + * to collect chunks across multiple `'readable'` events: + * + * ```js + * const chunks = []; + * + * readable.on('readable', () => { + * let chunk; + * while (null !== (chunk = readable.read())) { + * chunks.push(chunk); + * } + * }); + * + * readable.on('end', () => { + * const content = chunks.join(''); + * }); + * ``` + * + * A `Readable` stream in object mode will always return a single item from + * a call to `readable.read(size)`, regardless of the value of the`size` argument. + * + * If the `readable.read()` method returns a chunk of data, a `'data'` event will + * also be emitted. + * + * Calling {@link read} after the `'end'` event has + * been emitted will return `null`. No runtime error will be raised. + * @since v0.9.4 + * @param size Optional argument to specify how much data to read. + */ + read(size?: number): any; + /** + * The `readable.setEncoding()` method sets the character encoding for + * data read from the `Readable` stream. + * + * By default, no encoding is assigned and stream data will be returned as`Buffer` objects. Setting an encoding causes the stream data + * to be returned as strings of the specified encoding rather than as `Buffer`objects. For instance, calling `readable.setEncoding('utf8')` will cause the + * output data to be interpreted as UTF-8 data, and passed as strings. Calling`readable.setEncoding('hex')` will cause the data to be encoded in hexadecimal + * string format. + * + * The `Readable` stream will properly handle multi-byte characters delivered + * through the stream that would otherwise become improperly decoded if simply + * pulled from the stream as `Buffer` objects. + * + * ```js + * const readable = getReadableStreamSomehow(); + * readable.setEncoding('utf8'); + * readable.on('data', (chunk) => { + * assert.equal(typeof chunk, 'string'); + * console.log('Got %d characters of string data:', chunk.length); + * }); + * ``` + * @since v0.9.4 + * @param encoding The encoding to use. + */ + setEncoding(encoding: BufferEncoding): this; + /** + * The `readable.pause()` method will cause a stream in flowing mode to stop + * emitting `'data'` events, switching out of flowing mode. Any data that + * becomes available will remain in the internal buffer. + * + * ```js + * const readable = getReadableStreamSomehow(); + * readable.on('data', (chunk) => { + * console.log(`Received ${chunk.length} bytes of data.`); + * readable.pause(); + * console.log('There will be no additional data for 1 second.'); + * setTimeout(() => { + * console.log('Now data will start flowing again.'); + * readable.resume(); + * }, 1000); + * }); + * ``` + * + * The `readable.pause()` method has no effect if there is a `'readable'`event listener. + * @since v0.9.4 + */ + pause(): this; + /** + * The `readable.resume()` method causes an explicitly paused `Readable` stream to + * resume emitting `'data'` events, switching the stream into flowing mode. + * + * The `readable.resume()` method can be used to fully consume the data from a + * stream without actually processing any of that data: + * + * ```js + * getReadableStreamSomehow() + * .resume() + * .on('end', () => { + * console.log('Reached the end, but did not read anything.'); + * }); + * ``` + * + * The `readable.resume()` method has no effect if there is a `'readable'`event listener. + * @since v0.9.4 + */ + resume(): this; + /** + * The `readable.isPaused()` method returns the current operating state of the`Readable`. This is used primarily by the mechanism that underlies the`readable.pipe()` method. In most + * typical cases, there will be no reason to + * use this method directly. + * + * ```js + * const readable = new stream.Readable(); + * + * readable.isPaused(); // === false + * readable.pause(); + * readable.isPaused(); // === true + * readable.resume(); + * readable.isPaused(); // === false + * ``` + * @since v0.11.14 + */ + isPaused(): boolean; + /** + * The `readable.unpipe()` method detaches a `Writable` stream previously attached + * using the {@link pipe} method. + * + * If the `destination` is not specified, then _all_ pipes are detached. + * + * If the `destination` is specified, but no pipe is set up for it, then + * the method does nothing. + * + * ```js + * const fs = require('fs'); + * const readable = getReadableStreamSomehow(); + * const writable = fs.createWriteStream('file.txt'); + * // All the data from readable goes into 'file.txt', + * // but only for the first second. + * readable.pipe(writable); + * setTimeout(() => { + * console.log('Stop writing to file.txt.'); + * readable.unpipe(writable); + * console.log('Manually close the file stream.'); + * writable.end(); + * }, 1000); + * ``` + * @since v0.9.4 + * @param destination Optional specific stream to unpipe + */ + unpipe(destination?: NodeJS.WritableStream): this; + /** + * Passing `chunk` as `null` signals the end of the stream (EOF) and behaves the + * same as `readable.push(null)`, after which no more data can be written. The EOF + * signal is put at the end of the buffer and any buffered data will still be + * flushed. + * + * The `readable.unshift()` method pushes a chunk of data back into the internal + * buffer. This is useful in certain situations where a stream is being consumed by + * code that needs to "un-consume" some amount of data that it has optimistically + * pulled out of the source, so that the data can be passed on to some other party. + * + * The `stream.unshift(chunk)` method cannot be called after the `'end'` event + * has been emitted or a runtime error will be thrown. + * + * Developers using `stream.unshift()` often should consider switching to + * use of a `Transform` stream instead. See the `API for stream implementers` section for more information. + * + * ```js + * // Pull off a header delimited by \n\n. + * // Use unshift() if we get too much. + * // Call the callback with (error, header, stream). + * const { StringDecoder } = require('string_decoder'); + * function parseHeader(stream, callback) { + * stream.on('error', callback); + * stream.on('readable', onReadable); + * const decoder = new StringDecoder('utf8'); + * let header = ''; + * function onReadable() { + * let chunk; + * while (null !== (chunk = stream.read())) { + * const str = decoder.write(chunk); + * if (str.match(/\n\n/)) { + * // Found the header boundary. + * const split = str.split(/\n\n/); + * header += split.shift(); + * const remaining = split.join('\n\n'); + * const buf = Buffer.from(remaining, 'utf8'); + * stream.removeListener('error', callback); + * // Remove the 'readable' listener before unshifting. + * stream.removeListener('readable', onReadable); + * if (buf.length) + * stream.unshift(buf); + * // Now the body of the message can be read from the stream. + * callback(null, header, stream); + * } else { + * // Still reading the header. + * header += str; + * } + * } + * } + * } + * ``` + * + * Unlike {@link push}, `stream.unshift(chunk)` will not + * end the reading process by resetting the internal reading state of the stream. + * This can cause unexpected results if `readable.unshift()` is called during a + * read (i.e. from within a {@link _read} implementation on a + * custom stream). Following the call to `readable.unshift()` with an immediate {@link push} will reset the reading state appropriately, + * however it is best to simply avoid calling `readable.unshift()` while in the + * process of performing a read. + * @since v0.9.11 + * @param chunk Chunk of data to unshift onto the read queue. For streams not operating in object mode, `chunk` must be a string, `Buffer`, `Uint8Array` or `null`. For object mode + * streams, `chunk` may be any JavaScript value. + * @param encoding Encoding of string chunks. Must be a valid `Buffer` encoding, such as `'utf8'` or `'ascii'`. + */ + unshift(chunk: any, encoding?: BufferEncoding): void; + /** + * Prior to Node.js 0.10, streams did not implement the entire `stream` module API + * as it is currently defined. (See `Compatibility` for more information.) + * + * When using an older Node.js library that emits `'data'` events and has a {@link pause} method that is advisory only, the`readable.wrap()` method can be used to create a `Readable` + * stream that uses + * the old stream as its data source. + * + * It will rarely be necessary to use `readable.wrap()` but the method has been + * provided as a convenience for interacting with older Node.js applications and + * libraries. + * + * ```js + * const { OldReader } = require('./old-api-module.js'); + * const { Readable } = require('stream'); + * const oreader = new OldReader(); + * const myReader = new Readable().wrap(oreader); + * + * myReader.on('readable', () => { + * myReader.read(); // etc. + * }); + * ``` + * @since v0.9.4 + * @param stream An "old style" readable stream + */ + wrap(stream: NodeJS.ReadableStream): this; + push(chunk: any, encoding?: BufferEncoding): boolean; + _destroy(error: Error | null, callback: (error?: Error | null) => void): void; + /** + * Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'`event (unless `emitClose` is set to `false`). After this call, the readable + * stream will release any internal resources and subsequent calls to `push()`will be ignored. + * + * Once `destroy()` has been called any further calls will be a no-op and no + * further errors except from `_destroy()` may be emitted as `'error'`. + * + * Implementors should not override this method, but instead implement `readable._destroy()`. + * @since v8.0.0 + * @param error Error which will be passed as payload in `'error'` event + */ + destroy(error?: Error): this; + /** + * Event emitter + * The defined events on documents including: + * 1. close + * 2. data + * 3. end + * 4. error + * 5. pause + * 6. readable + * 7. resume + */ + addListener(event: 'close', listener: () => void): this; + addListener(event: 'data', listener: (chunk: any) => void): this; + addListener(event: 'end', listener: () => void): this; + addListener(event: 'error', listener: (err: Error) => void): this; + addListener(event: 'pause', listener: () => void): this; + addListener(event: 'readable', listener: () => void): this; + addListener(event: 'resume', listener: () => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: 'close'): boolean; + emit(event: 'data', chunk: any): boolean; + emit(event: 'end'): boolean; + emit(event: 'error', err: Error): boolean; + emit(event: 'pause'): boolean; + emit(event: 'readable'): boolean; + emit(event: 'resume'): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: 'close', listener: () => void): this; + on(event: 'data', listener: (chunk: any) => void): this; + on(event: 'end', listener: () => void): this; + on(event: 'error', listener: (err: Error) => void): this; + on(event: 'pause', listener: () => void): this; + on(event: 'readable', listener: () => void): this; + on(event: 'resume', listener: () => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: 'close', listener: () => void): this; + once(event: 'data', listener: (chunk: any) => void): this; + once(event: 'end', listener: () => void): this; + once(event: 'error', listener: (err: Error) => void): this; + once(event: 'pause', listener: () => void): this; + once(event: 'readable', listener: () => void): this; + once(event: 'resume', listener: () => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: 'close', listener: () => void): this; + prependListener(event: 'data', listener: (chunk: any) => void): this; + prependListener(event: 'end', listener: () => void): this; + prependListener(event: 'error', listener: (err: Error) => void): this; + prependListener(event: 'pause', listener: () => void): this; + prependListener(event: 'readable', listener: () => void): this; + prependListener(event: 'resume', listener: () => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'close', listener: () => void): this; + prependOnceListener(event: 'data', listener: (chunk: any) => void): this; + prependOnceListener(event: 'end', listener: () => void): this; + prependOnceListener(event: 'error', listener: (err: Error) => void): this; + prependOnceListener(event: 'pause', listener: () => void): this; + prependOnceListener(event: 'readable', listener: () => void): this; + prependOnceListener(event: 'resume', listener: () => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + removeListener(event: 'close', listener: () => void): this; + removeListener(event: 'data', listener: (chunk: any) => void): this; + removeListener(event: 'end', listener: () => void): this; + removeListener(event: 'error', listener: (err: Error) => void): this; + removeListener(event: 'pause', listener: () => void): this; + removeListener(event: 'readable', listener: () => void): this; + removeListener(event: 'resume', listener: () => void): this; + removeListener(event: string | symbol, listener: (...args: any[]) => void): this; + [Symbol.asyncIterator](): AsyncIterableIterator; + } + interface WritableOptions extends StreamOptions { + decodeStrings?: boolean | undefined; + defaultEncoding?: BufferEncoding | undefined; + write?(this: Writable, chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void; + writev?( + this: Writable, + chunks: Array<{ + chunk: any; + encoding: BufferEncoding; + }>, + callback: (error?: Error | null) => void + ): void; + final?(this: Writable, callback: (error?: Error | null) => void): void; + } + /** + * @since v0.9.4 + */ + class Writable extends Stream implements NodeJS.WritableStream { + /** + * Is `true` if it is safe to call `writable.write()`, which means + * the stream has not been destroyed, errored or ended. + * @since v11.4.0 + */ + readonly writable: boolean; + /** + * Is `true` after `writable.end()` has been called. This property + * does not indicate whether the data has been flushed, for this use `writable.writableFinished` instead. + * @since v12.9.0 + */ + readonly writableEnded: boolean; + /** + * Is set to `true` immediately before the `'finish'` event is emitted. + * @since v12.6.0 + */ + readonly writableFinished: boolean; + /** + * Return the value of `highWaterMark` passed when creating this `Writable`. + * @since v9.3.0 + */ + readonly writableHighWaterMark: number; + /** + * This property contains the number of bytes (or objects) in the queue + * ready to be written. The value provides introspection data regarding + * the status of the `highWaterMark`. + * @since v9.4.0 + */ + readonly writableLength: number; + /** + * Getter for the property `objectMode` of a given `Writable` stream. + * @since v12.3.0 + */ + readonly writableObjectMode: boolean; + /** + * Number of times `writable.uncork()` needs to be + * called in order to fully uncork the stream. + * @since v13.2.0, v12.16.0 + */ + readonly writableCorked: number; + /** + * Is `true` after `writable.destroy()` has been called. + * @since v8.0.0 + */ + destroyed: boolean; + constructor(opts?: WritableOptions); + _write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void; + _writev?( + chunks: Array<{ + chunk: any; + encoding: BufferEncoding; + }>, + callback: (error?: Error | null) => void + ): void; + _construct?(callback: (error?: Error | null) => void): void; + _destroy(error: Error | null, callback: (error?: Error | null) => void): void; + _final(callback: (error?: Error | null) => void): void; + /** + * The `writable.write()` method writes some data to the stream, and calls the + * supplied `callback` once the data has been fully handled. If an error + * occurs, the `callback` will be called with the error as its + * first argument. The `callback` is called asynchronously and before `'error'` is + * emitted. + * + * The return value is `true` if the internal buffer is less than the`highWaterMark` configured when the stream was created after admitting `chunk`. + * If `false` is returned, further attempts to write data to the stream should + * stop until the `'drain'` event is emitted. + * + * While a stream is not draining, calls to `write()` will buffer `chunk`, and + * return false. Once all currently buffered chunks are drained (accepted for + * delivery by the operating system), the `'drain'` event will be emitted. + * It is recommended that once `write()` returns false, no more chunks be written + * until the `'drain'` event is emitted. While calling `write()` on a stream that + * is not draining is allowed, Node.js will buffer all written chunks until + * maximum memory usage occurs, at which point it will abort unconditionally. + * Even before it aborts, high memory usage will cause poor garbage collector + * performance and high RSS (which is not typically released back to the system, + * even after the memory is no longer required). Since TCP sockets may never + * drain if the remote peer does not read the data, writing a socket that is + * not draining may lead to a remotely exploitable vulnerability. + * + * Writing data while the stream is not draining is particularly + * problematic for a `Transform`, because the `Transform` streams are paused + * by default until they are piped or a `'data'` or `'readable'` event handler + * is added. + * + * If the data to be written can be generated or fetched on demand, it is + * recommended to encapsulate the logic into a `Readable` and use {@link pipe}. However, if calling `write()` is preferred, it is + * possible to respect backpressure and avoid memory issues using the `'drain'` event: + * + * ```js + * function write(data, cb) { + * if (!stream.write(data)) { + * stream.once('drain', cb); + * } else { + * process.nextTick(cb); + * } + * } + * + * // Wait for cb to be called before doing any other write. + * write('hello', () => { + * console.log('Write completed, do more writes now.'); + * }); + * ``` + * + * A `Writable` stream in object mode will always ignore the `encoding` argument. + * @since v0.9.4 + * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a string, `Buffer` or `Uint8Array`. For object mode streams, `chunk` may be any + * JavaScript value other than `null`. + * @param [encoding='utf8'] The encoding, if `chunk` is a string. + * @param callback Callback for when this chunk of data is flushed. + * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. + */ + write(chunk: any, callback?: (error: Error | null | undefined) => void): boolean; + write(chunk: any, encoding: BufferEncoding, callback?: (error: Error | null | undefined) => void): boolean; + /** + * The `writable.setDefaultEncoding()` method sets the default `encoding` for a `Writable` stream. + * @since v0.11.15 + * @param encoding The new default encoding + */ + setDefaultEncoding(encoding: BufferEncoding): this; + /** + * Calling the `writable.end()` method signals that no more data will be written + * to the `Writable`. The optional `chunk` and `encoding` arguments allow one + * final additional chunk of data to be written immediately before closing the + * stream. + * + * Calling the {@link write} method after calling {@link end} will raise an error. + * + * ```js + * // Write 'hello, ' and then end with 'world!'. + * const fs = require('fs'); + * const file = fs.createWriteStream('example.txt'); + * file.write('hello, '); + * file.end('world!'); + * // Writing more now is not allowed! + * ``` + * @since v0.9.4 + * @param chunk Optional data to write. For streams not operating in object mode, `chunk` must be a string, `Buffer` or `Uint8Array`. For object mode streams, `chunk` may be any + * JavaScript value other than `null`. + * @param encoding The encoding if `chunk` is a string + * @param callback Callback for when the stream is finished. + */ + end(cb?: () => void): this; + end(chunk: any, cb?: () => void): this; + end(chunk: any, encoding: BufferEncoding, cb?: () => void): this; + /** + * The `writable.cork()` method forces all written data to be buffered in memory. + * The buffered data will be flushed when either the {@link uncork} or {@link end} methods are called. + * + * The primary intent of `writable.cork()` is to accommodate a situation in which + * several small chunks are written to the stream in rapid succession. Instead of + * immediately forwarding them to the underlying destination, `writable.cork()`buffers all the chunks until `writable.uncork()` is called, which will pass them + * all to `writable._writev()`, if present. This prevents a head-of-line blocking + * situation where data is being buffered while waiting for the first small chunk + * to be processed. However, use of `writable.cork()` without implementing`writable._writev()` may have an adverse effect on throughput. + * + * See also: `writable.uncork()`, `writable._writev()`. + * @since v0.11.2 + */ + cork(): void; + /** + * The `writable.uncork()` method flushes all data buffered since {@link cork} was called. + * + * When using `writable.cork()` and `writable.uncork()` to manage the buffering + * of writes to a stream, it is recommended that calls to `writable.uncork()` be + * deferred using `process.nextTick()`. Doing so allows batching of all`writable.write()` calls that occur within a given Node.js event loop phase. + * + * ```js + * stream.cork(); + * stream.write('some '); + * stream.write('data '); + * process.nextTick(() => stream.uncork()); + * ``` + * + * If the `writable.cork()` method is called multiple times on a stream, the + * same number of calls to `writable.uncork()` must be called to flush the buffered + * data. + * + * ```js + * stream.cork(); + * stream.write('some '); + * stream.cork(); + * stream.write('data '); + * process.nextTick(() => { + * stream.uncork(); + * // The data will not be flushed until uncork() is called a second time. + * stream.uncork(); + * }); + * ``` + * + * See also: `writable.cork()`. + * @since v0.11.2 + */ + uncork(): void; + /** + * Destroy the stream. Optionally emit an `'error'` event, and emit a `'close'`event (unless `emitClose` is set to `false`). After this call, the writable + * stream has ended and subsequent calls to `write()` or `end()` will result in + * an `ERR_STREAM_DESTROYED` error. + * This is a destructive and immediate way to destroy a stream. Previous calls to`write()` may not have drained, and may trigger an `ERR_STREAM_DESTROYED` error. + * Use `end()` instead of destroy if data should flush before close, or wait for + * the `'drain'` event before destroying the stream. + * + * Once `destroy()` has been called any further calls will be a no-op and no + * further errors except from `_destroy()` may be emitted as `'error'`. + * + * Implementors should not override this method, + * but instead implement `writable._destroy()`. + * @since v8.0.0 + * @param error Optional, an error to emit with `'error'` event. + */ + destroy(error?: Error): this; + /** + * Event emitter + * The defined events on documents including: + * 1. close + * 2. drain + * 3. error + * 4. finish + * 5. pipe + * 6. unpipe + */ + addListener(event: 'close', listener: () => void): this; + addListener(event: 'drain', listener: () => void): this; + addListener(event: 'error', listener: (err: Error) => void): this; + addListener(event: 'finish', listener: () => void): this; + addListener(event: 'pipe', listener: (src: Readable) => void): this; + addListener(event: 'unpipe', listener: (src: Readable) => void): this; + addListener(event: string | symbol, listener: (...args: any[]) => void): this; + emit(event: 'close'): boolean; + emit(event: 'drain'): boolean; + emit(event: 'error', err: Error): boolean; + emit(event: 'finish'): boolean; + emit(event: 'pipe', src: Readable): boolean; + emit(event: 'unpipe', src: Readable): boolean; + emit(event: string | symbol, ...args: any[]): boolean; + on(event: 'close', listener: () => void): this; + on(event: 'drain', listener: () => void): this; + on(event: 'error', listener: (err: Error) => void): this; + on(event: 'finish', listener: () => void): this; + on(event: 'pipe', listener: (src: Readable) => void): this; + on(event: 'unpipe', listener: (src: Readable) => void): this; + on(event: string | symbol, listener: (...args: any[]) => void): this; + once(event: 'close', listener: () => void): this; + once(event: 'drain', listener: () => void): this; + once(event: 'error', listener: (err: Error) => void): this; + once(event: 'finish', listener: () => void): this; + once(event: 'pipe', listener: (src: Readable) => void): this; + once(event: 'unpipe', listener: (src: Readable) => void): this; + once(event: string | symbol, listener: (...args: any[]) => void): this; + prependListener(event: 'close', listener: () => void): this; + prependListener(event: 'drain', listener: () => void): this; + prependListener(event: 'error', listener: (err: Error) => void): this; + prependListener(event: 'finish', listener: () => void): this; + prependListener(event: 'pipe', listener: (src: Readable) => void): this; + prependListener(event: 'unpipe', listener: (src: Readable) => void): this; + prependListener(event: string | symbol, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'close', listener: () => void): this; + prependOnceListener(event: 'drain', listener: () => void): this; + prependOnceListener(event: 'error', listener: (err: Error) => void): this; + prependOnceListener(event: 'finish', listener: () => void): this; + prependOnceListener(event: 'pipe', listener: (src: Readable) => void): this; + prependOnceListener(event: 'unpipe', listener: (src: Readable) => void): this; + prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this; + removeListener(event: 'close', listener: () => void): this; + removeListener(event: 'drain', listener: () => void): this; + removeListener(event: 'error', listener: (err: Error) => void): this; + removeListener(event: 'finish', listener: () => void): this; + removeListener(event: 'pipe', listener: (src: Readable) => void): this; + removeListener(event: 'unpipe', listener: (src: Readable) => void): this; + removeListener(event: string | symbol, listener: (...args: any[]) => void): this; + } + interface DuplexOptions extends ReadableOptions, WritableOptions { + allowHalfOpen?: boolean | undefined; + readableObjectMode?: boolean | undefined; + writableObjectMode?: boolean | undefined; + readableHighWaterMark?: number | undefined; + writableHighWaterMark?: number | undefined; + writableCorked?: number | undefined; + construct?(this: Duplex, callback: (error?: Error | null) => void): void; + read?(this: Duplex, size: number): void; + write?(this: Duplex, chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void; + writev?( + this: Duplex, + chunks: Array<{ + chunk: any; + encoding: BufferEncoding; + }>, + callback: (error?: Error | null) => void + ): void; + final?(this: Duplex, callback: (error?: Error | null) => void): void; + destroy?(this: Duplex, error: Error | null, callback: (error: Error | null) => void): void; + } + /** + * Duplex streams are streams that implement both the `Readable` and `Writable` interfaces. + * + * Examples of `Duplex` streams include: + * + * * `TCP sockets` + * * `zlib streams` + * * `crypto streams` + * @since v0.9.4 + */ + class Duplex extends Readable implements Writable { + readonly writable: boolean; + readonly writableEnded: boolean; + readonly writableFinished: boolean; + readonly writableHighWaterMark: number; + readonly writableLength: number; + readonly writableObjectMode: boolean; + readonly writableCorked: number; + /** + * If `false` then the stream will automatically end the writable side when the + * readable side ends. Set initially by the `allowHalfOpen` constructor option, + * which defaults to `false`. + * + * This can be changed manually to change the half-open behavior of an existing`Duplex` stream instance, but must be changed before the `'end'` event is + * emitted. + * @since v0.9.4 + */ + allowHalfOpen: boolean; + constructor(opts?: DuplexOptions); + /** + * A utility method for creating duplex streams. + * + * - `Stream` converts writable stream into writable `Duplex` and readable stream + * to `Duplex`. + * - `Blob` converts into readable `Duplex`. + * - `string` converts into readable `Duplex`. + * - `ArrayBuffer` converts into readable `Duplex`. + * - `AsyncIterable` converts into a readable `Duplex`. Cannot yield `null`. + * - `AsyncGeneratorFunction` converts into a readable/writable transform + * `Duplex`. Must take a source `AsyncIterable` as first parameter. Cannot yield + * `null`. + * - `AsyncFunction` converts into a writable `Duplex`. Must return + * either `null` or `undefined` + * - `Object ({ writable, readable })` converts `readable` and + * `writable` into `Stream` and then combines them into `Duplex` where the + * `Duplex` will write to the `writable` and read from the `readable`. + * - `Promise` converts into readable `Duplex`. Value `null` is ignored. + * + * @since v16.8.0 + */ + static from(src: Stream | Blob | ArrayBuffer | string | Iterable | AsyncIterable | AsyncGeneratorFunction | Promise | Object): Duplex; + _write(chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void; + _writev?( + chunks: Array<{ + chunk: any; + encoding: BufferEncoding; + }>, + callback: (error?: Error | null) => void + ): void; + _destroy(error: Error | null, callback: (error: Error | null) => void): void; + _final(callback: (error?: Error | null) => void): void; + write(chunk: any, encoding?: BufferEncoding, cb?: (error: Error | null | undefined) => void): boolean; + write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean; + setDefaultEncoding(encoding: BufferEncoding): this; + end(cb?: () => void): this; + end(chunk: any, cb?: () => void): this; + end(chunk: any, encoding?: BufferEncoding, cb?: () => void): this; + cork(): void; + uncork(): void; + } + type TransformCallback = (error?: Error | null, data?: any) => void; + interface TransformOptions extends DuplexOptions { + construct?(this: Transform, callback: (error?: Error | null) => void): void; + read?(this: Transform, size: number): void; + write?(this: Transform, chunk: any, encoding: BufferEncoding, callback: (error?: Error | null) => void): void; + writev?( + this: Transform, + chunks: Array<{ + chunk: any; + encoding: BufferEncoding; + }>, + callback: (error?: Error | null) => void + ): void; + final?(this: Transform, callback: (error?: Error | null) => void): void; + destroy?(this: Transform, error: Error | null, callback: (error: Error | null) => void): void; + transform?(this: Transform, chunk: any, encoding: BufferEncoding, callback: TransformCallback): void; + flush?(this: Transform, callback: TransformCallback): void; + } + /** + * Transform streams are `Duplex` streams where the output is in some way + * related to the input. Like all `Duplex` streams, `Transform` streams + * implement both the `Readable` and `Writable` interfaces. + * + * Examples of `Transform` streams include: + * + * * `zlib streams` + * * `crypto streams` + * @since v0.9.4 + */ + class Transform extends Duplex { + constructor(opts?: TransformOptions); + _transform(chunk: any, encoding: BufferEncoding, callback: TransformCallback): void; + _flush(callback: TransformCallback): void; + } + /** + * The `stream.PassThrough` class is a trivial implementation of a `Transform` stream that simply passes the input bytes across to the output. Its purpose is + * primarily for examples and testing, but there are some use cases where`stream.PassThrough` is useful as a building block for novel sorts of streams. + */ + class PassThrough extends Transform {} + /** + * Attaches an AbortSignal to a readable or writeable stream. This lets code + * control stream destruction using an `AbortController`. + * + * Calling `abort` on the `AbortController` corresponding to the passed`AbortSignal` will behave the same way as calling `.destroy(new AbortError())`on the stream. + * + * ```js + * const fs = require('fs'); + * + * const controller = new AbortController(); + * const read = addAbortSignal( + * controller.signal, + * fs.createReadStream(('object.json')) + * ); + * // Later, abort the operation closing the stream + * controller.abort(); + * ``` + * + * Or using an `AbortSignal` with a readable stream as an async iterable: + * + * ```js + * const controller = new AbortController(); + * setTimeout(() => controller.abort(), 10_000); // set a timeout + * const stream = addAbortSignal( + * controller.signal, + * fs.createReadStream(('object.json')) + * ); + * (async () => { + * try { + * for await (const chunk of stream) { + * await process(chunk); + * } + * } catch (e) { + * if (e.name === 'AbortError') { + * // The operation was cancelled + * } else { + * throw e; + * } + * } + * })(); + * ``` + * @since v15.4.0 + * @param signal A signal representing possible cancellation + * @param stream a stream to attach a signal to + */ + function addAbortSignal(signal: AbortSignal, stream: T): T; + interface FinishedOptions extends Abortable { + error?: boolean | undefined; + readable?: boolean | undefined; + writable?: boolean | undefined; + } + /** + * A function to get notified when a stream is no longer readable, writable + * or has experienced an error or a premature close event. + * + * ```js + * const { finished } = require('stream'); + * + * const rs = fs.createReadStream('archive.tar'); + * + * finished(rs, (err) => { + * if (err) { + * console.error('Stream failed.', err); + * } else { + * console.log('Stream is done reading.'); + * } + * }); + * + * rs.resume(); // Drain the stream. + * ``` + * + * Especially useful in error handling scenarios where a stream is destroyed + * prematurely (like an aborted HTTP request), and will not emit `'end'`or `'finish'`. + * + * The `finished` API provides promise version: + * + * ```js + * const { finished } = require('stream/promises'); + * + * const rs = fs.createReadStream('archive.tar'); + * + * async function run() { + * await finished(rs); + * console.log('Stream is done reading.'); + * } + * + * run().catch(console.error); + * rs.resume(); // Drain the stream. + * ``` + * + * `stream.finished()` leaves dangling event listeners (in particular`'error'`, `'end'`, `'finish'` and `'close'`) after `callback` has been + * invoked. The reason for this is so that unexpected `'error'` events (due to + * incorrect stream implementations) do not cause unexpected crashes. + * If this is unwanted behavior then the returned cleanup function needs to be + * invoked in the callback: + * + * ```js + * const cleanup = finished(rs, (err) => { + * cleanup(); + * // ... + * }); + * ``` + * @since v10.0.0 + * @param stream A readable and/or writable stream. + * @param callback A callback function that takes an optional error argument. + * @return A cleanup function which removes all registered listeners. + */ + function finished(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options: FinishedOptions, callback: (err?: NodeJS.ErrnoException | null) => void): () => void; + function finished(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, callback: (err?: NodeJS.ErrnoException | null) => void): () => void; + namespace finished { + function __promisify__(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options?: FinishedOptions): Promise; + } + type PipelineSourceFunction = () => Iterable | AsyncIterable; + type PipelineSource = Iterable | AsyncIterable | NodeJS.ReadableStream | PipelineSourceFunction; + type PipelineTransform, U> = + | NodeJS.ReadWriteStream + | ((source: S extends (...args: any[]) => Iterable | AsyncIterable ? AsyncIterable : S) => AsyncIterable); + type PipelineTransformSource = PipelineSource | PipelineTransform; + type PipelineDestinationIterableFunction = (source: AsyncIterable) => AsyncIterable; + type PipelineDestinationPromiseFunction = (source: AsyncIterable) => Promise

; + type PipelineDestination, P> = S extends PipelineTransformSource + ? NodeJS.WritableStream | PipelineDestinationIterableFunction | PipelineDestinationPromiseFunction + : never; + type PipelineCallback> = S extends PipelineDestinationPromiseFunction + ? (err: NodeJS.ErrnoException | null, value: P) => void + : (err: NodeJS.ErrnoException | null) => void; + type PipelinePromise> = S extends PipelineDestinationPromiseFunction ? Promise

: Promise; + interface PipelineOptions { + signal: AbortSignal; + } + /** + * A module method to pipe between streams and generators forwarding errors and + * properly cleaning up and provide a callback when the pipeline is complete. + * + * ```js + * const { pipeline } = require('stream'); + * const fs = require('fs'); + * const zlib = require('zlib'); + * + * // Use the pipeline API to easily pipe a series of streams + * // together and get notified when the pipeline is fully done. + * + * // A pipeline to gzip a potentially huge tar file efficiently: + * + * pipeline( + * fs.createReadStream('archive.tar'), + * zlib.createGzip(), + * fs.createWriteStream('archive.tar.gz'), + * (err) => { + * if (err) { + * console.error('Pipeline failed.', err); + * } else { + * console.log('Pipeline succeeded.'); + * } + * } + * ); + * ``` + * + * The `pipeline` API provides a promise version, which can also + * receive an options argument as the last parameter with a`signal` `AbortSignal` property. When the signal is aborted,`destroy` will be called on the underlying pipeline, with + * an`AbortError`. + * + * ```js + * const { pipeline } = require('stream/promises'); + * + * async function run() { + * await pipeline( + * fs.createReadStream('archive.tar'), + * zlib.createGzip(), + * fs.createWriteStream('archive.tar.gz') + * ); + * console.log('Pipeline succeeded.'); + * } + * + * run().catch(console.error); + * ``` + * + * To use an `AbortSignal`, pass it inside an options object, + * as the last argument: + * + * ```js + * const { pipeline } = require('stream/promises'); + * + * async function run() { + * const ac = new AbortController(); + * const signal = ac.signal; + * + * setTimeout(() => ac.abort(), 1); + * await pipeline( + * fs.createReadStream('archive.tar'), + * zlib.createGzip(), + * fs.createWriteStream('archive.tar.gz'), + * { signal }, + * ); + * } + * + * run().catch(console.error); // AbortError + * ``` + * + * The `pipeline` API also supports async generators: + * + * ```js + * const { pipeline } = require('stream/promises'); + * const fs = require('fs'); + * + * async function run() { + * await pipeline( + * fs.createReadStream('lowercase.txt'), + * async function* (source, signal) { + * source.setEncoding('utf8'); // Work with strings rather than `Buffer`s. + * for await (const chunk of source) { + * yield await processChunk(chunk, { signal }); + * } + * }, + * fs.createWriteStream('uppercase.txt') + * ); + * console.log('Pipeline succeeded.'); + * } + * + * run().catch(console.error); + * ``` + * + * Remember to handle the `signal` argument passed into the async generator. + * Especially in the case where the async generator is the source for the + * pipeline (i.e. first argument) or the pipeline will never complete. + * + * ```js + * const { pipeline } = require('stream/promises'); + * const fs = require('fs'); + * + * async function run() { + * await pipeline( + * async function * (signal) { + * await someLongRunningfn({ signal }); + * yield 'asd'; + * }, + * fs.createWriteStream('uppercase.txt') + * ); + * console.log('Pipeline succeeded.'); + * } + * + * run().catch(console.error); + * ``` + * + * `stream.pipeline()` will call `stream.destroy(err)` on all streams except: + * + * * `Readable` streams which have emitted `'end'` or `'close'`. + * * `Writable` streams which have emitted `'finish'` or `'close'`. + * + * `stream.pipeline()` leaves dangling event listeners on the streams + * after the `callback` has been invoked. In the case of reuse of streams after + * failure, this can cause event listener leaks and swallowed errors. + * @since v10.0.0 + * @param callback Called when the pipeline is fully done. + */ + function pipeline, B extends PipelineDestination>( + source: A, + destination: B, + callback?: PipelineCallback + ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; + function pipeline, T1 extends PipelineTransform, B extends PipelineDestination>( + source: A, + transform1: T1, + destination: B, + callback?: PipelineCallback + ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; + function pipeline, T1 extends PipelineTransform, T2 extends PipelineTransform, B extends PipelineDestination>( + source: A, + transform1: T1, + transform2: T2, + destination: B, + callback?: PipelineCallback + ): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; + function pipeline< + A extends PipelineSource, + T1 extends PipelineTransform, + T2 extends PipelineTransform, + T3 extends PipelineTransform, + B extends PipelineDestination + >(source: A, transform1: T1, transform2: T2, transform3: T3, destination: B, callback?: PipelineCallback): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; + function pipeline< + A extends PipelineSource, + T1 extends PipelineTransform, + T2 extends PipelineTransform, + T3 extends PipelineTransform, + T4 extends PipelineTransform, + B extends PipelineDestination + >(source: A, transform1: T1, transform2: T2, transform3: T3, transform4: T4, destination: B, callback?: PipelineCallback): B extends NodeJS.WritableStream ? B : NodeJS.WritableStream; + function pipeline( + streams: ReadonlyArray, + callback?: (err: NodeJS.ErrnoException | null) => void + ): NodeJS.WritableStream; + function pipeline( + stream1: NodeJS.ReadableStream, + stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream, + ...streams: Array void)> + ): NodeJS.WritableStream; + namespace pipeline { + function __promisify__, B extends PipelineDestination>(source: A, destination: B, options?: PipelineOptions): PipelinePromise; + function __promisify__, T1 extends PipelineTransform, B extends PipelineDestination>( + source: A, + transform1: T1, + destination: B, + options?: PipelineOptions + ): PipelinePromise; + function __promisify__, T1 extends PipelineTransform, T2 extends PipelineTransform, B extends PipelineDestination>( + source: A, + transform1: T1, + transform2: T2, + destination: B, + options?: PipelineOptions + ): PipelinePromise; + function __promisify__< + A extends PipelineSource, + T1 extends PipelineTransform, + T2 extends PipelineTransform, + T3 extends PipelineTransform, + B extends PipelineDestination + >(source: A, transform1: T1, transform2: T2, transform3: T3, destination: B, options?: PipelineOptions): PipelinePromise; + function __promisify__< + A extends PipelineSource, + T1 extends PipelineTransform, + T2 extends PipelineTransform, + T3 extends PipelineTransform, + T4 extends PipelineTransform, + B extends PipelineDestination + >(source: A, transform1: T1, transform2: T2, transform3: T3, transform4: T4, destination: B, options?: PipelineOptions): PipelinePromise; + function __promisify__(streams: ReadonlyArray, options?: PipelineOptions): Promise; + function __promisify__( + stream1: NodeJS.ReadableStream, + stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream, + ...streams: Array + ): Promise; + } + interface Pipe { + close(): void; + hasRef(): boolean; + ref(): void; + unref(): void; + } + const promises: typeof streamPromises; + const consumers: typeof streamConsumers; + } + export = internal; +} +declare module 'node:stream' { + import stream = require('stream'); + export = stream; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/stream/consumers.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/stream/consumers.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..ce6c9bb7852f27fdb23877aa6917b63f7dfe3e7b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/stream/consumers.d.ts" @@ -0,0 +1,24 @@ +// Duplicates of interface in lib.dom.ts. +// Duplicated here rather than referencing lib.dom.ts because doing so causes lib.dom.ts to be loaded for "test-all" +// Which in turn causes tests to pass that shouldn't pass. +// +// This interface is not, and should not be, exported. +interface Blob { + readonly size: number; + readonly type: string; + arrayBuffer(): Promise; + slice(start?: number, end?: number, contentType?: string): Blob; + stream(): NodeJS.ReadableStream; + text(): Promise; +} +declare module 'stream/consumers' { + import { Readable } from 'node:stream'; + function buffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; + function text(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; + function arrayBuffer(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; + function blob(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; + function json(stream: NodeJS.ReadableStream | Readable | AsyncIterator): Promise; +} +declare module 'node:stream/consumers' { + export * from 'stream/consumers'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/stream/promises.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/stream/promises.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..b427073de50f3c33d229092dafbe0ea778c36294 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/stream/promises.d.ts" @@ -0,0 +1,42 @@ +declare module 'stream/promises' { + import { FinishedOptions, PipelineSource, PipelineTransform, PipelineDestination, PipelinePromise, PipelineOptions } from 'node:stream'; + function finished(stream: NodeJS.ReadableStream | NodeJS.WritableStream | NodeJS.ReadWriteStream, options?: FinishedOptions): Promise; + function pipeline, B extends PipelineDestination>(source: A, destination: B, options?: PipelineOptions): PipelinePromise; + function pipeline, T1 extends PipelineTransform, B extends PipelineDestination>( + source: A, + transform1: T1, + destination: B, + options?: PipelineOptions + ): PipelinePromise; + function pipeline, T1 extends PipelineTransform, T2 extends PipelineTransform, B extends PipelineDestination>( + source: A, + transform1: T1, + transform2: T2, + destination: B, + options?: PipelineOptions + ): PipelinePromise; + function pipeline< + A extends PipelineSource, + T1 extends PipelineTransform, + T2 extends PipelineTransform, + T3 extends PipelineTransform, + B extends PipelineDestination + >(source: A, transform1: T1, transform2: T2, transform3: T3, destination: B, options?: PipelineOptions): PipelinePromise; + function pipeline< + A extends PipelineSource, + T1 extends PipelineTransform, + T2 extends PipelineTransform, + T3 extends PipelineTransform, + T4 extends PipelineTransform, + B extends PipelineDestination + >(source: A, transform1: T1, transform2: T2, transform3: T3, transform4: T4, destination: B, options?: PipelineOptions): PipelinePromise; + function pipeline(streams: ReadonlyArray, options?: PipelineOptions): Promise; + function pipeline( + stream1: NodeJS.ReadableStream, + stream2: NodeJS.ReadWriteStream | NodeJS.WritableStream, + ...streams: Array + ): Promise; +} +declare module 'node:stream/promises' { + export * from 'stream/promises'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/stream/web.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/stream/web.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..f9ef0570dc3f9290195183725d8e25fd1c40c249 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/stream/web.d.ts" @@ -0,0 +1,330 @@ +declare module 'stream/web' { + // stub module, pending copy&paste from .d.ts or manual impl + // copy from lib.dom.d.ts + interface ReadableWritablePair { + readable: ReadableStream; + /** + * Provides a convenient, chainable way of piping this readable stream + * through a transform stream (or any other { writable, readable } + * pair). It simply pipes the stream into the writable side of the + * supplied pair, and returns the readable side for further use. + * + * Piping a stream will lock it for the duration of the pipe, preventing + * any other consumer from acquiring a reader. + */ + writable: WritableStream; + } + interface StreamPipeOptions { + preventAbort?: boolean; + preventCancel?: boolean; + /** + * Pipes this readable stream to a given writable stream destination. + * The way in which the piping process behaves under various error + * conditions can be customized with a number of passed options. It + * returns a promise that fulfills when the piping process completes + * successfully, or rejects if any errors were encountered. + * + * Piping a stream will lock it for the duration of the pipe, preventing + * any other consumer from acquiring a reader. + * + * Errors and closures of the source and destination streams propagate + * as follows: + * + * An error in this source readable stream will abort destination, + * unless preventAbort is truthy. The returned promise will be rejected + * with the source's error, or with any error that occurs during + * aborting the destination. + * + * An error in destination will cancel this source readable stream, + * unless preventCancel is truthy. The returned promise will be rejected + * with the destination's error, or with any error that occurs during + * canceling the source. + * + * When this source readable stream closes, destination will be closed, + * unless preventClose is truthy. The returned promise will be fulfilled + * once this process completes, unless an error is encountered while + * closing the destination, in which case it will be rejected with that + * error. + * + * If destination starts out closed or closing, this source readable + * stream will be canceled, unless preventCancel is true. The returned + * promise will be rejected with an error indicating piping to a closed + * stream failed, or with any error that occurs during canceling the + * source. + * + * The signal option can be set to an AbortSignal to allow aborting an + * ongoing pipe operation via the corresponding AbortController. In this + * case, this source readable stream will be canceled, and destination + * aborted, unless the respective options preventCancel or preventAbort + * are set. + */ + preventClose?: boolean; + signal?: AbortSignal; + } + interface ReadableStreamGenericReader { + readonly closed: Promise; + cancel(reason?: any): Promise; + } + interface ReadableStreamDefaultReadValueResult { + done: false; + value: T; + } + interface ReadableStreamDefaultReadDoneResult { + done: true; + value?: undefined; + } + type ReadableStreamController = ReadableStreamDefaultController; + type ReadableStreamDefaultReadResult = ReadableStreamDefaultReadValueResult | ReadableStreamDefaultReadDoneResult; + interface ReadableByteStreamControllerCallback { + (controller: ReadableByteStreamController): void | PromiseLike; + } + interface UnderlyingSinkAbortCallback { + (reason?: any): void | PromiseLike; + } + interface UnderlyingSinkCloseCallback { + (): void | PromiseLike; + } + interface UnderlyingSinkStartCallback { + (controller: WritableStreamDefaultController): any; + } + interface UnderlyingSinkWriteCallback { + (chunk: W, controller: WritableStreamDefaultController): void | PromiseLike; + } + interface UnderlyingSourceCancelCallback { + (reason?: any): void | PromiseLike; + } + interface UnderlyingSourcePullCallback { + (controller: ReadableStreamController): void | PromiseLike; + } + interface UnderlyingSourceStartCallback { + (controller: ReadableStreamController): any; + } + interface TransformerFlushCallback { + (controller: TransformStreamDefaultController): void | PromiseLike; + } + interface TransformerStartCallback { + (controller: TransformStreamDefaultController): any; + } + interface TransformerTransformCallback { + (chunk: I, controller: TransformStreamDefaultController): void | PromiseLike; + } + interface UnderlyingByteSource { + autoAllocateChunkSize?: number; + cancel?: ReadableStreamErrorCallback; + pull?: ReadableByteStreamControllerCallback; + start?: ReadableByteStreamControllerCallback; + type: 'bytes'; + } + interface UnderlyingSource { + cancel?: UnderlyingSourceCancelCallback; + pull?: UnderlyingSourcePullCallback; + start?: UnderlyingSourceStartCallback; + type?: undefined; + } + interface UnderlyingSink { + abort?: UnderlyingSinkAbortCallback; + close?: UnderlyingSinkCloseCallback; + start?: UnderlyingSinkStartCallback; + type?: undefined; + write?: UnderlyingSinkWriteCallback; + } + interface ReadableStreamErrorCallback { + (reason: any): void | PromiseLike; + } + /** This Streams API interface represents a readable stream of byte data. */ + interface ReadableStream { + readonly locked: boolean; + cancel(reason?: any): Promise; + getReader(): ReadableStreamDefaultReader; + pipeThrough(transform: ReadableWritablePair, options?: StreamPipeOptions): ReadableStream; + pipeTo(destination: WritableStream, options?: StreamPipeOptions): Promise; + tee(): [ReadableStream, ReadableStream]; + values(options?: { preventCancel?: boolean }): AsyncIterableIterator; + [Symbol.asyncIterator](): AsyncIterableIterator; + } + const ReadableStream: { + prototype: ReadableStream; + new (underlyingSource: UnderlyingByteSource, strategy?: QueuingStrategy): ReadableStream; + new (underlyingSource?: UnderlyingSource, strategy?: QueuingStrategy): ReadableStream; + }; + interface ReadableStreamDefaultReader extends ReadableStreamGenericReader { + read(): Promise>; + releaseLock(): void; + } + const ReadableStreamDefaultReader: { + prototype: ReadableStreamDefaultReader; + new (stream: ReadableStream): ReadableStreamDefaultReader; + }; + const ReadableStreamBYOBReader: any; + const ReadableStreamBYOBRequest: any; + interface ReadableByteStreamController { + readonly byobRequest: undefined; + readonly desiredSize: number | null; + close(): void; + enqueue(chunk: ArrayBufferView): void; + error(error?: any): void; + } + const ReadableByteStreamController: { + prototype: ReadableByteStreamController; + new (): ReadableByteStreamController; + }; + interface ReadableStreamDefaultController { + readonly desiredSize: number | null; + close(): void; + enqueue(chunk?: R): void; + error(e?: any): void; + } + const ReadableStreamDefaultController: { + prototype: ReadableStreamDefaultController; + new (): ReadableStreamDefaultController; + }; + interface Transformer { + flush?: TransformerFlushCallback; + readableType?: undefined; + start?: TransformerStartCallback; + transform?: TransformerTransformCallback; + writableType?: undefined; + } + interface TransformStream { + readonly readable: ReadableStream; + readonly writable: WritableStream; + } + const TransformStream: { + prototype: TransformStream; + new (transformer?: Transformer, writableStrategy?: QueuingStrategy, readableStrategy?: QueuingStrategy): TransformStream; + }; + interface TransformStreamDefaultController { + readonly desiredSize: number | null; + enqueue(chunk?: O): void; + error(reason?: any): void; + terminate(): void; + } + const TransformStreamDefaultController: { + prototype: TransformStreamDefaultController; + new (): TransformStreamDefaultController; + }; + /** + * This Streams API interface provides a standard abstraction for writing + * streaming data to a destination, known as a sink. This object comes with + * built-in back pressure and queuing. + */ + interface WritableStream { + readonly locked: boolean; + abort(reason?: any): Promise; + close(): Promise; + getWriter(): WritableStreamDefaultWriter; + } + const WritableStream: { + prototype: WritableStream; + new (underlyingSink?: UnderlyingSink, strategy?: QueuingStrategy): WritableStream; + }; + /** + * This Streams API interface is the object returned by + * WritableStream.getWriter() and once created locks the < writer to the + * WritableStream ensuring that no other streams can write to the underlying + * sink. + */ + interface WritableStreamDefaultWriter { + readonly closed: Promise; + readonly desiredSize: number | null; + readonly ready: Promise; + abort(reason?: any): Promise; + close(): Promise; + releaseLock(): void; + write(chunk?: W): Promise; + } + const WritableStreamDefaultWriter: { + prototype: WritableStreamDefaultWriter; + new (stream: WritableStream): WritableStreamDefaultWriter; + }; + /** + * This Streams API interface represents a controller allowing control of a + * WritableStream's state. When constructing a WritableStream, the + * underlying sink is given a corresponding WritableStreamDefaultController + * instance to manipulate. + */ + interface WritableStreamDefaultController { + error(e?: any): void; + } + const WritableStreamDefaultController: { + prototype: WritableStreamDefaultController; + new (): WritableStreamDefaultController; + }; + interface QueuingStrategy { + highWaterMark?: number; + size?: QueuingStrategySize; + } + interface QueuingStrategySize { + (chunk?: T): number; + } + interface QueuingStrategyInit { + /** + * Creates a new ByteLengthQueuingStrategy with the provided high water + * mark. + * + * Note that the provided high water mark will not be validated ahead of + * time. Instead, if it is negative, NaN, or not a number, the resulting + * ByteLengthQueuingStrategy will cause the corresponding stream + * constructor to throw. + */ + highWaterMark: number; + } + /** + * This Streams API interface provides a built-in byte length queuing + * strategy that can be used when constructing streams. + */ + interface ByteLengthQueuingStrategy extends QueuingStrategy { + readonly highWaterMark: number; + readonly size: QueuingStrategySize; + } + const ByteLengthQueuingStrategy: { + prototype: ByteLengthQueuingStrategy; + new (init: QueuingStrategyInit): ByteLengthQueuingStrategy; + }; + /** + * This Streams API interface provides a built-in byte length queuing + * strategy that can be used when constructing streams. + */ + interface CountQueuingStrategy extends QueuingStrategy { + readonly highWaterMark: number; + readonly size: QueuingStrategySize; + } + const CountQueuingStrategy: { + prototype: CountQueuingStrategy; + new (init: QueuingStrategyInit): CountQueuingStrategy; + }; + interface TextEncoderStream { + /** Returns "utf-8". */ + readonly encoding: 'utf-8'; + readonly readable: ReadableStream; + readonly writable: WritableStream; + readonly [Symbol.toStringTag]: string; + } + const TextEncoderStream: { + prototype: TextEncoderStream; + new (): TextEncoderStream; + }; + interface TextDecoderOptions { + fatal?: boolean; + ignoreBOM?: boolean; + } + type BufferSource = ArrayBufferView | ArrayBuffer; + interface TextDecoderStream { + /** Returns encoding's name, lower cased. */ + readonly encoding: string; + /** Returns `true` if error mode is "fatal", and `false` otherwise. */ + readonly fatal: boolean; + /** Returns `true` if ignore BOM flag is set, and `false` otherwise. */ + readonly ignoreBOM: boolean; + readonly readable: ReadableStream; + readonly writable: WritableStream; + readonly [Symbol.toStringTag]: string; + } + const TextDecoderStream: { + prototype: TextDecoderStream; + new (label?: string, options?: TextDecoderOptions): TextDecoderStream; + }; +} +declare module 'node:stream/web' { + export * from 'stream/web'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/string_decoder.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/string_decoder.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..da712b5edf28d1b71896b550f8fc34287867433e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/string_decoder.d.ts" @@ -0,0 +1,67 @@ +/** + * The `string_decoder` module provides an API for decoding `Buffer` objects into + * strings in a manner that preserves encoded multi-byte UTF-8 and UTF-16 + * characters. It can be accessed using: + * + * ```js + * const { StringDecoder } = require('string_decoder'); + * ``` + * + * The following example shows the basic use of the `StringDecoder` class. + * + * ```js + * const { StringDecoder } = require('string_decoder'); + * const decoder = new StringDecoder('utf8'); + * + * const cent = Buffer.from([0xC2, 0xA2]); + * console.log(decoder.write(cent)); + * + * const euro = Buffer.from([0xE2, 0x82, 0xAC]); + * console.log(decoder.write(euro)); + * ``` + * + * When a `Buffer` instance is written to the `StringDecoder` instance, an + * internal buffer is used to ensure that the decoded string does not contain + * any incomplete multibyte characters. These are held in the buffer until the + * next call to `stringDecoder.write()` or until `stringDecoder.end()` is called. + * + * In the following example, the three UTF-8 encoded bytes of the European Euro + * symbol (`€`) are written over three separate operations: + * + * ```js + * const { StringDecoder } = require('string_decoder'); + * const decoder = new StringDecoder('utf8'); + * + * decoder.write(Buffer.from([0xE2])); + * decoder.write(Buffer.from([0x82])); + * console.log(decoder.end(Buffer.from([0xAC]))); + * ``` + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/string_decoder.js) + */ +declare module 'string_decoder' { + class StringDecoder { + constructor(encoding?: BufferEncoding); + /** + * Returns a decoded string, ensuring that any incomplete multibyte characters at + * the end of the `Buffer`, or `TypedArray`, or `DataView` are omitted from the + * returned string and stored in an internal buffer for the next call to`stringDecoder.write()` or `stringDecoder.end()`. + * @since v0.1.99 + * @param buffer A `Buffer`, or `TypedArray`, or `DataView` containing the bytes to decode. + */ + write(buffer: Buffer): string; + /** + * Returns any remaining input stored in the internal buffer as a string. Bytes + * representing incomplete UTF-8 and UTF-16 characters will be replaced with + * substitution characters appropriate for the character encoding. + * + * If the `buffer` argument is provided, one final call to `stringDecoder.write()`is performed before returning the remaining input. + * After `end()` is called, the `stringDecoder` object can be reused for new input. + * @since v0.9.3 + * @param buffer A `Buffer`, or `TypedArray`, or `DataView` containing the bytes to decode. + */ + end(buffer?: Buffer): string; + } +} +declare module 'node:string_decoder' { + export * from 'string_decoder'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/timers.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/timers.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..59f44c19786dc3edd12029b35a5dfa0906662d9b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/timers.d.ts" @@ -0,0 +1,94 @@ +/** + * The `timer` module exposes a global API for scheduling functions to + * be called at some future period of time. Because the timer functions are + * globals, there is no need to call `require('timers')` to use the API. + * + * The timer functions within Node.js implement a similar API as the timers API + * provided by Web Browsers but use a different internal implementation that is + * built around the Node.js [Event Loop](https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/#setimmediate-vs-settimeout). + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/timers.js) + */ +declare module 'timers' { + import { Abortable } from 'node:events'; + import { setTimeout as setTimeoutPromise, setImmediate as setImmediatePromise, setInterval as setIntervalPromise } from 'node:timers/promises'; + interface TimerOptions extends Abortable { + /** + * Set to `false` to indicate that the scheduled `Timeout` + * should not require the Node.js event loop to remain active. + * @default true + */ + ref?: boolean | undefined; + } + let setTimeout: typeof global.setTimeout; + let clearTimeout: typeof global.clearTimeout; + let setInterval: typeof global.setInterval; + let clearInterval: typeof global.clearInterval; + let setImmediate: typeof global.setImmediate; + let clearImmediate: typeof global.clearImmediate; + global { + namespace NodeJS { + // compatibility with older typings + interface Timer extends RefCounted { + hasRef(): boolean; + refresh(): this; + [Symbol.toPrimitive](): number; + } + interface Immediate extends RefCounted { + /** + * If true, the `Immediate` object will keep the Node.js event loop active. + * @since v11.0.0 + */ + hasRef(): boolean; + _onImmediate: Function; // to distinguish it from the Timeout class + } + interface Timeout extends Timer { + /** + * If true, the `Timeout` object will keep the Node.js event loop active. + * @since v11.0.0 + */ + hasRef(): boolean; + /** + * Sets the timer's start time to the current time, and reschedules the timer to + * call its callback at the previously specified duration adjusted to the current + * time. This is useful for refreshing a timer without allocating a new + * JavaScript object. + * + * Using this on a timer that has already called its callback will reactivate the + * timer. + * @since v10.2.0 + * @return a reference to `timeout` + */ + refresh(): this; + [Symbol.toPrimitive](): number; + } + } + function setTimeout(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timeout; + // util.promisify no rest args compability + // tslint:disable-next-line void-return + function setTimeout(callback: (args: void) => void, ms?: number): NodeJS.Timeout; + namespace setTimeout { + const __promisify__: typeof setTimeoutPromise; + } + function clearTimeout(timeoutId: NodeJS.Timeout): void; + function setInterval(callback: (...args: TArgs) => void, ms?: number, ...args: TArgs): NodeJS.Timer; + // util.promisify no rest args compability + // tslint:disable-next-line void-return + function setInterval(callback: (args: void) => void, ms?: number): NodeJS.Timer; + namespace setInterval { + const __promisify__: typeof setIntervalPromise; + } + function clearInterval(intervalId: NodeJS.Timeout): void; + function setImmediate(callback: (...args: TArgs) => void, ...args: TArgs): NodeJS.Immediate; + // util.promisify no rest args compability + // tslint:disable-next-line void-return + function setImmediate(callback: (args: void) => void): NodeJS.Immediate; + namespace setImmediate { + const __promisify__: typeof setImmediatePromise; + } + function clearImmediate(immediateId: NodeJS.Immediate): void; + function queueMicrotask(callback: () => void): void; + } +} +declare module 'node:timers' { + export * from 'timers'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/timers/promises.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/timers/promises.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..fd778880ef386f4e275ab1e077093fc4c7412c55 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/timers/promises.d.ts" @@ -0,0 +1,68 @@ +/** + * The `timers/promises` API provides an alternative set of timer functions + * that return `Promise` objects. The API is accessible via`require('timers/promises')`. + * + * ```js + * import { + * setTimeout, + * setImmediate, + * setInterval, + * } from 'timers/promises'; + * ``` + * @since v15.0.0 + */ +declare module 'timers/promises' { + import { TimerOptions } from 'node:timers'; + /** + * ```js + * import { + * setTimeout, + * } from 'timers/promises'; + * + * const res = await setTimeout(100, 'result'); + * + * console.log(res); // Prints 'result' + * ``` + * @since v15.0.0 + * @param [delay=1] The number of milliseconds to wait before fulfilling the promise. + * @param value A value with which the promise is fulfilled. + */ + function setTimeout(delay?: number, value?: T, options?: TimerOptions): Promise; + /** + * ```js + * import { + * setImmediate, + * } from 'timers/promises'; + * + * const res = await setImmediate('result'); + * + * console.log(res); // Prints 'result' + * ``` + * @since v15.0.0 + * @param value A value with which the promise is fulfilled. + */ + function setImmediate(value?: T, options?: TimerOptions): Promise; + /** + * Returns an async iterator that generates values in an interval of `delay` ms. + * + * ```js + * import { + * setInterval, + * } from 'timers/promises'; + * + * const interval = 100; + * for await (const startTime of setInterval(interval, Date.now())) { + * const now = Date.now(); + * console.log(now); + * if ((now - startTime) > 1000) + * break; + * } + * console.log(Date.now()); + * ``` + * @since v15.9.0 + */ + function setInterval(delay?: number, value?: T, options?: TimerOptions): AsyncIterable; +} +declare module 'node:timers/promises' { + export * from 'timers/promises'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/tls.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/tls.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..661f0f089983b04b2ec217c87328f82ed6286a4a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/tls.d.ts" @@ -0,0 +1,1020 @@ +/** + * The `tls` module provides an implementation of the Transport Layer Security + * (TLS) and Secure Socket Layer (SSL) protocols that is built on top of OpenSSL. + * The module can be accessed using: + * + * ```js + * const tls = require('tls'); + * ``` + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/tls.js) + */ +declare module 'tls' { + import { X509Certificate } from 'node:crypto'; + import * as net from 'node:net'; + import * as stream from 'stream'; + const CLIENT_RENEG_LIMIT: number; + const CLIENT_RENEG_WINDOW: number; + interface Certificate { + /** + * Country code. + */ + C: string; + /** + * Street. + */ + ST: string; + /** + * Locality. + */ + L: string; + /** + * Organization. + */ + O: string; + /** + * Organizational unit. + */ + OU: string; + /** + * Common name. + */ + CN: string; + } + interface PeerCertificate { + subject: Certificate; + issuer: Certificate; + subjectaltname: string; + infoAccess: NodeJS.Dict; + modulus: string; + exponent: string; + valid_from: string; + valid_to: string; + fingerprint: string; + fingerprint256: string; + ext_key_usage: string[]; + serialNumber: string; + raw: Buffer; + } + interface DetailedPeerCertificate extends PeerCertificate { + issuerCertificate: DetailedPeerCertificate; + } + interface CipherNameAndProtocol { + /** + * The cipher name. + */ + name: string; + /** + * SSL/TLS protocol version. + */ + version: string; + /** + * IETF name for the cipher suite. + */ + standardName: string; + } + interface EphemeralKeyInfo { + /** + * The supported types are 'DH' and 'ECDH'. + */ + type: string; + /** + * The name property is available only when type is 'ECDH'. + */ + name?: string | undefined; + /** + * The size of parameter of an ephemeral key exchange. + */ + size: number; + } + interface KeyObject { + /** + * Private keys in PEM format. + */ + pem: string | Buffer; + /** + * Optional passphrase. + */ + passphrase?: string | undefined; + } + interface PxfObject { + /** + * PFX or PKCS12 encoded private key and certificate chain. + */ + buf: string | Buffer; + /** + * Optional passphrase. + */ + passphrase?: string | undefined; + } + interface TLSSocketOptions extends SecureContextOptions, CommonConnectionOptions { + /** + * If true the TLS socket will be instantiated in server-mode. + * Defaults to false. + */ + isServer?: boolean | undefined; + /** + * An optional net.Server instance. + */ + server?: net.Server | undefined; + /** + * An optional Buffer instance containing a TLS session. + */ + session?: Buffer | undefined; + /** + * If true, specifies that the OCSP status request extension will be + * added to the client hello and an 'OCSPResponse' event will be + * emitted on the socket before establishing a secure communication + */ + requestOCSP?: boolean | undefined; + } + /** + * Performs transparent encryption of written data and all required TLS + * negotiation. + * + * Instances of `tls.TLSSocket` implement the duplex `Stream` interface. + * + * Methods that return TLS connection metadata (e.g.{@link TLSSocket.getPeerCertificate} will only return data while the + * connection is open. + * @since v0.11.4 + */ + class TLSSocket extends net.Socket { + /** + * Construct a new tls.TLSSocket object from an existing TCP socket. + */ + constructor(socket: net.Socket, options?: TLSSocketOptions); + /** + * Returns `true` if the peer certificate was signed by one of the CAs specified + * when creating the `tls.TLSSocket` instance, otherwise `false`. + * @since v0.11.4 + */ + authorized: boolean; + /** + * Returns the reason why the peer's certificate was not been verified. This + * property is set only when `tlsSocket.authorized === false`. + * @since v0.11.4 + */ + authorizationError: Error; + /** + * Always returns `true`. This may be used to distinguish TLS sockets from regular`net.Socket` instances. + * @since v0.11.4 + */ + encrypted: boolean; + /** + * String containing the selected ALPN protocol. + * Before a handshake has completed, this value is always null. + * When a handshake is completed but not ALPN protocol was selected, tlsSocket.alpnProtocol equals false. + */ + alpnProtocol: string | false | null; + /** + * Returns an object representing the local certificate. The returned object has + * some properties corresponding to the fields of the certificate. + * + * See {@link TLSSocket.getPeerCertificate} for an example of the certificate + * structure. + * + * If there is no local certificate, an empty object will be returned. If the + * socket has been destroyed, `null` will be returned. + * @since v11.2.0 + */ + getCertificate(): PeerCertificate | object | null; + /** + * Returns an object containing information on the negotiated cipher suite. + * + * For example: + * + * ```json + * { + * "name": "AES128-SHA256", + * "standardName": "TLS_RSA_WITH_AES_128_CBC_SHA256", + * "version": "TLSv1.2" + * } + * ``` + * + * See [SSL\_CIPHER\_get\_name](https://www.openssl.org/docs/man1.1.1/man3/SSL_CIPHER_get_name.html) for more information. + * @since v0.11.4 + */ + getCipher(): CipherNameAndProtocol; + /** + * Returns an object representing the type, name, and size of parameter of + * an ephemeral key exchange in `perfect forward secrecy` on a client + * connection. It returns an empty object when the key exchange is not + * ephemeral. As this is only supported on a client socket; `null` is returned + * if called on a server socket. The supported types are `'DH'` and `'ECDH'`. The`name` property is available only when type is `'ECDH'`. + * + * For example: `{ type: 'ECDH', name: 'prime256v1', size: 256 }`. + * @since v5.0.0 + */ + getEphemeralKeyInfo(): EphemeralKeyInfo | object | null; + /** + * As the `Finished` messages are message digests of the complete handshake + * (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can + * be used for external authentication procedures when the authentication + * provided by SSL/TLS is not desired or is not enough. + * + * Corresponds to the `SSL_get_finished` routine in OpenSSL and may be used + * to implement the `tls-unique` channel binding from [RFC 5929](https://tools.ietf.org/html/rfc5929). + * @since v9.9.0 + * @return The latest `Finished` message that has been sent to the socket as part of a SSL/TLS handshake, or `undefined` if no `Finished` message has been sent yet. + */ + getFinished(): Buffer | undefined; + /** + * Returns an object representing the peer's certificate. If the peer does not + * provide a certificate, an empty object will be returned. If the socket has been + * destroyed, `null` will be returned. + * + * If the full certificate chain was requested, each certificate will include an`issuerCertificate` property containing an object representing its issuer's + * certificate. + * @since v0.11.4 + * @param detailed Include the full certificate chain if `true`, otherwise include just the peer's certificate. + * @return A certificate object. + */ + getPeerCertificate(detailed: true): DetailedPeerCertificate; + getPeerCertificate(detailed?: false): PeerCertificate; + getPeerCertificate(detailed?: boolean): PeerCertificate | DetailedPeerCertificate; + /** + * As the `Finished` messages are message digests of the complete handshake + * (with a total of 192 bits for TLS 1.0 and more for SSL 3.0), they can + * be used for external authentication procedures when the authentication + * provided by SSL/TLS is not desired or is not enough. + * + * Corresponds to the `SSL_get_peer_finished` routine in OpenSSL and may be used + * to implement the `tls-unique` channel binding from [RFC 5929](https://tools.ietf.org/html/rfc5929). + * @since v9.9.0 + * @return The latest `Finished` message that is expected or has actually been received from the socket as part of a SSL/TLS handshake, or `undefined` if there is no `Finished` message so + * far. + */ + getPeerFinished(): Buffer | undefined; + /** + * Returns a string containing the negotiated SSL/TLS protocol version of the + * current connection. The value `'unknown'` will be returned for connected + * sockets that have not completed the handshaking process. The value `null` will + * be returned for server sockets or disconnected client sockets. + * + * Protocol versions are: + * + * * `'SSLv3'` + * * `'TLSv1'` + * * `'TLSv1.1'` + * * `'TLSv1.2'` + * * `'TLSv1.3'` + * + * See the OpenSSL [`SSL_get_version`](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_version.html) documentation for more information. + * @since v5.7.0 + */ + getProtocol(): string | null; + /** + * Returns the TLS session data or `undefined` if no session was + * negotiated. On the client, the data can be provided to the `session` option of {@link connect} to resume the connection. On the server, it may be useful + * for debugging. + * + * See `Session Resumption` for more information. + * + * Note: `getSession()` works only for TLSv1.2 and below. For TLSv1.3, applications + * must use the `'session'` event (it also works for TLSv1.2 and below). + * @since v0.11.4 + */ + getSession(): Buffer | undefined; + /** + * See [SSL\_get\_shared\_sigalgs](https://www.openssl.org/docs/man1.1.1/man3/SSL_get_shared_sigalgs.html) for more information. + * @since v12.11.0 + * @return List of signature algorithms shared between the server and the client in the order of decreasing preference. + */ + getSharedSigalgs(): string[]; + /** + * For a client, returns the TLS session ticket if one is available, or`undefined`. For a server, always returns `undefined`. + * + * It may be useful for debugging. + * + * See `Session Resumption` for more information. + * @since v0.11.4 + */ + getTLSTicket(): Buffer | undefined; + /** + * See `Session Resumption` for more information. + * @since v0.5.6 + * @return `true` if the session was reused, `false` otherwise. + */ + isSessionReused(): boolean; + /** + * The `tlsSocket.renegotiate()` method initiates a TLS renegotiation process. + * Upon completion, the `callback` function will be passed a single argument + * that is either an `Error` (if the request failed) or `null`. + * + * This method can be used to request a peer's certificate after the secure + * connection has been established. + * + * When running as the server, the socket will be destroyed with an error after`handshakeTimeout` timeout. + * + * For TLSv1.3, renegotiation cannot be initiated, it is not supported by the + * protocol. + * @since v0.11.8 + * @param callback If `renegotiate()` returned `true`, callback is attached once to the `'secure'` event. If `renegotiate()` returned `false`, `callback` will be called in the next tick with + * an error, unless the `tlsSocket` has been destroyed, in which case `callback` will not be called at all. + * @return `true` if renegotiation was initiated, `false` otherwise. + */ + renegotiate( + options: { + rejectUnauthorized?: boolean | undefined; + requestCert?: boolean | undefined; + }, + callback: (err: Error | null) => void + ): undefined | boolean; + /** + * The `tlsSocket.setMaxSendFragment()` method sets the maximum TLS fragment size. + * Returns `true` if setting the limit succeeded; `false` otherwise. + * + * Smaller fragment sizes decrease the buffering latency on the client: larger + * fragments are buffered by the TLS layer until the entire fragment is received + * and its integrity is verified; large fragments can span multiple roundtrips + * and their processing can be delayed due to packet loss or reordering. However, + * smaller fragments add extra TLS framing bytes and CPU overhead, which may + * decrease overall server throughput. + * @since v0.11.11 + * @param [size=16384] The maximum TLS fragment size. The maximum value is `16384`. + */ + setMaxSendFragment(size: number): boolean; + /** + * Disables TLS renegotiation for this `TLSSocket` instance. Once called, attempts + * to renegotiate will trigger an `'error'` event on the `TLSSocket`. + * @since v8.4.0 + */ + disableRenegotiation(): void; + /** + * When enabled, TLS packet trace information is written to `stderr`. This can be + * used to debug TLS connection problems. + * + * Note: The format of the output is identical to the output of `openssl s_client -trace` or `openssl s_server -trace`. While it is produced by OpenSSL's`SSL_trace()` function, the format is + * undocumented, can change without notice, + * and should not be relied on. + * @since v12.2.0 + */ + enableTrace(): void; + /** + * Returns the peer certificate as an `X509Certificate` object. + * + * If there is no peer certificate, or the socket has been destroyed,`undefined` will be returned. + * @since v15.9.0 + */ + getPeerX509Certificate(): X509Certificate | undefined; + /** + * Returns the local certificate as an `X509Certificate` object. + * + * If there is no local certificate, or the socket has been destroyed,`undefined` will be returned. + * @since v15.9.0 + */ + getX509Certificate(): X509Certificate | undefined; + /** + * Keying material is used for validations to prevent different kind of attacks in + * network protocols, for example in the specifications of IEEE 802.1X. + * + * Example + * + * ```js + * const keyingMaterial = tlsSocket.exportKeyingMaterial( + * 128, + * 'client finished'); + * + * + * Example return value of keyingMaterial: + * + * + * ``` + * + * See the OpenSSL [`SSL_export_keying_material`](https://www.openssl.org/docs/man1.1.1/man3/SSL_export_keying_material.html) documentation for more + * information. + * @since v13.10.0, v12.17.0 + * @param length number of bytes to retrieve from keying material + * @param label an application specific label, typically this will be a value from the [IANA Exporter Label + * Registry](https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#exporter-labels). + * @param context Optionally provide a context. + * @return requested bytes of the keying material + */ + exportKeyingMaterial(length: number, label: string, context: Buffer): Buffer; + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: 'OCSPResponse', listener: (response: Buffer) => void): this; + addListener(event: 'secureConnect', listener: () => void): this; + addListener(event: 'session', listener: (session: Buffer) => void): this; + addListener(event: 'keylog', listener: (line: Buffer) => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: 'OCSPResponse', response: Buffer): boolean; + emit(event: 'secureConnect'): boolean; + emit(event: 'session', session: Buffer): boolean; + emit(event: 'keylog', line: Buffer): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: 'OCSPResponse', listener: (response: Buffer) => void): this; + on(event: 'secureConnect', listener: () => void): this; + on(event: 'session', listener: (session: Buffer) => void): this; + on(event: 'keylog', listener: (line: Buffer) => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: 'OCSPResponse', listener: (response: Buffer) => void): this; + once(event: 'secureConnect', listener: () => void): this; + once(event: 'session', listener: (session: Buffer) => void): this; + once(event: 'keylog', listener: (line: Buffer) => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: 'OCSPResponse', listener: (response: Buffer) => void): this; + prependListener(event: 'secureConnect', listener: () => void): this; + prependListener(event: 'session', listener: (session: Buffer) => void): this; + prependListener(event: 'keylog', listener: (line: Buffer) => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'OCSPResponse', listener: (response: Buffer) => void): this; + prependOnceListener(event: 'secureConnect', listener: () => void): this; + prependOnceListener(event: 'session', listener: (session: Buffer) => void): this; + prependOnceListener(event: 'keylog', listener: (line: Buffer) => void): this; + } + interface CommonConnectionOptions { + /** + * An optional TLS context object from tls.createSecureContext() + */ + secureContext?: SecureContext | undefined; + /** + * When enabled, TLS packet trace information is written to `stderr`. This can be + * used to debug TLS connection problems. + * @default false + */ + enableTrace?: boolean | undefined; + /** + * If true the server will request a certificate from clients that + * connect and attempt to verify that certificate. Defaults to + * false. + */ + requestCert?: boolean | undefined; + /** + * An array of strings or a Buffer naming possible ALPN protocols. + * (Protocols should be ordered by their priority.) + */ + ALPNProtocols?: string[] | Uint8Array[] | Uint8Array | undefined; + /** + * SNICallback(servername, cb) A function that will be + * called if the client supports SNI TLS extension. Two arguments + * will be passed when called: servername and cb. SNICallback should + * invoke cb(null, ctx), where ctx is a SecureContext instance. + * (tls.createSecureContext(...) can be used to get a proper + * SecureContext.) If SNICallback wasn't provided the default callback + * with high-level API will be used (see below). + */ + SNICallback?: ((servername: string, cb: (err: Error | null, ctx?: SecureContext) => void) => void) | undefined; + /** + * If true the server will reject any connection which is not + * authorized with the list of supplied CAs. This option only has an + * effect if requestCert is true. + * @default true + */ + rejectUnauthorized?: boolean | undefined; + } + interface TlsOptions extends SecureContextOptions, CommonConnectionOptions, net.ServerOpts { + /** + * Abort the connection if the SSL/TLS handshake does not finish in the + * specified number of milliseconds. A 'tlsClientError' is emitted on + * the tls.Server object whenever a handshake times out. Default: + * 120000 (120 seconds). + */ + handshakeTimeout?: number | undefined; + /** + * The number of seconds after which a TLS session created by the + * server will no longer be resumable. See Session Resumption for more + * information. Default: 300. + */ + sessionTimeout?: number | undefined; + /** + * 48-bytes of cryptographically strong pseudo-random data. + */ + ticketKeys?: Buffer | undefined; + /** + * + * @param socket + * @param identity identity parameter sent from the client. + * @return pre-shared key that must either be + * a buffer or `null` to stop the negotiation process. Returned PSK must be + * compatible with the selected cipher's digest. + * + * When negotiating TLS-PSK (pre-shared keys), this function is called + * with the identity provided by the client. + * If the return value is `null` the negotiation process will stop and an + * "unknown_psk_identity" alert message will be sent to the other party. + * If the server wishes to hide the fact that the PSK identity was not known, + * the callback must provide some random data as `psk` to make the connection + * fail with "decrypt_error" before negotiation is finished. + * PSK ciphers are disabled by default, and using TLS-PSK thus + * requires explicitly specifying a cipher suite with the `ciphers` option. + * More information can be found in the RFC 4279. + */ + pskCallback?(socket: TLSSocket, identity: string): DataView | NodeJS.TypedArray | null; + /** + * hint to send to a client to help + * with selecting the identity during TLS-PSK negotiation. Will be ignored + * in TLS 1.3. Upon failing to set pskIdentityHint `tlsClientError` will be + * emitted with `ERR_TLS_PSK_SET_IDENTIY_HINT_FAILED` code. + */ + pskIdentityHint?: string | undefined; + } + interface PSKCallbackNegotation { + psk: DataView | NodeJS.TypedArray; + identity: string; + } + interface ConnectionOptions extends SecureContextOptions, CommonConnectionOptions { + host?: string | undefined; + port?: number | undefined; + path?: string | undefined; // Creates unix socket connection to path. If this option is specified, `host` and `port` are ignored. + socket?: stream.Duplex | undefined; // Establish secure connection on a given socket rather than creating a new socket + checkServerIdentity?: typeof checkServerIdentity | undefined; + servername?: string | undefined; // SNI TLS Extension + session?: Buffer | undefined; + minDHSize?: number | undefined; + lookup?: net.LookupFunction | undefined; + timeout?: number | undefined; + /** + * When negotiating TLS-PSK (pre-shared keys), this function is called + * with optional identity `hint` provided by the server or `null` + * in case of TLS 1.3 where `hint` was removed. + * It will be necessary to provide a custom `tls.checkServerIdentity()` + * for the connection as the default one will try to check hostname/IP + * of the server against the certificate but that's not applicable for PSK + * because there won't be a certificate present. + * More information can be found in the RFC 4279. + * + * @param hint message sent from the server to help client + * decide which identity to use during negotiation. + * Always `null` if TLS 1.3 is used. + * @returns Return `null` to stop the negotiation process. `psk` must be + * compatible with the selected cipher's digest. + * `identity` must use UTF-8 encoding. + */ + pskCallback?(hint: string | null): PSKCallbackNegotation | null; + } + /** + * Accepts encrypted connections using TLS or SSL. + * @since v0.3.2 + */ + class Server extends net.Server { + constructor(secureConnectionListener?: (socket: TLSSocket) => void); + constructor(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void); + /** + * The `server.addContext()` method adds a secure context that will be used if + * the client request's SNI name matches the supplied `hostname` (or wildcard). + * + * When there are multiple matching contexts, the most recently added one is + * used. + * @since v0.5.3 + * @param hostname A SNI host name or wildcard (e.g. `'*'`) + * @param context An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc). + */ + addContext(hostname: string, context: SecureContextOptions): void; + /** + * Returns the session ticket keys. + * + * See `Session Resumption` for more information. + * @since v3.0.0 + * @return A 48-byte buffer containing the session ticket keys. + */ + getTicketKeys(): Buffer; + /** + * The `server.setSecureContext()` method replaces the secure context of an + * existing server. Existing connections to the server are not interrupted. + * @since v11.0.0 + * @param options An object containing any of the possible properties from the {@link createSecureContext} `options` arguments (e.g. `key`, `cert`, `ca`, etc). + */ + setSecureContext(options: SecureContextOptions): void; + /** + * Sets the session ticket keys. + * + * Changes to the ticket keys are effective only for future server connections. + * Existing or currently pending server connections will use the previous keys. + * + * See `Session Resumption` for more information. + * @since v3.0.0 + * @param keys A 48-byte buffer containing the session ticket keys. + */ + setTicketKeys(keys: Buffer): void; + /** + * events.EventEmitter + * 1. tlsClientError + * 2. newSession + * 3. OCSPRequest + * 4. resumeSession + * 5. secureConnection + * 6. keylog + */ + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: TLSSocket) => void): this; + addListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; + addListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; + addListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; + addListener(event: 'secureConnection', listener: (tlsSocket: TLSSocket) => void): this; + addListener(event: 'keylog', listener: (line: Buffer, tlsSocket: TLSSocket) => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: 'tlsClientError', err: Error, tlsSocket: TLSSocket): boolean; + emit(event: 'newSession', sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void): boolean; + emit(event: 'OCSPRequest', certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void): boolean; + emit(event: 'resumeSession', sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean; + emit(event: 'secureConnection', tlsSocket: TLSSocket): boolean; + emit(event: 'keylog', line: Buffer, tlsSocket: TLSSocket): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: 'tlsClientError', listener: (err: Error, tlsSocket: TLSSocket) => void): this; + on(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; + on(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; + on(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; + on(event: 'secureConnection', listener: (tlsSocket: TLSSocket) => void): this; + on(event: 'keylog', listener: (line: Buffer, tlsSocket: TLSSocket) => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: 'tlsClientError', listener: (err: Error, tlsSocket: TLSSocket) => void): this; + once(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; + once(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; + once(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; + once(event: 'secureConnection', listener: (tlsSocket: TLSSocket) => void): this; + once(event: 'keylog', listener: (line: Buffer, tlsSocket: TLSSocket) => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: TLSSocket) => void): this; + prependListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; + prependListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; + prependListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; + prependListener(event: 'secureConnection', listener: (tlsSocket: TLSSocket) => void): this; + prependListener(event: 'keylog', listener: (line: Buffer, tlsSocket: TLSSocket) => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'tlsClientError', listener: (err: Error, tlsSocket: TLSSocket) => void): this; + prependOnceListener(event: 'newSession', listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void): this; + prependOnceListener(event: 'OCSPRequest', listener: (certificate: Buffer, issuer: Buffer, callback: (err: Error | null, resp: Buffer) => void) => void): this; + prependOnceListener(event: 'resumeSession', listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void): this; + prependOnceListener(event: 'secureConnection', listener: (tlsSocket: TLSSocket) => void): this; + prependOnceListener(event: 'keylog', listener: (line: Buffer, tlsSocket: TLSSocket) => void): this; + } + /** + * @deprecated since v0.11.3 Use `tls.TLSSocket` instead. + */ + interface SecurePair { + encrypted: TLSSocket; + cleartext: TLSSocket; + } + type SecureVersion = 'TLSv1.3' | 'TLSv1.2' | 'TLSv1.1' | 'TLSv1'; + interface SecureContextOptions { + /** + * Optionally override the trusted CA certificates. Default is to trust + * the well-known CAs curated by Mozilla. Mozilla's CAs are completely + * replaced when CAs are explicitly specified using this option. + */ + ca?: string | Buffer | Array | undefined; + /** + * Cert chains in PEM format. One cert chain should be provided per + * private key. Each cert chain should consist of the PEM formatted + * certificate for a provided private key, followed by the PEM + * formatted intermediate certificates (if any), in order, and not + * including the root CA (the root CA must be pre-known to the peer, + * see ca). When providing multiple cert chains, they do not have to + * be in the same order as their private keys in key. If the + * intermediate certificates are not provided, the peer will not be + * able to validate the certificate, and the handshake will fail. + */ + cert?: string | Buffer | Array | undefined; + /** + * Colon-separated list of supported signature algorithms. The list + * can contain digest algorithms (SHA256, MD5 etc.), public key + * algorithms (RSA-PSS, ECDSA etc.), combination of both (e.g + * 'RSA+SHA384') or TLS v1.3 scheme names (e.g. rsa_pss_pss_sha512). + */ + sigalgs?: string | undefined; + /** + * Cipher suite specification, replacing the default. For more + * information, see modifying the default cipher suite. Permitted + * ciphers can be obtained via tls.getCiphers(). Cipher names must be + * uppercased in order for OpenSSL to accept them. + */ + ciphers?: string | undefined; + /** + * Name of an OpenSSL engine which can provide the client certificate. + */ + clientCertEngine?: string | undefined; + /** + * PEM formatted CRLs (Certificate Revocation Lists). + */ + crl?: string | Buffer | Array | undefined; + /** + * Diffie Hellman parameters, required for Perfect Forward Secrecy. Use + * openssl dhparam to create the parameters. The key length must be + * greater than or equal to 1024 bits or else an error will be thrown. + * Although 1024 bits is permissible, use 2048 bits or larger for + * stronger security. If omitted or invalid, the parameters are + * silently discarded and DHE ciphers will not be available. + */ + dhparam?: string | Buffer | undefined; + /** + * A string describing a named curve or a colon separated list of curve + * NIDs or names, for example P-521:P-384:P-256, to use for ECDH key + * agreement. Set to auto to select the curve automatically. Use + * crypto.getCurves() to obtain a list of available curve names. On + * recent releases, openssl ecparam -list_curves will also display the + * name and description of each available elliptic curve. Default: + * tls.DEFAULT_ECDH_CURVE. + */ + ecdhCurve?: string | undefined; + /** + * Attempt to use the server's cipher suite preferences instead of the + * client's. When true, causes SSL_OP_CIPHER_SERVER_PREFERENCE to be + * set in secureOptions + */ + honorCipherOrder?: boolean | undefined; + /** + * Private keys in PEM format. PEM allows the option of private keys + * being encrypted. Encrypted keys will be decrypted with + * options.passphrase. Multiple keys using different algorithms can be + * provided either as an array of unencrypted key strings or buffers, + * or an array of objects in the form {pem: [, + * passphrase: ]}. The object form can only occur in an array. + * object.passphrase is optional. Encrypted keys will be decrypted with + * object.passphrase if provided, or options.passphrase if it is not. + */ + key?: string | Buffer | Array | undefined; + /** + * Name of an OpenSSL engine to get private key from. Should be used + * together with privateKeyIdentifier. + */ + privateKeyEngine?: string | undefined; + /** + * Identifier of a private key managed by an OpenSSL engine. Should be + * used together with privateKeyEngine. Should not be set together with + * key, because both options define a private key in different ways. + */ + privateKeyIdentifier?: string | undefined; + /** + * Optionally set the maximum TLS version to allow. One + * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the + * `secureProtocol` option, use one or the other. + * **Default:** `'TLSv1.3'`, unless changed using CLI options. Using + * `--tls-max-v1.2` sets the default to `'TLSv1.2'`. Using `--tls-max-v1.3` sets the default to + * `'TLSv1.3'`. If multiple of the options are provided, the highest maximum is used. + */ + maxVersion?: SecureVersion | undefined; + /** + * Optionally set the minimum TLS version to allow. One + * of `'TLSv1.3'`, `'TLSv1.2'`, `'TLSv1.1'`, or `'TLSv1'`. Cannot be specified along with the + * `secureProtocol` option, use one or the other. It is not recommended to use + * less than TLSv1.2, but it may be required for interoperability. + * **Default:** `'TLSv1.2'`, unless changed using CLI options. Using + * `--tls-v1.0` sets the default to `'TLSv1'`. Using `--tls-v1.1` sets the default to + * `'TLSv1.1'`. Using `--tls-min-v1.3` sets the default to + * 'TLSv1.3'. If multiple of the options are provided, the lowest minimum is used. + */ + minVersion?: SecureVersion | undefined; + /** + * Shared passphrase used for a single private key and/or a PFX. + */ + passphrase?: string | undefined; + /** + * PFX or PKCS12 encoded private key and certificate chain. pfx is an + * alternative to providing key and cert individually. PFX is usually + * encrypted, if it is, passphrase will be used to decrypt it. Multiple + * PFX can be provided either as an array of unencrypted PFX buffers, + * or an array of objects in the form {buf: [, + * passphrase: ]}. The object form can only occur in an array. + * object.passphrase is optional. Encrypted PFX will be decrypted with + * object.passphrase if provided, or options.passphrase if it is not. + */ + pfx?: string | Buffer | Array | undefined; + /** + * Optionally affect the OpenSSL protocol behavior, which is not + * usually necessary. This should be used carefully if at all! Value is + * a numeric bitmask of the SSL_OP_* options from OpenSSL Options + */ + secureOptions?: number | undefined; // Value is a numeric bitmask of the `SSL_OP_*` options + /** + * Legacy mechanism to select the TLS protocol version to use, it does + * not support independent control of the minimum and maximum version, + * and does not support limiting the protocol to TLSv1.3. Use + * minVersion and maxVersion instead. The possible values are listed as + * SSL_METHODS, use the function names as strings. For example, use + * 'TLSv1_1_method' to force TLS version 1.1, or 'TLS_method' to allow + * any TLS protocol version up to TLSv1.3. It is not recommended to use + * TLS versions less than 1.2, but it may be required for + * interoperability. Default: none, see minVersion. + */ + secureProtocol?: string | undefined; + /** + * Opaque identifier used by servers to ensure session state is not + * shared between applications. Unused by clients. + */ + sessionIdContext?: string | undefined; + /** + * 48-bytes of cryptographically strong pseudo-random data. + * See Session Resumption for more information. + */ + ticketKeys?: Buffer | undefined; + /** + * The number of seconds after which a TLS session created by the + * server will no longer be resumable. See Session Resumption for more + * information. Default: 300. + */ + sessionTimeout?: number | undefined; + } + interface SecureContext { + context: any; + } + /** + * Verifies the certificate `cert` is issued to `hostname`. + * + * Returns [Error](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error) object, populating it with `reason`, `host`, and `cert` on + * failure. On success, returns [undefined](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Undefined_type). + * + * This function can be overwritten by providing alternative function as part of + * the `options.checkServerIdentity` option passed to `tls.connect()`. The + * overwriting function can call `tls.checkServerIdentity()` of course, to augment + * the checks done with additional verification. + * + * This function is only called if the certificate passed all other checks, such as + * being issued by trusted CA (`options.ca`). + * @since v0.8.4 + * @param hostname The host name or IP address to verify the certificate against. + * @param cert A `certificate object` representing the peer's certificate. + */ + function checkServerIdentity(hostname: string, cert: PeerCertificate): Error | undefined; + /** + * Creates a new {@link Server}. The `secureConnectionListener`, if provided, is + * automatically set as a listener for the `'secureConnection'` event. + * + * The `ticketKeys` options is automatically shared between `cluster` module + * workers. + * + * The following illustrates a simple echo server: + * + * ```js + * const tls = require('tls'); + * const fs = require('fs'); + * + * const options = { + * key: fs.readFileSync('server-key.pem'), + * cert: fs.readFileSync('server-cert.pem'), + * + * // This is necessary only if using client certificate authentication. + * requestCert: true, + * + * // This is necessary only if the client uses a self-signed certificate. + * ca: [ fs.readFileSync('client-cert.pem') ] + * }; + * + * const server = tls.createServer(options, (socket) => { + * console.log('server connected', + * socket.authorized ? 'authorized' : 'unauthorized'); + * socket.write('welcome!\n'); + * socket.setEncoding('utf8'); + * socket.pipe(socket); + * }); + * server.listen(8000, () => { + * console.log('server bound'); + * }); + * ``` + * + * The server can be tested by connecting to it using the example client from {@link connect}. + * @since v0.3.2 + */ + function createServer(secureConnectionListener?: (socket: TLSSocket) => void): Server; + function createServer(options: TlsOptions, secureConnectionListener?: (socket: TLSSocket) => void): Server; + /** + * The `callback` function, if specified, will be added as a listener for the `'secureConnect'` event. + * + * `tls.connect()` returns a {@link TLSSocket} object. + * + * Unlike the `https` API, `tls.connect()` does not enable the + * SNI (Server Name Indication) extension by default, which may cause some + * servers to return an incorrect certificate or reject the connection + * altogether. To enable SNI, set the `servername` option in addition + * to `host`. + * + * The following illustrates a client for the echo server example from {@link createServer}: + * + * ```js + * // Assumes an echo server that is listening on port 8000. + * const tls = require('tls'); + * const fs = require('fs'); + * + * const options = { + * // Necessary only if the server requires client certificate authentication. + * key: fs.readFileSync('client-key.pem'), + * cert: fs.readFileSync('client-cert.pem'), + * + * // Necessary only if the server uses a self-signed certificate. + * ca: [ fs.readFileSync('server-cert.pem') ], + * + * // Necessary only if the server's cert isn't for "localhost". + * checkServerIdentity: () => { return null; }, + * }; + * + * const socket = tls.connect(8000, options, () => { + * console.log('client connected', + * socket.authorized ? 'authorized' : 'unauthorized'); + * process.stdin.pipe(socket); + * process.stdin.resume(); + * }); + * socket.setEncoding('utf8'); + * socket.on('data', (data) => { + * console.log(data); + * }); + * socket.on('end', () => { + * console.log('server ends connection'); + * }); + * ``` + * @since v0.11.3 + */ + function connect(options: ConnectionOptions, secureConnectListener?: () => void): TLSSocket; + function connect(port: number, host?: string, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket; + function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket; + /** + * Creates a new secure pair object with two streams, one of which reads and writes + * the encrypted data and the other of which reads and writes the cleartext data. + * Generally, the encrypted stream is piped to/from an incoming encrypted data + * stream and the cleartext one is used as a replacement for the initial encrypted + * stream. + * + * `tls.createSecurePair()` returns a `tls.SecurePair` object with `cleartext` and`encrypted` stream properties. + * + * Using `cleartext` has the same API as {@link TLSSocket}. + * + * The `tls.createSecurePair()` method is now deprecated in favor of`tls.TLSSocket()`. For example, the code: + * + * ```js + * pair = tls.createSecurePair(// ... ); + * pair.encrypted.pipe(socket); + * socket.pipe(pair.encrypted); + * ``` + * + * can be replaced by: + * + * ```js + * secureSocket = tls.TLSSocket(socket, options); + * ``` + * + * where `secureSocket` has the same API as `pair.cleartext`. + * @since v0.3.2 + * @deprecated Since v0.11.3 - Use {@link TLSSocket} instead. + * @param context A secure context object as returned by `tls.createSecureContext()` + * @param isServer `true` to specify that this TLS connection should be opened as a server. + * @param requestCert `true` to specify whether a server should request a certificate from a connecting client. Only applies when `isServer` is `true`. + * @param rejectUnauthorized If not `false` a server automatically reject clients with invalid certificates. Only applies when `isServer` is `true`. + */ + function createSecurePair(context?: SecureContext, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair; + /** + * {@link createServer} sets the default value of the `honorCipherOrder` option + * to `true`, other APIs that create secure contexts leave it unset. + * + * {@link createServer} uses a 128 bit truncated SHA1 hash value generated + * from `process.argv` as the default value of the `sessionIdContext` option, other + * APIs that create secure contexts have no default value. + * + * The `tls.createSecureContext()` method creates a `SecureContext` object. It is + * usable as an argument to several `tls` APIs, such as {@link createServer} and `server.addContext()`, but has no public methods. + * + * A key is _required_ for ciphers that use certificates. Either `key` or`pfx` can be used to provide it. + * + * If the `ca` option is not given, then Node.js will default to using [Mozilla's publicly trusted list of + * CAs](https://hg.mozilla.org/mozilla-central/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt). + * @since v0.11.13 + */ + function createSecureContext(options?: SecureContextOptions): SecureContext; + /** + * Returns an array with the names of the supported TLS ciphers. The names are + * lower-case for historical reasons, but must be uppercased to be used in + * the `ciphers` option of {@link createSecureContext}. + * + * Cipher names that start with `'tls_'` are for TLSv1.3, all the others are for + * TLSv1.2 and below. + * + * ```js + * console.log(tls.getCiphers()); // ['aes128-gcm-sha256', 'aes128-sha', ...] + * ``` + * @since v0.10.2 + */ + function getCiphers(): string[]; + /** + * The default curve name to use for ECDH key agreement in a tls server. + * The default value is 'auto'. See tls.createSecureContext() for further + * information. + */ + let DEFAULT_ECDH_CURVE: string; + /** + * The default value of the maxVersion option of + * tls.createSecureContext(). It can be assigned any of the supported TLS + * protocol versions, 'TLSv1.3', 'TLSv1.2', 'TLSv1.1', or 'TLSv1'. Default: + * 'TLSv1.3', unless changed using CLI options. Using --tls-max-v1.2 sets + * the default to 'TLSv1.2'. Using --tls-max-v1.3 sets the default to + * 'TLSv1.3'. If multiple of the options are provided, the highest maximum + * is used. + */ + let DEFAULT_MAX_VERSION: SecureVersion; + /** + * The default value of the minVersion option of tls.createSecureContext(). + * It can be assigned any of the supported TLS protocol versions, + * 'TLSv1.3', 'TLSv1.2', 'TLSv1.1', or 'TLSv1'. Default: 'TLSv1.2', unless + * changed using CLI options. Using --tls-min-v1.0 sets the default to + * 'TLSv1'. Using --tls-min-v1.1 sets the default to 'TLSv1.1'. Using + * --tls-min-v1.3 sets the default to 'TLSv1.3'. If multiple of the options + * are provided, the lowest minimum is used. + */ + let DEFAULT_MIN_VERSION: SecureVersion; + /** + * An immutable array of strings representing the root certificates (in PEM + * format) used for verifying peer certificates. This is the default value + * of the ca option to tls.createSecureContext(). + */ + const rootCertificates: ReadonlyArray; +} +declare module 'node:tls' { + export * from 'tls'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/trace_events.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/trace_events.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..cb4e3754a6abee39b4fe64c7eccf0739d32dc6ae --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/trace_events.d.ts" @@ -0,0 +1,161 @@ +/** + * The `trace_events` module provides a mechanism to centralize tracing information + * generated by V8, Node.js core, and userspace code. + * + * Tracing can be enabled with the `--trace-event-categories` command-line flag + * or by using the `trace_events` module. The `--trace-event-categories` flag + * accepts a list of comma-separated category names. + * + * The available categories are: + * + * * `node`: An empty placeholder. + * * `node.async_hooks`: Enables capture of detailed `async_hooks` trace data. + * The `async_hooks` events have a unique `asyncId` and a special `triggerId` `triggerAsyncId` property. + * * `node.bootstrap`: Enables capture of Node.js bootstrap milestones. + * * `node.console`: Enables capture of `console.time()` and `console.count()`output. + * * `node.dns.native`: Enables capture of trace data for DNS queries. + * * `node.environment`: Enables capture of Node.js Environment milestones. + * * `node.fs.sync`: Enables capture of trace data for file system sync methods. + * * `node.perf`: Enables capture of `Performance API` measurements. + * * `node.perf.usertiming`: Enables capture of only Performance API User Timing + * measures and marks. + * * `node.perf.timerify`: Enables capture of only Performance API timerify + * measurements. + * * `node.promises.rejections`: Enables capture of trace data tracking the number + * of unhandled Promise rejections and handled-after-rejections. + * * `node.vm.script`: Enables capture of trace data for the `vm` module's`runInNewContext()`, `runInContext()`, and `runInThisContext()` methods. + * * `v8`: The `V8` events are GC, compiling, and execution related. + * + * By default the `node`, `node.async_hooks`, and `v8` categories are enabled. + * + * ```bash + * node --trace-event-categories v8,node,node.async_hooks server.js + * ``` + * + * Prior versions of Node.js required the use of the `--trace-events-enabled`flag to enable trace events. This requirement has been removed. However, the`--trace-events-enabled` flag _may_ still be + * used and will enable the`node`, `node.async_hooks`, and `v8` trace event categories by default. + * + * ```bash + * node --trace-events-enabled + * + * # is equivalent to + * + * node --trace-event-categories v8,node,node.async_hooks + * ``` + * + * Alternatively, trace events may be enabled using the `trace_events` module: + * + * ```js + * const trace_events = require('trace_events'); + * const tracing = trace_events.createTracing({ categories: ['node.perf'] }); + * tracing.enable(); // Enable trace event capture for the 'node.perf' category + * + * // do work + * + * tracing.disable(); // Disable trace event capture for the 'node.perf' category + * ``` + * + * Running Node.js with tracing enabled will produce log files that can be opened + * in the [`chrome://tracing`](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool) tab of Chrome. + * + * The logging file is by default called `node_trace.${rotation}.log`, where`${rotation}` is an incrementing log-rotation id. The filepath pattern can + * be specified with `--trace-event-file-pattern` that accepts a template + * string that supports `${rotation}` and `${pid}`: + * + * ```bash + * node --trace-event-categories v8 --trace-event-file-pattern '${pid}-${rotation}.log' server.js + * ``` + * + * The tracing system uses the same time source + * as the one used by `process.hrtime()`. + * However the trace-event timestamps are expressed in microseconds, + * unlike `process.hrtime()` which returns nanoseconds. + * + * The features from this module are not available in `Worker` threads. + * @experimental + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/trace_events.js) + */ +declare module 'trace_events' { + /** + * The `Tracing` object is used to enable or disable tracing for sets of + * categories. Instances are created using the + * `trace_events.createTracing()` method. + * + * When created, the `Tracing` object is disabled. Calling the + * `tracing.enable()` method adds the categories to the set of enabled trace + * event categories. Calling `tracing.disable()` will remove the categories + * from the set of enabled trace event categories. + */ + interface Tracing { + /** + * A comma-separated list of the trace event categories covered by this + * `Tracing` object. + */ + readonly categories: string; + /** + * Disables this `Tracing` object. + * + * Only trace event categories _not_ covered by other enabled `Tracing` + * objects and _not_ specified by the `--trace-event-categories` flag + * will be disabled. + */ + disable(): void; + /** + * Enables this `Tracing` object for the set of categories covered by + * the `Tracing` object. + */ + enable(): void; + /** + * `true` only if the `Tracing` object has been enabled. + */ + readonly enabled: boolean; + } + interface CreateTracingOptions { + /** + * An array of trace category names. Values included in the array are + * coerced to a string when possible. An error will be thrown if the + * value cannot be coerced. + */ + categories: string[]; + } + /** + * Creates and returns a `Tracing` object for the given set of `categories`. + * + * ```js + * const trace_events = require('trace_events'); + * const categories = ['node.perf', 'node.async_hooks']; + * const tracing = trace_events.createTracing({ categories }); + * tracing.enable(); + * // do stuff + * tracing.disable(); + * ``` + * @since v10.0.0 + * @return . + */ + function createTracing(options: CreateTracingOptions): Tracing; + /** + * Returns a comma-separated list of all currently-enabled trace event + * categories. The current set of enabled trace event categories is determined + * by the _union_ of all currently-enabled `Tracing` objects and any categories + * enabled using the `--trace-event-categories` flag. + * + * Given the file `test.js` below, the command`node --trace-event-categories node.perf test.js` will print`'node.async_hooks,node.perf'` to the console. + * + * ```js + * const trace_events = require('trace_events'); + * const t1 = trace_events.createTracing({ categories: ['node.async_hooks'] }); + * const t2 = trace_events.createTracing({ categories: ['node.perf'] }); + * const t3 = trace_events.createTracing({ categories: ['v8'] }); + * + * t1.enable(); + * t2.enable(); + * + * console.log(trace_events.getEnabledCategories()); + * ``` + * @since v10.0.0 + */ + function getEnabledCategories(): string | undefined; +} +declare module 'node:trace_events' { + export * from 'trace_events'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/tty.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/tty.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..72fdf2e1faba30f1f8b9768ebf8a9e6ac3ecb769 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/tty.d.ts" @@ -0,0 +1,204 @@ +/** + * The `tty` module provides the `tty.ReadStream` and `tty.WriteStream` classes. + * In most cases, it will not be necessary or possible to use this module directly. + * However, it can be accessed using: + * + * ```js + * const tty = require('tty'); + * ``` + * + * When Node.js detects that it is being run with a text terminal ("TTY") + * attached, `process.stdin` will, by default, be initialized as an instance of`tty.ReadStream` and both `process.stdout` and `process.stderr` will, by + * default, be instances of `tty.WriteStream`. The preferred method of determining + * whether Node.js is being run within a TTY context is to check that the value of + * the `process.stdout.isTTY` property is `true`: + * + * ```console + * $ node -p -e "Boolean(process.stdout.isTTY)" + * true + * $ node -p -e "Boolean(process.stdout.isTTY)" | cat + * false + * ``` + * + * In most cases, there should be little to no reason for an application to + * manually create instances of the `tty.ReadStream` and `tty.WriteStream`classes. + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/tty.js) + */ +declare module 'tty' { + import * as net from 'node:net'; + /** + * The `tty.isatty()` method returns `true` if the given `fd` is associated with + * a TTY and `false` if it is not, including whenever `fd` is not a non-negative + * integer. + * @since v0.5.8 + * @param fd A numeric file descriptor + */ + function isatty(fd: number): boolean; + /** + * Represents the readable side of a TTY. In normal circumstances `process.stdin` will be the only `tty.ReadStream` instance in a Node.js + * process and there should be no reason to create additional instances. + * @since v0.5.8 + */ + class ReadStream extends net.Socket { + constructor(fd: number, options?: net.SocketConstructorOpts); + /** + * A `boolean` that is `true` if the TTY is currently configured to operate as a + * raw device. Defaults to `false`. + * @since v0.7.7 + */ + isRaw: boolean; + /** + * Allows configuration of `tty.ReadStream` so that it operates as a raw device. + * + * When in raw mode, input is always available character-by-character, not + * including modifiers. Additionally, all special processing of characters by the + * terminal is disabled, including echoing input characters.Ctrl+C will no longer cause a `SIGINT` when in this mode. + * @since v0.7.7 + * @param mode If `true`, configures the `tty.ReadStream` to operate as a raw device. If `false`, configures the `tty.ReadStream` to operate in its default mode. The `readStream.isRaw` + * property will be set to the resulting mode. + * @return The read stream instance. + */ + setRawMode(mode: boolean): this; + /** + * A `boolean` that is always `true` for `tty.ReadStream` instances. + * @since v0.5.8 + */ + isTTY: boolean; + } + /** + * -1 - to the left from cursor + * 0 - the entire line + * 1 - to the right from cursor + */ + type Direction = -1 | 0 | 1; + /** + * Represents the writable side of a TTY. In normal circumstances,`process.stdout` and `process.stderr` will be the only`tty.WriteStream` instances created for a Node.js process and there + * should be no reason to create additional instances. + * @since v0.5.8 + */ + class WriteStream extends net.Socket { + constructor(fd: number); + addListener(event: string, listener: (...args: any[]) => void): this; + addListener(event: 'resize', listener: () => void): this; + emit(event: string | symbol, ...args: any[]): boolean; + emit(event: 'resize'): boolean; + on(event: string, listener: (...args: any[]) => void): this; + on(event: 'resize', listener: () => void): this; + once(event: string, listener: (...args: any[]) => void): this; + once(event: 'resize', listener: () => void): this; + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: 'resize', listener: () => void): this; + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'resize', listener: () => void): this; + /** + * `writeStream.clearLine()` clears the current line of this `WriteStream` in a + * direction identified by `dir`. + * @since v0.7.7 + * @param callback Invoked once the operation completes. + * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. + */ + clearLine(dir: Direction, callback?: () => void): boolean; + /** + * `writeStream.clearScreenDown()` clears this `WriteStream` from the current + * cursor down. + * @since v0.7.7 + * @param callback Invoked once the operation completes. + * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. + */ + clearScreenDown(callback?: () => void): boolean; + /** + * `writeStream.cursorTo()` moves this `WriteStream`'s cursor to the specified + * position. + * @since v0.7.7 + * @param callback Invoked once the operation completes. + * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. + */ + cursorTo(x: number, y?: number, callback?: () => void): boolean; + cursorTo(x: number, callback: () => void): boolean; + /** + * `writeStream.moveCursor()` moves this `WriteStream`'s cursor _relative_ to its + * current position. + * @since v0.7.7 + * @param callback Invoked once the operation completes. + * @return `false` if the stream wishes for the calling code to wait for the `'drain'` event to be emitted before continuing to write additional data; otherwise `true`. + */ + moveCursor(dx: number, dy: number, callback?: () => void): boolean; + /** + * Returns: + * + * * `1` for 2, + * * `4` for 16, + * * `8` for 256, + * * `24` for 16,777,216 colors supported. + * + * Use this to determine what colors the terminal supports. Due to the nature of + * colors in terminals it is possible to either have false positives or false + * negatives. It depends on process information and the environment variables that + * may lie about what terminal is used. + * It is possible to pass in an `env` object to simulate the usage of a specific + * terminal. This can be useful to check how specific environment settings behave. + * + * To enforce a specific color support, use one of the below environment settings. + * + * * 2 colors: `FORCE_COLOR = 0` (Disables colors) + * * 16 colors: `FORCE_COLOR = 1` + * * 256 colors: `FORCE_COLOR = 2` + * * 16,777,216 colors: `FORCE_COLOR = 3` + * + * Disabling color support is also possible by using the `NO_COLOR` and`NODE_DISABLE_COLORS` environment variables. + * @since v9.9.0 + * @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal. + */ + getColorDepth(env?: object): number; + /** + * Returns `true` if the `writeStream` supports at least as many colors as provided + * in `count`. Minimum support is 2 (black and white). + * + * This has the same false positives and negatives as described in `writeStream.getColorDepth()`. + * + * ```js + * process.stdout.hasColors(); + * // Returns true or false depending on if `stdout` supports at least 16 colors. + * process.stdout.hasColors(256); + * // Returns true or false depending on if `stdout` supports at least 256 colors. + * process.stdout.hasColors({ TMUX: '1' }); + * // Returns true. + * process.stdout.hasColors(2 ** 24, { TMUX: '1' }); + * // Returns false (the environment setting pretends to support 2 ** 8 colors). + * ``` + * @since v11.13.0, v10.16.0 + * @param [count=16] The number of colors that are requested (minimum 2). + * @param [env=process.env] An object containing the environment variables to check. This enables simulating the usage of a specific terminal. + */ + hasColors(count?: number): boolean; + hasColors(env?: object): boolean; + hasColors(count: number, env?: object): boolean; + /** + * `writeStream.getWindowSize()` returns the size of the TTY + * corresponding to this `WriteStream`. The array is of the type`[numColumns, numRows]` where `numColumns` and `numRows` represent the number + * of columns and rows in the corresponding TTY. + * @since v0.7.7 + */ + getWindowSize(): [number, number]; + /** + * A `number` specifying the number of columns the TTY currently has. This property + * is updated whenever the `'resize'` event is emitted. + * @since v0.7.7 + */ + columns: number; + /** + * A `number` specifying the number of rows the TTY currently has. This property + * is updated whenever the `'resize'` event is emitted. + * @since v0.7.7 + */ + rows: number; + /** + * A `boolean` that is always `true`. + * @since v0.5.8 + */ + isTTY: boolean; + } +} +declare module 'node:tty' { + export * from 'tty'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/url.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/url.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..0ec6bd1789009e5891407b788e413b9d91a4647b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/url.d.ts" @@ -0,0 +1,891 @@ +/** + * The `url` module provides utilities for URL resolution and parsing. It can be + * accessed using: + * + * ```js + * import url from 'url'; + * ``` + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/url.js) + */ +declare module 'url' { + import { Blob } from 'node:buffer'; + import { ClientRequestArgs } from 'node:http'; + import { ParsedUrlQuery, ParsedUrlQueryInput } from 'node:querystring'; + // Input to `url.format` + interface UrlObject { + auth?: string | null | undefined; + hash?: string | null | undefined; + host?: string | null | undefined; + hostname?: string | null | undefined; + href?: string | null | undefined; + pathname?: string | null | undefined; + protocol?: string | null | undefined; + search?: string | null | undefined; + slashes?: boolean | null | undefined; + port?: string | number | null | undefined; + query?: string | null | ParsedUrlQueryInput | undefined; + } + // Output of `url.parse` + interface Url { + auth: string | null; + hash: string | null; + host: string | null; + hostname: string | null; + href: string; + path: string | null; + pathname: string | null; + protocol: string | null; + search: string | null; + slashes: boolean | null; + port: string | null; + query: string | null | ParsedUrlQuery; + } + interface UrlWithParsedQuery extends Url { + query: ParsedUrlQuery; + } + interface UrlWithStringQuery extends Url { + query: string | null; + } + /** + * The `url.parse()` method takes a URL string, parses it, and returns a URL + * object. + * + * A `TypeError` is thrown if `urlString` is not a string. + * + * A `URIError` is thrown if the `auth` property is present but cannot be decoded. + * + * Use of the legacy `url.parse()` method is discouraged. Users should + * use the WHATWG `URL` API. Because the `url.parse()` method uses a + * lenient, non-standard algorithm for parsing URL strings, security + * issues can be introduced. Specifically, issues with [host name spoofing](https://hackerone.com/reports/678487) and + * incorrect handling of usernames and passwords have been identified. + * @since v0.1.25 + * @deprecated Legacy: Use the WHATWG URL API instead. + * @param urlString The URL string to parse. + * @param [parseQueryString=false] If `true`, the `query` property will always be set to an object returned by the {@link querystring} module's `parse()` method. If `false`, the `query` property + * on the returned URL object will be an unparsed, undecoded string. + * @param [slashesDenoteHost=false] If `true`, the first token after the literal string `//` and preceding the next `/` will be interpreted as the `host`. For instance, given `//foo/bar`, the + * result would be `{host: 'foo', pathname: '/bar'}` rather than `{pathname: '//foo/bar'}`. + */ + function parse(urlString: string): UrlWithStringQuery; + function parse(urlString: string, parseQueryString: false | undefined, slashesDenoteHost?: boolean): UrlWithStringQuery; + function parse(urlString: string, parseQueryString: true, slashesDenoteHost?: boolean): UrlWithParsedQuery; + function parse(urlString: string, parseQueryString: boolean, slashesDenoteHost?: boolean): Url; + /** + * The `url.format()` method returns a formatted URL string derived from`urlObject`. + * + * ```js + * const url = require('url'); + * url.format({ + * protocol: 'https', + * hostname: 'example.com', + * pathname: '/some/path', + * query: { + * page: 1, + * format: 'json' + * } + * }); + * + * // => 'https://example.com/some/path?page=1&format=json' + * ``` + * + * If `urlObject` is not an object or a string, `url.format()` will throw a `TypeError`. + * + * The formatting process operates as follows: + * + * * A new empty string `result` is created. + * * If `urlObject.protocol` is a string, it is appended as-is to `result`. + * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown. + * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII + * colon (`:`) character, the literal string `:` will be appended to `result`. + * * If either of the following conditions is true, then the literal string `//`will be appended to `result`: + * * `urlObject.slashes` property is true; + * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or`file`; + * * If the value of the `urlObject.auth` property is truthy, and either`urlObject.host` or `urlObject.hostname` are not `undefined`, the value of`urlObject.auth` will be coerced into a string + * and appended to `result`followed by the literal string `@`. + * * If the `urlObject.host` property is `undefined` then: + * * If the `urlObject.hostname` is a string, it is appended to `result`. + * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string, + * an `Error` is thrown. + * * If the `urlObject.port` property value is truthy, and `urlObject.hostname`is not `undefined`: + * * The literal string `:` is appended to `result`, and + * * The value of `urlObject.port` is coerced to a string and appended to`result`. + * * Otherwise, if the `urlObject.host` property value is truthy, the value of`urlObject.host` is coerced to a string and appended to `result`. + * * If the `urlObject.pathname` property is a string that is not an empty string: + * * If the `urlObject.pathname`_does not start_ with an ASCII forward slash + * (`/`), then the literal string `'/'` is appended to `result`. + * * The value of `urlObject.pathname` is appended to `result`. + * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown. + * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result`followed by the output of calling the + * `querystring` module's `stringify()`method passing the value of `urlObject.query`. + * * Otherwise, if `urlObject.search` is a string: + * * If the value of `urlObject.search`_does not start_ with the ASCII question + * mark (`?`) character, the literal string `?` is appended to `result`. + * * The value of `urlObject.search` is appended to `result`. + * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown. + * * If the `urlObject.hash` property is a string: + * * If the value of `urlObject.hash`_does not start_ with the ASCII hash (`#`) + * character, the literal string `#` is appended to `result`. + * * The value of `urlObject.hash` is appended to `result`. + * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a + * string, an `Error` is thrown. + * * `result` is returned. + * @since v0.1.25 + * @deprecated Legacy: Use the WHATWG URL API instead. + * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`. + */ + function format(urlObject: URL, options?: URLFormatOptions): string; + /** + * The `url.format()` method returns a formatted URL string derived from`urlObject`. + * + * ```js + * const url = require('url'); + * url.format({ + * protocol: 'https', + * hostname: 'example.com', + * pathname: '/some/path', + * query: { + * page: 1, + * format: 'json' + * } + * }); + * + * // => 'https://example.com/some/path?page=1&format=json' + * ``` + * + * If `urlObject` is not an object or a string, `url.format()` will throw a `TypeError`. + * + * The formatting process operates as follows: + * + * * A new empty string `result` is created. + * * If `urlObject.protocol` is a string, it is appended as-is to `result`. + * * Otherwise, if `urlObject.protocol` is not `undefined` and is not a string, an `Error` is thrown. + * * For all string values of `urlObject.protocol` that _do not end_ with an ASCII + * colon (`:`) character, the literal string `:` will be appended to `result`. + * * If either of the following conditions is true, then the literal string `//`will be appended to `result`: + * * `urlObject.slashes` property is true; + * * `urlObject.protocol` begins with `http`, `https`, `ftp`, `gopher`, or`file`; + * * If the value of the `urlObject.auth` property is truthy, and either`urlObject.host` or `urlObject.hostname` are not `undefined`, the value of`urlObject.auth` will be coerced into a string + * and appended to `result`followed by the literal string `@`. + * * If the `urlObject.host` property is `undefined` then: + * * If the `urlObject.hostname` is a string, it is appended to `result`. + * * Otherwise, if `urlObject.hostname` is not `undefined` and is not a string, + * an `Error` is thrown. + * * If the `urlObject.port` property value is truthy, and `urlObject.hostname`is not `undefined`: + * * The literal string `:` is appended to `result`, and + * * The value of `urlObject.port` is coerced to a string and appended to`result`. + * * Otherwise, if the `urlObject.host` property value is truthy, the value of`urlObject.host` is coerced to a string and appended to `result`. + * * If the `urlObject.pathname` property is a string that is not an empty string: + * * If the `urlObject.pathname`_does not start_ with an ASCII forward slash + * (`/`), then the literal string `'/'` is appended to `result`. + * * The value of `urlObject.pathname` is appended to `result`. + * * Otherwise, if `urlObject.pathname` is not `undefined` and is not a string, an `Error` is thrown. + * * If the `urlObject.search` property is `undefined` and if the `urlObject.query`property is an `Object`, the literal string `?` is appended to `result`followed by the output of calling the + * `querystring` module's `stringify()`method passing the value of `urlObject.query`. + * * Otherwise, if `urlObject.search` is a string: + * * If the value of `urlObject.search`_does not start_ with the ASCII question + * mark (`?`) character, the literal string `?` is appended to `result`. + * * The value of `urlObject.search` is appended to `result`. + * * Otherwise, if `urlObject.search` is not `undefined` and is not a string, an `Error` is thrown. + * * If the `urlObject.hash` property is a string: + * * If the value of `urlObject.hash`_does not start_ with the ASCII hash (`#`) + * character, the literal string `#` is appended to `result`. + * * The value of `urlObject.hash` is appended to `result`. + * * Otherwise, if the `urlObject.hash` property is not `undefined` and is not a + * string, an `Error` is thrown. + * * `result` is returned. + * @since v0.1.25 + * @deprecated Legacy: Use the WHATWG URL API instead. + * @param urlObject A URL object (as returned by `url.parse()` or constructed otherwise). If a string, it is converted to an object by passing it to `url.parse()`. + */ + function format(urlObject: UrlObject | string): string; + /** + * The `url.resolve()` method resolves a target URL relative to a base URL in a + * manner similar to that of a Web browser resolving an anchor tag HREF. + * + * ```js + * const url = require('url'); + * url.resolve('/one/two/three', 'four'); // '/one/two/four' + * url.resolve('http://example.com/', '/one'); // 'http://example.com/one' + * url.resolve('http://example.com/one', '/two'); // 'http://example.com/two' + * ``` + * + * You can achieve the same result using the WHATWG URL API: + * + * ```js + * function resolve(from, to) { + * const resolvedUrl = new URL(to, new URL(from, 'resolve://')); + * if (resolvedUrl.protocol === 'resolve:') { + * // `from` is a relative URL. + * const { pathname, search, hash } = resolvedUrl; + * return pathname + search + hash; + * } + * return resolvedUrl.toString(); + * } + * + * resolve('/one/two/three', 'four'); // '/one/two/four' + * resolve('http://example.com/', '/one'); // 'http://example.com/one' + * resolve('http://example.com/one', '/two'); // 'http://example.com/two' + * ``` + * @since v0.1.25 + * @deprecated Legacy: Use the WHATWG URL API instead. + * @param from The Base URL being resolved against. + * @param to The HREF URL being resolved. + */ + function resolve(from: string, to: string): string; + /** + * Returns the [Punycode](https://tools.ietf.org/html/rfc5891#section-4.4) ASCII serialization of the `domain`. If `domain` is an + * invalid domain, the empty string is returned. + * + * It performs the inverse operation to {@link domainToUnicode}. + * + * This feature is only available if the `node` executable was compiled with `ICU` enabled. If not, the domain names are passed through unchanged. + * + * ```js + * import url from 'url'; + * + * console.log(url.domainToASCII('español.com')); + * // Prints xn--espaol-zwa.com + * console.log(url.domainToASCII('中文.com')); + * // Prints xn--fiq228c.com + * console.log(url.domainToASCII('xn--iñvalid.com')); + * // Prints an empty string + * ``` + * @since v7.4.0, v6.13.0 + */ + function domainToASCII(domain: string): string; + /** + * Returns the Unicode serialization of the `domain`. If `domain` is an invalid + * domain, the empty string is returned. + * + * It performs the inverse operation to {@link domainToASCII}. + * + * This feature is only available if the `node` executable was compiled with `ICU` enabled. If not, the domain names are passed through unchanged. + * + * ```js + * import url from 'url'; + * + * console.log(url.domainToUnicode('xn--espaol-zwa.com')); + * // Prints español.com + * console.log(url.domainToUnicode('xn--fiq228c.com')); + * // Prints 中文.com + * console.log(url.domainToUnicode('xn--iñvalid.com')); + * // Prints an empty string + * ``` + * @since v7.4.0, v6.13.0 + */ + function domainToUnicode(domain: string): string; + /** + * This function ensures the correct decodings of percent-encoded characters as + * well as ensuring a cross-platform valid absolute path string. + * + * ```js + * import { fileURLToPath } from 'url'; + * + * const __filename = fileURLToPath(import.meta.url); + * + * new URL('file:///C:/path/').pathname; // Incorrect: /C:/path/ + * fileURLToPath('file:///C:/path/'); // Correct: C:\path\ (Windows) + * + * new URL('file://nas/foo.txt').pathname; // Incorrect: /foo.txt + * fileURLToPath('file://nas/foo.txt'); // Correct: \\nas\foo.txt (Windows) + * + * new URL('file:///你好.txt').pathname; // Incorrect: /%E4%BD%A0%E5%A5%BD.txt + * fileURLToPath('file:///你好.txt'); // Correct: /你好.txt (POSIX) + * + * new URL('file:///hello world').pathname; // Incorrect: /hello%20world + * fileURLToPath('file:///hello world'); // Correct: /hello world (POSIX) + * ``` + * @since v10.12.0 + * @param url The file URL string or URL object to convert to a path. + * @return The fully-resolved platform-specific Node.js file path. + */ + function fileURLToPath(url: string | URL): string; + /** + * This function ensures that `path` is resolved absolutely, and that the URL + * control characters are correctly encoded when converting into a File URL. + * + * ```js + * import { pathToFileURL } from 'url'; + * + * new URL('/foo#1', 'file:'); // Incorrect: file:///foo#1 + * pathToFileURL('/foo#1'); // Correct: file:///foo%231 (POSIX) + * + * new URL('/some/path%.c', 'file:'); // Incorrect: file:///some/path%.c + * pathToFileURL('/some/path%.c'); // Correct: file:///some/path%25.c (POSIX) + * ``` + * @since v10.12.0 + * @param path The path to convert to a File URL. + * @return The file URL object. + */ + function pathToFileURL(path: string): URL; + /** + * This utility function converts a URL object into an ordinary options object as + * expected by the `http.request()` and `https.request()` APIs. + * + * ```js + * import { urlToHttpOptions } from 'url'; + * const myURL = new URL('https://a:b@測試?abc#foo'); + * + * console.log(urlToHttpOptions(myURL)); + * + * { + * protocol: 'https:', + * hostname: 'xn--g6w251d', + * hash: '#foo', + * search: '?abc', + * pathname: '/', + * path: '/?abc', + * href: 'https://a:b@xn--g6w251d/?abc#foo', + * auth: 'a:b' + * } + * + * ``` + * @since v15.7.0, v14.18.0 + * @param url The `WHATWG URL` object to convert to an options object. + * @return Options object + */ + function urlToHttpOptions(url: URL): ClientRequestArgs; + interface URLFormatOptions { + auth?: boolean | undefined; + fragment?: boolean | undefined; + search?: boolean | undefined; + unicode?: boolean | undefined; + } + /** + * Browser-compatible `URL` class, implemented by following the WHATWG URL + * Standard. [Examples of parsed URLs](https://url.spec.whatwg.org/#example-url-parsing) may be found in the Standard itself. + * The `URL` class is also available on the global object. + * + * In accordance with browser conventions, all properties of `URL` objects + * are implemented as getters and setters on the class prototype, rather than as + * data properties on the object itself. Thus, unlike `legacy urlObject` s, + * using the `delete` keyword on any properties of `URL` objects (e.g. `delete myURL.protocol`, `delete myURL.pathname`, etc) has no effect but will still + * return `true`. + * @since v7.0.0, v6.13.0 + */ + class URL { + /** + * Creates a `'blob:nodedata:...'` URL string that represents the given `Blob` object and can be used to retrieve the `Blob` later. + * + * ```js + * const { + * Blob, + * resolveObjectURL, + * } = require('buffer'); + * + * const blob = new Blob(['hello']); + * const id = URL.createObjectURL(blob); + * + * // later... + * + * const otherBlob = resolveObjectURL(id); + * console.log(otherBlob.size); + * ``` + * + * The data stored by the registered `Blob` will be retained in memory until`URL.revokeObjectURL()` is called to remove it. + * + * `Blob` objects are registered within the current thread. If using Worker + * Threads, `Blob` objects registered within one Worker will not be available + * to other workers or the main thread. + * @since v16.7.0 + * @experimental + */ + static createObjectURL(blob: Blob): string; + /** + * Removes the stored `Blob` identified by the given ID. + * @since v16.7.0 + * @experimental + * @param id A `'blob:nodedata:...` URL string returned by a prior call to `URL.createObjectURL()`. + */ + static revokeObjectURL(objectUrl: string): void; + constructor(input: string, base?: string | URL); + /** + * Gets and sets the fragment portion of the URL. + * + * ```js + * const myURL = new URL('https://example.org/foo#bar'); + * console.log(myURL.hash); + * // Prints #bar + * + * myURL.hash = 'baz'; + * console.log(myURL.href); + * // Prints https://example.org/foo#baz + * ``` + * + * Invalid URL characters included in the value assigned to the `hash` property + * are `percent-encoded`. The selection of which characters to + * percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. + */ + hash: string; + /** + * Gets and sets the host portion of the URL. + * + * ```js + * const myURL = new URL('https://example.org:81/foo'); + * console.log(myURL.host); + * // Prints example.org:81 + * + * myURL.host = 'example.com:82'; + * console.log(myURL.href); + * // Prints https://example.com:82/foo + * ``` + * + * Invalid host values assigned to the `host` property are ignored. + */ + host: string; + /** + * Gets and sets the host name portion of the URL. The key difference between`url.host` and `url.hostname` is that `url.hostname` does _not_ include the + * port. + * + * ```js + * const myURL = new URL('https://example.org:81/foo'); + * console.log(myURL.hostname); + * // Prints example.org + * + * // Setting the hostname does not change the port + * myURL.hostname = 'example.com:82'; + * console.log(myURL.href); + * // Prints https://example.com:81/foo + * + * // Use myURL.host to change the hostname and port + * myURL.host = 'example.org:82'; + * console.log(myURL.href); + * // Prints https://example.org:82/foo + * ``` + * + * Invalid host name values assigned to the `hostname` property are ignored. + */ + hostname: string; + /** + * Gets and sets the serialized URL. + * + * ```js + * const myURL = new URL('https://example.org/foo'); + * console.log(myURL.href); + * // Prints https://example.org/foo + * + * myURL.href = 'https://example.com/bar'; + * console.log(myURL.href); + * // Prints https://example.com/bar + * ``` + * + * Getting the value of the `href` property is equivalent to calling {@link toString}. + * + * Setting the value of this property to a new value is equivalent to creating a + * new `URL` object using `new URL(value)`. Each of the `URL`object's properties will be modified. + * + * If the value assigned to the `href` property is not a valid URL, a `TypeError`will be thrown. + */ + href: string; + /** + * Gets the read-only serialization of the URL's origin. + * + * ```js + * const myURL = new URL('https://example.org/foo/bar?baz'); + * console.log(myURL.origin); + * // Prints https://example.org + * ``` + * + * ```js + * const idnURL = new URL('https://測試'); + * console.log(idnURL.origin); + * // Prints https://xn--g6w251d + * + * console.log(idnURL.hostname); + * // Prints xn--g6w251d + * ``` + */ + readonly origin: string; + /** + * Gets and sets the password portion of the URL. + * + * ```js + * const myURL = new URL('https://abc:xyz@example.com'); + * console.log(myURL.password); + * // Prints xyz + * + * myURL.password = '123'; + * console.log(myURL.href); + * // Prints https://abc:123@example.com + * ``` + * + * Invalid URL characters included in the value assigned to the `password` property + * are `percent-encoded`. The selection of which characters to + * percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. + */ + password: string; + /** + * Gets and sets the path portion of the URL. + * + * ```js + * const myURL = new URL('https://example.org/abc/xyz?123'); + * console.log(myURL.pathname); + * // Prints /abc/xyz + * + * myURL.pathname = '/abcdef'; + * console.log(myURL.href); + * // Prints https://example.org/abcdef?123 + * ``` + * + * Invalid URL characters included in the value assigned to the `pathname`property are `percent-encoded`. The selection of which characters + * to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. + */ + pathname: string; + /** + * Gets and sets the port portion of the URL. + * + * The port value may be a number or a string containing a number in the range`0` to `65535` (inclusive). Setting the value to the default port of the`URL` objects given `protocol` will + * result in the `port` value becoming + * the empty string (`''`). + * + * The port value can be an empty string in which case the port depends on + * the protocol/scheme: + * + * + * + * Upon assigning a value to the port, the value will first be converted to a + * string using `.toString()`. + * + * If that string is invalid but it begins with a number, the leading number is + * assigned to `port`. + * If the number lies outside the range denoted above, it is ignored. + * + * ```js + * const myURL = new URL('https://example.org:8888'); + * console.log(myURL.port); + * // Prints 8888 + * + * // Default ports are automatically transformed to the empty string + * // (HTTPS protocol's default port is 443) + * myURL.port = '443'; + * console.log(myURL.port); + * // Prints the empty string + * console.log(myURL.href); + * // Prints https://example.org/ + * + * myURL.port = 1234; + * console.log(myURL.port); + * // Prints 1234 + * console.log(myURL.href); + * // Prints https://example.org:1234/ + * + * // Completely invalid port strings are ignored + * myURL.port = 'abcd'; + * console.log(myURL.port); + * // Prints 1234 + * + * // Leading numbers are treated as a port number + * myURL.port = '5678abcd'; + * console.log(myURL.port); + * // Prints 5678 + * + * // Non-integers are truncated + * myURL.port = 1234.5678; + * console.log(myURL.port); + * // Prints 1234 + * + * // Out-of-range numbers which are not represented in scientific notation + * // will be ignored. + * myURL.port = 1e10; // 10000000000, will be range-checked as described below + * console.log(myURL.port); + * // Prints 1234 + * ``` + * + * Numbers which contain a decimal point, + * such as floating-point numbers or numbers in scientific notation, + * are not an exception to this rule. + * Leading numbers up to the decimal point will be set as the URL's port, + * assuming they are valid: + * + * ```js + * myURL.port = 4.567e21; + * console.log(myURL.port); + * // Prints 4 (because it is the leading number in the string '4.567e21') + * ``` + */ + port: string; + /** + * Gets and sets the protocol portion of the URL. + * + * ```js + * const myURL = new URL('https://example.org'); + * console.log(myURL.protocol); + * // Prints https: + * + * myURL.protocol = 'ftp'; + * console.log(myURL.href); + * // Prints ftp://example.org/ + * ``` + * + * Invalid URL protocol values assigned to the `protocol` property are ignored. + */ + protocol: string; + /** + * Gets and sets the serialized query portion of the URL. + * + * ```js + * const myURL = new URL('https://example.org/abc?123'); + * console.log(myURL.search); + * // Prints ?123 + * + * myURL.search = 'abc=xyz'; + * console.log(myURL.href); + * // Prints https://example.org/abc?abc=xyz + * ``` + * + * Any invalid URL characters appearing in the value assigned the `search`property will be `percent-encoded`. The selection of which + * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. + */ + search: string; + /** + * Gets the `URLSearchParams` object representing the query parameters of the + * URL. This property is read-only but the `URLSearchParams` object it provides + * can be used to mutate the URL instance; to replace the entirety of query + * parameters of the URL, use the {@link search} setter. See `URLSearchParams` documentation for details. + * + * Use care when using `.searchParams` to modify the `URL` because, + * per the WHATWG specification, the `URLSearchParams` object uses + * different rules to determine which characters to percent-encode. For + * instance, the `URL` object will not percent encode the ASCII tilde (`~`) + * character, while `URLSearchParams` will always encode it: + * + * ```js + * const myUrl = new URL('https://example.org/abc?foo=~bar'); + * + * console.log(myUrl.search); // prints ?foo=~bar + * + * // Modify the URL via searchParams... + * myUrl.searchParams.sort(); + * + * console.log(myUrl.search); // prints ?foo=%7Ebar + * ``` + */ + readonly searchParams: URLSearchParams; + /** + * Gets and sets the username portion of the URL. + * + * ```js + * const myURL = new URL('https://abc:xyz@example.com'); + * console.log(myURL.username); + * // Prints abc + * + * myURL.username = '123'; + * console.log(myURL.href); + * // Prints https://123:xyz@example.com/ + * ``` + * + * Any invalid URL characters appearing in the value assigned the `username`property will be `percent-encoded`. The selection of which + * characters to percent-encode may vary somewhat from what the {@link parse} and {@link format} methods would produce. + */ + username: string; + /** + * The `toString()` method on the `URL` object returns the serialized URL. The + * value returned is equivalent to that of {@link href} and {@link toJSON}. + */ + toString(): string; + /** + * The `toJSON()` method on the `URL` object returns the serialized URL. The + * value returned is equivalent to that of {@link href} and {@link toString}. + * + * This method is automatically called when an `URL` object is serialized + * with [`JSON.stringify()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify). + * + * ```js + * const myURLs = [ + * new URL('https://www.example.com'), + * new URL('https://test.example.org'), + * ]; + * console.log(JSON.stringify(myURLs)); + * // Prints ["https://www.example.com/","https://test.example.org/"] + * ``` + */ + toJSON(): string; + } + /** + * The `URLSearchParams` API provides read and write access to the query of a`URL`. The `URLSearchParams` class can also be used standalone with one of the + * four following constructors. + * The `URLSearchParams` class is also available on the global object. + * + * The WHATWG `URLSearchParams` interface and the `querystring` module have + * similar purpose, but the purpose of the `querystring` module is more + * general, as it allows the customization of delimiter characters (`&` and `=`). + * On the other hand, this API is designed purely for URL query strings. + * + * ```js + * const myURL = new URL('https://example.org/?abc=123'); + * console.log(myURL.searchParams.get('abc')); + * // Prints 123 + * + * myURL.searchParams.append('abc', 'xyz'); + * console.log(myURL.href); + * // Prints https://example.org/?abc=123&abc=xyz + * + * myURL.searchParams.delete('abc'); + * myURL.searchParams.set('a', 'b'); + * console.log(myURL.href); + * // Prints https://example.org/?a=b + * + * const newSearchParams = new URLSearchParams(myURL.searchParams); + * // The above is equivalent to + * // const newSearchParams = new URLSearchParams(myURL.search); + * + * newSearchParams.append('a', 'c'); + * console.log(myURL.href); + * // Prints https://example.org/?a=b + * console.log(newSearchParams.toString()); + * // Prints a=b&a=c + * + * // newSearchParams.toString() is implicitly called + * myURL.search = newSearchParams; + * console.log(myURL.href); + * // Prints https://example.org/?a=b&a=c + * newSearchParams.delete('a'); + * console.log(myURL.href); + * // Prints https://example.org/?a=b&a=c + * ``` + * @since v7.5.0, v6.13.0 + */ + class URLSearchParams implements Iterable<[string, string]> { + constructor(init?: URLSearchParams | string | Record> | Iterable<[string, string]> | ReadonlyArray<[string, string]>); + /** + * Append a new name-value pair to the query string. + */ + append(name: string, value: string): void; + /** + * Remove all name-value pairs whose name is `name`. + */ + delete(name: string): void; + /** + * Returns an ES6 `Iterator` over each of the name-value pairs in the query. + * Each item of the iterator is a JavaScript `Array`. The first item of the `Array`is the `name`, the second item of the `Array` is the `value`. + * + * Alias for `urlSearchParams[@@iterator]()`. + */ + entries(): IterableIterator<[string, string]>; + /** + * Iterates over each name-value pair in the query and invokes the given function. + * + * ```js + * const myURL = new URL('https://example.org/?a=b&c=d'); + * myURL.searchParams.forEach((value, name, searchParams) => { + * console.log(name, value, myURL.searchParams === searchParams); + * }); + * // Prints: + * // a b true + * // c d true + * ``` + * @param fn Invoked for each name-value pair in the query + * @param thisArg To be used as `this` value for when `fn` is called + */ + forEach(callback: (this: TThis, value: string, name: string, searchParams: URLSearchParams) => void, thisArg?: TThis): void; + /** + * Returns the value of the first name-value pair whose name is `name`. If there + * are no such pairs, `null` is returned. + * @return or `null` if there is no name-value pair with the given `name`. + */ + get(name: string): string | null; + /** + * Returns the values of all name-value pairs whose name is `name`. If there are + * no such pairs, an empty array is returned. + */ + getAll(name: string): string[]; + /** + * Returns `true` if there is at least one name-value pair whose name is `name`. + */ + has(name: string): boolean; + /** + * Returns an ES6 `Iterator` over the names of each name-value pair. + * + * ```js + * const params = new URLSearchParams('foo=bar&foo=baz'); + * for (const name of params.keys()) { + * console.log(name); + * } + * // Prints: + * // foo + * // foo + * ``` + */ + keys(): IterableIterator; + /** + * Sets the value in the `URLSearchParams` object associated with `name` to`value`. If there are any pre-existing name-value pairs whose names are `name`, + * set the first such pair's value to `value` and remove all others. If not, + * append the name-value pair to the query string. + * + * ```js + * const params = new URLSearchParams(); + * params.append('foo', 'bar'); + * params.append('foo', 'baz'); + * params.append('abc', 'def'); + * console.log(params.toString()); + * // Prints foo=bar&foo=baz&abc=def + * + * params.set('foo', 'def'); + * params.set('xyz', 'opq'); + * console.log(params.toString()); + * // Prints foo=def&abc=def&xyz=opq + * ``` + */ + set(name: string, value: string): void; + /** + * Sort all existing name-value pairs in-place by their names. Sorting is done + * with a [stable sorting algorithm](https://en.wikipedia.org/wiki/Sorting_algorithm#Stability), so relative order between name-value pairs + * with the same name is preserved. + * + * This method can be used, in particular, to increase cache hits. + * + * ```js + * const params = new URLSearchParams('query[]=abc&type=search&query[]=123'); + * params.sort(); + * console.log(params.toString()); + * // Prints query%5B%5D=abc&query%5B%5D=123&type=search + * ``` + * @since v7.7.0, v6.13.0 + */ + sort(): void; + /** + * Returns the search parameters serialized as a string, with characters + * percent-encoded where necessary. + */ + toString(): string; + /** + * Returns an ES6 `Iterator` over the values of each name-value pair. + */ + values(): IterableIterator; + [Symbol.iterator](): IterableIterator<[string, string]>; + } + + import { URL as _URL, URLSearchParams as _URLSearchParams } from 'url'; + global { + interface URLSearchParams extends _URLSearchParams {} + interface URL extends _URL {} + interface Global { + URL: typeof _URL; + URLSearchParams: typeof _URLSearchParams; + } + /** + * `URL` class is a global reference for `require('url').URL` + * https://nodejs.org/api/url.html#the-whatwg-url-api + * @since v10.0.0 + */ + var URL: + // For compatibility with "dom" and "webworker" URL declarations + typeof globalThis extends { onmessage: any, URL: infer URL } + ? URL + : typeof _URL; + /** + * `URLSearchParams` class is a global reference for `require('url').URLSearchParams` + * https://nodejs.org/api/url.html#class-urlsearchparams + * @since v10.0.0 + */ + var URLSearchParams: + // For compatibility with "dom" and "webworker" URLSearchParams declarations + typeof globalThis extends { onmessage: any, URLSearchParams: infer URLSearchParams } + ? URLSearchParams + : typeof _URLSearchParams; + } +} +declare module 'node:url' { + export * from 'url'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/util.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/util.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..575391e3f9b9d5261b5678e36d415b496f0f367d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/util.d.ts" @@ -0,0 +1,1594 @@ +/** + * The `util` module supports the needs of Node.js internal APIs. Many of the + * utilities are useful for application and module developers as well. To access + * it: + * + * ```js + * const util = require('util'); + * ``` + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/util.js) + */ +declare module 'util' { + import * as types from 'node:util/types'; + export interface InspectOptions { + /** + * If set to `true`, getters are going to be + * inspected as well. If set to `'get'` only getters without setter are going + * to be inspected. If set to `'set'` only getters having a corresponding + * setter are going to be inspected. This might cause side effects depending on + * the getter function. + * @default `false` + */ + getters?: 'get' | 'set' | boolean | undefined; + showHidden?: boolean | undefined; + /** + * @default 2 + */ + depth?: number | null | undefined; + colors?: boolean | undefined; + customInspect?: boolean | undefined; + showProxy?: boolean | undefined; + maxArrayLength?: number | null | undefined; + /** + * Specifies the maximum number of characters to + * include when formatting. Set to `null` or `Infinity` to show all elements. + * Set to `0` or negative to show no characters. + * @default 10000 + */ + maxStringLength?: number | null | undefined; + breakLength?: number | undefined; + /** + * Setting this to `false` causes each object key + * to be displayed on a new line. It will also add new lines to text that is + * longer than `breakLength`. If set to a number, the most `n` inner elements + * are united on a single line as long as all properties fit into + * `breakLength`. Short array elements are also grouped together. Note that no + * text will be reduced below 16 characters, no matter the `breakLength` size. + * For more information, see the example below. + * @default `true` + */ + compact?: boolean | number | undefined; + sorted?: boolean | ((a: string, b: string) => number) | undefined; + } + export type Style = 'special' | 'number' | 'bigint' | 'boolean' | 'undefined' | 'null' | 'string' | 'symbol' | 'date' | 'regexp' | 'module'; + export type CustomInspectFunction = (depth: number, options: InspectOptionsStylized) => string; + export interface InspectOptionsStylized extends InspectOptions { + stylize(text: string, styleType: Style): string; + } + /** + * The `util.format()` method returns a formatted string using the first argument + * as a `printf`\-like format string which can contain zero or more format + * specifiers. Each specifier is replaced with the converted value from the + * corresponding argument. Supported specifiers are: + * + * If a specifier does not have a corresponding argument, it is not replaced: + * + * ```js + * util.format('%s:%s', 'foo'); + * // Returns: 'foo:%s' + * ``` + * + * Values that are not part of the format string are formatted using`util.inspect()` if their type is not `string`. + * + * If there are more arguments passed to the `util.format()` method than the + * number of specifiers, the extra arguments are concatenated to the returned + * string, separated by spaces: + * + * ```js + * util.format('%s:%s', 'foo', 'bar', 'baz'); + * // Returns: 'foo:bar baz' + * ``` + * + * If the first argument does not contain a valid format specifier, `util.format()`returns a string that is the concatenation of all arguments separated by spaces: + * + * ```js + * util.format(1, 2, 3); + * // Returns: '1 2 3' + * ``` + * + * If only one argument is passed to `util.format()`, it is returned as it is + * without any formatting: + * + * ```js + * util.format('%% %s'); + * // Returns: '%% %s' + * ``` + * + * `util.format()` is a synchronous method that is intended as a debugging tool. + * Some input values can have a significant performance overhead that can block the + * event loop. Use this function with care and never in a hot code path. + * @since v0.5.3 + * @param format A `printf`-like format string. + */ + export function format(format?: any, ...param: any[]): string; + /** + * This function is identical to {@link format}, except in that it takes + * an `inspectOptions` argument which specifies options that are passed along to {@link inspect}. + * + * ```js + * util.formatWithOptions({ colors: true }, 'See object %O', { foo: 42 }); + * // Returns 'See object { foo: 42 }', where `42` is colored as a number + * // when printed to a terminal. + * ``` + * @since v10.0.0 + */ + export function formatWithOptions(inspectOptions: InspectOptions, format?: any, ...param: any[]): string; + /** + * Returns the string name for a numeric error code that comes from a Node.js API. + * The mapping between error codes and error names is platform-dependent. + * See `Common System Errors` for the names of common errors. + * + * ```js + * fs.access('file/that/does/not/exist', (err) => { + * const name = util.getSystemErrorName(err.errno); + * console.error(name); // ENOENT + * }); + * ``` + * @since v9.7.0 + */ + export function getSystemErrorName(err: number): string; + /** + * Returns a Map of all system error codes available from the Node.js API. + * The mapping between error codes and error names is platform-dependent. + * See `Common System Errors` for the names of common errors. + * + * ```js + * fs.access('file/that/does/not/exist', (err) => { + * const errorMap = util.getSystemErrorMap(); + * const name = errorMap.get(err.errno); + * console.error(name); // ENOENT + * }); + * ``` + * @since v16.0.0, v14.17.0 + */ + export function getSystemErrorMap(): Map; + /** + * The `util.log()` method prints the given `string` to `stdout` with an included + * timestamp. + * + * ```js + * const util = require('util'); + * + * util.log('Timestamped message.'); + * ``` + * @since v0.3.0 + * @deprecated Since v6.0.0 - Use a third party module instead. + */ + export function log(string: string): void; + /** + * Returns the `string` after replacing any surrogate code points + * (or equivalently, any unpaired surrogate code units) with the + * Unicode "replacement character" U+FFFD. + * @since v16.8.0, v14.18.0 + */ + export function toUSVString(string: string): string; + /** + * The `util.inspect()` method returns a string representation of `object` that is + * intended for debugging. The output of `util.inspect` may change at any time + * and should not be depended upon programmatically. Additional `options` may be + * passed that alter the result.`util.inspect()` will use the constructor's name and/or `@@toStringTag` to make + * an identifiable tag for an inspected value. + * + * ```js + * class Foo { + * get [Symbol.toStringTag]() { + * return 'bar'; + * } + * } + * + * class Bar {} + * + * const baz = Object.create(null, { [Symbol.toStringTag]: { value: 'foo' } }); + * + * util.inspect(new Foo()); // 'Foo [bar] {}' + * util.inspect(new Bar()); // 'Bar {}' + * util.inspect(baz); // '[foo] {}' + * ``` + * + * Circular references point to their anchor by using a reference index: + * + * ```js + * const { inspect } = require('util'); + * + * const obj = {}; + * obj.a = [obj]; + * obj.b = {}; + * obj.b.inner = obj.b; + * obj.b.obj = obj; + * + * console.log(inspect(obj)); + * // { + * // a: [ [Circular *1] ], + * // b: { inner: [Circular *2], obj: [Circular *1] } + * // } + * ``` + * + * The following example inspects all properties of the `util` object: + * + * ```js + * const util = require('util'); + * + * console.log(util.inspect(util, { showHidden: true, depth: null })); + * ``` + * + * The following example highlights the effect of the `compact` option: + * + * ```js + * const util = require('util'); + * + * const o = { + * a: [1, 2, [[ + * 'Lorem ipsum dolor sit amet,\nconsectetur adipiscing elit, sed do ' + + * 'eiusmod \ntempor incididunt ut labore et dolore magna aliqua.', + * 'test', + * 'foo']], 4], + * b: new Map([['za', 1], ['zb', 'test']]) + * }; + * console.log(util.inspect(o, { compact: true, depth: 5, breakLength: 80 })); + * + * // { a: + * // [ 1, + * // 2, + * // [ [ 'Lorem ipsum dolor sit amet,\nconsectetur [...]', // A long line + * // 'test', + * // 'foo' ] ], + * // 4 ], + * // b: Map(2) { 'za' => 1, 'zb' => 'test' } } + * + * // Setting `compact` to false or an integer creates more reader friendly output. + * console.log(util.inspect(o, { compact: false, depth: 5, breakLength: 80 })); + * + * // { + * // a: [ + * // 1, + * // 2, + * // [ + * // [ + * // 'Lorem ipsum dolor sit amet,\n' + + * // 'consectetur adipiscing elit, sed do eiusmod \n' + + * // 'tempor incididunt ut labore et dolore magna aliqua.', + * // 'test', + * // 'foo' + * // ] + * // ], + * // 4 + * // ], + * // b: Map(2) { + * // 'za' => 1, + * // 'zb' => 'test' + * // } + * // } + * + * // Setting `breakLength` to e.g. 150 will print the "Lorem ipsum" text in a + * // single line. + * ``` + * + * The `showHidden` option allows [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) and + * [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) entries to be + * inspected. If there are more entries than `maxArrayLength`, there is no + * guarantee which entries are displayed. That means retrieving the same [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) entries twice may + * result in different output. Furthermore, entries + * with no remaining strong references may be garbage collected at any time. + * + * ```js + * const { inspect } = require('util'); + * + * const obj = { a: 1 }; + * const obj2 = { b: 2 }; + * const weakSet = new WeakSet([obj, obj2]); + * + * console.log(inspect(weakSet, { showHidden: true })); + * // WeakSet { { a: 1 }, { b: 2 } } + * ``` + * + * The `sorted` option ensures that an object's property insertion order does not + * impact the result of `util.inspect()`. + * + * ```js + * const { inspect } = require('util'); + * const assert = require('assert'); + * + * const o1 = { + * b: [2, 3, 1], + * a: '`a` comes before `b`', + * c: new Set([2, 3, 1]) + * }; + * console.log(inspect(o1, { sorted: true })); + * // { a: '`a` comes before `b`', b: [ 2, 3, 1 ], c: Set(3) { 1, 2, 3 } } + * console.log(inspect(o1, { sorted: (a, b) => b.localeCompare(a) })); + * // { c: Set(3) { 3, 2, 1 }, b: [ 2, 3, 1 ], a: '`a` comes before `b`' } + * + * const o2 = { + * c: new Set([2, 1, 3]), + * a: '`a` comes before `b`', + * b: [2, 3, 1] + * }; + * assert.strict.equal( + * inspect(o1, { sorted: true }), + * inspect(o2, { sorted: true }) + * ); + * ``` + * + * `util.inspect()` is a synchronous method intended for debugging. Its maximum + * output length is approximately 128 MB. Inputs that result in longer output will + * be truncated. + * @since v0.3.0 + * @param object Any JavaScript primitive or `Object`. + * @return The representation of `object`. + */ + export function inspect(object: any, showHidden?: boolean, depth?: number | null, color?: boolean): string; + export function inspect(object: any, options?: InspectOptions): string; + export namespace inspect { + let colors: NodeJS.Dict<[number, number]>; + let styles: { + [K in Style]: string; + }; + let defaultOptions: InspectOptions; + /** + * Allows changing inspect settings from the repl. + */ + let replDefaults: InspectOptions; + /** + * That can be used to declare custom inspect functions. + */ + const custom: unique symbol; + } + /** + * Alias for [`Array.isArray()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray). + * + * Returns `true` if the given `object` is an `Array`. Otherwise, returns `false`. + * + * ```js + * const util = require('util'); + * + * util.isArray([]); + * // Returns: true + * util.isArray(new Array()); + * // Returns: true + * util.isArray({}); + * // Returns: false + * ``` + * @since v0.6.0 + * @deprecated Since v4.0.0 - Use `isArray` instead. + */ + export function isArray(object: unknown): object is unknown[]; + /** + * Returns `true` if the given `object` is a `RegExp`. Otherwise, returns `false`. + * + * ```js + * const util = require('util'); + * + * util.isRegExp(/some regexp/); + * // Returns: true + * util.isRegExp(new RegExp('another regexp')); + * // Returns: true + * util.isRegExp({}); + * // Returns: false + * ``` + * @since v0.6.0 + * @deprecated Since v4.0.0 - Deprecated + */ + export function isRegExp(object: unknown): object is RegExp; + /** + * Returns `true` if the given `object` is a `Date`. Otherwise, returns `false`. + * + * ```js + * const util = require('util'); + * + * util.isDate(new Date()); + * // Returns: true + * util.isDate(Date()); + * // false (without 'new' returns a String) + * util.isDate({}); + * // Returns: false + * ``` + * @since v0.6.0 + * @deprecated Since v4.0.0 - Use {@link types.isDate} instead. + */ + export function isDate(object: unknown): object is Date; + /** + * Returns `true` if the given `object` is an `Error`. Otherwise, returns`false`. + * + * ```js + * const util = require('util'); + * + * util.isError(new Error()); + * // Returns: true + * util.isError(new TypeError()); + * // Returns: true + * util.isError({ name: 'Error', message: 'an error occurred' }); + * // Returns: false + * ``` + * + * This method relies on `Object.prototype.toString()` behavior. It is + * possible to obtain an incorrect result when the `object` argument manipulates`@@toStringTag`. + * + * ```js + * const util = require('util'); + * const obj = { name: 'Error', message: 'an error occurred' }; + * + * util.isError(obj); + * // Returns: false + * obj[Symbol.toStringTag] = 'Error'; + * util.isError(obj); + * // Returns: true + * ``` + * @since v0.6.0 + * @deprecated Since v4.0.0 - Use {@link types.isNativeError} instead. + */ + export function isError(object: unknown): object is Error; + /** + * Usage of `util.inherits()` is discouraged. Please use the ES6 `class` and`extends` keywords to get language level inheritance support. Also note + * that the two styles are [semantically incompatible](https://github.com/nodejs/node/issues/4179). + * + * Inherit the prototype methods from one [constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/constructor) into another. The + * prototype of `constructor` will be set to a new object created from`superConstructor`. + * + * This mainly adds some input validation on top of`Object.setPrototypeOf(constructor.prototype, superConstructor.prototype)`. + * As an additional convenience, `superConstructor` will be accessible + * through the `constructor.super_` property. + * + * ```js + * const util = require('util'); + * const EventEmitter = require('events'); + * + * function MyStream() { + * EventEmitter.call(this); + * } + * + * util.inherits(MyStream, EventEmitter); + * + * MyStream.prototype.write = function(data) { + * this.emit('data', data); + * }; + * + * const stream = new MyStream(); + * + * console.log(stream instanceof EventEmitter); // true + * console.log(MyStream.super_ === EventEmitter); // true + * + * stream.on('data', (data) => { + * console.log(`Received data: "${data}"`); + * }); + * stream.write('It works!'); // Received data: "It works!" + * ``` + * + * ES6 example using `class` and `extends`: + * + * ```js + * const EventEmitter = require('events'); + * + * class MyStream extends EventEmitter { + * write(data) { + * this.emit('data', data); + * } + * } + * + * const stream = new MyStream(); + * + * stream.on('data', (data) => { + * console.log(`Received data: "${data}"`); + * }); + * stream.write('With ES6'); + * ``` + * @since v0.3.0 + * @deprecated Legacy: Use ES2015 class syntax and `extends` keyword instead. + */ + export function inherits(constructor: unknown, superConstructor: unknown): void; + export type DebugLoggerFunction = (msg: string, ...param: unknown[]) => void; + export interface DebugLogger extends DebugLoggerFunction { + enabled: boolean; + } + /** + * The `util.debuglog()` method is used to create a function that conditionally + * writes debug messages to `stderr` based on the existence of the `NODE_DEBUG`environment variable. If the `section` name appears within the value of that + * environment variable, then the returned function operates similar to `console.error()`. If not, then the returned function is a no-op. + * + * ```js + * const util = require('util'); + * const debuglog = util.debuglog('foo'); + * + * debuglog('hello from foo [%d]', 123); + * ``` + * + * If this program is run with `NODE_DEBUG=foo` in the environment, then + * it will output something like: + * + * ```console + * FOO 3245: hello from foo [123] + * ``` + * + * where `3245` is the process id. If it is not run with that + * environment variable set, then it will not print anything. + * + * The `section` supports wildcard also: + * + * ```js + * const util = require('util'); + * const debuglog = util.debuglog('foo-bar'); + * + * debuglog('hi there, it\'s foo-bar [%d]', 2333); + * ``` + * + * if it is run with `NODE_DEBUG=foo*` in the environment, then it will output + * something like: + * + * ```console + * FOO-BAR 3257: hi there, it's foo-bar [2333] + * ``` + * + * Multiple comma-separated `section` names may be specified in the `NODE_DEBUG`environment variable: `NODE_DEBUG=fs,net,tls`. + * + * The optional `callback` argument can be used to replace the logging function + * with a different function that doesn't have any initialization or + * unnecessary wrapping. + * + * ```js + * const util = require('util'); + * let debuglog = util.debuglog('internals', (debug) => { + * // Replace with a logging function that optimizes out + * // testing if the section is enabled + * debuglog = debug; + * }); + * ``` + * @since v0.11.3 + * @param section A string identifying the portion of the application for which the `debuglog` function is being created. + * @param callback A callback invoked the first time the logging function is called with a function argument that is a more optimized logging function. + * @return The logging function + */ + export function debuglog(section: string, callback?: (fn: DebugLoggerFunction) => void): DebugLogger; + export const debug: typeof debuglog; + /** + * Returns `true` if the given `object` is a `Boolean`. Otherwise, returns `false`. + * + * ```js + * const util = require('util'); + * + * util.isBoolean(1); + * // Returns: false + * util.isBoolean(0); + * // Returns: false + * util.isBoolean(false); + * // Returns: true + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `typeof value === 'boolean'` instead. + */ + export function isBoolean(object: unknown): object is boolean; + /** + * Returns `true` if the given `object` is a `Buffer`. Otherwise, returns `false`. + * + * ```js + * const util = require('util'); + * + * util.isBuffer({ length: 0 }); + * // Returns: false + * util.isBuffer([]); + * // Returns: false + * util.isBuffer(Buffer.from('hello world')); + * // Returns: true + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `isBuffer` instead. + */ + export function isBuffer(object: unknown): object is Buffer; + /** + * Returns `true` if the given `object` is a `Function`. Otherwise, returns`false`. + * + * ```js + * const util = require('util'); + * + * function Foo() {} + * const Bar = () => {}; + * + * util.isFunction({}); + * // Returns: false + * util.isFunction(Foo); + * // Returns: true + * util.isFunction(Bar); + * // Returns: true + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `typeof value === 'function'` instead. + */ + export function isFunction(object: unknown): boolean; + /** + * Returns `true` if the given `object` is strictly `null`. Otherwise, returns`false`. + * + * ```js + * const util = require('util'); + * + * util.isNull(0); + * // Returns: false + * util.isNull(undefined); + * // Returns: false + * util.isNull(null); + * // Returns: true + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `value === null` instead. + */ + export function isNull(object: unknown): object is null; + /** + * Returns `true` if the given `object` is `null` or `undefined`. Otherwise, + * returns `false`. + * + * ```js + * const util = require('util'); + * + * util.isNullOrUndefined(0); + * // Returns: false + * util.isNullOrUndefined(undefined); + * // Returns: true + * util.isNullOrUndefined(null); + * // Returns: true + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `value === undefined || value === null` instead. + */ + export function isNullOrUndefined(object: unknown): object is null | undefined; + /** + * Returns `true` if the given `object` is a `Number`. Otherwise, returns `false`. + * + * ```js + * const util = require('util'); + * + * util.isNumber(false); + * // Returns: false + * util.isNumber(Infinity); + * // Returns: true + * util.isNumber(0); + * // Returns: true + * util.isNumber(NaN); + * // Returns: true + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `typeof value === 'number'` instead. + */ + export function isNumber(object: unknown): object is number; + /** + * Returns `true` if the given `object` is strictly an `Object`**and** not a`Function` (even though functions are objects in JavaScript). + * Otherwise, returns `false`. + * + * ```js + * const util = require('util'); + * + * util.isObject(5); + * // Returns: false + * util.isObject(null); + * // Returns: false + * util.isObject({}); + * // Returns: true + * util.isObject(() => {}); + * // Returns: false + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Deprecated: Use `value !== null && typeof value === 'object'` instead. + */ + export function isObject(object: unknown): boolean; + /** + * Returns `true` if the given `object` is a primitive type. Otherwise, returns`false`. + * + * ```js + * const util = require('util'); + * + * util.isPrimitive(5); + * // Returns: true + * util.isPrimitive('foo'); + * // Returns: true + * util.isPrimitive(false); + * // Returns: true + * util.isPrimitive(null); + * // Returns: true + * util.isPrimitive(undefined); + * // Returns: true + * util.isPrimitive({}); + * // Returns: false + * util.isPrimitive(() => {}); + * // Returns: false + * util.isPrimitive(/^$/); + * // Returns: false + * util.isPrimitive(new Date()); + * // Returns: false + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `(typeof value !== 'object' && typeof value !== 'function') || value === null` instead. + */ + export function isPrimitive(object: unknown): boolean; + /** + * Returns `true` if the given `object` is a `string`. Otherwise, returns `false`. + * + * ```js + * const util = require('util'); + * + * util.isString(''); + * // Returns: true + * util.isString('foo'); + * // Returns: true + * util.isString(String('foo')); + * // Returns: true + * util.isString(5); + * // Returns: false + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `typeof value === 'string'` instead. + */ + export function isString(object: unknown): object is string; + /** + * Returns `true` if the given `object` is a `Symbol`. Otherwise, returns `false`. + * + * ```js + * const util = require('util'); + * + * util.isSymbol(5); + * // Returns: false + * util.isSymbol('foo'); + * // Returns: false + * util.isSymbol(Symbol('foo')); + * // Returns: true + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `typeof value === 'symbol'` instead. + */ + export function isSymbol(object: unknown): object is symbol; + /** + * Returns `true` if the given `object` is `undefined`. Otherwise, returns `false`. + * + * ```js + * const util = require('util'); + * + * const foo = undefined; + * util.isUndefined(5); + * // Returns: false + * util.isUndefined(foo); + * // Returns: true + * util.isUndefined(null); + * // Returns: false + * ``` + * @since v0.11.5 + * @deprecated Since v4.0.0 - Use `value === undefined` instead. + */ + export function isUndefined(object: unknown): object is undefined; + /** + * The `util.deprecate()` method wraps `fn` (which may be a function or class) in + * such a way that it is marked as deprecated. + * + * ```js + * const util = require('util'); + * + * exports.obsoleteFunction = util.deprecate(() => { + * // Do something here. + * }, 'obsoleteFunction() is deprecated. Use newShinyFunction() instead.'); + * ``` + * + * When called, `util.deprecate()` will return a function that will emit a`DeprecationWarning` using the `'warning'` event. The warning will + * be emitted and printed to `stderr` the first time the returned function is + * called. After the warning is emitted, the wrapped function is called without + * emitting a warning. + * + * If the same optional `code` is supplied in multiple calls to `util.deprecate()`, + * the warning will be emitted only once for that `code`. + * + * ```js + * const util = require('util'); + * + * const fn1 = util.deprecate(someFunction, someMessage, 'DEP0001'); + * const fn2 = util.deprecate(someOtherFunction, someOtherMessage, 'DEP0001'); + * fn1(); // Emits a deprecation warning with code DEP0001 + * fn2(); // Does not emit a deprecation warning because it has the same code + * ``` + * + * If either the `--no-deprecation` or `--no-warnings` command-line flags are + * used, or if the `process.noDeprecation` property is set to `true`_prior_ to + * the first deprecation warning, the `util.deprecate()` method does nothing. + * + * If the `--trace-deprecation` or `--trace-warnings` command-line flags are set, + * or the `process.traceDeprecation` property is set to `true`, a warning and a + * stack trace are printed to `stderr` the first time the deprecated function is + * called. + * + * If the `--throw-deprecation` command-line flag is set, or the`process.throwDeprecation` property is set to `true`, then an exception will be + * thrown when the deprecated function is called. + * + * The `--throw-deprecation` command-line flag and `process.throwDeprecation`property take precedence over `--trace-deprecation` and`process.traceDeprecation`. + * @since v0.8.0 + * @param fn The function that is being deprecated. + * @param msg A warning message to display when the deprecated function is invoked. + * @param code A deprecation code. See the `list of deprecated APIs` for a list of codes. + * @return The deprecated function wrapped to emit a warning. + */ + export function deprecate(fn: T, msg: string, code?: string): T; + /** + * Returns `true` if there is deep strict equality between `val1` and `val2`. + * Otherwise, returns `false`. + * + * See `assert.deepStrictEqual()` for more information about deep strict + * equality. + * @since v9.0.0 + */ + export function isDeepStrictEqual(val1: unknown, val2: unknown): boolean; + /** + * Returns `str` with any ANSI escape codes removed. + * + * ```js + * console.log(util.stripVTControlCharacters('\u001B[4mvalue\u001B[0m')); + * // Prints "value" + * ``` + * @since v16.11.0 + */ + export function stripVTControlCharacters(str: string): string; + /** + * Takes an `async` function (or a function that returns a `Promise`) and returns a + * function following the error-first callback style, i.e. taking + * an `(err, value) => ...` callback as the last argument. In the callback, the + * first argument will be the rejection reason (or `null` if the `Promise`resolved), and the second argument will be the resolved value. + * + * ```js + * const util = require('util'); + * + * async function fn() { + * return 'hello world'; + * } + * const callbackFunction = util.callbackify(fn); + * + * callbackFunction((err, ret) => { + * if (err) throw err; + * console.log(ret); + * }); + * ``` + * + * Will print: + * + * ```text + * hello world + * ``` + * + * The callback is executed asynchronously, and will have a limited stack trace. + * If the callback throws, the process will emit an `'uncaughtException'` event, and if not handled will exit. + * + * Since `null` has a special meaning as the first argument to a callback, if a + * wrapped function rejects a `Promise` with a falsy value as a reason, the value + * is wrapped in an `Error` with the original value stored in a field named`reason`. + * + * ```js + * function fn() { + * return Promise.reject(null); + * } + * const callbackFunction = util.callbackify(fn); + * + * callbackFunction((err, ret) => { + * // When the Promise was rejected with `null` it is wrapped with an Error and + * // the original value is stored in `reason`. + * err && err.hasOwnProperty('reason') && err.reason === null; // true + * }); + * ``` + * @since v8.2.0 + * @param original An `async` function + * @return a callback style function + */ + export function callbackify(fn: () => Promise): (callback: (err: NodeJS.ErrnoException) => void) => void; + export function callbackify(fn: () => Promise): (callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void; + export function callbackify(fn: (arg1: T1) => Promise): (arg1: T1, callback: (err: NodeJS.ErrnoException) => void) => void; + export function callbackify(fn: (arg1: T1) => Promise): (arg1: T1, callback: (err: NodeJS.ErrnoException, result: TResult) => void) => void; + export function callbackify(fn: (arg1: T1, arg2: T2) => Promise): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException) => void) => void; + export function callbackify(fn: (arg1: T1, arg2: T2) => Promise): (arg1: T1, arg2: T2, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; + export function callbackify(fn: (arg1: T1, arg2: T2, arg3: T3) => Promise): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException) => void) => void; + export function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3) => Promise + ): (arg1: T1, arg2: T2, arg3: T3, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; + export function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException) => void) => void; + export function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; + export function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException) => void) => void; + export function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; + export function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException) => void) => void; + export function callbackify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6) => Promise + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, arg6: T6, callback: (err: NodeJS.ErrnoException | null, result: TResult) => void) => void; + export interface CustomPromisifyLegacy extends Function { + __promisify__: TCustom; + } + export interface CustomPromisifySymbol extends Function { + [promisify.custom]: TCustom; + } + export type CustomPromisify = CustomPromisifySymbol | CustomPromisifyLegacy; + /** + * Takes a function following the common error-first callback style, i.e. taking + * an `(err, value) => ...` callback as the last argument, and returns a version + * that returns promises. + * + * ```js + * const util = require('util'); + * const fs = require('fs'); + * + * const stat = util.promisify(fs.stat); + * stat('.').then((stats) => { + * // Do something with `stats` + * }).catch((error) => { + * // Handle the error. + * }); + * ``` + * + * Or, equivalently using `async function`s: + * + * ```js + * const util = require('util'); + * const fs = require('fs'); + * + * const stat = util.promisify(fs.stat); + * + * async function callStat() { + * const stats = await stat('.'); + * console.log(`This directory is owned by ${stats.uid}`); + * } + * ``` + * + * If there is an `original[util.promisify.custom]` property present, `promisify`will return its value, see `Custom promisified functions`. + * + * `promisify()` assumes that `original` is a function taking a callback as its + * final argument in all cases. If `original` is not a function, `promisify()`will throw an error. If `original` is a function but its last argument is not + * an error-first callback, it will still be passed an error-first + * callback as its last argument. + * + * Using `promisify()` on class methods or other methods that use `this` may not + * work as expected unless handled specially: + * + * ```js + * const util = require('util'); + * + * class Foo { + * constructor() { + * this.a = 42; + * } + * + * bar(callback) { + * callback(null, this.a); + * } + * } + * + * const foo = new Foo(); + * + * const naiveBar = util.promisify(foo.bar); + * // TypeError: Cannot read property 'a' of undefined + * // naiveBar().then(a => console.log(a)); + * + * naiveBar.call(foo).then((a) => console.log(a)); // '42' + * + * const bindBar = naiveBar.bind(foo); + * bindBar().then((a) => console.log(a)); // '42' + * ``` + * @since v8.0.0 + */ + export function promisify(fn: CustomPromisify): TCustom; + export function promisify(fn: (callback: (err: any, result: TResult) => void) => void): () => Promise; + export function promisify(fn: (callback: (err?: any) => void) => void): () => Promise; + export function promisify(fn: (arg1: T1, callback: (err: any, result: TResult) => void) => void): (arg1: T1) => Promise; + export function promisify(fn: (arg1: T1, callback: (err?: any) => void) => void): (arg1: T1) => Promise; + export function promisify(fn: (arg1: T1, arg2: T2, callback: (err: any, result: TResult) => void) => void): (arg1: T1, arg2: T2) => Promise; + export function promisify(fn: (arg1: T1, arg2: T2, callback: (err?: any) => void) => void): (arg1: T1, arg2: T2) => Promise; + export function promisify(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err: any, result: TResult) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise; + export function promisify(fn: (arg1: T1, arg2: T2, arg3: T3, callback: (err?: any) => void) => void): (arg1: T1, arg2: T2, arg3: T3) => Promise; + export function promisify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err: any, result: TResult) => void) => void + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise; + export function promisify(fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, callback: (err?: any) => void) => void): (arg1: T1, arg2: T2, arg3: T3, arg4: T4) => Promise; + export function promisify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err: any, result: TResult) => void) => void + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise; + export function promisify( + fn: (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5, callback: (err?: any) => void) => void + ): (arg1: T1, arg2: T2, arg3: T3, arg4: T4, arg5: T5) => Promise; + export function promisify(fn: Function): Function; + export namespace promisify { + /** + * That can be used to declare custom promisified variants of functions. + */ + const custom: unique symbol; + } + /** + * An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextDecoder` API. + * + * ```js + * const decoder = new TextDecoder('shift_jis'); + * let string = ''; + * let buffer; + * while (buffer = getNextChunkSomehow()) { + * string += decoder.decode(buffer, { stream: true }); + * } + * string += decoder.decode(); // end-of-stream + * ``` + * @since v8.3.0 + */ + export class TextDecoder { + /** + * The encoding supported by the `TextDecoder` instance. + */ + readonly encoding: string; + /** + * The value will be `true` if decoding errors result in a `TypeError` being + * thrown. + */ + readonly fatal: boolean; + /** + * The value will be `true` if the decoding result will include the byte order + * mark. + */ + readonly ignoreBOM: boolean; + constructor( + encoding?: string, + options?: { + fatal?: boolean | undefined; + ignoreBOM?: boolean | undefined; + } + ); + /** + * Decodes the `input` and returns a string. If `options.stream` is `true`, any + * incomplete byte sequences occurring at the end of the `input` are buffered + * internally and emitted after the next call to `textDecoder.decode()`. + * + * If `textDecoder.fatal` is `true`, decoding errors that occur will result in a`TypeError` being thrown. + * @param input An `ArrayBuffer`, `DataView` or `TypedArray` instance containing the encoded data. + */ + decode( + input?: NodeJS.ArrayBufferView | ArrayBuffer | null, + options?: { + stream?: boolean | undefined; + } + ): string; + } + export interface EncodeIntoResult { + /** + * The read Unicode code units of input. + */ + read: number; + /** + * The written UTF-8 bytes of output. + */ + written: number; + } + export { types }; + /** + * An implementation of the [WHATWG Encoding Standard](https://encoding.spec.whatwg.org/) `TextEncoder` API. All + * instances of `TextEncoder` only support UTF-8 encoding. + * + * ```js + * const encoder = new TextEncoder(); + * const uint8array = encoder.encode('this is some data'); + * ``` + * + * The `TextEncoder` class is also available on the global object. + * @since v8.3.0 + */ + export class TextEncoder { + /** + * The encoding supported by the `TextEncoder` instance. Always set to `'utf-8'`. + */ + readonly encoding: string; + /** + * UTF-8 encodes the `input` string and returns a `Uint8Array` containing the + * encoded bytes. + * @param [input='an empty string'] The text to encode. + */ + encode(input?: string): Uint8Array; + /** + * UTF-8 encodes the `src` string to the `dest` Uint8Array and returns an object + * containing the read Unicode code units and written UTF-8 bytes. + * + * ```js + * const encoder = new TextEncoder(); + * const src = 'this is some data'; + * const dest = new Uint8Array(10); + * const { read, written } = encoder.encodeInto(src, dest); + * ``` + * @param src The text to encode. + * @param dest The array to hold the encode result. + */ + encodeInto(src: string, dest: Uint8Array): EncodeIntoResult; + } +} +declare module 'util/types' { + export * from 'util/types'; +} +declare module 'util/types' { + import { KeyObject, webcrypto } from 'node:crypto'; + /** + * Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) or + * [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance. + * + * See also `util.types.isArrayBuffer()` and `util.types.isSharedArrayBuffer()`. + * + * ```js + * util.types.isAnyArrayBuffer(new ArrayBuffer()); // Returns true + * util.types.isAnyArrayBuffer(new SharedArrayBuffer()); // Returns true + * ``` + * @since v10.0.0 + */ + function isAnyArrayBuffer(object: unknown): object is ArrayBufferLike; + /** + * Returns `true` if the value is an `arguments` object. + * + * ```js + * function foo() { + * util.types.isArgumentsObject(arguments); // Returns true + * } + * ``` + * @since v10.0.0 + */ + function isArgumentsObject(object: unknown): object is IArguments; + /** + * Returns `true` if the value is a built-in [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) instance. + * This does _not_ include [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instances. Usually, it is + * desirable to test for both; See `util.types.isAnyArrayBuffer()` for that. + * + * ```js + * util.types.isArrayBuffer(new ArrayBuffer()); // Returns true + * util.types.isArrayBuffer(new SharedArrayBuffer()); // Returns false + * ``` + * @since v10.0.0 + */ + function isArrayBuffer(object: unknown): object is ArrayBuffer; + /** + * Returns `true` if the value is an instance of one of the [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) views, such as typed + * array objects or [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView). Equivalent to + * [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView). + * + * ```js + * util.types.isArrayBufferView(new Int8Array()); // true + * util.types.isArrayBufferView(Buffer.from('hello world')); // true + * util.types.isArrayBufferView(new DataView(new ArrayBuffer(16))); // true + * util.types.isArrayBufferView(new ArrayBuffer()); // false + * ``` + * @since v10.0.0 + */ + function isArrayBufferView(object: unknown): object is NodeJS.ArrayBufferView; + /** + * Returns `true` if the value is an [async function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function). + * This only reports back what the JavaScript engine is seeing; + * in particular, the return value may not match the original source code if + * a transpilation tool was used. + * + * ```js + * util.types.isAsyncFunction(function foo() {}); // Returns false + * util.types.isAsyncFunction(async function foo() {}); // Returns true + * ``` + * @since v10.0.0 + */ + function isAsyncFunction(object: unknown): boolean; + /** + * Returns `true` if the value is a `BigInt64Array` instance. + * + * ```js + * util.types.isBigInt64Array(new BigInt64Array()); // Returns true + * util.types.isBigInt64Array(new BigUint64Array()); // Returns false + * ``` + * @since v10.0.0 + */ + function isBigInt64Array(value: unknown): value is BigInt64Array; + /** + * Returns `true` if the value is a `BigUint64Array` instance. + * + * ```js + * util.types.isBigUint64Array(new BigInt64Array()); // Returns false + * util.types.isBigUint64Array(new BigUint64Array()); // Returns true + * ``` + * @since v10.0.0 + */ + function isBigUint64Array(value: unknown): value is BigUint64Array; + /** + * Returns `true` if the value is a boolean object, e.g. created + * by `new Boolean()`. + * + * ```js + * util.types.isBooleanObject(false); // Returns false + * util.types.isBooleanObject(true); // Returns false + * util.types.isBooleanObject(new Boolean(false)); // Returns true + * util.types.isBooleanObject(new Boolean(true)); // Returns true + * util.types.isBooleanObject(Boolean(false)); // Returns false + * util.types.isBooleanObject(Boolean(true)); // Returns false + * ``` + * @since v10.0.0 + */ + function isBooleanObject(object: unknown): object is Boolean; + /** + * Returns `true` if the value is any boxed primitive object, e.g. created + * by `new Boolean()`, `new String()` or `Object(Symbol())`. + * + * For example: + * + * ```js + * util.types.isBoxedPrimitive(false); // Returns false + * util.types.isBoxedPrimitive(new Boolean(false)); // Returns true + * util.types.isBoxedPrimitive(Symbol('foo')); // Returns false + * util.types.isBoxedPrimitive(Object(Symbol('foo'))); // Returns true + * util.types.isBoxedPrimitive(Object(BigInt(5))); // Returns true + * ``` + * @since v10.11.0 + */ + function isBoxedPrimitive(object: unknown): object is String | Number | BigInt | Boolean | Symbol; + /** + * Returns `true` if the value is a built-in [`DataView`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/DataView) instance. + * + * ```js + * const ab = new ArrayBuffer(20); + * util.types.isDataView(new DataView(ab)); // Returns true + * util.types.isDataView(new Float64Array()); // Returns false + * ``` + * + * See also [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView). + * @since v10.0.0 + */ + function isDataView(object: unknown): object is DataView; + /** + * Returns `true` if the value is a built-in [`Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date) instance. + * + * ```js + * util.types.isDate(new Date()); // Returns true + * ``` + * @since v10.0.0 + */ + function isDate(object: unknown): object is Date; + /** + * Returns `true` if the value is a native `External` value. + * + * A native `External` value is a special type of object that contains a + * raw C++ pointer (`void*`) for access from native code, and has no other + * properties. Such objects are created either by Node.js internals or native + * addons. In JavaScript, they are [frozen](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze) objects with a`null` prototype. + * + * ```c + * #include + * #include + * napi_value result; + * static napi_value MyNapi(napi_env env, napi_callback_info info) { + * int* raw = (int*) malloc(1024); + * napi_status status = napi_create_external(env, (void*) raw, NULL, NULL, &result); + * if (status != napi_ok) { + * napi_throw_error(env, NULL, "napi_create_external failed"); + * return NULL; + * } + * return result; + * } + * ... + * DECLARE_NAPI_PROPERTY("myNapi", MyNapi) + * ... + * ``` + * + * ```js + * const native = require('napi_addon.node'); + * const data = native.myNapi(); + * util.types.isExternal(data); // returns true + * util.types.isExternal(0); // returns false + * util.types.isExternal(new String('foo')); // returns false + * ``` + * + * For further information on `napi_create_external`, refer to `napi_create_external()`. + * @since v10.0.0 + */ + function isExternal(object: unknown): boolean; + /** + * Returns `true` if the value is a built-in [`Float32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float32Array) instance. + * + * ```js + * util.types.isFloat32Array(new ArrayBuffer()); // Returns false + * util.types.isFloat32Array(new Float32Array()); // Returns true + * util.types.isFloat32Array(new Float64Array()); // Returns false + * ``` + * @since v10.0.0 + */ + function isFloat32Array(object: unknown): object is Float32Array; + /** + * Returns `true` if the value is a built-in [`Float64Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Float64Array) instance. + * + * ```js + * util.types.isFloat64Array(new ArrayBuffer()); // Returns false + * util.types.isFloat64Array(new Uint8Array()); // Returns false + * util.types.isFloat64Array(new Float64Array()); // Returns true + * ``` + * @since v10.0.0 + */ + function isFloat64Array(object: unknown): object is Float64Array; + /** + * Returns `true` if the value is a generator function. + * This only reports back what the JavaScript engine is seeing; + * in particular, the return value may not match the original source code if + * a transpilation tool was used. + * + * ```js + * util.types.isGeneratorFunction(function foo() {}); // Returns false + * util.types.isGeneratorFunction(function* foo() {}); // Returns true + * ``` + * @since v10.0.0 + */ + function isGeneratorFunction(object: unknown): object is GeneratorFunction; + /** + * Returns `true` if the value is a generator object as returned from a + * built-in generator function. + * This only reports back what the JavaScript engine is seeing; + * in particular, the return value may not match the original source code if + * a transpilation tool was used. + * + * ```js + * function* foo() {} + * const generator = foo(); + * util.types.isGeneratorObject(generator); // Returns true + * ``` + * @since v10.0.0 + */ + function isGeneratorObject(object: unknown): object is Generator; + /** + * Returns `true` if the value is a built-in [`Int8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int8Array) instance. + * + * ```js + * util.types.isInt8Array(new ArrayBuffer()); // Returns false + * util.types.isInt8Array(new Int8Array()); // Returns true + * util.types.isInt8Array(new Float64Array()); // Returns false + * ``` + * @since v10.0.0 + */ + function isInt8Array(object: unknown): object is Int8Array; + /** + * Returns `true` if the value is a built-in [`Int16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int16Array) instance. + * + * ```js + * util.types.isInt16Array(new ArrayBuffer()); // Returns false + * util.types.isInt16Array(new Int16Array()); // Returns true + * util.types.isInt16Array(new Float64Array()); // Returns false + * ``` + * @since v10.0.0 + */ + function isInt16Array(object: unknown): object is Int16Array; + /** + * Returns `true` if the value is a built-in [`Int32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Int32Array) instance. + * + * ```js + * util.types.isInt32Array(new ArrayBuffer()); // Returns false + * util.types.isInt32Array(new Int32Array()); // Returns true + * util.types.isInt32Array(new Float64Array()); // Returns false + * ``` + * @since v10.0.0 + */ + function isInt32Array(object: unknown): object is Int32Array; + /** + * Returns `true` if the value is a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance. + * + * ```js + * util.types.isMap(new Map()); // Returns true + * ``` + * @since v10.0.0 + */ + function isMap(object: T | {}): object is T extends ReadonlyMap ? (unknown extends T ? never : ReadonlyMap) : Map; + /** + * Returns `true` if the value is an iterator returned for a built-in [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) instance. + * + * ```js + * const map = new Map(); + * util.types.isMapIterator(map.keys()); // Returns true + * util.types.isMapIterator(map.values()); // Returns true + * util.types.isMapIterator(map.entries()); // Returns true + * util.types.isMapIterator(map[Symbol.iterator]()); // Returns true + * ``` + * @since v10.0.0 + */ + function isMapIterator(object: unknown): boolean; + /** + * Returns `true` if the value is an instance of a [Module Namespace Object](https://tc39.github.io/ecma262/#sec-module-namespace-exotic-objects). + * + * ```js + * import * as ns from './a.js'; + * + * util.types.isModuleNamespaceObject(ns); // Returns true + * ``` + * @since v10.0.0 + */ + function isModuleNamespaceObject(value: unknown): boolean; + /** + * Returns `true` if the value is an instance of a built-in `Error` type. + * + * ```js + * util.types.isNativeError(new Error()); // Returns true + * util.types.isNativeError(new TypeError()); // Returns true + * util.types.isNativeError(new RangeError()); // Returns true + * ``` + * @since v10.0.0 + */ + function isNativeError(object: unknown): object is Error; + /** + * Returns `true` if the value is a number object, e.g. created + * by `new Number()`. + * + * ```js + * util.types.isNumberObject(0); // Returns false + * util.types.isNumberObject(new Number(0)); // Returns true + * ``` + * @since v10.0.0 + */ + function isNumberObject(object: unknown): object is Number; + /** + * Returns `true` if the value is a built-in [`Promise`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise). + * + * ```js + * util.types.isPromise(Promise.resolve(42)); // Returns true + * ``` + * @since v10.0.0 + */ + function isPromise(object: unknown): object is Promise; + /** + * Returns `true` if the value is a [`Proxy`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Proxy) instance. + * + * ```js + * const target = {}; + * const proxy = new Proxy(target, {}); + * util.types.isProxy(target); // Returns false + * util.types.isProxy(proxy); // Returns true + * ``` + * @since v10.0.0 + */ + function isProxy(object: unknown): boolean; + /** + * Returns `true` if the value is a regular expression object. + * + * ```js + * util.types.isRegExp(/abc/); // Returns true + * util.types.isRegExp(new RegExp('abc')); // Returns true + * ``` + * @since v10.0.0 + */ + function isRegExp(object: unknown): object is RegExp; + /** + * Returns `true` if the value is a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance. + * + * ```js + * util.types.isSet(new Set()); // Returns true + * ``` + * @since v10.0.0 + */ + function isSet(object: T | {}): object is T extends ReadonlySet ? (unknown extends T ? never : ReadonlySet) : Set; + /** + * Returns `true` if the value is an iterator returned for a built-in [`Set`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set) instance. + * + * ```js + * const set = new Set(); + * util.types.isSetIterator(set.keys()); // Returns true + * util.types.isSetIterator(set.values()); // Returns true + * util.types.isSetIterator(set.entries()); // Returns true + * util.types.isSetIterator(set[Symbol.iterator]()); // Returns true + * ``` + * @since v10.0.0 + */ + function isSetIterator(object: unknown): boolean; + /** + * Returns `true` if the value is a built-in [`SharedArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SharedArrayBuffer) instance. + * This does _not_ include [`ArrayBuffer`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer) instances. Usually, it is + * desirable to test for both; See `util.types.isAnyArrayBuffer()` for that. + * + * ```js + * util.types.isSharedArrayBuffer(new ArrayBuffer()); // Returns false + * util.types.isSharedArrayBuffer(new SharedArrayBuffer()); // Returns true + * ``` + * @since v10.0.0 + */ + function isSharedArrayBuffer(object: unknown): object is SharedArrayBuffer; + /** + * Returns `true` if the value is a string object, e.g. created + * by `new String()`. + * + * ```js + * util.types.isStringObject('foo'); // Returns false + * util.types.isStringObject(new String('foo')); // Returns true + * ``` + * @since v10.0.0 + */ + function isStringObject(object: unknown): object is String; + /** + * Returns `true` if the value is a symbol object, created + * by calling `Object()` on a `Symbol` primitive. + * + * ```js + * const symbol = Symbol('foo'); + * util.types.isSymbolObject(symbol); // Returns false + * util.types.isSymbolObject(Object(symbol)); // Returns true + * ``` + * @since v10.0.0 + */ + function isSymbolObject(object: unknown): object is Symbol; + /** + * Returns `true` if the value is a built-in [`TypedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray) instance. + * + * ```js + * util.types.isTypedArray(new ArrayBuffer()); // Returns false + * util.types.isTypedArray(new Uint8Array()); // Returns true + * util.types.isTypedArray(new Float64Array()); // Returns true + * ``` + * + * See also [`ArrayBuffer.isView()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer/isView). + * @since v10.0.0 + */ + function isTypedArray(object: unknown): object is NodeJS.TypedArray; + /** + * Returns `true` if the value is a built-in [`Uint8Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8Array) instance. + * + * ```js + * util.types.isUint8Array(new ArrayBuffer()); // Returns false + * util.types.isUint8Array(new Uint8Array()); // Returns true + * util.types.isUint8Array(new Float64Array()); // Returns false + * ``` + * @since v10.0.0 + */ + function isUint8Array(object: unknown): object is Uint8Array; + /** + * Returns `true` if the value is a built-in [`Uint8ClampedArray`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint8ClampedArray) instance. + * + * ```js + * util.types.isUint8ClampedArray(new ArrayBuffer()); // Returns false + * util.types.isUint8ClampedArray(new Uint8ClampedArray()); // Returns true + * util.types.isUint8ClampedArray(new Float64Array()); // Returns false + * ``` + * @since v10.0.0 + */ + function isUint8ClampedArray(object: unknown): object is Uint8ClampedArray; + /** + * Returns `true` if the value is a built-in [`Uint16Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint16Array) instance. + * + * ```js + * util.types.isUint16Array(new ArrayBuffer()); // Returns false + * util.types.isUint16Array(new Uint16Array()); // Returns true + * util.types.isUint16Array(new Float64Array()); // Returns false + * ``` + * @since v10.0.0 + */ + function isUint16Array(object: unknown): object is Uint16Array; + /** + * Returns `true` if the value is a built-in [`Uint32Array`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Uint32Array) instance. + * + * ```js + * util.types.isUint32Array(new ArrayBuffer()); // Returns false + * util.types.isUint32Array(new Uint32Array()); // Returns true + * util.types.isUint32Array(new Float64Array()); // Returns false + * ``` + * @since v10.0.0 + */ + function isUint32Array(object: unknown): object is Uint32Array; + /** + * Returns `true` if the value is a built-in [`WeakMap`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap) instance. + * + * ```js + * util.types.isWeakMap(new WeakMap()); // Returns true + * ``` + * @since v10.0.0 + */ + function isWeakMap(object: unknown): object is WeakMap; + /** + * Returns `true` if the value is a built-in [`WeakSet`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakSet) instance. + * + * ```js + * util.types.isWeakSet(new WeakSet()); // Returns true + * ``` + * @since v10.0.0 + */ + function isWeakSet(object: unknown): object is WeakSet; + /** + * Returns `true` if `value` is a `KeyObject`, `false` otherwise. + * @since v16.2.0 + */ + function isKeyObject(object: unknown): object is KeyObject; + /** + * Returns `true` if `value` is a `CryptoKey`, `false` otherwise. + * @since v16.2.0 + */ + function isCryptoKey(object: unknown): object is webcrypto.CryptoKey; +} +declare module 'node:util' { + export * from 'util'; +} +declare module 'node:util/types' { + export * from 'util/types'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/v8.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/v8.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..59c8302dba5c71394da99a95ce25c1e96e4cd4e2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/v8.d.ts" @@ -0,0 +1,378 @@ +/** + * The `v8` module exposes APIs that are specific to the version of [V8](https://developers.google.com/v8/) built into the Node.js binary. It can be accessed using: + * + * ```js + * const v8 = require('v8'); + * ``` + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/v8.js) + */ +declare module 'v8' { + import { Readable } from 'node:stream'; + interface HeapSpaceInfo { + space_name: string; + space_size: number; + space_used_size: number; + space_available_size: number; + physical_space_size: number; + } + // ** Signifies if the --zap_code_space option is enabled or not. 1 == enabled, 0 == disabled. */ + type DoesZapCodeSpaceFlag = 0 | 1; + interface HeapInfo { + total_heap_size: number; + total_heap_size_executable: number; + total_physical_size: number; + total_available_size: number; + used_heap_size: number; + heap_size_limit: number; + malloced_memory: number; + peak_malloced_memory: number; + does_zap_garbage: DoesZapCodeSpaceFlag; + number_of_native_contexts: number; + number_of_detached_contexts: number; + } + interface HeapCodeStatistics { + code_and_metadata_size: number; + bytecode_and_metadata_size: number; + external_script_source_size: number; + } + /** + * Returns an integer representing a version tag derived from the V8 version, + * command-line flags, and detected CPU features. This is useful for determining + * whether a `vm.Script` `cachedData` buffer is compatible with this instance + * of V8. + * + * ```js + * console.log(v8.cachedDataVersionTag()); // 3947234607 + * // The value returned by v8.cachedDataVersionTag() is derived from the V8 + * // version, command-line flags, and detected CPU features. Test that the value + * // does indeed update when flags are toggled. + * v8.setFlagsFromString('--allow_natives_syntax'); + * console.log(v8.cachedDataVersionTag()); // 183726201 + * ``` + * @since v8.0.0 + */ + function cachedDataVersionTag(): number; + /** + * Returns an object with the following properties: + * + * `does_zap_garbage` is a 0/1 boolean, which signifies whether the`--zap_code_space` option is enabled or not. This makes V8 overwrite heap + * garbage with a bit pattern. The RSS footprint (resident set size) gets bigger + * because it continuously touches all heap pages and that makes them less likely + * to get swapped out by the operating system. + * + * `number_of_native_contexts` The value of native\_context is the number of the + * top-level contexts currently active. Increase of this number over time indicates + * a memory leak. + * + * `number_of_detached_contexts` The value of detached\_context is the number + * of contexts that were detached and not yet garbage collected. This number + * being non-zero indicates a potential memory leak. + * + * ```js + * { + * total_heap_size: 7326976, + * total_heap_size_executable: 4194304, + * total_physical_size: 7326976, + * total_available_size: 1152656, + * used_heap_size: 3476208, + * heap_size_limit: 1535115264, + * malloced_memory: 16384, + * peak_malloced_memory: 1127496, + * does_zap_garbage: 0, + * number_of_native_contexts: 1, + * number_of_detached_contexts: 0 + * } + * ``` + * @since v1.0.0 + */ + function getHeapStatistics(): HeapInfo; + /** + * Returns statistics about the V8 heap spaces, i.e. the segments which make up + * the V8 heap. Neither the ordering of heap spaces, nor the availability of a + * heap space can be guaranteed as the statistics are provided via the + * V8[`GetHeapSpaceStatistics`](https://v8docs.nodesource.com/node-13.2/d5/dda/classv8_1_1_isolate.html#ac673576f24fdc7a33378f8f57e1d13a4) function and may change from one V8 version to the + * next. + * + * The value returned is an array of objects containing the following properties: + * + * ```json + * [ + * { + * "space_name": "new_space", + * "space_size": 2063872, + * "space_used_size": 951112, + * "space_available_size": 80824, + * "physical_space_size": 2063872 + * }, + * { + * "space_name": "old_space", + * "space_size": 3090560, + * "space_used_size": 2493792, + * "space_available_size": 0, + * "physical_space_size": 3090560 + * }, + * { + * "space_name": "code_space", + * "space_size": 1260160, + * "space_used_size": 644256, + * "space_available_size": 960, + * "physical_space_size": 1260160 + * }, + * { + * "space_name": "map_space", + * "space_size": 1094160, + * "space_used_size": 201608, + * "space_available_size": 0, + * "physical_space_size": 1094160 + * }, + * { + * "space_name": "large_object_space", + * "space_size": 0, + * "space_used_size": 0, + * "space_available_size": 1490980608, + * "physical_space_size": 0 + * } + * ] + * ``` + * @since v6.0.0 + */ + function getHeapSpaceStatistics(): HeapSpaceInfo[]; + /** + * The `v8.setFlagsFromString()` method can be used to programmatically set + * V8 command-line flags. This method should be used with care. Changing settings + * after the VM has started may result in unpredictable behavior, including + * crashes and data loss; or it may simply do nothing. + * + * The V8 options available for a version of Node.js may be determined by running`node --v8-options`. + * + * Usage: + * + * ```js + * // Print GC events to stdout for one minute. + * const v8 = require('v8'); + * v8.setFlagsFromString('--trace_gc'); + * setTimeout(() => { v8.setFlagsFromString('--notrace_gc'); }, 60e3); + * ``` + * @since v1.0.0 + */ + function setFlagsFromString(flags: string): void; + /** + * Generates a snapshot of the current V8 heap and returns a Readable + * Stream that may be used to read the JSON serialized representation. + * This JSON stream format is intended to be used with tools such as + * Chrome DevTools. The JSON schema is undocumented and specific to the + * V8 engine. Therefore, the schema may change from one version of V8 to the next. + * + * ```js + * // Print heap snapshot to the console + * const v8 = require('v8'); + * const stream = v8.getHeapSnapshot(); + * stream.pipe(process.stdout); + * ``` + * @since v11.13.0 + * @return A Readable Stream containing the V8 heap snapshot + */ + function getHeapSnapshot(): Readable; + /** + * Generates a snapshot of the current V8 heap and writes it to a JSON + * file. This file is intended to be used with tools such as Chrome + * DevTools. The JSON schema is undocumented and specific to the V8 + * engine, and may change from one version of V8 to the next. + * + * A heap snapshot is specific to a single V8 isolate. When using `worker threads`, a heap snapshot generated from the main thread will + * not contain any information about the workers, and vice versa. + * + * ```js + * const { writeHeapSnapshot } = require('v8'); + * const { + * Worker, + * isMainThread, + * parentPort + * } = require('worker_threads'); + * + * if (isMainThread) { + * const worker = new Worker(__filename); + * + * worker.once('message', (filename) => { + * console.log(`worker heapdump: ${filename}`); + * // Now get a heapdump for the main thread. + * console.log(`main thread heapdump: ${writeHeapSnapshot()}`); + * }); + * + * // Tell the worker to create a heapdump. + * worker.postMessage('heapdump'); + * } else { + * parentPort.once('message', (message) => { + * if (message === 'heapdump') { + * // Generate a heapdump for the worker + * // and return the filename to the parent. + * parentPort.postMessage(writeHeapSnapshot()); + * } + * }); + * } + * ``` + * @since v11.13.0 + * @param filename The file path where the V8 heap snapshot is to be saved. If not specified, a file name with the pattern `'Heap-${yyyymmdd}-${hhmmss}-${pid}-${thread_id}.heapsnapshot'` will be + * generated, where `{pid}` will be the PID of the Node.js process, `{thread_id}` will be `0` when `writeHeapSnapshot()` is called from the main Node.js thread or the id of a + * worker thread. + * @return The filename where the snapshot was saved. + */ + function writeHeapSnapshot(filename?: string): string; + /** + * Returns an object with the following properties: + * + * ```js + * { + * code_and_metadata_size: 212208, + * bytecode_and_metadata_size: 161368, + * external_script_source_size: 1410794 + * } + * ``` + * @since v12.8.0 + */ + function getHeapCodeStatistics(): HeapCodeStatistics; + /** + * @since v8.0.0 + */ + class Serializer { + /** + * Writes out a header, which includes the serialization format version. + */ + writeHeader(): void; + /** + * Serializes a JavaScript value and adds the serialized representation to the + * internal buffer. + * + * This throws an error if `value` cannot be serialized. + */ + writeValue(val: any): boolean; + /** + * Returns the stored internal buffer. This serializer should not be used once + * the buffer is released. Calling this method results in undefined behavior + * if a previous write has failed. + */ + releaseBuffer(): Buffer; + /** + * Marks an `ArrayBuffer` as having its contents transferred out of band. + * Pass the corresponding `ArrayBuffer` in the deserializing context to `deserializer.transferArrayBuffer()`. + * @param id A 32-bit unsigned integer. + * @param arrayBuffer An `ArrayBuffer` instance. + */ + transferArrayBuffer(id: number, arrayBuffer: ArrayBuffer): void; + /** + * Write a raw 32-bit unsigned integer. + * For use inside of a custom `serializer._writeHostObject()`. + */ + writeUint32(value: number): void; + /** + * Write a raw 64-bit unsigned integer, split into high and low 32-bit parts. + * For use inside of a custom `serializer._writeHostObject()`. + */ + writeUint64(hi: number, lo: number): void; + /** + * Write a JS `number` value. + * For use inside of a custom `serializer._writeHostObject()`. + */ + writeDouble(value: number): void; + /** + * Write raw bytes into the serializer’s internal buffer. The deserializer + * will require a way to compute the length of the buffer. + * For use inside of a custom `serializer._writeHostObject()`. + */ + writeRawBytes(buffer: NodeJS.TypedArray): void; + } + /** + * A subclass of `Serializer` that serializes `TypedArray`(in particular `Buffer`) and `DataView` objects as host objects, and only + * stores the part of their underlying `ArrayBuffer`s that they are referring to. + * @since v8.0.0 + */ + class DefaultSerializer extends Serializer {} + /** + * @since v8.0.0 + */ + class Deserializer { + constructor(data: NodeJS.TypedArray); + /** + * Reads and validates a header (including the format version). + * May, for example, reject an invalid or unsupported wire format. In that case, + * an `Error` is thrown. + */ + readHeader(): boolean; + /** + * Deserializes a JavaScript value from the buffer and returns it. + */ + readValue(): any; + /** + * Marks an `ArrayBuffer` as having its contents transferred out of band. + * Pass the corresponding `ArrayBuffer` in the serializing context to `serializer.transferArrayBuffer()` (or return the `id` from `serializer._getSharedArrayBufferId()` in the case of + * `SharedArrayBuffer`s). + * @param id A 32-bit unsigned integer. + * @param arrayBuffer An `ArrayBuffer` instance. + */ + transferArrayBuffer(id: number, arrayBuffer: ArrayBuffer): void; + /** + * Reads the underlying wire format version. Likely mostly to be useful to + * legacy code reading old wire format versions. May not be called before`.readHeader()`. + */ + getWireFormatVersion(): number; + /** + * Read a raw 32-bit unsigned integer and return it. + * For use inside of a custom `deserializer._readHostObject()`. + */ + readUint32(): number; + /** + * Read a raw 64-bit unsigned integer and return it as an array `[hi, lo]`with two 32-bit unsigned integer entries. + * For use inside of a custom `deserializer._readHostObject()`. + */ + readUint64(): [number, number]; + /** + * Read a JS `number` value. + * For use inside of a custom `deserializer._readHostObject()`. + */ + readDouble(): number; + /** + * Read raw bytes from the deserializer’s internal buffer. The `length` parameter + * must correspond to the length of the buffer that was passed to `serializer.writeRawBytes()`. + * For use inside of a custom `deserializer._readHostObject()`. + */ + readRawBytes(length: number): Buffer; + } + /** + * A subclass of `Deserializer` corresponding to the format written by `DefaultSerializer`. + * @since v8.0.0 + */ + class DefaultDeserializer extends Deserializer {} + /** + * Uses a `DefaultSerializer` to serialize `value` into a buffer. + * @since v8.0.0 + */ + function serialize(value: any): Buffer; + /** + * Uses a `DefaultDeserializer` with default options to read a JS value + * from a buffer. + * @since v8.0.0 + * @param buffer A buffer returned by {@link serialize}. + */ + function deserialize(buffer: NodeJS.TypedArray): any; + /** + * The `v8.takeCoverage()` method allows the user to write the coverage started by `NODE_V8_COVERAGE` to disk on demand. This method can be invoked multiple + * times during the lifetime of the process. Each time the execution counter will + * be reset and a new coverage report will be written to the directory specified + * by `NODE_V8_COVERAGE`. + * + * When the process is about to exit, one last coverage will still be written to + * disk unless {@link stopCoverage} is invoked before the process exits. + * @since v15.1.0, v14.18.0, v12.22.0 + */ + function takeCoverage(): void; + /** + * The `v8.stopCoverage()` method allows the user to stop the coverage collection + * started by `NODE_V8_COVERAGE`, so that V8 can release the execution count + * records and optimize code. This can be used in conjunction with {@link takeCoverage} if the user wants to collect the coverage on demand. + * @since v15.1.0, v14.18.0, v12.22.0 + */ + function stopCoverage(): void; +} +declare module 'node:v8' { + export * from 'v8'; +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/vm.d.ts" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/vm.d.ts" new file mode 100644 index 0000000000000000000000000000000000000000..860b7ac4e5f4bb95583de1d84bd0ec7f5696d54c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@types/node/vm.d.ts" @@ -0,0 +1,507 @@ +/** + * The `vm` module enables compiling and running code within V8 Virtual + * Machine contexts. **The `vm` module is not a security mechanism. Do** + * **not use it to run untrusted code.** + * + * JavaScript code can be compiled and run immediately or + * compiled, saved, and run later. + * + * A common use case is to run the code in a different V8 Context. This means + * invoked code has a different global object than the invoking code. + * + * One can provide the context by `contextifying` an + * object. The invoked code treats any property in the context like a + * global variable. Any changes to global variables caused by the invoked + * code are reflected in the context object. + * + * ```js + * const vm = require('vm'); + * + * const x = 1; + * + * const context = { x: 2 }; + * vm.createContext(context); // Contextify the object. + * + * const code = 'x += 40; var y = 17;'; + * // `x` and `y` are global variables in the context. + * // Initially, x has the value 2 because that is the value of context.x. + * vm.runInContext(code, context); + * + * console.log(context.x); // 42 + * console.log(context.y); // 17 + * + * console.log(x); // 1; y is not defined. + * ``` + * @see [source](https://github.com/nodejs/node/blob/v17.0.0/lib/vm.js) + */ +declare module 'vm' { + interface Context extends NodeJS.Dict {} + interface BaseOptions { + /** + * Specifies the filename used in stack traces produced by this script. + * Default: `''`. + */ + filename?: string | undefined; + /** + * Specifies the line number offset that is displayed in stack traces produced by this script. + * Default: `0`. + */ + lineOffset?: number | undefined; + /** + * Specifies the column number offset that is displayed in stack traces produced by this script. + * @default 0 + */ + columnOffset?: number | undefined; + } + interface ScriptOptions extends BaseOptions { + displayErrors?: boolean | undefined; + timeout?: number | undefined; + cachedData?: Buffer | undefined; + /** @deprecated in favor of `script.createCachedData()` */ + produceCachedData?: boolean | undefined; + } + interface RunningScriptOptions extends BaseOptions { + /** + * When `true`, if an `Error` occurs while compiling the `code`, the line of code causing the error is attached to the stack trace. + * Default: `true`. + */ + displayErrors?: boolean | undefined; + /** + * Specifies the number of milliseconds to execute code before terminating execution. + * If execution is terminated, an `Error` will be thrown. This value must be a strictly positive integer. + */ + timeout?: number | undefined; + /** + * If `true`, the execution will be terminated when `SIGINT` (Ctrl+C) is received. + * Existing handlers for the event that have been attached via `process.on('SIGINT')` will be disabled during script execution, but will continue to work after that. + * If execution is terminated, an `Error` will be thrown. + * Default: `false`. + */ + breakOnSigint?: boolean | undefined; + /** + * If set to `afterEvaluate`, microtasks will be run immediately after the script has run. + */ + microtaskMode?: 'afterEvaluate' | undefined; + } + interface CompileFunctionOptions extends BaseOptions { + /** + * Provides an optional data with V8's code cache data for the supplied source. + */ + cachedData?: Buffer | undefined; + /** + * Specifies whether to produce new cache data. + * Default: `false`, + */ + produceCachedData?: boolean | undefined; + /** + * The sandbox/context in which the said function should be compiled in. + */ + parsingContext?: Context | undefined; + /** + * An array containing a collection of context extensions (objects wrapping the current scope) to be applied while compiling + */ + contextExtensions?: Object[] | undefined; + } + interface CreateContextOptions { + /** + * Human-readable name of the newly created context. + * @default 'VM Context i' Where i is an ascending numerical index of the created context. + */ + name?: string | undefined; + /** + * Corresponds to the newly created context for display purposes. + * The origin should be formatted like a `URL`, but with only the scheme, host, and port (if necessary), + * like the value of the `url.origin` property of a URL object. + * Most notably, this string should omit the trailing slash, as that denotes a path. + * @default '' + */ + origin?: string | undefined; + codeGeneration?: + | { + /** + * If set to false any calls to eval or function constructors (Function, GeneratorFunction, etc) + * will throw an EvalError. + * @default true + */ + strings?: boolean | undefined; + /** + * If set to false any attempt to compile a WebAssembly module will throw a WebAssembly.CompileError. + * @default true + */ + wasm?: boolean | undefined; + } + | undefined; + /** + * If set to `afterEvaluate`, microtasks will be run immediately after the script has run. + */ + microtaskMode?: 'afterEvaluate' | undefined; + } + type MeasureMemoryMode = 'summary' | 'detailed'; + interface MeasureMemoryOptions { + /** + * @default 'summary' + */ + mode?: MeasureMemoryMode | undefined; + context?: Context | undefined; + } + interface MemoryMeasurement { + total: { + jsMemoryEstimate: number; + jsMemoryRange: [number, number]; + }; + } + /** + * Instances of the `vm.Script` class contain precompiled scripts that can be + * executed in specific contexts. + * @since v0.3.1 + */ + class Script { + constructor(code: string, options?: ScriptOptions); + /** + * Runs the compiled code contained by the `vm.Script` object within the given`contextifiedObject` and returns the result. Running code does not have access + * to local scope. + * + * The following example compiles code that increments a global variable, sets + * the value of another global variable, then execute the code multiple times. + * The globals are contained in the `context` object. + * + * ```js + * const vm = require('vm'); + * + * const context = { + * animal: 'cat', + * count: 2 + * }; + * + * const script = new vm.Script('count += 1; name = "kitty";'); + * + * vm.createContext(context); + * for (let i = 0; i < 10; ++i) { + * script.runInContext(context); + * } + * + * console.log(context); + * // Prints: { animal: 'cat', count: 12, name: 'kitty' } + * ``` + * + * Using the `timeout` or `breakOnSigint` options will result in new event loops + * and corresponding threads being started, which have a non-zero performance + * overhead. + * @since v0.3.1 + * @param contextifiedObject A `contextified` object as returned by the `vm.createContext()` method. + * @return the result of the very last statement executed in the script. + */ + runInContext(contextifiedObject: Context, options?: RunningScriptOptions): any; + /** + * First contextifies the given `contextObject`, runs the compiled code contained + * by the `vm.Script` object within the created context, and returns the result. + * Running code does not have access to local scope. + * + * The following example compiles code that sets a global variable, then executes + * the code multiple times in different contexts. The globals are set on and + * contained within each individual `context`. + * + * ```js + * const vm = require('vm'); + * + * const script = new vm.Script('globalVar = "set"'); + * + * const contexts = [{}, {}, {}]; + * contexts.forEach((context) => { + * script.runInNewContext(context); + * }); + * + * console.log(contexts); + * // Prints: [{ globalVar: 'set' }, { globalVar: 'set' }, { globalVar: 'set' }] + * ``` + * @since v0.3.1 + * @param contextObject An object that will be `contextified`. If `undefined`, a new object will be created. + * @return the result of the very last statement executed in the script. + */ + runInNewContext(contextObject?: Context, options?: RunningScriptOptions): any; + /** + * Runs the compiled code contained by the `vm.Script` within the context of the + * current `global` object. Running code does not have access to local scope, but_does_ have access to the current `global` object. + * + * The following example compiles code that increments a `global` variable then + * executes that code multiple times: + * + * ```js + * const vm = require('vm'); + * + * global.globalVar = 0; + * + * const script = new vm.Script('globalVar += 1', { filename: 'myfile.vm' }); + * + * for (let i = 0; i < 1000; ++i) { + * script.runInThisContext(); + * } + * + * console.log(globalVar); + * + * // 1000 + * ``` + * @since v0.3.1 + * @return the result of the very last statement executed in the script. + */ + runInThisContext(options?: RunningScriptOptions): any; + /** + * Creates a code cache that can be used with the `Script` constructor's`cachedData` option. Returns a `Buffer`. This method may be called at any + * time and any number of times. + * + * ```js + * const script = new vm.Script(` + * function add(a, b) { + * return a + b; + * } + * + * const x = add(1, 2); + * `); + * + * const cacheWithoutX = script.createCachedData(); + * + * script.runInThisContext(); + * + * const cacheWithX = script.createCachedData(); + * ``` + * @since v10.6.0 + */ + createCachedData(): Buffer; + /** @deprecated in favor of `script.createCachedData()` */ + cachedDataProduced?: boolean | undefined; + cachedDataRejected?: boolean | undefined; + cachedData?: Buffer | undefined; + } + /** + * If given a `contextObject`, the `vm.createContext()` method will `prepare + * that object` so that it can be used in calls to {@link runInContext} or `script.runInContext()`. Inside such scripts, + * the `contextObject` will be the global object, retaining all of its existing + * properties but also having the built-in objects and functions any standard [global object](https://es5.github.io/#x15.1) has. Outside of scripts run by the vm module, global variables + * will remain unchanged. + * + * ```js + * const vm = require('vm'); + * + * global.globalVar = 3; + * + * const context = { globalVar: 1 }; + * vm.createContext(context); + * + * vm.runInContext('globalVar *= 2;', context); + * + * console.log(context); + * // Prints: { globalVar: 2 } + * + * console.log(global.globalVar); + * // Prints: 3 + * ``` + * + * If `contextObject` is omitted (or passed explicitly as `undefined`), a new, + * empty `contextified` object will be returned. + * + * The `vm.createContext()` method is primarily useful for creating a single + * context that can be used to run multiple scripts. For instance, if emulating a + * web browser, the method can be used to create a single context representing a + * window's global object, then run all `\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./BuildStatus.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./BuildStatus.vue?vue&type=script&lang=js&\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./BuildStatus.vue?vue&type=template&id=75705bbf&scoped=true&\"\nimport script from \"./BuildStatus.vue?vue&type=script&lang=js&\"\nexport * from \"./BuildStatus.vue?vue&type=script&lang=js&\"\nimport style0 from \"./BuildStatus.vue?vue&type=style&index=0&id=75705bbf&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"75705bbf\",\n null\n \n)\n\nexport default component.exports","var render = function () {\nvar _obj;\nvar _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"build-progress card\",class:( _obj = {}, _obj[(\"mode-\" + _vm.mode)] = true, _obj )},[_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"progress-wrapper\"},[_c('transition-group',{staticClass:\"progress-bars\",attrs:{\"name\":\"vue-ui-fade\"}},_vm._l((Object.keys(_vm.progress)),function(key,index){\n var _obj;\nreturn _c('div',{key:key,staticClass:\"progress-bar-wrapper\"},[_c('loading-progress',{key:key,staticClass:\"progress-bar\",class:( _obj = {\n 'disable-animation': _vm.progress[key] === 0\n }, _obj[(\"mode-\" + key)] = true, _obj ),attrs:{\"progress\":_vm.progress[key],\"size\":128 - 16 * index,\"counter-clockwise\":\"\"}})],1)}),0),_c('div',{staticClass:\"progress\"},[_c('div',{staticClass:\"progress-animation\",class:{\n active: _vm.status && _vm.status !== 'Idle'\n }},_vm._l((4),function(n){return _c('div',{key:n,staticClass:\"animation\",style:({\n 'animation-delay': ((n * 0.25) + \"s\")\n })})}),0)]),_c('transition',{attrs:{\"duration\":\"500\"}},[(_vm.status === 'Success')?_c('div',{staticClass:\"status-icon done\"},[_c('div',{staticClass:\"wrapper\"},[_c('VueIcon',{attrs:{\"icon\":\"check_circle\"}})],1)]):_vm._e()]),_c('transition',{attrs:{\"duration\":\"500\"}},[(_vm.status === 'Failed')?_c('div',{staticClass:\"status-icon error\"},[_c('div',{staticClass:\"wrapper\"},[_c('VueIcon',{attrs:{\"icon\":\"error\"}})],1)]):_vm._e()])],1),_c('div',{staticClass:\"operations\"},[(_vm.operations)?_c('span',[_vm._v(_vm._s(_vm.operations))]):_c('VueIcon',{staticClass:\"blank-icon\",attrs:{\"icon\":\"more_horiz\"}})],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./BuildProgress.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./BuildProgress.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./BuildProgress.vue?vue&type=template&id=2196a8bb&scoped=true&\"\nimport script from \"./BuildProgress.vue?vue&type=script&lang=js&\"\nexport * from \"./BuildProgress.vue?vue&type=script&lang=js&\"\nimport style0 from \"./BuildProgress.vue?vue&type=style&index=0&id=2196a8bb&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2196a8bb\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"speed-stats card\"},[_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"title\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.vue-webpack.dashboard.speed-stats.title'))+\" \")]),(!_vm.assetsTotalSize)?_c('VueIcon',{staticClass:\"blank-icon\",attrs:{\"icon\":\"more_horiz\"}}):_c('div',{staticClass:\"items\"},_vm._l((_vm.speeds),function(stats,key){return _c('SpeedStatsItem',{key:key,attrs:{\"stats\":stats}})}),1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:({\n content: _vm.tooltip,\n offset: 16\n }),expression:\"{\\n content: tooltip,\\n offset: 16\\n }\"}],staticClass:\"speed-stats-item\"},[_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"label\"},[_vm._v(_vm._s(_vm.stats.title))]),_c('div',{staticClass:\"value\"},[_vm._v(_vm._s(_vm._f(\"round\")(_vm.stats.totalDownloadTime,100))+\"s\")])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SpeedStatsItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SpeedStatsItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SpeedStatsItem.vue?vue&type=template&id=4adb230f&scoped=true&\"\nimport script from \"./SpeedStatsItem.vue?vue&type=script&lang=js&\"\nexport * from \"./SpeedStatsItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./SpeedStatsItem.vue?vue&type=style&index=0&id=4adb230f&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4adb230f\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SpeedStats.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SpeedStats.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SpeedStats.vue?vue&type=template&id=b54aa84a&scoped=true&\"\nimport script from \"./SpeedStats.vue?vue&type=script&lang=js&\"\nexport * from \"./SpeedStats.vue?vue&type=script&lang=js&\"\nimport style0 from \"./SpeedStats.vue?vue&type=style&index=0&id=b54aa84a&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"b54aa84a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"asset-list card list-block\"},[_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"title\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.vue-webpack.dashboard.asset-list.title'))+\" \")]),(!_vm.assetsSorted.length)?_c('VueIcon',{staticClass:\"blank-icon\",attrs:{\"icon\":\"more_horiz\"}}):[_c('div',{staticClass:\"headers\"},[_c('div',{staticClass:\"header\"}),_c('div',{staticClass:\"header size-field\"},[_vm._v(_vm._s(_vm.sizeField))]),_c('div',{staticClass:\"header\"},[_vm._v(\"Global\")]),_c('div',{staticClass:\"header\"},[_vm._v(\"3G Slow\")]),_c('div',{staticClass:\"header\"},[_vm._v(\"3G Fast\")]),_c('div',{staticClass:\"header\"})]),_c('div',{staticClass:\"list\"},_vm._l((_vm.assetsSorted),function(asset){return _c('AssetListItem',{key:asset.name,attrs:{\"asset\":asset}})}),1)]],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function (_h,_vm) {var _c=_vm._c;return _c('div',{staticClass:\"asset-list-item\",class:{\n big: _vm.props.asset.big,\n secondary: _vm.props.asset.secondary\n }},[_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"info name\"},[_vm._v(_vm._s(_vm.props.asset.name))]),_c('div',{staticClass:\"info size\"},[_vm._v(_vm._s(_vm._f(\"size\")(_vm.props.asset.size,'B')))]),_c('div',{staticClass:\"info speed global\"},[_vm._v(_vm._s(_vm._f(\"round\")(_vm.props.asset.speeds.global.totalDownloadTime,100))+\"s\")]),_c('div',{staticClass:\"info speed 3gs\"},[_vm._v(_vm._s(_vm._f(\"round\")(_vm.props.asset.speeds['3gs'].totalDownloadTime,100))+\"s\")]),_c('div',{staticClass:\"info speed 3gf\"},[_vm._v(_vm._s(_vm._f(\"round\")(_vm.props.asset.speeds['3gf'].totalDownloadTime,100))+\"s\")]),_c('div',{staticClass:\"info warning\"},[(!_vm.props.asset.secondary && _vm.props.asset.big)?_c('VueIcon',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.parent.$t('org.vue.vue-webpack.dashboard.asset-list.size-warning')),expression:\"parent.$t('org.vue.vue-webpack.dashboard.asset-list.size-warning')\"}],staticClass:\"icon\",attrs:{\"icon\":\"warning\"}}):_vm._e()],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./AssetListItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./AssetListItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AssetListItem.vue?vue&type=template&id=6cde651f&scoped=true&functional=true&\"\nimport script from \"./AssetListItem.vue?vue&type=script&lang=js&\"\nexport * from \"./AssetListItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AssetListItem.vue?vue&type=style&index=0&id=6cde651f&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n true,\n null,\n \"6cde651f\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./AssetList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./AssetList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AssetList.vue?vue&type=template&id=9b630720&scoped=true&\"\nimport script from \"./AssetList.vue?vue&type=script&lang=js&\"\nexport * from \"./AssetList.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AssetList.vue?vue&type=style&index=0&id=9b630720&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"9b630720\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"module-list card list-block\"},[_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"title\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.vue-webpack.dashboard.module-list.title'))+\" \")]),(!_vm.depModules.length)?_c('VueIcon',{staticClass:\"blank-icon\",attrs:{\"icon\":\"more_horiz\"}}):_vm._e(),_c('div',{staticClass:\"list\"},_vm._l((_vm.depModules),function(m){return _c('ModuleListItem',{key:m.id,attrs:{\"module\":m}})}),1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function (_h,_vm) {var _c=_vm._c;return _c('div',{staticClass:\"module-list-item\"},[_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"info name\"},[_vm._v(_vm._s(_vm.props.module.name))]),_c('div',{staticClass:\"info size\"},[_vm._v(_vm._s(_vm._f(\"size\")(_vm.props.module.size,'B')))]),_c('div',{staticClass:\"info\"},[_c('VueLoadingBar',{staticClass:\"primary\",attrs:{\"value\":_vm.props.module.ratio}})],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ModuleListItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ModuleListItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ModuleListItem.vue?vue&type=template&id=352f8850&scoped=true&functional=true&\"\nimport script from \"./ModuleListItem.vue?vue&type=script&lang=js&\"\nexport * from \"./ModuleListItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ModuleListItem.vue?vue&type=style&index=0&id=352f8850&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n true,\n null,\n \"352f8850\",\n null\n \n)\n\nexport default component.exports","\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ModuleList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ModuleList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ModuleList.vue?vue&type=template&id=2dbffb82&\"\nimport script from \"./ModuleList.vue?vue&type=script&lang=js&\"\nexport * from \"./ModuleList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n \n {{ $t('org.vue.vue-webpack.modern-mode') }}\n \n\n \n \n \n \n \n\n \n \n\n
\n \n \n \n \n \n
\n\n
\n \n \n \n
\n \n\n\n\n\n\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./WebpackDashboard.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./WebpackDashboard.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./WebpackDashboard.vue?vue&type=template&id=4a48e919&scoped=true&\"\nimport script from \"./WebpackDashboard.vue?vue&type=script&lang=js&\"\nexport * from \"./WebpackDashboard.vue?vue&type=script&lang=js&\"\nimport style0 from \"./WebpackDashboard.vue?vue&type=style&index=0&lang=css&\"\nimport style1 from \"./WebpackDashboard.vue?vue&type=style&index=1&id=4a48e919&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4a48e919\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"vue-webpack-analyzer\"},[_c('div',{staticClass:\"pane-toolbar card\"},[_c('VueIcon',{attrs:{\"icon\":\"donut_large\"}}),_c('div',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.$t('org.vue.vue-webpack.analyzer.title')))]),(_vm.mode !== 'serve' && _vm.modernMode)?_c('VueSwitch',{model:{value:(_vm.showModernBuild),callback:function ($$v) {_vm.showModernBuild=$$v},expression:\"showModernBuild\"}},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.vue-webpack.modern-mode'))+\" \")]):_vm._e(),(_vm.currentTree)?[_c('VueButton',{attrs:{\"icon-left\":\"arrow_upward\",\"label\":_vm.$t('org.vue.vue-webpack.analyzer.go-up'),\"disabled\":_vm.currentTree === _vm.rootTree},on:{\"click\":function($event){return _vm.goToParent()}}}),_c('VueButton',{attrs:{\"icon-left\":\"home\",\"label\":_vm.$t('org.vue.vue-webpack.analyzer.go-home'),\"disabled\":_vm.currentTree === _vm.rootTree},on:{\"click\":function($event){return _vm.goToHome()}}}),_c('VueIcon',{staticClass:\"separator\",attrs:{\"icon\":\"lens\"}})]:_vm._e(),_c('VueSelect',{attrs:{\"disabled\":Object.keys(_vm.modulesTrees).length === 0},model:{value:(_vm.selectedChunk),callback:function ($$v) {_vm.selectedChunk=$$v},expression:\"selectedChunk\"}},_vm._l((_vm.modulesTrees),function(chunk,key){return _c('VueSelectButton',{key:key,attrs:{\"value\":key,\"label\":((_vm.$t('org.vue.vue-webpack.analyzer.chunk')) + \" \" + (_vm.getChunkName(key)))}})}),1),_c('VueSelect',{model:{value:(_vm.sizeField),callback:function ($$v) {_vm.sizeField=$$v},expression:\"sizeField\"}},[_c('VueSelectButton',{attrs:{\"value\":\"stats\",\"label\":(\"\" + (_vm.$t('org.vue.vue-webpack.sizes.stats')))}}),_c('VueSelectButton',{attrs:{\"value\":\"parsed\",\"label\":(\"\" + (_vm.$t('org.vue.vue-webpack.sizes.parsed')))}}),_c('VueSelectButton',{attrs:{\"value\":\"gzip\",\"label\":(\"\" + (_vm.$t('org.vue.vue-webpack.sizes.gzip')))}})],1),_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.vue-webpack.sizes.help')),expression:\"$t('org.vue.vue-webpack.sizes.help')\"}],staticClass:\"icon-button\",attrs:{\"icon-left\":\"help\"}})],2),_c('div',{staticClass:\"content\"},[(_vm.currentTree)?[_c('svg',{key:_vm.sizeField,ref:\"svg\",staticClass:\"donut\",class:{\n hover: _vm.hoverModule\n },attrs:{\"viewBox\":\"0 0 80 80\"},on:{\"mousemove\":_vm.onMouseMove,\"mouseout\":_vm.onMouseOut,\"click\":_vm.onDonutClick}},[_c('g',{attrs:{\"transform\":\"translate(40, 40)\"}},_vm._l((_vm.currentTree.children),function(module,index){return _c('DonutModule',{key:module.id,attrs:{\"module\":module,\"parent-module\":_vm.currentTree,\"colors\":_vm.getColors(index),\"depth\":0,\"parent-ratio\":1}})}),1)])]:_vm._e(),(_vm.describedModule)?_c('div',{staticClass:\"described-module\"},[_c('div',{staticClass:\"wrapper card\"},[_c('div',{staticClass:\"path\",domProps:{\"innerHTML\":_vm._s(_vm.modulePath)}}),_c('div',{staticClass:\"stats size\",class:{ selected: _vm.sizeField === 'stats' }},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.vue-webpack.sizes.stats'))+\": \"+_vm._s(_vm._f(\"size\")(_vm.describedModule.size.stats,'B'))+\" \")]),_c('div',{staticClass:\"parsed size\",class:{ selected: _vm.sizeField === 'parsed' }},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.vue-webpack.sizes.parsed'))+\": \"+_vm._s(_vm._f(\"size\")(_vm.describedModule.size.parsed,'B'))+\" \")]),_c('div',{staticClass:\"gzip size\",class:{ selected: _vm.sizeField === 'gzip' }},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.vue-webpack.sizes.gzip'))+\": \"+_vm._s(_vm._f(\"size\")(_vm.describedModule.size.gzip,'B'))+\" \")])])]):_vm._e()],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default {\n light: [\n [\n '#42b983',\n '#5DC395',\n '#78CDA7',\n '#93D7B9',\n '#AEE1CB',\n '#C9EBDD'\n ],\n [\n '#A96FDA',\n '#B684DF',\n '#C399E4',\n '#D0AEE9',\n '#DDC3EE',\n '#EAD8F3'\n ],\n [\n '#03C2E6',\n '#27CBEA',\n '#4BD4EE',\n '#6FDDF2',\n '#93E6F6',\n '#B7EFFA'\n ],\n [\n '#778F9B',\n '#8B9FA9',\n '#9FAFB7',\n '#B3BFC5',\n '#C7CFD3',\n '#DBDFE1'\n ]\n ],\n dark: [\n [\n '#42b983',\n '#3CA978',\n '#37986C',\n '#318760',\n '#2A7654',\n '#246548'\n ],\n [\n '#A96FDA',\n '#9A65C7',\n '#8B5BB3',\n '#7B519F',\n '#6C478B',\n '#5D3D77'\n ],\n [\n '#03C2E6',\n '#03B1D2',\n '#039FBD',\n '#038EA8',\n '#027C93',\n '#026A7E'\n ],\n [\n '#778F9B',\n '#6D828D',\n '#62767F',\n '#576971',\n '#4C5C63',\n '#414E55'\n ]\n ]\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.visible)?_c('g',{staticClass:\"donut-module\",class:{\n hover: _vm.hover\n },attrs:{\"transform\":(\"translate(-\" + (_vm.size / 2) + \", -\" + (_vm.size / 2) + \") rotate(\" + _vm.rotation + \", \" + (_vm.size / 2) + \", \" + (_vm.size / 2) + \")\")}},[_c('g',{staticClass:\"container\"},[_c('path',{ref:\"path\",staticClass:\"progress\",attrs:{\"d\":(\"M \" + (_vm.size / 2) + \", \" + (_vm.size / 2) + \"\\n m 0, -\" + (_vm.size / 2) + \"\\n a \" + (_vm.size / 2) + \",\" + (_vm.size / 2) + \" 0 1 1 0,\" + _vm.size + \"\\n a \" + (_vm.size / 2) + \",\" + (_vm.size / 2) + \" 0 1 1 0,-\" + _vm.size),\"stroke-dasharray\":((_vm.finalDasharray - 0.25) + \" \" + (_vm.finalDasharray - 0.25)),\"stroke-dashoffset\":_vm.finalDashoffset,\"stroke\":_vm.stroke}})]),(_vm.depth + 1 < _vm.colors.length)?_c('g',{staticClass:\"children\",attrs:{\"transform\":(\"translate(\" + (_vm.size / 2) + \", \" + (_vm.size / 2) + \")\")}},_vm._l((_vm.module.children),function(m){return (_vm.isVisible(_vm.getRatio(m, _vm.ratio)))?_c('DonutModule',{key:m.id,attrs:{\"module\":m,\"depth\":_vm.depth + 1,\"parent-module\":_vm.module,\"parent-ratio\":_vm.ratio,\"colors\":_vm.colors}}):_vm._e()}),1):_vm._e()]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./DonutModule.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./DonutModule.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DonutModule.vue?vue&type=template&id=1d488584&scoped=true&\"\nimport script from \"./DonutModule.vue?vue&type=script&lang=js&\"\nexport * from \"./DonutModule.vue?vue&type=script&lang=js&\"\nimport style0 from \"./DonutModule.vue?vue&type=style&index=0&id=1d488584&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1d488584\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./WebpackAnalyzer.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./WebpackAnalyzer.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./WebpackAnalyzer.vue?vue&type=template&id=c6d26d6a&scoped=true&\"\nimport script from \"./WebpackAnalyzer.vue?vue&type=script&lang=js&\"\nexport * from \"./WebpackAnalyzer.vue?vue&type=script&lang=js&\"\nimport style0 from \"./WebpackAnalyzer.vue?vue&type=style&index=0&id=c6d26d6a&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"c6d26d6a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"test-view\"},[_c('h1',[_vm._v(_vm._s(_vm.$t('org.vue.vue-webpack.test-view')))]),_c('p',[_vm._v(\"A vue-cli plugin created me! I am a dynamically loaded component paired with a custom route.\")]),_c('div',{staticClass:\"section\"},[_c('VueInput',{attrs:{\"placeholder\":\"Shared data (with storage)\"},model:{value:(_vm.testData),callback:function ($$v) {_vm.testData=$$v},expression:\"testData\"}})],1),_c('div',{staticClass:\"section\"},[_c('VueButton',{on:{\"click\":function($event){return _vm.testPluginAction()}}},[_vm._v(\"Test plugin action\")])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./TestView.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./TestView.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TestView.vue?vue&type=template&id=0b056497&scoped=true&\"\nimport script from \"./TestView.vue?vue&type=script&lang=js&\"\nexport * from \"./TestView.vue?vue&type=script&lang=js&\"\nimport style0 from \"./TestView.vue?vue&type=style&index=0&id=0b056497&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0b056497\",\n null\n \n)\n\nexport default component.exports","import VueProgress from 'vue-progress-path'\nimport WebpackDashboard from './components/WebpackDashboard.vue'\nimport WebpackAnalyzer from './components/WebpackAnalyzer.vue'\nimport TestView from './components/TestView.vue'\n\nVue.use(VueProgress, {\n defaultShape: 'circle'\n})\n\n/* eslint-disable vue/multi-word-component-names */\nClientAddonApi.component('org.vue.webpack.components.dashboard', WebpackDashboard)\nClientAddonApi.component('org.vue.webpack.components.analyzer', WebpackAnalyzer)\n\nClientAddonApi.addRoutes('org.vue.webpack', [\n { path: '', name: 'org.vue.webpack.routes.test', component: TestView }\n])\n\n// Locales\nconst locales = require.context('./locales', true, /[a-z0-9]+\\.json$/i)\nlocales.keys().forEach(key => {\n const locale = key.match(/([a-z0-9]+)\\./i)[1]\n ClientAddonApi.addLocalization(locale, locales(key))\n})\n","// style-loader: Adds some css to the DOM by adding a diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/AssetListItem.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/AssetListItem.vue" new file mode 100644 index 0000000000000000000000000000000000000000..a09725c7d7f37391073a6d3039d837aee0238c2d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/AssetListItem.vue" @@ -0,0 +1,77 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/BuildProgress.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/BuildProgress.vue" new file mode 100644 index 0000000000000000000000000000000000000000..6f0f39e7143381ad8426b394e5f1b6a614862c6e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/BuildProgress.vue" @@ -0,0 +1,260 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/BuildStatus.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/BuildStatus.vue" new file mode 100644 index 0000000000000000000000000000000000000000..ee7dfb4c57dc2c8591967a7bb91c61269573ee03 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/BuildStatus.vue" @@ -0,0 +1,125 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/DonutModule.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/DonutModule.vue" new file mode 100644 index 0000000000000000000000000000000000000000..0bf8b748fa0ff481e76fae1c7cadbee59b8efac6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/DonutModule.vue" @@ -0,0 +1,164 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/ModuleList.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/ModuleList.vue" new file mode 100644 index 0000000000000000000000000000000000000000..a7f74fd1f7b5567c20da713e3a87f9a5c87cfc1b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/ModuleList.vue" @@ -0,0 +1,41 @@ + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/ModuleListItem.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/ModuleListItem.vue" new file mode 100644 index 0000000000000000000000000000000000000000..4c8f65254b46c0a948bcc3cc4b36b6c1d871ad7b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/ModuleListItem.vue" @@ -0,0 +1,51 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/SpeedStats.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/SpeedStats.vue" new file mode 100644 index 0000000000000000000000000000000000000000..02b00c7e831fd68abb6d560cc601dbaee9bc24bb --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/SpeedStats.vue" @@ -0,0 +1,57 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/SpeedStatsItem.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/SpeedStatsItem.vue" new file mode 100644 index 0000000000000000000000000000000000000000..9f0315eb651279a5bb0375c5c87c70ac619285b2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/SpeedStatsItem.vue" @@ -0,0 +1,54 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/TestView.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/TestView.vue" new file mode 100644 index 0000000000000000000000000000000000000000..aad7f3e22c52b9bd6b8d9dbbc67d872131da76ec --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/TestView.vue" @@ -0,0 +1,50 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/WebpackAnalyzer.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/WebpackAnalyzer.vue" new file mode 100644 index 0000000000000000000000000000000000000000..a4094dfc513ed4262b71518c11bc2d64ec3f671f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/WebpackAnalyzer.vue" @@ -0,0 +1,378 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/WebpackDashboard.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/WebpackDashboard.vue" new file mode 100644 index 0000000000000000000000000000000000000000..36473c58eb46dd2f40d5ae401985abaca4d3c20b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/components/WebpackDashboard.vue" @@ -0,0 +1,142 @@ + + + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/filters.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/filters.js" new file mode 100644 index 0000000000000000000000000000000000000000..e37492dd2b66746d4c5e7ffbd18c3e5a05dbbd03 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/filters.js" @@ -0,0 +1,25 @@ +export function size (size, unit = '', precision = 1) { + const kb = { + label: 'k', + value: 1024 + } + const mb = { + label: 'M', + value: 1024 * 1024 + } + let denominator + + if (size >= mb.value) { + denominator = mb + } else { + denominator = kb + if (size < kb.value * 0.92 && precision === 0) { + precision = 1 + } + } + return (size / denominator.value).toFixed(precision) + denominator.label + unit +} + +export function round (value, precision) { + return Math.round(value * precision) / precision +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/locales/en.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/locales/en.json" new file mode 100644 index 0000000000000000000000000000000000000000..25441dc09321dad430bd7e43956854412ed9d786 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/locales/en.json" @@ -0,0 +1,9 @@ +{ + "org": { + "vue": { + "vue-webpack": { + "test-view": "I'm a custom view" + } + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/main.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/main.js" new file mode 100644 index 0000000000000000000000000000000000000000..2cbbcf6a5f2d2ee52b915ac22c606090de117034 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/main.js" @@ -0,0 +1,23 @@ +import VueProgress from 'vue-progress-path' +import WebpackDashboard from './components/WebpackDashboard.vue' +import WebpackAnalyzer from './components/WebpackAnalyzer.vue' +import TestView from './components/TestView.vue' + +Vue.use(VueProgress, { + defaultShape: 'circle' +}) + +/* eslint-disable vue/multi-word-component-names */ +ClientAddonApi.component('org.vue.webpack.components.dashboard', WebpackDashboard) +ClientAddonApi.component('org.vue.webpack.components.analyzer', WebpackAnalyzer) + +ClientAddonApi.addRoutes('org.vue.webpack', [ + { path: '', name: 'org.vue.webpack.routes.test', component: TestView } +]) + +// Locales +const locales = require.context('./locales', true, /[a-z0-9]+\.json$/i) +locales.keys().forEach(key => { + const locale = key.match(/([a-z0-9]+)\./i)[1] + ClientAddonApi.addLocalization(locale, locales(key)) +}) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/mixins/Dashboard.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/mixins/Dashboard.js" new file mode 100644 index 0000000000000000000000000000000000000000..075bc5ab815d5891bfe803a74fab00e99f76934b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/mixins/Dashboard.js" @@ -0,0 +1,64 @@ +import store from '../store' + +// @vue/component +export default { + store, + + inject: [ + 'TaskDetails' + ], + + data () { + return { + mode: null + } + }, + + sharedData () { + return { + serveUrl: 'org.vue.webpack.serve-url', + modernMode: 'org.vue.webpack.modern-mode' + } + }, + + computed: { + sizeField: { + get () { return this.$store.getters.sizeField }, + set (value) { this.$store.commit('sizeField', value) } + }, + + showModernBuild: { + get () { return this.$store.state.showModernBuild }, + set (value) { this.$store.commit('showModernBuild', value) } + } + }, + + watch: { + modernMode: { + handler (value) { + this.showModernBuild = value + }, + immediate: true + } + }, + + created () { + const mode = this.mode = this.TaskDetails.task.command.match(/vue-cli-service\s+(\S+)/)[1] + this.$store.commit('mode', mode) + if (mode === 'build') { + this.syncMode('build-modern') + } + this.syncMode(mode) + }, + + methods: { + syncMode (mode) { + this.$watchSharedData(`org.vue.webpack.${mode}-stats`, value => { + this.$store.commit('stats', { + mode, + value + }) + }) + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/store/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/store/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..37c3660f3106edc10dd51f100497560f571361d7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/store/index.js" @@ -0,0 +1,76 @@ +import Vuex from 'vuex' + +import { buildSortedAssets } from '../util/assets' + +Vue.use(Vuex) + +const store = new Vuex.Store({ + state () { + return { + sizeField: localStorage.getItem('org.vue.vue-webpack.sizeField') || 'parsed', + mode: 'serve', + showModernBuild: true, + serve: { + stats: null, + analyzer: {} + }, + build: { + stats: null, + analyzer: {} + }, + 'build-modern': { + stats: null, + analyzer: {} + } + } + }, + + getters: { + sizeField: state => state.sizeField, + mode: state => { + if (state.mode === 'build' && state.showModernBuild) { + return 'build-modern' + } + return state.mode + }, + stats: (state, getters) => state[getters.mode].stats, + errors: (state, getters) => (getters.stats && getters.stats.data.errors) || [], + warnings: (state, getters) => (getters.stats && getters.stats.data.warnings) || [], + assets: (state, getters) => (getters.stats && getters.stats.data.assets) || [], + assetsSorted: (state, getters) => buildSortedAssets(getters.assets, getters.sizeField), + assetsTotalSize: (state, getters) => getters.assetsSorted.filter(a => !a.secondary).reduce((total, asset) => total + asset.size, 0), + modules: (state, getters) => (getters.stats && getters.stats.computed.modulesPerSizeType[getters.sizeField]) || {}, + modulesTotalSize: (state, getters) => getters.modules.modulesTotalSize || 0, + analyzer: (state, getters) => state[getters.mode].analyzer[getters.sizeField], + modulesTrees: (state, getters) => (getters.analyzer && getters.analyzer.modulesTrees) || [], + depModules: (state, getters) => getters.modules.depModules || [], + depModulesTotalSize: (state, getters) => getters.modules.depModulesTotalSize || 0, + chunks: (state, getters) => (getters.stats && getters.stats.data.chunks) || [] + }, + + mutations: { + sizeField (state, value) { + state.sizeField = value + localStorage.setItem('org.vue.vue-webpack.sizeField', value) + }, + + mode (state, value) { + state.mode = value + }, + + showModernBuild (state, value) { + state.showModernBuild = value + }, + + stats (state, { mode, value }) { + state[mode].stats = Object.freeze(value) + }, + + analyzer (state, { mode, value }) { + console.log(value) + state[mode].analyzer = Object.freeze(value) + } + } +}) + +export default store diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/util/assets.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/util/assets.js" new file mode 100644 index 0000000000000000000000000000000000000000..a27a12984b5072787d0743543ef804a82c0ffced --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/util/assets.js" @@ -0,0 +1,63 @@ +import speedsData from '../assets/speeds.json' + +const DOWNLOAD_TIME_THRESHOLD_SECONDS = 5 + +export function getSpeedData (datapoint, size) { + const assetsSizeInMB = size / 1024 / 1024 + const bandwidthInMbps = datapoint.mbps + const bandwidthInMBps = bandwidthInMbps / 8 + const rttInSeconds = datapoint.rtt / 1000 + + const totalDownloadTime = assetsSizeInMB / bandwidthInMBps + rttInSeconds + + const isDownloadTimeOverThreshold = + totalDownloadTime > DOWNLOAD_TIME_THRESHOLD_SECONDS + const timeDifferenceToThreshold = + (isDownloadTimeOverThreshold ? '+' : '-') + + Math.abs(totalDownloadTime - DOWNLOAD_TIME_THRESHOLD_SECONDS).toFixed(2) + +'s' + + return { + totalDownloadTime, + isDownloadTimeOverThreshold, + timeDifferenceToThreshold + } +} + +export function getSpeeds (size) { + return Object.keys(speedsData).reduce((obj, key) => { + obj[key] = { + ...getSpeedData(speedsData[key], size), + ...speedsData[key] + } + return obj + }, {}) +} + +export function buildSortedAssets (assets, sizeField) { + let list = assets.slice() + if (list.length) { + const max = list[0].size + list = list.map(asset => { + const size = asset.size[sizeField] + return { + name: asset.name, + size, + big: size > 250000, + ratio: size / max, + secondary: /\.map$/.test(asset.name), + speeds: getSpeeds(size) + } + }) + list.sort((a, b) => { + if (a.secondary === b.secondary) { + return b.size - a.size + } else if (a.secondary && !b.secondary) { + return 1 + } else { + return -1 + } + }) + } + return list +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/util/colors.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/util/colors.js" new file mode 100644 index 0000000000000000000000000000000000000000..dc229420652fe4dac22e01a134ff6e5b483aa4d7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-webpack/src/util/colors.js" @@ -0,0 +1,70 @@ +export default { + light: [ + [ + '#42b983', + '#5DC395', + '#78CDA7', + '#93D7B9', + '#AEE1CB', + '#C9EBDD' + ], + [ + '#A96FDA', + '#B684DF', + '#C399E4', + '#D0AEE9', + '#DDC3EE', + '#EAD8F3' + ], + [ + '#03C2E6', + '#27CBEA', + '#4BD4EE', + '#6FDDF2', + '#93E6F6', + '#B7EFFA' + ], + [ + '#778F9B', + '#8B9FA9', + '#9FAFB7', + '#B3BFC5', + '#C7CFD3', + '#DBDFE1' + ] + ], + dark: [ + [ + '#42b983', + '#3CA978', + '#37986C', + '#318760', + '#2A7654', + '#246548' + ], + [ + '#A96FDA', + '#9A65C7', + '#8B5BB3', + '#7B519F', + '#6C478B', + '#5D3D77' + ], + [ + '#03C2E6', + '#03B1D2', + '#039FBD', + '#038EA8', + '#027C93', + '#026A7E' + ], + [ + '#778F9B', + '#6D828D', + '#62767F', + '#576971', + '#4C5C63', + '#414E55' + ] + ] +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..4e467aa91f232b47969ae232744e8f1a0066d36c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/LICENSE" @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2017-present, Yuxi (Evan) You + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..571def4fc04daee7495431b8a82d8293bce43f5a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/README.md" @@ -0,0 +1,21 @@ +# cli-ui-addon-widgets + +## Project setup +``` +yarn install +``` + +### Compiles and hot-reloads for development +``` +yarn run serve +``` + +### Compiles and minifies for production +``` +yarn run build +``` + +### Lints and fixes files +``` +yarn run lint +``` diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/dist/favicon.ico" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/dist/favicon.ico" new file mode 100644 index 0000000000000000000000000000000000000000..c7b9a43c8cd16d0b434adaf513fcacb340809a11 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/dist/favicon.ico" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/dist/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/dist/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..9ae9274826d5c88a117e385dbd984fa37ad2c6bd --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/dist/index.js" @@ -0,0 +1,2 @@ +(function(){var e={4933:function(e,t,n){var i=n(5001),a=n(6291),r=n(7073),o=i.TypeError;e.exports=function(e){if(a(e))return e;throw o(r(e)+" is not a function")}},9076:function(e,t,n){var i=n(5001),a=n(6291),r=i.String,o=i.TypeError;e.exports=function(e){if("object"==typeof e||a(e))return e;throw o("Can't set "+r(e)+" as a prototype")}},4905:function(e,t,n){var i=n(5001),a=n(2366),r=i.String,o=i.TypeError;e.exports=function(e){if(a(e))return e;throw o(r(e)+" is not an object")}},5029:function(e,t,n){var i=n(678),a=n(6971),r=n(4821),o=function(e){return function(t,n,o){var s,c=i(t),d=r(c),l=a(o,d);if(e&&n!=n){while(d>l)if(s=c[l++],s!=s)return!0}else for(;d>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},5489:function(e,t,n){var i=n(936),a=i({}.toString),r=i("".slice);e.exports=function(e){return r(a(e),8,-1)}},486:function(e,t,n){var i=n(5001),a=n(8171),r=n(6291),o=n(5489),s=n(6802),c=s("toStringTag"),d=i.Object,l="Arguments"==o(function(){return arguments}()),u=function(e,t){try{return e[t]}catch(n){}};e.exports=a?o:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=u(t=d(e),c))?n:l?o(t):"Object"==(i=o(t))&&r(t.callee)?"Arguments":i}},4086:function(e,t,n){var i=n(936),a=i("".replace),r=function(e){return String(Error(e).stack)}("zxcasd"),o=/\n\s*at [^:]*:[^\n]*/,s=o.test(r);e.exports=function(e,t){if(s&&"string"==typeof e)while(t--)e=a(e,o,"");return e}},6810:function(e,t,n){var i=n(8382),a=n(2466),r=n(8117),o=n(6462);e.exports=function(e,t,n){for(var s=a(t),c=o.f,d=r.f,l=0;l0&&i[0]<4?1:+(i[0]+i[1])),!a&&o&&(i=o.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=o.match(/Chrome\/(\d+)/),i&&(a=+i[1]))),e.exports=a},2089:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},7896:function(e,t,n){var i=n(5061),a=n(6034);e.exports=!i((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",a(1,7)),7!==e.stack)}))},9638:function(e,t,n){var i=n(5001),a=n(8117).f,r=n(430),o=n(6313),s=n(8506),c=n(6810),d=n(1092);e.exports=function(e,t){var n,l,u,f,v,p,m=e.target,g=e.global,h=e.stat;if(l=g?i:h?i[m]||s(m,{}):(i[m]||{}).prototype,l)for(u in t){if(v=t[u],e.noTargetGet?(p=a(l,u),f=p&&p.value):f=l[u],n=d(g?u:m+(h?".":"#")+u,e.forced),!n&&void 0!==f){if(typeof v==typeof f)continue;c(v,f)}(e.sham||f&&f.sham)&&r(v,"sham",!0),o(l,u,v,e)}}},5061:function(e){e.exports=function(e){try{return!!e()}catch(t){return!0}}},5494:function(e,t,n){var i=n(8483),a=Function.prototype,r=a.apply,o=a.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?o.bind(r):function(){return o.apply(r,arguments)})},8483:function(e,t,n){var i=n(5061);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},3927:function(e,t,n){var i=n(8483),a=Function.prototype.call;e.exports=i?a.bind(a):function(){return a.apply(a,arguments)}},9873:function(e,t,n){var i=n(1502),a=n(8382),r=Function.prototype,o=i&&Object.getOwnPropertyDescriptor,s=a(r,"name"),c=s&&"something"===function(){}.name,d=s&&(!i||i&&o(r,"name").configurable);e.exports={EXISTS:s,PROPER:c,CONFIGURABLE:d}},936:function(e,t,n){var i=n(8483),a=Function.prototype,r=a.bind,o=a.call,s=i&&r.bind(o,o);e.exports=i?function(e){return e&&s(e)}:function(e){return e&&function(){return o.apply(e,arguments)}}},3425:function(e,t,n){var i=n(5001),a=n(6291),r=function(e){return a(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?r(i[e]):i[e]&&i[e][t]}},3815:function(e,t,n){var i=n(4933);e.exports=function(e,t){var n=e[t];return null==n?void 0:i(n)}},5001:function(e,t,n){var i=function(e){return e&&e.Math==Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},8382:function(e,t,n){var i=n(936),a=n(7615),r=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return r(a(e),t)}},2499:function(e){e.exports={}},7788:function(e,t,n){var i=n(1502),a=n(5061),r=n(6009);e.exports=!i&&!a((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},2901:function(e,t,n){var i=n(5001),a=n(936),r=n(5061),o=n(5489),s=i.Object,c=a("".split);e.exports=r((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?c(e,""):s(e)}:s},3419:function(e,t,n){var i=n(6291),a=n(2366),r=n(2848);e.exports=function(e,t,n){var o,s;return r&&i(o=t.constructor)&&o!==n&&a(s=o.prototype)&&s!==n.prototype&&r(e,s),e}},685:function(e,t,n){var i=n(936),a=n(6291),r=n(9982),o=i(Function.toString);a(r.inspectSource)||(r.inspectSource=function(e){return o(e)}),e.exports=r.inspectSource},2946:function(e,t,n){var i=n(2366),a=n(430);e.exports=function(e,t){i(t)&&"cause"in t&&a(e,"cause",t.cause)}},684:function(e,t,n){var i,a,r,o=n(7650),s=n(5001),c=n(936),d=n(2366),l=n(430),u=n(8382),f=n(9982),v=n(1695),p=n(2499),m="Object already initialized",g=s.TypeError,h=s.WeakMap,k=function(e){return r(e)?a(e):i(e,{})},y=function(e){return function(t){var n;if(!d(t)||(n=a(t)).type!==e)throw g("Incompatible receiver, "+e+" required");return n}};if(o||f.state){var b=f.state||(f.state=new h),w=c(b.get),x=c(b.has),S=c(b.set);i=function(e,t){if(x(b,e))throw new g(m);return t.facade=e,S(b,e,t),t},a=function(e){return w(b,e)||{}},r=function(e){return x(b,e)}}else{var _=v("state");p[_]=!0,i=function(e,t){if(u(e,_))throw new g(m);return t.facade=e,l(e,_,t),t},a=function(e){return u(e,_)?e[_]:{}},r=function(e){return u(e,_)}}e.exports={set:i,get:a,has:r,enforce:k,getterFor:y}},6291:function(e){e.exports=function(e){return"function"==typeof e}},1092:function(e,t,n){var i=n(5061),a=n(6291),r=/#|\.prototype\./,o=function(e,t){var n=c[s(e)];return n==l||n!=d&&(a(t)?i(t):!!t)},s=o.normalize=function(e){return String(e).replace(r,".").toLowerCase()},c=o.data={},d=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},2366:function(e,t,n){var i=n(6291);e.exports=function(e){return"object"==typeof e?null!==e:i(e)}},13:function(e){e.exports=!1},6448:function(e,t,n){var i=n(5001),a=n(3425),r=n(6291),o=n(6282),s=n(7558),c=i.Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=a("Symbol");return r(t)&&o(t.prototype,c(e))}},4821:function(e,t,n){var i=n(4479);e.exports=function(e){return i(e.length)}},9262:function(e,t,n){var i=n(2821),a=n(5061);e.exports=!!Object.getOwnPropertySymbols&&!a((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},7650:function(e,t,n){var i=n(5001),a=n(6291),r=n(685),o=i.WeakMap;e.exports=a(o)&&/native code/.test(r(o))},9270:function(e,t,n){var i=n(9284);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:i(e)}},6462:function(e,t,n){var i=n(5001),a=n(1502),r=n(7788),o=n(5780),s=n(4905),c=n(1030),d=i.TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,f="enumerable",v="configurable",p="writable";t.f=a?o?function(e,t,n){if(s(e),t=c(t),s(n),"function"===typeof e&&"prototype"===t&&"value"in n&&p in n&&!n[p]){var i=u(e,t);i&&i[p]&&(e[t]=n.value,n={configurable:v in n?n[v]:i[v],enumerable:f in n?n[f]:i[f],writable:!1})}return l(e,t,n)}:l:function(e,t,n){if(s(e),t=c(t),s(n),r)try{return l(e,t,n)}catch(i){}if("get"in n||"set"in n)throw d("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},8117:function(e,t,n){var i=n(1502),a=n(3927),r=n(9265),o=n(6034),s=n(678),c=n(1030),d=n(8382),l=n(7788),u=Object.getOwnPropertyDescriptor;t.f=i?u:function(e,t){if(e=s(e),t=c(t),l)try{return u(e,t)}catch(n){}if(d(e,t))return o(!a(r.f,e,t),e[t])}},9219:function(e,t,n){var i=n(3855),a=n(2089),r=a.concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},2822:function(e,t){t.f=Object.getOwnPropertySymbols},6282:function(e,t,n){var i=n(936);e.exports=i({}.isPrototypeOf)},3855:function(e,t,n){var i=n(936),a=n(8382),r=n(678),o=n(5029).indexOf,s=n(2499),c=i([].push);e.exports=function(e,t){var n,i=r(e),d=0,l=[];for(n in i)!a(s,n)&&a(i,n)&&c(l,n);while(t.length>d)a(i,n=t[d++])&&(~o(l,n)||c(l,n));return l}},9265:function(e,t){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,a=i&&!n.call({1:2},1);t.f=a?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},2848:function(e,t,n){var i=n(936),a=n(4905),r=n(9076);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{e=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),e(n,[]),t=n instanceof Array}catch(o){}return function(n,i){return a(n),r(i),t?e(n,i):n.__proto__=i,n}}():void 0)},379:function(e,t,n){var i=n(5001),a=n(3927),r=n(6291),o=n(2366),s=i.TypeError;e.exports=function(e,t){var n,i;if("string"===t&&r(n=e.toString)&&!o(i=a(n,e)))return i;if(r(n=e.valueOf)&&!o(i=a(n,e)))return i;if("string"!==t&&r(n=e.toString)&&!o(i=a(n,e)))return i;throw s("Can't convert object to primitive value")}},2466:function(e,t,n){var i=n(3425),a=n(936),r=n(9219),o=n(2822),s=n(4905),c=a([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(s(e)),n=o.f;return n?c(t,n(e)):t}},6313:function(e,t,n){var i=n(5001),a=n(6291),r=n(8382),o=n(430),s=n(8506),c=n(685),d=n(684),l=n(9873).CONFIGURABLE,u=d.get,f=d.enforce,v=String(String).split("String");(e.exports=function(e,t,n,c){var d,u=!!c&&!!c.unsafe,p=!!c&&!!c.enumerable,m=!!c&&!!c.noTargetGet,g=c&&void 0!==c.name?c.name:t;a(n)&&("Symbol("===String(g).slice(0,7)&&(g="["+String(g).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!r(n,"name")||l&&n.name!==g)&&o(n,"name",g),d=f(n),d.source||(d.source=v.join("string"==typeof g?g:""))),e!==i?(u?!m&&e[t]&&(p=!0):delete e[t],p?e[t]=n:o(e,t,n)):p?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return a(this)&&u(this).source||c(this)}))},4475:function(e,t,n){var i=n(5001),a=i.TypeError;e.exports=function(e){if(void 0==e)throw a("Can't call method on "+e);return e}},8506:function(e,t,n){var i=n(5001),a=Object.defineProperty;e.exports=function(e,t){try{a(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},1695:function(e,t,n){var i=n(6809),a=n(1050),r=i("keys");e.exports=function(e){return r[e]||(r[e]=a(e))}},9982:function(e,t,n){var i=n(5001),a=n(8506),r="__core-js_shared__",o=i[r]||a(r,{});e.exports=o},6809:function(e,t,n){var i=n(13),a=n(9982);(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.21.0",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE",source:"https://github.com/zloirock/core-js"})},6971:function(e,t,n){var i=n(9398),a=Math.max,r=Math.min;e.exports=function(e,t){var n=i(e);return n<0?a(n+t,0):r(n,t)}},678:function(e,t,n){var i=n(2901),a=n(4475);e.exports=function(e){return i(a(e))}},9398:function(e){var t=Math.ceil,n=Math.floor;e.exports=function(e){var i=+e;return i!==i||0===i?0:(i>0?n:t)(i)}},4479:function(e,t,n){var i=n(9398),a=Math.min;e.exports=function(e){return e>0?a(i(e),9007199254740991):0}},7615:function(e,t,n){var i=n(5001),a=n(4475),r=i.Object;e.exports=function(e){return r(a(e))}},6973:function(e,t,n){var i=n(5001),a=n(3927),r=n(2366),o=n(6448),s=n(3815),c=n(379),d=n(6802),l=i.TypeError,u=d("toPrimitive");e.exports=function(e,t){if(!r(e)||o(e))return e;var n,i=s(e,u);if(i){if(void 0===t&&(t="default"),n=a(i,e,t),!r(n)||o(n))return n;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},1030:function(e,t,n){var i=n(6973),a=n(6448);e.exports=function(e){var t=i(e,"string");return a(t)?t:t+""}},8171:function(e,t,n){var i=n(6802),a=i("toStringTag"),r={};r[a]="z",e.exports="[object z]"===String(r)},9284:function(e,t,n){var i=n(5001),a=n(486),r=i.String;e.exports=function(e){if("Symbol"===a(e))throw TypeError("Cannot convert a Symbol value to a string");return r(e)}},7073:function(e,t,n){var i=n(5001),a=i.String;e.exports=function(e){try{return a(e)}catch(t){return"Object"}}},1050:function(e,t,n){var i=n(936),a=0,r=Math.random(),o=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++a+r,36)}},7558:function(e,t,n){var i=n(9262);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5780:function(e,t,n){var i=n(1502),a=n(5061);e.exports=i&&a((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},6802:function(e,t,n){var i=n(5001),a=n(6809),r=n(8382),o=n(1050),s=n(9262),c=n(7558),d=a("wks"),l=i.Symbol,u=l&&l["for"],f=c?l:l&&l.withoutSetter||o;e.exports=function(e){if(!r(d,e)||!s&&"string"!=typeof d[e]){var t="Symbol."+e;s&&r(l,e)?d[e]=l[e]:d[e]=c&&u?u(t):f(t)}return d[e]}},2971:function(e,t,n){"use strict";var i=n(3425),a=n(8382),r=n(430),o=n(6282),s=n(2848),c=n(6810),d=n(3419),l=n(9270),u=n(2946),f=n(4086),v=n(7896),p=n(13);e.exports=function(e,t,n,m){var g=m?2:1,h=e.split("."),k=h[h.length-1],y=i.apply(null,h);if(y){var b=y.prototype;if(!p&&a(b,"cause")&&delete b.cause,!n)return y;var w=i("Error"),x=t((function(e,t){var n=l(m?t:e,void 0),i=m?new y(e):new y;return void 0!==n&&r(i,"message",n),v&&r(i,"stack",f(i.stack,2)),this&&o(b,this)&&d(i,this,x),arguments.length>g&&u(i,arguments[g]),i}));if(x.prototype=b,"Error"!==k&&(s?s(x,w):c(x,w,{name:!0})),c(x,y),!p)try{b.name!==k&&r(b,"name",k),b.constructor=x}catch(S){}return x}}},2355:function(e,t,n){var i=n(9638),a=n(5001),r=n(5494),o=n(2971),s="WebAssembly",c=a[s],d=7!==Error("e",{cause:7}).cause,l=function(e,t){var n={};n[e]=o(e,t,d),i({global:!0,forced:d},n)},u=function(e,t){if(c&&c[e]){var n={};n[e]=o(s+"."+e,t,d),i({target:s,stat:!0,forced:d},n)}};l("Error",(function(e){return function(t){return r(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return r(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return r(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return r(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return r(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return r(e,this,arguments)}})),l("URIError",(function(e){return function(t){return r(e,this,arguments)}})),u("CompileError",(function(e){return function(t){return r(e,this,arguments)}})),u("LinkError",(function(e){return function(t){return r(e,this,arguments)}})),u("RuntimeError",(function(e){return function(t){return r(e,this,arguments)}}))},5657:function(e,t,n){"use strict";n.r(t);var i=n(6558),a=n.n(i),r=n(361),o=n.n(r),s=o()(a());s.push([e.id,".wrapper[data-v-65dbd49c]{height:100%;position:relative;padding:16px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between}.wrapper>*[data-v-65dbd49c]{flex:auto 0 0}.status[data-v-65dbd49c]{display:flex;flex-direction:row;align-items:center}.status>*[data-v-65dbd49c]{flex:auto 0 0}.status .icon[data-v-65dbd49c]{width:48px;height:48px}.status .icon[data-v-65dbd49c] .vue-ui-icon{width:32px;height:32px}.status .info[data-v-65dbd49c]{font-size:18px}.status-killed .status .icon[data-v-65dbd49c] svg{fill:#42b983!important}.status-error .status .icon[data-v-65dbd49c] svg{fill:#e83030!important}.actions[data-v-65dbd49c]{display:flex;flex-direction:row;align-items:center;justify-content:center}.actions>*[data-v-65dbd49c]{flex:auto 0 0}.input[data-v-65dbd49c]{flex:1;margin-right:16px}",""]),t["default"]=s},3846:function(e,t,n){"use strict";n.r(t);var i=n(6558),a=n.n(i),r=n(361),o=n.n(r),s=o()(a());s.push([e.id,".feed[data-v-3045caa8],.loading[data-v-3045caa8],.panes[data-v-3045caa8]{height:100%}.loading[data-v-3045caa8]{display:flex;flex-direction:row;align-items:center;justify-content:center}.loading>*[data-v-3045caa8]{flex:auto 0 0}.panes[data-v-3045caa8]{display:flex;align-items:stretch}.feed[data-v-3045caa8]{overflow-x:hidden;overflow-y:auto}.item-details[data-v-3045caa8],.select-tip[data-v-3045caa8]{flex:1;height:100%}.item-details[data-v-3045caa8]{overflow-x:hidden;overflow-y:auto}.item-details .back[data-v-3045caa8]{padding:16px}.select-tip[data-v-3045caa8]{display:flex;flex-direction:column;align-items:center;justify-content:center}.select-tip>*[data-v-3045caa8]{flex:auto 0 0}.error[data-v-3045caa8]{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-bottom:42px}.error>*[data-v-3045caa8]{flex:auto 0 0}.news[data-v-3045caa8]:not(.small){padding:8px 0 16px 16px}.news:not(.small) .feed[data-v-3045caa8]{width:400px;background:#f2faf7;border-radius:3px}.vue-ui-dark-mode .news:not(.small) .feed[data-v-3045caa8]{background:#2c3e50}.news.small .panes[data-v-3045caa8]{position:relative}.news.small .feed[data-v-3045caa8]{transition:transform .3s cubic-bezier(0,1,.32,1)}.news.small .item-details[data-v-3045caa8]{position:absolute;top:0;left:0;width:100%;transition:transform .15s ease-out;background:#fff}.vue-ui-dark-mode .news.small .item-details[data-v-3045caa8]{background:#1d2935}.news.small .item-details.v-enter-active[data-v-3045caa8],.news.small .item-details.v-enter-leave[data-v-3045caa8]{transition:transform .3s cubic-bezier(0,1,.32,1)}.news.small .item-details.v-enter[data-v-3045caa8],.news.small .item-details.v-leave-to[data-v-3045caa8]{transform:translateX(100%)}.news.small.has-item-selected .feed[data-v-3045caa8]{transform:translateX(-100%)}",""]),t["default"]=s},6963:function(e,t,n){"use strict";n.r(t);var i=n(6558),a=n.n(i),r=n(361),o=n.n(r),s=o()(a());s.push([e.id,".news-item[data-v-0997d45d]{padding:8px 16px 16px}.title[data-v-0997d45d]{margin-bottom:8px}.date[data-v-0997d45d],.snippet[data-v-0997d45d]{font-size:14px}.date[data-v-0997d45d]{opacity:.5}",""]),t["default"]=s},6694:function(e,t,n){"use strict";n.r(t);var i=n(6558),a=n.n(i),r=n(361),o=n.n(r),s=o()(a());s.push([e.id,".news-item-details[data-v-4696cc20]{padding:0 16px 16px;overflow-x:hidden;overflow-y:auto}.title[data-v-4696cc20]{font-size:18px;margin-bottom:8px}.date[data-v-4696cc20]{font-size:14px;opacity:.5}.content[data-v-4696cc20],.media[data-v-4696cc20]{margin-top:16px}.content[data-v-4696cc20] img,.content[data-v-4696cc20] video,.media-content[data-v-4696cc20]{max-width:100%;max-height:300px}",""]),t["default"]=s},5349:function(e,t,n){"use strict";n.r(t);var i=n(6558),a=n.n(i),r=n(361),o=n.n(r),s=o()(a());s.push([e.id,".info[data-v-06ea10ce]{margin:5px 0 6px;padding:16px}.info[data-v-06ea10ce] .name{font-size:18px}.actions[data-v-06ea10ce]{display:flex;flex-direction:row;align-items:center;justify-content:center}.actions>*[data-v-06ea10ce]{flex:auto 0 0}.actions[data-v-06ea10ce] >:not(:last-child){margin-right:8px}",""]),t["default"]=s},4884:function(e,t,n){"use strict";n.r(t);var i=n(6558),a=n.n(i),r=n(361),o=n.n(r),s=o()(a());s.push([e.id,".header[data-v-3c163aa4]{display:flex;flex-direction:row;align-items:center;padding:16px;margin:4px 0}.header>*[data-v-3c163aa4]{flex:auto 0 0}.icon-wrapper .icon[data-v-3c163aa4]{width:48px;height:48px}.icon-wrapper .icon[data-v-3c163aa4] .vue-ui-icon{width:32px;height:32px}.title[data-v-3c163aa4]{font-size:18px}.last-updated[data-v-3c163aa4]{color:#6a8bad;display:flex;flex-direction:row}.last-updated>*[data-v-3c163aa4]{flex:auto 0 0}.last-updated .label[data-v-3c163aa4]{margin-right:4px}.actions[data-v-3c163aa4]{display:flex;flex-direction:row;align-items:center;justify-content:center}.actions>*[data-v-3c163aa4]{flex:auto 0 0}.actions[data-v-3c163aa4] >:not(:last-child){margin-right:8px}.soon[data-v-3c163aa4]{display:flex;align-items:center;justify-content:center;height:100%}.soon .text[data-v-3c163aa4]{background:#42b983;color:#fff;padding:4px 14px;border-radius:13px;text-transform:lowercase;font-family:monospace;opacity:.5}",""]),t["default"]=s},3250:function(e,t,n){"use strict";n.r(t);var i=n(6558),a=n.n(i),r=n(361),o=n.n(r),s=o()(a());s.push([e.id,".vulnerability-details[data-v-3f9c54ec]{display:flex;flex-direction:column}.vulnerability-details>*[data-v-3f9c54ec]{flex:auto 0 0}.pane-toolbar[data-v-3f9c54ec]{padding-bottom:16px}.summary[data-v-3f9c54ec]{display:flex;padding-right:12px}.summary-item[data-v-3f9c54ec]{display:flex;align-items:center;margin-left:16px}.summary-item .count[data-v-3f9c54ec],.summary-item .vue-ui-icon[data-v-3f9c54ec]{margin-right:3px}.summary-item .count[data-v-3f9c54ec]{font-weight:700}.severity-danger[data-v-3f9c54ec]{color:#e83030}.severity-warning[data-v-3f9c54ec]{color:#ea6e00}.items[data-v-3f9c54ec]{flex:1}",""]),t["default"]=s},9734:function(e,t,n){"use strict";n.r(t);var i=n(6558),a=n.n(i),r=n(361),o=n.n(r),s=o()(a());s.push([e.id,".vulnerability-item[data-v-1de25bcf]{padding:16px;border-top:1px solid rgba(106,139,173,.2)}.wrapper[data-v-1de25bcf]{display:flex;flex-direction:row}.wrapper>*[data-v-1de25bcf]{flex:auto 0 0}.main-infos[data-v-1de25bcf]{flex:1}.name[data-v-1de25bcf]{font-weight:700}.title[data-v-1de25bcf]{cursor:help;border-bottom:1px dotted}.version[data-v-1de25bcf]{margin-left:4px;font-family:monospace;font-size:.9em}.severity[data-v-1de25bcf]{color:#2c3e50}.vue-ui-dark-mode .severity[data-v-1de25bcf]{color:#fff}.severity.danger[data-v-1de25bcf]{color:#e83030}.severity.warning[data-v-1de25bcf]{color:#ea6e00}.parents-list[data-v-1de25bcf]{margin-left:12px;width:50%}.parents[data-v-1de25bcf]{display:flex;flex-direction:row;margin:12px 0;flex-wrap:wrap;width:100%}.parents>*[data-v-1de25bcf]{flex:auto 0 0}.parent[data-v-1de25bcf]:not(:first-child){opacity:.7}.separator-icon[data-v-1de25bcf] svg{fill:#6a8bad}.vue-ui-empty[data-v-1de25bcf]{padding:0}.info-versions[data-v-1de25bcf]{margin-top:4px}.info-version[data-v-1de25bcf]{display:flex;align-items:baseline;margin-top:2px}.info-version .vue-ui-icon[data-v-1de25bcf]{margin-right:4px;opacity:.5}.info-version .version[data-v-1de25bcf]{margin-left:8px}.recommendation[data-v-1de25bcf]{margin:8px 0;display:inline-flex;align-items:center}",""]),t["default"]=s},8151:function(e,t,n){"use strict";n.r(t);var i=n(6558),a=n.n(i),r=n(361),o=n.n(r),s=o()(a());s.push([e.id,".welcome[data-v-37af615a]{padding:16px;display:flex;flex-direction:column}.welcome>*[data-v-37af615a]{flex:auto 0 0}.logo-wrapper[data-v-37af615a]{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:16px 0}.logo-wrapper>*[data-v-37af615a]{flex:auto 0 0}.logo-wrapper .logo[data-v-37af615a]{width:100px;height:100px}.title[data-v-37af615a]{font-size:32px;font-weight:300;text-align:center;margin-bottom:32px}.tips[data-v-37af615a]{flex:1}.tip[data-v-37af615a]{padding:32px;display:flex;flex-direction:row;align-items:center;justify-content:center}.tip>*[data-v-37af615a]{flex:auto 0 0}.tip .icon[data-v-37af615a] svg{fill:rgba(66,185,131,.7)!important}.tip .message[data-v-37af615a]{flex:1;margin-left:8px}.actions[data-v-37af615a]{display:flex;flex-direction:row;align-items:center;justify-content:center;margin-bottom:16px}.actions>*[data-v-37af615a]{flex:auto 0 0}",""]),t["default"]=s},361:function(e){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",i="undefined"!==typeof t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,a,r){"string"===typeof e&&(e=[[null,e,void 0]]);var o={};if(i)for(var s=0;s0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=r),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),a&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=a):l[4]="".concat(a)),t.push(l))}},t}},6558:function(e){"use strict";e.exports=function(e){return e[1]}},483:function(e){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"promptChoice"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PromptChoice"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"checked"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"disabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isDefault"},arguments:[],directives:[]}]}}],loc:{start:0,end:90}};t.loc.source={body:"fragment promptChoice on PromptChoice {\n value\n name\n checked\n disabled\n isDefault\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};function a(e,t){for(var n=0;n0){var c=s;s=new Set,c.forEach((function(e){if(!o.has(e)){o.add(e);var t=i[e]||new Set;t.forEach((function(e){s.add(e)}))}}))}return o.forEach((function(t){var i=a(e,t);i&&n.definitions.push(i)})),n}(function(){t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}}))})(),e.exports=t,e.exports.promptChoice=r(t,"promptChoice")},4616:function(e){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"promptError"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PromptError"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]}]}}],loc:{start:0,end:57}};t.loc.source={body:"fragment promptError on PromptError {\n message\n link\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};function a(e,t){for(var n=0;n0){var c=s;s=new Set,c.forEach((function(e){if(!o.has(e)){o.add(e);var t=i[e]||new Set;t.forEach((function(e){s.add(e)}))}}))}return o.forEach((function(t){var i=a(e,t);i&&n.definitions.push(i)})),n}(function(){t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}}))})(),e.exports=t,e.exports.promptError=r(t,"promptError")},494:function(e,t,n){var i={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"prompt"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Prompt"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"visible"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"enabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"group"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"choices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"promptChoice"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"valueChanged"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"promptError"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"tabId"},arguments:[],directives:[]}]}}],loc:{start:0,end:282}};i.loc.source={body:'#import "./promptChoiceFragment.gql"\n#import "./promptErrorFragment.gql"\n\nfragment prompt on Prompt {\n id\n type\n visible\n enabled\n name\n message\n group\n description\n link\n choices {\n ...promptChoice\n }\n value\n valueChanged\n error {\n ...promptError\n }\n tabId\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function r(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)}))}function o(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){o(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){o(e,t)})),e.definitions&&e.definitions.forEach((function(e){o(e,t)}))}i.definitions=i.definitions.concat(r(n(483).definitions)),i.definitions=i.definitions.concat(r(n(4616).definitions));var s={};function c(e,t){for(var n=0;n0){var o=r;r=new Set,o.forEach((function(e){if(!a.has(e)){a.add(e);var t=s[e]||new Set;t.forEach((function(e){r.add(e)}))}}))}return a.forEach((function(t){var i=c(e,t);i&&n.definitions.push(i)})),n}(function(){i.definitions.forEach((function(e){if(e.name){var t=new Set;o(e,t),s[e.name.value]=t}}))})(),e.exports=i,e.exports.prompt=d(i,"prompt")},6875:function(e,t,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"task"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"task"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"task"},directives:[]},{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"prompts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"prompt"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"views"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"component"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"defaultView"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:257}};i.loc.source={body:'#import "./taskFragment.gql"\n#import "../prompt/promptFragment.gql"\n\nquery task ($id: ID!) {\n task (id: $id) {\n ...task\n link\n prompts {\n ...prompt\n }\n views {\n id\n label\n icon\n component\n }\n defaultView\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function r(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)}))}function o(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){o(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){o(e,t)})),e.definitions&&e.definitions.forEach((function(e){o(e,t)}))}i.definitions=i.definitions.concat(r(n(4718).definitions)),i.definitions=i.definitions.concat(r(n(494).definitions));var s={};function c(e,t){for(var n=0;n0){var o=r;r=new Set,o.forEach((function(e){if(!a.has(e)){a.add(e);var t=s[e]||new Set;t.forEach((function(e){r.add(e)}))}}))}return a.forEach((function(t){var i=c(e,t);i&&n.definitions.push(i)})),n}(function(){i.definitions.forEach((function(e){if(e.name){var t=new Set;o(e,t),s[e.name.value]=t}}))})(),e.exports=i,e.exports.task=d(i,"task")},3623:function(e,t,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"taskChanged"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taskChanged"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"task"},directives:[]}]}}]}}],loc:{start:0,end:91}};i.loc.source={body:'#import "./taskFragment.gql"\n\nsubscription taskChanged {\n taskChanged {\n ...task\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function r(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)}))}function o(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){o(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){o(e,t)})),e.definitions&&e.definitions.forEach((function(e){o(e,t)}))}i.definitions=i.definitions.concat(r(n(4718).definitions));var s={};function c(e,t){for(var n=0;n0){var o=r;r=new Set,o.forEach((function(e){if(!a.has(e)){a.add(e);var t=s[e]||new Set;t.forEach((function(e){r.add(e)}))}}))}return a.forEach((function(t){var i=c(e,t);i&&n.definitions.push(i)})),n}(function(){i.definitions.forEach((function(e){if(e.name){var t=new Set;o(e,t),s[e.name.value]=t}}))})(),e.exports=i,e.exports.taskChanged=d(i,"taskChanged")},4718:function(e){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"task"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Task"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"command"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"plugin"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"project"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:132}};t.loc.source={body:"fragment task on Task {\n id\n status\n name\n command\n description\n icon\n plugin {\n id\n logo\n }\n project {\n id\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function n(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&t.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){n(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){n(e,t)})),e.definitions&&e.definitions.forEach((function(e){n(e,t)}))}var i={};function a(e,t){for(var n=0;n0){var c=s;s=new Set,c.forEach((function(e){if(!o.has(e)){o.add(e);var t=i[e]||new Set;t.forEach((function(e){s.add(e)}))}}))}return o.forEach((function(t){var i=a(e,t);i&&n.definitions.push(i)})),n}(function(){t.definitions.forEach((function(e){if(e.name){var t=new Set;n(e,t),i[e.name.value]=t}}))})(),e.exports=t,e.exports.task=r(t,"task")},8618:function(e,t,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"taskRun"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taskRun"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"task"},directives:[]}]}}]}}],loc:{start:0,end:100}};i.loc.source={body:'#import "./taskFragment.gql"\n\nmutation taskRun ($id: ID!) {\n taskRun (id: $id) {\n ...task\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function r(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)}))}function o(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){o(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){o(e,t)})),e.definitions&&e.definitions.forEach((function(e){o(e,t)}))}i.definitions=i.definitions.concat(r(n(4718).definitions));var s={};function c(e,t){for(var n=0;n0){var o=r;r=new Set,o.forEach((function(e){if(!a.has(e)){a.add(e);var t=s[e]||new Set;t.forEach((function(e){r.add(e)}))}}))}return a.forEach((function(t){var i=c(e,t);i&&n.definitions.push(i)})),n}(function(){i.definitions.forEach((function(e){if(e.name){var t=new Set;o(e,t),s[e.name.value]=t}}))})(),e.exports=i,e.exports.taskRun=d(i,"taskRun")},4322:function(e,t,n){var i={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"taskStop"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taskStop"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"task"},directives:[]}]}}]}}],loc:{start:0,end:102}};i.loc.source={body:'#import "./taskFragment.gql"\n\nmutation taskStop ($id: ID!) {\n taskStop (id: $id) {\n ...task\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function r(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var t=e.name.value;return!a[t]&&(a[t]=!0,!0)}))}function o(e,t){if("FragmentSpread"===e.kind)t.add(e.name.value);else if("VariableDefinition"===e.kind){var n=e.type;"NamedType"===n.kind&&t.add(n.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){o(e,t)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){o(e,t)})),e.definitions&&e.definitions.forEach((function(e){o(e,t)}))}i.definitions=i.definitions.concat(r(n(4718).definitions));var s={};function c(e,t){for(var n=0;n0){var o=r;r=new Set,o.forEach((function(e){if(!a.has(e)){a.add(e);var t=s[e]||new Set;t.forEach((function(e){r.add(e)}))}}))}return a.forEach((function(t){var i=c(e,t);i&&n.definitions.push(i)})),n}(function(){i.definitions.forEach((function(e){if(e.name){var t=new Set;o(e,t),s[e.name.value]=t}}))})(),e.exports=i,e.exports.taskStop=d(i,"taskStop")},6378:function(e,t,n){var i=n(5657);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(5440).Z;a("b6c4a878",i,!0,{sourceMap:!1,shadowMode:!1})},2302:function(e,t,n){var i=n(3846);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(5440).Z;a("7e50c120",i,!0,{sourceMap:!1,shadowMode:!1})},7717:function(e,t,n){var i=n(6963);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(5440).Z;a("5bcd6253",i,!0,{sourceMap:!1,shadowMode:!1})},3219:function(e,t,n){var i=n(6694);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(5440).Z;a("daf75390",i,!0,{sourceMap:!1,shadowMode:!1})},8837:function(e,t,n){var i=n(5349);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(5440).Z;a("71cf15fa",i,!0,{sourceMap:!1,shadowMode:!1})},6015:function(e,t,n){var i=n(4884);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(5440).Z;a("9ded4bfa",i,!0,{sourceMap:!1,shadowMode:!1})},1890:function(e,t,n){var i=n(3250);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(5440).Z;a("5f037432",i,!0,{sourceMap:!1,shadowMode:!1})},8764:function(e,t,n){var i=n(9734);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(5440).Z;a("77c1e06a",i,!0,{sourceMap:!1,shadowMode:!1})},1118:function(e,t,n){var i=n(8151);i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.id,i,""]]),i.locals&&(e.exports=i.locals);var a=n(5440).Z;a("a7b180de",i,!0,{sourceMap:!1,shadowMode:!1})},5440:function(e,t,n){"use strict";function i(e,t){for(var n=[],i={},a=0;an.parts.length&&(i.parts.length=n.parts.length)}else{var o=[];for(a=0;a{this.status="idle"}),3e3))}},methods:{kill(){clearTimeout(this.$_statusTimer),this.$callPluginAction("org.vue.widgets.actions.kill-port",{port:this.port})}}},f=u,v=(n(6378),r(f,c,d,!1,null,"65dbd49c",null)),p=v.exports,m=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"plugin-updates"},[e.status?n("StatusWidget",{attrs:{icon:e.icons[e.status.status],"icon-class":e.iconClasses[e.status.status],title:e.$t("org.vue.widgets.plugin-updates.messages."+e.status.status),status:e.status},on:{check:function(t){return e.checkForUpdates()}}},[n("template",{slot:"more-actions"},[n("VueButton",{attrs:{to:{name:"project-plugins"},label:e.$t("org.vue.widgets.plugin-updates.page"),"icon-left":"extension"}})],1)],2):e._e()],1)},g=[];const h={ok:"check_circle",loading:"hourglass_full",attention:"error"},k={ok:"success",loading:"",attention:"warning"};var y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.implemented?n("div",{staticClass:"status-widget"},[n("div",{staticClass:"header"},[n("div",{staticClass:"icon-wrapper"},[n("ItemLogo",{staticClass:"icon",class:e.iconClass,attrs:{image:e.icon}})],1),n("div",{staticClass:"info"},[n("div",{staticClass:"title",domProps:{innerHTML:e._s(e.title)}}),n("div",{staticClass:"last-updated"},[e.status.lastUpdate?[n("div",{staticClass:"label"},[e._v(" "+e._s(e.message||e.$t("org.vue.widgets.status-widget.last-updated"))+" ")]),e.message?e._e():n("VueTimeago",{attrs:{datetime:e.status.lastUpdate,"auto-update":60}})]:n("div",{staticClass:"label"},[e._v(" "+e._s(e.$t("org.vue.widgets.status-widget.never"))+" ")])],2)])]),n("div",{staticClass:"actions"},[e._t("actions",(function(){return["attention"===e.status.status?n("VueButton",{attrs:{label:e.$t("org.vue.widgets.status-widget.more-info"),"icon-left":"add_circle"},on:{click:function(t){return e.widget.openDetails()}}}):e._e(),e._t("more-actions")]}))],2)]):n("div",{staticClass:"status-widget soon"},[n("div",{staticClass:"text"},[e._v("Available Soon")])])},b=[],w={inject:["widget"],props:{icon:{type:String,required:!0},iconClass:{type:[String,Array,Object],default:void 0},title:{type:String,required:!0},status:{type:Object,required:!0},message:{type:String,default:null},implemented:{type:Boolean,default:!1}},created(){}},x=w,S=(n(6015),r(x,y,b,!1,null,"3c163aa4",null)),_=S.exports,C={components:{StatusWidget:_},sharedData(){return mapSharedData("org.vue.widgets.plugin-updates.",{status:"status"})},created(){this.icons=h,this.iconClasses=k},methods:{checkForUpdates(){}}},E=C,N=r(E,m,g,!1,null,null,null),F=N.exports,D=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dependency-updates"},[e.status?n("StatusWidget",{attrs:{icon:e.icons[e.status.status],"icon-class":e.iconClasses[e.status.status],title:e.$t("org.vue.widgets.dependency-updates.messages."+e.status.status),status:e.status},on:{check:function(t){return e.checkForUpdates()}}},[n("template",{slot:"more-actions"},[n("VueButton",{attrs:{to:{name:"project-dependencies"},label:e.$t("org.vue.widgets.dependency-updates.page"),"icon-left":"collections_bookmark"}})],1)],2):e._e()],1)},O=[],j={components:{StatusWidget:_},sharedData(){return mapSharedData("org.vue.widgets.dependency-updates.",{status:"status"})},created(){this.icons=h,this.iconClasses=k},methods:{checkForUpdates(){}}},T=j,I=r(T,D,O,!1,null,null,null),$=I.exports,M=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vulnerability"},[e.status?n("StatusWidget",{attrs:{icon:"attention"===e.status.status?e.severity.icon:e.icons[e.status.status],"icon-class":"attention"===e.status.status?e.severity.class:e.iconClasses[e.status.status],title:e.$t("org.vue.widgets.vulnerability.messages."+e.status.status,{n:e.status.count}),status:e.status,message:e.status.message,implemented:""},on:{check:function(t){return e.checkForUpdates()}},scopedSlots:e._u([{key:"more-actions",fn:function(){return["loading"!==e.status.status?n("VueButton",{attrs:{label:e.$t("org.vue.widgets.vulnerability.recheck"),"icon-left":"refresh"},on:{click:function(t){return e.refresh()}}}):e._e()]},proxy:!0}],null,!1,2357575406)}):e._e()],1)},P=[];const V={ok:"verified_user",loading:"hourglass_empty",attention:"error",error:"error"},A={critical:{class:"danger",icon:"new_releases"},high:{class:"danger",icon:"error"},moderate:{class:"warning",icon:"error"},low:{class:"",icon:"error"}};var L={components:{StatusWidget:_},sharedData(){return mapSharedData("org.vue.widgets.vulnerability.",{status:"status"})},computed:{severity(){return this.status&&A[this.status.severity]}},created(){this.icons=V,this.iconClasses=k},methods:{refresh(){this.$callPluginAction("org.vue.widgets.actions.check-vunerability")}}},z=L,q=r(z,M,P,!1,null,null,null),R=q.exports,B=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vulnerability-details"},[e.details?[n("div",{staticClass:"pane-toolbar"},[n("div",{staticClass:"title"},[e._v(" "+e._s(e.$t("org.vue.widgets.vulnerability.messages.attention",{n:e.details.vulnerabilities.length}))+" ")]),n("div",{staticClass:"summary"},e._l(e.severities,(function(t,i){return n("div",{key:i,staticClass:"summary-item",class:"severity-"+t.class},[n("VueIcon",{class:t.class,attrs:{icon:t.icon}}),n("span",{staticClass:"count"},[e._v(e._s(e.details.summary[i]))]),e._v(" "+e._s(e.$t("org.vue.widgets.vulnerability.severity."+i))+" ")],1)})),0)]),n("transition",{attrs:{name:"vue-ui-fade"}},[e.showList?n("DynamicScroller",{ref:"scroller",staticClass:"items",attrs:{items:e.details.vulnerabilities,"min-item-size":75},scopedSlots:e._u([{key:"default",fn:function(t){var i=t.item,a=t.active;return[n("DynamicScrollerItem",{attrs:{item:i,active:a,"size-dependencies":[e.showMoreParentsMap[i.id]]}},[n("VulnerabilityItem",{attrs:{item:i,"show-more-parents":e.showMoreParentsMap[i.id]},on:{"toggle-more-parents":function(t){return e.$set(e.showMoreParentsMap,i.id,!e.showMoreParentsMap[i.id])}}})],1)]}}],null,!1,2224917729)}):e._e()],1)]:n("div",{staticClass:"loading"},[n("VueLoadingIndicator")],1)],2)},U=[],G=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vulnerability-item list-item"},[n("div",{staticClass:"wrapper"},[n("ItemLogo",{class:e.severity.class,attrs:{image:e.severity.icon}}),n("div",{staticClass:"main-infos"},[n("ListItemInfo",{attrs:{link:e.item.moreInfo}},[n("template",{slot:"name"},[n("span",{staticClass:"name"},[e._v(e._s(e.item.name))]),n("span",{staticClass:"version"},[e._v(e._s(e.item.version))])]),n("template",{slot:"description"},[n("span",{staticClass:"severity",class:e.severity.class},[e._v(" "+e._s(e.$t("org.vue.widgets.vulnerability.severity."+e.item.severity))+" ")]),n("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.item.message,expression:"item.message"}],staticClass:"title"},[e._v(" "+e._s(e.item.title)+" ")])])],2),n("div",{staticClass:"info-versions"},[n("div",{staticClass:"info-version"},[n("VueIcon",{attrs:{icon:"error"}}),e._v(" "+e._s(e.$t("org.vue.widgets.vulnerability.versions.vulnerable"))+" "),n("span",{staticClass:"version"},[e._v(e._s(e.item.versions.vulnerable))])],1),n("div",{staticClass:"info-version"},[n("VueIcon",{attrs:{icon:"check_circle"}}),e._v(" "+e._s(e.$t("org.vue.widgets.vulnerability.versions.patched"))+" "),n("span",{staticClass:"version"},[e._v(e._s(e.item.versions.patched))])],1)]),n("div",{staticClass:"recommendation vue-ui-text success banner"},[n("VueIcon",{staticClass:"big",attrs:{icon:"arrow_forward"}}),e._v(" "+e._s(e.item.recommendation)+" ")],1)],1),n("div",{staticClass:"parents-list"},[e._l(e.displayedParents,(function(t,i){return n("div",{key:i,staticClass:"parents"},[t.length?[e._l(t,(function(t,i){return n("div",{key:i,staticClass:"parent"},[n("span",{staticClass:"name"},[e._v(e._s(t.name))]),n("VueIcon",{staticClass:"separator-icon medium",attrs:{icon:"chevron_right"}})],1)})),n("div",{staticClass:"parent current"},[n("span",{staticClass:"name"},[e._v(e._s(e.item.name))])])]:n("div",{staticClass:"vue-ui-empty"},[e._v(" "+e._s(e.$t("org.vue.widgets.vulnerability.direct-dep"))+" ")])],2)})),e.item.parents.length>3?n("div",{staticClass:"show-more"},[n("VueButton",{staticClass:"flat",attrs:{"icon-left":e.showMoreParents?"expand_less":"expand_more"},on:{click:function(t){return e.$emit("toggle-more-parents")}}},[e._v(" "+e._s(e.$t("org.vue.common.show-"+(e.showMoreParents?"less":"more")))+" ")])],1):e._e()],2)],1)])},W=[],Z={props:{item:{type:Object,required:!0},showMoreParents:{type:Boolean}},computed:{severity(){return A[this.item.severity]},displayedParents(){return this.showMoreParents?this.item.parents:this.item.parents.slice(0,3)}}},Q=Z,X=(n(8764),r(Q,G,W,!1,null,"1de25bcf",null)),H=X.exports,J={components:{VulnerabilityItem:H},sharedData(){return mapSharedData("org.vue.widgets.vulnerability.",{details:"details"})},data(){return{showList:!1,showMoreParentsMap:{}}},created(){this.severities=A},mounted(){setTimeout((()=>{this.showList=!0}),200)}},K=J,Y=(n(1890),r(K,B,U,!1,null,"3f9c54ec",null)),ee=Y.exports,te=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"run-task"},[e.task?[n("TaskItem",{staticClass:"info",attrs:{task:e.task}}),n("div",{staticClass:"actions"},["running"!==e.task.status?n("VueButton",{staticClass:"primary",attrs:{"icon-left":"play_arrow",label:e.$t("org.vue.views.project-task-details.actions.play")},on:{click:function(t){return e.runTask()}}}):n("VueButton",{staticClass:"primary",attrs:{"icon-left":"stop",label:e.$t("org.vue.views.project-task-details.actions.stop")},on:{click:function(t){return e.stopTask()}}}),n("VueButton",{attrs:{"icon-left":"assignment",label:e.$t("org.vue.widgets.run-task.page"),to:{name:"project-task-details",params:{id:e.taskId}}}})],1)]:e._e()],2)},ne=[],ie=n(6875),ae=n.n(ie),re=n(8618),oe=n.n(re),se=n(4322),ce=n.n(se),de=n(3623),le=n.n(de),ue={inject:["widget"],apollo:{task:{query:ae(),variables(){return{id:this.taskId}}},$subscribe:{taskChanged:{query:le()}}},computed:{taskId(){return this.widget.data.config.task}},methods:{runTask(){this.$apollo.mutate({mutation:oe(),variables:{id:this.taskId}})},stopTask(){this.$apollo.mutate({mutation:ce(),variables:{id:this.taskId}})}}},fe=ue,ve=(n(8837),r(fe,te,ne,!1,null,"06ea10ce",null)),pe=ve.exports,me=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"news",class:{details:e.widget.isDetails,small:e.small,"has-item-selected":e.selectedItem}},[e.loading?n("div",{staticClass:"loading"},[n("VueLoadingIndicator")],1):e.error?n("div",{staticClass:"error vue-ui-empty"},[n("VueIcon",{staticClass:"huge",attrs:{icon:e.errorData.icon}}),n("div",[e._v(e._s(e.$t("org.vue.widgets.news.errors."+e.error)))])],1):n("div",{staticClass:"panes"},[n("div",{staticClass:"feed"},e._l(e.feed.items,(function(t,i){return n("NewsItem",{key:i,class:{selected:e.selectedItem===t},attrs:{item:t},nativeOn:{click:function(n){e.selectedItem=t}}})})),1),n("transition",[e.selectedItem?n("div",{staticClass:"item-details"},[e.small?n("div",{staticClass:"back"},[n("VueButton",{attrs:{"icon-left":"arrow_back",label:e.$t("org.vue.common.back")},on:{click:function(t){e.selectedItem=null}}})],1):e._e(),e.selectedItem?n("NewsItemDetails",{attrs:{item:e.selectedItem}}):e._e()],1):e.small?e._e():n("div",{staticClass:"select-tip vue-ui-empty"},[n("VueIcon",{staticClass:"huge",attrs:{icon:"rss_feed"}}),n("div",[e._v(e._s(e.$t("org.vue.widgets.news.select-tip")))])],1)])],1)])},ge=[],he=(n(2355),function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"news-item list-item"},[n("div",{staticClass:"info"},[n("div",{staticClass:"head"},[n("div",{staticClass:"title"},[n("a",{attrs:{href:e.item.link,target:"_blank",rel:"noopener noreferrer"},on:{click:function(e){e.stopPropagation()}}},[e._v(" "+e._s(e.item.title)+" ")])]),n("div",{staticClass:"snippet"},[e._v(e._s(e.snippet))]),n("div",{staticClass:"date"},[e._v(e._s(e._f("date")(e.item.pubDate)))])])])])}),ke=[],ye={props:{item:{type:Object,required:!0}},computed:{snippet(){const e=this.item.contentSnippet;return e.length>200?e.substr(0,197)+"...":e}}},be=ye,we=(n(7717),r(be,he,ke,!1,null,"0997d45d",null)),xe=we.exports,Se=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"news-item-details"},[n("div",{staticClass:"head"},[n("div",{staticClass:"title"},[n("a",{attrs:{href:e.item.link,target:"_blank",rel:"noopener noreferrer"}},[e._v(" "+e._s(e.item.title)+" ")])]),n("div",{staticClass:"date"},[e._v(e._s(e._f("date")(e.item.pubDate)))])]),n("div",{staticClass:"content",domProps:{innerHTML:e._s(e.item["content:encoded"]||e.item.content)}}),e.item.enclosure?n("div",{staticClass:"media"},[0===e.item.enclosure.type.indexOf("image/")?n("img",{staticClass:"image media-content",attrs:{src:e.item.enclosure.url}}):e._e(),0===e.item.enclosure.type.indexOf("audio/")?n("audio",{attrs:{src:e.item.enclosure.url,controls:""}}):e._e(),0===e.item.enclosure.type.indexOf("video/")?n("video",{attrs:{src:e.item.enclosure.url,controls:""}}):e._e()]):e._e()])},_e=[],Ce={props:{item:{type:Object,required:!0}}},Ee=Ce,Ne=(n(3219),r(Ee,Se,_e,!1,null,"4696cc20",null)),Fe=Ne.exports;const De={fetch:{icon:"error"},offline:{icon:"cloud_off"},empty:{icon:"cake"}};var Oe={components:{NewsItem:xe,NewsItemDetails:Fe},inject:["widget"],data(){return{loading:!1,feed:null,error:null,selectedItem:null}},computed:{errorData(){if(this.error)return De[this.error]},small(){return!this.widget.isDetails&&this.widget.data.width<5}},watch:{"widget.data.config.url":{handler(){this.fetchFeed()},immediate:!0}},created(){this.widget.addHeaderAction({id:"refresh",icon:"refresh",tooltip:"org.vue.widgets.news.refresh",disabled:()=>this.loading,onCalled:()=>{this.fetchFeed(!0)}})},methods:{async fetchFeed(e=!1){if(this.selectedItem=null,!navigator.onLine)return this.loading=!1,void(this.error="offline");this.loading=!0,this.error=!1,this.widget.customTitle=null;try{const{results:t,errors:n}=await this.$callPluginAction("org.vue.widgets.actions.fetch-news",{url:this.widget.data.config.url,force:e});if(n.length&&n[0])throw new Error(n[0]);this.feed=t[0],this.feed.items.length||(this.error="empty"),this.widget.customTitle=this.feed.title}catch(t){this.error="fetch",console.error(t)}this.loading=!1}}},je=Oe,Te=(n(2302),r(je,me,ge,!1,null,"3045caa8",null)),Ie=Te.exports;ClientAddonApi.component("org.vue.widgets.components.welcome",s),ClientAddonApi.component("org.vue.widgets.components.kill-port",p),ClientAddonApi.component("org.vue.widgets.components.plugin-updates",F),ClientAddonApi.component("org.vue.widgets.components.dependency-updates",$),ClientAddonApi.component("org.vue.widgets.components.vulnerability",R),ClientAddonApi.component("org.vue.widgets.components.vulnerability-details",ee),ClientAddonApi.component("org.vue.widgets.components.run-task",pe),ClientAddonApi.component("org.vue.widgets.components.news",Ie)}()})(); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/dist/index.js.map" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/dist/index.js.map" new file mode 100644 index 0000000000000000000000000000000000000000..a060bb1062dff2c38fc64f50bad5d470b6dc8cfa --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/dist/index.js.map" @@ -0,0 +1 @@ +{"version":3,"file":"index.js","mappings":"wCAAA,IAAIA,EAAS,EAAQ,MACjBC,EAAa,EAAQ,MACrBC,EAAc,EAAQ,MAEtBC,EAAYH,EAAOG,UAGvBC,EAAOC,QAAU,SAAUC,GACzB,GAAIL,EAAWK,GAAW,OAAOA,EACjC,MAAMH,EAAUD,EAAYI,GAAY,wB,qBCT1C,IAAIN,EAAS,EAAQ,MACjBC,EAAa,EAAQ,MAErBM,EAASP,EAAOO,OAChBJ,EAAYH,EAAOG,UAEvBC,EAAOC,QAAU,SAAUC,GACzB,GAAuB,iBAAZA,GAAwBL,EAAWK,GAAW,OAAOA,EAChE,MAAMH,EAAU,aAAeI,EAAOD,GAAY,qB,qBCRpD,IAAIN,EAAS,EAAQ,MACjBQ,EAAW,EAAQ,MAEnBD,EAASP,EAAOO,OAChBJ,EAAYH,EAAOG,UAGvBC,EAAOC,QAAU,SAAUC,GACzB,GAAIE,EAASF,GAAW,OAAOA,EAC/B,MAAMH,EAAUI,EAAOD,GAAY,uB,qBCTrC,IAAIG,EAAkB,EAAQ,KAC1BC,EAAkB,EAAQ,MAC1BC,EAAoB,EAAQ,MAG5BC,EAAe,SAAUC,GAC3B,OAAO,SAAUC,EAAOC,EAAIC,GAC1B,IAGIC,EAHAC,EAAIT,EAAgBK,GACpBK,EAASR,EAAkBO,GAC3BE,EAAQV,EAAgBM,EAAWG,GAIvC,GAAIN,GAAeE,GAAMA,GAAI,MAAOI,EAASC,EAG3C,GAFAH,EAAQC,EAAEE,KAENH,GAASA,EAAO,OAAO,OAEtB,KAAME,EAASC,EAAOA,IAC3B,IAAKP,GAAeO,KAASF,IAAMA,EAAEE,KAAWL,EAAI,OAAOF,GAAeO,GAAS,EACnF,OAAQP,IAAgB,IAI9BT,EAAOC,QAAU,CAGfgB,SAAUT,GAAa,GAGvBU,QAASV,GAAa,K,qBC9BxB,IAAIW,EAAc,EAAQ,KAEtBC,EAAWD,EAAY,GAAGC,UAC1BC,EAAcF,EAAY,GAAGG,OAEjCtB,EAAOC,QAAU,SAAUsB,GACzB,OAAOF,EAAYD,EAASG,GAAK,GAAI,K,oBCNvC,IAAI3B,EAAS,EAAQ,MACjB4B,EAAwB,EAAQ,MAChC3B,EAAa,EAAQ,MACrB4B,EAAa,EAAQ,MACrBC,EAAkB,EAAQ,MAE1BC,EAAgBD,EAAgB,eAChCE,EAAShC,EAAOgC,OAGhBC,EAAuE,aAAnDJ,EAAW,WAAc,OAAOK,UAArB,IAG/BC,EAAS,SAAUR,EAAIS,GACzB,IACE,OAAOT,EAAGS,GACV,MAAOC,MAIXjC,EAAOC,QAAUuB,EAAwBC,EAAa,SAAUF,GAC9D,IAAIT,EAAGoB,EAAKC,EACZ,YAAcC,IAAPb,EAAmB,YAAqB,OAAPA,EAAc,OAEM,iBAAhDW,EAAMH,EAAOjB,EAAIc,EAAOL,GAAKI,IAA8BO,EAEnEL,EAAoBJ,EAAWX,GAEH,WAA3BqB,EAASV,EAAWX,KAAmBjB,EAAWiB,EAAEuB,QAAU,YAAcF,I,qBC5BnF,IAAIhB,EAAc,EAAQ,KAEtBmB,EAAUnB,EAAY,GAAGmB,SAEzBC,EAAO,SAAWC,GAAO,OAAOrC,OAAOsC,MAAMD,GAAKE,OAA3C,CAAsD,UAC7DC,EAA2B,uBAC3BC,EAAwBD,EAAyBE,KAAKN,GAE1DvC,EAAOC,QAAU,SAAUyC,EAAOI,GAChC,GAAIF,GAAyC,iBAATF,EAClC,MAAOI,IAAeJ,EAAQJ,EAAQI,EAAOC,EAA0B,IACvE,OAAOD,I,qBCXX,IAAIK,EAAS,EAAQ,MACjBC,EAAU,EAAQ,MAClBC,EAAiC,EAAQ,MACzCC,EAAuB,EAAQ,MAEnClD,EAAOC,QAAU,SAAUkD,EAAQC,EAAQC,GAIzC,IAHA,IAAIC,EAAON,EAAQI,GACfG,EAAiBL,EAAqBM,EACtCC,EAA2BR,EAA+BO,EACrDE,EAAI,EAAGA,EAAIJ,EAAKvC,OAAQ2C,IAAK,CACpC,IAAI1B,EAAMsB,EAAKI,GACVX,EAAOI,EAAQnB,IAAUqB,GAAcN,EAAOM,EAAYrB,IAC7DuB,EAAeJ,EAAQnB,EAAKyB,EAAyBL,EAAQpB,O,oBCZnE,IAAI2B,EAAc,EAAQ,MACtBT,EAAuB,EAAQ,MAC/BU,EAA2B,EAAQ,MAEvC5D,EAAOC,QAAU0D,EAAc,SAAUE,EAAQ7B,EAAKnB,GACpD,OAAOqC,EAAqBM,EAAEK,EAAQ7B,EAAK4B,EAAyB,EAAG/C,KACrE,SAAUgD,EAAQ7B,EAAKnB,GAEzB,OADAgD,EAAO7B,GAAOnB,EACPgD,I,iBCRT7D,EAAOC,QAAU,SAAU6D,EAAQjD,GACjC,MAAO,CACLkD,aAAuB,EAATD,GACdE,eAAyB,EAATF,GAChBG,WAAqB,EAATH,GACZjD,MAAOA,K,qBCLX,IAAIqD,EAAQ,EAAQ,MAGpBlE,EAAOC,SAAWiE,GAAM,WAEtB,OAA8E,GAAvEtC,OAAO2B,eAAe,GAAI,EAAG,CAAEY,IAAK,WAAc,OAAO,KAAQ,O,qBCL1E,IAAIvE,EAAS,EAAQ,MACjBQ,EAAW,EAAQ,MAEnBgE,EAAWxE,EAAOwE,SAElBC,EAASjE,EAASgE,IAAahE,EAASgE,EAASE,eAErDtE,EAAOC,QAAU,SAAUsB,GACzB,OAAO8C,EAASD,EAASE,cAAc/C,GAAM,K,qBCR/C,IAAIgD,EAAa,EAAQ,MAEzBvE,EAAOC,QAAUsE,EAAW,YAAa,cAAgB,I,qBCFzD,IAOIC,EAAOC,EAPP7E,EAAS,EAAQ,MACjB8E,EAAY,EAAQ,MAEpBC,EAAU/E,EAAO+E,QACjBC,EAAOhF,EAAOgF,KACdC,EAAWF,GAAWA,EAAQE,UAAYD,GAAQA,EAAKH,QACvDK,EAAKD,GAAYA,EAASC,GAG1BA,IACFN,EAAQM,EAAGC,MAAM,KAGjBN,EAAUD,EAAM,GAAK,GAAKA,EAAM,GAAK,EAAI,IAAMA,EAAM,GAAKA,EAAM,MAK7DC,GAAWC,IACdF,EAAQE,EAAUF,MAAM,iBACnBA,GAASA,EAAM,IAAM,MACxBA,EAAQE,EAAUF,MAAM,iBACpBA,IAAOC,GAAWD,EAAM,MAIhCxE,EAAOC,QAAUwE,G,iBCzBjBzE,EAAOC,QAAU,CACf,cACA,iBACA,gBACA,uBACA,iBACA,WACA,Y,qBCRF,IAAIiE,EAAQ,EAAQ,MAChBN,EAA2B,EAAQ,MAEvC5D,EAAOC,SAAWiE,GAAM,WACtB,IAAIjC,EAAQQ,MAAM,KAClB,QAAM,UAAWR,KAEjBL,OAAO2B,eAAetB,EAAO,QAAS2B,EAAyB,EAAG,IAC3C,IAAhB3B,EAAMS,W,qBCRf,IAAI9C,EAAS,EAAQ,MACjB6D,EAA2B,UAC3BuB,EAA8B,EAAQ,KACtCC,EAAW,EAAQ,MACnBC,EAAY,EAAQ,MACpBC,EAA4B,EAAQ,MACpCC,EAAW,EAAQ,MAiBvBpF,EAAOC,QAAU,SAAUoF,EAASjC,GAClC,IAGIkC,EAAQnC,EAAQnB,EAAKuD,EAAgBC,EAAgBC,EAHrDC,EAASL,EAAQlC,OACjBwC,EAASN,EAAQzF,OACjBgG,EAASP,EAAQQ,KASrB,GANE1C,EADEwC,EACO/F,EACAgG,EACAhG,EAAO8F,IAAWR,EAAUQ,EAAQ,KAEnC9F,EAAO8F,IAAW,IAAII,UAE9B3C,EAAQ,IAAKnB,KAAOoB,EAAQ,CAQ9B,GAPAoC,EAAiBpC,EAAOpB,GACpBqD,EAAQU,aACVN,EAAahC,EAAyBN,EAAQnB,GAC9CuD,EAAiBE,GAAcA,EAAW5E,OACrC0E,EAAiBpC,EAAOnB,GAC/BsD,EAASF,EAASO,EAAS3D,EAAM0D,GAAUE,EAAS,IAAM,KAAO5D,EAAKqD,EAAQW,SAEzEV,QAA6BlD,IAAnBmD,EAA8B,CAC3C,UAAWC,UAAyBD,EAAgB,SACpDJ,EAA0BK,EAAgBD,IAGxCF,EAAQY,MAASV,GAAkBA,EAAeU,OACpDjB,EAA4BQ,EAAgB,QAAQ,GAGtDP,EAAS9B,EAAQnB,EAAKwD,EAAgBH,M,iBCpD1CrF,EAAOC,QAAU,SAAUiG,GACzB,IACE,QAASA,IACT,MAAOjE,GACP,OAAO,K,qBCJX,IAAIkE,EAAc,EAAQ,MAEtBC,EAAoBC,SAASP,UAC7BQ,EAAQF,EAAkBE,MAC1BC,EAAOH,EAAkBG,KAG7BvG,EAAOC,QAA4B,iBAAXuG,SAAuBA,QAAQF,QAAUH,EAAcI,EAAKE,KAAKH,GAAS,WAChG,OAAOC,EAAKD,MAAMA,EAAOxE,c,qBCR3B,IAAIoC,EAAQ,EAAQ,MAEpBlE,EAAOC,SAAWiE,GAAM,WACtB,IAAIrB,EAAO,aAA8B4D,OAEzC,MAAsB,mBAAR5D,GAAsBA,EAAK6D,eAAe,iB,qBCL1D,IAAIP,EAAc,EAAQ,MAEtBI,EAAOF,SAASP,UAAUS,KAE9BvG,EAAOC,QAAUkG,EAAcI,EAAKE,KAAKF,GAAQ,WAC/C,OAAOA,EAAKD,MAAMC,EAAMzE,a,qBCL1B,IAAI6B,EAAc,EAAQ,MACtBZ,EAAS,EAAQ,MAEjBqD,EAAoBC,SAASP,UAE7Ba,EAAgBhD,GAAe/B,OAAO6B,yBAEtCY,EAAStB,EAAOqD,EAAmB,QAEnCQ,EAASvC,GAA0D,cAAhD,aAAuCwC,KAC1DC,EAAezC,KAAYV,GAAgBA,GAAegD,EAAcP,EAAmB,QAAQpC,cAEvGhE,EAAOC,QAAU,CACfoE,OAAQA,EACRuC,OAAQA,EACRE,aAAcA,I,oBCfhB,IAAIX,EAAc,EAAQ,MAEtBC,EAAoBC,SAASP,UAC7BW,EAAOL,EAAkBK,KACzBF,EAAOH,EAAkBG,KACzBpF,EAAcgF,GAAeM,EAAKA,KAAKF,EAAMA,GAEjDvG,EAAOC,QAAUkG,EAAc,SAAUY,GACvC,OAAOA,GAAM5F,EAAY4F,IACvB,SAAUA,GACZ,OAAOA,GAAM,WACX,OAAOR,EAAKD,MAAMS,EAAIjF,c,qBCX1B,IAAIlC,EAAS,EAAQ,MACjBC,EAAa,EAAQ,MAErBmH,EAAY,SAAU9G,GACxB,OAAOL,EAAWK,GAAYA,OAAWkC,GAG3CpC,EAAOC,QAAU,SAAUgH,EAAWC,GACpC,OAAOpF,UAAUf,OAAS,EAAIiG,EAAUpH,EAAOqH,IAAcrH,EAAOqH,IAAcrH,EAAOqH,GAAWC,K,qBCRtG,IAAIC,EAAY,EAAQ,MAIxBnH,EAAOC,QAAU,SAAUmH,EAAGC,GAC5B,IAAIC,EAAOF,EAAEC,GACb,OAAe,MAARC,OAAelF,EAAY+E,EAAUG,K,qBCN9C,IAAIC,EAAQ,SAAUhG,GACpB,OAAOA,GAAMA,EAAGiG,MAAQA,MAAQjG,GAIlCvB,EAAOC,QAELsH,EAA2B,iBAAdE,YAA0BA,aACvCF,EAAuB,iBAAVG,QAAsBA,SAEnCH,EAAqB,iBAARI,MAAoBA,OACjCJ,EAAuB,iBAAV,EAAAK,GAAsB,EAAAA,IAEnC,WAAe,OAAOC,KAAtB,IAAoCxB,SAAS,cAATA,I,qBCbtC,IAAIlF,EAAc,EAAQ,KACtB2G,EAAW,EAAQ,MAEnBpB,EAAiBvF,EAAY,GAAGuF,gBAIpC1G,EAAOC,QAAU2B,OAAOmB,QAAU,SAAgBxB,EAAIS,GACpD,OAAO0E,EAAeoB,EAASvG,GAAKS,K,iBCRtChC,EAAOC,QAAU,I,qBCAjB,IAAI0D,EAAc,EAAQ,MACtBO,EAAQ,EAAQ,MAChBI,EAAgB,EAAQ,MAG5BtE,EAAOC,SAAW0D,IAAgBO,GAAM,WAEtC,OAEQ,GAFDtC,OAAO2B,eAAee,EAAc,OAAQ,IAAK,CACtDH,IAAK,WAAc,OAAO,KACzB4D,M,qBCTL,IAAInI,EAAS,EAAQ,MACjBuB,EAAc,EAAQ,KACtB+C,EAAQ,EAAQ,MAChB8D,EAAU,EAAQ,MAElBpG,EAAShC,EAAOgC,OAChBmD,EAAQ5D,EAAY,GAAG4D,OAG3B/E,EAAOC,QAAUiE,GAAM,WAGrB,OAAQtC,EAAO,KAAKqG,qBAAqB,MACtC,SAAU1G,GACb,MAAsB,UAAfyG,EAAQzG,GAAkBwD,EAAMxD,EAAI,IAAMK,EAAOL,IACtDK,G,qBCfJ,IAAI/B,EAAa,EAAQ,MACrBO,EAAW,EAAQ,MACnB8H,EAAiB,EAAQ,MAG7BlI,EAAOC,QAAU,SAAUS,EAAOyH,EAAOC,GACvC,IAAIC,EAAWC,EAUf,OAPEJ,GAEArI,EAAWwI,EAAYF,EAAMI,cAC7BF,IAAcD,GACdhI,EAASkI,EAAqBD,EAAUvC,YACxCwC,IAAuBF,EAAQtC,WAC/BoC,EAAexH,EAAO4H,GACjB5H,I,oBChBT,IAAIS,EAAc,EAAQ,KACtBtB,EAAa,EAAQ,MACrB2I,EAAQ,EAAQ,MAEhBC,EAAmBtH,EAAYkF,SAASjF,UAGvCvB,EAAW2I,EAAME,iBACpBF,EAAME,cAAgB,SAAUnH,GAC9B,OAAOkH,EAAiBlH,KAI5BvB,EAAOC,QAAUuI,EAAME,e,qBCbvB,IAAItI,EAAW,EAAQ,MACnB4E,EAA8B,EAAQ,KAI1ChF,EAAOC,QAAU,SAAUa,EAAGuE,GACxBjF,EAASiF,IAAY,UAAWA,GAClCL,EAA4BlE,EAAG,QAASuE,EAAQsD,S,oBCPpD,IAaIC,EAAKzE,EAAK0E,EAbVC,EAAkB,EAAQ,MAC1BlJ,EAAS,EAAQ,MACjBuB,EAAc,EAAQ,KACtBf,EAAW,EAAQ,MACnB4E,EAA8B,EAAQ,KACtCjC,EAAS,EAAQ,MACjBgG,EAAS,EAAQ,MACjBC,EAAY,EAAQ,MACpBC,EAAa,EAAQ,MAErBC,EAA6B,6BAC7BnJ,EAAYH,EAAOG,UACnBoJ,EAAUvJ,EAAOuJ,QAGjBC,EAAU,SAAU7H,GACtB,OAAOsH,EAAItH,GAAM4C,EAAI5C,GAAMqH,EAAIrH,EAAI,KAGjC8H,EAAY,SAAUC,GACxB,OAAO,SAAU/H,GACf,IAAIgI,EACJ,IAAKnJ,EAASmB,KAAQgI,EAAQpF,EAAI5C,IAAKiI,OAASF,EAC9C,MAAMvJ,EAAU,0BAA4BuJ,EAAO,aACnD,OAAOC,IAIb,GAAIT,GAAmBC,EAAOQ,MAAO,CACnC,IAAIf,EAAQO,EAAOQ,QAAUR,EAAOQ,MAAQ,IAAIJ,GAC5CM,EAAQtI,EAAYqH,EAAMrE,KAC1BuF,EAAQvI,EAAYqH,EAAMK,KAC1Bc,EAAQxI,EAAYqH,EAAMI,KAC9BA,EAAM,SAAUrH,EAAIqI,GAClB,GAAIF,EAAMlB,EAAOjH,GAAK,MAAM,IAAIxB,EAAUmJ,GAG1C,OAFAU,EAASC,OAAStI,EAClBoI,EAAMnB,EAAOjH,EAAIqI,GACVA,GAETzF,EAAM,SAAU5C,GACd,OAAOkI,EAAMjB,EAAOjH,IAAO,IAE7BsH,EAAM,SAAUtH,GACd,OAAOmI,EAAMlB,EAAOjH,QAEjB,CACL,IAAIuI,EAAQd,EAAU,SACtBC,EAAWa,IAAS,EACpBlB,EAAM,SAAUrH,EAAIqI,GAClB,GAAI7G,EAAOxB,EAAIuI,GAAQ,MAAM,IAAI/J,EAAUmJ,GAG3C,OAFAU,EAASC,OAAStI,EAClByD,EAA4BzD,EAAIuI,EAAOF,GAChCA,GAETzF,EAAM,SAAU5C,GACd,OAAOwB,EAAOxB,EAAIuI,GAASvI,EAAGuI,GAAS,IAEzCjB,EAAM,SAAUtH,GACd,OAAOwB,EAAOxB,EAAIuI,IAItB9J,EAAOC,QAAU,CACf2I,IAAKA,EACLzE,IAAKA,EACL0E,IAAKA,EACLO,QAASA,EACTC,UAAWA,I,iBCjEbrJ,EAAOC,QAAU,SAAUC,GACzB,MAA0B,mBAAZA,I,qBCHhB,IAAIgE,EAAQ,EAAQ,MAChBrE,EAAa,EAAQ,MAErBkK,EAAc,kBAEd3E,EAAW,SAAU4E,EAASC,GAChC,IAAIpJ,EAAQqJ,EAAKC,EAAUH,IAC3B,OAAOnJ,GAASuJ,GACZvJ,GAASwJ,IACTxK,EAAWoK,GAAa/F,EAAM+F,KAC5BA,IAGJE,EAAY/E,EAAS+E,UAAY,SAAUG,GAC7C,OAAOnK,OAAOmK,GAAQhI,QAAQyH,EAAa,KAAKQ,eAG9CL,EAAO9E,EAAS8E,KAAO,GACvBG,EAASjF,EAASiF,OAAS,IAC3BD,EAAWhF,EAASgF,SAAW,IAEnCpK,EAAOC,QAAUmF,G,qBCrBjB,IAAIvF,EAAa,EAAQ,MAEzBG,EAAOC,QAAU,SAAUsB,GACzB,MAAoB,iBAANA,EAAwB,OAAPA,EAAc1B,EAAW0B,K,eCH1DvB,EAAOC,SAAU,G,qBCAjB,IAAIL,EAAS,EAAQ,MACjB2E,EAAa,EAAQ,MACrB1E,EAAa,EAAQ,MACrB2K,EAAgB,EAAQ,MACxBC,EAAoB,EAAQ,MAE5B7I,EAAShC,EAAOgC,OAEpB5B,EAAOC,QAAUwK,EAAoB,SAAUlJ,GAC7C,MAAoB,iBAANA,GACZ,SAAUA,GACZ,IAAImJ,EAAUnG,EAAW,UACzB,OAAO1E,EAAW6K,IAAYF,EAAcE,EAAQ5E,UAAWlE,EAAOL,M,qBCZxE,IAAIoJ,EAAW,EAAQ,MAIvB3K,EAAOC,QAAU,SAAU2K,GACzB,OAAOD,EAASC,EAAI7J,U,qBCJtB,IAAI8J,EAAa,EAAQ,MACrB3G,EAAQ,EAAQ,MAGpBlE,EAAOC,UAAY2B,OAAOkJ,wBAA0B5G,GAAM,WACxD,IAAI6G,EAASC,SAGb,OAAQ7K,OAAO4K,MAAanJ,OAAOmJ,aAAmBC,UAEnDA,OAAO/E,MAAQ4E,GAAcA,EAAa,O,qBCX/C,IAAIjL,EAAS,EAAQ,MACjBC,EAAa,EAAQ,MACrB6I,EAAgB,EAAQ,KAExBS,EAAUvJ,EAAOuJ,QAErBnJ,EAAOC,QAAUJ,EAAWsJ,IAAY,cAActG,KAAK6F,EAAcS,K,qBCNzE,IAAI/H,EAAW,EAAQ,MAEvBpB,EAAOC,QAAU,SAAUC,EAAU+K,GACnC,YAAoB7I,IAAblC,EAAyB4B,UAAUf,OAAS,EAAI,GAAKkK,EAAW7J,EAASlB,K,qBCHlF,IAAIN,EAAS,EAAQ,MACjB+D,EAAc,EAAQ,MACtBuH,EAAiB,EAAQ,MACzBC,EAA0B,EAAQ,MAClCC,EAAW,EAAQ,MACnBC,EAAgB,EAAQ,MAExBtL,EAAYH,EAAOG,UAEnBuL,EAAkB1J,OAAO2B,eAEzBgI,EAA4B3J,OAAO6B,yBACnC+H,EAAa,aACb1E,EAAe,eACf2E,EAAW,WAIfxL,EAAQuD,EAAIG,EAAcwH,EAA0B,SAAwBrK,EAAGuG,EAAGqE,GAIhF,GAHAN,EAAStK,GACTuG,EAAIgE,EAAchE,GAClB+D,EAASM,GACQ,oBAAN5K,GAA0B,cAANuG,GAAqB,UAAWqE,GAAcD,KAAYC,IAAeA,EAAWD,GAAW,CAC5H,IAAIE,EAAUJ,EAA0BzK,EAAGuG,GACvCsE,GAAWA,EAAQF,KACrB3K,EAAEuG,GAAKqE,EAAW7K,MAClB6K,EAAa,CACX1H,aAAc8C,KAAgB4E,EAAaA,EAAW5E,GAAgB6E,EAAQ7E,GAC9E/C,WAAYyH,KAAcE,EAAaA,EAAWF,GAAcG,EAAQH,GACxEvH,UAAU,IAGd,OAAOqH,EAAgBxK,EAAGuG,EAAGqE,IAC7BJ,EAAkB,SAAwBxK,EAAGuG,EAAGqE,GAIlD,GAHAN,EAAStK,GACTuG,EAAIgE,EAAchE,GAClB+D,EAASM,GACLR,EAAgB,IAClB,OAAOI,EAAgBxK,EAAGuG,EAAGqE,GAC7B,MAAOzJ,IACT,GAAI,QAASyJ,GAAc,QAASA,EAAY,MAAM3L,EAAU,2BAEhE,MADI,UAAW2L,IAAY5K,EAAEuG,GAAKqE,EAAW7K,OACtCC,I,qBC1CT,IAAI6C,EAAc,EAAQ,MACtB4C,EAAO,EAAQ,MACfqF,EAA6B,EAAQ,MACrChI,EAA2B,EAAQ,MACnCvD,EAAkB,EAAQ,KAC1BgL,EAAgB,EAAQ,MACxBtI,EAAS,EAAQ,MACjBmI,EAAiB,EAAQ,MAGzBK,EAA4B3J,OAAO6B,yBAIvCxD,EAAQuD,EAAIG,EAAc4H,EAA4B,SAAkCzK,EAAGuG,GAGzF,GAFAvG,EAAIT,EAAgBS,GACpBuG,EAAIgE,EAAchE,GACd6D,EAAgB,IAClB,OAAOK,EAA0BzK,EAAGuG,GACpC,MAAOpF,IACT,GAAIc,EAAOjC,EAAGuG,GAAI,OAAOzD,GAA0B2C,EAAKqF,EAA2BpI,EAAG1C,EAAGuG,GAAIvG,EAAEuG,M,qBCpBjG,IAAIwE,EAAqB,EAAQ,MAC7BC,EAAc,EAAQ,MAEtB7C,EAAa6C,EAAYC,OAAO,SAAU,aAK9C9L,EAAQuD,EAAI5B,OAAOoK,qBAAuB,SAA6BlL,GACrE,OAAO+K,EAAmB/K,EAAGmI,K,mBCR/BhJ,EAAQuD,EAAI5B,OAAOkJ,uB,qBCDnB,IAAI3J,EAAc,EAAQ,KAE1BnB,EAAOC,QAAUkB,EAAY,GAAGqJ,gB,qBCFhC,IAAIrJ,EAAc,EAAQ,KACtB4B,EAAS,EAAQ,MACjB1C,EAAkB,EAAQ,KAC1Ba,EAAU,gBACV+H,EAAa,EAAQ,MAErBgD,EAAO9K,EAAY,GAAG8K,MAE1BjM,EAAOC,QAAU,SAAU4D,EAAQqI,GACjC,IAGIlK,EAHAlB,EAAIT,EAAgBwD,GACpBH,EAAI,EACJvB,EAAS,GAEb,IAAKH,KAAOlB,GAAIiC,EAAOkG,EAAYjH,IAAQe,EAAOjC,EAAGkB,IAAQiK,EAAK9J,EAAQH,GAE1E,MAAOkK,EAAMnL,OAAS2C,EAAOX,EAAOjC,EAAGkB,EAAMkK,EAAMxI,SAChDxC,EAAQiB,EAAQH,IAAQiK,EAAK9J,EAAQH,IAExC,OAAOG,I,gCCjBT,IAAIgK,EAAwB,GAAGlE,qBAE3BxE,EAA2B7B,OAAO6B,yBAGlC2I,EAAc3I,IAA6B0I,EAAsB5F,KAAK,CAAE,EAAG,GAAK,GAIpFtG,EAAQuD,EAAI4I,EAAc,SAA8BhF,GACtD,IAAI3B,EAAahC,EAAyBoE,KAAMT,GAChD,QAAS3B,GAAcA,EAAW1B,YAChCoI,G,qBCZJ,IAAIhL,EAAc,EAAQ,KACtBiK,EAAW,EAAQ,MACnBiB,EAAqB,EAAQ,MAMjCrM,EAAOC,QAAU2B,OAAOsG,iBAAmB,aAAe,GAAK,WAC7D,IAEIoE,EAFAC,GAAiB,EACjB1J,EAAO,GAEX,IAEEyJ,EAASnL,EAAYS,OAAO6B,yBAAyB7B,OAAOkE,UAAW,aAAa8C,KACpF0D,EAAOzJ,EAAM,IACb0J,EAAiB1J,aAAgB2J,MACjC,MAAOvK,IACT,OAAO,SAAwBnB,EAAG2L,GAKhC,OAJArB,EAAStK,GACTuL,EAAmBI,GACfF,EAAgBD,EAAOxL,EAAG2L,GACzB3L,EAAE4L,UAAYD,EACZ3L,GAfoD,QAiBzDsB,I,oBC1BN,IAAIxC,EAAS,EAAQ,MACjB2G,EAAO,EAAQ,MACf1G,EAAa,EAAQ,MACrBO,EAAW,EAAQ,MAEnBL,EAAYH,EAAOG,UAIvBC,EAAOC,QAAU,SAAU0M,EAAOC,GAChC,IAAI7F,EAAI8F,EACR,GAAa,WAATD,GAAqB/M,EAAWkH,EAAK4F,EAAMvL,YAAchB,EAASyM,EAAMtG,EAAKQ,EAAI4F,IAAS,OAAOE,EACrG,GAAIhN,EAAWkH,EAAK4F,EAAMG,WAAa1M,EAASyM,EAAMtG,EAAKQ,EAAI4F,IAAS,OAAOE,EAC/E,GAAa,WAATD,GAAqB/M,EAAWkH,EAAK4F,EAAMvL,YAAchB,EAASyM,EAAMtG,EAAKQ,EAAI4F,IAAS,OAAOE,EACrG,MAAM9M,EAAU,6C,qBCdlB,IAAIwE,EAAa,EAAQ,MACrBpD,EAAc,EAAQ,KACtB4L,EAA4B,EAAQ,MACpCC,EAA8B,EAAQ,MACtC5B,EAAW,EAAQ,MAEnBW,EAAS5K,EAAY,GAAG4K,QAG5B/L,EAAOC,QAAUsE,EAAW,UAAW,YAAc,SAAiBhD,GACpE,IAAI+B,EAAOyJ,EAA0BvJ,EAAE4H,EAAS7J,IAC5CuJ,EAAwBkC,EAA4BxJ,EACxD,OAAOsH,EAAwBiB,EAAOzI,EAAMwH,EAAsBvJ,IAAO+B,I,qBCZ3E,IAAI1D,EAAS,EAAQ,MACjBC,EAAa,EAAQ,MACrBkD,EAAS,EAAQ,MACjBiC,EAA8B,EAAQ,KACtCE,EAAY,EAAQ,MACpBwD,EAAgB,EAAQ,KACxBuE,EAAsB,EAAQ,KAC9BC,EAA6B,qBAE7BC,EAAmBF,EAAoB9I,IACvCiJ,EAAuBH,EAAoB7D,QAC3CiE,EAAWlN,OAAOA,QAAQ4E,MAAM,WAEnC/E,EAAOC,QAAU,SAAUa,EAAGkB,EAAKnB,EAAOwE,GACzC,IAIIkE,EAJA+D,IAASjI,KAAYA,EAAQiI,OAC7BC,IAASlI,KAAYA,EAAQtB,WAC7BgC,IAAcV,KAAYA,EAAQU,YAClCc,EAAOxB,QAA4BjD,IAAjBiD,EAAQwB,KAAqBxB,EAAQwB,KAAO7E,EAE9DnC,EAAWgB,KACoB,YAA7BV,OAAO0G,GAAMvF,MAAM,EAAG,KACxBuF,EAAO,IAAM1G,OAAO0G,GAAMvE,QAAQ,qBAAsB,MAAQ,OAE7DS,EAAOlC,EAAO,SAAYqM,GAA8BrM,EAAMgG,OAASA,IAC1E7B,EAA4BnE,EAAO,OAAQgG,GAE7C0C,EAAQ6D,EAAqBvM,GACxB0I,EAAMnG,SACTmG,EAAMnG,OAASiK,EAASG,KAAoB,iBAAR3G,EAAmBA,EAAO,MAG9D/F,IAAMlB,GAIE0N,GAEAvH,GAAejF,EAAEkB,KAC3BuL,GAAS,UAFFzM,EAAEkB,GAIPuL,EAAQzM,EAAEkB,GAAOnB,EAChBmE,EAA4BlE,EAAGkB,EAAKnB,IATnC0M,EAAQzM,EAAEkB,GAAOnB,EAChBqE,EAAUlD,EAAKnB,KAUrBwF,SAASP,UAAW,YAAY,WACjC,OAAOjG,EAAWgI,OAASsF,EAAiBtF,MAAMzE,QAAUsF,EAAcb,U,qBC5C5E,IAAIjI,EAAS,EAAQ,MAEjBG,EAAYH,EAAOG,UAIvBC,EAAOC,QAAU,SAAUsB,GACzB,QAAUa,GAANb,EAAiB,MAAMxB,EAAU,wBAA0BwB,GAC/D,OAAOA,I,qBCRT,IAAI3B,EAAS,EAAQ,MAGjB2D,EAAiB3B,OAAO2B,eAE5BvD,EAAOC,QAAU,SAAU+B,EAAKnB,GAC9B,IACE0C,EAAe3D,EAAQoC,EAAK,CAAEnB,MAAOA,EAAOmD,cAAc,EAAMC,UAAU,IAC1E,MAAOhC,GACPrC,EAAOoC,GAAOnB,EACd,OAAOA,I,qBCVX,IAAIkI,EAAS,EAAQ,MACjB0E,EAAM,EAAQ,MAEdnK,EAAOyF,EAAO,QAElB/I,EAAOC,QAAU,SAAU+B,GACzB,OAAOsB,EAAKtB,KAASsB,EAAKtB,GAAOyL,EAAIzL,M,qBCNvC,IAAIpC,EAAS,EAAQ,MACjBsF,EAAY,EAAQ,MAEpBwI,EAAS,qBACTlF,EAAQ5I,EAAO8N,IAAWxI,EAAUwI,EAAQ,IAEhD1N,EAAOC,QAAUuI,G,qBCNjB,IAAImF,EAAU,EAAQ,IAClBnF,EAAQ,EAAQ,OAEnBxI,EAAOC,QAAU,SAAU+B,EAAKnB,GAC/B,OAAO2H,EAAMxG,KAASwG,EAAMxG,QAAiBI,IAAVvB,EAAsBA,EAAQ,MAChE,WAAY,IAAIoL,KAAK,CACtBxH,QAAS,SACTmJ,KAAMD,EAAU,OAAS,SACzBE,UAAW,4CACXC,QAAS,2DACT1K,OAAQ,yC,qBCVV,IAAI2K,EAAsB,EAAQ,MAE9BC,EAAMxG,KAAKwG,IACXC,EAAMzG,KAAKyG,IAKfjO,EAAOC,QAAU,SAAUe,EAAOD,GAChC,IAAImN,EAAUH,EAAoB/M,GAClC,OAAOkN,EAAU,EAAIF,EAAIE,EAAUnN,EAAQ,GAAKkN,EAAIC,EAASnN,K,oBCT/D,IAAIoN,EAAgB,EAAQ,MACxBC,EAAyB,EAAQ,MAErCpO,EAAOC,QAAU,SAAUsB,GACzB,OAAO4M,EAAcC,EAAuB7M,M,iBCL9C,IAAI8M,EAAO7G,KAAK6G,KACZC,EAAQ9G,KAAK8G,MAIjBtO,EAAOC,QAAU,SAAUC,GACzB,IAAIqO,GAAUrO,EAEd,OAAOqO,IAAWA,GAAqB,IAAXA,EAAe,GAAKA,EAAS,EAAID,EAAQD,GAAME,K,qBCR7E,IAAIR,EAAsB,EAAQ,MAE9BE,EAAMzG,KAAKyG,IAIfjO,EAAOC,QAAU,SAAUC,GACzB,OAAOA,EAAW,EAAI+N,EAAIF,EAAoB7N,GAAW,kBAAoB,I,qBCP/E,IAAIN,EAAS,EAAQ,MACjBwO,EAAyB,EAAQ,MAEjCxM,EAAShC,EAAOgC,OAIpB5B,EAAOC,QAAU,SAAUC,GACzB,OAAO0B,EAAOwM,EAAuBlO,M,qBCRvC,IAAIN,EAAS,EAAQ,MACjB2G,EAAO,EAAQ,MACfnG,EAAW,EAAQ,MACnBoO,EAAW,EAAQ,MACnBC,EAAY,EAAQ,MACpBC,EAAsB,EAAQ,KAC9BhN,EAAkB,EAAQ,MAE1B3B,EAAYH,EAAOG,UACnB4O,EAAejN,EAAgB,eAInC1B,EAAOC,QAAU,SAAU0M,EAAOC,GAChC,IAAKxM,EAASuM,IAAU6B,EAAS7B,GAAQ,OAAOA,EAChD,IACIxK,EADAyM,EAAeH,EAAU9B,EAAOgC,GAEpC,GAAIC,EAAc,CAGhB,QAFaxM,IAATwK,IAAoBA,EAAO,WAC/BzK,EAASoE,EAAKqI,EAAcjC,EAAOC,IAC9BxM,EAAS+B,IAAWqM,EAASrM,GAAS,OAAOA,EAClD,MAAMpC,EAAU,2CAGlB,YADaqC,IAATwK,IAAoBA,EAAO,UACxB8B,EAAoB/B,EAAOC,K,qBCxBpC,IAAIiC,EAAc,EAAQ,MACtBL,EAAW,EAAQ,MAIvBxO,EAAOC,QAAU,SAAUC,GACzB,IAAI8B,EAAM6M,EAAY3O,EAAU,UAChC,OAAOsO,EAASxM,GAAOA,EAAMA,EAAM,K,qBCPrC,IAAIN,EAAkB,EAAQ,MAE1BC,EAAgBD,EAAgB,eAChCmB,EAAO,GAEXA,EAAKlB,GAAiB,IAEtB3B,EAAOC,QAA2B,eAAjBE,OAAO0C,I,qBCPxB,IAAIjD,EAAS,EAAQ,MACjBoI,EAAU,EAAQ,KAElB7H,EAASP,EAAOO,OAEpBH,EAAOC,QAAU,SAAUC,GACzB,GAA0B,WAAtB8H,EAAQ9H,GAAwB,MAAMH,UAAU,6CACpD,OAAOI,EAAOD,K,qBCPhB,IAAIN,EAAS,EAAQ,MAEjBO,EAASP,EAAOO,OAEpBH,EAAOC,QAAU,SAAUC,GACzB,IACE,OAAOC,EAAOD,GACd,MAAO+B,GACP,MAAO,Y,qBCRX,IAAId,EAAc,EAAQ,KAEtB2N,EAAK,EACLC,EAAUvH,KAAKwH,SACf5N,EAAWD,EAAY,GAAIC,UAE/BpB,EAAOC,QAAU,SAAU+B,GACzB,MAAO,gBAAqBI,IAARJ,EAAoB,GAAKA,GAAO,KAAOZ,IAAW0N,EAAKC,EAAS,M,qBCNtF,IAAIE,EAAgB,EAAQ,MAE5BjP,EAAOC,QAAUgP,IACXjE,OAAO/E,MACkB,iBAAnB+E,OAAOkE,U,qBCLnB,IAAIvL,EAAc,EAAQ,MACtBO,EAAQ,EAAQ,MAIpBlE,EAAOC,QAAU0D,GAAeO,GAAM,WAEpC,OAGgB,IAHTtC,OAAO2B,gBAAe,cAA6B,YAAa,CACrE1C,MAAO,GACPoD,UAAU,IACT6B,c,qBCVL,IAAIlG,EAAS,EAAQ,MACjBmJ,EAAS,EAAQ,MACjBhG,EAAS,EAAQ,MACjB0K,EAAM,EAAQ,MACdwB,EAAgB,EAAQ,MACxBxE,EAAoB,EAAQ,MAE5B0E,EAAwBpG,EAAO,OAC/BiC,EAASpL,EAAOoL,OAChBoE,EAAYpE,GAAUA,EAAO,OAC7BqE,EAAwB5E,EAAoBO,EAASA,GAAUA,EAAOsE,eAAiB7B,EAE3FzN,EAAOC,QAAU,SAAU4G,GACzB,IAAK9D,EAAOoM,EAAuBtI,KAAWoI,GAAuD,iBAA/BE,EAAsBtI,GAAoB,CAC9G,IAAI0I,EAAc,UAAY1I,EAC1BoI,GAAiBlM,EAAOiI,EAAQnE,GAClCsI,EAAsBtI,GAAQmE,EAAOnE,GAErCsI,EAAsBtI,GADb4D,GAAqB2E,EACAA,EAAUG,GAEVF,EAAsBE,GAEtD,OAAOJ,EAAsBtI,K,kCCrBjC,IAAItC,EAAa,EAAQ,MACrBxB,EAAS,EAAQ,MACjBiC,EAA8B,EAAQ,KACtCwF,EAAgB,EAAQ,MACxBtC,EAAiB,EAAQ,MACzB/C,EAA4B,EAAQ,MACpCqK,EAAoB,EAAQ,MAC5BC,EAA0B,EAAQ,MAClCC,EAAoB,EAAQ,MAC5BC,EAAkB,EAAQ,MAC1BC,EAA0B,EAAQ,MAClCjC,EAAU,EAAQ,IAEtB3N,EAAOC,QAAU,SAAU4P,EAAWC,EAASxK,EAAQyK,GACrD,IAAIC,EAAmBD,EAAqB,EAAI,EAC5CE,EAAOJ,EAAU9K,MAAM,KACvBmL,EAAaD,EAAKA,EAAKlP,OAAS,GAChCoP,EAAgB5L,EAAW+B,MAAM,KAAM2J,GAE3C,GAAKE,EAAL,CAEA,IAAIC,EAAyBD,EAAcrK,UAK3C,IAFK6H,GAAW5K,EAAOqN,EAAwB,iBAAiBA,EAAuBzH,OAElFrD,EAAQ,OAAO6K,EAEpB,IAAIE,EAAY9L,EAAW,SAEvB+L,EAAeR,GAAQ,SAAU/H,EAAGwI,GACtC,IAAIC,EAAUf,EAAwBM,EAAqBQ,EAAIxI,OAAG3F,GAC9DD,EAAS4N,EAAqB,IAAII,EAAcpI,GAAK,IAAIoI,EAK7D,YAJgB/N,IAAZoO,GAAuBxL,EAA4B7C,EAAQ,UAAWqO,GACtEZ,GAAyB5K,EAA4B7C,EAAQ,QAASwN,EAAgBxN,EAAOO,MAAO,IACpGmF,MAAQ2C,EAAc4F,EAAwBvI,OAAO2H,EAAkBrN,EAAQ0F,KAAMyI,GACrFxO,UAAUf,OAASiP,GAAkBN,EAAkBvN,EAAQL,UAAUkO,IACtE7N,KAYT,GATAmO,EAAaxK,UAAYsK,EAEN,UAAfF,IACEhI,EAAgBA,EAAeoI,EAAcD,GAC5ClL,EAA0BmL,EAAcD,EAAW,CAAExJ,MAAM,KAGlE1B,EAA0BmL,EAAcH,IAEnCxC,EAAS,IAERyC,EAAuBvJ,OAASqJ,GAClClL,EAA4BoL,EAAwB,OAAQF,GAE9DE,EAAuB7H,YAAc+H,EACrC,MAAOrO,IAET,OAAOqO,K,qBCzDT,IAAIG,EAAI,EAAQ,MACZ7Q,EAAS,EAAQ,MACjB0G,EAAQ,EAAQ,MAChBoK,EAAgC,EAAQ,MAExCC,EAAe,cACfC,EAAchR,EAAO+Q,GAErBrL,EAA4C,IAAnC7C,MAAM,IAAK,CAAEkG,MAAO,IAAKA,MAElCkI,EAAgC,SAAUX,EAAYJ,GACxD,IAAIhP,EAAI,GACRA,EAAEoP,GAAcQ,EAA8BR,EAAYJ,EAASxK,GACnEmL,EAAE,CAAE7Q,QAAQ,EAAMoG,OAAQV,GAAUxE,IAGlCgQ,EAAqC,SAAUZ,EAAYJ,GAC7D,GAAIc,GAAeA,EAAYV,GAAa,CAC1C,IAAIpP,EAAI,GACRA,EAAEoP,GAAcQ,EAA8BC,EAAe,IAAMT,EAAYJ,EAASxK,GACxFmL,EAAE,CAAEtN,OAAQwN,EAAc9K,MAAM,EAAMG,OAAQV,GAAUxE,KAK5D+P,EAA8B,SAAS,SAAUE,GAC/C,OAAO,SAAeP,GAAW,OAAOlK,EAAMyK,EAAMlJ,KAAM/F,eAE5D+O,EAA8B,aAAa,SAAUE,GACnD,OAAO,SAAmBP,GAAW,OAAOlK,EAAMyK,EAAMlJ,KAAM/F,eAEhE+O,EAA8B,cAAc,SAAUE,GACpD,OAAO,SAAoBP,GAAW,OAAOlK,EAAMyK,EAAMlJ,KAAM/F,eAEjE+O,EAA8B,kBAAkB,SAAUE,GACxD,OAAO,SAAwBP,GAAW,OAAOlK,EAAMyK,EAAMlJ,KAAM/F,eAErE+O,EAA8B,eAAe,SAAUE,GACrD,OAAO,SAAqBP,GAAW,OAAOlK,EAAMyK,EAAMlJ,KAAM/F,eAElE+O,EAA8B,aAAa,SAAUE,GACnD,OAAO,SAAmBP,GAAW,OAAOlK,EAAMyK,EAAMlJ,KAAM/F,eAEhE+O,EAA8B,YAAY,SAAUE,GAClD,OAAO,SAAkBP,GAAW,OAAOlK,EAAMyK,EAAMlJ,KAAM/F,eAE/DgP,EAAmC,gBAAgB,SAAUC,GAC3D,OAAO,SAAsBP,GAAW,OAAOlK,EAAMyK,EAAMlJ,KAAM/F,eAEnEgP,EAAmC,aAAa,SAAUC,GACxD,OAAO,SAAmBP,GAAW,OAAOlK,EAAMyK,EAAMlJ,KAAM/F,eAEhEgP,EAAmC,gBAAgB,SAAUC,GAC3D,OAAO,SAAsBP,GAAW,OAAOlK,EAAMyK,EAAMlJ,KAAM/F,gB,kFCnD/DkP,EAA0B,IAA4B,KAE1DA,EAAwB/E,KAAK,CAACjM,EAAO8O,GAAI,qzBAAszB,KAE/1B,gB,kFCJIkC,EAA0B,IAA4B,KAE1DA,EAAwB/E,KAAK,CAACjM,EAAO8O,GAAI,4xDAA6xD,KAEt0D,gB,kFCJIkC,EAA0B,IAA4B,KAE1DA,EAAwB/E,KAAK,CAACjM,EAAO8O,GAAI,iMAAkM,KAE3O,gB,kFCJIkC,EAA0B,IAA4B,KAE1DA,EAAwB/E,KAAK,CAACjM,EAAO8O,GAAI,uYAAwY,KAEjb,gB,kFCJIkC,EAA0B,IAA4B,KAE1DA,EAAwB/E,KAAK,CAACjM,EAAO8O,GAAI,gTAAiT,KAE1V,gB,kFCJIkC,EAA0B,IAA4B,KAE1DA,EAAwB/E,KAAK,CAACjM,EAAO8O,GAAI,g7BAAi7B,KAE19B,gB,kFCJIkC,EAA0B,IAA4B,KAE1DA,EAAwB/E,KAAK,CAACjM,EAAO8O,GAAI,4lBAA6lB,KAEtoB,gB,kFCJIkC,EAA0B,IAA4B,KAE1DA,EAAwB/E,KAAK,CAACjM,EAAO8O,GAAI,uwCAAwwC,KAEjzC,gB,kFCJIkC,EAA0B,IAA4B,KAE1DA,EAAwB/E,KAAK,CAACjM,EAAO8O,GAAI,q4BAAs4B,KAE/6B,gB,6BCDA9O,EAAOC,QAAU,SAAUgR,GACzB,IAAIC,EAAO,GA6FX,OA3FAA,EAAK9P,SAAW,WACd,OAAOyG,KAAKsJ,KAAI,SAAUC,GACxB,IAAIC,EAAU,GACVC,EAA+B,qBAAZF,EAAK,GA4B5B,OA1BIA,EAAK,KACPC,GAAW,cAActF,OAAOqF,EAAK,GAAI,QAGvCA,EAAK,KACPC,GAAW,UAAUtF,OAAOqF,EAAK,GAAI,OAGnCE,IACFD,GAAW,SAAStF,OAAOqF,EAAK,GAAGrQ,OAAS,EAAI,IAAIgL,OAAOqF,EAAK,IAAM,GAAI,OAG5EC,GAAWJ,EAAuBG,GAE9BE,IACFD,GAAW,KAGTD,EAAK,KACPC,GAAW,KAGTD,EAAK,KACPC,GAAW,KAGNA,KACN7D,KAAK,KAIV0D,EAAKxN,EAAI,SAAW6N,EAASC,EAAOC,EAAQC,EAAUC,GAC7B,kBAAZJ,IACTA,EAAU,CAAC,CAAC,KAAMA,OAASnP,KAG7B,IAAIwP,EAAyB,GAE7B,GAAIH,EACF,IAAK,IAAII,EAAI,EAAGA,EAAIhK,KAAK9G,OAAQ8Q,IAAK,CACpC,IAAI/C,EAAKjH,KAAKgK,GAAG,GAEP,MAAN/C,IACF8C,EAAuB9C,IAAM,GAKnC,IAAK,IAAIgD,EAAK,EAAGA,EAAKP,EAAQxQ,OAAQ+Q,IAAM,CAC1C,IAAIV,EAAO,GAAGrF,OAAOwF,EAAQO,IAEzBL,GAAUG,EAAuBR,EAAK,MAIrB,qBAAVO,IACc,qBAAZP,EAAK,KAGdA,EAAK,GAAK,SAASrF,OAAOqF,EAAK,GAAGrQ,OAAS,EAAI,IAAIgL,OAAOqF,EAAK,IAAM,GAAI,MAAMrF,OAAOqF,EAAK,GAAI,MAF/FA,EAAK,GAAKO,GAOVH,IACGJ,EAAK,IAGRA,EAAK,GAAK,UAAUrF,OAAOqF,EAAK,GAAI,MAAMrF,OAAOqF,EAAK,GAAI,KAC1DA,EAAK,GAAKI,GAHVJ,EAAK,GAAKI,GAOVE,IACGN,EAAK,IAGRA,EAAK,GAAK,cAAcrF,OAAOqF,EAAK,GAAI,OAAOrF,OAAOqF,EAAK,GAAI,KAC/DA,EAAK,GAAKM,GAHVN,EAAK,GAAK,GAAGrF,OAAO2F,IAOxBR,EAAKjF,KAAKmF,MAIPF,I,8BClGTlR,EAAOC,QAAU,SAAUyD,GACzB,OAAOA,EAAE,K,gBCFP,IAAIqO,EAAM,CAAC,KAAO,WAAW,YAAc,CAAC,CAAC,KAAO,qBAAqB,KAAO,CAAC,KAAO,OAAO,MAAQ,gBAAgB,cAAgB,CAAC,KAAO,YAAY,KAAO,CAAC,KAAO,OAAO,MAAQ,iBAAiB,WAAa,GAAG,aAAe,CAAC,KAAO,eAAe,WAAa,CAAC,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,SAAS,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,QAAQ,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,WAAW,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,YAAY,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,aAAa,UAAY,GAAG,WAAa,QAAQ,IAAM,CAAC,MAAQ,EAAE,IAAM,KACpuBA,EAAIC,IAAI5O,OAAS,CAAC,KAAO,oGAAoG,KAAO,kBAAkB,eAAiB,CAAC,KAAO,EAAE,OAAS,IAqB1L,SAAS6O,EAA0BC,EAAMC,GACvC,GAAkB,mBAAdD,EAAKE,KACPD,EAAKE,IAAIH,EAAKrL,KAAKhG,YACd,GAAkB,uBAAdqR,EAAKE,KAA+B,CAC7C,IAAI5I,EAAO0I,EAAK1I,KACE,cAAdA,EAAK4I,MACPD,EAAKE,IAAI7I,EAAK3C,KAAKhG,OAInBqR,EAAKI,cACPJ,EAAKI,aAAaC,WAAWC,SAAQ,SAASC,GAC5CR,EAA0BQ,EAAWN,MAIrCD,EAAKQ,qBACPR,EAAKQ,oBAAoBF,SAAQ,SAASG,GACxCV,EAA0BU,EAAKR,MAI/BD,EAAKU,aACPV,EAAKU,YAAYJ,SAAQ,SAASG,GAChCV,EAA0BU,EAAKR,MAKrC,IAAIU,EAAiB,GAWrB,SAASC,EAAcf,EAAKlL,GAC1B,IAAK,IAAInD,EAAI,EAAGA,EAAIqO,EAAIa,YAAY7R,OAAQ2C,IAAK,CAC/C,IAAIqP,EAAUhB,EAAIa,YAAYlP,GAC9B,GAAIqP,EAAQlM,MAAQkM,EAAQlM,KAAKhG,OAASgG,EACxC,OAAOkM,GAKb,SAASC,EAASjB,EAAKkB,GAErB,IAAIC,EAAS,CACXd,KAAML,EAAIK,KACVQ,YAAa,CAACE,EAAcf,EAAKkB,KAE/BlB,EAAIrL,eAAe,SACrBwM,EAAOlB,IAAMD,EAAIC,KAKnB,IAAImB,EAASN,EAAeI,IAAkB,IAAIG,IAC9CC,EAAU,IAAID,IACdE,EAAU,IAAIF,IAGlBD,EAAOX,SAAQ,SAASe,GACtBD,EAAQjB,IAAIkB,MAGd,MAAOD,EAAQE,KAAO,EAAG,CACvB,IAAIC,EAAWH,EACfA,EAAU,IAAIF,IAEdK,EAASjB,SAAQ,SAASe,GACxB,IAAKF,EAAQxK,IAAI0K,GAAU,CACzBF,EAAQhB,IAAIkB,GACZ,IAAIG,EAAYb,EAAeU,IAAY,IAAIH,IAC/CM,EAAUlB,SAAQ,SAASmB,GACzBL,EAAQjB,IAAIsB,UAapB,OAPAN,EAAQb,SAAQ,SAASe,GACvB,IAAIK,EAAKd,EAAcf,EAAKwB,GACxBK,GACFV,EAAON,YAAY3G,KAAK2H,MAIrBV,GA9DT,WACEnB,EAAIa,YAAYJ,SAAQ,SAASG,GAC/B,GAAIA,EAAI9L,KAAM,CACZ,IAAIsL,EAAO,IAAIiB,IACfnB,EAA0BU,EAAKR,GAC/BU,EAAeF,EAAI9L,KAAKhG,OAASsR,OALvC,GAiEAnS,EAAOC,QAAU8R,EAEb/R,EAAOC,QAAP,aAAiC+S,EAASjB,EAAK,iB,iBCvHnD,IAAIA,EAAM,CAAC,KAAO,WAAW,YAAc,CAAC,CAAC,KAAO,qBAAqB,KAAO,CAAC,KAAO,OAAO,MAAQ,eAAe,cAAgB,CAAC,KAAO,YAAY,KAAO,CAAC,KAAO,OAAO,MAAQ,gBAAgB,WAAa,GAAG,aAAe,CAAC,KAAO,eAAe,WAAa,CAAC,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,WAAW,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,QAAQ,UAAY,GAAG,WAAa,QAAQ,IAAM,CAAC,MAAQ,EAAE,IAAM,KACtdA,EAAIC,IAAI5O,OAAS,CAAC,KAAO,gEAAgE,KAAO,kBAAkB,eAAiB,CAAC,KAAO,EAAE,OAAS,IAqBtJ,SAAS6O,EAA0BC,EAAMC,GACvC,GAAkB,mBAAdD,EAAKE,KACPD,EAAKE,IAAIH,EAAKrL,KAAKhG,YACd,GAAkB,uBAAdqR,EAAKE,KAA+B,CAC7C,IAAI5I,EAAO0I,EAAK1I,KACE,cAAdA,EAAK4I,MACPD,EAAKE,IAAI7I,EAAK3C,KAAKhG,OAInBqR,EAAKI,cACPJ,EAAKI,aAAaC,WAAWC,SAAQ,SAASC,GAC5CR,EAA0BQ,EAAWN,MAIrCD,EAAKQ,qBACPR,EAAKQ,oBAAoBF,SAAQ,SAASG,GACxCV,EAA0BU,EAAKR,MAI/BD,EAAKU,aACPV,EAAKU,YAAYJ,SAAQ,SAASG,GAChCV,EAA0BU,EAAKR,MAKrC,IAAIU,EAAiB,GAWrB,SAASC,EAAcf,EAAKlL,GAC1B,IAAK,IAAInD,EAAI,EAAGA,EAAIqO,EAAIa,YAAY7R,OAAQ2C,IAAK,CAC/C,IAAIqP,EAAUhB,EAAIa,YAAYlP,GAC9B,GAAIqP,EAAQlM,MAAQkM,EAAQlM,KAAKhG,OAASgG,EACxC,OAAOkM,GAKb,SAASC,EAASjB,EAAKkB,GAErB,IAAIC,EAAS,CACXd,KAAML,EAAIK,KACVQ,YAAa,CAACE,EAAcf,EAAKkB,KAE/BlB,EAAIrL,eAAe,SACrBwM,EAAOlB,IAAMD,EAAIC,KAKnB,IAAImB,EAASN,EAAeI,IAAkB,IAAIG,IAC9CC,EAAU,IAAID,IACdE,EAAU,IAAIF,IAGlBD,EAAOX,SAAQ,SAASe,GACtBD,EAAQjB,IAAIkB,MAGd,MAAOD,EAAQE,KAAO,EAAG,CACvB,IAAIC,EAAWH,EACfA,EAAU,IAAIF,IAEdK,EAASjB,SAAQ,SAASe,GACxB,IAAKF,EAAQxK,IAAI0K,GAAU,CACzBF,EAAQhB,IAAIkB,GACZ,IAAIG,EAAYb,EAAeU,IAAY,IAAIH,IAC/CM,EAAUlB,SAAQ,SAASmB,GACzBL,EAAQjB,IAAIsB,UAapB,OAPAN,EAAQb,SAAQ,SAASe,GACvB,IAAIK,EAAKd,EAAcf,EAAKwB,GACxBK,GACFV,EAAON,YAAY3G,KAAK2H,MAIrBV,GA9DT,WACEnB,EAAIa,YAAYJ,SAAQ,SAASG,GAC/B,GAAIA,EAAI9L,KAAM,CACZ,IAAIsL,EAAO,IAAIiB,IACfnB,EAA0BU,EAAKR,GAC/BU,EAAeF,EAAI9L,KAAKhG,OAASsR,OALvC,GAiEAnS,EAAOC,QAAU8R,EAEb/R,EAAOC,QAAP,YAAgC+S,EAASjB,EAAK,gB,oBCvHlD,IAAIA,EAAM,CAAC,KAAO,WAAW,YAAc,CAAC,CAAC,KAAO,qBAAqB,KAAO,CAAC,KAAO,OAAO,MAAQ,UAAU,cAAgB,CAAC,KAAO,YAAY,KAAO,CAAC,KAAO,OAAO,MAAQ,WAAW,WAAa,GAAG,aAAe,CAAC,KAAO,eAAe,WAAa,CAAC,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,MAAM,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,QAAQ,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,WAAW,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,WAAW,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,QAAQ,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,WAAW,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,SAAS,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,eAAe,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,QAAQ,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,WAAW,UAAY,GAAG,WAAa,GAAG,aAAe,CAAC,KAAO,eAAe,WAAa,CAAC,CAAC,KAAO,iBAAiB,KAAO,CAAC,KAAO,OAAO,MAAQ,gBAAgB,WAAa,OAAO,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,SAAS,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,gBAAgB,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,SAAS,UAAY,GAAG,WAAa,GAAG,aAAe,CAAC,KAAO,eAAe,WAAa,CAAC,CAAC,KAAO,iBAAiB,KAAO,CAAC,KAAO,OAAO,MAAQ,eAAe,WAAa,OAAO,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,SAAS,UAAY,GAAG,WAAa,QAAQ,IAAM,CAAC,MAAQ,EAAE,IAAM,MACzwDA,EAAIC,IAAI5O,OAAS,CAAC,KAAO,oTAAwT,KAAO,kBAAkB,eAAiB,CAAC,KAAO,EAAE,OAAS,IAG9Y,IAAI8I,EAAQ,GACZ,SAAS2H,EAAOC,GACd,OAAOA,EAAKC,QACV,SAASpB,GACP,GAAiB,uBAAbA,EAAIP,KAA+B,OAAO,EAC9C,IAAIvL,EAAO8L,EAAI9L,KAAKhG,MACpB,OAAIqL,EAAMrF,KAGRqF,EAAMrF,IAAQ,GACP,MAUf,SAASoL,EAA0BC,EAAMC,GACvC,GAAkB,mBAAdD,EAAKE,KACPD,EAAKE,IAAIH,EAAKrL,KAAKhG,YACd,GAAkB,uBAAdqR,EAAKE,KAA+B,CAC7C,IAAI5I,EAAO0I,EAAK1I,KACE,cAAdA,EAAK4I,MACPD,EAAKE,IAAI7I,EAAK3C,KAAKhG,OAInBqR,EAAKI,cACPJ,EAAKI,aAAaC,WAAWC,SAAQ,SAASC,GAC5CR,EAA0BQ,EAAWN,MAIrCD,EAAKQ,qBACPR,EAAKQ,oBAAoBF,SAAQ,SAASG,GACxCV,EAA0BU,EAAKR,MAI/BD,EAAKU,aACPV,EAAKU,YAAYJ,SAAQ,SAASG,GAChCV,EAA0BU,EAAKR,MA7BvCJ,EAAIa,YAAcb,EAAIa,YAAY7G,OAAO8H,EAAO,qBAClD9B,EAAIa,YAAcb,EAAIa,YAAY7G,OAAO8H,EAAO,sBAiC5C,IAAIhB,EAAiB,GAWrB,SAASC,EAAcf,EAAKlL,GAC1B,IAAK,IAAInD,EAAI,EAAGA,EAAIqO,EAAIa,YAAY7R,OAAQ2C,IAAK,CAC/C,IAAIqP,EAAUhB,EAAIa,YAAYlP,GAC9B,GAAIqP,EAAQlM,MAAQkM,EAAQlM,KAAKhG,OAASgG,EACxC,OAAOkM,GAKb,SAASC,EAASjB,EAAKkB,GAErB,IAAIC,EAAS,CACXd,KAAML,EAAIK,KACVQ,YAAa,CAACE,EAAcf,EAAKkB,KAE/BlB,EAAIrL,eAAe,SACrBwM,EAAOlB,IAAMD,EAAIC,KAKnB,IAAImB,EAASN,EAAeI,IAAkB,IAAIG,IAC9CC,EAAU,IAAID,IACdE,EAAU,IAAIF,IAGlBD,EAAOX,SAAQ,SAASe,GACtBD,EAAQjB,IAAIkB,MAGd,MAAOD,EAAQE,KAAO,EAAG,CACvB,IAAIC,EAAWH,EACfA,EAAU,IAAIF,IAEdK,EAASjB,SAAQ,SAASe,GACxB,IAAKF,EAAQxK,IAAI0K,GAAU,CACzBF,EAAQhB,IAAIkB,GACZ,IAAIG,EAAYb,EAAeU,IAAY,IAAIH,IAC/CM,EAAUlB,SAAQ,SAASmB,GACzBL,EAAQjB,IAAIsB,UAapB,OAPAN,EAAQb,SAAQ,SAASe,GACvB,IAAIK,EAAKd,EAAcf,EAAKwB,GACxBK,GACFV,EAAON,YAAY3G,KAAK2H,MAIrBV,GA9DT,WACEnB,EAAIa,YAAYJ,SAAQ,SAASG,GAC/B,GAAIA,EAAI9L,KAAM,CACZ,IAAIsL,EAAO,IAAIiB,IACfnB,EAA0BU,EAAKR,GAC/BU,EAAeF,EAAI9L,KAAKhG,OAASsR,OALvC,GAiEAnS,EAAOC,QAAU8R,EAEb/R,EAAOC,QAAP,OAA2B+S,EAASjB,EAAK,W,qBCzH7C,IAAIA,EAAM,CAAC,KAAO,WAAW,YAAc,CAAC,CAAC,KAAO,sBAAsB,UAAY,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,QAAQ,oBAAsB,CAAC,CAAC,KAAO,qBAAqB,SAAW,CAAC,KAAO,WAAW,KAAO,CAAC,KAAO,OAAO,MAAQ,OAAO,KAAO,CAAC,KAAO,cAAc,KAAO,CAAC,KAAO,YAAY,KAAO,CAAC,KAAO,OAAO,MAAQ,QAAQ,WAAa,KAAK,WAAa,GAAG,aAAe,CAAC,KAAO,eAAe,WAAa,CAAC,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,QAAQ,UAAY,CAAC,CAAC,KAAO,WAAW,KAAO,CAAC,KAAO,OAAO,MAAQ,MAAM,MAAQ,CAAC,KAAO,WAAW,KAAO,CAAC,KAAO,OAAO,MAAQ,SAAS,WAAa,GAAG,aAAe,CAAC,KAAO,eAAe,WAAa,CAAC,CAAC,KAAO,iBAAiB,KAAO,CAAC,KAAO,OAAO,MAAQ,QAAQ,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,QAAQ,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,WAAW,UAAY,GAAG,WAAa,GAAG,aAAe,CAAC,KAAO,eAAe,WAAa,CAAC,CAAC,KAAO,iBAAiB,KAAO,CAAC,KAAO,OAAO,MAAQ,UAAU,WAAa,OAAO,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,SAAS,UAAY,GAAG,WAAa,GAAG,aAAe,CAAC,KAAO,eAAe,WAAa,CAAC,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,MAAM,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,SAAS,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,QAAQ,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,aAAa,UAAY,GAAG,WAAa,OAAO,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,eAAe,UAAY,GAAG,WAAa,WAAW,IAAM,CAAC,MAAQ,EAAE,IAAM,MAC1pDA,EAAIC,IAAI5O,OAAS,CAAC,KAAO,uRAA2R,KAAO,kBAAkB,eAAiB,CAAC,KAAO,EAAE,OAAS,IAGjX,IAAI8I,EAAQ,GACZ,SAAS2H,EAAOC,GACd,OAAOA,EAAKC,QACV,SAASpB,GACP,GAAiB,uBAAbA,EAAIP,KAA+B,OAAO,EAC9C,IAAIvL,EAAO8L,EAAI9L,KAAKhG,MACpB,OAAIqL,EAAMrF,KAGRqF,EAAMrF,IAAQ,GACP,MAUf,SAASoL,EAA0BC,EAAMC,GACvC,GAAkB,mBAAdD,EAAKE,KACPD,EAAKE,IAAIH,EAAKrL,KAAKhG,YACd,GAAkB,uBAAdqR,EAAKE,KAA+B,CAC7C,IAAI5I,EAAO0I,EAAK1I,KACE,cAAdA,EAAK4I,MACPD,EAAKE,IAAI7I,EAAK3C,KAAKhG,OAInBqR,EAAKI,cACPJ,EAAKI,aAAaC,WAAWC,SAAQ,SAASC,GAC5CR,EAA0BQ,EAAWN,MAIrCD,EAAKQ,qBACPR,EAAKQ,oBAAoBF,SAAQ,SAASG,GACxCV,EAA0BU,EAAKR,MAI/BD,EAAKU,aACPV,EAAKU,YAAYJ,SAAQ,SAASG,GAChCV,EAA0BU,EAAKR,MA7BvCJ,EAAIa,YAAcb,EAAIa,YAAY7G,OAAO8H,EAAO,sBAClD9B,EAAIa,YAAcb,EAAIa,YAAY7G,OAAO8H,EAAO,qBAiC5C,IAAIhB,EAAiB,GAWrB,SAASC,EAAcf,EAAKlL,GAC1B,IAAK,IAAInD,EAAI,EAAGA,EAAIqO,EAAIa,YAAY7R,OAAQ2C,IAAK,CAC/C,IAAIqP,EAAUhB,EAAIa,YAAYlP,GAC9B,GAAIqP,EAAQlM,MAAQkM,EAAQlM,KAAKhG,OAASgG,EACxC,OAAOkM,GAKb,SAASC,EAASjB,EAAKkB,GAErB,IAAIC,EAAS,CACXd,KAAML,EAAIK,KACVQ,YAAa,CAACE,EAAcf,EAAKkB,KAE/BlB,EAAIrL,eAAe,SACrBwM,EAAOlB,IAAMD,EAAIC,KAKnB,IAAImB,EAASN,EAAeI,IAAkB,IAAIG,IAC9CC,EAAU,IAAID,IACdE,EAAU,IAAIF,IAGlBD,EAAOX,SAAQ,SAASe,GACtBD,EAAQjB,IAAIkB,MAGd,MAAOD,EAAQE,KAAO,EAAG,CACvB,IAAIC,EAAWH,EACfA,EAAU,IAAIF,IAEdK,EAASjB,SAAQ,SAASe,GACxB,IAAKF,EAAQxK,IAAI0K,GAAU,CACzBF,EAAQhB,IAAIkB,GACZ,IAAIG,EAAYb,EAAeU,IAAY,IAAIH,IAC/CM,EAAUlB,SAAQ,SAASmB,GACzBL,EAAQjB,IAAIsB,UAapB,OAPAN,EAAQb,SAAQ,SAASe,GACvB,IAAIK,EAAKd,EAAcf,EAAKwB,GACxBK,GACFV,EAAON,YAAY3G,KAAK2H,MAIrBV,GA9DT,WACEnB,EAAIa,YAAYJ,SAAQ,SAASG,GAC/B,GAAIA,EAAI9L,KAAM,CACZ,IAAIsL,EAAO,IAAIiB,IACfnB,EAA0BU,EAAKR,GAC/BU,EAAeF,EAAI9L,KAAKhG,OAASsR,OALvC,GAiEAnS,EAAOC,QAAU8R,EAEb/R,EAAOC,QAAP,KAAyB+S,EAASjB,EAAK,S,qBCzH3C,IAAIA,EAAM,CAAC,KAAO,WAAW,YAAc,CAAC,CAAC,KAAO,sBAAsB,UAAY,eAAe,KAAO,CAAC,KAAO,OAAO,MAAQ,eAAe,oBAAsB,GAAG,WAAa,GAAG,aAAe,CAAC,KAAO,eAAe,WAAa,CAAC,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,eAAe,UAAY,GAAG,WAAa,GAAG,aAAe,CAAC,KAAO,eAAe,WAAa,CAAC,CAAC,KAAO,iBAAiB,KAAO,CAAC,KAAO,OAAO,MAAQ,QAAQ,WAAa,WAAW,IAAM,CAAC,MAAQ,EAAE,IAAM,KAC7eA,EAAIC,IAAI5O,OAAS,CAAC,KAAO,qGAAuG,KAAO,kBAAkB,eAAiB,CAAC,KAAO,EAAE,OAAS,IAG7L,IAAI8I,EAAQ,GACZ,SAAS2H,EAAOC,GACd,OAAOA,EAAKC,QACV,SAASpB,GACP,GAAiB,uBAAbA,EAAIP,KAA+B,OAAO,EAC9C,IAAIvL,EAAO8L,EAAI9L,KAAKhG,MACpB,OAAIqL,EAAMrF,KAGRqF,EAAMrF,IAAQ,GACP,MASf,SAASoL,EAA0BC,EAAMC,GACvC,GAAkB,mBAAdD,EAAKE,KACPD,EAAKE,IAAIH,EAAKrL,KAAKhG,YACd,GAAkB,uBAAdqR,EAAKE,KAA+B,CAC7C,IAAI5I,EAAO0I,EAAK1I,KACE,cAAdA,EAAK4I,MACPD,EAAKE,IAAI7I,EAAK3C,KAAKhG,OAInBqR,EAAKI,cACPJ,EAAKI,aAAaC,WAAWC,SAAQ,SAASC,GAC5CR,EAA0BQ,EAAWN,MAIrCD,EAAKQ,qBACPR,EAAKQ,oBAAoBF,SAAQ,SAASG,GACxCV,EAA0BU,EAAKR,MAI/BD,EAAKU,aACPV,EAAKU,YAAYJ,SAAQ,SAASG,GAChCV,EAA0BU,EAAKR,MA5BvCJ,EAAIa,YAAcb,EAAIa,YAAY7G,OAAO8H,EAAO,sBAiC9C,IAAIhB,EAAiB,GAWrB,SAASC,EAAcf,EAAKlL,GAC1B,IAAK,IAAInD,EAAI,EAAGA,EAAIqO,EAAIa,YAAY7R,OAAQ2C,IAAK,CAC/C,IAAIqP,EAAUhB,EAAIa,YAAYlP,GAC9B,GAAIqP,EAAQlM,MAAQkM,EAAQlM,KAAKhG,OAASgG,EACxC,OAAOkM,GAKb,SAASC,EAASjB,EAAKkB,GAErB,IAAIC,EAAS,CACXd,KAAML,EAAIK,KACVQ,YAAa,CAACE,EAAcf,EAAKkB,KAE/BlB,EAAIrL,eAAe,SACrBwM,EAAOlB,IAAMD,EAAIC,KAKnB,IAAImB,EAASN,EAAeI,IAAkB,IAAIG,IAC9CC,EAAU,IAAID,IACdE,EAAU,IAAIF,IAGlBD,EAAOX,SAAQ,SAASe,GACtBD,EAAQjB,IAAIkB,MAGd,MAAOD,EAAQE,KAAO,EAAG,CACvB,IAAIC,EAAWH,EACfA,EAAU,IAAIF,IAEdK,EAASjB,SAAQ,SAASe,GACxB,IAAKF,EAAQxK,IAAI0K,GAAU,CACzBF,EAAQhB,IAAIkB,GACZ,IAAIG,EAAYb,EAAeU,IAAY,IAAIH,IAC/CM,EAAUlB,SAAQ,SAASmB,GACzBL,EAAQjB,IAAIsB,UAapB,OAPAN,EAAQb,SAAQ,SAASe,GACvB,IAAIK,EAAKd,EAAcf,EAAKwB,GACxBK,GACFV,EAAON,YAAY3G,KAAK2H,MAIrBV,GA9DT,WACEnB,EAAIa,YAAYJ,SAAQ,SAASG,GAC/B,GAAIA,EAAI9L,KAAM,CACZ,IAAIsL,EAAO,IAAIiB,IACfnB,EAA0BU,EAAKR,GAC/BU,EAAeF,EAAI9L,KAAKhG,OAASsR,OALvC,GAiEAnS,EAAOC,QAAU8R,EAEb/R,EAAOC,QAAP,YAAgC+S,EAASjB,EAAK,gB,iBCxHlD,IAAIA,EAAM,CAAC,KAAO,WAAW,YAAc,CAAC,CAAC,KAAO,qBAAqB,KAAO,CAAC,KAAO,OAAO,MAAQ,QAAQ,cAAgB,CAAC,KAAO,YAAY,KAAO,CAAC,KAAO,OAAO,MAAQ,SAAS,WAAa,GAAG,aAAe,CAAC,KAAO,eAAe,WAAa,CAAC,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,MAAM,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,UAAU,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,QAAQ,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,WAAW,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,eAAe,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,QAAQ,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,UAAU,UAAY,GAAG,WAAa,GAAG,aAAe,CAAC,KAAO,eAAe,WAAa,CAAC,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,MAAM,UAAY,GAAG,WAAa,IAAI,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,QAAQ,UAAY,GAAG,WAAa,OAAO,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,WAAW,UAAY,GAAG,WAAa,GAAG,aAAe,CAAC,KAAO,eAAe,WAAa,CAAC,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,MAAM,UAAY,GAAG,WAAa,WAAW,IAAM,CAAC,MAAQ,EAAE,IAAM,MACl0CA,EAAIC,IAAI5O,OAAS,CAAC,KAAO,sJAAsJ,KAAO,kBAAkB,eAAiB,CAAC,KAAO,EAAE,OAAS,IAqB5O,SAAS6O,EAA0BC,EAAMC,GACvC,GAAkB,mBAAdD,EAAKE,KACPD,EAAKE,IAAIH,EAAKrL,KAAKhG,YACd,GAAkB,uBAAdqR,EAAKE,KAA+B,CAC7C,IAAI5I,EAAO0I,EAAK1I,KACE,cAAdA,EAAK4I,MACPD,EAAKE,IAAI7I,EAAK3C,KAAKhG,OAInBqR,EAAKI,cACPJ,EAAKI,aAAaC,WAAWC,SAAQ,SAASC,GAC5CR,EAA0BQ,EAAWN,MAIrCD,EAAKQ,qBACPR,EAAKQ,oBAAoBF,SAAQ,SAASG,GACxCV,EAA0BU,EAAKR,MAI/BD,EAAKU,aACPV,EAAKU,YAAYJ,SAAQ,SAASG,GAChCV,EAA0BU,EAAKR,MAKrC,IAAIU,EAAiB,GAWrB,SAASC,EAAcf,EAAKlL,GAC1B,IAAK,IAAInD,EAAI,EAAGA,EAAIqO,EAAIa,YAAY7R,OAAQ2C,IAAK,CAC/C,IAAIqP,EAAUhB,EAAIa,YAAYlP,GAC9B,GAAIqP,EAAQlM,MAAQkM,EAAQlM,KAAKhG,OAASgG,EACxC,OAAOkM,GAKb,SAASC,EAASjB,EAAKkB,GAErB,IAAIC,EAAS,CACXd,KAAML,EAAIK,KACVQ,YAAa,CAACE,EAAcf,EAAKkB,KAE/BlB,EAAIrL,eAAe,SACrBwM,EAAOlB,IAAMD,EAAIC,KAKnB,IAAImB,EAASN,EAAeI,IAAkB,IAAIG,IAC9CC,EAAU,IAAID,IACdE,EAAU,IAAIF,IAGlBD,EAAOX,SAAQ,SAASe,GACtBD,EAAQjB,IAAIkB,MAGd,MAAOD,EAAQE,KAAO,EAAG,CACvB,IAAIC,EAAWH,EACfA,EAAU,IAAIF,IAEdK,EAASjB,SAAQ,SAASe,GACxB,IAAKF,EAAQxK,IAAI0K,GAAU,CACzBF,EAAQhB,IAAIkB,GACZ,IAAIG,EAAYb,EAAeU,IAAY,IAAIH,IAC/CM,EAAUlB,SAAQ,SAASmB,GACzBL,EAAQjB,IAAIsB,UAapB,OAPAN,EAAQb,SAAQ,SAASe,GACvB,IAAIK,EAAKd,EAAcf,EAAKwB,GACxBK,GACFV,EAAON,YAAY3G,KAAK2H,MAIrBV,GA9DT,WACEnB,EAAIa,YAAYJ,SAAQ,SAASG,GAC/B,GAAIA,EAAI9L,KAAM,CACZ,IAAIsL,EAAO,IAAIiB,IACfnB,EAA0BU,EAAKR,GAC/BU,EAAeF,EAAI9L,KAAKhG,OAASsR,OALvC,GAiEAnS,EAAOC,QAAU8R,EAEb/R,EAAOC,QAAP,KAAyB+S,EAASjB,EAAK,S,qBCvH3C,IAAIA,EAAM,CAAC,KAAO,WAAW,YAAc,CAAC,CAAC,KAAO,sBAAsB,UAAY,WAAW,KAAO,CAAC,KAAO,OAAO,MAAQ,WAAW,oBAAsB,CAAC,CAAC,KAAO,qBAAqB,SAAW,CAAC,KAAO,WAAW,KAAO,CAAC,KAAO,OAAO,MAAQ,OAAO,KAAO,CAAC,KAAO,cAAc,KAAO,CAAC,KAAO,YAAY,KAAO,CAAC,KAAO,OAAO,MAAQ,QAAQ,WAAa,KAAK,WAAa,GAAG,aAAe,CAAC,KAAO,eAAe,WAAa,CAAC,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,WAAW,UAAY,CAAC,CAAC,KAAO,WAAW,KAAO,CAAC,KAAO,OAAO,MAAQ,MAAM,MAAQ,CAAC,KAAO,WAAW,KAAO,CAAC,KAAO,OAAO,MAAQ,SAAS,WAAa,GAAG,aAAe,CAAC,KAAO,eAAe,WAAa,CAAC,CAAC,KAAO,iBAAiB,KAAO,CAAC,KAAO,OAAO,MAAQ,QAAQ,WAAa,WAAW,IAAM,CAAC,MAAQ,EAAE,IAAM,MACtyBA,EAAIC,IAAI5O,OAAS,CAAC,KAAO,8GAAgH,KAAO,kBAAkB,eAAiB,CAAC,KAAO,EAAE,OAAS,IAGtM,IAAI8I,EAAQ,GACZ,SAAS2H,EAAOC,GACd,OAAOA,EAAKC,QACV,SAASpB,GACP,GAAiB,uBAAbA,EAAIP,KAA+B,OAAO,EAC9C,IAAIvL,EAAO8L,EAAI9L,KAAKhG,MACpB,OAAIqL,EAAMrF,KAGRqF,EAAMrF,IAAQ,GACP,MASf,SAASoL,EAA0BC,EAAMC,GACvC,GAAkB,mBAAdD,EAAKE,KACPD,EAAKE,IAAIH,EAAKrL,KAAKhG,YACd,GAAkB,uBAAdqR,EAAKE,KAA+B,CAC7C,IAAI5I,EAAO0I,EAAK1I,KACE,cAAdA,EAAK4I,MACPD,EAAKE,IAAI7I,EAAK3C,KAAKhG,OAInBqR,EAAKI,cACPJ,EAAKI,aAAaC,WAAWC,SAAQ,SAASC,GAC5CR,EAA0BQ,EAAWN,MAIrCD,EAAKQ,qBACPR,EAAKQ,oBAAoBF,SAAQ,SAASG,GACxCV,EAA0BU,EAAKR,MAI/BD,EAAKU,aACPV,EAAKU,YAAYJ,SAAQ,SAASG,GAChCV,EAA0BU,EAAKR,MA5BvCJ,EAAIa,YAAcb,EAAIa,YAAY7G,OAAO8H,EAAO,sBAiC9C,IAAIhB,EAAiB,GAWrB,SAASC,EAAcf,EAAKlL,GAC1B,IAAK,IAAInD,EAAI,EAAGA,EAAIqO,EAAIa,YAAY7R,OAAQ2C,IAAK,CAC/C,IAAIqP,EAAUhB,EAAIa,YAAYlP,GAC9B,GAAIqP,EAAQlM,MAAQkM,EAAQlM,KAAKhG,OAASgG,EACxC,OAAOkM,GAKb,SAASC,EAASjB,EAAKkB,GAErB,IAAIC,EAAS,CACXd,KAAML,EAAIK,KACVQ,YAAa,CAACE,EAAcf,EAAKkB,KAE/BlB,EAAIrL,eAAe,SACrBwM,EAAOlB,IAAMD,EAAIC,KAKnB,IAAImB,EAASN,EAAeI,IAAkB,IAAIG,IAC9CC,EAAU,IAAID,IACdE,EAAU,IAAIF,IAGlBD,EAAOX,SAAQ,SAASe,GACtBD,EAAQjB,IAAIkB,MAGd,MAAOD,EAAQE,KAAO,EAAG,CACvB,IAAIC,EAAWH,EACfA,EAAU,IAAIF,IAEdK,EAASjB,SAAQ,SAASe,GACxB,IAAKF,EAAQxK,IAAI0K,GAAU,CACzBF,EAAQhB,IAAIkB,GACZ,IAAIG,EAAYb,EAAeU,IAAY,IAAIH,IAC/CM,EAAUlB,SAAQ,SAASmB,GACzBL,EAAQjB,IAAIsB,UAapB,OAPAN,EAAQb,SAAQ,SAASe,GACvB,IAAIK,EAAKd,EAAcf,EAAKwB,GACxBK,GACFV,EAAON,YAAY3G,KAAK2H,MAIrBV,GA9DT,WACEnB,EAAIa,YAAYJ,SAAQ,SAASG,GAC/B,GAAIA,EAAI9L,KAAM,CACZ,IAAIsL,EAAO,IAAIiB,IACfnB,EAA0BU,EAAKR,GAC/BU,EAAeF,EAAI9L,KAAKhG,OAASsR,OALvC,GAiEAnS,EAAOC,QAAU8R,EAEb/R,EAAOC,QAAP,QAA4B+S,EAASjB,EAAK,Y,qBCxH9C,IAAIA,EAAM,CAAC,KAAO,WAAW,YAAc,CAAC,CAAC,KAAO,sBAAsB,UAAY,WAAW,KAAO,CAAC,KAAO,OAAO,MAAQ,YAAY,oBAAsB,CAAC,CAAC,KAAO,qBAAqB,SAAW,CAAC,KAAO,WAAW,KAAO,CAAC,KAAO,OAAO,MAAQ,OAAO,KAAO,CAAC,KAAO,cAAc,KAAO,CAAC,KAAO,YAAY,KAAO,CAAC,KAAO,OAAO,MAAQ,QAAQ,WAAa,KAAK,WAAa,GAAG,aAAe,CAAC,KAAO,eAAe,WAAa,CAAC,CAAC,KAAO,QAAQ,KAAO,CAAC,KAAO,OAAO,MAAQ,YAAY,UAAY,CAAC,CAAC,KAAO,WAAW,KAAO,CAAC,KAAO,OAAO,MAAQ,MAAM,MAAQ,CAAC,KAAO,WAAW,KAAO,CAAC,KAAO,OAAO,MAAQ,SAAS,WAAa,GAAG,aAAe,CAAC,KAAO,eAAe,WAAa,CAAC,CAAC,KAAO,iBAAiB,KAAO,CAAC,KAAO,OAAO,MAAQ,QAAQ,WAAa,WAAW,IAAM,CAAC,MAAQ,EAAE,IAAM,MACxyBA,EAAIC,IAAI5O,OAAS,CAAC,KAAO,gHAAkH,KAAO,kBAAkB,eAAiB,CAAC,KAAO,EAAE,OAAS,IAGxM,IAAI8I,EAAQ,GACZ,SAAS2H,EAAOC,GACd,OAAOA,EAAKC,QACV,SAASpB,GACP,GAAiB,uBAAbA,EAAIP,KAA+B,OAAO,EAC9C,IAAIvL,EAAO8L,EAAI9L,KAAKhG,MACpB,OAAIqL,EAAMrF,KAGRqF,EAAMrF,IAAQ,GACP,MASf,SAASoL,EAA0BC,EAAMC,GACvC,GAAkB,mBAAdD,EAAKE,KACPD,EAAKE,IAAIH,EAAKrL,KAAKhG,YACd,GAAkB,uBAAdqR,EAAKE,KAA+B,CAC7C,IAAI5I,EAAO0I,EAAK1I,KACE,cAAdA,EAAK4I,MACPD,EAAKE,IAAI7I,EAAK3C,KAAKhG,OAInBqR,EAAKI,cACPJ,EAAKI,aAAaC,WAAWC,SAAQ,SAASC,GAC5CR,EAA0BQ,EAAWN,MAIrCD,EAAKQ,qBACPR,EAAKQ,oBAAoBF,SAAQ,SAASG,GACxCV,EAA0BU,EAAKR,MAI/BD,EAAKU,aACPV,EAAKU,YAAYJ,SAAQ,SAASG,GAChCV,EAA0BU,EAAKR,MA5BvCJ,EAAIa,YAAcb,EAAIa,YAAY7G,OAAO8H,EAAO,sBAiC9C,IAAIhB,EAAiB,GAWrB,SAASC,EAAcf,EAAKlL,GAC1B,IAAK,IAAInD,EAAI,EAAGA,EAAIqO,EAAIa,YAAY7R,OAAQ2C,IAAK,CAC/C,IAAIqP,EAAUhB,EAAIa,YAAYlP,GAC9B,GAAIqP,EAAQlM,MAAQkM,EAAQlM,KAAKhG,OAASgG,EACxC,OAAOkM,GAKb,SAASC,EAASjB,EAAKkB,GAErB,IAAIC,EAAS,CACXd,KAAML,EAAIK,KACVQ,YAAa,CAACE,EAAcf,EAAKkB,KAE/BlB,EAAIrL,eAAe,SACrBwM,EAAOlB,IAAMD,EAAIC,KAKnB,IAAImB,EAASN,EAAeI,IAAkB,IAAIG,IAC9CC,EAAU,IAAID,IACdE,EAAU,IAAIF,IAGlBD,EAAOX,SAAQ,SAASe,GACtBD,EAAQjB,IAAIkB,MAGd,MAAOD,EAAQE,KAAO,EAAG,CACvB,IAAIC,EAAWH,EACfA,EAAU,IAAIF,IAEdK,EAASjB,SAAQ,SAASe,GACxB,IAAKF,EAAQxK,IAAI0K,GAAU,CACzBF,EAAQhB,IAAIkB,GACZ,IAAIG,EAAYb,EAAeU,IAAY,IAAIH,IAC/CM,EAAUlB,SAAQ,SAASmB,GACzBL,EAAQjB,IAAIsB,UAapB,OAPAN,EAAQb,SAAQ,SAASe,GACvB,IAAIK,EAAKd,EAAcf,EAAKwB,GACxBK,GACFV,EAAON,YAAY3G,KAAK2H,MAIrBV,GA9DT,WACEnB,EAAIa,YAAYJ,SAAQ,SAASG,GAC/B,GAAIA,EAAI9L,KAAM,CACZ,IAAIsL,EAAO,IAAIiB,IACfnB,EAA0BU,EAAKR,GAC/BU,EAAeF,EAAI9L,KAAKhG,OAASsR,OALvC,GAiEAnS,EAAOC,QAAU8R,EAEb/R,EAAOC,QAAP,SAA6B+S,EAASjB,EAAK,a,qBCtHnD,IAAIV,EAAU,EAAQ,MACnBA,EAAQ2C,aAAY3C,EAAUA,EAAQ4C,SACnB,kBAAZ5C,IAAsBA,EAAU,CAAC,CAACrR,EAAO8O,GAAIuC,EAAS,MAC7DA,EAAQ6C,SAAQlU,EAAOC,QAAUoR,EAAQ6C,QAE5C,IAAI7B,EAAM,UACGA,EAAI,WAAYhB,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,qBCN5E,IAAIA,EAAU,EAAQ,MACnBA,EAAQ2C,aAAY3C,EAAUA,EAAQ4C,SACnB,kBAAZ5C,IAAsBA,EAAU,CAAC,CAACrR,EAAO8O,GAAIuC,EAAS,MAC7DA,EAAQ6C,SAAQlU,EAAOC,QAAUoR,EAAQ6C,QAE5C,IAAI7B,EAAM,UACGA,EAAI,WAAYhB,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,qBCN5E,IAAIA,EAAU,EAAQ,MACnBA,EAAQ2C,aAAY3C,EAAUA,EAAQ4C,SACnB,kBAAZ5C,IAAsBA,EAAU,CAAC,CAACrR,EAAO8O,GAAIuC,EAAS,MAC7DA,EAAQ6C,SAAQlU,EAAOC,QAAUoR,EAAQ6C,QAE5C,IAAI7B,EAAM,UACGA,EAAI,WAAYhB,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,qBCN5E,IAAIA,EAAU,EAAQ,MACnBA,EAAQ2C,aAAY3C,EAAUA,EAAQ4C,SACnB,kBAAZ5C,IAAsBA,EAAU,CAAC,CAACrR,EAAO8O,GAAIuC,EAAS,MAC7DA,EAAQ6C,SAAQlU,EAAOC,QAAUoR,EAAQ6C,QAE5C,IAAI7B,EAAM,UACGA,EAAI,WAAYhB,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,qBCN5E,IAAIA,EAAU,EAAQ,MACnBA,EAAQ2C,aAAY3C,EAAUA,EAAQ4C,SACnB,kBAAZ5C,IAAsBA,EAAU,CAAC,CAACrR,EAAO8O,GAAIuC,EAAS,MAC7DA,EAAQ6C,SAAQlU,EAAOC,QAAUoR,EAAQ6C,QAE5C,IAAI7B,EAAM,UACGA,EAAI,WAAYhB,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,qBCN5E,IAAIA,EAAU,EAAQ,MACnBA,EAAQ2C,aAAY3C,EAAUA,EAAQ4C,SACnB,kBAAZ5C,IAAsBA,EAAU,CAAC,CAACrR,EAAO8O,GAAIuC,EAAS,MAC7DA,EAAQ6C,SAAQlU,EAAOC,QAAUoR,EAAQ6C,QAE5C,IAAI7B,EAAM,UACGA,EAAI,WAAYhB,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,qBCN5E,IAAIA,EAAU,EAAQ,MACnBA,EAAQ2C,aAAY3C,EAAUA,EAAQ4C,SACnB,kBAAZ5C,IAAsBA,EAAU,CAAC,CAACrR,EAAO8O,GAAIuC,EAAS,MAC7DA,EAAQ6C,SAAQlU,EAAOC,QAAUoR,EAAQ6C,QAE5C,IAAI7B,EAAM,UACGA,EAAI,WAAYhB,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,qBCN5E,IAAIA,EAAU,EAAQ,MACnBA,EAAQ2C,aAAY3C,EAAUA,EAAQ4C,SACnB,kBAAZ5C,IAAsBA,EAAU,CAAC,CAACrR,EAAO8O,GAAIuC,EAAS,MAC7DA,EAAQ6C,SAAQlU,EAAOC,QAAUoR,EAAQ6C,QAE5C,IAAI7B,EAAM,UACGA,EAAI,WAAYhB,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,qBCN5E,IAAIA,EAAU,EAAQ,MACnBA,EAAQ2C,aAAY3C,EAAUA,EAAQ4C,SACnB,kBAAZ5C,IAAsBA,EAAU,CAAC,CAACrR,EAAO8O,GAAIuC,EAAS,MAC7DA,EAAQ6C,SAAQlU,EAAOC,QAAUoR,EAAQ6C,QAE5C,IAAI7B,EAAM,UACGA,EAAI,WAAYhB,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa,K,kCCL7D,SAAS8C,EAAcC,EAAUlD,GAG9C,IAFA,IAAImD,EAAS,GACTC,EAAY,GACP5Q,EAAI,EAAGA,EAAIwN,EAAKnQ,OAAQ2C,IAAK,CACpC,IAAI0N,EAAOF,EAAKxN,GACZoL,EAAKsC,EAAK,GACVmD,EAAMnD,EAAK,GACXI,EAAQJ,EAAK,GACboD,EAAYpD,EAAK,GACjBqD,EAAO,CACT3F,GAAIsF,EAAW,IAAM1Q,EACrB6Q,IAAKA,EACL/C,MAAOA,EACPgD,UAAWA,GAERF,EAAUxF,GAGbwF,EAAUxF,GAAI4F,MAAMzI,KAAKwI,GAFzBJ,EAAOpI,KAAKqI,EAAUxF,GAAM,CAAEA,GAAIA,EAAI4F,MAAO,CAACD,KAKlD,OAAOJ,E,gCCjBT,IAAIM,EAAkC,qBAAbvQ,SAEzB,GAAqB,qBAAVwQ,OAAyBA,QAC7BD,EACH,MAAM,IAAIlS,MACV,2JAkBJ,IAAIoS,EAAc,GAQdC,EAAOH,IAAgBvQ,SAAS0Q,MAAQ1Q,SAAS2Q,qBAAqB,QAAQ,IAC9EC,EAAmB,KACnBC,EAAmB,EACnBC,GAAe,EACfC,EAAO,aACP9P,EAAU,KACV+P,EAAW,kBAIXC,EAA+B,qBAAdC,WAA6B,eAAezS,KAAKyS,UAAU5Q,UAAU6F,eAE3E,SAASgL,EAAiBnB,EAAUlD,EAAMsE,EAAeC,GACtEP,EAAeM,EAEfnQ,EAAUoQ,GAAY,GAEtB,IAAIpB,EAASF,EAAaC,EAAUlD,GAGpC,OAFAwE,EAAerB,GAER,SAAiBsB,GAEtB,IADA,IAAIC,EAAY,GACPlS,EAAI,EAAGA,EAAI2Q,EAAOtT,OAAQ2C,IAAK,CACtC,IAAI0N,EAAOiD,EAAO3Q,GACdmS,EAAWhB,EAAYzD,EAAKtC,IAChC+G,EAAS1D,OACTyD,EAAU3J,KAAK4J,GAEbF,GACFtB,EAASF,EAAaC,EAAUuB,GAChCD,EAAerB,IAEfA,EAAS,GAEX,IAAS3Q,EAAI,EAAGA,EAAIkS,EAAU7U,OAAQ2C,IAAK,CACrCmS,EAAWD,EAAUlS,GACzB,GAAsB,IAAlBmS,EAAS1D,KAAY,CACvB,IAAK,IAAI2D,EAAI,EAAGA,EAAID,EAASnB,MAAM3T,OAAQ+U,IACzCD,EAASnB,MAAMoB,YAEVjB,EAAYgB,EAAS/G,OAMpC,SAAS4G,EAAgBrB,GACvB,IAAK,IAAI3Q,EAAI,EAAGA,EAAI2Q,EAAOtT,OAAQ2C,IAAK,CACtC,IAAI0N,EAAOiD,EAAO3Q,GACdmS,EAAWhB,EAAYzD,EAAKtC,IAChC,GAAI+G,EAAU,CACZA,EAAS1D,OACT,IAAK,IAAI2D,EAAI,EAAGA,EAAID,EAASnB,MAAM3T,OAAQ+U,IACzCD,EAASnB,MAAMoB,GAAG1E,EAAKsD,MAAMoB,IAE/B,KAAOA,EAAI1E,EAAKsD,MAAM3T,OAAQ+U,IAC5BD,EAASnB,MAAMzI,KAAK8J,EAAS3E,EAAKsD,MAAMoB,KAEtCD,EAASnB,MAAM3T,OAASqQ,EAAKsD,MAAM3T,SACrC8U,EAASnB,MAAM3T,OAASqQ,EAAKsD,MAAM3T,YAEhC,CACL,IAAI2T,EAAQ,GACZ,IAASoB,EAAI,EAAGA,EAAI1E,EAAKsD,MAAM3T,OAAQ+U,IACrCpB,EAAMzI,KAAK8J,EAAS3E,EAAKsD,MAAMoB,KAEjCjB,EAAYzD,EAAKtC,IAAM,CAAEA,GAAIsC,EAAKtC,GAAIqD,KAAM,EAAGuC,MAAOA,KAK5D,SAASsB,IACP,IAAIC,EAAe7R,SAASE,cAAc,SAG1C,OAFA2R,EAAazM,KAAO,WACpBsL,EAAKoB,YAAYD,GACVA,EAGT,SAASF,EAAUnL,GACjB,IAAIuL,EAAQC,EACRH,EAAe7R,SAASiS,cAAc,SAAWjB,EAAW,MAAQxK,EAAIkE,GAAK,MAEjF,GAAImH,EAAc,CAChB,GAAIf,EAGF,OAAOC,EAOPc,EAAaK,WAAWC,YAAYN,GAIxC,GAAIZ,EAAS,CAEX,IAAImB,EAAavB,IACjBgB,EAAejB,IAAqBA,EAAmBgB,KACvDG,EAASM,EAAoBhQ,KAAK,KAAMwP,EAAcO,GAAY,GAClEJ,EAASK,EAAoBhQ,KAAK,KAAMwP,EAAcO,GAAY,QAGlEP,EAAeD,IACfG,EAASO,EAAWjQ,KAAK,KAAMwP,GAC/BG,EAAS,WACPH,EAAaK,WAAWC,YAAYN,IAMxC,OAFAE,EAAOvL,GAEA,SAAsB+L,GAC3B,GAAIA,EAAQ,CACV,GAAIA,EAAOpC,MAAQ3J,EAAI2J,KACnBoC,EAAOnF,QAAU5G,EAAI4G,OACrBmF,EAAOnC,YAAc5J,EAAI4J,UAC3B,OAEF2B,EAAOvL,EAAM+L,QAEbP,KAKN,IAAIQ,EAAc,WAChB,IAAIC,EAAY,GAEhB,OAAO,SAAU7V,EAAO+I,GAEtB,OADA8M,EAAU7V,GAAS+I,EACZ8M,EAAU9C,OAAO+C,SAAStJ,KAAK,OALxB,GASlB,SAASiJ,EAAqBR,EAAcjV,EAAOoV,EAAQxL,GACzD,IAAI2J,EAAM6B,EAAS,GAAKxL,EAAI2J,IAE5B,GAAI0B,EAAac,WACfd,EAAac,WAAWC,QAAUJ,EAAY5V,EAAOuT,OAChD,CACL,IAAI0C,EAAU7S,SAAS8S,eAAe3C,GAClC4C,EAAalB,EAAakB,WAC1BA,EAAWnW,IAAQiV,EAAaM,YAAYY,EAAWnW,IACvDmW,EAAWpW,OACbkV,EAAamB,aAAaH,EAASE,EAAWnW,IAE9CiV,EAAaC,YAAYe,IAK/B,SAASP,EAAYT,EAAcrL,GACjC,IAAI2J,EAAM3J,EAAI2J,IACV/C,EAAQ5G,EAAI4G,MACZgD,EAAY5J,EAAI4J,UAiBpB,GAfIhD,GACFyE,EAAaoB,aAAa,QAAS7F,GAEjCnM,EAAQiS,OACVrB,EAAaoB,aAAajC,EAAUxK,EAAIkE,IAGtC0F,IAGFD,GAAO,mBAAqBC,EAAU+C,QAAQ,GAAK,MAEnDhD,GAAO,uDAAyDiD,KAAKC,SAASC,mBAAmBC,KAAKC,UAAUpD,MAAgB,OAG9HyB,EAAac,WACfd,EAAac,WAAWC,QAAUzC,MAC7B,CACL,MAAO0B,EAAa4B,WAClB5B,EAAaM,YAAYN,EAAa4B,YAExC5B,EAAaC,YAAY9R,SAAS8S,eAAe3C,QC1NjDuD,EAA2B,GAG/B,SAASC,EAAoBC,GAE5B,IAAIC,EAAeH,EAAyBE,GAC5C,QAAqB5V,IAAjB6V,EACH,OAAOA,EAAahY,QAGrB,IAAID,EAAS8X,EAAyBE,GAAY,CACjDlJ,GAAIkJ,EAEJ/X,QAAS,IAOV,OAHAiY,EAAoBF,GAAUhY,EAAQA,EAAOC,QAAS8X,GAG/C/X,EAAOC,S,WCpBf8X,EAAoBI,EAAI,SAASnY,GAChC,IAAIoY,EAASpY,GAAUA,EAAOgU,WAC7B,WAAa,OAAOhU,EAAO,YAC3B,WAAa,OAAOA,GAErB,OADA+X,EAAoBM,EAAED,EAAQ,CAAErQ,EAAGqQ,IAC5BA,G,cCLRL,EAAoBM,EAAI,SAASpY,EAASqY,GACzC,IAAI,IAAItW,KAAOsW,EACXP,EAAoBQ,EAAED,EAAYtW,KAAS+V,EAAoBQ,EAAEtY,EAAS+B,IAC5EJ,OAAO2B,eAAetD,EAAS+B,EAAK,CAAE+B,YAAY,EAAMI,IAAKmU,EAAWtW,M,cCJ3E+V,EAAoBnQ,EAAI,WACvB,GAA0B,kBAAfH,WAAyB,OAAOA,WAC3C,IACC,OAAOI,MAAQ,IAAIxB,SAAS,cAAb,GACd,MAAOmS,GACR,GAAsB,kBAAX9Q,OAAqB,OAAOA,QALjB,G,cCAxBqQ,EAAoBQ,EAAI,SAAS3N,EAAK6N,GAAQ,OAAO7W,OAAOkE,UAAUY,eAAeH,KAAKqE,EAAK6N,I,cCC/FV,EAAoBW,EAAI,SAASzY,GACX,qBAAX+K,QAA0BA,OAAO2N,aAC1C/W,OAAO2B,eAAetD,EAAS+K,OAAO2N,YAAa,CAAE9X,MAAO,WAE7De,OAAO2B,eAAetD,EAAS,aAAc,CAAEY,OAAO,K,4BCLvD,IAAI+X,EAAS,WAAa,IAAIC,EAAIhR,KAASiR,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,WAAW,CAACE,YAAY,aAAaC,MAAM,CAAC,MAAQ,2BAA2B,GAAGH,EAAG,MAAM,CAACE,YAAY,SAAS,CAACL,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIS,GAAG,0CAA0C,OAAON,EAAG,MAAM,CAACE,YAAY,QAAQL,EAAIU,GAAG,GAAI,SAASpB,GAAG,OAAOa,EAAG,MAAM,CAAChX,IAAImW,EAAEe,YAAY,MAAMC,MAAM,CAAC,SAAShB,IAAI,CAACa,EAAG,WAAW,CAACE,YAAY,OAAOC,MAAM,CAAC,MAAQN,EAAIW,SAASrB,EAAI,MAAMa,EAAG,MAAM,CAACE,YAAY,WAAW,CAACL,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIS,GAAI,sCAAwCnB,IAAK,QAAQ,MAAK,GAAGa,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,YAAY,CAACE,YAAY,cAAcC,MAAM,CAAC,MAAQN,EAAIS,GAAG,sCAAsC,YAAY,QAAQG,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOb,EAAIc,OAAOvD,cAAc,MACj3BwD,EAAkB,GCsCtB,GACEC,OAAQ,CACV,UAGEC,UACEjS,KAAK2R,SAAW,CACpB,YACA,aACA,UChD+W,I,QCMhW,SAASO,EACtBC,EACApB,EACAgB,EACAK,EACAC,EACAC,EACAC,EACAC,GAGA,IAqBIC,EArBAjV,EAAmC,oBAAlB2U,EACjBA,EAAc3U,QACd2U,EAsDJ,GAnDIpB,IACFvT,EAAQuT,OAASA,EACjBvT,EAAQuU,gBAAkBA,EAC1BvU,EAAQkV,WAAY,GAIlBN,IACF5U,EAAQmV,YAAa,GAInBL,IACF9U,EAAQoV,SAAW,UAAYN,GAI7BC,GACFE,EAAO,SAAUI,GAEfA,EACEA,GACC7S,KAAK8S,QAAU9S,KAAK8S,OAAOC,YAC3B/S,KAAKgT,QAAUhT,KAAKgT,OAAOF,QAAU9S,KAAKgT,OAAOF,OAAOC,WAEtDF,GAA0C,qBAAxBI,sBACrBJ,EAAUI,qBAGRZ,GACFA,EAAa3T,KAAKsB,KAAM6S,GAGtBA,GAAWA,EAAQK,uBACrBL,EAAQK,sBAAsB1I,IAAI+H,IAKtC/U,EAAQ2V,aAAeV,GACdJ,IACTI,EAAOD,EACH,WACAH,EAAa3T,KACXsB,MACCxC,EAAQmV,WAAa3S,KAAKgT,OAAShT,MAAMoT,MAAMC,SAASC,aAG3DjB,GAGFI,EACF,GAAIjV,EAAQmV,WAAY,CAGtBnV,EAAQ+V,cAAgBd,EAExB,IAAIe,EAAiBhW,EAAQuT,OAC7BvT,EAAQuT,OAAS,SAAmC0C,EAAGZ,GAErD,OADAJ,EAAK/T,KAAKmU,GACHW,EAAeC,EAAGZ,QAEtB,CAEL,IAAIa,EAAWlW,EAAQmW,aACvBnW,EAAQmW,aAAeD,EACnB,GAAGxP,OAAOwP,EAAUjB,GACpB,CAACA,GAIT,MAAO,CACLra,QAAS+Z,EACT3U,QAASA,GCvFb,IAAIoW,EAAY,EACd,EACA7C,EACAgB,GACA,EACA,KACA,WACA,MAIF,EAAe6B,EAAiB,QCnB5B,EAAS,WAAa,IAAI5C,EAAIhR,KAASiR,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,YAAYwC,MAAM,CACnI,UAAY7C,EAAI8C,SAChB,CAAC3C,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,MAAM,CAACE,YAAY,UAAU,CAAiB,YAAfL,EAAI8C,OAAsB3C,EAAG,sBAAsB,CAACE,YAAY,SAASF,EAAG,WAAW,CAACE,YAAY,aAAaC,MAAM,CAAC,MAAQN,EAAI+C,QAAQ5C,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACL,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIS,GAAI,oCAAsCT,EAAI8C,SAAU,QAAQ,GAAG3C,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,WAAW,CAACE,YAAY,YAAYC,MAAM,CAAC,YAAcN,EAAIS,GAAG,+CAA+C,KAAO,UAAUG,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAIA,EAAOlQ,KAAKtI,QAAQ,QAAQ2X,EAAI/G,GAAG4H,EAAOmC,QAAQ,QAAQ,GAAGnC,EAAO1X,IAAI,SAAkB,KAAc6W,EAAIiD,SAASC,MAAM,CAAClb,MAAOgY,EAAQ,KAAEmD,SAAS,SAAUC,GAAMpD,EAAIqD,KAAKD,GAAKE,WAAW,UAAUnD,EAAG,YAAY,CAACE,YAAY,cAAcC,MAAM,CAAC,MAAQN,EAAIS,GAAG,kCAAkC,YAAY,YAAYG,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOb,EAAIiD,YAAY,QACv4B,EAAkB,GCwCtB,MAAMM,EAAQ,CACZC,KAAM,WACNC,OAAQ,eACRra,MAAO,SAGT,OACEsa,aACE,OAAOC,cAAc,6BAA8B,CACjDb,OAAQ,YAIZzR,OACE,MAAO,CACLgS,KAAM,KAIVO,SAAU,CACRb,OACE,OAAOQ,EAAMvU,KAAK8T,SAAWS,EAAMC,MAGrCK,aACE,MAAO,MAAM7Z,KAAKgF,KAAKqU,QAI3BS,MAAO,CACLhB,OAAJA,GACoB,WAAV9a,IACFgH,KAAKqU,KAAO,IAEA,YAAVrb,GAAiC,SAAVA,IACzBgH,KAAK+U,cAAgBC,YAAW,KAC9BhV,KAAK8T,OAAS,SACxB,QAKEmB,QAAS,CACPhB,OACEiB,aAAalV,KAAK+U,eAClB/U,KAAKmV,kBAAkB,oCAAqC,CAC1Dd,KAAMrU,KAAKqU,UCzF6V,ICQ5W,G,QAAY,EACd,EACA,EACA,GACA,EACA,KACA,WACA,OAIF,EAAe,EAAiB,QCnB5B,EAAS,WAAa,IAAIrD,EAAIhR,KAASiR,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAAEL,EAAU,OAAEG,EAAG,eAAe,CAACG,MAAM,CAAC,KAAON,EAAIoE,MAAMpE,EAAI8C,OAAOA,QAAQ,aAAa9C,EAAIqE,YAAYrE,EAAI8C,OAAOA,QAAQ,MAAQ9C,EAAIS,GAAI,2CAA8CT,EAAI8C,OAAa,QAAI,OAAS9C,EAAI8C,QAAQlC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOb,EAAIsE,qBAAqB,CAACnE,EAAG,WAAW,CAACoE,KAAK,gBAAgB,CAACpE,EAAG,YAAY,CAACG,MAAM,CAAC,GAAK,CAAEtS,KAAM,mBAAoB,MAAQgS,EAAIS,GAAG,uCAAuC,YAAY,gBAAgB,IAAI,GAAGT,EAAIwE,MAAM,IACtmB,EAAkB,GCDf,MAAMC,EAAgB,CAC3BC,GAAI,eACJC,QAAS,iBACTC,UAAW,SAGAC,EAAuB,CAClCH,GAAI,UACJC,QAAS,GACTC,UAAW,WCTb,IAAI,EAAS,WAAa,IAAI5E,EAAIhR,KAASiR,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAQD,EAAe,YAAEG,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,MAAM,CAACE,YAAY,UAAU,CAACF,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,WAAW,CAACE,YAAY,OAAOwC,MAAM7C,EAAI8E,UAAUxE,MAAM,CAAC,MAAQN,EAAI+C,SAAS,GAAG5C,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,QAAQ0E,SAAS,CAAC,UAAY/E,EAAIQ,GAAGR,EAAIgF,UAAU7E,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAAEL,EAAI8C,OAAiB,WAAE,CAAC3C,EAAG,MAAM,CAACE,YAAY,SAAS,CAACL,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIrI,SAAWqI,EAAIS,GAAG,+CAA+C,OAAST,EAAIrI,QAAsFqI,EAAIwE,KAAjFrE,EAAG,aAAa,CAACG,MAAM,CAAC,SAAWN,EAAI8C,OAAOmC,WAAW,cAAc,OAAgB9E,EAAG,MAAM,CAACE,YAAY,SAAS,CAACL,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIS,GAAG,wCAAwC,QAAQ,OAAON,EAAG,MAAM,CAACE,YAAY,WAAW,CAACL,EAAIkF,GAAG,WAAU,WAAW,MAAO,CAAwB,cAAtBlF,EAAI8C,OAAOA,OAAwB3C,EAAG,YAAY,CAACG,MAAM,CAAC,MAAQN,EAAIS,GAAG,2CAA2C,YAAY,cAAcG,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOb,EAAIc,OAAOqE,kBAAkBnF,EAAIwE,KAAKxE,EAAIkF,GAAG,qBAAoB,KAAK/E,EAAG,MAAM,CAACE,YAAY,sBAAsB,CAACF,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACL,EAAIO,GAAG,uBACjsC,EAAkB,GCmDtB,GACES,OAAQ,CACV,UAGEoE,MAAO,CACLrC,KAAM,CACJpS,KAAMrJ,OACN+d,UAAU,GAGZP,UAAW,CACTnU,KAAM,CAACrJ,OAAQqM,MAAO5K,QACtBqS,aAAS7R,GAGXyb,MAAO,CACLrU,KAAMrJ,OACN+d,UAAU,GAGZvC,OAAQ,CACNnS,KAAM5H,OACNsc,UAAU,GAGZ1N,QAAS,CACPhH,KAAMrJ,OACN8T,QAAS,MAIXkK,YAAa,CACX3U,KAAMsN,QACN7C,SAAS,IAIb6F,aC1FkX,ICQhX,G,QAAY,EACd,EACA,EACA,GACA,EACA,KACA,WACA,OAIF,EAAe,EAAiB,QCOhC,GACEsE,WAAY,CACVC,aAAYA,GAGd9B,aACE,OAAOC,cAAc,kCAAmC,CACtDb,OAAQ,YAIZ7B,UACEjS,KAAKoV,MAAQK,EACbzV,KAAKqV,YAAcQ,GAGrBZ,QAAS,CACPK,sBC3CiX,ICOjX,EAAY,EACd,EACA,EACA,GACA,EACA,KACA,KACA,MAIF,EAAe,EAAiB,QClB5B,EAAS,WAAa,IAAItE,EAAIhR,KAASiR,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,sBAAsB,CAAEL,EAAU,OAAEG,EAAG,eAAe,CAACG,MAAM,CAAC,KAAON,EAAIoE,MAAMpE,EAAI8C,OAAOA,QAAQ,aAAa9C,EAAIqE,YAAYrE,EAAI8C,OAAOA,QAAQ,MAAQ9C,EAAIS,GAAI,+CAAkDT,EAAI8C,OAAa,QAAI,OAAS9C,EAAI8C,QAAQlC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOb,EAAIsE,qBAAqB,CAACnE,EAAG,WAAW,CAACoE,KAAK,gBAAgB,CAACpE,EAAG,YAAY,CAACG,MAAM,CAAC,GAAK,CAAEtS,KAAM,wBAAyB,MAAQgS,EAAIS,GAAG,2CAA2C,YAAY,2BAA2B,IAAI,GAAGT,EAAIwE,MAAM,IACloB,EAAkB,GCyBtB,GACEe,WAAY,CACVC,aAAYA,GAGd9B,aACE,OAAOC,cAAc,sCAAuC,CAC1Db,OAAQ,YAIZ7B,UACEjS,KAAKoV,MAAQK,EACbzV,KAAKqV,YAAcQ,GAGrBZ,QAAS,CACPK,sBC3CqX,ICOrX,EAAY,EACd,EACA,EACA,GACA,EACA,KACA,KACA,MAIF,EAAe,EAAiB,QClB5B,EAAS,WAAa,IAAItE,EAAIhR,KAASiR,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAAEL,EAAU,OAAEG,EAAG,eAAe,CAACG,MAAM,CAAC,KAA6B,cAAtBN,EAAI8C,OAAOA,OAAyB9C,EAAIyF,SAAS1C,KAAO/C,EAAIoE,MAAMpE,EAAI8C,OAAOA,QAAQ,aAAmC,cAAtB9C,EAAI8C,OAAOA,OAAyB9C,EAAIyF,SAAS5C,MAAQ7C,EAAIqE,YAAYrE,EAAI8C,OAAOA,QAAQ,MAAQ9C,EAAIS,GAAI,0CAA6CT,EAAI8C,OAAa,OAAI,CAAExD,EAAGU,EAAI8C,OAAO4C,QAAS,OAAS1F,EAAI8C,OAAO,QAAU9C,EAAI8C,OAAOnL,QAAQ,YAAc,IAAIiJ,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOb,EAAIsE,oBAAoBqB,YAAY3F,EAAI4F,GAAG,CAAC,CAACzc,IAAI,eAAe+E,GAAG,WAAW,MAAO,CAAwB,YAAtB8R,EAAI8C,OAAOA,OAAsB3C,EAAG,YAAY,CAACG,MAAM,CAAC,MAAQN,EAAIS,GAAG,yCAAyC,YAAY,WAAWG,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOb,EAAI6F,cAAc7F,EAAIwE,OAAOsB,OAAM,IAAO,MAAK,EAAM,cAAc9F,EAAIwE,MAAM,IACj5B,EAAkB,GC4BtB,MAAM,EAAgB,CACpBE,GAAI,gBACJC,QAAS,kBACTC,UAAW,QACXxb,MAAO,SAGI2c,EAAa,CACxBC,SAAU,CACRnD,MAAO,SACPE,KAAM,gBAERkD,KAAM,CACJpD,MAAO,SACPE,KAAM,SAERmD,SAAU,CACRrD,MAAO,UACPE,KAAM,SAERoD,IAAK,CACHtD,MAAO,GACPE,KAAM,UAIV,OACEwC,WAAY,CACVC,aAAYA,GAGd9B,aACE,OAAOC,cAAc,iCAAkC,CACrDb,OAAQ,YAIZc,SAAU,CACR6B,WACE,OAAOzW,KAAK8T,QAAUiD,EAAW/W,KAAK8T,OAAO2C,YAIjDxE,UACEjS,KAAKoV,MAAQ,EACbpV,KAAKqV,YAAcQ,GAGrBZ,QAAS,CACP4B,UACE7W,KAAKmV,kBAAkB,iDC/EwV,ICOjX,EAAY,EACd,EACA,EACA,GACA,EACA,KACA,KACA,MAIF,EAAe,EAAiB,QClB5B,EAAS,WAAa,IAAInE,EAAIhR,KAASiR,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,yBAAyB,CAAGL,EAAIoG,QAAyE,CAACjG,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,MAAM,CAACE,YAAY,SAAS,CAACL,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIS,GAAG,mDAAoD,CAAEnB,EAAGU,EAAIoG,QAAQC,gBAAgBne,UAAW,OAAOiY,EAAG,MAAM,CAACE,YAAY,WAAWL,EAAIU,GAAIV,EAAc,YAAE,SAASyF,EAAStc,GAAK,OAAOgX,EAAG,MAAM,CAAChX,IAAIA,EAAIkX,YAAY,eAAewC,MAAO,YAAe4C,EAAc,OAAI,CAACtF,EAAG,UAAU,CAAC0C,MAAM4C,EAAS5C,MAAMvC,MAAM,CAAC,KAAOmF,EAAS1C,QAAQ5C,EAAG,OAAO,CAACE,YAAY,SAAS,CAACL,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIoG,QAAQE,QAAQnd,OAAS6W,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIS,GAAI,0CAA4CtX,IAAO,MAAM,MAAK,KAAKgX,EAAG,aAAa,CAACG,MAAM,CAAC,KAAO,gBAAgB,CAAEN,EAAY,SAAEG,EAAG,kBAAkB,CAACoG,IAAI,WAAWlG,YAAY,QAAQC,MAAM,CAAC,MAAQN,EAAIoG,QAAQC,gBAAgB,gBAAgB,IAAIV,YAAY3F,EAAI4F,GAAG,CAAC,CAACzc,IAAI,UAAU+E,GAAG,SAASqY,GACriC,IAAIhO,EAAOgO,EAAIhO,KACXiO,EAASD,EAAIC,OACjB,MAAO,CAACrG,EAAG,sBAAsB,CAACG,MAAM,CAAC,KAAO/H,EAAK,OAASiO,EAAO,oBAAoB,CAC7ExG,EAAIyG,mBAAmBlO,EAAKtC,OAC1B,CAACkK,EAAG,oBAAoB,CAACG,MAAM,CAAC,KAAO/H,EAAK,oBAAoByH,EAAIyG,mBAAmBlO,EAAKtC,KAAK2K,GAAG,CAAC,sBAAsB,SAASC,GAAQ,OAAOb,EAAI0G,KAAK1G,EAAIyG,mBAAoBlO,EAAKtC,IAAK+J,EAAIyG,mBAAmBlO,EAAKtC,UAAU,OAAO,MAAK,EAAM,cAAc+J,EAAIwE,MAAM,IAL7HrE,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,wBAAwB,IAKqE,IAC7R,EAAkB,GCNlB,EAAS,WAAa,IAAIH,EAAIhR,KAASiR,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,gCAAgC,CAACF,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,WAAW,CAAC0C,MAAM7C,EAAIyF,SAAS5C,MAAMvC,MAAM,CAAC,MAAQN,EAAIyF,SAAS1C,QAAQ5C,EAAG,MAAM,CAACE,YAAY,cAAc,CAACF,EAAG,eAAe,CAACG,MAAM,CAAC,KAAON,EAAIzH,KAAKoO,WAAW,CAACxG,EAAG,WAAW,CAACoE,KAAK,QAAQ,CAACpE,EAAG,OAAO,CAACE,YAAY,QAAQ,CAACL,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIzH,KAAKvK,SAASmS,EAAG,OAAO,CAACE,YAAY,WAAW,CAACL,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIzH,KAAK3M,cAAcuU,EAAG,WAAW,CAACoE,KAAK,eAAe,CAACpE,EAAG,OAAO,CAACE,YAAY,WAAWwC,MAAM7C,EAAIyF,SAAS5C,OAAO,CAAC7C,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIS,GAAI,0CAA6CT,EAAIzH,KAAa,WAAK,OAAO4H,EAAG,OAAO,CAACyG,WAAW,CAAC,CAAC5Y,KAAK,UAAU6Y,QAAQ,YAAY7e,MAAOgY,EAAIzH,KAAY,QAAE+K,WAAW,iBAAiBjD,YAAY,SAAS,CAACL,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIzH,KAAKyM,OAAO,UAAU,GAAG7E,EAAG,MAAM,CAACE,YAAY,iBAAiB,CAACF,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,UAAU,CAACG,MAAM,CAAC,KAAO,WAAWN,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIS,GAAG,sDAAsD,KAAKN,EAAG,OAAO,CAACE,YAAY,WAAW,CAACL,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIzH,KAAKvM,SAAS8a,gBAAgB,GAAG3G,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACF,EAAG,UAAU,CAACG,MAAM,CAAC,KAAO,kBAAkBN,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIS,GAAG,mDAAmD,KAAKN,EAAG,OAAO,CAACE,YAAY,WAAW,CAACL,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIzH,KAAKvM,SAAS+a,aAAa,KAAK5G,EAAG,MAAM,CAACE,YAAY,6CAA6C,CAACF,EAAG,UAAU,CAACE,YAAY,MAAMC,MAAM,CAAC,KAAO,mBAAmBN,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIzH,KAAKyO,gBAAgB,MAAM,IAAI,GAAG7G,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACL,EAAIU,GAAIV,EAAoB,kBAAE,SAASiH,EAAQ9e,GAAO,OAAOgY,EAAG,MAAM,CAAChX,IAAIhB,EAAMkY,YAAY,WAAW,CAAG4G,EAAQ/e,OAA4H,CAAC8X,EAAIU,GAAG,GAAU,SAASsB,EAAO7Z,GAAO,OAAOgY,EAAG,MAAM,CAAChX,IAAIhB,EAAMkY,YAAY,UAAU,CAACF,EAAG,OAAO,CAACE,YAAY,QAAQ,CAACL,EAAIO,GAAGP,EAAIQ,GAAGwB,EAAOhU,SAASmS,EAAG,UAAU,CAACE,YAAY,wBAAwBC,MAAM,CAAC,KAAO,oBAAoB,MAAKH,EAAG,MAAM,CAACE,YAAY,kBAAkB,CAACF,EAAG,OAAO,CAACE,YAAY,QAAQ,CAACL,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIzH,KAAKvK,YAAtcmS,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAACL,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIS,GAAG,6CAA6C,QAAsW,MAAMT,EAAIzH,KAAK0O,QAAQ/e,OAAS,EAAGiY,EAAG,MAAM,CAACE,YAAY,aAAa,CAACF,EAAG,YAAY,CAACE,YAAY,OAAOC,MAAM,CAAC,YAAYN,EAAIkH,gBAAkB,cAAgB,eAAetG,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOb,EAAImH,MAAM,0BAA0B,CAACnH,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIS,GAAI,wBAA0BT,EAAIkH,gBAAkB,OAAS,UAAW,QAAQ,GAAGlH,EAAIwE,MAAM,IAAI,MAC1jF,EAAkB,GC6FtB,GACEY,MAAO,CACL7M,KAAM,CACJ5H,KAAM5H,OACNsc,UAAU,GAEZ6B,gBAAiB,CACfvW,KAAMsN,UAIV2F,SAAU,CACR6B,WACE,OAAOM,EAAW/W,KAAKuJ,KAAKkN,WAG9B2B,mBACE,OAAOpY,KAAKkY,gBAAkBlY,KAAKuJ,KAAK0O,QAAUjY,KAAKuJ,KAAK0O,QAAQxe,MAAM,EAAG,MC/GsS,ICQrX,G,QAAY,EACd,EACA,EACA,GACA,EACA,KACA,WACA,OAIF,EAAe,EAAiB,QC8ChC,GACE8c,WAAY,CACV8B,kBAAiBA,GAGnB3D,aACE,OAAOC,cAAc,iCAAkC,CACrDyC,QAAS,aAIb/U,OACE,MAAO,CACLiW,UAAU,EACVb,mBAAoB,KAIxBxF,UACEjS,KAAKuY,WAAaxB,GAGpByB,UAEExD,YAAW,KACThV,KAAKsY,UAAW,IACtB,OC3F4X,ICQxX,G,QAAY,EACd,EACA,EACA,GACA,EACA,KACA,WACA,OAIF,GAAe,EAAiB,QCnB5B,GAAS,WAAa,IAAItH,EAAIhR,KAASiR,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,YAAY,CAAEL,EAAQ,KAAE,CAACG,EAAG,WAAW,CAACE,YAAY,OAAOC,MAAM,CAAC,KAAON,EAAIyH,QAAQtH,EAAG,MAAM,CAACE,YAAY,WAAW,CAAsB,YAApBL,EAAIyH,KAAK3E,OAAsB3C,EAAG,YAAY,CAACE,YAAY,UAAUC,MAAM,CAAC,YAAY,aAAa,MAAQN,EAAIS,GAAG,oDAAoDG,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOb,EAAI0H,cAAcvH,EAAG,YAAY,CAACE,YAAY,UAAUC,MAAM,CAAC,YAAY,OAAO,MAAQN,EAAIS,GAAG,oDAAoDG,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOb,EAAI2H,eAAexH,EAAG,YAAY,CAACG,MAAM,CAAC,YAAY,aAAa,MAAQN,EAAIS,GAAG,iCAAiC,GAAK,CAAEzS,KAAM,uBAAwB4Z,OAAQ,CAAE3R,GAAI+J,EAAI6H,aAAe,IAAI7H,EAAIwE,MAAM,IACtzB,GAAkB,G,wFCwCtB,IACExD,OAAQ,CACV,UAGE8G,OAAQ,CACNL,KAAM,CACJM,MAAOA,KACPC,YACE,MAAO,CACL/R,GAAIjH,KAAK6Y,UAKfI,WAAY,CACVC,YAAa,CACXH,MAAOA,QAKbnE,SAAU,CACRiE,SACE,OAAO7Y,KAAK8R,OAAOzP,KAAK8W,OAAOV,OAInCxD,QAAS,CACPyD,UACE1Y,KAAKoZ,QAAQC,OAAO,CAClBC,SAAUA,KACVN,UAAW,CACT/R,GAAIjH,KAAK6Y,WAKfF,WACE3Y,KAAKoZ,QAAQC,OAAO,CAClBC,SAAUA,KACVN,UAAW,CACT/R,GAAIjH,KAAK6Y,aCnF4V,MCQ3W,I,QAAY,EACd,GACA,GACA,IACA,EACA,KACA,WACA,OAIF,GAAe,GAAiB,QCnB5B,GAAS,WAAa,IAAI7H,EAAIhR,KAASiR,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,OAAOwC,MAAM,CAC/HuD,QAASpG,EAAIc,OAAOyH,UACpBC,MAAOxI,EAAIwI,MACX,oBAAqBxI,EAAIyI,eACxB,CAAEzI,EAAW,QAAEG,EAAG,MAAM,CAACE,YAAY,WAAW,CAACF,EAAG,wBAAwB,GAAIH,EAAS,MAAEG,EAAG,MAAM,CAACE,YAAY,sBAAsB,CAACF,EAAG,UAAU,CAACE,YAAY,OAAOC,MAAM,CAAC,KAAON,EAAI0I,UAAU3F,QAAQ5C,EAAG,MAAM,CAACH,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIS,GAAI,+BAAiCT,EAAI5W,YAAa,GAAG+W,EAAG,MAAM,CAACE,YAAY,SAAS,CAACF,EAAG,MAAM,CAACE,YAAY,QAAQL,EAAIU,GAAIV,EAAI2I,KAAU,OAAE,SAASpQ,EAAKpQ,GAAO,OAAOgY,EAAG,WAAW,CAAChX,IAAIhB,EAAM0a,MAAM,CAC9a+F,SAAU5I,EAAIyI,eAAiBlQ,GAC/B+H,MAAM,CAAC,KAAO/H,GAAMsQ,SAAS,CAAC,MAAQ,SAAShI,GAAQb,EAAIyI,aAAelQ,SAAW,GAAG4H,EAAG,aAAa,CAAEH,EAAgB,aAAEG,EAAG,MAAM,CAACE,YAAY,gBAAgB,CAAEL,EAAS,MAAEG,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,YAAY,CAACG,MAAM,CAAC,YAAY,aAAa,MAAQN,EAAIS,GAAG,wBAAwBG,GAAG,CAAC,MAAQ,SAASC,GAAQb,EAAIyI,aAAe,UAAU,GAAGzI,EAAIwE,KAAMxE,EAAgB,aAAEG,EAAG,kBAAkB,CAACG,MAAM,CAAC,KAAON,EAAIyI,gBAAgBzI,EAAIwE,MAAM,GAAKxE,EAAIwI,MAAgMxI,EAAIwE,KAA7LrE,EAAG,MAAM,CAACE,YAAY,2BAA2B,CAACF,EAAG,UAAU,CAACE,YAAY,OAAOC,MAAM,CAAC,KAAO,cAAcH,EAAG,MAAM,CAACH,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIS,GAAG,wCAAwC,MAAe,MAC3pB,GAAkB,GCPlB,I,QAAS,WAAa,IAAIT,EAAIhR,KAASiR,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,uBAAuB,CAACF,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,SAAS,CAACF,EAAG,IAAI,CAACG,MAAM,CAAC,KAAON,EAAIzH,KAAKuQ,KAAK,OAAS,SAAS,IAAM,uBAAuBlI,GAAG,CAAC,MAAQ,SAASC,GAAQA,EAAOkI,qBAAsB,CAAC/I,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIzH,KAAKyM,OAAO,SAAS7E,EAAG,MAAM,CAACE,YAAY,WAAW,CAACL,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIgJ,YAAY7I,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACL,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIiJ,GAAG,OAAPjJ,CAAeA,EAAIzH,KAAK2Q,qBACtiB,GAAkB,GCqBtB,IACE9D,MAAO,CACL7M,KAAM,CACJ5H,KAAM5H,OACNsc,UAAU,IAIdzB,SAAU,CACRoF,UACE,MAAMG,EAAOna,KAAKuJ,KAAK6Q,eACvB,OAAID,EAAKjhB,OAAS,IACTihB,EAAKE,OAAO,EAAG,KAAO,MAExBF,KCpCmW,MCQ5W,I,QAAY,EACd,GACA,GACA,IACA,EACA,KACA,WACA,OAIF,GAAe,GAAiB,QCnB5B,GAAS,WAAa,IAAInJ,EAAIhR,KAASiR,EAAGD,EAAIE,eAAmBC,EAAGH,EAAII,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,qBAAqB,CAACF,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACF,EAAG,MAAM,CAACE,YAAY,SAAS,CAACF,EAAG,IAAI,CAACG,MAAM,CAAC,KAAON,EAAIzH,KAAKuQ,KAAK,OAAS,SAAS,IAAM,wBAAwB,CAAC9I,EAAIO,GAAG,IAAIP,EAAIQ,GAAGR,EAAIzH,KAAKyM,OAAO,SAAS7E,EAAG,MAAM,CAACE,YAAY,QAAQ,CAACL,EAAIO,GAAGP,EAAIQ,GAAGR,EAAIiJ,GAAG,OAAPjJ,CAAeA,EAAIzH,KAAK2Q,eAAe/I,EAAG,MAAM,CAACE,YAAY,UAAU0E,SAAS,CAAC,UAAY/E,EAAIQ,GAAGR,EAAIzH,KAAK,oBAAsByH,EAAIzH,KAAKC,YAAawH,EAAIzH,KAAc,UAAE4H,EAAG,MAAM,CAACE,YAAY,SAAS,CAAgD,IAA9CL,EAAIzH,KAAK+Q,UAAU3Y,KAAKtI,QAAQ,UAAiB8X,EAAG,MAAM,CAACE,YAAY,sBAAsBC,MAAM,CAAC,IAAMN,EAAIzH,KAAK+Q,UAAUC,OAAOvJ,EAAIwE,KAAoD,IAA9CxE,EAAIzH,KAAK+Q,UAAU3Y,KAAKtI,QAAQ,UAAiB8X,EAAG,QAAQ,CAACG,MAAM,CAAC,IAAMN,EAAIzH,KAAK+Q,UAAUC,IAAI,SAAW,MAAMvJ,EAAIwE,KAAoD,IAA9CxE,EAAIzH,KAAK+Q,UAAU3Y,KAAKtI,QAAQ,UAAiB8X,EAAG,QAAQ,CAACG,MAAM,CAAC,IAAMN,EAAIzH,KAAK+Q,UAAUC,IAAI,SAAW,MAAMvJ,EAAIwE,OAAOxE,EAAIwE,QAC78B,GAAkB,GC6CtB,IACEY,MAAO,CACL7M,KAAM,CACJ5H,KAAM5H,OACNsc,UAAU,KClDuW,MCQnX,I,QAAY,EACd,GACA,GACA,IACA,EACA,KACA,WACA,OAIF,GAAe,GAAiB,QCmDhC,MAAMmE,GAAS,CACbC,MAAO,CACL1G,KAAM,SAER2G,QAAS,CACP3G,KAAM,aAER4G,MAAO,CACL5G,KAAM,SAIV,QACEwC,WAAY,CACVqE,SADJ,GAEIC,gBAAeA,IAGjB7I,OAAQ,CACV,UAGE3P,OACE,MAAO,CACLsT,SAAS,EACTgE,KAAM,KACNvf,MAAO,KACPqf,aAAc,OAIlB7E,SAAU,CAER8E,YACE,GAAI1Z,KAAK5F,MACP,OAAOogB,GAAOxa,KAAK5F,QAIvBof,QACE,OAAQxZ,KAAK8R,OAAOyH,WAAavZ,KAAK8R,OAAOzP,KAAKyY,MAAQ,IAI9DhG,MAAO,CACL,yBAA0B,CACxBiG,UACE/a,KAAKgb,aAEPC,WAAW,IAIfhJ,UACEjS,KAAK8R,OAAOoJ,gBAAgB,CAC1BjU,GAAI,UACJ8M,KAAM,UACNoH,QAAS,+BACTC,SAAU,IAAMpb,KAAK2V,QACrB0F,SAAU,KACRrb,KAAKgb,WAAU,OAKrB/F,QAAS,CACPqG,gBAAJ,MAGM,GAFAtb,KAAKyZ,aAAe,MAEfhM,UAAU8N,OAGb,OAFAvb,KAAK2V,SAAU,OACf3V,KAAK5F,MAAQ,WAIf4F,KAAK2V,SAAU,EACf3V,KAAK5F,OAAQ,EACb4F,KAAK8R,OAAO0J,YAAc,KAC1B,IACE,MAAM,QAAdC,EAAAA,OAAAC,SAAA,6DACUnB,IAAKva,KAAK8R,OAAOzP,KAAK8W,OAAOoB,IAC7BoB,MAAAA,IAEF,GAAID,EAAOxiB,QAAUwiB,EAAO,GAAI,MAAM,IAAI9gB,MAAM8gB,EAAO,IAEvD1b,KAAK2Z,KAAO8B,EAAQ,GACfzb,KAAK2Z,KAAKiC,MAAM1iB,SACnB8G,KAAK5F,MAAQ,SAGf4F,KAAK8R,OAAO0J,YAAcxb,KAAK2Z,KAAK3D,MAC5C,SACQhW,KAAK5F,MAAQ,QAEbyhB,QAAQzhB,MAAMuW,GAEhB3Q,KAAK2V,SAAU,KCtKuV,MCQxW,I,QAAY,EACd,GACA,GACA,IACA,EACA,KACA,WACA,OAIF,GAAe,GAAiB,QCThCmG,eAAelI,UAAU,qCAAsCmI,GAC/DD,eAAelI,UAAU,uCAAwCoI,GACjEF,eAAelI,UAAU,4CAA6CqI,GACtEH,eAAelI,UAAU,gDAAiDsI,GAC1EJ,eAAelI,UAAU,2CAA4CuI,GACrEL,eAAelI,UAAU,mDAAoDwI,IAC7EN,eAAelI,UAAU,sCAAuCyI,IAChEP,eAAelI,UAAU,kCAAmC0I,I","sources":["webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/a-callable.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/a-possible-prototype.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/an-object.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/array-includes.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/classof-raw.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/classof.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/clear-error-stack.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/copy-constructor-properties.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/create-non-enumerable-property.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/create-property-descriptor.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/descriptors.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/document-create-element.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/engine-user-agent.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/engine-v8-version.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/enum-bug-keys.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/error-stack-installable.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/export.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/fails.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/function-apply.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/function-bind-native.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/function-call.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/function-name.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/function-uncurry-this.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/get-built-in.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/get-method.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/global.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/has-own-property.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/hidden-keys.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/ie8-dom-define.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/indexed-object.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/inherit-if-required.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/inspect-source.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/install-error-cause.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/internal-state.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/is-callable.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/is-forced.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/is-object.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/is-pure.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/is-symbol.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/length-of-array-like.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/native-symbol.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/native-weak-map.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/normalize-string-argument.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/object-define-property.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/object-get-own-property-descriptor.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/object-get-own-property-names.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/object-get-own-property-symbols.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/object-is-prototype-of.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/object-keys-internal.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/object-property-is-enumerable.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/object-set-prototype-of.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/ordinary-to-primitive.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/own-keys.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/redefine.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/require-object-coercible.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/set-global.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/shared-key.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/shared-store.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/shared.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/to-absolute-index.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/to-indexed-object.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/to-integer-or-infinity.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/to-length.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/to-object.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/to-primitive.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/to-property-key.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/to-string-tag-support.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/to-string.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/try-to-string.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/uid.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/use-symbol-as-uid.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/v8-prototype-define-bug.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/well-known-symbol.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/internals/wrap-error-constructor-with-cause.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/core-js/modules/es.error.cause.js","webpack://@vue/cli-ui-addon-widgets/./src/components/KillPort.vue?ae1a","webpack://@vue/cli-ui-addon-widgets/./src/components/News.vue?9e1d","webpack://@vue/cli-ui-addon-widgets/./src/components/NewsItem.vue?85ba","webpack://@vue/cli-ui-addon-widgets/./src/components/NewsItemDetails.vue?9dce","webpack://@vue/cli-ui-addon-widgets/./src/components/RunTask.vue?0f46","webpack://@vue/cli-ui-addon-widgets/./src/components/StatusWidget.vue?6977","webpack://@vue/cli-ui-addon-widgets/./src/components/VulnerabilityDetails.vue?0792","webpack://@vue/cli-ui-addon-widgets/./src/components/VulnerabilityItem.vue?a387","webpack://@vue/cli-ui-addon-widgets/./src/components/Welcome.vue?8dca","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/css-loader/dist/runtime/api.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/css-loader/dist/runtime/noSourceMaps.js","webpack://@vue/cli-ui-addon-widgets/../cli-ui/src/graphql/prompt/promptChoiceFragment.gql","webpack://@vue/cli-ui-addon-widgets/../cli-ui/src/graphql/prompt/promptErrorFragment.gql","webpack://@vue/cli-ui-addon-widgets/../cli-ui/src/graphql/prompt/promptFragment.gql","webpack://@vue/cli-ui-addon-widgets/../cli-ui/src/graphql/task/task.gql","webpack://@vue/cli-ui-addon-widgets/../cli-ui/src/graphql/task/taskChanged.gql","webpack://@vue/cli-ui-addon-widgets/../cli-ui/src/graphql/task/taskFragment.gql","webpack://@vue/cli-ui-addon-widgets/../cli-ui/src/graphql/task/taskRun.gql","webpack://@vue/cli-ui-addon-widgets/../cli-ui/src/graphql/task/taskStop.gql","webpack://@vue/cli-ui-addon-widgets/./src/components/KillPort.vue?40ec","webpack://@vue/cli-ui-addon-widgets/./src/components/News.vue?fc19","webpack://@vue/cli-ui-addon-widgets/./src/components/NewsItem.vue?c02a","webpack://@vue/cli-ui-addon-widgets/./src/components/NewsItemDetails.vue?11b8","webpack://@vue/cli-ui-addon-widgets/./src/components/RunTask.vue?34b2","webpack://@vue/cli-ui-addon-widgets/./src/components/StatusWidget.vue?d851","webpack://@vue/cli-ui-addon-widgets/./src/components/VulnerabilityDetails.vue?017e","webpack://@vue/cli-ui-addon-widgets/./src/components/VulnerabilityItem.vue?afaa","webpack://@vue/cli-ui-addon-widgets/./src/components/Welcome.vue?0fcc","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/vue-style-loader/lib/listToStyles.js","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/vue-style-loader/lib/addStylesClient.js","webpack://@vue/cli-ui-addon-widgets/webpack/bootstrap","webpack://@vue/cli-ui-addon-widgets/webpack/runtime/compat get default export","webpack://@vue/cli-ui-addon-widgets/webpack/runtime/define property getters","webpack://@vue/cli-ui-addon-widgets/webpack/runtime/global","webpack://@vue/cli-ui-addon-widgets/webpack/runtime/hasOwnProperty shorthand","webpack://@vue/cli-ui-addon-widgets/webpack/runtime/make namespace object","webpack://@vue/cli-ui-addon-widgets/./src/components/Welcome.vue?996e","webpack://@vue/cli-ui-addon-widgets/src/components/Welcome.vue","webpack://@vue/cli-ui-addon-widgets/./src/components/Welcome.vue?af49","webpack://@vue/cli-ui-addon-widgets/../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://@vue/cli-ui-addon-widgets/./src/components/Welcome.vue","webpack://@vue/cli-ui-addon-widgets/./src/components/KillPort.vue?6210","webpack://@vue/cli-ui-addon-widgets/src/components/KillPort.vue","webpack://@vue/cli-ui-addon-widgets/./src/components/KillPort.vue?13df","webpack://@vue/cli-ui-addon-widgets/./src/components/KillPort.vue","webpack://@vue/cli-ui-addon-widgets/./src/components/PluginUpdates.vue?4f50","webpack://@vue/cli-ui-addon-widgets/./src/util/consts.js","webpack://@vue/cli-ui-addon-widgets/./src/components/StatusWidget.vue?c7c4","webpack://@vue/cli-ui-addon-widgets/src/components/StatusWidget.vue","webpack://@vue/cli-ui-addon-widgets/./src/components/StatusWidget.vue?0e50","webpack://@vue/cli-ui-addon-widgets/./src/components/StatusWidget.vue","webpack://@vue/cli-ui-addon-widgets/src/components/PluginUpdates.vue","webpack://@vue/cli-ui-addon-widgets/./src/components/PluginUpdates.vue?616c","webpack://@vue/cli-ui-addon-widgets/./src/components/PluginUpdates.vue","webpack://@vue/cli-ui-addon-widgets/./src/components/DependencyUpdates.vue?0c2b","webpack://@vue/cli-ui-addon-widgets/src/components/DependencyUpdates.vue","webpack://@vue/cli-ui-addon-widgets/./src/components/DependencyUpdates.vue?54a4","webpack://@vue/cli-ui-addon-widgets/./src/components/DependencyUpdates.vue","webpack://@vue/cli-ui-addon-widgets/./src/components/Vulnerability.vue?c94b","webpack://@vue/cli-ui-addon-widgets/src/components/Vulnerability.vue","webpack://@vue/cli-ui-addon-widgets/./src/components/Vulnerability.vue?a63b","webpack://@vue/cli-ui-addon-widgets/./src/components/Vulnerability.vue","webpack://@vue/cli-ui-addon-widgets/./src/components/VulnerabilityDetails.vue?0ad3","webpack://@vue/cli-ui-addon-widgets/./src/components/VulnerabilityItem.vue?6138","webpack://@vue/cli-ui-addon-widgets/src/components/VulnerabilityItem.vue","webpack://@vue/cli-ui-addon-widgets/./src/components/VulnerabilityItem.vue?7482","webpack://@vue/cli-ui-addon-widgets/./src/components/VulnerabilityItem.vue","webpack://@vue/cli-ui-addon-widgets/src/components/VulnerabilityDetails.vue","webpack://@vue/cli-ui-addon-widgets/./src/components/VulnerabilityDetails.vue?f551","webpack://@vue/cli-ui-addon-widgets/./src/components/VulnerabilityDetails.vue","webpack://@vue/cli-ui-addon-widgets/./src/components/RunTask.vue?9474","webpack://@vue/cli-ui-addon-widgets/src/components/RunTask.vue","webpack://@vue/cli-ui-addon-widgets/./src/components/RunTask.vue?e019","webpack://@vue/cli-ui-addon-widgets/./src/components/RunTask.vue","webpack://@vue/cli-ui-addon-widgets/./src/components/News.vue?40fe","webpack://@vue/cli-ui-addon-widgets/./src/components/NewsItem.vue?9f20","webpack://@vue/cli-ui-addon-widgets/src/components/NewsItem.vue","webpack://@vue/cli-ui-addon-widgets/./src/components/NewsItem.vue?9128","webpack://@vue/cli-ui-addon-widgets/./src/components/NewsItem.vue","webpack://@vue/cli-ui-addon-widgets/./src/components/NewsItemDetails.vue?901f","webpack://@vue/cli-ui-addon-widgets/src/components/NewsItemDetails.vue","webpack://@vue/cli-ui-addon-widgets/./src/components/NewsItemDetails.vue?f436","webpack://@vue/cli-ui-addon-widgets/./src/components/NewsItemDetails.vue","webpack://@vue/cli-ui-addon-widgets/src/components/News.vue","webpack://@vue/cli-ui-addon-widgets/./src/components/News.vue?a747","webpack://@vue/cli-ui-addon-widgets/./src/components/News.vue","webpack://@vue/cli-ui-addon-widgets/./src/main.js"],"sourcesContent":["var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\nvar tryToString = require('../internals/try-to-string');\n\nvar TypeError = global.TypeError;\n\n// `Assert: IsCallable(argument) is true`\nmodule.exports = function (argument) {\n if (isCallable(argument)) return argument;\n throw TypeError(tryToString(argument) + ' is not a function');\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar String = global.String;\nvar TypeError = global.TypeError;\n\nmodule.exports = function (argument) {\n if (typeof argument == 'object' || isCallable(argument)) return argument;\n throw TypeError(\"Can't set \" + String(argument) + ' as a prototype');\n};\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar String = global.String;\nvar TypeError = global.TypeError;\n\n// `Assert: Type(argument) is Object`\nmodule.exports = function (argument) {\n if (isObject(argument)) return argument;\n throw TypeError(String(argument) + ' is not an object');\n};\n","var toIndexedObject = require('../internals/to-indexed-object');\nvar toAbsoluteIndex = require('../internals/to-absolute-index');\nvar lengthOfArrayLike = require('../internals/length-of-array-like');\n\n// `Array.prototype.{ indexOf, includes }` methods implementation\nvar createMethod = function (IS_INCLUDES) {\n return function ($this, el, fromIndex) {\n var O = toIndexedObject($this);\n var length = lengthOfArrayLike(O);\n var index = toAbsoluteIndex(fromIndex, length);\n var value;\n // Array#includes uses SameValueZero equality algorithm\n // eslint-disable-next-line no-self-compare -- NaN check\n if (IS_INCLUDES && el != el) while (length > index) {\n value = O[index++];\n // eslint-disable-next-line no-self-compare -- NaN check\n if (value != value) return true;\n // Array#indexOf ignores holes, Array#includes - not\n } else for (;length > index; index++) {\n if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;\n } return !IS_INCLUDES && -1;\n };\n};\n\nmodule.exports = {\n // `Array.prototype.includes` method\n // https://tc39.es/ecma262/#sec-array.prototype.includes\n includes: createMethod(true),\n // `Array.prototype.indexOf` method\n // https://tc39.es/ecma262/#sec-array.prototype.indexof\n indexOf: createMethod(false)\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar toString = uncurryThis({}.toString);\nvar stringSlice = uncurryThis(''.slice);\n\nmodule.exports = function (it) {\n return stringSlice(toString(it), 8, -1);\n};\n","var global = require('../internals/global');\nvar TO_STRING_TAG_SUPPORT = require('../internals/to-string-tag-support');\nvar isCallable = require('../internals/is-callable');\nvar classofRaw = require('../internals/classof-raw');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar Object = global.Object;\n\n// ES3 wrong here\nvar CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';\n\n// fallback for IE11 Script Access Denied error\nvar tryGet = function (it, key) {\n try {\n return it[key];\n } catch (error) { /* empty */ }\n};\n\n// getting tag from ES6+ `Object.prototype.toString`\nmodule.exports = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {\n var O, tag, result;\n return it === undefined ? 'Undefined' : it === null ? 'Null'\n // @@toStringTag case\n : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG)) == 'string' ? tag\n // builtinTag case\n : CORRECT_ARGUMENTS ? classofRaw(O)\n // ES3 arguments fallback\n : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar replace = uncurryThis(''.replace);\n\nvar TEST = (function (arg) { return String(Error(arg).stack); })('zxcasd');\nvar V8_OR_CHAKRA_STACK_ENTRY = /\\n\\s*at [^:]*:[^\\n]*/;\nvar IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);\n\nmodule.exports = function (stack, dropEntries) {\n if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string') {\n while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');\n } return stack;\n};\n","var hasOwn = require('../internals/has-own-property');\nvar ownKeys = require('../internals/own-keys');\nvar getOwnPropertyDescriptorModule = require('../internals/object-get-own-property-descriptor');\nvar definePropertyModule = require('../internals/object-define-property');\n\nmodule.exports = function (target, source, exceptions) {\n var keys = ownKeys(source);\n var defineProperty = definePropertyModule.f;\n var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {\n defineProperty(target, key, getOwnPropertyDescriptor(source, key));\n }\n }\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar definePropertyModule = require('../internals/object-define-property');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = DESCRIPTORS ? function (object, key, value) {\n return definePropertyModule.f(object, key, createPropertyDescriptor(1, value));\n} : function (object, key, value) {\n object[key] = value;\n return object;\n};\n","module.exports = function (bitmap, value) {\n return {\n enumerable: !(bitmap & 1),\n configurable: !(bitmap & 2),\n writable: !(bitmap & 4),\n value: value\n };\n};\n","var fails = require('../internals/fails');\n\n// Detect IE8's incomplete defineProperty implementation\nmodule.exports = !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;\n});\n","var global = require('../internals/global');\nvar isObject = require('../internals/is-object');\n\nvar document = global.document;\n// typeof document.createElement is 'object' in old IE\nvar EXISTS = isObject(document) && isObject(document.createElement);\n\nmodule.exports = function (it) {\n return EXISTS ? document.createElement(it) : {};\n};\n","var getBuiltIn = require('../internals/get-built-in');\n\nmodule.exports = getBuiltIn('navigator', 'userAgent') || '';\n","var global = require('../internals/global');\nvar userAgent = require('../internals/engine-user-agent');\n\nvar process = global.process;\nvar Deno = global.Deno;\nvar versions = process && process.versions || Deno && Deno.version;\nvar v8 = versions && versions.v8;\nvar match, version;\n\nif (v8) {\n match = v8.split('.');\n // in old Chrome, versions of V8 isn't V8 = Chrome / 10\n // but their correct versions are not interesting for us\n version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);\n}\n\n// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`\n// so check `userAgent` even if `.v8` exists, but 0\nif (!version && userAgent) {\n match = userAgent.match(/Edge\\/(\\d+)/);\n if (!match || match[1] >= 74) {\n match = userAgent.match(/Chrome\\/(\\d+)/);\n if (match) version = +match[1];\n }\n}\n\nmodule.exports = version;\n","// IE8- don't enum bug keys\nmodule.exports = [\n 'constructor',\n 'hasOwnProperty',\n 'isPrototypeOf',\n 'propertyIsEnumerable',\n 'toLocaleString',\n 'toString',\n 'valueOf'\n];\n","var fails = require('../internals/fails');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\n\nmodule.exports = !fails(function () {\n var error = Error('a');\n if (!('stack' in error)) return true;\n // eslint-disable-next-line es/no-object-defineproperty -- safe\n Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));\n return error.stack !== 7;\n});\n","var global = require('../internals/global');\nvar getOwnPropertyDescriptor = require('../internals/object-get-own-property-descriptor').f;\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar redefine = require('../internals/redefine');\nvar setGlobal = require('../internals/set-global');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar isForced = require('../internals/is-forced');\n\n/*\n options.target - name of the target object\n options.global - target is the global object\n options.stat - export as static methods of target\n options.proto - export as prototype methods of target\n options.real - real prototype method for the `pure` version\n options.forced - export even if the native feature is available\n options.bind - bind methods to the target, required for the `pure` version\n options.wrap - wrap constructors to preventing global pollution, required for the `pure` version\n options.unsafe - use the simple assignment of property instead of delete + defineProperty\n options.sham - add a flag to not completely full polyfills\n options.enumerable - export as enumerable property\n options.noTargetGet - prevent calling a getter on target\n options.name - the .name of the function if it does not match the key\n*/\nmodule.exports = function (options, source) {\n var TARGET = options.target;\n var GLOBAL = options.global;\n var STATIC = options.stat;\n var FORCED, target, key, targetProperty, sourceProperty, descriptor;\n if (GLOBAL) {\n target = global;\n } else if (STATIC) {\n target = global[TARGET] || setGlobal(TARGET, {});\n } else {\n target = (global[TARGET] || {}).prototype;\n }\n if (target) for (key in source) {\n sourceProperty = source[key];\n if (options.noTargetGet) {\n descriptor = getOwnPropertyDescriptor(target, key);\n targetProperty = descriptor && descriptor.value;\n } else targetProperty = target[key];\n FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);\n // contained in target\n if (!FORCED && targetProperty !== undefined) {\n if (typeof sourceProperty == typeof targetProperty) continue;\n copyConstructorProperties(sourceProperty, targetProperty);\n }\n // add a flag to not completely full polyfills\n if (options.sham || (targetProperty && targetProperty.sham)) {\n createNonEnumerableProperty(sourceProperty, 'sham', true);\n }\n // extend global\n redefine(target, key, sourceProperty, options);\n }\n};\n","module.exports = function (exec) {\n try {\n return !!exec();\n } catch (error) {\n return true;\n }\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar apply = FunctionPrototype.apply;\nvar call = FunctionPrototype.call;\n\n// eslint-disable-next-line es/no-reflect -- safe\nmodule.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () {\n return call.apply(apply, arguments);\n});\n","var fails = require('../internals/fails');\n\nmodule.exports = !fails(function () {\n var test = (function () { /* empty */ }).bind();\n // eslint-disable-next-line no-prototype-builtins -- safe\n return typeof test != 'function' || test.hasOwnProperty('prototype');\n});\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar call = Function.prototype.call;\n\nmodule.exports = NATIVE_BIND ? call.bind(call) : function () {\n return call.apply(call, arguments);\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar hasOwn = require('../internals/has-own-property');\n\nvar FunctionPrototype = Function.prototype;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getDescriptor = DESCRIPTORS && Object.getOwnPropertyDescriptor;\n\nvar EXISTS = hasOwn(FunctionPrototype, 'name');\n// additional protection from minified / mangled / dropped function names\nvar PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';\nvar CONFIGURABLE = EXISTS && (!DESCRIPTORS || (DESCRIPTORS && getDescriptor(FunctionPrototype, 'name').configurable));\n\nmodule.exports = {\n EXISTS: EXISTS,\n PROPER: PROPER,\n CONFIGURABLE: CONFIGURABLE\n};\n","var NATIVE_BIND = require('../internals/function-bind-native');\n\nvar FunctionPrototype = Function.prototype;\nvar bind = FunctionPrototype.bind;\nvar call = FunctionPrototype.call;\nvar uncurryThis = NATIVE_BIND && bind.bind(call, call);\n\nmodule.exports = NATIVE_BIND ? function (fn) {\n return fn && uncurryThis(fn);\n} : function (fn) {\n return fn && function () {\n return call.apply(fn, arguments);\n };\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\n\nvar aFunction = function (argument) {\n return isCallable(argument) ? argument : undefined;\n};\n\nmodule.exports = function (namespace, method) {\n return arguments.length < 2 ? aFunction(global[namespace]) : global[namespace] && global[namespace][method];\n};\n","var aCallable = require('../internals/a-callable');\n\n// `GetMethod` abstract operation\n// https://tc39.es/ecma262/#sec-getmethod\nmodule.exports = function (V, P) {\n var func = V[P];\n return func == null ? undefined : aCallable(func);\n};\n","var check = function (it) {\n return it && it.Math == Math && it;\n};\n\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nmodule.exports =\n // eslint-disable-next-line es/no-global-this -- safe\n check(typeof globalThis == 'object' && globalThis) ||\n check(typeof window == 'object' && window) ||\n // eslint-disable-next-line no-restricted-globals -- safe\n check(typeof self == 'object' && self) ||\n check(typeof global == 'object' && global) ||\n // eslint-disable-next-line no-new-func -- fallback\n (function () { return this; })() || Function('return this')();\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar toObject = require('../internals/to-object');\n\nvar hasOwnProperty = uncurryThis({}.hasOwnProperty);\n\n// `HasOwnProperty` abstract operation\n// https://tc39.es/ecma262/#sec-hasownproperty\nmodule.exports = Object.hasOwn || function hasOwn(it, key) {\n return hasOwnProperty(toObject(it), key);\n};\n","module.exports = {};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\nvar createElement = require('../internals/document-create-element');\n\n// Thanks to IE8 for its funny defineProperty\nmodule.exports = !DESCRIPTORS && !fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(createElement('div'), 'a', {\n get: function () { return 7; }\n }).a != 7;\n});\n","var global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar fails = require('../internals/fails');\nvar classof = require('../internals/classof-raw');\n\nvar Object = global.Object;\nvar split = uncurryThis(''.split);\n\n// fallback for non-array-like ES3 and non-enumerable old V8 strings\nmodule.exports = fails(function () {\n // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346\n // eslint-disable-next-line no-prototype-builtins -- safe\n return !Object('z').propertyIsEnumerable(0);\n}) ? function (it) {\n return classof(it) == 'String' ? split(it, '') : Object(it);\n} : Object;\n","var isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\n\n// makes subclassing work correct for wrapped built-ins\nmodule.exports = function ($this, dummy, Wrapper) {\n var NewTarget, NewTargetPrototype;\n if (\n // it can work only with native `setPrototypeOf`\n setPrototypeOf &&\n // we haven't completely correct pre-ES6 way for getting `new.target`, so use this\n isCallable(NewTarget = dummy.constructor) &&\n NewTarget !== Wrapper &&\n isObject(NewTargetPrototype = NewTarget.prototype) &&\n NewTargetPrototype !== Wrapper.prototype\n ) setPrototypeOf($this, NewTargetPrototype);\n return $this;\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar isCallable = require('../internals/is-callable');\nvar store = require('../internals/shared-store');\n\nvar functionToString = uncurryThis(Function.toString);\n\n// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper\nif (!isCallable(store.inspectSource)) {\n store.inspectSource = function (it) {\n return functionToString(it);\n };\n}\n\nmodule.exports = store.inspectSource;\n","var isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\n\n// `InstallErrorCause` abstract operation\n// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause\nmodule.exports = function (O, options) {\n if (isObject(options) && 'cause' in options) {\n createNonEnumerableProperty(O, 'cause', options.cause);\n }\n};\n","var NATIVE_WEAK_MAP = require('../internals/native-weak-map');\nvar global = require('../internals/global');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar isObject = require('../internals/is-object');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar hasOwn = require('../internals/has-own-property');\nvar shared = require('../internals/shared-store');\nvar sharedKey = require('../internals/shared-key');\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar OBJECT_ALREADY_INITIALIZED = 'Object already initialized';\nvar TypeError = global.TypeError;\nvar WeakMap = global.WeakMap;\nvar set, get, has;\n\nvar enforce = function (it) {\n return has(it) ? get(it) : set(it, {});\n};\n\nvar getterFor = function (TYPE) {\n return function (it) {\n var state;\n if (!isObject(it) || (state = get(it)).type !== TYPE) {\n throw TypeError('Incompatible receiver, ' + TYPE + ' required');\n } return state;\n };\n};\n\nif (NATIVE_WEAK_MAP || shared.state) {\n var store = shared.state || (shared.state = new WeakMap());\n var wmget = uncurryThis(store.get);\n var wmhas = uncurryThis(store.has);\n var wmset = uncurryThis(store.set);\n set = function (it, metadata) {\n if (wmhas(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n wmset(store, it, metadata);\n return metadata;\n };\n get = function (it) {\n return wmget(store, it) || {};\n };\n has = function (it) {\n return wmhas(store, it);\n };\n} else {\n var STATE = sharedKey('state');\n hiddenKeys[STATE] = true;\n set = function (it, metadata) {\n if (hasOwn(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);\n metadata.facade = it;\n createNonEnumerableProperty(it, STATE, metadata);\n return metadata;\n };\n get = function (it) {\n return hasOwn(it, STATE) ? it[STATE] : {};\n };\n has = function (it) {\n return hasOwn(it, STATE);\n };\n}\n\nmodule.exports = {\n set: set,\n get: get,\n has: has,\n enforce: enforce,\n getterFor: getterFor\n};\n","// `IsCallable` abstract operation\n// https://tc39.es/ecma262/#sec-iscallable\nmodule.exports = function (argument) {\n return typeof argument == 'function';\n};\n","var fails = require('../internals/fails');\nvar isCallable = require('../internals/is-callable');\n\nvar replacement = /#|\\.prototype\\./;\n\nvar isForced = function (feature, detection) {\n var value = data[normalize(feature)];\n return value == POLYFILL ? true\n : value == NATIVE ? false\n : isCallable(detection) ? fails(detection)\n : !!detection;\n};\n\nvar normalize = isForced.normalize = function (string) {\n return String(string).replace(replacement, '.').toLowerCase();\n};\n\nvar data = isForced.data = {};\nvar NATIVE = isForced.NATIVE = 'N';\nvar POLYFILL = isForced.POLYFILL = 'P';\n\nmodule.exports = isForced;\n","var isCallable = require('../internals/is-callable');\n\nmodule.exports = function (it) {\n return typeof it == 'object' ? it !== null : isCallable(it);\n};\n","module.exports = false;\n","var global = require('../internals/global');\nvar getBuiltIn = require('../internals/get-built-in');\nvar isCallable = require('../internals/is-callable');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar Object = global.Object;\n\nmodule.exports = USE_SYMBOL_AS_UID ? function (it) {\n return typeof it == 'symbol';\n} : function (it) {\n var $Symbol = getBuiltIn('Symbol');\n return isCallable($Symbol) && isPrototypeOf($Symbol.prototype, Object(it));\n};\n","var toLength = require('../internals/to-length');\n\n// `LengthOfArrayLike` abstract operation\n// https://tc39.es/ecma262/#sec-lengthofarraylike\nmodule.exports = function (obj) {\n return toLength(obj.length);\n};\n","/* eslint-disable es/no-symbol -- required for testing */\nvar V8_VERSION = require('../internals/engine-v8-version');\nvar fails = require('../internals/fails');\n\n// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing\nmodule.exports = !!Object.getOwnPropertySymbols && !fails(function () {\n var symbol = Symbol();\n // Chrome 38 Symbol has incorrect toString conversion\n // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances\n return !String(symbol) || !(Object(symbol) instanceof Symbol) ||\n // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances\n !Symbol.sham && V8_VERSION && V8_VERSION < 41;\n});\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\nvar inspectSource = require('../internals/inspect-source');\n\nvar WeakMap = global.WeakMap;\n\nmodule.exports = isCallable(WeakMap) && /native code/.test(inspectSource(WeakMap));\n","var toString = require('../internals/to-string');\n\nmodule.exports = function (argument, $default) {\n return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);\n};\n","var global = require('../internals/global');\nvar DESCRIPTORS = require('../internals/descriptors');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\nvar V8_PROTOTYPE_DEFINE_BUG = require('../internals/v8-prototype-define-bug');\nvar anObject = require('../internals/an-object');\nvar toPropertyKey = require('../internals/to-property-key');\n\nvar TypeError = global.TypeError;\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar $defineProperty = Object.defineProperty;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nvar ENUMERABLE = 'enumerable';\nvar CONFIGURABLE = 'configurable';\nvar WRITABLE = 'writable';\n\n// `Object.defineProperty` method\n// https://tc39.es/ecma262/#sec-object.defineproperty\nexports.f = DESCRIPTORS ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {\n var current = $getOwnPropertyDescriptor(O, P);\n if (current && current[WRITABLE]) {\n O[P] = Attributes.value;\n Attributes = {\n configurable: CONFIGURABLE in Attributes ? Attributes[CONFIGURABLE] : current[CONFIGURABLE],\n enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],\n writable: false\n };\n }\n } return $defineProperty(O, P, Attributes);\n} : $defineProperty : function defineProperty(O, P, Attributes) {\n anObject(O);\n P = toPropertyKey(P);\n anObject(Attributes);\n if (IE8_DOM_DEFINE) try {\n return $defineProperty(O, P, Attributes);\n } catch (error) { /* empty */ }\n if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');\n if ('value' in Attributes) O[P] = Attributes.value;\n return O;\n};\n","var DESCRIPTORS = require('../internals/descriptors');\nvar call = require('../internals/function-call');\nvar propertyIsEnumerableModule = require('../internals/object-property-is-enumerable');\nvar createPropertyDescriptor = require('../internals/create-property-descriptor');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar toPropertyKey = require('../internals/to-property-key');\nvar hasOwn = require('../internals/has-own-property');\nvar IE8_DOM_DEFINE = require('../internals/ie8-dom-define');\n\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// `Object.getOwnPropertyDescriptor` method\n// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor\nexports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {\n O = toIndexedObject(O);\n P = toPropertyKey(P);\n if (IE8_DOM_DEFINE) try {\n return $getOwnPropertyDescriptor(O, P);\n } catch (error) { /* empty */ }\n if (hasOwn(O, P)) return createPropertyDescriptor(!call(propertyIsEnumerableModule.f, O, P), O[P]);\n};\n","var internalObjectKeys = require('../internals/object-keys-internal');\nvar enumBugKeys = require('../internals/enum-bug-keys');\n\nvar hiddenKeys = enumBugKeys.concat('length', 'prototype');\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n// eslint-disable-next-line es/no-object-getownpropertynames -- safe\nexports.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {\n return internalObjectKeys(O, hiddenKeys);\n};\n","// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe\nexports.f = Object.getOwnPropertySymbols;\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nmodule.exports = uncurryThis({}.isPrototypeOf);\n","var uncurryThis = require('../internals/function-uncurry-this');\nvar hasOwn = require('../internals/has-own-property');\nvar toIndexedObject = require('../internals/to-indexed-object');\nvar indexOf = require('../internals/array-includes').indexOf;\nvar hiddenKeys = require('../internals/hidden-keys');\n\nvar push = uncurryThis([].push);\n\nmodule.exports = function (object, names) {\n var O = toIndexedObject(object);\n var i = 0;\n var result = [];\n var key;\n for (key in O) !hasOwn(hiddenKeys, key) && hasOwn(O, key) && push(result, key);\n // Don't enum bug & hidden keys\n while (names.length > i) if (hasOwn(O, key = names[i++])) {\n ~indexOf(result, key) || push(result, key);\n }\n return result;\n};\n","'use strict';\nvar $propertyIsEnumerable = {}.propertyIsEnumerable;\n// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\n\n// Nashorn ~ JDK8 bug\nvar NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);\n\n// `Object.prototype.propertyIsEnumerable` method implementation\n// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable\nexports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {\n var descriptor = getOwnPropertyDescriptor(this, V);\n return !!descriptor && descriptor.enumerable;\n} : $propertyIsEnumerable;\n","/* eslint-disable no-proto -- safe */\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar anObject = require('../internals/an-object');\nvar aPossiblePrototype = require('../internals/a-possible-prototype');\n\n// `Object.setPrototypeOf` method\n// https://tc39.es/ecma262/#sec-object.setprototypeof\n// Works with __proto__ only. Old v8 can't work with null proto objects.\n// eslint-disable-next-line es/no-object-setprototypeof -- safe\nmodule.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {\n var CORRECT_SETTER = false;\n var test = {};\n var setter;\n try {\n // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe\n setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);\n setter(test, []);\n CORRECT_SETTER = test instanceof Array;\n } catch (error) { /* empty */ }\n return function setPrototypeOf(O, proto) {\n anObject(O);\n aPossiblePrototype(proto);\n if (CORRECT_SETTER) setter(O, proto);\n else O.__proto__ = proto;\n return O;\n };\n}() : undefined);\n","var global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar isCallable = require('../internals/is-callable');\nvar isObject = require('../internals/is-object');\n\nvar TypeError = global.TypeError;\n\n// `OrdinaryToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-ordinarytoprimitive\nmodule.exports = function (input, pref) {\n var fn, val;\n if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n if (isCallable(fn = input.valueOf) && !isObject(val = call(fn, input))) return val;\n if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = call(fn, input))) return val;\n throw TypeError(\"Can't convert object to primitive value\");\n};\n","var getBuiltIn = require('../internals/get-built-in');\nvar uncurryThis = require('../internals/function-uncurry-this');\nvar getOwnPropertyNamesModule = require('../internals/object-get-own-property-names');\nvar getOwnPropertySymbolsModule = require('../internals/object-get-own-property-symbols');\nvar anObject = require('../internals/an-object');\n\nvar concat = uncurryThis([].concat);\n\n// all object keys, includes non-enumerable and symbols\nmodule.exports = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {\n var keys = getOwnPropertyNamesModule.f(anObject(it));\n var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;\n return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;\n};\n","var global = require('../internals/global');\nvar isCallable = require('../internals/is-callable');\nvar hasOwn = require('../internals/has-own-property');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar setGlobal = require('../internals/set-global');\nvar inspectSource = require('../internals/inspect-source');\nvar InternalStateModule = require('../internals/internal-state');\nvar CONFIGURABLE_FUNCTION_NAME = require('../internals/function-name').CONFIGURABLE;\n\nvar getInternalState = InternalStateModule.get;\nvar enforceInternalState = InternalStateModule.enforce;\nvar TEMPLATE = String(String).split('String');\n\n(module.exports = function (O, key, value, options) {\n var unsafe = options ? !!options.unsafe : false;\n var simple = options ? !!options.enumerable : false;\n var noTargetGet = options ? !!options.noTargetGet : false;\n var name = options && options.name !== undefined ? options.name : key;\n var state;\n if (isCallable(value)) {\n if (String(name).slice(0, 7) === 'Symbol(') {\n name = '[' + String(name).replace(/^Symbol\\(([^)]*)\\)/, '$1') + ']';\n }\n if (!hasOwn(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {\n createNonEnumerableProperty(value, 'name', name);\n }\n state = enforceInternalState(value);\n if (!state.source) {\n state.source = TEMPLATE.join(typeof name == 'string' ? name : '');\n }\n }\n if (O === global) {\n if (simple) O[key] = value;\n else setGlobal(key, value);\n return;\n } else if (!unsafe) {\n delete O[key];\n } else if (!noTargetGet && O[key]) {\n simple = true;\n }\n if (simple) O[key] = value;\n else createNonEnumerableProperty(O, key, value);\n// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative\n})(Function.prototype, 'toString', function toString() {\n return isCallable(this) && getInternalState(this).source || inspectSource(this);\n});\n","var global = require('../internals/global');\n\nvar TypeError = global.TypeError;\n\n// `RequireObjectCoercible` abstract operation\n// https://tc39.es/ecma262/#sec-requireobjectcoercible\nmodule.exports = function (it) {\n if (it == undefined) throw TypeError(\"Can't call method on \" + it);\n return it;\n};\n","var global = require('../internals/global');\n\n// eslint-disable-next-line es/no-object-defineproperty -- safe\nvar defineProperty = Object.defineProperty;\n\nmodule.exports = function (key, value) {\n try {\n defineProperty(global, key, { value: value, configurable: true, writable: true });\n } catch (error) {\n global[key] = value;\n } return value;\n};\n","var shared = require('../internals/shared');\nvar uid = require('../internals/uid');\n\nvar keys = shared('keys');\n\nmodule.exports = function (key) {\n return keys[key] || (keys[key] = uid(key));\n};\n","var global = require('../internals/global');\nvar setGlobal = require('../internals/set-global');\n\nvar SHARED = '__core-js_shared__';\nvar store = global[SHARED] || setGlobal(SHARED, {});\n\nmodule.exports = store;\n","var IS_PURE = require('../internals/is-pure');\nvar store = require('../internals/shared-store');\n\n(module.exports = function (key, value) {\n return store[key] || (store[key] = value !== undefined ? value : {});\n})('versions', []).push({\n version: '3.21.0',\n mode: IS_PURE ? 'pure' : 'global',\n copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',\n license: 'https://github.com/zloirock/core-js/blob/v3.21.0/LICENSE',\n source: 'https://github.com/zloirock/core-js'\n});\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar max = Math.max;\nvar min = Math.min;\n\n// Helper for a popular repeating case of the spec:\n// Let integer be ? ToInteger(index).\n// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).\nmodule.exports = function (index, length) {\n var integer = toIntegerOrInfinity(index);\n return integer < 0 ? max(integer + length, 0) : min(integer, length);\n};\n","// toObject with fallback for non-array-like ES3 strings\nvar IndexedObject = require('../internals/indexed-object');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nmodule.exports = function (it) {\n return IndexedObject(requireObjectCoercible(it));\n};\n","var ceil = Math.ceil;\nvar floor = Math.floor;\n\n// `ToIntegerOrInfinity` abstract operation\n// https://tc39.es/ecma262/#sec-tointegerorinfinity\nmodule.exports = function (argument) {\n var number = +argument;\n // eslint-disable-next-line no-self-compare -- safe\n return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);\n};\n","var toIntegerOrInfinity = require('../internals/to-integer-or-infinity');\n\nvar min = Math.min;\n\n// `ToLength` abstract operation\n// https://tc39.es/ecma262/#sec-tolength\nmodule.exports = function (argument) {\n return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991\n};\n","var global = require('../internals/global');\nvar requireObjectCoercible = require('../internals/require-object-coercible');\n\nvar Object = global.Object;\n\n// `ToObject` abstract operation\n// https://tc39.es/ecma262/#sec-toobject\nmodule.exports = function (argument) {\n return Object(requireObjectCoercible(argument));\n};\n","var global = require('../internals/global');\nvar call = require('../internals/function-call');\nvar isObject = require('../internals/is-object');\nvar isSymbol = require('../internals/is-symbol');\nvar getMethod = require('../internals/get-method');\nvar ordinaryToPrimitive = require('../internals/ordinary-to-primitive');\nvar wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TypeError = global.TypeError;\nvar TO_PRIMITIVE = wellKnownSymbol('toPrimitive');\n\n// `ToPrimitive` abstract operation\n// https://tc39.es/ecma262/#sec-toprimitive\nmodule.exports = function (input, pref) {\n if (!isObject(input) || isSymbol(input)) return input;\n var exoticToPrim = getMethod(input, TO_PRIMITIVE);\n var result;\n if (exoticToPrim) {\n if (pref === undefined) pref = 'default';\n result = call(exoticToPrim, input, pref);\n if (!isObject(result) || isSymbol(result)) return result;\n throw TypeError(\"Can't convert object to primitive value\");\n }\n if (pref === undefined) pref = 'number';\n return ordinaryToPrimitive(input, pref);\n};\n","var toPrimitive = require('../internals/to-primitive');\nvar isSymbol = require('../internals/is-symbol');\n\n// `ToPropertyKey` abstract operation\n// https://tc39.es/ecma262/#sec-topropertykey\nmodule.exports = function (argument) {\n var key = toPrimitive(argument, 'string');\n return isSymbol(key) ? key : key + '';\n};\n","var wellKnownSymbol = require('../internals/well-known-symbol');\n\nvar TO_STRING_TAG = wellKnownSymbol('toStringTag');\nvar test = {};\n\ntest[TO_STRING_TAG] = 'z';\n\nmodule.exports = String(test) === '[object z]';\n","var global = require('../internals/global');\nvar classof = require('../internals/classof');\n\nvar String = global.String;\n\nmodule.exports = function (argument) {\n if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');\n return String(argument);\n};\n","var global = require('../internals/global');\n\nvar String = global.String;\n\nmodule.exports = function (argument) {\n try {\n return String(argument);\n } catch (error) {\n return 'Object';\n }\n};\n","var uncurryThis = require('../internals/function-uncurry-this');\n\nvar id = 0;\nvar postfix = Math.random();\nvar toString = uncurryThis(1.0.toString);\n\nmodule.exports = function (key) {\n return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);\n};\n","/* eslint-disable es/no-symbol -- required for testing */\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\n\nmodule.exports = NATIVE_SYMBOL\n && !Symbol.sham\n && typeof Symbol.iterator == 'symbol';\n","var DESCRIPTORS = require('../internals/descriptors');\nvar fails = require('../internals/fails');\n\n// V8 ~ Chrome 36-\n// https://bugs.chromium.org/p/v8/issues/detail?id=3334\nmodule.exports = DESCRIPTORS && fails(function () {\n // eslint-disable-next-line es/no-object-defineproperty -- required for testing\n return Object.defineProperty(function () { /* empty */ }, 'prototype', {\n value: 42,\n writable: false\n }).prototype != 42;\n});\n","var global = require('../internals/global');\nvar shared = require('../internals/shared');\nvar hasOwn = require('../internals/has-own-property');\nvar uid = require('../internals/uid');\nvar NATIVE_SYMBOL = require('../internals/native-symbol');\nvar USE_SYMBOL_AS_UID = require('../internals/use-symbol-as-uid');\n\nvar WellKnownSymbolsStore = shared('wks');\nvar Symbol = global.Symbol;\nvar symbolFor = Symbol && Symbol['for'];\nvar createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol : Symbol && Symbol.withoutSetter || uid;\n\nmodule.exports = function (name) {\n if (!hasOwn(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {\n var description = 'Symbol.' + name;\n if (NATIVE_SYMBOL && hasOwn(Symbol, name)) {\n WellKnownSymbolsStore[name] = Symbol[name];\n } else if (USE_SYMBOL_AS_UID && symbolFor) {\n WellKnownSymbolsStore[name] = symbolFor(description);\n } else {\n WellKnownSymbolsStore[name] = createWellKnownSymbol(description);\n }\n } return WellKnownSymbolsStore[name];\n};\n","'use strict';\nvar getBuiltIn = require('../internals/get-built-in');\nvar hasOwn = require('../internals/has-own-property');\nvar createNonEnumerableProperty = require('../internals/create-non-enumerable-property');\nvar isPrototypeOf = require('../internals/object-is-prototype-of');\nvar setPrototypeOf = require('../internals/object-set-prototype-of');\nvar copyConstructorProperties = require('../internals/copy-constructor-properties');\nvar inheritIfRequired = require('../internals/inherit-if-required');\nvar normalizeStringArgument = require('../internals/normalize-string-argument');\nvar installErrorCause = require('../internals/install-error-cause');\nvar clearErrorStack = require('../internals/clear-error-stack');\nvar ERROR_STACK_INSTALLABLE = require('../internals/error-stack-installable');\nvar IS_PURE = require('../internals/is-pure');\n\nmodule.exports = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {\n var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;\n var path = FULL_NAME.split('.');\n var ERROR_NAME = path[path.length - 1];\n var OriginalError = getBuiltIn.apply(null, path);\n\n if (!OriginalError) return;\n\n var OriginalErrorPrototype = OriginalError.prototype;\n\n // V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006\n if (!IS_PURE && hasOwn(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;\n\n if (!FORCED) return OriginalError;\n\n var BaseError = getBuiltIn('Error');\n\n var WrappedError = wrapper(function (a, b) {\n var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);\n var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();\n if (message !== undefined) createNonEnumerableProperty(result, 'message', message);\n if (ERROR_STACK_INSTALLABLE) createNonEnumerableProperty(result, 'stack', clearErrorStack(result.stack, 2));\n if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);\n if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);\n return result;\n });\n\n WrappedError.prototype = OriginalErrorPrototype;\n\n if (ERROR_NAME !== 'Error') {\n if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);\n else copyConstructorProperties(WrappedError, BaseError, { name: true });\n }\n\n copyConstructorProperties(WrappedError, OriginalError);\n\n if (!IS_PURE) try {\n // Safari 13- bug: WebAssembly errors does not have a proper `.name`\n if (OriginalErrorPrototype.name !== ERROR_NAME) {\n createNonEnumerableProperty(OriginalErrorPrototype, 'name', ERROR_NAME);\n }\n OriginalErrorPrototype.constructor = WrappedError;\n } catch (error) { /* empty */ }\n\n return WrappedError;\n};\n","/* eslint-disable no-unused-vars -- required for functions `.length` */\nvar $ = require('../internals/export');\nvar global = require('../internals/global');\nvar apply = require('../internals/function-apply');\nvar wrapErrorConstructorWithCause = require('../internals/wrap-error-constructor-with-cause');\n\nvar WEB_ASSEMBLY = 'WebAssembly';\nvar WebAssembly = global[WEB_ASSEMBLY];\n\nvar FORCED = Error('e', { cause: 7 }).cause !== 7;\n\nvar exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {\n var O = {};\n O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);\n $({ global: true, forced: FORCED }, O);\n};\n\nvar exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {\n if (WebAssembly && WebAssembly[ERROR_NAME]) {\n var O = {};\n O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);\n $({ target: WEB_ASSEMBLY, stat: true, forced: FORCED }, O);\n }\n};\n\n// https://github.com/tc39/proposal-error-cause\nexportGlobalErrorCauseWrapper('Error', function (init) {\n return function Error(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('EvalError', function (init) {\n return function EvalError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('RangeError', function (init) {\n return function RangeError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('ReferenceError', function (init) {\n return function ReferenceError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('SyntaxError', function (init) {\n return function SyntaxError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('TypeError', function (init) {\n return function TypeError(message) { return apply(init, this, arguments); };\n});\nexportGlobalErrorCauseWrapper('URIError', function (init) {\n return function URIError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('CompileError', function (init) {\n return function CompileError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('LinkError', function (init) {\n return function LinkError(message) { return apply(init, this, arguments); };\n});\nexportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {\n return function RuntimeError(message) { return apply(init, this, arguments); };\n});\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".wrapper[data-v-65dbd49c]{height:100%;position:relative;padding:16px;box-sizing:border-box;display:flex;flex-direction:column;justify-content:space-between}.wrapper>*[data-v-65dbd49c]{flex:auto 0 0}.status[data-v-65dbd49c]{display:flex;flex-direction:row;align-items:center}.status>*[data-v-65dbd49c]{flex:auto 0 0}.status .icon[data-v-65dbd49c]{width:48px;height:48px}.status .icon[data-v-65dbd49c] .vue-ui-icon{width:32px;height:32px}.status .info[data-v-65dbd49c]{font-size:18px}.status-killed .status .icon[data-v-65dbd49c] svg{fill:#42b983!important}.status-error .status .icon[data-v-65dbd49c] svg{fill:#e83030!important}.actions[data-v-65dbd49c]{display:flex;flex-direction:row;align-items:center;justify-content:center}.actions>*[data-v-65dbd49c]{flex:auto 0 0}.input[data-v-65dbd49c]{flex:1;margin-right:16px}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".feed[data-v-3045caa8],.loading[data-v-3045caa8],.panes[data-v-3045caa8]{height:100%}.loading[data-v-3045caa8]{display:flex;flex-direction:row;align-items:center;justify-content:center}.loading>*[data-v-3045caa8]{flex:auto 0 0}.panes[data-v-3045caa8]{display:flex;align-items:stretch}.feed[data-v-3045caa8]{overflow-x:hidden;overflow-y:auto}.item-details[data-v-3045caa8],.select-tip[data-v-3045caa8]{flex:1;height:100%}.item-details[data-v-3045caa8]{overflow-x:hidden;overflow-y:auto}.item-details .back[data-v-3045caa8]{padding:16px}.select-tip[data-v-3045caa8]{display:flex;flex-direction:column;align-items:center;justify-content:center}.select-tip>*[data-v-3045caa8]{flex:auto 0 0}.error[data-v-3045caa8]{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding-bottom:42px}.error>*[data-v-3045caa8]{flex:auto 0 0}.news[data-v-3045caa8]:not(.small){padding:8px 0 16px 16px}.news:not(.small) .feed[data-v-3045caa8]{width:400px;background:#f2faf7;border-radius:3px}.vue-ui-dark-mode .news:not(.small) .feed[data-v-3045caa8]{background:#2c3e50}.news.small .panes[data-v-3045caa8]{position:relative}.news.small .feed[data-v-3045caa8]{transition:transform .3s cubic-bezier(0,1,.32,1)}.news.small .item-details[data-v-3045caa8]{position:absolute;top:0;left:0;width:100%;transition:transform .15s ease-out;background:#fff}.vue-ui-dark-mode .news.small .item-details[data-v-3045caa8]{background:#1d2935}.news.small .item-details.v-enter-active[data-v-3045caa8],.news.small .item-details.v-enter-leave[data-v-3045caa8]{transition:transform .3s cubic-bezier(0,1,.32,1)}.news.small .item-details.v-enter[data-v-3045caa8],.news.small .item-details.v-leave-to[data-v-3045caa8]{transform:translateX(100%)}.news.small.has-item-selected .feed[data-v-3045caa8]{transform:translateX(-100%)}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".news-item[data-v-0997d45d]{padding:8px 16px 16px}.title[data-v-0997d45d]{margin-bottom:8px}.date[data-v-0997d45d],.snippet[data-v-0997d45d]{font-size:14px}.date[data-v-0997d45d]{opacity:.5}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".news-item-details[data-v-4696cc20]{padding:0 16px 16px;overflow-x:hidden;overflow-y:auto}.title[data-v-4696cc20]{font-size:18px;margin-bottom:8px}.date[data-v-4696cc20]{font-size:14px;opacity:.5}.content[data-v-4696cc20],.media[data-v-4696cc20]{margin-top:16px}.content[data-v-4696cc20] img,.content[data-v-4696cc20] video,.media-content[data-v-4696cc20]{max-width:100%;max-height:300px}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".info[data-v-06ea10ce]{margin:5px 0 6px;padding:16px}.info[data-v-06ea10ce] .name{font-size:18px}.actions[data-v-06ea10ce]{display:flex;flex-direction:row;align-items:center;justify-content:center}.actions>*[data-v-06ea10ce]{flex:auto 0 0}.actions[data-v-06ea10ce] >:not(:last-child){margin-right:8px}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".header[data-v-3c163aa4]{display:flex;flex-direction:row;align-items:center;padding:16px;margin:4px 0}.header>*[data-v-3c163aa4]{flex:auto 0 0}.icon-wrapper .icon[data-v-3c163aa4]{width:48px;height:48px}.icon-wrapper .icon[data-v-3c163aa4] .vue-ui-icon{width:32px;height:32px}.title[data-v-3c163aa4]{font-size:18px}.last-updated[data-v-3c163aa4]{color:#6a8bad;display:flex;flex-direction:row}.last-updated>*[data-v-3c163aa4]{flex:auto 0 0}.last-updated .label[data-v-3c163aa4]{margin-right:4px}.actions[data-v-3c163aa4]{display:flex;flex-direction:row;align-items:center;justify-content:center}.actions>*[data-v-3c163aa4]{flex:auto 0 0}.actions[data-v-3c163aa4] >:not(:last-child){margin-right:8px}.soon[data-v-3c163aa4]{display:flex;align-items:center;justify-content:center;height:100%}.soon .text[data-v-3c163aa4]{background:#42b983;color:#fff;padding:4px 14px;border-radius:13px;text-transform:lowercase;font-family:monospace;opacity:.5}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".vulnerability-details[data-v-3f9c54ec]{display:flex;flex-direction:column}.vulnerability-details>*[data-v-3f9c54ec]{flex:auto 0 0}.pane-toolbar[data-v-3f9c54ec]{padding-bottom:16px}.summary[data-v-3f9c54ec]{display:flex;padding-right:12px}.summary-item[data-v-3f9c54ec]{display:flex;align-items:center;margin-left:16px}.summary-item .count[data-v-3f9c54ec],.summary-item .vue-ui-icon[data-v-3f9c54ec]{margin-right:3px}.summary-item .count[data-v-3f9c54ec]{font-weight:700}.severity-danger[data-v-3f9c54ec]{color:#e83030}.severity-warning[data-v-3f9c54ec]{color:#ea6e00}.items[data-v-3f9c54ec]{flex:1}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".vulnerability-item[data-v-1de25bcf]{padding:16px;border-top:1px solid rgba(106,139,173,.2)}.wrapper[data-v-1de25bcf]{display:flex;flex-direction:row}.wrapper>*[data-v-1de25bcf]{flex:auto 0 0}.main-infos[data-v-1de25bcf]{flex:1}.name[data-v-1de25bcf]{font-weight:700}.title[data-v-1de25bcf]{cursor:help;border-bottom:1px dotted}.version[data-v-1de25bcf]{margin-left:4px;font-family:monospace;font-size:.9em}.severity[data-v-1de25bcf]{color:#2c3e50}.vue-ui-dark-mode .severity[data-v-1de25bcf]{color:#fff}.severity.danger[data-v-1de25bcf]{color:#e83030}.severity.warning[data-v-1de25bcf]{color:#ea6e00}.parents-list[data-v-1de25bcf]{margin-left:12px;width:50%}.parents[data-v-1de25bcf]{display:flex;flex-direction:row;margin:12px 0;flex-wrap:wrap;width:100%}.parents>*[data-v-1de25bcf]{flex:auto 0 0}.parent[data-v-1de25bcf]:not(:first-child){opacity:.7}.separator-icon[data-v-1de25bcf] svg{fill:#6a8bad}.vue-ui-empty[data-v-1de25bcf]{padding:0}.info-versions[data-v-1de25bcf]{margin-top:4px}.info-version[data-v-1de25bcf]{display:flex;align-items:baseline;margin-top:2px}.info-version .vue-ui-icon[data-v-1de25bcf]{margin-right:4px;opacity:.5}.info-version .version[data-v-1de25bcf]{margin-left:8px}.recommendation[data-v-1de25bcf]{margin:8px 0;display:inline-flex;align-items:center}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","// Imports\nimport ___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/noSourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_NO_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".welcome[data-v-37af615a]{padding:16px;display:flex;flex-direction:column}.welcome>*[data-v-37af615a]{flex:auto 0 0}.logo-wrapper[data-v-37af615a]{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:16px 0}.logo-wrapper>*[data-v-37af615a]{flex:auto 0 0}.logo-wrapper .logo[data-v-37af615a]{width:100px;height:100px}.title[data-v-37af615a]{font-size:32px;font-weight:300;text-align:center;margin-bottom:32px}.tips[data-v-37af615a]{flex:1}.tip[data-v-37af615a]{padding:32px;display:flex;flex-direction:row;align-items:center;justify-content:center}.tip>*[data-v-37af615a]{flex:auto 0 0}.tip .icon[data-v-37af615a] svg{fill:rgba(66,185,131,.7)!important}.tip .message[data-v-37af615a]{flex:1;margin-left:8px}.actions[data-v-37af615a]{display:flex;flex-direction:row;align-items:center;justify-content:center;margin-bottom:16px}.actions>*[data-v-37af615a]{flex:auto 0 0}\", \"\"]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","\"use strict\";\n\n/*\n MIT License http://www.opensource.org/licenses/mit-license.php\n Author Tobias Koppers @sokra\n*/\nmodule.exports = function (cssWithMappingToString) {\n var list = []; // return the list of modules as css string\n\n list.toString = function toString() {\n return this.map(function (item) {\n var content = \"\";\n var needLayer = typeof item[5] !== \"undefined\";\n\n if (item[4]) {\n content += \"@supports (\".concat(item[4], \") {\");\n }\n\n if (item[2]) {\n content += \"@media \".concat(item[2], \" {\");\n }\n\n if (needLayer) {\n content += \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\");\n }\n\n content += cssWithMappingToString(item);\n\n if (needLayer) {\n content += \"}\";\n }\n\n if (item[2]) {\n content += \"}\";\n }\n\n if (item[4]) {\n content += \"}\";\n }\n\n return content;\n }).join(\"\");\n }; // import a list of modules into the list\n\n\n list.i = function i(modules, media, dedupe, supports, layer) {\n if (typeof modules === \"string\") {\n modules = [[null, modules, undefined]];\n }\n\n var alreadyImportedModules = {};\n\n if (dedupe) {\n for (var k = 0; k < this.length; k++) {\n var id = this[k][0];\n\n if (id != null) {\n alreadyImportedModules[id] = true;\n }\n }\n }\n\n for (var _k = 0; _k < modules.length; _k++) {\n var item = [].concat(modules[_k]);\n\n if (dedupe && alreadyImportedModules[item[0]]) {\n continue;\n }\n\n if (typeof layer !== \"undefined\") {\n if (typeof item[5] === \"undefined\") {\n item[5] = layer;\n } else {\n item[1] = \"@layer\".concat(item[5].length > 0 ? \" \".concat(item[5]) : \"\", \" {\").concat(item[1], \"}\");\n item[5] = layer;\n }\n }\n\n if (media) {\n if (!item[2]) {\n item[2] = media;\n } else {\n item[1] = \"@media \".concat(item[2], \" {\").concat(item[1], \"}\");\n item[2] = media;\n }\n }\n\n if (supports) {\n if (!item[4]) {\n item[4] = \"\".concat(supports);\n } else {\n item[1] = \"@supports (\".concat(item[4], \") {\").concat(item[1], \"}\");\n item[4] = supports;\n }\n }\n\n list.push(item);\n }\n };\n\n return list;\n};","\"use strict\";\n\nmodule.exports = function (i) {\n return i[1];\n};","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"promptChoice\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"PromptChoice\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"value\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"checked\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"disabled\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"isDefault\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":90}};\n doc.loc.source = {\"body\":\"fragment promptChoice on PromptChoice {\\n value\\n name\\n checked\\n disabled\\n isDefault\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"promptChoice\"] = oneQuery(doc, \"promptChoice\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"promptError\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"PromptError\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"message\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"link\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":57}};\n doc.loc.source = {\"body\":\"fragment promptError on PromptError {\\n message\\n link\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"promptError\"] = oneQuery(doc, \"promptError\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"prompt\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Prompt\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"type\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"visible\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"enabled\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"message\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"group\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"description\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"link\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"choices\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"promptChoice\"},\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"value\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"valueChanged\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"error\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"promptError\"},\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"tabId\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":282}};\n doc.loc.source = {\"body\":\"#import \\\"./promptChoiceFragment.gql\\\"\\n#import \\\"./promptErrorFragment.gql\\\"\\n\\nfragment prompt on Prompt {\\n id\\n type\\n visible\\n enabled\\n name\\n message\\n group\\n description\\n link\\n choices {\\n ...promptChoice\\n }\\n value\\n valueChanged\\n error {\\n ...promptError\\n }\\n tabId\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./promptChoiceFragment.gql\").definitions));\ndoc.definitions = doc.definitions.concat(unique(require(\"./promptErrorFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"prompt\"] = oneQuery(doc, \"prompt\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"task\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"task\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"task\"},\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"link\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"prompts\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"prompt\"},\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"views\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"label\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"icon\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"component\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"defaultView\"},\"arguments\":[],\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":257}};\n doc.loc.source = {\"body\":\"#import \\\"./taskFragment.gql\\\"\\n#import \\\"../prompt/promptFragment.gql\\\"\\n\\nquery task ($id: ID!) {\\n task (id: $id) {\\n ...task\\n link\\n prompts {\\n ...prompt\\n }\\n views {\\n id\\n label\\n icon\\n component\\n }\\n defaultView\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./taskFragment.gql\").definitions));\ndoc.definitions = doc.definitions.concat(unique(require(\"../prompt/promptFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"task\"] = oneQuery(doc, \"task\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"taskChanged\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"taskChanged\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"task\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":91}};\n doc.loc.source = {\"body\":\"#import \\\"./taskFragment.gql\\\"\\n\\nsubscription taskChanged {\\n taskChanged {\\n ...task\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./taskFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"taskChanged\"] = oneQuery(doc, \"taskChanged\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"task\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Task\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"status\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"command\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"description\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"icon\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"plugin\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"logo\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"project\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":132}};\n doc.loc.source = {\"body\":\"fragment task on Task {\\n id\\n status\\n name\\n command\\n description\\n icon\\n plugin {\\n id\\n logo\\n }\\n project {\\n id\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"task\"] = oneQuery(doc, \"task\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"taskRun\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"taskRun\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"task\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":100}};\n doc.loc.source = {\"body\":\"#import \\\"./taskFragment.gql\\\"\\n\\nmutation taskRun ($id: ID!) {\\n taskRun (id: $id) {\\n ...task\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./taskFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"taskRun\"] = oneQuery(doc, \"taskRun\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"taskStop\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"taskStop\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"task\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":102}};\n doc.loc.source = {\"body\":\"#import \\\"./taskFragment.gql\\\"\\n\\nmutation taskStop ($id: ID!) {\\n taskStop (id: $id) {\\n ...task\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./taskFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"taskStop\"] = oneQuery(doc, \"taskStop\");\n \n","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Welcome.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Welcome.vue?vue&type=script&lang=js&\"","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent (\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier, /* server only */\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options = typeof scriptExports === 'function'\n ? scriptExports.options\n : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) { // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection (h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing\n ? [].concat(existing, hook)\n : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","import { render, staticRenderFns } from \"./Welcome.vue?vue&type=template&id=37af615a&scoped=true&\"\nimport script from \"./Welcome.vue?vue&type=script&lang=js&\"\nexport * from \"./Welcome.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Welcome.vue?vue&type=style&index=0&id=37af615a&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"37af615a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"kill-port\",class:[\n (\"status-\" + _vm.status)\n ]},[_c('div',{staticClass:\"wrapper\"},[_c('div',{staticClass:\"status\"},[(_vm.status === 'killing')?_c('VueLoadingIndicator',{staticClass:\"icon\"}):_c('ItemLogo',{staticClass:\"icon large\",attrs:{\"image\":_vm.icon}}),_c('div',{staticClass:\"info\"},[_vm._v(\" \"+_vm._s(_vm.$t((\"org.vue.widgets.kill-port.status.\" + _vm.status)))+\" \")])],1),_c('div',{staticClass:\"actions\"},[_c('VueInput',{staticClass:\"input big\",attrs:{\"placeholder\":_vm.$t('org.vue.widgets.kill-port.input.placeholder'),\"type\":\"number\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.kill()}},model:{value:(_vm.port),callback:function ($$v) {_vm.port=$$v},expression:\"port\"}}),_c('VueButton',{staticClass:\"primary big\",attrs:{\"label\":_vm.$t('org.vue.widgets.kill-port.kill'),\"icon-left\":\"flash_on\"},on:{\"click\":function($event){return _vm.kill()}}})],1)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./KillPort.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./KillPort.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./KillPort.vue?vue&type=template&id=65dbd49c&scoped=true&\"\nimport script from \"./KillPort.vue?vue&type=script&lang=js&\"\nexport * from \"./KillPort.vue?vue&type=script&lang=js&\"\nimport style0 from \"./KillPort.vue?vue&type=style&index=0&id=65dbd49c&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"65dbd49c\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"plugin-updates\"},[(_vm.status)?_c('StatusWidget',{attrs:{\"icon\":_vm.icons[_vm.status.status],\"icon-class\":_vm.iconClasses[_vm.status.status],\"title\":_vm.$t((\"org.vue.widgets.plugin-updates.messages.\" + (_vm.status.status))),\"status\":_vm.status},on:{\"check\":function($event){return _vm.checkForUpdates()}}},[_c('template',{slot:\"more-actions\"},[_c('VueButton',{attrs:{\"to\":{ name: 'project-plugins' },\"label\":_vm.$t('org.vue.widgets.plugin-updates.page'),\"icon-left\":\"extension\"}})],1)],2):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export const UPDATES_ICONS = {\n ok: 'check_circle',\n loading: 'hourglass_full',\n attention: 'error'\n}\n\nexport const UPDATES_ICON_CLASSES = {\n ok: 'success',\n loading: '',\n attention: 'warning'\n}\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.implemented)?_c('div',{staticClass:\"status-widget\"},[_c('div',{staticClass:\"header\"},[_c('div',{staticClass:\"icon-wrapper\"},[_c('ItemLogo',{staticClass:\"icon\",class:_vm.iconClass,attrs:{\"image\":_vm.icon}})],1),_c('div',{staticClass:\"info\"},[_c('div',{staticClass:\"title\",domProps:{\"innerHTML\":_vm._s(_vm.title)}}),_c('div',{staticClass:\"last-updated\"},[(_vm.status.lastUpdate)?[_c('div',{staticClass:\"label\"},[_vm._v(\" \"+_vm._s(_vm.message || _vm.$t('org.vue.widgets.status-widget.last-updated'))+\" \")]),(!_vm.message)?_c('VueTimeago',{attrs:{\"datetime\":_vm.status.lastUpdate,\"auto-update\":60}}):_vm._e()]:_c('div',{staticClass:\"label\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.widgets.status-widget.never'))+\" \")])],2)])]),_c('div',{staticClass:\"actions\"},[_vm._t(\"actions\",function(){return [(_vm.status.status === 'attention')?_c('VueButton',{attrs:{\"label\":_vm.$t('org.vue.widgets.status-widget.more-info'),\"icon-left\":\"add_circle\"},on:{\"click\":function($event){return _vm.widget.openDetails()}}}):_vm._e(),_vm._t(\"more-actions\")]})],2)]):_c('div',{staticClass:\"status-widget soon\"},[_c('div',{staticClass:\"text\"},[_vm._v(\"Available Soon\")])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./StatusWidget.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./StatusWidget.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./StatusWidget.vue?vue&type=template&id=3c163aa4&scoped=true&\"\nimport script from \"./StatusWidget.vue?vue&type=script&lang=js&\"\nexport * from \"./StatusWidget.vue?vue&type=script&lang=js&\"\nimport style0 from \"./StatusWidget.vue?vue&type=style&index=0&id=3c163aa4&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3c163aa4\",\n null\n \n)\n\nexport default component.exports","\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./PluginUpdates.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./PluginUpdates.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PluginUpdates.vue?vue&type=template&id=0bfc624f&\"\nimport script from \"./PluginUpdates.vue?vue&type=script&lang=js&\"\nexport * from \"./PluginUpdates.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"dependency-updates\"},[(_vm.status)?_c('StatusWidget',{attrs:{\"icon\":_vm.icons[_vm.status.status],\"icon-class\":_vm.iconClasses[_vm.status.status],\"title\":_vm.$t((\"org.vue.widgets.dependency-updates.messages.\" + (_vm.status.status))),\"status\":_vm.status},on:{\"check\":function($event){return _vm.checkForUpdates()}}},[_c('template',{slot:\"more-actions\"},[_c('VueButton',{attrs:{\"to\":{ name: 'project-dependencies' },\"label\":_vm.$t('org.vue.widgets.dependency-updates.page'),\"icon-left\":\"collections_bookmark\"}})],1)],2):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./DependencyUpdates.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./DependencyUpdates.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./DependencyUpdates.vue?vue&type=template&id=7a3cc887&\"\nimport script from \"./DependencyUpdates.vue?vue&type=script&lang=js&\"\nexport * from \"./DependencyUpdates.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"vulnerability\"},[(_vm.status)?_c('StatusWidget',{attrs:{\"icon\":_vm.status.status === 'attention' ? _vm.severity.icon : _vm.icons[_vm.status.status],\"icon-class\":_vm.status.status === 'attention' ? _vm.severity.class : _vm.iconClasses[_vm.status.status],\"title\":_vm.$t((\"org.vue.widgets.vulnerability.messages.\" + (_vm.status.status)), { n: _vm.status.count }),\"status\":_vm.status,\"message\":_vm.status.message,\"implemented\":\"\"},on:{\"check\":function($event){return _vm.checkForUpdates()}},scopedSlots:_vm._u([{key:\"more-actions\",fn:function(){return [(_vm.status.status !== 'loading')?_c('VueButton',{attrs:{\"label\":_vm.$t('org.vue.widgets.vulnerability.recheck'),\"icon-left\":\"refresh\"},on:{\"click\":function($event){return _vm.refresh()}}}):_vm._e()]},proxy:true}],null,false,2357575406)}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Vulnerability.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Vulnerability.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Vulnerability.vue?vue&type=template&id=2b884435&\"\nimport script from \"./Vulnerability.vue?vue&type=script&lang=js&\"\nexport * from \"./Vulnerability.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"vulnerability-details\"},[(!_vm.details)?_c('div',{staticClass:\"loading\"},[_c('VueLoadingIndicator')],1):[_c('div',{staticClass:\"pane-toolbar\"},[_c('div',{staticClass:\"title\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.widgets.vulnerability.messages.attention', { n: _vm.details.vulnerabilities.length }))+\" \")]),_c('div',{staticClass:\"summary\"},_vm._l((_vm.severities),function(severity,key){return _c('div',{key:key,staticClass:\"summary-item\",class:(\"severity-\" + (severity.class))},[_c('VueIcon',{class:severity.class,attrs:{\"icon\":severity.icon}}),_c('span',{staticClass:\"count\"},[_vm._v(_vm._s(_vm.details.summary[key]))]),_vm._v(\" \"+_vm._s(_vm.$t((\"org.vue.widgets.vulnerability.severity.\" + key)))+\" \")],1)}),0)]),_c('transition',{attrs:{\"name\":\"vue-ui-fade\"}},[(_vm.showList)?_c('DynamicScroller',{ref:\"scroller\",staticClass:\"items\",attrs:{\"items\":_vm.details.vulnerabilities,\"min-item-size\":75},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar item = ref.item;\nvar active = ref.active;\nreturn [_c('DynamicScrollerItem',{attrs:{\"item\":item,\"active\":active,\"size-dependencies\":[\n _vm.showMoreParentsMap[item.id]\n ]}},[_c('VulnerabilityItem',{attrs:{\"item\":item,\"show-more-parents\":_vm.showMoreParentsMap[item.id]},on:{\"toggle-more-parents\":function($event){return _vm.$set(_vm.showMoreParentsMap, item.id, !_vm.showMoreParentsMap[item.id])}}})],1)]}}],null,false,2224917729)}):_vm._e()],1)]],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"vulnerability-item list-item\"},[_c('div',{staticClass:\"wrapper\"},[_c('ItemLogo',{class:_vm.severity.class,attrs:{\"image\":_vm.severity.icon}}),_c('div',{staticClass:\"main-infos\"},[_c('ListItemInfo',{attrs:{\"link\":_vm.item.moreInfo}},[_c('template',{slot:\"name\"},[_c('span',{staticClass:\"name\"},[_vm._v(_vm._s(_vm.item.name))]),_c('span',{staticClass:\"version\"},[_vm._v(_vm._s(_vm.item.version))])]),_c('template',{slot:\"description\"},[_c('span',{staticClass:\"severity\",class:_vm.severity.class},[_vm._v(\" \"+_vm._s(_vm.$t((\"org.vue.widgets.vulnerability.severity.\" + (_vm.item.severity))))+\" \")]),_c('span',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.item.message),expression:\"item.message\"}],staticClass:\"title\"},[_vm._v(\" \"+_vm._s(_vm.item.title)+\" \")])])],2),_c('div',{staticClass:\"info-versions\"},[_c('div',{staticClass:\"info-version\"},[_c('VueIcon',{attrs:{\"icon\":\"error\"}}),_vm._v(\" \"+_vm._s(_vm.$t('org.vue.widgets.vulnerability.versions.vulnerable'))+\" \"),_c('span',{staticClass:\"version\"},[_vm._v(_vm._s(_vm.item.versions.vulnerable))])],1),_c('div',{staticClass:\"info-version\"},[_c('VueIcon',{attrs:{\"icon\":\"check_circle\"}}),_vm._v(\" \"+_vm._s(_vm.$t('org.vue.widgets.vulnerability.versions.patched'))+\" \"),_c('span',{staticClass:\"version\"},[_vm._v(_vm._s(_vm.item.versions.patched))])],1)]),_c('div',{staticClass:\"recommendation vue-ui-text success banner\"},[_c('VueIcon',{staticClass:\"big\",attrs:{\"icon\":\"arrow_forward\"}}),_vm._v(\" \"+_vm._s(_vm.item.recommendation)+\" \")],1)],1),_c('div',{staticClass:\"parents-list\"},[_vm._l((_vm.displayedParents),function(parents,index){return _c('div',{key:index,staticClass:\"parents\"},[(!parents.length)?_c('div',{staticClass:\"vue-ui-empty\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.widgets.vulnerability.direct-dep'))+\" \")]):[_vm._l((parents),function(parent,index){return _c('div',{key:index,staticClass:\"parent\"},[_c('span',{staticClass:\"name\"},[_vm._v(_vm._s(parent.name))]),_c('VueIcon',{staticClass:\"separator-icon medium\",attrs:{\"icon\":\"chevron_right\"}})],1)}),_c('div',{staticClass:\"parent current\"},[_c('span',{staticClass:\"name\"},[_vm._v(_vm._s(_vm.item.name))])])]],2)}),(_vm.item.parents.length > 3)?_c('div',{staticClass:\"show-more\"},[_c('VueButton',{staticClass:\"flat\",attrs:{\"icon-left\":_vm.showMoreParents ? 'expand_less' : 'expand_more'},on:{\"click\":function($event){return _vm.$emit('toggle-more-parents')}}},[_vm._v(\" \"+_vm._s(_vm.$t((\"org.vue.common.show-\" + (_vm.showMoreParents ? 'less' : 'more'))))+\" \")])],1):_vm._e()],2)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VulnerabilityItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VulnerabilityItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./VulnerabilityItem.vue?vue&type=template&id=1de25bcf&scoped=true&\"\nimport script from \"./VulnerabilityItem.vue?vue&type=script&lang=js&\"\nexport * from \"./VulnerabilityItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./VulnerabilityItem.vue?vue&type=style&index=0&id=1de25bcf&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1de25bcf\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VulnerabilityDetails.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./VulnerabilityDetails.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./VulnerabilityDetails.vue?vue&type=template&id=3f9c54ec&scoped=true&\"\nimport script from \"./VulnerabilityDetails.vue?vue&type=script&lang=js&\"\nexport * from \"./VulnerabilityDetails.vue?vue&type=script&lang=js&\"\nimport style0 from \"./VulnerabilityDetails.vue?vue&type=style&index=0&id=3f9c54ec&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3f9c54ec\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"run-task\"},[(_vm.task)?[_c('TaskItem',{staticClass:\"info\",attrs:{\"task\":_vm.task}}),_c('div',{staticClass:\"actions\"},[(_vm.task.status !== 'running')?_c('VueButton',{staticClass:\"primary\",attrs:{\"icon-left\":\"play_arrow\",\"label\":_vm.$t('org.vue.views.project-task-details.actions.play')},on:{\"click\":function($event){return _vm.runTask()}}}):_c('VueButton',{staticClass:\"primary\",attrs:{\"icon-left\":\"stop\",\"label\":_vm.$t('org.vue.views.project-task-details.actions.stop')},on:{\"click\":function($event){return _vm.stopTask()}}}),_c('VueButton',{attrs:{\"icon-left\":\"assignment\",\"label\":_vm.$t('org.vue.widgets.run-task.page'),\"to\":{ name: 'project-task-details', params: { id: _vm.taskId } }}})],1)]:_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./RunTask.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./RunTask.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./RunTask.vue?vue&type=template&id=06ea10ce&scoped=true&\"\nimport script from \"./RunTask.vue?vue&type=script&lang=js&\"\nexport * from \"./RunTask.vue?vue&type=script&lang=js&\"\nimport style0 from \"./RunTask.vue?vue&type=style&index=0&id=06ea10ce&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"06ea10ce\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"news\",class:{\n details: _vm.widget.isDetails,\n small: _vm.small,\n 'has-item-selected': _vm.selectedItem\n }},[(_vm.loading)?_c('div',{staticClass:\"loading\"},[_c('VueLoadingIndicator')],1):(_vm.error)?_c('div',{staticClass:\"error vue-ui-empty\"},[_c('VueIcon',{staticClass:\"huge\",attrs:{\"icon\":_vm.errorData.icon}}),_c('div',[_vm._v(_vm._s(_vm.$t((\"org.vue.widgets.news.errors.\" + _vm.error))))])],1):_c('div',{staticClass:\"panes\"},[_c('div',{staticClass:\"feed\"},_vm._l((_vm.feed.items),function(item,index){return _c('NewsItem',{key:index,class:{\n selected: _vm.selectedItem === item\n },attrs:{\"item\":item},nativeOn:{\"click\":function($event){_vm.selectedItem = item}}})}),1),_c('transition',[(_vm.selectedItem)?_c('div',{staticClass:\"item-details\"},[(_vm.small)?_c('div',{staticClass:\"back\"},[_c('VueButton',{attrs:{\"icon-left\":\"arrow_back\",\"label\":_vm.$t('org.vue.common.back')},on:{\"click\":function($event){_vm.selectedItem = null}}})],1):_vm._e(),(_vm.selectedItem)?_c('NewsItemDetails',{attrs:{\"item\":_vm.selectedItem}}):_vm._e()],1):(!_vm.small)?_c('div',{staticClass:\"select-tip vue-ui-empty\"},[_c('VueIcon',{staticClass:\"huge\",attrs:{\"icon\":\"rss_feed\"}}),_c('div',[_vm._v(_vm._s(_vm.$t('org.vue.widgets.news.select-tip')))])],1):_vm._e()])],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"news-item list-item\"},[_c('div',{staticClass:\"info\"},[_c('div',{staticClass:\"head\"},[_c('div',{staticClass:\"title\"},[_c('a',{attrs:{\"href\":_vm.item.link,\"target\":\"_blank\",\"rel\":\"noopener noreferrer\"},on:{\"click\":function($event){$event.stopPropagation();}}},[_vm._v(\" \"+_vm._s(_vm.item.title)+\" \")])]),_c('div',{staticClass:\"snippet\"},[_vm._v(_vm._s(_vm.snippet))]),_c('div',{staticClass:\"date\"},[_vm._v(_vm._s(_vm._f(\"date\")(_vm.item.pubDate)))])])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./NewsItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./NewsItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NewsItem.vue?vue&type=template&id=0997d45d&scoped=true&\"\nimport script from \"./NewsItem.vue?vue&type=script&lang=js&\"\nexport * from \"./NewsItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./NewsItem.vue?vue&type=style&index=0&id=0997d45d&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0997d45d\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"news-item-details\"},[_c('div',{staticClass:\"head\"},[_c('div',{staticClass:\"title\"},[_c('a',{attrs:{\"href\":_vm.item.link,\"target\":\"_blank\",\"rel\":\"noopener noreferrer\"}},[_vm._v(\" \"+_vm._s(_vm.item.title)+\" \")])]),_c('div',{staticClass:\"date\"},[_vm._v(_vm._s(_vm._f(\"date\")(_vm.item.pubDate)))])]),_c('div',{staticClass:\"content\",domProps:{\"innerHTML\":_vm._s(_vm.item['content:encoded'] || _vm.item.content)}}),(_vm.item.enclosure)?_c('div',{staticClass:\"media\"},[(_vm.item.enclosure.type.indexOf('image/') === 0)?_c('img',{staticClass:\"image media-content\",attrs:{\"src\":_vm.item.enclosure.url}}):_vm._e(),(_vm.item.enclosure.type.indexOf('audio/') === 0)?_c('audio',{attrs:{\"src\":_vm.item.enclosure.url,\"controls\":\"\"}}):_vm._e(),(_vm.item.enclosure.type.indexOf('video/') === 0)?_c('video',{attrs:{\"src\":_vm.item.enclosure.url,\"controls\":\"\"}}):_vm._e()]):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./NewsItemDetails.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./NewsItemDetails.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NewsItemDetails.vue?vue&type=template&id=4696cc20&scoped=true&\"\nimport script from \"./NewsItemDetails.vue?vue&type=script&lang=js&\"\nexport * from \"./NewsItemDetails.vue?vue&type=script&lang=js&\"\nimport style0 from \"./NewsItemDetails.vue?vue&type=style&index=0&id=4696cc20&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4696cc20\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./News.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./News.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./News.vue?vue&type=template&id=3045caa8&scoped=true&\"\nimport script from \"./News.vue?vue&type=script&lang=js&\"\nexport * from \"./News.vue?vue&type=script&lang=js&\"\nimport style0 from \"./News.vue?vue&type=style&index=0&id=3045caa8&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3045caa8\",\n null\n \n)\n\nexport default component.exports","import Welcome from './components/Welcome.vue'\nimport KillPort from './components/KillPort.vue'\nimport PluginUpdates from './components/PluginUpdates.vue'\nimport DependencyUpdates from './components/DependencyUpdates.vue'\nimport Vulnerability from './components/Vulnerability.vue'\nimport VulnerabilityDetails from './components/VulnerabilityDetails.vue'\nimport RunTask from './components/RunTask.vue'\nimport News from './components/News.vue'\n\n/* eslint-disable vue/multi-word-component-names */\nClientAddonApi.component('org.vue.widgets.components.welcome', Welcome)\nClientAddonApi.component('org.vue.widgets.components.kill-port', KillPort)\nClientAddonApi.component('org.vue.widgets.components.plugin-updates', PluginUpdates)\nClientAddonApi.component('org.vue.widgets.components.dependency-updates', DependencyUpdates)\nClientAddonApi.component('org.vue.widgets.components.vulnerability', Vulnerability)\nClientAddonApi.component('org.vue.widgets.components.vulnerability-details', VulnerabilityDetails)\nClientAddonApi.component('org.vue.widgets.components.run-task', RunTask)\nClientAddonApi.component('org.vue.widgets.components.news', News)\n"],"names":["global","isCallable","tryToString","TypeError","module","exports","argument","String","isObject","toIndexedObject","toAbsoluteIndex","lengthOfArrayLike","createMethod","IS_INCLUDES","$this","el","fromIndex","value","O","length","index","includes","indexOf","uncurryThis","toString","stringSlice","slice","it","TO_STRING_TAG_SUPPORT","classofRaw","wellKnownSymbol","TO_STRING_TAG","Object","CORRECT_ARGUMENTS","arguments","tryGet","key","error","tag","result","undefined","callee","replace","TEST","arg","Error","stack","V8_OR_CHAKRA_STACK_ENTRY","IS_V8_OR_CHAKRA_STACK","test","dropEntries","hasOwn","ownKeys","getOwnPropertyDescriptorModule","definePropertyModule","target","source","exceptions","keys","defineProperty","f","getOwnPropertyDescriptor","i","DESCRIPTORS","createPropertyDescriptor","object","bitmap","enumerable","configurable","writable","fails","get","document","EXISTS","createElement","getBuiltIn","match","version","userAgent","process","Deno","versions","v8","split","createNonEnumerableProperty","redefine","setGlobal","copyConstructorProperties","isForced","options","FORCED","targetProperty","sourceProperty","descriptor","TARGET","GLOBAL","STATIC","stat","prototype","noTargetGet","forced","sham","exec","NATIVE_BIND","FunctionPrototype","Function","apply","call","Reflect","bind","hasOwnProperty","getDescriptor","PROPER","name","CONFIGURABLE","fn","aFunction","namespace","method","aCallable","V","P","func","check","Math","globalThis","window","self","g","this","toObject","a","classof","propertyIsEnumerable","setPrototypeOf","dummy","Wrapper","NewTarget","NewTargetPrototype","constructor","store","functionToString","inspectSource","cause","set","has","NATIVE_WEAK_MAP","shared","sharedKey","hiddenKeys","OBJECT_ALREADY_INITIALIZED","WeakMap","enforce","getterFor","TYPE","state","type","wmget","wmhas","wmset","metadata","facade","STATE","replacement","feature","detection","data","normalize","POLYFILL","NATIVE","string","toLowerCase","isPrototypeOf","USE_SYMBOL_AS_UID","$Symbol","toLength","obj","V8_VERSION","getOwnPropertySymbols","symbol","Symbol","$default","IE8_DOM_DEFINE","V8_PROTOTYPE_DEFINE_BUG","anObject","toPropertyKey","$defineProperty","$getOwnPropertyDescriptor","ENUMERABLE","WRITABLE","Attributes","current","propertyIsEnumerableModule","internalObjectKeys","enumBugKeys","concat","getOwnPropertyNames","push","names","$propertyIsEnumerable","NASHORN_BUG","aPossiblePrototype","setter","CORRECT_SETTER","Array","proto","__proto__","input","pref","val","valueOf","getOwnPropertyNamesModule","getOwnPropertySymbolsModule","InternalStateModule","CONFIGURABLE_FUNCTION_NAME","getInternalState","enforceInternalState","TEMPLATE","unsafe","simple","join","uid","SHARED","IS_PURE","mode","copyright","license","toIntegerOrInfinity","max","min","integer","IndexedObject","requireObjectCoercible","ceil","floor","number","isSymbol","getMethod","ordinaryToPrimitive","TO_PRIMITIVE","exoticToPrim","toPrimitive","id","postfix","random","NATIVE_SYMBOL","iterator","WellKnownSymbolsStore","symbolFor","createWellKnownSymbol","withoutSetter","description","inheritIfRequired","normalizeStringArgument","installErrorCause","clearErrorStack","ERROR_STACK_INSTALLABLE","FULL_NAME","wrapper","IS_AGGREGATE_ERROR","OPTIONS_POSITION","path","ERROR_NAME","OriginalError","OriginalErrorPrototype","BaseError","WrappedError","b","message","$","wrapErrorConstructorWithCause","WEB_ASSEMBLY","WebAssembly","exportGlobalErrorCauseWrapper","exportWebAssemblyErrorCauseWrapper","init","___CSS_LOADER_EXPORT___","cssWithMappingToString","list","map","item","content","needLayer","modules","media","dedupe","supports","layer","alreadyImportedModules","k","_k","doc","loc","collectFragmentReferences","node","refs","kind","add","selectionSet","selections","forEach","selection","variableDefinitions","def","definitions","definitionRefs","findOperation","element","oneQuery","operationName","newDoc","opRefs","Set","allRefs","newRefs","refName","size","prevRefs","childRefs","childRef","op","unique","defs","filter","__esModule","default","locals","listToStyles","parentId","styles","newStyles","css","sourceMap","part","parts","hasDocument","DEBUG","stylesInDom","head","getElementsByTagName","singletonElement","singletonCounter","isProduction","noop","ssrIdKey","isOldIE","navigator","addStylesClient","_isProduction","_options","addStylesToDom","newList","mayRemove","domStyle","j","addStyle","createStyleElement","styleElement","appendChild","update","remove","querySelector","parentNode","removeChild","styleIndex","applyToSingletonTag","applyToTag","newObj","replaceText","textStore","Boolean","styleSheet","cssText","cssNode","createTextNode","childNodes","insertBefore","setAttribute","ssrId","sources","btoa","unescape","encodeURIComponent","JSON","stringify","firstChild","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","__webpack_modules__","n","getter","d","definition","o","e","prop","r","toStringTag","render","_vm","_h","$createElement","_c","_self","staticClass","attrs","_v","_s","$t","_l","tipIcons","on","$event","widget","staticRenderFns","inject","created","normalizeComponent","scriptExports","functionalTemplate","injectStyles","scopeId","moduleIdentifier","shadowMode","hook","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","_registeredComponents","_ssrRegister","$root","$options","shadowRoot","_injectStyles","originalRender","h","existing","beforeCreate","component","class","status","icon","keyCode","kill","model","callback","$$v","port","expression","ICONS","idle","killed","sharedData","mapSharedData","computed","inputValid","watch","$_statusTimer","setTimeout","methods","clearTimeout","$callPluginAction","icons","iconClasses","checkForUpdates","slot","_e","UPDATES_ICONS","ok","loading","attention","UPDATES_ICON_CLASSES","iconClass","domProps","title","lastUpdate","_t","openDetails","props","required","implemented","components","StatusWidget","severity","count","scopedSlots","_u","refresh","proxy","SEVERITIES","critical","high","moderate","low","details","vulnerabilities","summary","ref","active","showMoreParentsMap","$set","moreInfo","directives","rawName","vulnerable","patched","recommendation","parents","showMoreParents","$emit","displayedParents","VulnerabilityItem","showList","severities","mounted","task","runTask","stopTask","params","taskId","apollo","query","variables","$subscribe","taskChanged","config","$apollo","mutate","mutation","isDetails","small","selectedItem","errorData","feed","selected","nativeOn","link","stopPropagation","snippet","_f","pubDate","text","contentSnippet","substr","enclosure","url","ERRORS","fetch","offline","empty","NewsItem","NewsItemDetails","width","handler","fetchFeed","immediate","addHeaderAction","tooltip","disabled","onCalled","async","onLine","customTitle","results","errors","force","items","console","ClientAddonApi","Welcome","KillPort","PluginUpdates","DependencyUpdates","Vulnerability","VulnerabilityDetails","RunTask","News"],"sourceRoot":""} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/package.json" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/package.json" new file mode 100644 index 0000000000000000000000000000000000000000..1a35461a3d88bc070bb3b324370b1e1992175c75 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/package.json" @@ -0,0 +1,41 @@ +{ + "name": "@vue/cli-ui-addon-widgets", + "version": "5.0.4", + "repository": { + "type": "git", + "url": "git+https://github.com/vuejs/vue-cli.git", + "directory": "packages/@vue/cli-ui-addon-widgets" + }, + "files": [ + "dist", + "src" + ], + "scripts": { + "serve": "vue-cli-service serve", + "build": "vue-cli-service build", + "lint": "vue-cli-service lint", + "prepublishOnly": "yarn run lint --no-fix && yarn run build" + }, + "license": "MIT", + "devDependencies": { + "@babel/core": "^7.12.16", + "@babel/eslint-parser": "^7.12.16", + "@vue/cli-plugin-babel": "^5.0.4", + "@vue/cli-plugin-eslint": "^5.0.4", + "@vue/cli-service": "^5.0.4", + "@vue/eslint-config-standard": "^6.1.0", + "core-js": "^3.8.3", + "eslint": "^7.32.0", + "eslint-plugin-import": "^2.20.2", + "eslint-plugin-node": "^11.1.0", + "eslint-plugin-promise": "^5.1.0", + "eslint-plugin-vue": "^8.0.3", + "stylus": "^0.55.0", + "stylus-loader": "^6.1.0", + "vue-template-compiler": "^2.6.14" + }, + "publishConfig": { + "access": "public" + }, + "gitHead": "ca97fc2920a3fc9b0288d5fabef1a97356b8da23" +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/DependencyUpdates.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/DependencyUpdates.vue" new file mode 100644 index 0000000000000000000000000000000000000000..2a4da2dc052b163081ae75d49255113a79372a10 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/DependencyUpdates.vue" @@ -0,0 +1,49 @@ + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/KillPort.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/KillPort.vue" new file mode 100644 index 0000000000000000000000000000000000000000..f13e4a29af083cadac56a97c3f68bb87a73b7435 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/KillPort.vue" @@ -0,0 +1,137 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/News.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/News.vue" new file mode 100644 index 0000000000000000000000000000000000000000..1b43e2bbd4facefddebee620b1e648ad3f15819f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/News.vue" @@ -0,0 +1,250 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/NewsItem.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/NewsItem.vue" new file mode 100644 index 0000000000000000000000000000000000000000..aa02f387132059151fa6ae0333a61bc8e2c1405d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/NewsItem.vue" @@ -0,0 +1,58 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/NewsItemDetails.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/NewsItemDetails.vue" new file mode 100644 index 0000000000000000000000000000000000000000..0b6fcb9382757539fbdfed59a420f71406feba68 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/NewsItemDetails.vue" @@ -0,0 +1,82 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/PluginUpdates.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/PluginUpdates.vue" new file mode 100644 index 0000000000000000000000000000000000000000..d3d1b76f75462a3252766e5d13cd3a2f9c49f324 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/PluginUpdates.vue" @@ -0,0 +1,49 @@ + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/RunTask.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/RunTask.vue" new file mode 100644 index 0000000000000000000000000000000000000000..17f4a39f41792f55d5b8ebe44a59cc4c719e2a71 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/RunTask.vue" @@ -0,0 +1,108 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/StatusWidget.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/StatusWidget.vue" new file mode 100644 index 0000000000000000000000000000000000000000..e172480b33bd9c2c83bde1b3bd0c0a7c17ebc2ae --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/StatusWidget.vue" @@ -0,0 +1,161 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/Vulnerability.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/Vulnerability.vue" new file mode 100644 index 0000000000000000000000000000000000000000..5124017808c9dcfde37d461ac17540725ebad51f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/Vulnerability.vue" @@ -0,0 +1,84 @@ + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/VulnerabilityDetails.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/VulnerabilityDetails.vue" new file mode 100644 index 0000000000000000000000000000000000000000..093b982e4ea6e107d729249abbbe7ba2136e601a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/VulnerabilityDetails.vue" @@ -0,0 +1,129 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/VulnerabilityItem.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/VulnerabilityItem.vue" new file mode 100644 index 0000000000000000000000000000000000000000..dd7e3c525b91ca40737d0a1bb5a566e705794f28 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/VulnerabilityItem.vue" @@ -0,0 +1,192 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/Welcome.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/Welcome.vue" new file mode 100644 index 0000000000000000000000000000000000000000..bb200dd4128e4ae1fe6be8157248d745843b49ab --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/components/Welcome.vue" @@ -0,0 +1,96 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/main.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/main.js" new file mode 100644 index 0000000000000000000000000000000000000000..3a13f5a204f3d38be994cba48e73f1135f4b9981 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/main.js" @@ -0,0 +1,18 @@ +import Welcome from './components/Welcome.vue' +import KillPort from './components/KillPort.vue' +import PluginUpdates from './components/PluginUpdates.vue' +import DependencyUpdates from './components/DependencyUpdates.vue' +import Vulnerability from './components/Vulnerability.vue' +import VulnerabilityDetails from './components/VulnerabilityDetails.vue' +import RunTask from './components/RunTask.vue' +import News from './components/News.vue' + +/* eslint-disable vue/multi-word-component-names */ +ClientAddonApi.component('org.vue.widgets.components.welcome', Welcome) +ClientAddonApi.component('org.vue.widgets.components.kill-port', KillPort) +ClientAddonApi.component('org.vue.widgets.components.plugin-updates', PluginUpdates) +ClientAddonApi.component('org.vue.widgets.components.dependency-updates', DependencyUpdates) +ClientAddonApi.component('org.vue.widgets.components.vulnerability', Vulnerability) +ClientAddonApi.component('org.vue.widgets.components.vulnerability-details', VulnerabilityDetails) +ClientAddonApi.component('org.vue.widgets.components.run-task', RunTask) +ClientAddonApi.component('org.vue.widgets.components.news', News) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/util/consts.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/util/consts.js" new file mode 100644 index 0000000000000000000000000000000000000000..67314d207db0dd46b8d046a84732fa2975011c56 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui-addon-widgets/src/util/consts.js" @@ -0,0 +1,11 @@ +export const UPDATES_ICONS = { + ok: 'check_circle', + loading: 'hourglass_full', + attention: 'error' +} + +export const UPDATES_ICON_CLASSES = { + ok: 'success', + loading: '', + attention: 'warning' +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..4e467aa91f232b47969ae232744e8f1a0066d36c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/LICENSE" @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2017-present, Yuxi (Evan) You + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..9e49d94686ef1a4e5c4e93a6ac521618f13cf0f6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/README.md" @@ -0,0 +1,38 @@ +# @vue/cli-ui + +### Local development + +Before starting a local cli-ui instance, +consider following the [contributing guide](https://github.com/vuejs/vue-cli/blob/dev/.github/CONTRIBUTING.md) +in order to download all required dependencies of vue-cli's packages. + +Just after, you should build once then serve `@vue/cli-ui-addon-webpack` by running: +```bash +cd ../cli-ui-addon-webpack +yarn build # just do once +yarn serve +``` + +Then you start the ui server (based on Apollo): + +``` +cd ../cli-ui +yarn run apollo +``` + +And then in another terminal, you should serve the ui web app: + +``` +yarn run serve +``` + +#### Testing + +For running E2E tests, you just need to run: + +``` +yarn run test:e2e +``` + +This will open a new [Cypress](https://www.cypress.io/) window. +You can now run all or specific integration tests. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/PluginApi.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/PluginApi.js" new file mode 100644 index 0000000000000000000000000000000000000000..5b94d435ab0e2377fb06f910c2c08177136345df --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/PluginApi.js" @@ -0,0 +1,716 @@ +const path = require('path') +// Connectors +const logs = require('../connectors/logs') +const sharedData = require('../connectors/shared-data') +const views = require('../connectors/views') +const suggestions = require('../connectors/suggestions') +const progress = require('../connectors/progress') +const app = require('../connectors/app') +// Utils +const ipc = require('../util/ipc') +const { notify } = require('../util/notification') +const { matchesPluginId } = require('@vue/cli-shared-utils') +const { log } = require('../util/logger') +// Validators +const { validateConfiguration } = require('./configuration') +const { validateDescribeTask, validateAddTask } = require('./task') +const { validateClientAddon } = require('./client-addon') +const { validateView, validateBadge } = require('./view') +const { validateNotify } = require('./notify') +const { validateSuggestion } = require('./suggestion') +const { validateProgress } = require('./progress') +const { validateWidget } = require('./widget') + +/** + * @typedef SetSharedDataOptions + * @prop {boolean} disk Don't keep this data in memory by writing it to disk + */ + +/** @typedef {import('../connectors/shared-data').SharedData} SharedData */ + +class PluginApi { + constructor ({ plugins, file, project, lightMode = false }, context) { + // Context + this.context = context + this.pluginId = null + this.project = project + this.plugins = plugins + this.cwd = file + this.lightMode = lightMode + // Hooks + this.hooks = { + projectOpen: [], + pluginReload: [], + configRead: [], + configWrite: [], + taskRun: [], + taskExit: [], + taskOpen: [], + viewOpen: [] + } + // Data + this.configurations = [] + this.describedTasks = [] + this.addedTasks = [] + this.clientAddons = [] + this.views = [] + this.actions = new Map() + this.ipcHandlers = [] + this.widgetDefs = [] + } + + /** + * Register an handler called when the project is open (only if this plugin is loaded). + * + * @param {function} cb Handler + */ + onProjectOpen (cb) { + if (this.lightMode) return + if (this.project) { + cb(this.project) + return + } + this.hooks.projectOpen.push(cb) + } + + /** + * Register an handler called when the plugin is reloaded. + * + * @param {function} cb Handler + */ + onPluginReload (cb) { + if (this.lightMode) return + this.hooks.pluginReload.push(cb) + } + + /** + * Register an handler called when a config is red. + * + * @param {function} cb Handler + */ + onConfigRead (cb) { + if (this.lightMode) return + this.hooks.configRead.push(cb) + } + + /** + * Register an handler called when a config is written. + * + * @param {function} cb Handler + */ + onConfigWrite (cb) { + if (this.lightMode) return + this.hooks.configWrite.push(cb) + } + + /** + * Register an handler called when a task is run. + * + * @param {function} cb Handler + */ + onTaskRun (cb) { + if (this.lightMode) return + this.hooks.taskRun.push(cb) + } + + /** + * Register an handler called when a task has exited. + * + * @param {function} cb Handler + */ + onTaskExit (cb) { + if (this.lightMode) return + this.hooks.taskExit.push(cb) + } + + /** + * Register an handler called when the user opens one task details. + * + * @param {function} cb Handler + */ + onTaskOpen (cb) { + if (this.lightMode) return + this.hooks.taskOpen.push(cb) + } + + /** + * Register an handler called when a view is open. + * + * @param {function} cb Handler + */ + onViewOpen (cb) { + if (this.lightMode) return + this.hooks.viewOpen.push(cb) + } + + /** + * Describe a project configuration (usually for config file like `.eslintrc.json`). + * + * @param {object} options Configuration description + */ + describeConfig (options) { + if (this.lightMode) return + try { + validateConfiguration(options) + this.configurations.push({ + ...options, + pluginId: this.pluginId + }) + } catch (e) { + logs.add({ + type: 'error', + tag: 'PluginApi', + message: `(${this.pluginId || 'unknown plugin'}) 'describeConfig' options are invalid\n${e.message}` + }, this.context) + console.error(new Error(`Invalid options: ${e.message}`)) + } + } + + /** + * Describe a project task with additional information. + * The tasks are generated from the scripts in the project `package.json`. + * + * @param {object} options Task description + */ + describeTask (options) { + try { + validateDescribeTask(options) + this.describedTasks.push({ + ...options, + pluginId: this.pluginId + }) + } catch (e) { + logs.add({ + type: 'error', + tag: 'PluginApi', + message: `(${this.pluginId || 'unknown plugin'}) 'describeTask' options are invalid\n${e.message}` + }, this.context) + console.error(new Error(`Invalid options: ${e.message}`)) + } + } + + /** + * Get the task description matching a script command. + * + * @param {string} command Npm script command from `package.json` + * @returns {object} Task description + */ + getDescribedTask (command) { + return this.describedTasks.find( + options => typeof options.match === 'function' ? options.match(command) : options.match.test(command) + ) + } + + /** + * Add a new task independently from the scripts. + * The task will only appear in the UI. + * + * @param {object} options Task description + */ + addTask (options) { + try { + validateAddTask(options) + this.addedTasks.push({ + ...options, + pluginId: this.pluginId + }) + } catch (e) { + logs.add({ + type: 'error', + tag: 'PluginApi', + message: `(${this.pluginId || 'unknown plugin'}) 'addTask' options are invalid\n${e.message}` + }, this.context) + console.error(new Error(`Invalid options: ${e.message}`)) + } + } + + /** + * Register a client addon (a JS bundle which will be loaded in the browser). + * Used to load components and add vue-router routes. + * + * @param {object} options Client addon options + * { + * id: string, + * url: string + * } + * or + * { + * id: string, + * path: string + * } + */ + addClientAddon (options) { + if (this.lightMode) return + try { + validateClientAddon(options) + if (options.url && options.path) { + throw new Error('\'url\' and \'path\' can\'t be defined at the same time.') + } + this.clientAddons.push({ + ...options, + pluginId: this.pluginId + }) + } catch (e) { + logs.add({ + type: 'error', + tag: 'PluginApi', + message: `(${this.pluginId || 'unknown plugin'}) 'addClientAddon' options are invalid\n${e.message}` + }, this.context) + console.error(new Error(`Invalid options: ${e.message}`)) + } + } + + /* Project view */ + + /** + * Add a new project view below the builtin 'plugins', 'config' and 'tasks' ones. + * + * @param {object} options ProjectView options + */ + addView (options) { + if (this.lightMode) return + try { + validateView(options) + this.views.push({ + ...options, + pluginId: this.pluginId + }) + } catch (e) { + logs.add({ + type: 'error', + tag: 'PluginApi', + message: `(${this.pluginId || 'unknown plugin'}) 'addView' options are invalid\n${e.message}` + }, this.context) + console.error(new Error(`Invalid options: ${e.message}`)) + } + } + + /** + * Add a badge to the project view button. + * If the badge already exists, add 1 to the counter. + * + * @param {string} viewId Project view id + * @param {object} options Badge options + */ + addViewBadge (viewId, options) { + if (this.lightMode) return + try { + validateBadge(options) + views.addBadge({ viewId, badge: options }, this.context) + } catch (e) { + logs.add({ + type: 'error', + tag: 'PluginApi', + message: `(${this.pluginId || 'unknown plugin'}) 'addViewBadge' options are invalid\n${e.message}` + }, this.context) + console.error(new Error(`Invalid options: ${e.message}`)) + } + } + + /** + * Remove 1 from the counter of a badge if it exists. + * If the badge counter reaches 0, it is removed from the button. + * + * @param {any} viewId + * @param {any} badgeId + * @memberof PluginApi + */ + removeViewBadge (viewId, badgeId) { + views.removeBadge({ viewId, badgeId }, this.context) + } + + /* IPC */ + + /** + * Add a listener to the IPC messages. + * + * @param {function} cb Callback with 'data' param + */ + ipcOn (cb) { + const handler = cb._handler = ({ data, emit }) => { + if (data._projectId) { + if (data._projectId === this.project.id) { + data = data._data + } else { + return + } + } + // eslint-disable-next-line node/no-callback-literal + cb({ data, emit }) + } + this.ipcHandlers.push(handler) + return ipc.on(handler) + } + + /** + * Remove a listener for IPC messages. + * + * @param {any} cb Callback to be removed + */ + ipcOff (cb) { + const handler = cb._handler + if (!handler) return + const index = this.ipcHandlers.indexOf(handler) + if (index !== -1) this.ipcHandlers.splice(index, 1) + ipc.off(handler) + } + + /** + * Send an IPC message to all connected IPC clients. + * + * @param {any} data Message data + */ + ipcSend (data) { + ipc.send(data) + } + + /** + * Get the local DB instance (lowdb) + * + * @readonly + */ + get db () { + return this.context.db + } + + /** + * Display a notification in the user OS + * @param {object} options Notification options + */ + notify (options) { + try { + validateNotify(options) + notify(options) + } catch (e) { + logs.add({ + type: 'error', + tag: 'PluginApi', + message: `(${this.pluginId || 'unknown plugin'}) 'notify' options are invalid\n${e.message}` + }, this.context) + console.error(new Error(`Invalid options: ${e.message}`)) + } + } + + /** + * Indicates if a specific plugin is used by the project + * @param {string} id Plugin id or short id + */ + hasPlugin (id) { + return this.plugins.some(p => matchesPluginId(id, p.id)) + } + + /** + * Display the progress screen. + * + * @param {object} options Progress options + */ + setProgress (options) { + if (this.lightMode) return + try { + validateProgress(options) + progress.set({ + ...options, + id: '__plugins__' + }, this.context) + } catch (e) { + logs.add({ + type: 'error', + tag: 'PluginApi', + message: `(${this.pluginId || 'unknown plugin'}) 'setProgress' options are invalid\n${e.message}` + }, this.context) + console.error(new Error(`Invalid options: ${e.message}`)) + } + } + + /** + * Remove the progress screen. + */ + removeProgress () { + progress.remove('__plugins__', this.context) + } + + /** + * Get current working directory. + */ + getCwd () { + return this.cwd + } + + /** + * Resolves a file relative to current working directory + * @param {string} file Path to file relative to project + */ + resolve (file) { + return path.resolve(this.cwd, file) + } + + /** + * Get currently open project + */ + getProject () { + return this.project + } + + /* Namespaced */ + + /** + * Retrieve a Shared data instance. + * + * @param {string} id Id of the Shared data + * @returns {SharedData} Shared data instance + */ + getSharedData (id) { + return sharedData.get({ id, projectId: this.project.id }, this.context) + } + + /** + * Set or update the value of a Shared data + * + * @param {string} id Id of the Shared data + * @param {any} value Value of the Shared data + * @param {SetSharedDataOptions} options + */ + async setSharedData (id, value, { disk = false } = {}) { + return sharedData.set({ id, projectId: this.project.id, value, disk }, this.context) + } + + /** + * Delete a shared data. + * + * @param {string} id Id of the Shared data + */ + async removeSharedData (id) { + return sharedData.remove({ id, projectId: this.project.id }, this.context) + } + + /** + * Watch for a value change of a shared data + * + * @param {string} id Id of the Shared data + * @param {function} handler Callback + */ + watchSharedData (id, handler) { + sharedData.watch({ id, projectId: this.project.id }, handler) + } + + /** + * Delete the watcher of a shared data. + * + * @param {string} id Id of the Shared data + * @param {function} handler Callback + */ + unwatchSharedData (id, handler) { + sharedData.unwatch({ id, projectId: this.project.id }, handler) + } + + /** + * Listener triggered when a Plugin action is called from a client addon component. + * + * @param {string} id Id of the action to listen + * @param {any} cb Callback (ex: (params) => {} ) + */ + onAction (id, cb) { + let list = this.actions.get(id) + if (!list) { + list = [] + this.actions.set(id, list) + } + list.push(cb) + } + + /** + * Call a Plugin action. This can also listened by client addon components. + * + * @param {string} id Id of the action + * @param {object} params Params object passed as 1st argument to callbacks + * @returns {Promise} + */ + callAction (id, params) { + const plugins = require('../connectors/plugins') + return plugins.callAction({ id, params }, this.context) + } + + /** + * Retrieve a value from the local DB + * + * @param {string} id Path to the item + * @returns Item value + */ + storageGet (id) { + return this.db.get(id).value() + } + + /** + * Store a value into the local DB + * + * @param {string} id Path to the item + * @param {any} value Value to be stored (must be serializable in JSON) + */ + storageSet (id, value) { + log('Storage set', id, value) + this.db.set(id, value).write() + } + + /** + * Add a suggestion for the user. + * + * @param {object} options Suggestion + */ + addSuggestion (options) { + if (this.lightMode) return + try { + validateSuggestion(options) + suggestions.add(options, this.context) + } catch (e) { + logs.add({ + type: 'error', + tag: 'PluginApi', + message: `(${this.pluginId || 'unknown plugin'}) 'addSuggestion' options are invalid\n${e.message}` + }, this.context) + console.error(new Error(`Invalid options: ${e.message}`)) + } + } + + /** + * Remove a suggestion + * + * @param {string} id Id of the suggestion + */ + removeSuggestion (id) { + suggestions.remove(id, this.context) + } + + /** + * Register a widget for project dashboard + * + * @param {object} def Widget definition + */ + registerWidget (def) { + if (this.lightMode) return + try { + validateWidget(def) + this.widgetDefs.push({ + ...def, + pluginId: this.pluginId + }) + } catch (e) { + logs.add({ + type: 'error', + tag: 'PluginApi', + message: `(${this.pluginId || 'unknown plugin'}) 'registerWidget' widget definition is invalid\n${e.message}` + }, this.context) + console.error(new Error(`Invalid definition: ${e.message}`)) + } + } + + /** + * Request a route to be displayed in the client + */ + requestRoute (route) { + app.requestRoute(route, this.context) + } + + /** + * Create a namespaced version of: + * - getSharedData + * - setSharedData + * - onAction + * - callAction + * + * @param {string} namespace Prefix to add to the id params + */ + namespace (namespace) { + return { + /** + * Retrieve a Shared data instance. + * + * @param {string} id Id of the Shared data + * @returns {SharedData} Shared data instance + */ + getSharedData: (id) => this.getSharedData(namespace + id), + /** + * Set or update the value of a Shared data + * + * @param {string} id Id of the Shared data + * @param {any} value Value of the Shared data + * @param {SetSharedDataOptions} options + */ + setSharedData: (id, value, options) => this.setSharedData(namespace + id, value, options), + /** + * Delete a shared data. + * + * @param {string} id Id of the Shared data + */ + removeSharedData: (id) => this.removeSharedData(namespace + id), + /** + * Watch for a value change of a shared data + * + * @param {string} id Id of the Shared data + * @param {function} handler Callback + */ + watchSharedData: (id, handler) => this.watchSharedData(namespace + id, handler), + /** + * Delete the watcher of a shared data. + * + * @param {string} id Id of the Shared data + * @param {function} handler Callback + */ + unwatchSharedData: (id, handler) => this.unwatchSharedData(namespace + id, handler), + /** + * Listener triggered when a Plugin action is called from a client addon component. + * + * @param {string} id Id of the action to listen + * @param {any} cb Callback (ex: (params) => {} ) + */ + onAction: (id, cb) => this.onAction(namespace + id, cb), + /** + * Call a Plugin action. This can also listened by client addon components. + * + * @param {string} id Id of the action + * @param {object} params Params object passed as 1st argument to callbacks + * @returns {Promise} + */ + callAction: (id, params) => this.callAction(namespace + id, params), + /** + * Retrieve a value from the local DB + * + * @param {string} id Path to the item + * @returns Item value + */ + storageGet: (id) => this.storageGet(namespace + id), + /** + * Store a value into the local DB + * + * @param {string} id Path to the item + * @param {any} value Value to be stored (must be serializable in JSON) + */ + storageSet: (id, value) => this.storageSet(namespace + id, value), + /** + * Add a suggestion for the user. + * + * @param {object} options Suggestion + */ + addSuggestion: (options) => { + options.id = namespace + options.id + return this.addSuggestion(options) + }, + /** + * Remove a suggestion + * + * @param {string} id Id of the suggestion + */ + removeSuggestion: (id) => this.removeSuggestion(namespace + id), + /** + * Register a widget for project dashboard + * + * @param {object} def Widget definition + */ + registerWidget: (def) => { + def.id = namespace + def.id + return this.registerWidget(def) + } + } + } +} + +module.exports = PluginApi diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/client-addon.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/client-addon.js" new file mode 100644 index 0000000000000000000000000000000000000000..431ceadf2af6f035edb647698e7d014514811af8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/client-addon.js" @@ -0,0 +1,11 @@ +const { createSchema, validateSync } = require('@vue/cli-shared-utils') + +const schema = createSchema(joi => ({ + id: joi.string().required(), + path: joi.string(), + url: joi.string() +})) + +exports.validateClientAddon = (options) => { + validateSync(options, schema) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/configuration.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/configuration.js" new file mode 100644 index 0000000000000000000000000000000000000000..d72f84a975db7a5f9c7a3641ee3056f00df0693c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/configuration.js" @@ -0,0 +1,21 @@ +const { createSchema, validateSync } = require('@vue/cli-shared-utils') + +const schema = createSchema(joi => ({ + id: joi.string().required(), + name: joi.string().required(), + description: joi.string(), + link: joi.string().uri(), + icon: joi.string(), + files: joi.object().pattern(/^/, joi.object({ + json: joi.array().items(joi.string()), + js: joi.array().items(joi.string()), + yaml: joi.array().items(joi.string()), + package: joi.string() + })), + onRead: joi.func().required(), + onWrite: joi.func().required() +})) + +exports.validateConfiguration = (options) => { + validateSync(options, schema) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/notify.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/notify.js" new file mode 100644 index 0000000000000000000000000000000000000000..2f5556802a2275425cd84d78aee7ef1941f9cf9f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/notify.js" @@ -0,0 +1,11 @@ +const { createSchema, validateSync } = require('@vue/cli-shared-utils') + +const schema = createSchema(joi => ({ + title: joi.string().required(), + message: joi.string().required(), + icon: joi.string() +})) + +exports.validateNotify = (options) => { + validateSync(options, schema) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/progress.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/progress.js" new file mode 100644 index 0000000000000000000000000000000000000000..806c3419d03df4328bb0a2d358645984e4347475 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/progress.js" @@ -0,0 +1,13 @@ +const { createSchema, validateSync } = require('@vue/cli-shared-utils') + +const schema = createSchema(joi => ({ + status: joi.string().required(), + error: joi.string(), + info: joi.string(), + progress: joi.number(), + args: joi.array() +})) + +exports.validateProgress = (options) => { + validateSync(options, schema) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/suggestion.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/suggestion.js" new file mode 100644 index 0000000000000000000000000000000000000000..2f4514ebaa4199653c9c2c12e0a3e89b0b8f0c9f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/suggestion.js" @@ -0,0 +1,17 @@ +const { createSchema, validateSync } = require('@vue/cli-shared-utils') + +const schema = createSchema(joi => ({ + id: joi.string().required(), + label: joi.string().required(), + type: joi.string().required(), + handler: joi.func(), + actionLink: joi.string(), + importance: joi.string(), + message: joi.string(), + link: joi.string(), + image: joi.string() +})) + +exports.validateSuggestion = (options) => { + validateSync(options, schema) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/task.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/task.js" new file mode 100644 index 0000000000000000000000000000000000000000..d1f9e395d50d0220e2486024ac4732f61a0d0a2e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/task.js" @@ -0,0 +1,37 @@ +const { createSchema, validateSync } = require('@vue/cli-shared-utils') + +const schema = joi => ({ + description: joi.string(), + link: joi.string().uri(), + icon: joi.string(), + prompts: joi.array(), + views: joi.array().items(joi.object({ + id: joi.string().required(), + label: joi.string().required(), + icon: joi.string(), + component: joi.string().required() + })), + defaultView: joi.string(), + onBeforeRun: joi.func(), + onRun: joi.func(), + onExit: joi.func() +}) + +const describeSchema = createSchema(joi => ({ + match: joi.alternatives().try(joi.object().instance(RegExp), joi.func()).required().description('Match a npm script command'), + ...schema(joi) +})) + +const addSchema = createSchema(joi => ({ + name: joi.string().required(), + command: joi.string().required(), + ...schema(joi) +})) + +exports.validateDescribeTask = (options) => { + validateSync(options, describeSchema) +} + +exports.validateAddTask = (options) => { + validateSync(options, addSchema) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/view.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/view.js" new file mode 100644 index 0000000000000000000000000000000000000000..188590991667d122c61cf77d8c2eab92afad599d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/view.js" @@ -0,0 +1,25 @@ +const { createSchema, validateSync } = require('@vue/cli-shared-utils') + +const viewSchema = createSchema(joi => ({ + id: joi.string().required(), + name: joi.string().required().description('route name (vue-router)'), + icon: joi.string(), + tooltip: joi.string().required(), + projectTypes: joi.array().items(joi.string()) +})) + +const badgeSchema = createSchema(joi => ({ + id: joi.string().required(), + type: joi.string(), + label: joi.string().required(), + priority: joi.number().integer(), + hidden: joi.boolean() +})) + +exports.validateView = (options) => { + validateSync(options, viewSchema) +} + +exports.validateBadge = (options) => { + validateSync(options, badgeSchema) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/widget.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/widget.js" new file mode 100644 index 0000000000000000000000000000000000000000..925b5b0b6a655d336c8eb4af41f3288a6fd93b71 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/api/widget.js" @@ -0,0 +1,38 @@ +const { createSchema, validateSync } = require('@vue/cli-shared-utils') + +const schema = createSchema(joi => ({ + id: joi.string().required(), + // General + title: joi.string().required(), + description: joi.string(), + longDescription: joi.string(), + icon: joi.string(), + screenshot: joi.string(), + link: joi.string(), + // Components + component: joi.string().required(), + detailsComponent: joi.string(), + // Maximum number of instances + maxCount: joi.number(), + // Size + minWidth: joi.number().required(), + minHeight: joi.number().required(), + maxWidth: joi.number().required(), + maxHeight: joi.number().required(), + defaultWidth: joi.number(), + defaultHeight: joi.number(), + // Config + defaultConfig: joi.func(), + needsUserConfig: joi.boolean(), + // UI + openDetailsButton: joi.boolean(), + // Hooks + onAdded: joi.func(), + onRemoved: joi.func(), + onConfigOpen: joi.func(), + onConfigChanged: joi.func() +})) + +exports.validateWidget = (options) => { + validateSync(options, schema) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/channels.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/channels.js" new file mode 100644 index 0000000000000000000000000000000000000000..be039e7523d09e5b037344742144ff9cfafb591b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/channels.js" @@ -0,0 +1,20 @@ +module.exports = { + CWD_CHANGED: 'cwd_changed', + PROGRESS_CHANGED: 'progress_changed', + PROGRESS_REMOVED: 'progress_removed', + CONSOLE_LOG_ADDED: 'console_log_added', + TASK_CHANGED: 'task_changed', + TASK_LOG_ADDED: 'task_log_added', + VIEW_ADDED: 'view_added', + VIEW_REMOVED: 'view_removed', + VIEW_CHANGED: 'view_changed', + CLIENT_ADDON_ADDED: 'client_addon_added', + SHARED_DATA_UPDATED: 'shared_data_updated', + PLUGIN_ACTION_CALLED: 'plugin_action_called', + PLUGIN_ACTION_RESOLVED: 'plugin_action_resolved', + LOCALE_ADDED: 'locale_added', + SUGGESTION_ADDED: 'suggestion_added', + SUGGESTION_REMOVED: 'suggestion_removed', + SUGGESTION_UPDATED: 'suggestion_updated', + ROUTE_REQUESTED: 'route_requested' +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/app.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/app.js" new file mode 100644 index 0000000000000000000000000000000000000000..a05e58afd0b8e9e374cb65f452f536245ca21ab3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/app.js" @@ -0,0 +1,9 @@ +const channels = require('../channels') + +function requestRoute (route, context) { + context.pubsub.publish(channels.ROUTE_REQUESTED, { routeRequested: route }) +} + +module.exports = { + requestRoute +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/client-addons.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/client-addons.js" new file mode 100644 index 0000000000000000000000000000000000000000..d1b150d4c080fc06d16a81be74e0d9869ae6b526 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/client-addons.js" @@ -0,0 +1,78 @@ +const path = require('path') +// Subs +const channels = require('../channels') +// Utils +const { resolveModuleRoot } = require('../util/resolve-path') + +const addons = [] + +let baseUrl = process.env.VUE_APP_CLI_UI_URL +if (typeof baseUrl === 'undefined') { + baseUrl = `http://localhost:${process.env.VUE_APP_GRAPHQL_PORT}` +} else { + baseUrl = baseUrl.replace(/ws:\/\/([a-z0-9_-]+:\d+).*/i, 'http://$1') +} + +function list (context) { + return addons +} + +function add (options, context) { + if (findOne(options.id)) remove(options.id, context) + + addons.push(options) + context.pubsub.publish(channels.CLIENT_ADDON_ADDED, { + clientAddonAdded: options + }) +} + +function findOne (id, context = null) { + return addons.find( + addon => addon.id === id + ) +} + +function remove (id, context) { + const index = addons.findIndex( + addon => addon.id === id + ) + if (index !== -1) addons.splice(index, 1) +} + +function clear (context) { + for (const addon of addons) { + remove(addon.id, context) + } +} + +function getUrl (addon, context) { + return addon.url || `${baseUrl}/_addon/${addon.id}/index.js` +} + +function serve (req, res) { + const { id, 0: file } = req.params + const addon = findOne(decodeURIComponent(id)) + if (addon && addon.path) { + const resolvedPath = require.resolve(addon.path) + const basePath = resolveModuleRoot(resolvedPath) + if (basePath) { + res.sendFile(path.join(basePath, file), { maxAge: 0 }) + } else { + res.status(404) + res.send(`File not found (resolved: ${resolvedPath}`) + } + } else { + res.status(404) + res.send('Addon not found in loaded addons. Try opening a vue-cli project first?') + } +} + +module.exports = { + list, + add, + remove, + findOne, + getUrl, + serve, + clear +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/configurations.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/configurations.js" new file mode 100644 index 0000000000000000000000000000000000000000..7b15f2cb0c9ba74e800d89d118233f0b78f228c5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/configurations.js" @@ -0,0 +1,289 @@ +const fs = require('fs-extra') +const path = require('path') +const yaml = require('js-yaml') +const clone = require('clone') +const stringifyJS = require('javascript-stringify').stringify +// Connectors +const cwd = require('./cwd') +const plugins = require('./plugins') +const folders = require('./folders') +const prompts = require('./prompts') +// Utils +const { get, set, unset, loadModule } = require('@vue/cli-shared-utils') +const { log } = require('../util/logger') +const extendJSConfig = require('@vue/cli/lib/util/extendJSConfig') + +const fileTypes = ['js', 'json', 'yaml'] +let current = {} + +function list (context) { + return plugins.getApi(cwd.get()).configurations +} + +function findOne (id, context) { + return list(context).find( + c => c.id === id + ) +} + +function findFile (fileDescriptor, context) { + if (fileDescriptor.package) { + const pkg = folders.readPackage(cwd.get(), context) + const data = pkg[fileDescriptor.package] + if (data) { + return { type: 'package', path: path.join(cwd.get(), 'package.json') } + } + } + + for (const type of fileTypes) { + const files = fileDescriptor[type] + if (files) { + for (const file of files) { + const resolvedFile = path.resolve(cwd.get(), file) + if (fs.existsSync(resolvedFile)) { + return { type, path: resolvedFile } + } + } + } + } +} + +function getDefaultFile (fileDescriptor, context) { + const keys = Object.keys(fileDescriptor) + if (keys.length) { + for (const key of keys) { + if (key !== 'package') { + const file = fileDescriptor[key][0] + return { + type: key, + path: path.resolve(cwd.get(), file) + } + } + } + } +} + +function readFile (config, fileDescriptor, context) { + const file = findFile(fileDescriptor, context) + let fileData = {} + if (file) { + if (file.type === 'package') { + const pkg = folders.readPackage(cwd.get(), context) + fileData = pkg[fileDescriptor.package] + } else if (file.type === 'js') { + fileData = loadModule(file.path, cwd.get(), true) + } else { + const rawContent = fs.readFileSync(file.path, { encoding: 'utf8' }) + if (file.type === 'json') { + fileData = JSON.parse(rawContent) + } else if (file.type === 'yaml') { + fileData = yaml.load(rawContent) + } + } + } + return { + file, + fileData + } +} + +function readData (config, context) { + const data = {} + config.foundFiles = {} + if (!config.files) return data + for (const fileId in config.files) { + const fileDescriptor = config.files[fileId] + const { file, fileData } = readFile(config, fileDescriptor, context) + config.foundFiles[fileId] = file + data[fileId] = fileData + } + return data +} + +function writeFile (config, fileId, data, changedFields, context) { + const fileDescriptor = config.files[fileId] + let file = findFile(fileDescriptor, context) + + if (!file) { + file = getDefaultFile(fileDescriptor, context) + } + + if (!file) return + + log('Config write', config.id, data, changedFields, file.path) + fs.ensureFileSync(file.path) + let rawContent + if (file.type === 'package') { + const pkg = folders.readPackage(cwd.get(), context) + pkg[fileDescriptor.package] = data + rawContent = JSON.stringify(pkg, null, 2) + } else { + if (file.type === 'json') { + rawContent = JSON.stringify(data, null, 2) + } else if (file.type === 'yaml') { + rawContent = yaml.dump(data) + } else if (file.type === 'js') { + const source = fs.readFileSync(file.path, { encoding: 'utf8' }) + if (!source.trim()) { + rawContent = `module.exports = ${stringifyJS(data, null, 2)}` + } else { + const changedData = changedFields.reduce((obj, field) => { + obj[field] = data[field] + return obj + }, {}) + rawContent = extendJSConfig(changedData, source) + } + } + } + fs.writeFileSync(file.path, rawContent, { encoding: 'utf8' }) +} + +function writeData ({ config, data, changedFields }, context) { + for (const fileId in data) { + writeFile(config, fileId, data[fileId], changedFields[fileId], context) + } +} + +async function getPromptTabs (id, context) { + const config = findOne(id, context) + if (config) { + const data = readData(config, context) + log('Config read', config.id, data) + current = { + config, + data + } + + // API + const onReadData = await config.onRead({ + cwd: cwd.get(), + data + }) + + let tabs = onReadData.tabs + if (!tabs) { + tabs = [ + { + id: '__default', + label: 'Default', + prompts: onReadData.prompts + } + ] + } + await prompts.reset() + for (const tab of tabs) { + tab.prompts = tab.prompts.map(data => prompts.add({ + ...data, + tabId: tab.id + })) + } + if (onReadData.answers) { + await prompts.setAnswers(onReadData.answers) + } + await prompts.start() + + plugins.callHook({ + id: 'configRead', + args: [{ + config, + data, + onReadData, + tabs, + cwd: cwd.get() + }], + file: cwd.get() + }, context) + + return tabs + } + return [] +} + +async function save (id, context) { + const config = findOne(id, context) + if (config) { + if (current.config === config) { + const answers = prompts.getAnswers() + const data = clone(current.data) + const changedFields = {} + const getChangedFields = fileId => changedFields[fileId] || (changedFields[fileId] = []) + + // API + await config.onWrite({ + prompts: prompts.list(), + answers, + data: current.data, + files: config.foundFiles, + cwd: cwd.get(), + api: { + assignData: (fileId, newData) => { + getChangedFields(fileId).push(...Object.keys(newData)) + Object.assign(data[fileId], newData) + }, + setData: (fileId, newData) => { + Object.keys(newData).forEach(key => { + let field = key + const dotIndex = key.indexOf('.') + if (dotIndex !== -1) { + field = key.substr(0, dotIndex) + } + getChangedFields(fileId).push(field) + + const value = newData[key] + if (typeof value === 'undefined') { + unset(data[fileId], key) + } else { + set(data[fileId], key, value) + } + }) + }, + getAnswer: async (id, mapper) => { + const prompt = prompts.findOne(id) + if (prompt) { + const defaultValue = await prompts.getDefaultValue(prompt) + if (defaultValue !== prompt.rawValue) { + let value = get(answers, prompt.id) + if (mapper) { + value = mapper(value) + } + return value + } + } + } + } + }) + + writeData({ config, data, changedFields }, context) + + plugins.callHook({ + id: 'configWrite', + args: [{ + config, + data, + changedFields, + cwd: cwd.get() + }], + file: cwd.get() + }, context) + + current = {} + } + } + return config +} + +function cancel (id, context) { + const config = findOne(id, context) + if (config) { + current = {} + } + return config +} + +module.exports = { + list, + findOne, + getPromptTabs, + save, + cancel +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/cwd.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/cwd.js" new file mode 100644 index 0000000000000000000000000000000000000000..78eaea7316714b86b6ab76352c9d9a31b3c09d94 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/cwd.js" @@ -0,0 +1,28 @@ +const channels = require('../channels') +const fs = require('fs') +const path = require('path') + +let cwd = process.cwd() + +function normalize (value) { + if (value.length === 1) return value + const lastChar = value.charAt(value.length - 1) + if (lastChar === path.sep) { + value = value.substr(0, value.length - 1) + } + return value +} + +module.exports = { + get: () => cwd, + set: (value, context) => { + value = normalize(value) + if (!fs.existsSync(value)) return + cwd = value + process.env.VUE_CLI_CONTEXT = value + context.pubsub.publish(channels.CWD_CHANGED, { cwdChanged: value }) + try { + process.chdir(value) + } catch (err) {} + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/dependencies.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/dependencies.js" new file mode 100644 index 0000000000000000000000000000000000000000..40b8b6126da2c5edc426bf31d6dfc037374ec62c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/dependencies.js" @@ -0,0 +1,338 @@ +const fs = require('fs') +const path = require('path') +const LRU = require('lru-cache') +const { chalk, semver } = require('@vue/cli-shared-utils') +// Connectors +const cwd = require('./cwd') +const folders = require('./folders') +const progress = require('./progress') +const logs = require('./logs') +// Context +const getContext = require('../context') +// Utils +const { isPlugin, resolveModule } = require('@vue/cli-shared-utils') +const { progress: installProgress } = require('@vue/cli/lib/util/executeCommand') +const PackageManager = require('@vue/cli/lib/util/ProjectPackageManager') +const { resolveModuleRoot } = require('../util/resolve-path') +const { notify } = require('../util/notification') +const { log } = require('../util/logger') + +const PROGRESS_ID = 'dependency-installation' +const CLI_SERVICE = '@vue/cli-service' + +// Caches +const metadataCache = new LRU({ + max: 200, + maxAge: 1000 * 60 * 30 // 30 min. +}) + +// Local +let dependencies + +function list (file, context) { + const pkg = folders.readPackage(file, context) + dependencies = [] + dependencies = dependencies.concat( + findDependencies(pkg.devDependencies || {}, 'devDependencies', file, context) + ) + dependencies = dependencies.concat( + findDependencies(pkg.dependencies || {}, 'dependencies', file, context) + ) + return dependencies +} + +function findOne (id, context) { + return dependencies.find( + p => p.id === id + ) +} + +function findDependencies (deps, type, file, context) { + return Object.keys(deps).filter( + id => !isPlugin(id) && id !== CLI_SERVICE + ).map( + id => ({ + id, + versionRange: deps[id], + installed: isInstalled({ id, file }), + website: getLink({ id, file }, context), + type, + baseFir: file + }) + ) +} + +function getPath ({ id, file = cwd.get() }) { + const filePath = resolveModule(path.join(id, 'package.json'), file) + if (!filePath) return + return resolveModuleRoot(filePath, id) +} + +function isInstalled ({ id, file = cwd.get() }) { + const resolvedPath = getPath({ id, file }) + return resolvedPath && fs.existsSync(resolvedPath) +} + +function readPackage ({ id, file }, context) { + try { + return folders.readPackage(getPath({ id, file }), context) + } catch (e) { + console.log(e) + } + return {} +} + +function invalidatePackage ({ id, file }, context) { + return folders.invalidatePackage(getPath({ id, file }), context) +} + +async function getMetadata (id, context) { + let metadata = metadataCache.get(id) + if (metadata) { + return metadata + } + + try { + metadata = await (new PackageManager({ context: cwd.get() })).getMetadata(id) + } catch (e) { + // No connection? + } + + if (metadata) { + metadataCache.set(id, metadata) + return metadata + } else { + log('Dependencies', chalk.yellow('Can\'t load metadata'), id) + } +} + +async function getVersion ({ id, installed, versionRange, baseDir }, context) { + let current + + // Is local dep + const localPath = getLocalPath(id, context) + + // Read module package.json + if (installed) { + const pkg = readPackage({ id, file: baseDir }, context) + current = pkg.version + } else { + current = null + } + + // Metadata + let latest, wanted + const metadata = await getMetadata(id, context) + if (metadata) { + latest = metadata['dist-tags'].latest + + const versions = Array.isArray(metadata.versions) ? metadata.versions : Object.keys(metadata.versions) + wanted = semver.maxSatisfying(versions, versionRange) + } + + if (!latest) latest = current + if (!wanted) wanted = current + + return { + current, + latest, + wanted, + range: versionRange, + localPath + } +} + +function getLocalPath (id, context) { + const projects = require('./projects') + const projectPkg = folders.readPackage(projects.getCurrent(context).path, context, true) + const deps = Object.assign( + {}, + projectPkg.dependencies || {}, + projectPkg.devDependencies || {} + ) + const range = deps[id] + if (range && range.match(/^file:/)) { + const localPath = range.substr('file:'.length) + return path.resolve(cwd.get(), localPath) + } + return null +} + +async function getDescription ({ id }, context) { + const metadata = await getMetadata(id, context) + if (metadata) { + return metadata.description + } + return null +} + +function getLink ({ id, file }, context) { + const pkg = readPackage({ id, file }, context) + return pkg.homepage || + (pkg.repository && pkg.repository.url) || + `https://www.npmjs.com/package/${id.replace('/', '%2F')}` +} + +function install ({ id, type, range }, context) { + return progress.wrap(PROGRESS_ID, context, async setProgress => { + setProgress({ + status: 'dependency-install', + args: [id] + }) + + let arg + if (range) { + arg = `${id}@${range}` + } else { + arg = id + } + + const pm = new PackageManager({ context: cwd.get() }) + await pm.add(arg, { + tilde: !range && isPlugin(id), + dev: type === 'devDependencies' + }) + + logs.add({ + message: `Dependency ${id} installed`, + type: 'info' + }, context) + + notify({ + title: 'Dependency installed', + message: `Dependency ${id} successfully installed`, + icon: 'done' + }) + + list(cwd.get(), context) + + return findOne(id, context) + }) +} + +function uninstall ({ id }, context) { + return progress.wrap(PROGRESS_ID, context, async setProgress => { + setProgress({ + status: 'dependency-uninstall', + args: [id] + }) + + const dep = findOne(id, context) + + const pm = new PackageManager({ context: cwd.get() }) + await pm.remove(id) + + logs.add({ + message: `Dependency ${id} uninstalled`, + type: 'info' + }, context) + + notify({ + title: 'Dependency uninstalled', + message: `Dependency ${id} successfully uninstalled`, + icon: 'done' + }) + + return dep + }) +} + +function update ({ id }, context) { + return progress.wrap(PROGRESS_ID, context, async setProgress => { + setProgress({ + status: 'dependency-update', + args: [id] + }) + + const dep = findOne(id, context) + const { current, wanted } = await getVersion(dep, context) + + const pm = new PackageManager({ context: cwd.get() }) + await pm.upgrade(id) + + logs.add({ + message: `Dependency ${id} updated from ${current} to ${wanted}`, + type: 'info' + }, context) + + notify({ + title: 'Dependency updated', + message: `Dependency ${id} was successfully updated`, + icon: 'done' + }) + + invalidatePackage({ id }, context) + + return findOne(id) + }) +} + +function updateAll (context) { + return progress.wrap(PROGRESS_ID, context, async setProgress => { + const deps = list(cwd.get(), context) + const updatedDeps = [] + for (const dep of deps) { + const version = await getVersion(dep, context) + if (version.current !== version.wanted) { + updatedDeps.push(dep) + invalidatePackage({ id: dep.id }, context) + } + } + + if (!updatedDeps.length) { + notify({ + title: 'No updates available', + message: 'No dependency to update in the version ranges declared in package.json', + icon: 'done' + }) + return [] + } + + setProgress({ + status: 'dependencies-update', + args: [updatedDeps.length] + }) + + const pm = new PackageManager({ context: cwd.get() }) + await pm.upgrade(updatedDeps.map(p => p.id).join(' ')) + + notify({ + title: 'Dependencies updated', + message: `${updatedDeps.length} dependencies were successfully updated`, + icon: 'done' + }) + + return updatedDeps + }) +} + +function setup (context) { + // Package installation progress events + installProgress.on('progress', value => { + if (progress.get(PROGRESS_ID)) { + progress.set({ id: PROGRESS_ID, progress: value }, context) + } + }) + installProgress.on('log', message => { + if (progress.get(PROGRESS_ID)) { + progress.set({ id: PROGRESS_ID, info: message }, context) + } + }) +} + +setup(getContext()) + +module.exports = { + list, + findOne, + getPath, + getMetadata, + getLink, + getDescription, + getVersion, + install, + uninstall, + update, + updateAll, + invalidatePackage +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/files.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/files.js" new file mode 100644 index 0000000000000000000000000000000000000000..f450fd40930306d091a4edd57410342ee6dcfd0f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/files.js" @@ -0,0 +1,31 @@ +const { launch } = require('@vue/cli-shared-utils') +const path = require('path') +// Connectors +const cwd = require('./cwd') +const git = require('./git') +const logs = require('./logs') + +async function openInEditor (input, context) { + let query + if (input.gitPath) { + query = await git.resolveFile(input.file, context) + } else { + query = path.resolve(cwd.get(), input.file) + } + if (input.line) { + query += `:${input.line}` + if (input.column) { + query += `:${input.column}` + } + } + logs.add({ + message: `Opening file '${query}' in code editor...`, + type: 'info' + }, context) + launch(query) + return true +} + +module.exports = { + openInEditor +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/folders.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/folders.js" new file mode 100644 index 0000000000000000000000000000000000000000..3349c015c8509700ac10d27def5e376938d26dac --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/folders.js" @@ -0,0 +1,213 @@ +const path = require('path') +const fs = require('fs-extra') +const LRU = require('lru-cache') +const winattr = require('@akryum/winattr') + +const hiddenPrefix = '.' +const isPlatformWindows = process.platform.indexOf('win') === 0 + +const pkgCache = new LRU({ + max: 500, + maxAge: 1000 * 5 +}) + +const cwd = require('./cwd') + +function isDirectory (file) { + file = file.replace(/\\/g, path.sep) + try { + return fs.stat(file).then((x) => x.isDirectory()) + } catch (e) { + if (process.env.VUE_APP_CLI_UI_DEBUG) console.warn(e.message) + } + return false +} + +async function list (base, context) { + let dir = base + if (isPlatformWindows) { + if (base.match(/^([A-Z]{1}:)$/)) { + dir = path.join(base, '\\') + } + } + const files = await fs.readdir(dir, 'utf8') + + const f = await Promise.all( + files.map(async (file) => { + const folderPath = path.join(base, file) + + const [directory, hidden] = await Promise.all([ + isDirectory(folderPath), + isHidden(folderPath) + ]) + if (!directory) { + return null + } + return { + path: folderPath, + name: file, + hidden + } + }) + ) + return f.filter((x) => !!x) +} + +async function isHiddenWindows (file) { + const windowsFile = file.replace(/\\/g, '\\\\') + return new Promise((resolve, reject) => { + winattr.get(windowsFile, (file, error) => { + if (error) { + return reject(error) + } + resolve(file) + }) + }).then((x) => x.hidden) +} + +async function isHidden (file) { + try { + const prefixed = path.basename(file).charAt(0) === hiddenPrefix + const result = { + unix: prefixed, + windows: false + } + + if (isPlatformWindows) { + result.windows = await isHiddenWindows(file) + } + + return ( + (!isPlatformWindows && result.unix) || + (isPlatformWindows && result.windows) + ) + } catch (e) { + if (process.env.VUE_APP_CLI_UI_DEBUG) { + console.log('file:', file) + console.error(e) + } + } +} + +function generateFolder (file, context) { + return { + name: path.basename(file), + path: file + } +} + +function getCurrent (args, context) { + const base = cwd.get() + return generateFolder(base, context) +} + +function open (file, context) { + cwd.set(file, context) + return generateFolder(cwd.get(), context) +} + +function openParent (file, context) { + const newFile = path.dirname(file) + cwd.set(newFile, context) + return generateFolder(cwd.get(), context) +} + +function isPackage (file, context) { + try { + return fs.existsSync(path.join(file, 'package.json')) + } catch (e) { + console.warn(e.message) + } + return false +} + +function readPackage (file, context, force = false) { + if (!force) { + const cachedValue = pkgCache.get(file) + if (cachedValue) { + return cachedValue + } + } + const pkgFile = path.join(file, 'package.json') + if (fs.existsSync(pkgFile)) { + const pkg = fs.readJsonSync(pkgFile) + pkgCache.set(file, pkg) + return pkg + } +} + +function writePackage ({ file, data }, context) { + fs.outputJsonSync(path.join(file, 'package.json'), data, { + spaces: 2 + }) + invalidatePackage(file, context) + return true +} + +function invalidatePackage (file, context) { + pkgCache.del(file) + return true +} + +function isVueProject (file, context) { + if (!isPackage(file)) return false + + try { + const pkg = readPackage(file, context) + return Object.keys(pkg.devDependencies || {}).includes('@vue/cli-service') + } catch (e) { + if (process.env.VUE_APP_CLI_UI_DEBUG) { + console.log(e) + } + } + return false +} + +function listFavorite (context) { + return context.db + .get('foldersFavorite') + .value() + .map((file) => generateFolder(file.id, context)) +} + +function isFavorite (file, context) { + return !!context.db.get('foldersFavorite').find({ id: file }).size().value() +} + +function setFavorite ({ file, favorite }, context) { + const collection = context.db.get('foldersFavorite') + if (favorite) { + collection.push({ id: file }).write() + } else { + collection.remove({ id: file }).write() + } + return generateFolder(file, context) +} + +async function deleteFolder (file) { + await fs.remove(file) +} + +function createFolder (name, context) { + const file = path.join(cwd.get(), name) + fs.mkdirpSync(file) + return generateFolder(file, context) +} + +module.exports = { + isDirectory, + getCurrent, + list, + open, + openParent, + isPackage, + readPackage, + writePackage, + invalidatePackage, + isVueProject, + isFavorite, + listFavorite, + setFavorite, + delete: deleteFolder, + create: createFolder +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/git.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/git.js" new file mode 100644 index 0000000000000000000000000000000000000000..949648a8daf031eb99d691b5413bf9cfe0aa5ac8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/git.js" @@ -0,0 +1,122 @@ +const path = require('path') +const fs = require('fs-extra') +const parseDiff = require('../util/parse-diff') +// Connectors +const cwd = require('./cwd') +// Utils +const { execa, hasProjectGit } = require('@vue/cli-shared-utils') + +async function getNewFiles (context) { + if (!hasProjectGit(cwd.get())) return [] + + const { stdout } = await execa('git', [ + 'ls-files', + '-o', + '--exclude-standard', + '--full-name' + ], { + cwd: cwd.get() + }) + if (stdout.trim()) { + return stdout.split(/\r?\n/g) + } + return [] +} + +async function getDiffs (context) { + if (!hasProjectGit(cwd.get())) return [] + + const { highlightCode } = require('../util/highlight') + + const newFiles = await getNewFiles(context) + await execa('git', ['add', '-N', '*'], { + cwd: cwd.get() + }) + const { stdout } = await execa('git', ['diff'], { + cwd: cwd.get() + }) + await reset(context) + const list = parseDiff(stdout) + for (const n in list) { + const fileDiff = list[n] + const isNew = newFiles.includes(fileDiff.to) + let fromContent + if (!isNew) { + const result = await execa('git', ['show', `HEAD:${fileDiff.from}`], { + cwd: cwd.get() + }) + fromContent = result.stdout + } + const highlightedContentFrom = fromContent && highlightCode(fileDiff.from, fromContent).split('\n') + const highlightedContentTo = highlightCode(fileDiff.to, fs.readFileSync(path.resolve(cwd.get(), fileDiff.to), { encoding: 'utf8' })).split('\n') + for (const chunk of fileDiff.chunks) { + for (const change of chunk.changes) { + const firstChar = change.content.charAt(0) + let highlightedCode + if (change.normal) { + highlightedCode = highlightedContentFrom[change.ln1 - 1] + } else if (change.type === 'del') { + highlightedCode = highlightedContentFrom[change.ln - 1] + } else if (change.type === 'add') { + highlightedCode = highlightedContentTo[change.ln - 1] + } + if (highlightedCode) { + change.content = firstChar + highlightedCode + } + } + } + list[n] = { + id: fileDiff.index.join(' '), + ...fileDiff, + new: isNew + } + } + + return list +} + +async function commit (message, context) { + if (!hasProjectGit(cwd.get())) return false + + await execa('git', ['add', '*'], { + cwd: cwd.get() + }) + await execa('git', ['commit', '-m', message.replace(/"/, '\\"')], { + cwd: cwd.get() + }) + return true +} + +async function reset (context) { + if (!hasProjectGit(cwd.get())) return false + + await execa('git', ['reset'], { + cwd: cwd.get() + }) + return true +} + +async function getRoot (context) { + if (!hasProjectGit(cwd.get())) return cwd.get() + + const { stdout } = await execa('git', [ + 'rev-parse', + '--show-toplevel' + ], { + cwd: cwd.get() + }) + return stdout +} + +async function resolveFile (file, context) { + const root = await getRoot(context) + return path.resolve(root, file) +} + +module.exports = { + getDiffs, + commit, + reset, + getRoot, + resolveFile +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/locales.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/locales.js" new file mode 100644 index 0000000000000000000000000000000000000000..da8beb206e76e3bdd22a0109bd0c04bdd133f5cb --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/locales.js" @@ -0,0 +1,69 @@ +const path = require('path') +const fs = require('fs-extra') +const globby = require('globby') +const deepmerge = require('deepmerge') +// Subs +const channels = require('../channels') +// Context +const getContext = require('../context') +// Utils +const { log } = require('../util/logger') + +let locales +const watchedTrees = new Map() + +function list (context) { + return locales +} + +function add (locale, context) { + const existing = locales.find(l => l.lang === locale.lang) + if (existing) { + existing.strings = deepmerge(existing.strings, locale.strings) + } else { + locales.push(locale) + } + context.pubsub.publish(channels.LOCALE_ADDED, { + localeAdded: locale + }) +} + +function reset (context) { + locales = [] + // Load builtin locales + const folder = path.resolve(__dirname, '../../') + loadFolder(folder, context) +} + +function _loadFolder (root, context) { + const paths = globby.sync(['./locales/*.json'], { cwd: root, absolute: true }) + paths.forEach(file => { + const basename = path.basename(file) + const lang = basename.substr(0, basename.indexOf('.')) + const strings = fs.readJsonSync(file) + add({ lang, strings }, context) + }) +} + +function loadFolder (root, context) { + const folder = path.join(root, './locales') + if (process.env.VUE_APP_CLI_UI_DEV && !watchedTrees.get(root) && fs.existsSync(folder)) { + watchedTrees.set(root, true) + const chokidar = require('chokidar') + chokidar.watch(folder).on('all', () => { + _loadFolder(root, context) + log('Locales reloaded', root) + }) + } else { + _loadFolder(root, context) + } +} + +reset(getContext()) + +module.exports = { + list, + add, + reset, + loadFolder +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/logs.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/logs.js" new file mode 100644 index 0000000000000000000000000000000000000000..2c5b37fb18cad5f3211c610be0d49a2c42affc7a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/logs.js" @@ -0,0 +1,70 @@ +/** @typedef {'warn' | 'error' | 'info' | 'done'} LogType */ + +/** + * @typedef Log + * @prop {string} id + * @prop {string} date + * @prop {LogType} type + * @prop {string} tag + * @prop {string} message + */ + +const shortId = require('shortid') +const { events } = require('@vue/cli-shared-utils/lib/logger') +const { generateTitle } = require('@vue/cli/lib/util/clearConsole') +// Subs +const channels = require('../channels') +// Context +const getContext = require('../context') + +/** @type {Log []} */ +let logs = [] + +/** + * @param {Log} log + * @param {any} context + */ +exports.add = function (log, context) { + /** @type {Log} */ + const item = { + id: shortId.generate(), + date: new Date().toISOString(), + tag: null, + ...log + } + logs.push(item) + context.pubsub.publish(channels.CONSOLE_LOG_ADDED, { + consoleLogAdded: item + }) + return item +} + +exports.list = function (context) { + return logs +} + +exports.last = function (context) { + if (logs.length) { + return logs[logs.length - 1] + } + return null +} + +exports.clear = function (context) { + logs = [] + return logs +} + +// Init +{ + const context = getContext() + events.on('log', log => { + exports.add(log, context) + }) + + exports.add({ + type: 'info', + tag: null, + message: generateTitle(true) + }, context) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/plugins.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/plugins.js" new file mode 100644 index 0000000000000000000000000000000000000000..d3e74cde1a6f795bffb2c4ba5d1ecddc327da8fe --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/plugins.js" @@ -0,0 +1,683 @@ +const path = require('path') +const fs = require('fs-extra') +const LRU = require('lru-cache') +const { chalk } = require('@vue/cli-shared-utils') +// Context +const getContext = require('../context') +// Subs +const channels = require('../channels') +// Connectors +const cwd = require('./cwd') +const folders = require('./folders') +const prompts = require('./prompts') +const progress = require('./progress') +const logs = require('./logs') +const clientAddons = require('./client-addons') +const views = require('./views') +const locales = require('./locales') +const sharedData = require('./shared-data') +const suggestions = require('./suggestions') +const dependencies = require('./dependencies') +// Api +const PluginApi = require('../api/PluginApi') +// Utils +const { + isPlugin, + isOfficialPlugin, + getPluginLink, + resolveModule, + loadModule, + clearModule, + execa +} = require('@vue/cli-shared-utils') +const { progress: installProgress } = require('@vue/cli/lib/util/executeCommand') +const PackageManager = require('@vue/cli/lib/util/ProjectPackageManager') + +const ipc = require('../util/ipc') +const { log } = require('../util/logger') +const { notify } = require('../util/notification') + +const PROGRESS_ID = 'plugin-installation' +const CLI_SERVICE = '@vue/cli-service' + +// Caches +const logoCache = new LRU({ + max: 50 +}) + +// Local +let currentPluginId +let eventsInstalled = false +let installationStep +const pluginsStore = new Map() +const pluginApiInstances = new Map() +const pkgStore = new Map() + +async function list (file, context, { resetApi = true, lightApi = false, autoLoadApi = true } = {}) { + let pkg = folders.readPackage(file, context) + let pkgContext = cwd.get() + // Custom package.json location + if (pkg.vuePlugins && pkg.vuePlugins.resolveFrom) { + pkgContext = path.resolve(cwd.get(), pkg.vuePlugins.resolveFrom) + pkg = folders.readPackage(pkgContext, context) + } + pkgStore.set(file, { pkgContext, pkg }) + + let plugins = [] + plugins = plugins.concat(findPlugins(pkg.devDependencies || {}, file)) + plugins = plugins.concat(findPlugins(pkg.dependencies || {}, file)) + + // Put cli service at the top + const index = plugins.findIndex(p => p.id === CLI_SERVICE) + if (index !== -1) { + const service = plugins[index] + plugins.splice(index, 1) + plugins.unshift(service) + } + + pluginsStore.set(file, plugins) + + log('Plugins found:', plugins.length, chalk.grey(file)) + + if (resetApi || (autoLoadApi && !pluginApiInstances.has(file))) { + await resetPluginApi({ file, lightApi }, context) + } + return plugins +} + +function findOne ({ id, file }, context) { + const plugins = getPlugins(file) + const plugin = plugins.find( + p => p.id === id + ) + if (!plugin) log('Plugin Not found', id, chalk.grey(file)) + return plugin +} + +function findPlugins (deps, file) { + return Object.keys(deps).filter( + id => isPlugin(id) || id === CLI_SERVICE + ).map( + id => ({ + id, + versionRange: deps[id], + official: isOfficialPlugin(id) || id === CLI_SERVICE, + installed: fs.existsSync(dependencies.getPath({ id, file })), + website: getLink(id), + baseDir: file + }) + ) +} + +function getLink (id) { + if (id === CLI_SERVICE) return 'https://cli.vuejs.org/' + return getPluginLink(id) +} + +function getPlugins (file) { + const plugins = pluginsStore.get(file) + if (!plugins) return [] + return plugins +} + +function resetPluginApi ({ file, lightApi }, context) { + return new Promise((resolve, reject) => { + log('Plugin API reloading...', chalk.grey(file)) + + const widgets = require('./widgets') + + let pluginApi = pluginApiInstances.get(file) + let projectId + + // Clean up + if (pluginApi) { + projectId = pluginApi.project.id + pluginApi.views.forEach(r => views.remove(r.id, context)) + pluginApi.ipcHandlers.forEach(fn => ipc.off(fn)) + } + if (!lightApi) { + if (projectId) sharedData.unWatchAll({ projectId }, context) + clientAddons.clear(context) + suggestions.clear(context) + widgets.reset(context) + } + + // Cyclic dependency with projects connector + setTimeout(async () => { + const projects = require('./projects') + const project = projects.findByPath(file, context) + + if (!project) { + resolve(false) + return + } + + const plugins = getPlugins(file) + + if (project && projects.getType(project, context) !== 'vue') { + resolve(false) + return + } + + pluginApi = new PluginApi({ + plugins, + file, + project, + lightMode: lightApi + }, context) + pluginApiInstances.set(file, pluginApi) + + // Run Plugin API + runPluginApi(path.resolve(__dirname, '../../'), pluginApi, context, 'ui-defaults') + plugins.forEach(plugin => runPluginApi(plugin.id, pluginApi, context)) + // Local plugins + const { pkg, pkgContext } = pkgStore.get(file) + if (pkg.vuePlugins && pkg.vuePlugins.ui) { + const files = pkg.vuePlugins.ui + if (Array.isArray(files)) { + for (const file of files) { + runPluginApi(pkgContext, pluginApi, context, file) + } + } + } + // Add client addons + pluginApi.clientAddons.forEach(options => { + clientAddons.add(options, context) + }) + // Add views + for (const view of pluginApi.views) { + await views.add({ view, project }, context) + } + // Register widgets + for (const definition of pluginApi.widgetDefs) { + await widgets.registerDefinition({ definition, project }, context) + } + + if (lightApi) { + resolve(true) + return + } + + if (projectId !== project.id) { + callHook({ + id: 'projectOpen', + args: [project, projects.getLast(context)], + file + }, context) + } else { + callHook({ + id: 'pluginReload', + args: [project], + file + }, context) + + // View open hook + const currentView = views.getCurrent() + if (currentView) views.open(currentView.id) + } + + // Load widgets for current project + widgets.load(context) + + resolve(true) + }) + }) +} + +function runPluginApi (id, pluginApi, context, filename = 'ui') { + const name = filename !== 'ui' ? `${id}/${filename}` : id + + let module + try { + module = loadModule(`${id}/${filename}`, pluginApi.cwd, true) + } catch (e) { + if (process.env.VUE_CLI_DEBUG) { + console.error(e) + } + } + if (module) { + if (typeof module !== 'function') { + log(`${chalk.red('ERROR')} while loading plugin API: no function exported, for`, name, chalk.grey(pluginApi.cwd)) + logs.add({ + type: 'error', + message: `An error occurred while loading ${name}: no function exported` + }) + } else { + pluginApi.pluginId = id + try { + module(pluginApi) + log('Plugin API loaded for', name, chalk.grey(pluginApi.cwd)) + } catch (e) { + log(`${chalk.red('ERROR')} while loading plugin API for ${name}:`, e) + logs.add({ + type: 'error', + message: `An error occurred while loading ${name}: ${e.message}` + }) + } + pluginApi.pluginId = null + } + } + + // Locales + try { + const folder = fs.existsSync(id) ? id : dependencies.getPath({ id, file: pluginApi.cwd }) + locales.loadFolder(folder, context) + } catch (e) {} +} + +function getApi (folder) { + const pluginApi = pluginApiInstances.get(folder) + return pluginApi +} + +function callHook ({ id, args, file }, context) { + const pluginApi = getApi(file) + if (!pluginApi) return + const fns = pluginApi.hooks[id] + log(`Hook ${id}`, fns.length, 'handlers') + fns.forEach(fn => fn(...args)) +} + +async function getLogo (plugin, context) { + const { id, baseDir } = plugin + const cached = logoCache.get(id) + if (cached) { + return cached + } + const folder = dependencies.getPath({ id, file: baseDir }) + const file = path.join(folder, 'logo.png') + if (fs.existsSync(file)) { + const data = `/_plugin-logo/${encodeURIComponent(id)}` + logoCache.set(id, data) + return data + } + return null +} + +function getInstallation (context) { + if (!eventsInstalled) { + eventsInstalled = true + + // Package installation progress events + installProgress.on('progress', value => { + if (progress.get(PROGRESS_ID)) { + progress.set({ id: PROGRESS_ID, progress: value }, context) + } + }) + installProgress.on('log', message => { + if (progress.get(PROGRESS_ID)) { + progress.set({ id: PROGRESS_ID, info: message }, context) + } + }) + } + + return { + id: 'plugin-install', + pluginId: currentPluginId, + step: installationStep, + prompts: prompts.list() + } +} + +function install (id, context) { + return progress.wrap(PROGRESS_ID, context, async setProgress => { + setProgress({ + status: 'plugin-install', + args: [id] + }) + currentPluginId = id + installationStep = 'install' + if (process.env.VUE_CLI_DEBUG && isOfficialPlugin(id)) { + mockInstall(id, context) + } else { + const pm = new PackageManager({ context: cwd.get() }) + await pm.add(id) + } + await initPrompts(id, context) + installationStep = 'config' + + notify({ + title: 'Plugin installed', + message: `Plugin ${id} installed, next step is configuration`, + icon: 'done' + }) + + return getInstallation(context) + }) +} + +function mockInstall (id, context) { + const pkg = folders.readPackage(cwd.get(), context, true) + pkg.devDependencies[id] = '*' + folders.writePackage({ file: cwd.get(), data: pkg }, context) + return true +} + +function installLocal (context) { + const projects = require('./projects') + const folder = cwd.get() + cwd.set(projects.getCurrent(context).path, context) + return progress.wrap(PROGRESS_ID, context, async setProgress => { + const pkg = loadModule(path.resolve(folder, 'package.json'), cwd.get(), true) + + const id = pkg.name + + setProgress({ + status: 'plugin-install', + args: [id] + }) + currentPluginId = id + installationStep = 'install' + + // Update package.json + { + const pkgFile = path.resolve(cwd.get(), 'package.json') + const pkg = await fs.readJson(pkgFile) + if (!pkg.devDependencies) pkg.devDependencies = {} + pkg.devDependencies[id] = `file:${folder}` + await fs.writeJson(pkgFile, pkg, { + spaces: 2 + }) + } + + const from = path.resolve(cwd.get(), folder) + const to = path.resolve(cwd.get(), 'node_modules', ...id.split('/')) + console.log('copying from', from, 'to', to) + await fs.copy(from, to) + + await initPrompts(id, context) + installationStep = 'config' + + notify({ + title: 'Plugin installed', + message: `Plugin ${id} installed, next step is configuration`, + icon: 'done' + }) + + return getInstallation(context) + }) +} + +function uninstall (id, context) { + return progress.wrap(PROGRESS_ID, context, async setProgress => { + setProgress({ + status: 'plugin-uninstall', + args: [id] + }) + installationStep = 'uninstall' + currentPluginId = id + if (process.env.VUE_CLI_DEBUG && isOfficialPlugin(id)) { + mockUninstall(id, context) + } else { + const pm = new PackageManager({ context: cwd.get() }) + await pm.remove(id) + } + currentPluginId = null + installationStep = null + + notify({ + title: 'Plugin uninstalled', + message: `Plugin ${id} uninstalled`, + icon: 'done' + }) + + return getInstallation(context) + }) +} + +function mockUninstall (id, context) { + const pkg = folders.readPackage(cwd.get(), context, true) + delete pkg.devDependencies[id] + folders.writePackage({ file: cwd.get(), data: pkg }, context) + return true +} + +function runInvoke (id, context) { + return progress.wrap(PROGRESS_ID, context, async setProgress => { + setProgress({ + status: 'plugin-invoke', + args: [id] + }) + + clearModule('@vue/cli-service/webpack.config.js', cwd.get()) + + currentPluginId = id + // Allow plugins that don't have a generator + if (resolveModule(`${id}/generator`, cwd.get())) { + const child = execa('vue', [ + 'invoke', + id, + '--$inlineOptions', + JSON.stringify(prompts.getAnswers()) + ], { + cwd: cwd.get(), + stdio: ['inherit', 'pipe', 'inherit'] + }) + + const onData = buffer => { + const text = buffer.toString().trim() + if (text) { + setProgress({ + info: text + }) + logs.add({ + type: 'info', + message: text + }, context) + } + } + + child.stdout.on('data', onData) + + await child + } + // Run plugin api + runPluginApi(id, getApi(cwd.get()), context) + installationStep = 'diff' + + notify({ + title: 'Plugin invoked successfully', + message: `Plugin ${id} invoked successfully`, + icon: 'done' + }) + + return getInstallation(context) + }) +} + +function finishInstall (context) { + installationStep = null + currentPluginId = null + return getInstallation(context) +} + +async function initPrompts (id, context) { + await prompts.reset() + try { + let data = require(path.join(dependencies.getPath({ id, file: cwd.get() }), 'prompts')) + if (typeof data === 'function') { + data = await data() + } + data.forEach(prompts.add) + } catch (e) { + console.warn(`No prompts found for ${id}`) + } + await prompts.start() +} + +function update ({ id, full }, context) { + return progress.wrap('plugin-update', context, async setProgress => { + setProgress({ + status: 'plugin-update', + args: [id] + }) + currentPluginId = id + const plugin = findOne({ id, file: cwd.get() }, context) + const { current, wanted, localPath } = await dependencies.getVersion(plugin, context) + + if (localPath) { + await updateLocalPackage({ cwd: cwd.get(), id, localPath, full }, context) + } else { + const pm = new PackageManager({ context: cwd.get() }) + await pm.upgrade(id) + } + + logs.add({ + message: `Plugin ${id} updated from ${current} to ${wanted}`, + type: 'info' + }, context) + + notify({ + title: 'Plugin updated', + message: `Plugin ${id} was successfully updated`, + icon: 'done' + }) + + await resetPluginApi({ file: cwd.get() }, context) + dependencies.invalidatePackage({ id }, context) + + currentPluginId = null + return findOne({ id, file: cwd.get() }, context) + }) +} + +async function updateLocalPackage ({ id, cwd, localPath, full = true }, context) { + const from = path.resolve(cwd, localPath) + const to = path.resolve(cwd, 'node_modules', ...id.split('/')) + let filterRegEx + if (full) { + await fs.remove(to) + filterRegEx = /\.git/ + } else { + filterRegEx = /(\.git|node_modules)/ + } + await fs.copy(from, to, { + filter: (file) => !file.match(filterRegEx) + }) +} + +async function updateAll (context) { + return progress.wrap('plugins-update', context, async setProgress => { + const plugins = await list(cwd.get(), context, { resetApi: false }) + const updatedPlugins = [] + for (const plugin of plugins) { + const version = await dependencies.getVersion(plugin, context) + if (version.current !== version.wanted) { + updatedPlugins.push(plugin) + dependencies.invalidatePackage({ id: plugin.id }, context) + } + } + + if (!updatedPlugins.length) { + notify({ + title: 'No updates available', + message: 'No plugin to update in the version ranges declared in package.json', + icon: 'done' + }) + return [] + } + + setProgress({ + status: 'plugins-update', + args: [updatedPlugins.length] + }) + + const pm = new PackageManager({ context: cwd.get() }) + await pm.upgrade(updatedPlugins.map(p => p.id).join(' ')) + + notify({ + title: 'Plugins updated', + message: `${updatedPlugins.length} plugin(s) were successfully updated`, + icon: 'done' + }) + + await resetPluginApi({ file: cwd.get() }, context) + + return updatedPlugins + }) +} + +async function callAction ({ id, params, file = cwd.get() }, context) { + const pluginApi = getApi(file) + + context.pubsub.publish(channels.PLUGIN_ACTION_CALLED, { + pluginActionCalled: { id, params } + }) + log('PluginAction called', id, params) + const results = [] + const errors = [] + const list = pluginApi.actions.get(id) + if (list) { + for (const cb of list) { + let result = null + let error = null + try { + result = await cb(params) + } catch (e) { + error = e + } + results.push(result) + errors.push(error) + } + } + context.pubsub.publish(channels.PLUGIN_ACTION_RESOLVED, { + pluginActionResolved: { id, params, results, errors } + }) + log('PluginAction resolved', id, params, 'results:', results, 'errors:', errors) + return { id, params, results, errors } +} + +function serveFile ({ pluginId, projectId = null, file }, res) { + let baseFile = cwd.get() + if (projectId) { + const projects = require('./projects') + const project = projects.findOne(projectId, getContext()) + if (project) { + baseFile = project.path + } + } + + if (pluginId) { + const basePath = pluginId === '.' ? baseFile : dependencies.getPath({ id: decodeURIComponent(pluginId), file: baseFile }) + if (basePath) { + res.sendFile(path.join(basePath, file)) + return + } + } else { + console.log('serve issue', 'pluginId:', pluginId, 'projectId:', projectId, 'file:', file) + } + + res.status(404) + res.send('Addon not found in loaded addons. Try opening a vue-cli project first?') +} + +function serve (req, res) { + const { id: pluginId, 0: file } = req.params + serveFile({ pluginId, file: path.join('ui-public', file) }, res) +} + +function serveLogo (req, res) { + const { id: pluginId } = req.params + const { project: projectId } = req.query + serveFile({ pluginId, projectId, file: 'logo.png' }, res) +} + +module.exports = { + list, + findOne, + getLogo, + getInstallation, + install, + installLocal, + uninstall, + update, + updateAll, + runInvoke, + resetPluginApi, + getApi, + finishInstall, + callAction, + callHook, + serve, + serveLogo +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/progress.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/progress.js" new file mode 100644 index 0000000000000000000000000000000000000000..ad22d3e180c37652c9d14cc3350c24ff2d237fbf --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/progress.js" @@ -0,0 +1,57 @@ +// Subs +const channels = require('../channels') + +const map = new Map() + +function get (id, context) { + return map.get(id) +} + +function set (data, context) { + const { id } = data + let progress = get(id, context) + if (!progress) { + progress = data + map.set(id, Object.assign({}, { + status: null, + error: null, + info: null, + args: null, + progress: -1 + }, progress)) + } else { + Object.assign(progress, data) + } + context.pubsub.publish(channels.PROGRESS_CHANGED, { progressChanged: progress }) + return progress +} + +function remove (id, context) { + context.pubsub.publish(channels.PROGRESS_REMOVED, { progressRemoved: id }) + return map.delete(id) +} + +async function wrap (id, context, operation) { + set({ id }, context) + + let result + try { + result = await operation(data => { + set(Object.assign({ id }, data), context) + }) + } catch (error) { + console.error(error) + set({ id, error: error.message }, context) + } + + remove(id, context) + + return result +} + +module.exports = { + get, + set, + remove, + wrap +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/projects.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/projects.js" new file mode 100644 index 0000000000000000000000000000000000000000..0c685d9c64ec84e690a3e9f45432dd4c2de37b1c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/projects.js" @@ -0,0 +1,505 @@ +const path = require('path') +const fs = require('fs') +const shortId = require('shortid') +const Creator = require('@vue/cli/lib/Creator') +const { getPromptModules } = require('@vue/cli/lib/util/createTools') +const { getFeatures } = require('@vue/cli/lib/util/features') +const { defaults } = require('@vue/cli/lib/options') +const { toShortPluginId, execa } = require('@vue/cli-shared-utils') +const { progress: installProgress } = require('@vue/cli/lib/util/executeCommand') +const parseGitConfig = require('parse-git-config') +// Connectors +const progress = require('./progress') +const cwd = require('./cwd') +const prompts = require('./prompts') +const folders = require('./folders') +const plugins = require('./plugins') +const locales = require('./locales') +const logs = require('./logs') +// Context +const getContext = require('../context') +// Utils +const { log } = require('../util/logger') +const { notify } = require('../util/notification') +const { getHttpsGitURL } = require('../util/strings') + +const PROGRESS_ID = 'project-create' + +let lastProject = null +let currentProject = null +let creator = null +let presets = [] +let features = [] +let onCreationEvent = null +let onInstallProgress = null +let onInstallLog = null + +function list (context) { + let projects = context.db.get('projects').value() + projects = autoClean(projects, context) + return projects +} + +function findOne (id, context) { + return context.db.get('projects').find({ id }).value() +} + +function findByPath (file, context) { + return context.db.get('projects').find({ path: file }).value() +} + +function autoClean (projects, context) { + const result = [] + for (const project of projects) { + if (fs.existsSync(project.path)) { + result.push(project) + } + } + if (result.length !== projects.length) { + console.log(`Auto cleaned ${projects.length - result.length} projects (folder not found).`) + context.db.set('projects', result).write() + } + return result +} + +function getCurrent (context) { + if (currentProject && !fs.existsSync(currentProject.path)) { + log('Project folder not found', currentProject.id, currentProject.path) + return null + } + return currentProject +} + +function getLast (context) { + return lastProject +} + +function generatePresetDescription (preset) { + let description = `[Vue ${preset.raw.vueVersion || 2}] ` + + description += preset.features.join(', ') + if (preset.raw.useConfigFiles) { + description += ' (Use config files)' + } + return description +} + +function generateProjectCreation (creator) { + return { + presets, + features, + prompts: prompts.list() + } +} + +async function initCreator (context) { + const creator = new Creator('', cwd.get(), getPromptModules()) + + /* Event listeners */ + // Creator emits creation events (the project creation steps) + onCreationEvent = ({ event }) => { + progress.set({ id: PROGRESS_ID, status: event, info: null }, context) + } + creator.on('creation', onCreationEvent) + // Progress bar + onInstallProgress = value => { + if (progress.get(PROGRESS_ID)) { + progress.set({ id: PROGRESS_ID, progress: value }, context) + } + } + installProgress.on('progress', onInstallProgress) + // Package manager steps + onInstallLog = message => { + if (progress.get(PROGRESS_ID)) { + progress.set({ id: PROGRESS_ID, info: message }, context) + } + } + installProgress.on('log', onInstallLog) + + // Presets + const manualPreset = { + id: '__manual__', + name: 'org.vue.views.project-create.tabs.presets.manual.name', + description: 'org.vue.views.project-create.tabs.presets.manual.description', + link: null, + features: [] + } + const presetsData = creator.getPresets() + presets = [ + ...Object.keys(presetsData).map( + key => { + const preset = presetsData[key] + const features = getFeatures(preset).map( + f => toShortPluginId(f) + ) + + let name = key + if (key === 'default') { + name = 'org.vue.views.project-create.tabs.presets.default-preset' + } else if (key === '__default_vue_3__') { + name = 'org.vue.views.project-create.tabs.presets.default-preset-vue-3' + } + const info = { + id: key, + name, + features, + link: null, + raw: preset + } + info.description = generatePresetDescription(info) + return info + } + ), + manualPreset + ] + + // Features + const featuresData = creator.featurePrompt.choices + features = [ + ...featuresData.map( + data => ({ + id: data.value, + name: data.name, + description: data.description || null, + link: data.link || null, + plugins: data.plugins || null, + enabled: !!data.checked + }) + ), + { + id: 'use-config-files', + name: 'org.vue.views.project-create.tabs.features.userConfigFiles.name', + description: 'org.vue.views.project-create.tabs.features.userConfigFiles.description', + link: null, + plugins: null, + enabled: false + } + ] + + manualPreset.features = features.filter( + f => f.enabled + ).map( + f => f.id + ) + + // Prompts + await prompts.reset() + creator.injectedPrompts.forEach(prompts.add) + await updatePromptsFeatures() + await prompts.start() + + return creator +} + +function removeCreator (context) { + if (creator) { + creator.removeListener('creation', onCreationEvent) + installProgress.removeListener('progress', onInstallProgress) + installProgress.removeListener('log', onInstallLog) + creator = null + } + return true +} + +async function getCreation (context) { + if (!creator) { + creator = await initCreator(context) + } + return generateProjectCreation(creator) +} + +async function updatePromptsFeatures () { + await prompts.changeAnswers(answers => { + answers.features = features.filter( + f => f.enabled + ).map( + f => f.id + ) + }) +} + +async function setFeatureEnabled ({ id, enabled, updatePrompts = true }, context) { + const feature = features.find(f => f.id === id) + if (feature) { + feature.enabled = enabled + } else { + console.warn(`Feature '${id}' not found`) + } + if (updatePrompts) await updatePromptsFeatures() + return feature +} + +async function applyPreset (id, context) { + const preset = presets.find(p => p.id === id) + if (preset) { + for (const feature of features) { + feature.enabled = !!( + preset.features.includes(feature.id) || + (feature.plugins && preset.features.some(f => feature.plugins.includes(f))) + ) + } + if (preset.raw) { + if (preset.raw.router) { + await setFeatureEnabled({ id: 'router', enabled: true, updatePrompts: false }, context) + } + if (preset.raw.vuex) { + await setFeatureEnabled({ id: 'vuex', enabled: true, updatePrompts: false }, context) + } + if (preset.raw.cssPreprocessor) { + await setFeatureEnabled({ id: 'css-preprocessor', enabled: true, updatePrompts: false }, context) + } + if (preset.raw.useConfigFiles) { + await setFeatureEnabled({ id: 'use-config-files', enabled: true, updatePrompts: false }, context) + } + } + await updatePromptsFeatures() + } else { + console.warn(`Preset '${id}' not found`) + } + + return generateProjectCreation(creator) +} + +async function create (input, context) { + return progress.wrap(PROGRESS_ID, context, async setProgress => { + setProgress({ + status: 'creating' + }) + + const targetDir = path.join(cwd.get(), input.folder) + + cwd.set(targetDir, context) + creator.context = targetDir + + const inCurrent = input.folder === '.' + const name = creator.name = (inCurrent ? path.relative('../', process.cwd()) : input.folder) + + // Answers + const answers = prompts.getAnswers() + await prompts.reset() + + // Config files + let index + if ((index = answers.features.indexOf('use-config-files')) !== -1) { + answers.features.splice(index, 1) + answers.useConfigFiles = 'files' + } + + // Preset + answers.preset = input.preset + if (input.save) { + answers.save = true + answers.saveName = input.save + } + + setProgress({ + info: 'Resolving preset...' + }) + let preset + if (input.preset === '__remote__' && input.remote) { + // vue create foo --preset bar + preset = await creator.resolvePreset(input.remote, input.clone) + } else if (input.preset === 'default') { + // vue create foo --default + preset = defaults.presets.default + } else { + preset = await creator.promptAndResolvePreset(answers) + } + setProgress({ + info: null + }) + + // Create + const args = [ + '--skipGetStarted' + ] + if (input.packageManager) args.push('--packageManager', input.packageManager) + if (input.bar) args.push('--bare') + if (input.force) args.push('--force') + // Git + if (input.enableGit && input.gitCommitMessage) { + args.push('--git', input.gitCommitMessage) + } else if (!input.enableGit) { + args.push('--no-git') + } + // Preset + args.push('--inlinePreset', JSON.stringify(preset)) + + log('create', name, args) + + const child = execa('vue', [ + 'create', + name, + ...args + ], { + cwd: cwd.get(), + stdio: ['inherit', 'pipe', 'inherit'] + }) + + const onData = buffer => { + const text = buffer.toString().trim() + if (text) { + setProgress({ + info: text + }) + logs.add({ + type: 'info', + message: text + }, context) + } + } + + child.stdout.on('data', onData) + + await child + + removeCreator() + + notify({ + title: 'Project created', + message: `Project ${cwd.get()} created`, + icon: 'done' + }) + + return importProject({ + path: targetDir + }, context) + }) +} + +async function importProject (input, context) { + if (!input.force && !fs.existsSync(path.join(input.path, 'node_modules'))) { + throw new Error('NO_MODULES') + } + + const project = { + id: shortId.generate(), + path: input.path, + favorite: 0, + type: folders.isVueProject(input.path) ? 'vue' : 'unknown' + } + const packageData = folders.readPackage(project.path, context) + project.name = packageData.name + context.db.get('projects').push(project).write() + return open(project.id, context) +} + +async function open (id, context) { + const project = findOne(id, context) + + if (!project) { + log('Project not found', id) + return null + } + + if (!fs.existsSync(project.path)) { + log('Project folder not found', id, project.path) + return null + } + + lastProject = currentProject + currentProject = project + cwd.set(project.path, context) + // Reset locales + locales.reset(context) + // Load plugins + await plugins.list(project.path, context) + + // Date + context.db.get('projects').find({ id }).assign({ + openDate: Date.now() + }).write() + + // Save for next time + context.db.set('config.lastOpenProject', id).write() + + log('Project open', id, project.path) + + return project +} + +async function remove (id, context) { + if (currentProject && currentProject.id === id) { + currentProject = null + } + context.db.get('projects').remove({ id }).write() + if (context.db.get('config.lastOpenProject').value() === id) { + context.db.set('config.lastOpenProject', undefined).write() + } + return true +} + +function resetCwd (context) { + if (currentProject) { + cwd.set(currentProject.path, context) + } +} + +function setFavorite ({ id, favorite }, context) { + context.db.get('projects').find({ id }).assign({ favorite }).write() + return findOne(id, context) +} + +function rename ({ id, name }, context) { + context.db.get('projects').find({ id }).assign({ name }).write() + return findOne(id, context) +} + +function getType (project, context) { + if (typeof project === 'string') { + project = findByPath(project, context) + } + if (!project) return 'unknown' + return !project.type ? 'vue' : project.type +} + +function getHomepage (project, context) { + const gitConfigPath = path.join(project.path, '.git', 'config') + if (fs.existsSync(gitConfigPath)) { + const gitConfig = parseGitConfig.sync({ path: gitConfigPath }) + const gitRemoteUrl = gitConfig['remote "origin"'] + if (gitRemoteUrl) { + return getHttpsGitURL(gitRemoteUrl.url) + } + } + + const pkg = folders.readPackage(project.path, context) + return pkg.homepage +} + +// Open last project +async function autoOpenLastProject () { + const context = getContext() + const id = context.db.get('config.lastOpenProject').value() + if (id) { + try { + await open(id, context) + } catch (e) { + log('Project can\'t be auto-opened', id) + } + } +} + +autoOpenLastProject() + +module.exports = { + list, + findOne, + findByPath, + getCurrent, + getLast, + getCreation, + applyPreset, + setFeatureEnabled, + create, + import: importProject, + open, + remove, + resetCwd, + setFavorite, + rename, + initCreator, + removeCreator, + getType, + getHomepage +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/prompts.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/prompts.js" new file mode 100644 index 0000000000000000000000000000000000000000..6cb47ef55fb63ecc408ffb0b6a8fc7a6d8615a6a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/prompts.js" @@ -0,0 +1,258 @@ +// Utils +const { get, set, unset } = require('@vue/cli-shared-utils') +const { log } = require('../util/logger') + +let answers = {} +let prompts = [] + +function generatePromptError (value) { + let message + if (typeof value === 'string') { + message = value + } else { + message = 'Invalid input' + } + return { + message + } +} + +async function getEnabled (value) { + const type = typeof value + if (type === 'function') { + const result = await value(answers) + return !!result + } else if (type === 'boolean') { + return value + } else { + return true + } +} + +function validateInput (prompt, value) { + const validate = prompt.raw.validate + if (typeof validate === 'function') { + return validate(value, answers) + } + return true +} + +function getFilteredValue (prompt, value) { + const filter = prompt.raw.filter + if (typeof filter === 'function') { + return filter(value) + } + return value +} + +function getTransformedValue (prompt, value) { + const transformer = prompt.raw.transformer + if (typeof transformer === 'function') { + return transformer(value, answers) + } + return value +} + +function generatePromptChoice (prompt, data, defaultValue) { + return { + value: JSON.stringify(getTransformedValue(prompt, data.value)), + name: data.name, + checked: data.checked, + disabled: data.disabled, + isDefault: data.value === defaultValue + } +} + +async function getChoices (prompt) { + const data = prompt.raw.choices + if (!data) { + return null + } + + let result + if (typeof data === 'function') { + result = await data(answers) + } else { + result = data + } + let defaultValue + if (prompt.type === 'list' || prompt.type === 'rawlist') { + defaultValue = await getDefaultValue(prompt) + } + return result.map( + item => generatePromptChoice(prompt, item, defaultValue) + ) +} + +function setAnswer (id, value) { + set(answers, id, value) +} + +function removeAnswer (id) { + unset(answers, id) +} + +function generatePrompt (data) { + return { + id: data.name, + type: data.type, + visible: true, + enabled: true, + name: data.short || null, + message: data.message, + group: data.group || null, + description: data.description || null, + link: data.link || null, + choices: null, + value: null, + valueChanged: false, + error: null, + tabId: data.tabId || null, + raw: data + } +} + +async function updatePrompts () { + for (const prompt of prompts) { + const oldVisible = prompt.visible + prompt.visible = await getEnabled(prompt.raw.when) + + prompt.choices = await getChoices(prompt) + + if (oldVisible !== prompt.visible && !prompt.visible) { + removeAnswer(prompt.id) + prompt.valueChanged = false + } else if (prompt.visible && !prompt.valueChanged) { + let value + const answer = getAnswer(prompt.id) + if (typeof answer !== 'undefined') { + value = await getTransformedValue(prompt, answer) + } else if (typeof prompt.raw.value !== 'undefined') { + value = prompt.raw.value + } else { + value = await getDefaultValue(prompt) + } + prompt.rawValue = value + prompt.value = JSON.stringify(value) + const finalValue = await getFilteredValue(prompt, value) + setAnswer(prompt.id, finalValue) + } + } + + log('Prompt answers', answers) +} + +// Public API + +async function setAnswers (newAnswers) { + answers = newAnswers + await updatePrompts() +} + +async function changeAnswers (cb) { + cb(answers) + await updatePrompts() +} + +function getAnswers () { + return answers +} + +function getAnswer (id) { + return get(answers, id) +} + +async function reset (answers = {}) { + prompts = [] + await setAnswers(answers) +} + +function list () { + return prompts +} + +function add (data) { + const prompt = generatePrompt(data) + prompts.push(prompt) + return prompt +} + +async function start () { + await updatePrompts() +} + +function remove (id) { + const index = prompts.findIndex(p => p.id === id) + index !== -1 && prompts.splice(index, 1) +} + +async function setValue ({ id, value }) { + const prompt = findOne(id) + if (!prompt) { + console.warn(`Prompt '${prompt}' not found`) + return null + } + + const validation = await validateInput(prompt, value) + if (validation !== true) { + prompt.error = generatePromptError(validation) + } else { + prompt.error = null + } + prompt.rawValue = value + const finalValue = await getFilteredValue(prompt, value) + prompt.value = JSON.stringify(value) + prompt.valueChanged = true + setAnswer(prompt.id, finalValue) + await updatePrompts() + return prompt +} + +function findOne (id) { + return prompts.find( + p => p.id === id + ) +} + +async function getDefaultValue (prompt) { + let defaultValue = prompt.raw.default + if (typeof defaultValue === 'function') { + defaultValue = await defaultValue(answers) + } + + if (prompt.type === 'checkbox') { + const choices = prompt.raw.choices + if (choices) { + return choices.filter( + c => c.checked + ).map( + c => c.value + ) + } + } else if (prompt.type === 'confirm') { + if (prompt.raw.checked) return true + return defaultValue || false + } + return defaultValue +} + +async function answerPrompt ({ id, value }, context) { + await setValue({ id, value: JSON.parse(value) }) + return list() +} + +module.exports = { + setAnswers, + changeAnswers, + getAnswers, + getAnswer, + reset, + list, + add, + remove, + start, + setValue, + findOne, + getDefaultValue, + answerPrompt +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/shared-data.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/shared-data.js" new file mode 100644 index 0000000000000000000000000000000000000000..e882b3a77d7e6c8e049b37f3d99385893a7be61d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/shared-data.js" @@ -0,0 +1,155 @@ +// Subscriptions channels +const channels = require('../channels') +// Utils +const { log } = require('../util/logger') +const path = require('path') +const fs = require('fs-extra') +const { rcFolder } = require('../util/rcFolder') +const stats = require('../util/stats') + +/** + * @typedef SharedData + * @prop {string} id + * @prop {any} value + * @prop {Date} updated + * @prop {boolean} disk + */ + +const rootFolder = path.resolve(rcFolder, 'shared-data') +fs.ensureDirSync(rootFolder) + +/** @type {Map>} */ +const sharedData = new Map() +const watchers = new Map() + +function get ({ id, projectId }, context) { + const store = sharedData.get(projectId) + if (!store) return null + + let data = store.get(id) + if (data == null) { + if (fs.existsSync(path.resolve(rootFolder, projectId, `${id}.json`))) { + data = { + id, + updated: new Date(), + disk: true + } + } + } + + if (data && data.disk) { + data.value = readOnDisk({ id, projectId }, context) + } + + return data +} + +async function readOnDisk ({ id, projectId }, context) { + const file = path.resolve(rootFolder, projectId, `${id}.json`) + if (await fs.exists(file)) { + return fs.readJson(file) + } + return null +} + +async function set ({ id, projectId, value, disk = false }, context) { + if (disk) { + await writeOnDisk({ id, projectId, value }, context) + } + let store = sharedData.get(projectId) + if (!store) { + store = new Map() + sharedData.set(projectId, store) + } + store.set(id, { + id, + ...(disk ? {} : { value }), + disk, + updated: new Date() + }) + + const stat = stats.get(`shared-data_${projectId}`, id) + stat.value = 0 + context.pubsub.publish(channels.SHARED_DATA_UPDATED, { + sharedDataUpdated: { id, projectId, value } + }) + + const watchers = notify({ id, projectId, value }, context) + + setTimeout(() => log('SharedData set', id, projectId, value, `(${watchers.length} watchers, ${stat.value} subscriptions)`)) + + return { id, value } +} + +async function writeOnDisk ({ id, projectId, value }, context) { + const projectFolder = path.resolve(rootFolder, projectId) + await fs.ensureDir(projectFolder) + await fs.writeJson(path.resolve(projectFolder, `${id}.json`), value) +} + +async function remove ({ id, projectId }, context) { + const store = sharedData.get(projectId) + if (store) { + const data = store.get(id) + if (data && data.disk) { + fs.remove(path.resolve(rootFolder, projectId, `${id}.json`)) + } + store.delete(id) + } + + context.pubsub.publish(channels.SHARED_DATA_UPDATED, { + sharedDataUpdated: { id, projectId, value: undefined } + }) + + notify({ id, projectId, value: undefined }, context) + log('SharedData remove', id, projectId) +} + +function watch ({ id, projectId }, handler) { + let store = watchers.get(projectId) + if (!store) { + store = new Map() + watchers.set(projectId, store) + } + let handlers = store.get(id) + if (!handlers) { + handlers = [] + store.set(id, handlers) + } + handlers.push(handler) +} + +function unwatch ({ id, projectId }, handler) { + const store = watchers.get(projectId) + if (!store) return + + const handlers = store.get(id) + if (!handlers) return + + const index = handlers.indexOf(handler) + if (index !== -1) handlers.splice(index, 1) +} + +function unWatchAll ({ projectId }, context) { + watchers.delete(projectId) +} + +function notify ({ id, projectId, value }, context) { + let handlers = watchers.get(projectId) + if (handlers) { + handlers = handlers.get(id) + } + if (handlers) { + handlers.forEach(fn => fn(value, id)) + } + return handlers || [] +} + +module.exports = { + get, + set, + remove, + watch, + unwatch, + unWatchAll +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/suggestions.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/suggestions.js" new file mode 100644 index 0000000000000000000000000000000000000000..7903d8b8ee58aa58e3cfd704fb1964288009ea47 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/suggestions.js" @@ -0,0 +1,106 @@ +// Subs +const channels = require('../channels') +// Connectors +const { log } = require('../util/logger') + +const suggestions = [] + +function list (context) { + return suggestions +} + +function findOne (id) { + return suggestions.find(s => s.id === id) +} + +function add (suggestion, context) { + if (findOne(suggestion.id)) return + + if (!suggestion.importance) { + suggestion.importance = 'normal' + } + suggestion.busy = false + + suggestions.push(suggestion) + + context.pubsub.publish(channels.SUGGESTION_ADDED, { + suggestionAdded: suggestion + }) + + log('Suggestion added', suggestion.id) + + return suggestion +} + +function remove (id, context) { + const suggestion = findOne(id) + if (!suggestion) return + const index = suggestions.indexOf(suggestion) + suggestions.splice(index, 1) + + context.pubsub.publish(channels.SUGGESTION_REMOVED, { + suggestionRemoved: suggestion + }) + + log('Suggestion removed', suggestion.id) + + return suggestion +} + +function clear (context) { + for (const suggestion of suggestions) { + remove(suggestion.id, context) + } +} + +function update (data, context) { + const suggestion = findOne(data.id) + if (!suggestion) return + Object.assign(suggestion, data) + + context.pubsub.publish(channels.SUGGESTION_UPDATED, { + suggestionUpdated: suggestion + }) + + log('Suggestion updated', suggestion.id) + + return suggestion +} + +async function activate ({ id }, context) { + const suggestion = findOne(id) + if (!suggestion) return + + update({ + id: suggestion.id, + busy: true + }, context) + + let result, error + + try { + result = await suggestion.handler() + } catch (e) { + error = e + console.log(e) + } + + update({ + id: suggestion.id, + busy: false + }, context) + + if (!error && (!result || !result.keep)) { + remove(suggestion.id, context) + } + + return suggestion +} + +module.exports = { + list, + add, + remove, + clear, + activate +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/tasks.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/tasks.js" new file mode 100644 index 0000000000000000000000000000000000000000..140fb11887ffdcaf9f00114a8755d41a290bb803 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/tasks.js" @@ -0,0 +1,614 @@ +const { chalk, execa } = require('@vue/cli-shared-utils') +// Subs +const channels = require('../channels') +// Connectors +const cwd = require('./cwd') +const folders = require('./folders') +const logs = require('./logs') +const plugins = require('./plugins') +const prompts = require('./prompts') +const views = require('./views') +const projects = require('./projects') +// Utils +const { log } = require('../util/logger') +const { notify } = require('../util/notification') +const { terminate } = require('../util/terminate') +const { parseArgs } = require('../util/parse-args') + +const MAX_LOGS = 2000 +const VIEW_ID = 'vue-project-tasks' +const WIN_ENOENT_THRESHOLD = 500 // ms + +const tasks = new Map() + +function getTasks (file = null) { + if (!file) file = cwd.get() + let list = tasks.get(file) + if (!list) { + list = [] + tasks.set(file, list) + } + return list +} + +async function list ({ file = null, api = true } = {}, context) { + if (!file) file = cwd.get() + let list = getTasks(file) + const pkg = folders.readPackage(file, context) + if (pkg.scripts) { + const existing = new Map() + + if (projects.getType(file, context) === 'vue') { + await plugins.list(file, context, { resetApi: false, lightApi: true }) + } + + const pluginApi = api && plugins.getApi(file) + + // Get current valid tasks in project `package.json` + const scriptKeys = Object.keys(pkg.scripts) + let currentTasks = scriptKeys.map( + name => { + const id = `${file}:${name}` + existing.set(id, true) + const command = pkg.scripts[name] + const moreData = pluginApi ? pluginApi.getDescribedTask(command) : null + return { + id, + name, + command, + index: list.findIndex(t => t.id === id), + prompts: [], + views: [], + path: file, + ...moreData + } + } + ) + + if (api && pluginApi) { + currentTasks = currentTasks.concat(plugins.getApi(file).addedTasks.map( + task => { + const id = `${file}:${task.name}` + existing.set(id, true) + return { + id, + index: list.findIndex(t => t.id === id), + prompts: [], + views: [], + path: file, + uiOnly: true, + ...task + } + } + )) + } + + // Process existing tasks + const existingTasks = currentTasks.filter( + task => task.index !== -1 + ) + // Update tasks data + existingTasks.forEach(task => { + Object.assign(list[task.index], task) + }) + + // Process removed tasks + const removedTasks = list.filter( + t => currentTasks.findIndex(c => c.id === t.id) === -1 + ) + // Remove badges + removedTasks.forEach(task => { + updateViewBadges({ task }, context) + }) + + // Process new tasks + const newTasks = currentTasks.filter( + task => task.index === -1 + ).map( + task => ({ + ...task, + status: 'idle', + child: null, + logs: [] + }) + ) + + // Keep existing running tasks + list = list.filter( + task => existing.get(task.id) || + task.status === 'running' + ) + + // Add the new tasks + list = list.concat(newTasks) + + // Sort + const getSortScore = task => { + const index = scriptKeys.indexOf(task.name) + if (index !== -1) return index + return Infinity + } + list.sort((a, b) => getSortScore(a) - getSortScore(b)) + + tasks.set(file, list) + } + return list +} + +function findOne (id, context) { + for (const [, list] of tasks) { + const result = list.find(t => t.id === id) + if (result) return result + } +} + +function getSavedData (id, context) { + let data = context.db.get('tasks').find({ + id + }).value() + // Clone + if (data != null) data = JSON.parse(JSON.stringify(data)) + return data +} + +function updateSavedData (data, context) { + if (getSavedData(data.id, context)) { + context.db.get('tasks').find({ id: data.id }).assign(data).write() + } else { + context.db.get('tasks').push(data).write() + } +} + +function getPrompts (id, context) { + return restoreParameters({ id }, context) +} + +function updateOne (data, context) { + const task = findOne(data.id) + if (task) { + if (task.status !== data.status) { + updateViewBadges({ + task, + data + }, context) + } + + Object.assign(task, data) + context.pubsub.publish(channels.TASK_CHANGED, { + taskChanged: task + }) + } + return task +} + +function updateViewBadges ({ task, data }, context) { + const viewId = VIEW_ID + + // New badges + if (data) { + if (data.status === 'error') { + views.addBadge({ + viewId, + badge: { + id: 'vue-task-error', + type: 'error', + label: 'org.vue.components.view-badge.labels.tasks.error', + priority: 3 + } + }, context) + } else if (data.status === 'running') { + views.addBadge({ + viewId, + badge: { + id: 'vue-task-running', + type: 'info', + label: 'org.vue.components.view-badge.labels.tasks.running', + priority: 2 + } + }, context) + } else if (data.status === 'done') { + views.addBadge({ + viewId, + badge: { + id: 'vue-task-done', + type: 'success', + label: 'org.vue.components.view-badge.labels.tasks.done', + priority: 1, + hidden: true + } + }, context) + } + } + + // Remove previous badges + if (task.status === 'error') { + views.removeBadge({ viewId, badgeId: 'vue-task-error' }, context) + } else if (task.status === 'running') { + views.removeBadge({ viewId, badgeId: 'vue-task-running' }, context) + } else if (task.status === 'done') { + views.removeBadge({ viewId, badgeId: 'vue-task-done' }, context) + } +} + +async function run (id, context) { + const task = findOne(id, context) + if (task && task.status !== 'running') { + task._terminating = false + + // Answers + const answers = prompts.getAnswers() + let [command, ...args] = parseArgs(task.command) + + // Output colors + // See: https://www.npmjs.com/package/supports-color + process.env.FORCE_COLOR = 1 + + // Plugin API + if (task.onBeforeRun) { + if (!answers.$_overrideArgs) { + const origPush = args.push.bind(args) + args.push = (...items) => { + if (items.length && args.indexOf(items[0]) !== -1) return items.length + return origPush(...items) + } + } + await task.onBeforeRun({ + answers, + args + }) + } + + // Deduplicate arguments + const dedupedArgs = [] + for (let i = args.length - 1; i >= 0; i--) { + const arg = args[i] + if (typeof arg === 'string' && arg.indexOf('--') === 0) { + if (dedupedArgs.indexOf(arg) === -1) { + dedupedArgs.push(arg) + } else { + const value = args[i + 1] + if (value && value.indexOf('--') !== 0) { + dedupedArgs.pop() + } + } + } else { + dedupedArgs.push(arg) + } + } + args = dedupedArgs.reverse() + + if (command === 'npm') { + args.splice(0, 0, '--') + } + + log('Task run', command, args) + + updateOne({ + id: task.id, + status: 'running' + }, context) + logs.add({ + message: `Task ${task.id} started`, + type: 'info' + }, context) + + addLog({ + taskId: task.id, + type: 'stdout', + text: chalk.grey(`$ ${command} ${args.join(' ')}`) + }, context) + + task.time = Date.now() + + // Task env + process.env.VUE_CLI_CONTEXT = cwd.get() + process.env.VUE_CLI_PROJECT_ID = projects.getCurrent(context).id + const nodeEnv = process.env.NODE_ENV + delete process.env.NODE_ENV + + const child = execa(command, args, { + cwd: cwd.get(), + stdio: ['inherit', 'pipe', 'pipe'], + shell: true + }) + + if (typeof nodeEnv !== 'undefined') { + process.env.NODE_ENV = nodeEnv + } + + task.child = child + + const outPipe = logPipe(queue => { + addLog({ + taskId: task.id, + type: 'stdout', + text: queue + }, context) + }) + child.stdout.on('data', buffer => { + outPipe.add(buffer.toString()) + }) + + const errPipe = logPipe(queue => { + addLog({ + taskId: task.id, + type: 'stderr', + text: queue + }, context) + }) + child.stderr.on('data', buffer => { + errPipe.add(buffer.toString()) + }) + + const onExit = async (code, signal) => { + outPipe.flush() + errPipe.flush() + + log('Task exit', command, args, 'code:', code, 'signal:', signal) + + const duration = Date.now() - task.time + const seconds = Math.round(duration / 10) / 100 + addLog({ + taskId: task.id, + type: 'stdout', + text: chalk.grey(`Total task duration: ${seconds}s`) + }, context) + + // Plugin API + if (task.onExit) { + await task.onExit({ + args, + child, + cwd: cwd.get(), + code, + signal + }) + } + + if (code === null || task._terminating) { + updateOne({ + id: task.id, + status: 'terminated' + }, context) + logs.add({ + message: `Task ${task.id} was terminated`, + type: 'info' + }, context) + } else if (code !== 0) { + updateOne({ + id: task.id, + status: 'error' + }, context) + logs.add({ + message: `Task ${task.id} ended with error code ${code}`, + type: 'error' + }, context) + notify({ + title: 'Task error', + message: `Task ${task.id} ended with error code ${code}`, + icon: 'error' + }) + } else { + updateOne({ + id: task.id, + status: 'done' + }, context) + logs.add({ + message: `Task ${task.id} completed`, + type: 'done' + }, context) + notify({ + title: 'Task completed', + message: `Task ${task.id} completed in ${seconds}s.`, + icon: 'done' + }) + } + + plugins.callHook({ + id: 'taskExit', + args: [{ + task, + args, + child, + cwd: cwd.get(), + signal, + code + }], + file: cwd.get() + }, context) + } + + child.on('exit', onExit) + + child.on('error', error => { + const duration = Date.now() - task.time + // hackish workaround for https://github.com/vuejs/vue-cli/issues/2096 + if (process.platform === 'win32' && error.code === 'ENOENT' && duration > WIN_ENOENT_THRESHOLD) { + return onExit(null) + } + updateOne({ + id: task.id, + status: 'error' + }, context) + logs.add({ + message: `Error while running task ${task.id} with message'${error.message}'`, + type: 'error' + }, context) + notify({ + title: 'Task error', + message: `Error while running task ${task.id} with message'${error.message}'`, + icon: 'error' + }) + addLog({ + taskId: task.id, + type: 'stdout', + text: chalk.red(`Error while running task ${task.id} with message '${error.message}'`) + }, context) + console.error(error) + }) + + // Plugin API + if (task.onRun) { + await task.onRun({ + args, + child, + cwd: cwd.get() + }) + } + + plugins.callHook({ + id: 'taskRun', + args: [{ + task, + args, + child, + cwd: cwd.get() + }], + file: cwd.get() + }, context) + } + return task +} + +async function stop (id, context) { + const task = findOne(id, context) + if (task && task.status === 'running' && task.child) { + task._terminating = true + try { + const { success, error } = await terminate(task.child, cwd.get()) + if (success) { + updateOne({ + id: task.id, + status: 'terminated' + }, context) + } else if (error) { + throw error + } else { + throw new Error('Unknown error') + } + } catch (e) { + console.log(chalk.red(`Can't terminate process ${task.child.pid}`)) + console.error(e) + } + } + return task +} + +function addLog (log, context) { + const task = findOne(log.taskId, context) + if (task) { + if (task.logs.length === MAX_LOGS) { + task.logs.shift() + } + task.logs.push(log) + context.pubsub.publish(channels.TASK_LOG_ADDED, { + taskLogAdded: log + }) + } +} + +function clearLogs (id, context) { + const task = findOne(id, context) + if (task) { + task.logs = [] + } + return task +} + +function open (id, context) { + const task = findOne(id, context) + plugins.callHook({ + id: 'taskOpen', + args: [{ + task, + cwd: cwd.get() + }], + file: cwd.get() + }, context) + return true +} + +function logPipe (action) { + const maxTime = 300 + + let queue = '' + let size = 0 + let time = Date.now() + let timeout + + const add = (string) => { + queue += string + size++ + + if (size === 50 || Date.now() > time + maxTime) { + flush() + } else { + clearTimeout(timeout) + timeout = setTimeout(flush, maxTime) + } + } + + const flush = () => { + clearTimeout(timeout) + if (!size) return + action(queue) + queue = '' + size = 0 + time = Date.now() + } + + return { + add, + flush + } +} + +function saveParameters ({ id }, context) { + // Answers + const answers = prompts.getAnswers() + + // Save parameters + updateSavedData({ + id, + answers + }, context) + + return prompts.list() +} + +async function restoreParameters ({ id }, context) { + const task = findOne(id, context) + if (task) { + await prompts.reset() + if (task.prompts.length) { + prompts.add({ + name: '$_overrideArgs', + type: 'confirm', + default: false, + message: 'org.vue.views.project-task-details.override-args.message', + description: 'org.vue.views.project-task-details.override-args.description' + }) + } + task.prompts.forEach(prompts.add) + const data = getSavedData(id, context) + if (data) { + await prompts.setAnswers(data.answers) + } + await prompts.start() + } + + return prompts.list() +} + +module.exports = { + list, + findOne, + getPrompts, + run, + stop, + updateOne, + clearLogs, + open, + saveParameters, + restoreParameters +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/views.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/views.js" new file mode 100644 index 0000000000000000000000000000000000000000..37261ccd77bbde29942d2738895b4730d6f8dc02 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/views.js" @@ -0,0 +1,172 @@ +// Connectors +const cwd = require('./cwd') +// Subs +const channels = require('../channels') +// Utils +const { log } = require('../util/logger') + +let currentView + +function createViewsSet () { + // Builtin views + return [ + { + id: 'vue-project-dashboard', + name: 'project-dashboard', + icon: 'dashboard', + tooltip: 'org.vue.components.project-nav.tooltips.dashboard' + }, + { + id: 'vue-project-plugins', + name: 'project-plugins', + icon: 'extension', + tooltip: 'org.vue.components.project-nav.tooltips.plugins' + }, + { + id: 'vue-project-dependencies', + name: 'project-dependencies', + icon: 'collections_bookmark', + tooltip: 'org.vue.components.project-nav.tooltips.dependencies', + projectTypes: ['vue', 'unknown'] + }, + { + id: 'vue-project-configurations', + name: 'project-configurations', + icon: 'settings_applications', + tooltip: 'org.vue.components.project-nav.tooltips.configuration' + }, + { + id: 'vue-project-tasks', + name: 'project-tasks', + icon: 'assignment', + tooltip: 'org.vue.components.project-nav.tooltips.tasks', + projectTypes: ['vue', 'unknown'] + } + ] +} + +const viewsMap = new Map() + +function getViews () { + const file = cwd.get() + let list = viewsMap.get(file) + if (!list) { + list = createViewsSet() + viewsMap.set(file, list) + } + return list +} + +function list (context) { + return getViews() +} + +function findOne (id) { + const views = getViews() + return views.find(r => r.id === id) +} + +async function add ({ view, project }, context) { + remove(view.id, context) + + // Default icon + if (!view.icon) { + const plugins = require('./plugins') + const plugin = plugins.findOne({ id: view.pluginId, file: cwd.get() }, context) + const logo = await plugins.getLogo(plugin, context) + view.icon = logo ? `${logo}?project=${project.id}` : 'radio_button_unchecked' + } + + const views = getViews() + views.push(view) + context.pubsub.publish(channels.VIEW_ADDED, { + viewAdded: view + }) + log('View added', view.id) +} + +function remove (id, context) { + const views = getViews() + const index = views.findIndex(r => r.id === id) + if (index !== -1) { + const view = views[index] + views.splice(index, 1) + context.pubsub.publish(channels.VIEW_REMOVED, { + viewRemoved: view + }) + } +} + +function update (view, context) { + const existingView = findOne(view.id) + if (existingView) { + Object.assign(existingView, view) + context.pubsub.publish(channels.VIEW_CHANGED, { + viewChanged: existingView + }) + } +} + +function addBadge ({ viewId, badge }, context) { + const view = findOne(viewId) + if (view) { + if (!view.badges) view.badges = [] + const existingBadge = view.badges.find(b => b.id === badge.id) + if (existingBadge) { + Object.assign(existingBadge, badge, { + count: existingBadge.count + 1 + }) + } else { + view.badges.push({ + type: 'dim', + count: 1, + priority: 0, + hidden: false, + ...badge + }) + } + update(view, context) + } +} + +function removeBadge ({ viewId, badgeId }, context) { + const view = findOne(viewId) + if (view && view.badges) { + const existingBadge = view.badges.find(b => b.id === badgeId) + if (existingBadge) { + existingBadge.count-- + if (existingBadge.count <= 0) { + const index = view.badges.indexOf(existingBadge) + index !== -1 && view.badges.splice(index, 1) + } + update(view, context) + } + } +} + +function open (id, context) { + const view = findOne(id) + currentView = view + const plugins = require('./plugins') + plugins.callHook({ + id: 'viewOpen', + args: [{ + view, + cwd: cwd.get() + }], + file: cwd.get() + }, context) + return true +} + +module.exports = { + list, + findOne, + add, + remove, + update, + addBadge, + removeBadge, + open, + getCurrent: () => currentView +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/widgets.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/widgets.js" new file mode 100644 index 0000000000000000000000000000000000000000..ca8c28e17add5a2eeb9f045ef8d2f7bba47c0cf9 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/connectors/widgets.js" @@ -0,0 +1,334 @@ +const shortid = require('shortid') +// Connectors +const cwd = require('./cwd') +const prompts = require('./prompts') +// Utils +const { log } = require('../util/logger') + +function getDefaultWidgets () { + return [ + { + id: shortid(), + definitionId: 'org.vue.widgets.welcome', + x: 0, + y: 0, + width: 3, + height: 4, + configured: true, + config: null + }, + { + id: shortid(), + definitionId: 'org.vue.widgets.kill-port', + x: 3, + y: 0, + width: 2, + height: 1, + configured: true, + config: null + } + ] +} + +let widgetDefs = new Map() +let widgetCount = new Map() +let widgets = [] +let currentWidget + +let loadPromise, loadResolve + +function reset (context) { + widgetDefs = new Map() + widgetCount = new Map() + widgets = [] + loadPromise = new Promise((resolve) => { + loadResolve = () => { + loadPromise = null + resolve() + log('Load Promise resolved') + } + }) +} + +async function registerDefinition ({ definition, project }, context) { + definition.hasConfigPrompts = !!definition.onConfigOpen + + // Default icon + if (!definition.icon) { + const plugins = require('./plugins') + const plugin = plugins.findOne({ id: definition.pluginId, file: cwd.get() }, context) + const logo = await plugins.getLogo(plugin, context) + if (logo) { + definition.icon = `${logo}?project=${project.id}` + } + } + + widgetDefs.set(definition.id, definition) +} + +function listDefinitions (context) { + return widgetDefs.values() +} + +function findDefinition ({ definitionId }, context) { + const def = widgetDefs.get(definitionId) + if (!def) { + throw new Error(`Widget definition ${definitionId} not found`) + } + return def +} + +async function list (context) { + log('loadPromise', loadPromise) + if (loadPromise) { + await loadPromise + } + log('widgets', widgets) + return widgets +} + +function load (context) { + const projects = require('./projects') + const id = projects.getCurrent(context).id + const project = context.db.get('projects').find({ id }).value() + widgets = project.widgets + + if (!widgets) { + widgets = getDefaultWidgets() + } + + widgets.forEach(widget => { + updateCount(widget.definitionId, 1) + }) + + log('Widgets loaded', widgets.length) + + loadResolve() +} + +function save (context) { + const projects = require('./projects') + const id = projects.getCurrent(context).id + context.db.get('projects').find({ id }).assign({ + widgets + }).write() +} + +function canAddMore (definition, context) { + if (definition.maxCount) { + return getCount(definition.id) < definition.maxCount + } + return true +} + +function add ({ definitionId }, context) { + const definition = findDefinition({ definitionId }, context) + + const { x, y, width, height } = findValidPosition(definition) + + const widget = { + id: shortid(), + definitionId, + x, + y, + width, + height, + config: null, + configured: !definition.needsUserConfig + } + + // Default config + if (definition.defaultConfig) { + widget.config = definition.defaultConfig({ + definition + }) + } + + updateCount(definitionId, 1) + widgets.push(widget) + save(context) + + if (definition.onAdded) { + definition.onAdded({ widget, definition }) + } + + return widget +} + +function getCount (definitionId) { + if (widgetCount.has(definitionId)) { + return widgetCount.get(definitionId) + } else { + return 0 + } +} + +function updateCount (definitionId, mod) { + widgetCount.set(definitionId, getCount(definitionId) + mod) +} + +function findValidPosition (definition, currentWidget = null) { + // Find next available space + const width = (currentWidget && currentWidget.width) || definition.defaultWidth || definition.minWidth + const height = (currentWidget && currentWidget.height) || definition.defaultHeight || definition.minHeight + // Mark occupied positions on the grid + const grid = new Map() + for (const widget of widgets) { + if (widget !== currentWidget) { + for (let x = widget.x; x < widget.x + widget.width; x++) { + for (let y = widget.y; y < widget.y + widget.height; y++) { + grid.set(`${x}:${y}`, true) + } + } + } + } + // Go through the possible positions + let x = 0 + let y = 0 + while (true) { + // Virtual "line brak" + if (x !== 0 && x + width >= 7) { + x = 0 + y++ + } + const { result, testX } = hasEnoughSpace(grid, x, y, width, height) + if (!result) { + x = testX + 1 + continue + } + // Found! :) + break + } + + return { + x, + y, + width, + height + } +} + +function hasEnoughSpace (grid, x, y, width, height) { + // Test if enough horizontal available space + for (let testX = x; testX < x + width; testX++) { + // Test if enough vertical available space + for (let testY = y; testY < y + height; testY++) { + if (grid.get(`${testX}:${testY}`)) { + return { result: false, testX } + } + } + } + return { result: true } +} + +function findById ({ id }, context) { + return widgets.find(w => w.id === id) +} + +function remove ({ id }, context) { + const index = widgets.findIndex(w => w.id === id) + if (index !== -1) { + const widget = widgets[index] + updateCount(widget.definitionId, -1) + widgets.splice(index, 1) + save(context) + + const definition = findDefinition(widget, context) + if (definition.onAdded) { + definition.onAdded({ widget, definition }) + } + + return widget + } +} + +function move (input, context) { + const widget = findById(input, context) + if (widget) { + widget.x = input.x + widget.y = input.y + const definition = findDefinition(widget, context) + widget.width = input.width + widget.height = input.height + if (widget.width < definition.minWidth) widget.width = definition.minWidth + if (widget.width > definition.maxWidth) widget.width = definition.maxWidth + if (widget.height < definition.minHeight) widget.height = definition.minHeight + if (widget.height > definition.maxHeight) widget.height = definition.maxHeight + + for (const otherWidget of widgets) { + if (otherWidget !== widget) { + if (areOverlapping(otherWidget, widget)) { + const otherDefinition = findDefinition(otherWidget, context) + Object.assign(otherWidget, findValidPosition(otherDefinition, otherWidget)) + } + } + } + + save(context) + } + return widgets +} + +function areOverlapping (widgetA, widgetB) { + return ( + widgetA.x + widgetA.width - 1 >= widgetB.x && + widgetA.x <= widgetB.x + widgetB.width - 1 && + widgetA.y + widgetA.height - 1 >= widgetB.y && + widgetA.y <= widgetB.y + widgetB.height - 1 + ) +} + +async function openConfig ({ id }, context) { + const widget = findById({ id }, context) + const definition = findDefinition(widget, context) + if (definition.onConfigOpen) { + const result = await definition.onConfigOpen({ + widget, + definition, + context + }) + await prompts.reset(widget.config || {}) + result.prompts.forEach(prompts.add) + await prompts.start() + currentWidget = widget + } + return widget +} + +function getConfigPrompts ({ id }, context) { + return currentWidget && currentWidget.id === id ? prompts.list() : [] +} + +function saveConfig ({ id }, context) { + const widget = findById({ id }, context) + widget.config = prompts.getAnswers() + widget.configured = true + save(context) + currentWidget = null + return widget +} + +function resetConfig ({ id }, context) { + // const widget = findById({ id }, context) + // TODO + save(context) +} + +module.exports = { + reset, + registerDefinition, + listDefinitions, + findDefinition, + list, + load, + save, + canAddMore, + getCount, + add, + remove, + move, + openConfig, + getConfigPrompts, + saveConfig, + resetConfig +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/context.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/context.js" new file mode 100644 index 0000000000000000000000000000000000000000..195d10d98a52387a2928f1c74d7a0c0ce2784693 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/context.js" @@ -0,0 +1,13 @@ +const { db } = require('./util/db') +const pubsub = require('./pubsub') +const cwd = require('./connectors/cwd') + +// Context passed to all resolvers (third argument) +// eslint-disable-next-line no-unused-vars +module.exports = ({ req } = {}) => { + return { + db, + pubsub, + cwd: cwd.get() + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/directives.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/directives.js" new file mode 100644 index 0000000000000000000000000000000000000000..390c09df3fbb7136c7fae2081b75cef177743127 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/directives.js" @@ -0,0 +1,3 @@ +module.exports = { + // GraphQL directives here +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/mocks.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/mocks.js" new file mode 100644 index 0000000000000000000000000000000000000000..550b8f5541ed1f2eb80a41b11f82eadcd2e3191f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/mocks.js" @@ -0,0 +1,5 @@ +// Enable mocking in vue.config.js with `"pluginOptions": { "graphqlMock": true }` +// Customize mocking: https://www.apollographql.com/docs/graphql-tools/mocking.html#Customizing-mocks +module.exports = { + // Mock resolvers here +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/pubsub.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/pubsub.js" new file mode 100644 index 0000000000000000000000000000000000000000..881b0dccad6f18d279ae37a2b6680452a1784e53 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/pubsub.js" @@ -0,0 +1,5 @@ +const { PubSub } = require('graphql-subscriptions') + +const pubsub = new PubSub() +pubsub.ee.setMaxListeners(Infinity) +module.exports = pubsub diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/resolvers.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/resolvers.js" new file mode 100644 index 0000000000000000000000000000000000000000..99fc304712b046c445da5905fc9c5f5656a31c87 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/resolvers.js" @@ -0,0 +1,98 @@ +const { withFilter } = require('graphql-subscriptions') +const globby = require('globby') +const merge = require('lodash.merge') +const { GraphQLJSON } = require('graphql-type-json') +// Channels for subscriptions +const channels = require('./channels') +// Connectors +const cwd = require('./connectors/cwd') +const progress = require('./connectors/progress') +const files = require('./connectors/files') +const clientAddons = require('./connectors/client-addons') +const sharedData = require('./connectors/shared-data') +const locales = require('./connectors/locales') +// Utils +const stats = require('./util/stats') +// Start ipc server +require('./util/ipc') + +process.env.VUE_CLI_API_MODE = true + +const resolvers = [{ + JSON: GraphQLJSON, + + DescribedEntity: { + __resolveType (obj, context, info) { + return null + } + }, + + ClientAddon: { + url: (addon, args, context) => clientAddons.getUrl(addon, context) + }, + + Query: { + cwd: () => cwd.get(), + progress: (root, { id }, context) => progress.get(id, context), + clientAddons: (root, args, context) => clientAddons.list(context), + sharedData: (root, args, context) => sharedData.get(args, context), + locales: (root, args, context) => locales.list(context) + }, + + Mutation: { + fileOpenInEditor: (root, { input }, context) => files.openInEditor(input, context), + sharedDataUpdate: (root, args, context) => sharedData.set(args, context) + }, + + Subscription: { + cwdChanged: { + subscribe: (parent, args, { pubsub }) => pubsub.asyncIterator(channels.CWD_CHANGED) + }, + progressChanged: { + subscribe: withFilter( + // Iterator + (parent, args, { pubsub }) => pubsub.asyncIterator(channels.PROGRESS_CHANGED), + // Filter + (payload, vars) => payload.progressChanged.id === vars.id + ) + }, + progressRemoved: { + subscribe: withFilter( + // Iterator + (parent, args, { pubsub }) => pubsub.asyncIterator(channels.PROGRESS_REMOVED), + // Filter + (payload, vars) => payload.progressRemoved === vars.id + ) + }, + clientAddonAdded: { + subscribe: (parent, args, { pubsub }) => pubsub.asyncIterator(channels.CLIENT_ADDON_ADDED) + }, + sharedDataUpdated: { + subscribe: withFilter( + (parent, args, { pubsub }) => pubsub.asyncIterator(channels.SHARED_DATA_UPDATED), + (payload, vars) => { + const result = payload.sharedDataUpdated.id === vars.id && payload.sharedDataUpdated.projectId === vars.projectId + if (result) { + stats.get(`shared-data_${vars.projectId}`, vars.id).value++ + } + return result + } + ) + }, + localeAdded: { + subscribe: (parent, args, { pubsub }) => pubsub.asyncIterator(channels.LOCALE_ADDED) + }, + routeRequested: { + subscribe: (parent, args, { pubsub }) => pubsub.asyncIterator(channels.ROUTE_REQUESTED) + } + } +}] + +// Load resolvers in './schema' +const paths = globby.sync(['./schema/*.js'], { cwd: __dirname, absolute: true }) +paths.forEach(file => { + const { resolvers: r } = require(file) + r && resolvers.push(r) +}) + +module.exports = merge.apply(null, resolvers) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/configuration.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/configuration.js" new file mode 100644 index 0000000000000000000000000000000000000000..997dc24572720b426f56654d6b9a82d3af8b46e7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/configuration.js" @@ -0,0 +1,51 @@ +const gql = require('graphql-tag') +// Connectors +const cwd = require('../connectors/cwd') +const configurations = require('../connectors/configurations') +const plugins = require('../connectors/plugins') + +exports.types = gql` +extend type Query { + configurations: [Configuration] + configuration (id: ID!): Configuration +} + +extend type Mutation { + configurationSave (id: ID!): Configuration + configurationCancel (id: ID!): Configuration +} + +type Configuration implements DescribedEntity { + id: ID! + name: String! + description: String + link: String + icon: String + plugin: Plugin + tabs: [ConfigurationTab]! +} + +type ConfigurationTab { + id: ID! + label: String! + icon: String + prompts: [Prompt] +} +` + +exports.resolvers = { + Configuration: { + tabs: (configuration, args, context) => configurations.getPromptTabs(configuration.id, context), + plugin: (configuration, args, context) => plugins.findOne({ id: configuration.pluginId, file: cwd.get() }, context) + }, + + Query: { + configurations: (root, args, context) => configurations.list(context), + configuration: (root, { id }, context) => configurations.findOne(id, context) + }, + + Mutation: { + configurationSave: (root, { id }, context) => configurations.save(id, context), + configurationCancel: (root, { id }, context) => configurations.cancel(id, context) + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/console.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/console.js" new file mode 100644 index 0000000000000000000000000000000000000000..e078d31bb52b2664e0a5eaf5e5128ccec485df48 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/console.js" @@ -0,0 +1,53 @@ +const gql = require('graphql-tag') +// Subs +const channels = require('../channels') +// Connectors +const logs = require('../connectors/logs') + +exports.types = gql` +extend type Query { + consoleLogs: [ConsoleLog] + consoleLogLast: ConsoleLog +} + +extend type Mutation { + consoleLogsClear: [ConsoleLog] +} + +extend type Subscription { + consoleLogAdded: ConsoleLog! +} + +type ConsoleLog { + id: ID! + message: String! + tag: String + type: ConsoleLogType! + date: String +} + +enum ConsoleLogType { + log + warn + error + info + done +} +` + +exports.resolvers = { + Query: { + consoleLogs: (root, args, context) => logs.list(context), + consoleLogLast: (root, args, context) => logs.last(context) + }, + + Mutation: { + consoleLogsClear: (root, args, context) => logs.clear(context) + }, + + Subscription: { + consoleLogAdded: { + subscribe: (parent, args, context) => context.pubsub.asyncIterator(channels.CONSOLE_LOG_ADDED) + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/dependency.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/dependency.js" new file mode 100644 index 0000000000000000000000000000000000000000..adf540bf1271ba1d2e80d2282ee28e578b0c063f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/dependency.js" @@ -0,0 +1,66 @@ +const gql = require('graphql-tag') +// Connectors +const cwd = require('../connectors/cwd') +const dependencies = require('../connectors/dependencies') + +exports.types = gql` +extend type Query { + dependencies: [Dependency] + dependency (id: ID!): Dependency +} + +extend type Mutation { + dependencyInstall (input: DependencyInstall!): Dependency + dependencyUninstall (input: DependencyUninstall!): Dependency + dependencyUpdate (input: DependencyUpdate!): Dependency + dependenciesUpdate: [Dependency] +} + +type Dependency { + id: ID! + type: DependencyType! + version: Version! + installed: Boolean + website: String + description: String + githubStats: GitHubStats +} + +enum DependencyType { + dependencies + devDependencies +} + +input DependencyInstall { + id: ID! + type: DependencyType! + range: String +} + +input DependencyUninstall { + id: ID! +} + +input DependencyUpdate { + id: ID! +} +` + +exports.resolvers = { + Dependency: { + version: (dependency, args, context) => dependencies.getVersion(dependency, context), + description: (dependency, args, context) => dependencies.getDescription(dependency, context) + }, + + Query: { + dependencies: (root, args, context) => dependencies.list(cwd.get(), context), + dependency: (root, { id }, context) => dependencies.findOne(id, context) + }, + + Mutation: { + dependencyInstall: (root, { input }, context) => dependencies.install(input, context), + dependencyUninstall: (root, { input }, context) => dependencies.uninstall(input, context), + dependencyUpdate: (root, { input }, context) => dependencies.update(input, context), + dependenciesUpdate: (root, args, context) => dependencies.updateAll(context) + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/folder.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/folder.js" new file mode 100644 index 0000000000000000000000000000000000000000..79876aad77e4175a38759d8686b1771dd068d8da --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/folder.js" @@ -0,0 +1,54 @@ +const gql = require('graphql-tag') +// Connectors +const folders = require('../connectors/folders') +const cwd = require('../connectors/cwd') + +exports.types = gql` +extend type Query { + folderCurrent: Folder + foldersFavorite: [Folder] + folderExists (file: String!): Boolean +} + +extend type Mutation { + folderOpen (path: String!): Folder + folderOpenParent: Folder + folderSetFavorite (path: String!, favorite: Boolean!): Folder + folderCreate(name: String!): Folder +} + +type Folder { + name: String! + path: String! + isPackage: Boolean + isVueProject: Boolean + favorite: Boolean + children: [Folder] + hidden: Boolean +} +` + +exports.resolvers = { + Folder: { + children: (folder, args, context) => folders.list(folder.path, context), + isPackage: (folder, args, context) => folders.isPackage(folder.path, context), + isVueProject: (folder, args, context) => folders.isVueProject(folder.path, context), + favorite: (folder, args, context) => folders.isFavorite(folder.path, context) + }, + + Query: { + folderCurrent: (root, args, context) => folders.getCurrent(args, context), + foldersFavorite: (root, args, context) => folders.listFavorite(context), + folderExists: (root, { file }, context) => folders.isDirectory(file) + }, + + Mutation: { + folderOpen: (root, { path }, context) => folders.open(path, context), + folderOpenParent: (root, args, context) => folders.openParent(cwd.get(), context), + folderSetFavorite: (root, args, context) => folders.setFavorite({ + file: args.path, + favorite: args.favorite + }, context), + folderCreate: (root, { name }, context) => folders.create(name, context) + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/git.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/git.js" new file mode 100644 index 0000000000000000000000000000000000000000..dbefcdd82eb8a3e28044bb69e7275eb9c195718f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/git.js" @@ -0,0 +1,56 @@ +const gql = require('graphql-tag') +// Connectors +const git = require('../connectors/git') + +exports.types = gql` +extend type Query { + fileDiffs: [FileDiff] +} + +extend type Mutation { + gitCommit (message: String!): Boolean +} + +type FileDiff { + id: ID! + from: String + to: String + new: Boolean + deleted: Boolean + binary: Boolean + chunks: [FileDiffChunk] +} + +type FileDiffChunk { + changes: [FileDiffChange] + oldStart: Int + oldLines: Int + newStart: Int + newLines: Int +} + +type FileDiffChange { + type: FileDiffChangeType + ln: Int + ln1: Int + ln2: Int + content: String + normal: Boolean +} + +enum FileDiffChangeType { + normal + add + del +} +` + +exports.resolvers = { + Query: { + fileDiffs: (root, args, context) => git.getDiffs(context) + }, + + Mutation: { + gitCommit: (root, { message }, context) => git.commit(message, context) + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/plugin.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/plugin.js" new file mode 100644 index 0000000000000000000000000000000000000000..7a007742a2ea1ab125d4f5cad216516bd2dc6ac7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/plugin.js" @@ -0,0 +1,104 @@ +const gql = require('graphql-tag') +// Subs +const channels = require('../channels') +// Connectors +const cwd = require('../connectors/cwd') +const plugins = require('../connectors/plugins') +const dependencies = require('../connectors/dependencies') + +exports.types = gql` +extend type Query { + pluginInstallation: PluginInstallation + plugins: [Plugin] + plugin (id: ID!): Plugin +} + +extend type Mutation { + pluginInstall (id: ID!): PluginInstallation + pluginInstallLocal: PluginInstallation + pluginUninstall (id: ID!): PluginInstallation + pluginInvoke (id: ID!): PluginInstallation + pluginFinishInstall: PluginInstallation + pluginUpdate (id: ID!, full: Boolean = true): Plugin + pluginActionCall (id: ID!, params: JSON): PluginActionResult + pluginsUpdate: [Plugin] + pluginResetApi: Boolean +} + +extend type Subscription { + pluginActionCalled: PluginActionCall + pluginActionResolved: PluginActionResult +} + +type Plugin { + id: ID! + version: Version! + official: Boolean + installed: Boolean + website: String + description: String + githubStats: GitHubStats + logo: String +} + +type PluginInstallation { + id: ID! + pluginId: ID + step: PluginInstallationStep + prompts: [Prompt] +} + +enum PluginInstallationStep { + install + uninstall + config + diff +} + +type PluginActionCall { + id: ID! + params: JSON +} + +type PluginActionResult { + id: ID! + params: JSON + results: [JSON] + errors: [JSON] +} +` + +exports.resolvers = { + Plugin: { + version: (plugin, args, context) => dependencies.getVersion(plugin, context), + description: (plugin, args, context) => dependencies.getDescription(plugin, context), + logo: (plugin, args, context) => plugins.getLogo(plugin, context) + }, + + Query: { + pluginInstallation: (root, args, context) => plugins.getInstallation(context), + plugins: (root, args, context) => plugins.list(cwd.get(), context), + plugin: (root, { id }, context) => plugins.findOne({ id, file: cwd.get() }, context) + }, + + Mutation: { + pluginInstall: (root, { id }, context) => plugins.install(id, context), + pluginInstallLocal: (root, args, context) => plugins.installLocal(context), + pluginUninstall: (root, { id }, context) => plugins.uninstall(id, context), + pluginInvoke: (root, { id }, context) => plugins.runInvoke(id, context), + pluginFinishInstall: (root, args, context) => plugins.finishInstall(context), + pluginUpdate: (root, { id, full }, context) => plugins.update({ id, full }, context), + pluginActionCall: (root, args, context) => plugins.callAction(args, context), + pluginsUpdate: (root, args, context) => plugins.updateAll(context), + pluginResetApi: (root, args, context) => plugins.resetPluginApi({ file: cwd.get() }, context) + }, + + Subscription: { + pluginActionCalled: { + subscribe: (parent, args, { pubsub }) => pubsub.asyncIterator(channels.PLUGIN_ACTION_CALLED) + }, + pluginActionResolved: { + subscribe: (parent, args, { pubsub }) => pubsub.asyncIterator(channels.PLUGIN_ACTION_RESOLVED) + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/project.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/project.js" new file mode 100644 index 0000000000000000000000000000000000000000..cf6a36b12784c5be631efdd3d94b887034a4267f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/project.js" @@ -0,0 +1,113 @@ +const gql = require('graphql-tag') +// Connectors +const projects = require('../connectors/projects') +const plugins = require('../connectors/plugins') +const tasks = require('../connectors/tasks') + +exports.types = gql` +extend type Query { + projects: [Project] + projectCurrent: Project + projectCreation: ProjectCreation +} + +extend type Mutation { + projectInitCreation: ProjectCreation + projectCancelCreation: Boolean + projectCreate (input: ProjectCreateInput!): Project! + projectImport (input: ProjectImportInput!): Project! + projectOpen (id: ID!): Project! + projectRemove (id: ID!): Boolean! + projectCwdReset: String + projectSetFavorite (id: ID!, favorite: Int!): Project! + projectRename (id: ID!, name: String!): Project! + presetApply (id: ID!): ProjectCreation + featureSetEnabled (id: ID!, enabled: Boolean): Feature +} + +type Project { + id: ID! + name: String! + type: ProjectType + path: String! + favorite: Int + plugins: [Plugin] + tasks: [Task] + homepage: String + openDate: JSON +} + +enum ProjectType { + vue + unknown +} + +input ProjectCreateInput { + folder: String! + force: Boolean! + bare: Boolean! + packageManager: PackageManager + preset: String! + remote: String + clone: Boolean + save: String + enableGit: Boolean! + gitCommitMessage: String +} + +input ProjectImportInput { + path: String! + force: Boolean +} + +type Preset implements DescribedEntity { + id: ID! + name: String + description: String + link: String + features: [String] +} + +type ProjectCreation { + presets: [Preset] + features: [Feature] + prompts: [Prompt] +} + +type Feature implements DescribedEntity { + id: ID! + name: String + description: String + link: String + enabled: Boolean! +} +` + +exports.resolvers = { + Project: { + type: (project, args, context) => projects.getType(project, context), + plugins: (project, args, context) => plugins.list(project.path, context), + tasks: (project, args, context) => tasks.list({ file: project.path }, context), + homepage: (project, args, context) => projects.getHomepage(project, context) + }, + + Query: { + projects: (root, args, context) => projects.list(context), + projectCurrent: (root, args, context) => projects.getCurrent(context), + projectCreation: (root, args, context) => projects.getCreation(context) + }, + + Mutation: { + projectInitCreation: (root, args, context) => projects.initCreator(context), + projectCancelCreation: (root, args, context) => projects.removeCreator(context), + projectCreate: (root, { input }, context) => projects.create(input, context), + projectImport: (root, { input }, context) => projects.import(input, context), + projectOpen: (root, { id }, context) => projects.open(id, context), + projectRemove: (root, { id }, context) => projects.remove(id, context), + projectCwdReset: (root, args, context) => projects.resetCwd(context), + projectSetFavorite: (root, args, context) => projects.setFavorite(args, context), + projectRename: (root, args, context) => projects.rename(args, context), + presetApply: (root, { id }, context) => projects.applyPreset(id, context), + featureSetEnabled: (root, args, context) => projects.setFeatureEnabled(args, context) + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/prompt.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/prompt.js" new file mode 100644 index 0000000000000000000000000000000000000000..589011e061f8c2efd50c4e0f234a6995d6646807 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/prompt.js" @@ -0,0 +1,62 @@ +const gql = require('graphql-tag') +// Connectors +const prompts = require('../connectors/prompts') + +exports.types = gql` +extend type Mutation { + promptAnswer (input: PromptInput!): [Prompt] +} + +type Prompt implements DescribedEntity { + id: ID! + type: PromptType! + visible: Boolean! + enabled: Boolean + name: String + message: String + group: String + description: String + link: String + choices: [PromptChoice] + value: String + valueChanged: Boolean + error: PromptError + tabId: String +} + +input PromptInput { + id: ID! + value: String! +} + +type PromptChoice { + value: String! + name: String + checked: Boolean + disabled: Boolean + isDefault: Boolean +} + +type PromptError { + message: String! + link: String +} + +enum PromptType { + input + confirm + list + rawlist + expand + checkbox + password + editor + color +} +` + +exports.resolvers = { + Mutation: { + promptAnswer: (root, { input }, context) => prompts.answerPrompt(input, context) + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/suggestion.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/suggestion.js" new file mode 100644 index 0000000000000000000000000000000000000000..533a97fce092c4af570a57c64a6140b80e2d9302 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/suggestion.js" @@ -0,0 +1,70 @@ +const gql = require('graphql-tag') +// Subs +const channels = require('../channels') +// Connectors +const suggestions = require('../connectors/suggestions') + +exports.types = gql` +extend type Query { + suggestions: [Suggestion] +} + +extend type Mutation { + suggestionActivate (input: SuggestionActivate!): Suggestion +} + +extend type Subscription { + suggestionAdded: Suggestion + suggestionUpdated: Suggestion + suggestionRemoved: Suggestion +} + +type Suggestion { + id: ID! + type: SuggestionType! + importance: SuggestionImportance! + label: String! + image: String + message: String + link: String + actionLink: String + busy: Boolean! +} + +enum SuggestionType { + action +} + +enum SuggestionImportance { + critical + important + normal + secondary +} + +input SuggestionActivate { + id: ID! +} +` + +exports.resolvers = { + Query: { + suggestions: (root, args, context) => suggestions.list(context) + }, + + Mutation: { + suggestionActivate: (root, { input }, context) => suggestions.activate(input, context) + }, + + Subscription: { + suggestionAdded: { + subscribe: (parent, args, { pubsub }) => pubsub.asyncIterator(channels.SUGGESTION_ADDED) + }, + suggestionUpdated: { + subscribe: (parent, args, { pubsub }) => pubsub.asyncIterator(channels.SUGGESTION_UPDATED) + }, + suggestionRemoved: { + subscribe: (parent, args, { pubsub }) => pubsub.asyncIterator(channels.SUGGESTION_REMOVED) + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/task.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/task.js" new file mode 100644 index 0000000000000000000000000000000000000000..222394c0ea7640c6b1c943c5a2aa29cd3ee010c4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/task.js" @@ -0,0 +1,105 @@ +const gql = require('graphql-tag') +// Subs +const { withFilter } = require('graphql-subscriptions') +const channels = require('../channels') +// Connectors +const tasks = require('../connectors/tasks') +const plugins = require('../connectors/plugins') +const projects = require('../connectors/projects') + +exports.types = gql` +extend type Query { + tasks: [Task] + task (id: ID!): Task +} + +extend type Mutation { + taskRun (id: ID!): Task + taskStop (id: ID!): Task + taskLogsClear (id: ID!): Task + taskOpen (id: ID!): Boolean + taskSaveParameters (id: ID!): [Prompt] + taskRestoreParameters (id: ID!): [Prompt] +} + +extend type Subscription { + taskChanged: Task + taskLogAdded (id: ID!): TaskLog +} + +type Task implements DescribedEntity { + id: ID! + status: TaskStatus! + command: String! + name: String + description: String + link: String + icon: String + logs: [TaskLog] + prompts: [Prompt] + views: [TaskView] + defaultView: String + plugin: Plugin + project: Project +} + +enum TaskStatus { + idle + running + done + error + terminated +} + +type TaskLog { + taskId: ID! + type: TaskLogType! + text: String +} + +enum TaskLogType { + stdout + stderr +} + +type TaskView { + id: ID! + label: String! + component: String! + icon: String +} +` + +exports.resolvers = { + Task: { + prompts: (task, args, context) => tasks.getPrompts(task.id, context), + plugin: (task, args, context) => plugins.findOne({ id: task.pluginId, file: task.path }, context), + project: (task, args, context) => projects.findByPath(task.path, context) + }, + + Query: { + tasks: (root, args, context) => tasks.list(undefined, context), + task: (root, { id }, context) => tasks.findOne(id, context) + }, + + Mutation: { + taskRun: (root, { id }, context) => tasks.run(id, context), + taskStop: (root, { id }, context) => tasks.stop(id, context), + taskLogsClear: (root, { id }, context) => tasks.clearLogs(id, context), + taskOpen: (root, { id }, context) => tasks.open(id, context), + taskSaveParameters: (root, { id }, context) => tasks.saveParameters({ id }, context), + taskRestoreParameters: (root, { id }, context) => tasks.restoreParameters({ id }, context) + }, + + Subscription: { + taskChanged: { + subscribe: (parent, args, { pubsub }) => pubsub.asyncIterator(channels.TASK_CHANGED) + }, + taskLogAdded: { + subscribe: withFilter( + (parent, args, { pubsub }) => pubsub.asyncIterator(channels.TASK_LOG_ADDED), + (payload, vars) => payload.taskLogAdded.taskId === vars.id + ) + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/view.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/view.js" new file mode 100644 index 0000000000000000000000000000000000000000..de4ed1541b11b4ae2f5f02376bb63cf3184ae7ba --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/view.js" @@ -0,0 +1,70 @@ +const gql = require('graphql-tag') +// Sub +const channels = require('../channels') +// Connectors +const views = require('../connectors/views') + +exports.types = gql` +extend type Query { + views: [View] +} + +extend type Mutation { + viewOpen (id: ID!): Boolean +} + +extend type Subscription { + viewAdded: View + viewRemoved: View + viewChanged: View +} + +type View { + id: ID! + name: String! + icon: String! + tooltip: String + badges: [ViewBadge] + projectTypes: [ProjectType] +} + +type ViewBadge { + id: ID! + type: ViewBadgeType! + count: Int + label: String! + priority: Int! + hidden: Boolean! +} + +enum ViewBadgeType { + info + success + warning + error + accent + dim +} +` + +exports.resolvers = { + Query: { + views: (root, args, context) => views.list(context) + }, + + Mutation: { + viewOpen: (root, { id }, context) => views.open(id, context) + }, + + Subscription: { + viewAdded: { + subscribe: (parent, args, { pubsub }) => pubsub.asyncIterator(channels.VIEW_ADDED) + }, + viewChanged: { + subscribe: (parent, args, { pubsub }) => pubsub.asyncIterator(channels.VIEW_CHANGED) + }, + viewRemoved: { + subscribe: (parent, args, { pubsub }) => pubsub.asyncIterator(channels.VIEW_REMOVED) + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/widget.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/widget.js" new file mode 100644 index 0000000000000000000000000000000000000000..62587f268b05265f9ca0bf5464fbcb8a08222eb1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/schema/widget.js" @@ -0,0 +1,90 @@ +const gql = require('graphql-tag') +// Connectors +const widgets = require('../connectors/widgets') + +exports.types = gql` +extend type Query { + widgetDefinitions: [WidgetDefinition] + widgets: [Widget] +} + +extend type Mutation { + widgetAdd (input: WidgetAddInput!): Widget! + widgetRemove (id: ID!): Widget + widgetMove (input: WidgetMoveInput!): [Widget]! + widgetConfigOpen (id: ID!): Widget! + widgetConfigSave (id: ID!): Widget! + widgetConfigReset (id: ID!): Widget! +} + +type WidgetDefinition { + id: ID! + title: String! + description: String + longDescription: String + link: String + icon: String + screenshot: String + component: String! + detailsComponent: String + canAddMore: Boolean! + hasConfigPrompts: Boolean! + count: Int! + maxCount: Int + minWidth: Int! + minHeight: Int! + maxWidth: Int! + maxHeight: Int! + openDetailsButton: Boolean +} + +type Widget { + id: ID! + definition: WidgetDefinition! + x: Int! + y: Int! + width: Int! + height: Int! + prompts: [Prompt] + config: JSON + configured: Boolean! +} + +input WidgetAddInput { + definitionId: ID! +} + +input WidgetMoveInput { + id: ID! + x: Int + y: Int + width: Int + height: Int +} +` + +exports.resolvers = { + WidgetDefinition: { + canAddMore: (definition, args, context) => widgets.canAddMore(definition, context), + count: (definition, args, context) => widgets.getCount(definition.id) + }, + + Widget: { + definition: (widget, args, context) => widgets.findDefinition(widget, context), + prompts: (widget, args, context) => widgets.getConfigPrompts(widget, context) + }, + + Query: { + widgetDefinitions: (root, args, context) => widgets.listDefinitions(context), + widgets: (root, args, context) => widgets.list(context) + }, + + Mutation: { + widgetAdd: (root, { input }, context) => widgets.add(input, context), + widgetRemove: (root, { id }, context) => widgets.remove({ id }, context), + widgetMove: (root, { input }, context) => widgets.move(input, context), + widgetConfigOpen: (root, { id }, context) => widgets.openConfig({ id }, context), + widgetConfigSave: (root, { id }, context) => widgets.saveConfig({ id }, context), + widgetConfigReset: (root, { id }, context) => widgets.resetConfig({ id }, context) + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/server.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/server.js" new file mode 100644 index 0000000000000000000000000000000000000000..9513f989f418d73fa1feed74dc0aa3040c013222 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/server.js" @@ -0,0 +1,28 @@ +const path = require('path') +const express = require('express') +const fallback = require('express-history-api-fallback') +// Connectors +const clientAddons = require('./connectors/client-addons') +const plugins = require('./connectors/plugins') + +const distPath = path.resolve(__dirname, '../dist') +const publicPath = path.resolve(__dirname, '../ui-public') + +const CACHE_CONTROL = 'no-store, no-cache, must-revalidate, private' + +module.exports = app => { + app.use(express.static(distPath, { setHeaders })) + app.use('/public', express.static(publicPath, { setHeaders })) + app.use('/_plugin/:id/*', plugins.serve) + app.use('/_plugin-logo/:id', plugins.serveLogo) + app.use('/_addon/:id/*', clientAddons.serve) + app.use(fallback(path.join(distPath, 'index.html'), { + headers: { + 'Cache-Control': CACHE_CONTROL + } + })) +} + +function setHeaders (res, path, stat) { + res.set('Cache-Control', CACHE_CONTROL) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/type-defs.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/type-defs.js" new file mode 100644 index 0000000000000000000000000000000000000000..028532667d90b7658c0556739e39d86a4961b96b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/type-defs.js" @@ -0,0 +1,94 @@ +const gql = require('graphql-tag') +const globby = require('globby') + +const typeDefs = [gql` +scalar JSON + +enum PackageManager { + npm + yarn + pnpm +} + +interface DescribedEntity { + name: String + description: String + link: String +} + +type Version { + current: String + latest: String + wanted: String + range: String + localPath: String +} + +type GitHubStats { + stars: Int +} + +type Progress { + id: ID! + status: String + info: String + error: String + # Progress from 0 to 1 (-1 means disabled) + progress: Float + args: [String] +} + +input OpenInEditorInput { + file: String! + line: Int + column: Int + gitPath: Boolean +} + +type ClientAddon { + id: ID! + url: String! +} + +type SharedData { + id: ID! + value: JSON +} + +type Locale { + lang: String! + strings: JSON! +} + +type Query { + progress (id: ID!): Progress + cwd: String! + clientAddons: [ClientAddon] + sharedData (id: ID!, projectId: ID!): SharedData + locales: [Locale] +} + +type Mutation { + fileOpenInEditor (input: OpenInEditorInput!): Boolean + sharedDataUpdate (id: ID!, projectId: ID!, value: JSON!): SharedData +} + +type Subscription { + progressChanged (id: ID!): Progress + progressRemoved (id: ID!): ID + cwdChanged: String! + clientAddonAdded: ClientAddon + sharedDataUpdated (id: ID!, projectId: ID!): SharedData + localeAdded: Locale + routeRequested: JSON! +} +`] + +// Load types in './schema' +const paths = globby.sync(['./schema/*.js'], { cwd: __dirname, absolute: true }) +paths.forEach(file => { + const { types } = require(file) + types && typeDefs.push(types) +}) + +module.exports = typeDefs diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/command.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/command.js" new file mode 100644 index 0000000000000000000000000000000000000000..c0792d344d18ac97dee5442860c0bfe3189b98a8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/command.js" @@ -0,0 +1,14 @@ +const { + hasYarn, + hasProjectYarn, + hasPnpm3OrLater, + hasProjectPnpm +} = require('@vue/cli-shared-utils') +const { loadOptions } = require('@vue/cli/lib/options') + +exports.getCommand = function (cwd = undefined) { + if (!cwd) { + return loadOptions().packageManager || (hasYarn() ? 'yarn' : hasPnpm3OrLater() ? 'pnpm' : 'npm') + } + return hasProjectYarn(cwd) ? 'yarn' : hasProjectPnpm(cwd) ? 'pnpm' : 'npm' +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/db.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/db.js" new file mode 100644 index 0000000000000000000000000000000000000000..e79354ba6630886f8900de7e00480a5d5b549aca --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/db.js" @@ -0,0 +1,18 @@ +const Lowdb = require('lowdb') +const FileSync = require('lowdb/adapters/FileSync') +const path = require('path') +const { rcFolder } = require('./rcFolder') + +const db = new Lowdb(new FileSync(path.resolve(rcFolder, 'db.json'))) + +// Seed an empty DB +db.defaults({ + projects: [], + foldersFavorite: [], + tasks: [], + config: {} +}).write() + +module.exports = { + db +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/highlight.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/highlight.js" new file mode 100644 index 0000000000000000000000000000000000000000..4fb367193cbe863f04833514bcb2263314bdaf13 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/highlight.js" @@ -0,0 +1,42 @@ +// Prism don't like cjs with EMS package +// So we use ES modules for the whole file +import Prism from 'prismjs' +import loadLanguages from 'prismjs/components/index.js' +import path from 'path' + +loadLanguages() + +const languages = [ + { test: /\.(html|vue|xml)$/, lang: 'markup' }, + { test: /\.js$/, lang: 'javascript' }, + { test: /\.sh$/, lang: 'bash' }, + { test: /\.coffee$/, lang: 'coffeescript' }, + { test: /\.gql$/, lang: 'graphql' }, + { test: /\.hx$/, lang: 'haxe' }, + { test: /\.md$/, lang: 'markdown' }, + { test: /\.py$/, lang: 'python' }, + { test: /\.rb$/, lang: 'ruby' }, + { test: /\.styl$/, lang: 'stylus' }, + { test: /\.ts$/, lang: 'typescript' }, + { test: /\.yml$/, lang: 'yaml' } +] + +export function highlightCode (filename, content, lang = null) { + let language + if (lang) { + language = { lang } + } + if (!language) { + language = languages.find(l => l.test.test(filename)) + } + if (!language) { + const ext = path.extname(filename).substr(1) + if (Prism.languages[ext]) { + language = { lang: ext } + } + } + // No language found + if (!language) return content + // Highlight code + return Prism.highlight(content, Prism.languages[language.lang], language.lang) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/ipc.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/ipc.js" new file mode 100644 index 0000000000000000000000000000000000000000..b7eb294cfd2d7953f02e57bbb672a0a1b3ad0f77 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/ipc.js" @@ -0,0 +1,53 @@ +const ipc = require('@achrinza/node-ipc') +// Utils +const { log, dumpObject } = require('../util/logger') + +ipc.config.id = process.env.VUE_CLI_IPC || 'vue-cli' +ipc.config.retry = 1500 +ipc.config.silent = true + +const listeners = [] + +ipc.serve(() => { + ipc.server.on('message', (data, socket) => { + log('IPC message', dumpObject(data)) + for (const listener of listeners) { + listener({ + data, + emit: data => { + ipc.server.emit(socket, 'message', data) + } + }) + } + }) + + ipc.server.on('ack', (data, socket) => { + log('IPC ack', dumpObject(data)) + if (data.done) { + ipc.server.emit(socket, 'ack', { ok: true }) + } + }) +}) + +ipc.server.start() + +function on (cb) { + listeners.push(cb) + return () => off(cb) +} + +function off (cb) { + const index = listeners.indexOf(cb) + if (index !== -1) listeners.splice(index, 1) +} + +function send (data) { + log('IPC send', dumpObject(data)) + ipc.server.broadcast('message', data) +} + +module.exports = { + on, + off, + send +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/logger.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/logger.js" new file mode 100644 index 0000000000000000000000000000000000000000..9f3db135ab2a40554258cd1adddd1dc45ab60371 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/logger.js" @@ -0,0 +1,30 @@ +const { chalk } = require('@vue/cli-shared-utils') + +exports.log = (...args) => { + if (!process.env.VUE_APP_CLI_UI_DEBUG) return + const date = new Date() + const timestamp = `${date.getHours().toString().padStart(2, '0')}:${date.getMinutes().toString().padStart(2, '0')}.${date.getSeconds().toString().padStart(2, '0')}` + const first = args.shift() + console.log(`${chalk.blue('UI')} ${chalk.dim(timestamp)}`, chalk.bold(first), ...args) +} + +const simpleTypes = [ + 'string', + 'number', + 'boolean' +] + +exports.dumpObject = (obj) => { + if (!process.env.VUE_APP_CLI_UI_DEBUG) return + const result = {} + Object.keys(obj).forEach(key => { + const value = obj[key] + const type = typeof value + if (simpleTypes.includes(type)) { + result[key] = value + } else { + result[key] = type + } + }) + return JSON.stringify(result) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/notification.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/notification.js" new file mode 100644 index 0000000000000000000000000000000000000000..7ee75e9b3810b0d0af4d8a0d5ffd546a9af83e98 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/notification.js" @@ -0,0 +1,30 @@ +const path = require('path') +const notifier = require('node-notifier') + +const builtinIcons = { + done: path.resolve(__dirname, '../../src/assets/done.png'), + error: path.resolve(__dirname, '../../src/assets/error.png') +} + +let notifCallback = null +exports.setNotificationCallback = cb => { + notifCallback = cb + ? (_err, action) => (action === 'activate') && cb() + : null +} + +// https://github.com/mikaelbr/node-notifier/issues/154 +// Specify appID to prevent SnoreToast shortcut installation. +// SnoreToast actually uses it as the string in the notification's +// title bar (different from title heading inside notification). +// This only has an effect in Windows. +const snoreToastOptions = notifier.Notification === notifier.WindowsToaster && { appID: 'Vue UI' } + +exports.notify = ({ title, message, icon }) => { + notifier.notify({ + ...snoreToastOptions, + title, + message, + icon: builtinIcons[icon] || icon + }, notifCallback) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/parse-args.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/parse-args.js" new file mode 100644 index 0000000000000000000000000000000000000000..b8770f125371b464ccd7cd04440b89835b998f44 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/parse-args.js" @@ -0,0 +1,27 @@ +/** + * @param {string} args + */ +exports.parseArgs = function (args) { + const parts = args.split(/\s+/) + const result = [] + let arg + let index = 0 + for (const part of parts) { + const l = part.length + if (!arg && part.charAt(0) === '"') { + arg = part.substr(1) + } else if (part.charAt(l - 1) === '"' && ( + l === 1 || part.charAt(l - 2) !== '\\' + )) { + arg += args.charAt(index - 1) + part.substr(0, l - 1) + result.push(arg) + arg = null + } else if (arg) { + arg += args.charAt(index - 1) + part + } else { + result.push(part) + } + index += part.length + 1 + } + return result +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/parse-diff.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/parse-diff.js" new file mode 100644 index 0000000000000000000000000000000000000000..5428cf8afe7682cdf5103ebed67034a7e2032aff --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/parse-diff.js" @@ -0,0 +1,192 @@ +// From https://github.com/sergeyt/parse-diff +module.exports = function (input) { + if (!input) { return [] } + if (input.match(/^\s+$/)) { return [] } + + const lines = input.split('\n') + if (lines.length === 0) { return [] } + + const files = [] + let file = null + let lnDel = 0 + let lnAdd = 0 + let current = null + + const start = function (line) { + file = { + chunks: [], + deletions: 0, + additions: 0 + } + files.push(file) + + if (!file.to && !file.from) { + const fileNames = parseFile(line) + + if (fileNames) { + file.from = fileNames[0] + file.to = fileNames[1] + } + } + } + + const restart = function () { + if (!file || file.chunks.length) { return start() } + } + + const newFile = function () { + restart() + file.new = true + file.from = '/dev/null' + } + + const deletedFile = function () { + restart() + file.deleted = true + file.to = '/dev/null' + } + + const index = function (line) { + restart() + file.index = line.split(' ').slice(1) + } + + const fromFile = function (line) { + restart() + file.from = parseFileFallback(line) + } + + const toFile = function (line) { + restart() + file.to = parseFileFallback(line) + } + + const binary = function (line) { + file.binary = true + } + + const chunk = function (line, match) { + let newStart, oldStart + lnDel = (oldStart = +match[1]) + const oldLines = +(match[2] || 0) + lnAdd = (newStart = +match[3]) + const newLines = +(match[4] || 0) + current = { + content: line, + changes: [], + oldStart, + oldLines, + newStart, + newLines + } + file.chunks.push(current) + } + + const del = function (line) { + if (!current) return + current.changes.push({ type: 'del', del: true, ln: lnDel++, content: line }) + file.deletions++ + } + + const add = function (line) { + if (!current) return + current.changes.push({ type: 'add', add: true, ln: lnAdd++, content: line }) + file.additions++ + } + + const normal = function (line) { + if (!current) return + current.changes.push({ + type: 'normal', + normal: true, + ln1: lnDel++, + ln2: lnAdd++, + content: line + }) + } + + const eof = function (line) { + const recentChange = current.changes[current.changes.length - 1] + + return current.changes.push({ + type: recentChange.type, + [recentChange.type]: true, + ln1: recentChange.ln1, + ln2: recentChange.ln2, + ln: recentChange.ln, + content: line + }) + } + + const schema = [ + // todo beter regexp to avoid detect normal line starting with diff + [/^\s+/, normal], + [/^diff\s/, start], + [/^new file mode \d+$/, newFile], + [/^deleted file mode \d+$/, deletedFile], + [/^Binary files/, binary], + [/^index\s[\da-zA-Z]+\.\.[\da-zA-Z]+(\s(\d+))?$/, index], + [/^---\s/, fromFile], + [/^\+\+\+\s/, toFile], + [/^@@\s+-(\d+),?(\d+)?\s+\+(\d+),?(\d+)?\s@@/, chunk], + [/^-/, del], + [/^\+/, add], + [/^\\ No newline at end of file$/, eof] + ] + + const parse = function (line) { + for (const p of schema) { + const m = line.match(p[0]) + if (m) { + p[1](line, m) + return true + } + } + return false + } + + for (const line of lines) { + parse(line) + } + + return files +} + +function parseFile (s) { + if (!s) return + + const result = /\sa\/(.*)\sb\/(.*)/.exec(s) + + return [result[1], result[2]] +} + +// fallback function to overwrite file.from and file.to if executed +function parseFileFallback (s) { + s = ltrim(s, '-') + s = ltrim(s, '+') + s = s.trim() + // ignore possible time stamp + const t = (/\t.*|\d{4}-\d\d-\d\d\s\d\d:\d\d:\d\d(.\d+)?\s(\+|-)\d\d\d\d/).exec(s) + if (t) { s = s.substring(0, t.index).trim() } + // ignore git prefixes a/ or b/ + if (s.match((/^(a|b)\//))) { return s.substr(2) } else { return s } +} + +function ltrim (s, chars) { + s = makeString(s) + if (!chars && trimLeft) { return trimLeft.call(s) } + chars = defaultToWhiteSpace(chars) + return s.replace(new RegExp(`^${chars}+`), '') +} + +const makeString = s => s === null ? '' : s + '' + +const { trimLeft } = String.prototype + +function defaultToWhiteSpace (chars) { + if (chars === null) { return '\\s' } + if (chars.source) { return chars.source } + return `[${escapeRegExp(chars)}]` +} + +const escapeRegExp = s => makeString(s).replace(/([.*+?^=!:${}()|[\]/\\])/g, '\\$1') diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/rcFolder.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/rcFolder.js" new file mode 100644 index 0000000000000000000000000000000000000000..63145d7dd4dc325859bef2a4fd6871b2835b6337 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/rcFolder.js" @@ -0,0 +1,23 @@ +const fs = require('fs-extra') +const path = require('path') + +const { getRcPath } = require('@vue/cli/lib/util/rcPath') + +let folder + +if (process.env.VUE_CLI_UI_TEST) { + folder = path.resolve(__dirname, '../../live-test') + // Clean DB + fs.removeSync(path.resolve(__dirname, folder)) +} else if (process.env.VUE_APP_CLI_UI_DEV) { + folder = path.resolve(__dirname, '../../live') +} else { + folder = + (process.env.VUE_CLI_UI_DB_PATH && + path.resolve(__dirname, process.env.VUE_CLI_UI_DB_PATH)) || + getRcPath('.vue-cli-ui') +} + +fs.ensureDirSync(path.resolve(__dirname, folder)) + +exports.rcFolder = folder diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/resolve-path.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/resolve-path.js" new file mode 100644 index 0000000000000000000000000000000000000000..379bb0a36b3179eadccdfc6b87879dad02e9ebe0 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/resolve-path.js" @@ -0,0 +1,34 @@ +const path = require('path') + +exports.resolveModuleRoot = function (filePath, id = null) { + { + const index = filePath.lastIndexOf(path.sep + 'index.js') + if (index !== -1) { + filePath = filePath.substr(0, index) + } + } + if (id) { + id = id.replace(/\//g, path.sep) + // With node_modules folder + let search = `node_modules/${id}` + let index = filePath.lastIndexOf(search) + if (index === -1) { + // Id only + search = id + index = filePath.lastIndexOf(search) + } + if (index === -1) { + // Scoped (in dev env) + index = id.lastIndexOf('/') + if (index !== -1) { + search = id.substr(index + 1) + index = filePath.lastIndexOf(search) + } + } + + if (index !== -1) { + filePath = filePath.substr(0, index + search.length) + } + } + return filePath +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/stats.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/stats.js" new file mode 100644 index 0000000000000000000000000000000000000000..c3c7182fbea6e092099f4c50720c40bff146176e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/stats.js" @@ -0,0 +1,17 @@ +const stats = new Map() + +exports.get = (type, id) => { + let dic = stats.get(type) + if (!dic) { + dic = new Map() + stats.set(type, dic) + } + let stat = dic.get(id) + if (!stat) { + stat = { + value: 0 + } + dic.set(id, stat) + } + return stat +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/strings.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/strings.js" new file mode 100644 index 0000000000000000000000000000000000000000..467912ee1eae782527e11e994ee4156c25e6e81d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/strings.js" @@ -0,0 +1,11 @@ +exports.getHttpsGitURL = url => { + if (url.startsWith('http')) { + return url.replace('.git', '') + } else if (url.startsWith('git@')) { + return url + .replace(':', '/') + .replace('git@', 'https://') + .replace(/.git([^.git]*)$/, '') + } + return url +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/terminate.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/terminate.js" new file mode 100644 index 0000000000000000000000000000000000000000..fe0e6c86cd588a7d85246767ce143081b334d382 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/terminate.js" @@ -0,0 +1,42 @@ +const util = require('util') +const cp = require('child_process') +const path = require('path') +const { + isWindows, + isLinux, + isMacintosh +} = require('@vue/cli-shared-utils') + +const execFile = util.promisify(cp.execFile) +const spawn = util.promisify(cp.spawn) + +exports.terminate = async function (childProcess, cwd) { + if (isWindows) { + try { + const options = { + stdio: ['pipe', 'pipe', 'ignore'] + } + if (cwd) { + options.cwd = cwd + } + await execFile('taskkill', ['/T', '/F', '/PID', childProcess.pid.toString()], options) + } catch (err) { + return { success: false, error: err } + } + } else if (isLinux || isMacintosh) { + try { + const cmd = path.resolve(__dirname, './terminate.sh') + const result = await spawn(cmd, [childProcess.pid.toString()], { + cwd + }) + if (result.error) { + return { success: false, error: result.error } + } + } catch (err) { + return { success: false, error: err } + } + } else { + childProcess.kill('SIGKILL') + } + return { success: true } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/terminate.sh" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/terminate.sh" new file mode 100644 index 0000000000000000000000000000000000000000..d3b8121559d88161ab1d82ca43ca213697beca61 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/apollo-server/util/terminate.sh" @@ -0,0 +1,12 @@ +#!/bin/bash + +terminateTree() { + for cpid in $(/usr/bin/pgrep -P $1); do + terminateTree $cpid + done + kill -9 $1 > /dev/null 2>&1 +} + +for pid in $*; do + terminateTree $pid +done diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/css/app.8ea5ef14.css" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/css/app.8ea5ef14.css" new file mode 100644 index 0000000000000000000000000000000000000000..91ff26ca0eafdd7bc3df1daf0db19276fa95894a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/css/app.8ea5ef14.css" @@ -0,0 +1 @@ +.about[data-v-74eeb262]{padding:42px;max-width:840px;margin:0 auto;box-sizing:border-box}.about .quote[data-v-74eeb262]{border-left:4px solid rgba(66,185,131,.3);margin-left:0;padding-left:16px;color:#55789b}.about .links[data-v-74eeb262]{grid-template-columns:repeat(auto-fill,180px)}.about .actions[data-v-74eeb262]{margin-top:42px;display:flex;flex-direction:row;align-items:center;justify-content:center}.about .actions>[data-v-74eeb262]{flex:auto 0 0}.content[data-v-7ba24086]{display:flex;align-items:center;justify-content:center;position:absolute;top:0;left:0;width:100%;height:100%;z-index:90000}.banner[data-v-7ba24086]{background:#e83030;color:#fff;height:45px;position:relative}.banner .vue-ui-icon[data-v-7ba24086]{margin-right:16px}.banner[data-v-7ba24086] svg{fill:#fff}.banner.v-enter-active[data-v-7ba24086],.banner.v-leave-active[data-v-7ba24086]{overflow:hidden}.banner.v-enter-active[data-v-7ba24086]{transition:height .15s ease-out}.banner.v-enter-active .vue-ui-icon[data-v-7ba24086]{-webkit-animation:icon-data-v-7ba24086 .5s;animation:icon-data-v-7ba24086 .5s}.banner.v-leave-active[data-v-7ba24086]{transition:height .15s ease-out .85s,background .15s}.banner.v-leave-active .disconnected[data-v-7ba24086]{-webkit-animation:slide-to-bottom-data-v-7ba24086 .15s forwards;animation:slide-to-bottom-data-v-7ba24086 .15s forwards}.banner.v-leave-active .connected[data-v-7ba24086]{-webkit-animation:slide-from-top-data-v-7ba24086 .15s;animation:slide-from-top-data-v-7ba24086 .15s}.banner:not(.v-leave-active) .connected[data-v-7ba24086]{display:none}.banner.v-enter[data-v-7ba24086],.banner.v-leave-to[data-v-7ba24086]{height:0}.banner.v-leave-to[data-v-7ba24086]{background:#42b983}@-webkit-keyframes icon-data-v-7ba24086{0%{transform:scale(.8);opacity:0}30%{transform:scale(.8);opacity:1}50%{transform:scale(1.3)}to{transform:scale(1)}}@keyframes icon-data-v-7ba24086{0%{transform:scale(.8);opacity:0}30%{transform:scale(.8);opacity:1}50%{transform:scale(1.3)}to{transform:scale(1)}}@-webkit-keyframes slide-to-bottom-data-v-7ba24086{0%{transform:none;opacity:1}to{transform:translateY(45px);opacity:0}}@keyframes slide-to-bottom-data-v-7ba24086{0%{transform:none;opacity:1}to{transform:translateY(45px);opacity:0}}@-webkit-keyframes slide-from-top-data-v-7ba24086{0%{transform:translateY(-45px);opacity:0}to{transform:none;opacity:1}}@keyframes slide-from-top-data-v-7ba24086{0%{transform:translateY(-45px);opacity:0}to{transform:none;opacity:1}}.not-found[data-v-144ede8a]{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%}.not-found>[data-v-144ede8a]{flex:auto 0 0}.not-found .subtitle[data-v-144ede8a],.not-found .title[data-v-144ede8a],.not-found .vue-ui-icon[data-v-144ede8a]{margin:0 0 16px}.loading-screen[data-v-3ba26ff4]{position:absolute;z-index:900}.loading-screen .content[data-v-3ba26ff4]{display:grid;grid-template-columns:1fr;grid-gap:16px;text-align:center}.loading-screen .content .error[data-v-3ba26ff4]{color:#e83030;display:flex;flex-direction:column;align-items:center;justify-content:center}.loading-screen .content .error>[data-v-3ba26ff4]{flex:auto 0 0}.loading-screen .content .error>.vue-ui-icon[data-v-3ba26ff4]{margin-bottom:16px}.loading-screen .content .error>.vue-ui-icon[data-v-3ba26ff4] svg{fill:#e83030}.loading-screen .content .error .actions[data-v-3ba26ff4]{margin-top:16px}.loading-screen .content .secondary-info[data-v-3ba26ff4]{position:absolute;bottom:42px;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.loading-screen .content .secondary-info>[data-v-3ba26ff4]{flex:auto 0 0}.loading-screen .content .info[data-v-3ba26ff4]{color:#6a8bad}.loading-screen .content .debug[data-v-3ba26ff4]{color:#ea6e00;font-size:10px}.loading-screen .content .vue-ui-loading-bar[data-v-3ba26ff4]{width:50vw;max-width:400px;margin-top:24px}.loading-screen:not(.loading) .vue-ui-loading-indicator[data-v-3ba26ff4] .animation{display:none}.loading-screen.loading .content[data-v-3ba26ff4]{margin-top:16px}.project-home[data-v-2a0d3bdd]{display:flex;flex-direction:column}.project-home.wide .project-nav[data-v-2a0d3bdd]{width:220px}.panes[data-v-2a0d3bdd]{flex:auto 1 1;height:100%;display:flex;overflow:hidden}.project-nav[data-v-2a0d3bdd],.top-bar[data-v-2a0d3bdd]{flex:auto 0 0}.project-nav[data-v-2a0d3bdd]{width:46px}.content[data-v-2a0d3bdd]{flex:auto 1 1;width:0;overflow-x:hidden;overflow-y:auto;display:flex;flex-direction:column}.top-bar[data-v-2a0d3bdd]{flex:auto 0 0}.router-view[data-v-2a0d3bdd]{flex:1;height:0;overflow:hidden}.current-project[data-v-46e8ea3e]{width:100%}.current-project[data-v-46e8ea3e] .trigger .vue-ui-button .vue-ui-icon.right{width:20px;height:20px}.vue-ui-empty[data-v-46e8ea3e]{padding:6px}.status-bar[data-v-df9bd38a]{position:relative;z-index:3;box-shadow:0 -2px 10px rgba(0,0,0,.1)}.vue-ui-dark-mode .status-bar[data-v-df9bd38a]{box-shadow:0 -2px 10px rgba(0,0,0,.2)}.status-bar .content[data-v-df9bd38a]{display:flex;flex-direction:row;align-items:center;font-size:12px;height:28px;background:#1d2935;color:#fff}.status-bar .content>[data-v-df9bd38a]{flex:auto 0 0}.status-bar .content[data-v-df9bd38a] .vue-ui-icon svg{fill:#fff}.vue-ui-dark-mode .status-bar .content[data-v-df9bd38a]{background:#42b983;color:#2c3e50}.vue-ui-dark-mode .status-bar .content[data-v-df9bd38a] .vue-ui-icon svg{fill:#2c3e50}.status-bar .section[data-v-df9bd38a]{display:flex;flex-direction:row;align-items:center;padding:0 8px;height:100%;cursor:default}.status-bar .section>[data-v-df9bd38a]{flex:auto 0 0}.status-bar .section[data-v-df9bd38a]:hover{background:#2c3e51}.vue-ui-dark-mode .status-bar .section[data-v-df9bd38a]:hover{background:#3ba776}.status-bar .section>.vue-ui-icon+[data-v-df9bd38a]{margin-left:4px}.status-bar .section .label[data-v-df9bd38a]{color:#476582}.vue-ui-dark-mode .status-bar .section .label[data-v-df9bd38a]{color:#698fa2}.status-bar .section.action[data-v-df9bd38a]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer}.status-bar .console-log .last-message-container[data-v-df9bd38a],.status-bar .console-log[data-v-df9bd38a]{flex:100% 1 1;width:0}.status-bar .console-log .last-message-container[data-v-df9bd38a]{overflow:hidden;height:100%;position:relative}.status-bar .console-log .last-message[data-v-df9bd38a]{position:absolute;left:0;top:4px;width:100%}.status-bar .console-log .logger-message[data-v-df9bd38a]{font-size:.9em;padding-right:0}.status-bar .console-log .last-message[data-v-df9bd38a] .message>span{color:#fff}.vue-ui-dark-mode .status-bar .console-log .last-message[data-v-df9bd38a] .message>span{color:#2c3e50}.status-bar .console-log .no-log[data-v-df9bd38a]{padding:2px;opacity:.5}.top-bar[data-v-68cd19b0]{padding:16px;display:flex;flex-direction:row;align-items:center;position:relative;height:32px;z-index:1;background:#bbe6d6}.top-bar>[data-v-68cd19b0]{flex:auto 0 0}.vue-ui-dark-mode .top-bar[data-v-68cd19b0]{background:#344a5f}.top-bar .actions[data-v-68cd19b0]>*,.top-bar[data-v-68cd19b0]>*{margin-right:16px}.top-bar .actions[data-v-68cd19b0]>:last-child,.top-bar[data-v-68cd19b0]>:last-child{margin-right:0}.title[data-v-68cd19b0]{font-size:28px;font-weight:300}.loading[data-v-2b95752e]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:42px}.loading>[data-v-2b95752e]{flex:auto 0 0}.timeout-info[data-v-2b95752e]{max-width:200px;font-size:10px;margin:auto}.configuration-item[data-v-6ca068b0]{padding:16px}.configuration-item .content[data-v-6ca068b0]{display:flex;flex-direction:row;align-items:center;justify-content:center}.configuration-item .content>[data-v-6ca068b0]{flex:auto 0 0}.configuration-item .list-item-info[data-v-6ca068b0]{flex:auto 1 1;width:0}.configuration-item .list-item-info[data-v-6ca068b0] .description{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.project-configuration-details[data-v-54636a5c]{display:flex;flex-direction:column;align-items:stretch;height:100%;background:#fff}.project-configuration-details>[data-v-54636a5c]{flex:auto 0 0}.vue-ui-dark-mode .project-configuration-details[data-v-54636a5c]{background:#1d2935}.project-configuration-details .content[data-v-54636a5c],.project-configuration-details .loading[data-v-54636a5c]{flex:100% 1 1;height:0}.project-configuration-details .content[data-v-54636a5c]{overflow-x:hidden;overflow-y:auto}.project-configuration-details .tabs[data-v-54636a5c]{margin:16px 0}.project-configurations .content-view[data-v-0e341be2]>.content{overflow-y:hidden}.content-view[data-v-18683bcf]{height:100%}.content-view .content[data-v-18683bcf],.content-view .wrapper[data-v-18683bcf]{width:100%;height:100%;box-sizing:border-box}.content-view .content[data-v-18683bcf]{background:#bbe6d6}.vue-ui-dark-mode .content-view .content[data-v-18683bcf]{background:#344a5f}.content-view .content .wrapper[data-v-18683bcf]{background:#c8ebdf;position:relative;overflow-x:hidden;overflow-y:auto}.vue-ui-dark-mode .content-view .content .wrapper[data-v-18683bcf]{background:#304457}.content-view.list .wrapper[data-v-18683bcf]{background:#e4f5ef}.vue-ui-dark-mode .content-view.list .wrapper[data-v-18683bcf]{background:#2c3e50}@media (min-width:1420px){.content-view.limit-width .wrapper[data-v-18683bcf]{max-width:1200px;margin:auto;border-radius:6px 6px 0 0}}.item-logo[data-v-9ee9675a]{margin-right:16px;position:relative;width:42px;height:42px}.item-logo .wrapper[data-v-9ee9675a]{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%;height:100%;background:rgba(0,0,0,.03);border-radius:50%;overflow:hidden}.item-logo .wrapper>[data-v-9ee9675a]{flex:auto 0 0}.vue-ui-dark-mode .item-logo .wrapper[data-v-9ee9675a]{background:hsla(0,0%,100%,.07)}.item-logo .wrapper .image[data-v-9ee9675a]{width:100%;height:100%;transform:scale(0);border-radius:50%}.item-logo .wrapper .vue-ui-icon[data-v-9ee9675a]{width:24px;height:24px}.item-logo .wrapper .vue-ui-icon[data-v-9ee9675a] svg{fill:#6a8bad}.item-logo .color-bullet[data-v-9ee9675a]{position:absolute;width:8px;height:8px;border-radius:50%;right:-1px;bottom:-1px;background:#fff;border:2px solid #e4f5ef;visibility:hidden}.vue-ui-dark-mode .item-logo .color-bullet[data-v-9ee9675a]{border-color:#2c3e50}.item-logo.vuejs .wrapper[data-v-9ee9675a]{background:#c6ebda}.item-logo.vuejs .image[data-v-9ee9675a]{width:70%;height:70%;position:relative;top:3px;border-radius:0}.item-logo.identicon[data-v-9ee9675a]{filter:brightness(90%) contrast(115%)}.vue-ui-dark-mode .item-logo.identicon[data-v-9ee9675a]{filter:invert(100%) brightness(180%) contrast(70%)}.item-logo.identicon .wrapper[data-v-9ee9675a]{background:#fff}.item-logo.identicon .image[data-v-9ee9675a]{width:60%;height:60%;border-radius:0}.item-logo.loaded .image[data-v-9ee9675a]{transform:none}.item-logo.error .wrapper[data-v-9ee9675a],.item-logo.loaded .image[data-v-9ee9675a],.item-logo.selected .wrapper[data-v-9ee9675a]{-webkit-animation:zoom-data-v-9ee9675a .5s cubic-bezier(.075,.82,.165,1);animation:zoom-data-v-9ee9675a .5s cubic-bezier(.075,.82,.165,1)}.item-logo.selected .wrapper[data-v-9ee9675a]{background:#42b983}.item-logo.selected .wrapper .vue-ui-icon[data-v-9ee9675a] svg{fill:#fff}.item-logo.danger .vue-ui-icon[data-v-9ee9675a] svg{fill:#e83030}.item-logo.danger .color-bullet[data-v-9ee9675a]{visibility:visible;background:#e83030}.item-logo.warning .vue-ui-icon[data-v-9ee9675a] svg{fill:#ea6e00}.item-logo.warning .color-bullet[data-v-9ee9675a]{visibility:visible;background:#ea6e00}.item-logo.info .vue-ui-icon[data-v-9ee9675a] svg{fill:#03c2e6}.item-logo.info .color-bullet[data-v-9ee9675a]{visibility:visible;background:#03c2e6}.item-logo.success .vue-ui-icon[data-v-9ee9675a] svg{fill:#42b983}@-webkit-keyframes zoom-data-v-9ee9675a{0%{transform:scale(0)}to{transform:scale(1)}}@keyframes zoom-data-v-9ee9675a{0%{transform:scale(0)}to{transform:scale(1)}}.list-item-info[data-v-4001a578]{display:flex;flex-direction:column;align-items:stretch;justify-content:center}.list-item-info>[data-v-4001a578]{flex:auto 0 0}.list-item-info .description[data-v-4001a578]{color:#6a8bad}.list-item-info .description[data-v-4001a578] :first-child{margin-right:4px}.list-item-info .description[data-v-4001a578] .vue-ui-icon svg{fill:#6a8bad}.list-item-info .description .more-info[data-v-4001a578]{color:#42b983;padding:0 4px 0 2px;border-radius:3px;display:inline-block}.list-item-info .description .more-info .vue-ui-icon[data-v-4001a578] svg{fill:#42b983}.list-item-info .description .more-info[data-v-4001a578]:hover{color:#fff;background:#42b983}.list-item-info .description .more-info:hover .vue-ui-icon[data-v-4001a578] svg{fill:#fff}.list-item-info .description .more-info[data-v-4001a578]:active{background:#3ba776}.list-item-info.selected .name[data-v-4001a578]{color:#42b983}.nav-content[data-v-4f974f94]{width:100%;height:100%;display:grid;grid-template-columns:300px 1fr;grid-template-rows:1fr;grid-template-areas:"nav content"}.nav-content>.nav-list[data-v-4f974f94]{grid-area:nav}.nav-content>.content[data-v-4f974f94]{grid-area:content;overflow-x:hidden;overflow-y:auto}.nav-list[data-v-4e81b1ea]{overflow-x:hidden;overflow-y:auto;background:#e4f5ef}.vue-ui-dark-mode .nav-list[data-v-4e81b1ea]{background:#2c3e50}.step-wizard[data-v-4f685358]{box-sizing:border-box}.step-wizard .shell[data-v-4f685358]{display:flex;flex-direction:column;height:100%}.step-wizard .shell>[data-v-4f685358]{flex:auto 0 0}.step-wizard .header .content[data-v-4f685358]{margin:0 auto}.step-wizard .main-tabs[data-v-4f685358]{height:0;flex:auto 1 1}.step-wizard[data-v-4f685358] .vue-ui-tab{margin:0 auto;padding:16px 16px 0;box-sizing:border-box}.step-wizard .header[data-v-4f685358],.step-wizard[data-v-4f685358] .tabs{background:#c8ebdf}.vue-ui-dark-mode .step-wizard .header[data-v-4f685358],.vue-ui-dark-mode .step-wizard[data-v-4f685358] .tabs{background:#304457}.step-wizard[data-v-4f685358] .tabs-content{height:0;flex:auto 1 1}.step-wizard[data-v-4f685358],.step-wizard[data-v-4f685358] .vue-ui-tab,.step-wizard[data-v-4f685358] .vue-ui-tab-content{height:100%}.step-wizard[data-v-4f685358] .vue-ui-tab-content{overflow-y:hidden;display:flex;flex-direction:column;margin:0 auto}.step-wizard[data-v-4f685358] .vue-ui-tab-content>*{flex:auto 0 0}.step-wizard[data-v-4f685358] .vue-ui-tab-content>.content{flex:100% 1 1;height:0;overflow-y:auto}.step-wizard[data-v-4f685358] .vue-ui-tab-content>.actions-bar{justify-content:center}.step-wizard[data-v-4f685358] .vue-ui-tab-content>.actions-bar .vue-ui-button:not(.icon-button){min-width:190px}.step-wizard .title[data-v-4f685358]{padding:16px;font-size:24px;text-align:center;font-weight:300}.step-wizard.hide-tabs[data-v-4f685358] .tabs{display:none}.step-wizard.frame[data-v-4f685358]{margin:0 auto}.step-wizard.frame .shell[data-v-4f685358]{background:#fff}.vue-ui-dark-mode .step-wizard.frame .shell[data-v-4f685358]{background:#1d2935}.step-wizard.frame .header .content[data-v-4f685358],.step-wizard.frame[data-v-4f685358] .vue-ui-tab{max-width:1200px}.terminal-view[data-v-69fa52cb]{display:flex;flex-direction:column;align-items:stretch}.terminal-view>[data-v-69fa52cb]{flex:auto 0 0}.terminal-view .view[data-v-69fa52cb]{flex:100% 1 1;height:0;position:relative;padding-left:16px}.terminal-view .xterm-render[data-v-69fa52cb]{width:100%;height:100%}.terminal-view .xterm-render[data-v-69fa52cb] .xterm .xterm-cursor-layer{display:none}.panes[data-v-72cde023]{display:flex;flex-direction:row}.panes>[data-v-72cde023]{flex:auto 0 0}.widgets[data-v-72cde023]{flex:1;overflow:auto;padding:8px;box-sizing:border-box}.widgets-wrapper[data-v-72cde023]{position:relative;transform-origin:top left;transition:transform .15s}.widget-add-pane[data-v-72cde023]{width:360px}.customizing .widgets-wrapper[data-v-72cde023]{transform:scale(.7)}.widget-details-shown .widgets[data-v-72cde023]{overflow:hidden}.widget-details-shown .widgets-wrapper>.widget[data-v-72cde023]>.shell{opacity:0}.move-ghost[data-v-7b42892d],.resize-ghost[data-v-7b42892d],.shell[data-v-7b42892d]{position:absolute;padding:8px;box-sizing:border-box}.content-wrapper[data-v-7b42892d],.move-ghost .backdrop[data-v-7b42892d],.resize-ghost .backdrop[data-v-7b42892d],.wrapper[data-v-7b42892d]{width:100%;height:100%}.content-wrapper[data-v-7b42892d],.wrapper[data-v-7b42892d]{display:flex;flex-direction:column;position:relative}.wrapper[data-v-7b42892d]{transition:box-shadow .15s}.header[data-v-7b42892d]{padding:10.666666666666666px 10.666666666666666px 5.333333333333333px 16px;display:flex;flex-direction:row}.header>[data-v-7b42892d]{flex:auto 0 0}.header .title[data-v-7b42892d]{flex:1;opacity:.5;color:#4f6f7f}.vue-ui-dark-mode .header .title[data-v-7b42892d]{color:#e4f5ef}.header .icon-button[data-v-7b42892d]{width:20px;height:20px}.content[data-v-7b42892d]{flex:1;overflow:hidden}.view[data-v-7b42892d]{width:100%;height:100%;box-sizing:border-box}.not-configured[data-v-7b42892d]{display:flex;flex-direction:column;align-items:center;justify-content:center}.not-configured>[data-v-7b42892d]{flex:auto 0 0}.not-configured .icon[data-v-7b42892d]{margin-bottom:16px}.not-configured .icon[data-v-7b42892d] svg{fill:#6a8bad}.customize-overlay[data-v-7b42892d]{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1;border-radius:3px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:move;-webkit-user-select:none;-moz-user-select:none;user-select:none;box-sizing:border-box;border:1px solid transparent}.customize-overlay>[data-v-7b42892d]{flex:auto 0 0}.customize-overlay[data-v-7b42892d]>*{transition:transform .15s}.customize-overlay .definition-chip[data-v-7b42892d]{background:#42b983;color:#fff;border-radius:21px;-webkit-user-select:none;-moz-user-select:none;user-select:none;display:flex;flex-direction:row;align-items:center;justify-content:center}.customize-overlay .definition-chip>[data-v-7b42892d]{flex:auto 0 0}.customize-overlay .definition-chip .title[data-v-7b42892d]{padding:8px 16px;padding-left:0}.customize-overlay .definition-chip .icon[data-v-7b42892d]{margin-right:8px}.customize-overlay .definition-chip .icon[data-v-7b42892d] svg{fill:#fff}.customize-overlay[data-v-7b42892d]:hover,.selected .customize-overlay[data-v-7b42892d]{background:rgba(66,185,131,.2)}.remove-button[data-v-7b42892d]{position:absolute;top:16px;right:16px}.customizing .wrapper[data-v-7b42892d]{border-radius:4.285714285714286px}.customizing .content-wrapper[data-v-7b42892d]{opacity:.15}.customizing .customize-overlay[data-v-7b42892d]>*{transform:scale(1.428571428571429)}.move-ghost[data-v-7b42892d],.resize-ghost[data-v-7b42892d]{z-index:10000}.move-ghost .backdrop[data-v-7b42892d],.resize-ghost .backdrop[data-v-7b42892d]{background:rgba(104,6,193,.2);border-radius:4.285714285714286px}.vue-ui-dark-mode .move-ghost .backdrop[data-v-7b42892d],.vue-ui-dark-mode .resize-ghost .backdrop[data-v-7b42892d]{background:rgba(196,134,251,.2)}.moving .shell[data-v-7b42892d],.resizing .shell[data-v-7b42892d]{z-index:10001;opacity:.7}.moving .shell .wrapper[data-v-7b42892d]{box-shadow:0 5px 30px rgba(0,0,0,.2)}.resizing .shell[data-v-7b42892d]{opacity:.5}.widget .shell[data-v-7b42892d]{transition:opacity .15s,transform .15s}.widget:not(.moving):not(.resizing) .shell[data-v-7b42892d]{transition:opacity .15s,left .15s,top .15s,width .15s,height .15s,transform .15s}.widget.selected .customize-overlay[data-v-7b42892d]{border:1px solid #42b983}.widget.details-shown>.shell[data-v-7b42892d]{transform:scale(1.2)}.widget.v-enter .shell[data-v-7b42892d],.widget.v-leave-to .shell[data-v-7b42892d]{transform:scale(.9);opacity:0}.widget.v-enter.details .shell[data-v-7b42892d],.widget.v-leave-to.details .shell[data-v-7b42892d]{transform:scale(.4)}.widget-add-item .actions[data-v-4fd981a4]{margin-right:16px}.widget-add-item .actions[data-v-4fd981a4],.widget-add-item[data-v-4fd981a4]{display:flex;flex-direction:row;align-items:center;justify-content:center}.widget-add-item .actions>[data-v-4fd981a4],.widget-add-item>[data-v-4fd981a4]{flex:auto 0 0}.widget-add-item .info[data-v-4fd981a4]{flex:1;overflow:hidden;padding:16px;display:flex;flex-direction:row}.widget-add-item .info>[data-v-4fd981a4]{flex:auto 0 0}.widget-add-item .info .list-item-info[data-v-4fd981a4]{flex:1;overflow:hidden}.widget-add-item .info .list-item-info[data-v-4fd981a4] .description{flex:1;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.custom-body[data-v-4fd981a4]{padding:0 24px 16px}.custom-body .details[data-v-4fd981a4]{display:flex;margin-bottom:16px}.widget-add-pane[data-v-18a2056d]{position:relative;z-index:1;display:flex;flex-direction:column;box-shadow:0 0 10px rgba(0,0,0,.1);background:#fff}.widget-add-pane>[data-v-18a2056d]{flex:auto 0 0}.vue-ui-dark-mode .widget-add-pane[data-v-18a2056d]{background:#1d2935}.toolbar[data-v-18a2056d]{display:flex;flex-direction:row;align-items:center;justify-content:center;margin:16px}.toolbar>[data-v-18a2056d]{flex:auto 0 0}.search-input[data-v-18a2056d]{width:100%}.widgets[data-v-18a2056d]{flex:1;overflow-x:hidden;overflow-y:auto}.widget-details-view[data-v-0dc1b07a] .shell{position:fixed;z-index:50}.npm-package-search[data-v-5f26a37c]{height:100%;display:flex;flex-direction:column}.content[data-v-5f26a37c]{flex:100% 1 1;height:0;overflow:hidden}.algolia[data-v-5f26a37c]{width:200px;height:100%;margin-left:16px;display:flex;flex-direction:row;align-items:center;justify-content:center}.algolia>[data-v-5f26a37c]{flex:auto 0 0}.package-search-item[data-v-40f3faa6]{padding:16px;display:flex;flex-direction:row;align-items:center;justify-content:center}.package-search-item>[data-v-40f3faa6]{flex:auto 0 0}.package-search-item .list-item-info[data-v-40f3faa6]{flex:100% 1 1;width:0}.package-search-item .list-item-info[data-v-40f3faa6] .description{display:inline-flex;align-items:baseline}.package-search-item .name[data-v-40f3faa6]{font-weight:700}.package-search-item .version[data-v-40f3faa6]{color:#6a8bad;margin-left:6px}.package-search-item .info[data-v-40f3faa6]{margin-right:6px}.package-search-item .info[data-v-40f3faa6]:last-child{margin-right:0}.package-search-item .info.description[data-v-40f3faa6]{font-style:italic;max-width:550px;white-space:nowrap;text-overflow:ellipsis;display:block;overflow:hidden}.package-search-item .info.downloads[data-v-40f3faa6]{text-transform:uppercase}.package-search-item .info.owner .vue-ui-icon[data-v-40f3faa6]{margin-right:2px}.package-search-item .feature[data-v-40f3faa6]{margin-right:12px;opacity:.3}.package-search-item .feature[data-v-40f3faa6]:hover{opacity:1}.project-dependencies .content-view[data-v-40a4792a]>.content{overflow-y:auto}.install-modal[data-v-40a4792a] .shell{width:80vw;max-width:1200px}.install-options[data-v-40a4792a]{display:flex;flex-direction:row;align-items:center;justify-content:center;margin-bottom:16px}.install-options>[data-v-40a4792a]{flex:auto 0 0}.package-search[data-v-40a4792a]{height:70vh}.project-dependency-item[data-v-c7b4d70c]{padding:16px;cursor:default;height:44px}.project-dependency-item .content[data-v-c7b4d70c]{display:flex;flex-direction:row;align-items:center;justify-content:center}.project-dependency-item .content>[data-v-c7b4d70c]{flex:auto 0 0}.project-dependency-item .list-item-info[data-v-c7b4d70c]{flex:100% 1 1;width:0}.project-dependency-item .dependency-description[data-v-c7b4d70c]{margin-right:16px}.project-dependency-item .label[data-v-c7b4d70c]{opacity:.7}.project-dependency-item .info[data-v-c7b4d70c]{display:inline-block;margin-right:16px}.project-dependency-item .info[data-v-c7b4d70c]:last-child{margin-right:0}.project-dependency-item .info[data-v-c7b4d70c]>*{margin-right:4px}.project-dependency-item .info[data-v-c7b4d70c]>:last-child{margin-right:0}.project-dependency-item .description[data-v-c7b4d70c]{height:21px}.project-dependency-item .latest[data-v-c7b4d70c],.project-dependency-item .version[data-v-c7b4d70c],.project-dependency-item .wanted[data-v-c7b4d70c]{min-width:130px}.project-dependency-item .latest .value[data-v-c7b4d70c],.project-dependency-item .version .value[data-v-c7b4d70c],.project-dependency-item .wanted .value[data-v-c7b4d70c]{font-family:monospace;font-size:.9em}@media (max-width:1130px){.project-dependency-item .installed[data-v-c7b4d70c]{display:none}}.project-dependency-item .package-description[data-v-c7b4d70c]{font-style:italic;opacity:.7;display:inline-block;max-width:300px;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;position:relative;top:4px}@media (max-width:1080px){.project-dependency-item .package-description[data-v-c7b4d70c]{display:none}}.project-dependency-item .icon-button[data-v-c7b4d70c]:not(:last-child){margin-right:6px}.file-diff[data-v-1bd7cf58]{border:1px solid #e4f5ef;margin:16px}.vue-ui-dark-mode .file-diff[data-v-1bd7cf58]{border-color:#2c3e50}.file-diff .toolbar[data-v-1bd7cf58]{padding:16px;background:#fafdfc;display:flex;flex-direction:row;align-items:center}.file-diff .toolbar>[data-v-1bd7cf58]{flex:auto 0 0}.vue-ui-dark-mode .file-diff .toolbar[data-v-1bd7cf58]{background:#2c3e50}.file-diff .toolbar[data-v-1bd7cf58]>*{margin-right:16px}.file-diff .toolbar[data-v-1bd7cf58]>:last-child{margin-right:0}.file-diff .toolbar .file-icon[data-v-1bd7cf58] svg{fill:#9fdbc6}.file-diff .toolbar .name[data-v-1bd7cf58]{flex:auto 1 0;font-family:Roboto Mono,monospace;font-size:14px;font-weight:700;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.file-diff .toolbar .name.from-file[data-v-1bd7cf58]{text-decoration:line-through}.file-diff .toolbar .name.to-file[data-v-1bd7cf58]{flex:100% 1 1;width:0}.file-diff .is-binary[data-v-1bd7cf58]{display:flex;flex-direction:row;align-items:center;justify-content:center;padding:16px;opacity:.5}.file-diff .is-binary>[data-v-1bd7cf58]{flex:auto 0 0}.file-diff .is-binary .icon[data-v-1bd7cf58]{margin-right:4px}.file-diff.new .name[data-v-1bd7cf58]{color:#42b983}.file-diff.new .file-icon[data-v-1bd7cf58] svg{fill:#42b983}.file-diff.deleted .name[data-v-1bd7cf58]{color:#e83030}.file-diff.deleted .file-icon[data-v-1bd7cf58] svg{fill:#e83030}.file-diff-change[data-v-75653a05]{font-family:Roboto Mono,monospace;font-size:12px;display:flex;flex-direction:row}.file-diff-change>[data-v-75653a05]{flex:auto 0 0}.file-diff-change .content[data-v-75653a05],.file-diff-change .ln[data-v-75653a05]{padding:4px 16px}.file-diff-change .lines[data-v-75653a05]{width:120px;display:flex;flex-direction:row;background:#fafdfc;color:rgba(44,62,80,.4)}.file-diff-change .lines>[data-v-75653a05]{flex:auto 0 0}.vue-ui-dark-mode .file-diff-change .lines[data-v-75653a05]{background:#283848;color:#fff}.file-diff-change .lines .ln[data-v-75653a05]{text-align:right;flex:100% 1 1;width:0;overflow:hidden}.file-diff-change .lines .ln2[data-v-75653a05]{cursor:pointer}.file-diff-change .lines .ln2[data-v-75653a05]:hover{text-decoration:underline}.file-diff-change .lines .ln2.disabled[data-v-75653a05]{pointer-events:none}.file-diff-change .content[data-v-75653a05]{flex:auto 1 1;white-space:pre}.file-diff-change.type-add[data-v-75653a05]{background:#eef6f3}.vue-ui-dark-mode .file-diff-change.type-add[data-v-75653a05]{background:#263e33}.file-diff-change.type-add .lines[data-v-75653a05]{background:#d9f1e6}.vue-ui-dark-mode .file-diff-change.type-add .lines[data-v-75653a05]{background:#1a4a34}.file-diff-change.type-del[data-v-75653a05]{background:#faeded}.vue-ui-dark-mode .file-diff-change.type-del[data-v-75653a05]{background:#4e2222}.file-diff-change.type-del .lines[data-v-75653a05]{background:#fad6d6}.vue-ui-dark-mode .file-diff-change.type-del .lines[data-v-75653a05]{background:#650b0b}.file-diff-chunk .changes[data-v-2db99afb]{overflow-x:auto;display:grid;grid-template-column:1fr}.file-diff-chunk[data-v-2db99afb]:not(:last-child):after{content:"•••";height:44px;background:#f5f5f5;display:flex;flex-direction:row;align-items:center;justify-content:center;color:#e0e0e0;letter-spacing:4px}.file-diff-chunk:not(:last-child):after>[data-v-2db99afb]{flex:auto 0 0}.vue-ui-dark-mode .file-diff-chunk[data-v-2db99afb]:not(:last-child):after{background:#1f2b38;color:#4f6f7f}.file-diff-view[data-v-e6aca748]{display:flex;flex-direction:column;height:100%;position:relative}.file-diff-view>[data-v-e6aca748]{flex:auto 0 0}.file-diff-view .toolbar[data-v-e6aca748]{padding:16px;display:flex;flex-direction:row;align-items:center}.file-diff-view .toolbar>[data-v-e6aca748]{flex:auto 0 0}.file-diff-view .toolbar[data-v-e6aca748]>*{margin-right:16px}.file-diff-view .toolbar[data-v-e6aca748]>:last-child{margin-right:0}.file-diff-view .toolbar .file-count[data-v-e6aca748]{padding:3px 6px;background:#f7f7f7;border-radius:3px}.vue-ui-dark-mode .file-diff-view .toolbar .file-count[data-v-e6aca748]{background:#2c3e50}.file-diff-view .list[data-v-e6aca748]{flex:100% 1 1;height:0;overflow-x:hidden;overflow-y:auto}.file-diff-view .actions-bar .vue-ui-button[data-v-e6aca748]{min-width:190px}.toolbar[data-v-bbb28d68]{padding:16px 0;display:flex;flex-direction:row;align-items:center}.toolbar>[data-v-bbb28d68]{flex:auto 0 0}.toolbar[data-v-bbb28d68]>*{margin-right:16px}.toolbar[data-v-bbb28d68]>:last-child{margin-right:0}.current-path[data-v-bbb28d68]{flex:100% 1 1;display:flex;flex-direction:row;align-items:stretch;border-radius:3px;background:#e4f5ef}.current-path>[data-v-bbb28d68]{flex:auto 0 0}.vue-ui-dark-mode .current-path[data-v-bbb28d68]{background:#2c3e50}.current-path .path-value[data-v-bbb28d68]{flex:auto 1 1;display:flex;flex-direction:row;align-items:stretch}.current-path .path-value>[data-v-bbb28d68]{flex:auto 0 0}.current-path .path-part[data-v-bbb28d68]:not(:first-child){border-left:2px solid;border-left-color:#fff}.vue-ui-dark-mode .current-path .path-part[data-v-bbb28d68]:not(:first-child){border-left-color:#1d2935}.current-path .path-folder[data-v-bbb28d68]{padding:0 9px}.current-path .edit-path-button[data-v-bbb28d68]{margin-left:4px}.path-edit[data-v-bbb28d68]{flex:100% 1 1}.path-edit>.vue-ui-input[data-v-bbb28d68]{width:100%}.favorite-button[data-v-bbb28d68]{margin-right:4px}.error-icon[data-v-bbb28d68] svg{fill:#e83030}.folder-explorer[data-v-bbb28d68]{display:flex;flex-direction:column;align-items:stretch}.folder-explorer>[data-v-bbb28d68]{flex:auto 0 0}.folder-explorer .folders[data-v-bbb28d68]{flex:100% 1 1;overflow-x:hidden;overflow-y:auto;position:relative}.folder-explorer-item[data-v-3200338a]{padding:16px;display:flex;flex-direction:row;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer;position:relative}.folder-explorer-item>[data-v-3200338a]{flex:auto 0 0}.folder-explorer-item[data-v-3200338a]:hover{background:rgba(66,185,131,.1)}.folder-explorer-item.hidden[data-v-3200338a]{opacity:.5}.folder-explorer-item .folder-icon[data-v-3200338a]{margin:0 4px}.folder-explorer-item .folder-icon[data-v-3200338a] svg{fill:#42b983}.folder-explorer-item .folder-name[data-v-3200338a]{flex:100% 1 1;margin-left:16px;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.folder-explorer-item .vue-ui-project-icon[data-v-3200338a]{width:14px;height:14px;vertical-align:top;position:relative;top:5px}.folder-explorer-item .favorite-icon[data-v-3200338a] svg{fill:#42b983}.logger-message[data-v-927a788c]{display:flex;flex-direction:row;align-items:baseline;font-family:Roboto Mono,monospace;box-sizing:border-box;padding:2px 4px}.logger-message>[data-v-927a788c]{flex:auto 0 0}.logger-message .tag[data-v-927a788c],.logger-message .type[data-v-927a788c]{padding:2px 6px;border-radius:3px}.logger-message .type[data-v-927a788c]{text-transform:uppercase}.logger-message.type-warn .type[data-v-927a788c]{background:#ea6e00;color:#fff}.logger-message.type-error .type[data-v-927a788c]{background:#e83030;color:#fff}.logger-message.type-info .type[data-v-927a788c]{background:#03c2e6;color:#fff}.logger-message.type-done .type[data-v-927a788c]{background:#42b983;color:#fff}.logger-message .tag[data-v-927a788c]{background:#9bb2c8}.logger-message.has-type.has-tag .type[data-v-927a788c]{border-top-right-radius:0;border-bottom-right-radius:0}.logger-message.has-type.has-tag .tag[data-v-927a788c]{border-top-left-radius:0;border-bottom-left-radius:0}.logger-message .message[data-v-927a788c]{flex:100% 1 1;width:0;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.logger-message.has-tag .message[data-v-927a788c],.logger-message.has-type .message[data-v-927a788c]{margin-left:12px}.logger-message.pre .message[data-v-927a788c]{white-space:pre-wrap}.logger-message .date[data-v-927a788c]{opacity:.5}.logger-view[data-v-7cd2133d]{background:#fff;height:174px;display:grid;grid-template-columns:1fr;grid-template-rows:auto 1fr;grid-template-areas:"toolbar" "logs"}.vue-ui-dark-mode .logger-view[data-v-7cd2133d]{background:#1d2935}.logger-view .pane-toolbar[data-v-7cd2133d]{grid-area:toolbar}.logger-view .logs[data-v-7cd2133d]{grid-area:logs;padding:0 16px;overflow-x:hidden;overflow-y:auto}.logger-view .logger-message[data-v-7cd2133d]{font-size:12px}.logger-view .logger-message[data-v-7cd2133d]:hover{background:rgba(66,185,131,.05)}.project-plugin-add-local[data-v-eadd60ec]{width:70vw;height:70vh;display:flex;flex-direction:column}.folder-explorer[data-v-eadd60ec]{flex:1;overflow:hidden}.project-plugin-item[data-v-9b84856a]{padding:16px;cursor:default}.project-plugin-item .content[data-v-9b84856a]{display:flex;flex-direction:row;align-items:center;justify-content:center}.project-plugin-item .content>[data-v-9b84856a]{flex:auto 0 0}.project-plugin-item .list-item-info[data-v-9b84856a]{flex:100% 1 1;width:0}.project-plugin-item .plugin-description[data-v-9b84856a]{margin-right:16px}.project-plugin-item .label[data-v-9b84856a]{opacity:.7}.project-plugin-item .info[data-v-9b84856a]{display:inline-block;margin-right:16px}.project-plugin-item .info[data-v-9b84856a]:last-child{margin-right:0}.project-plugin-item .info[data-v-9b84856a]>*{margin-right:4px}.project-plugin-item .info[data-v-9b84856a]>:last-child{margin-right:0}.project-plugin-item .description[data-v-9b84856a]{height:21px}.project-plugin-item .latest[data-v-9b84856a],.project-plugin-item .version[data-v-9b84856a]{min-width:130px}.project-plugin-item .latest .value[data-v-9b84856a],.project-plugin-item .version .value[data-v-9b84856a]{font-family:monospace;font-size:.9em}.project-plugin-item .package-description[data-v-9b84856a]{font-style:italic;opacity:.7;display:inline-block;max-width:300px;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;position:relative;top:4px}.project-plugins .content-view[data-v-57b470b3]>.content{overflow-y:auto}.project-plugins-add[data-v-290be5fe]{display:grid;grid-template-columns:1fr;grid-template-rows:auto;grid-template-areas:"content"}.content[data-v-290be5fe]{grid-area:content;overflow:hidden}.project-create[data-v-33533e3c]{display:grid;grid-template-columns:1fr;grid-template-rows:auto;grid-template-areas:"content"}.content[data-v-33533e3c]{grid-area:content}.project-details[data-v-33533e3c]{max-width:400px;width:100%;margin:42px auto;grid-gap:48px}.project-details .vue-ui-text.banner[data-v-33533e3c]{margin-top:6px}.project-path[data-v-33533e3c]{display:flex;flex-direction:row;align-items:center;justify-content:center}.project-path>[data-v-33533e3c]{flex:auto 0 0}.project-path .path[data-v-33533e3c]{flex:100% 1 1;margin-right:6px;display:flex;flex-direction:row;align-items:baseline}.project-path .path>[data-v-33533e3c]{flex:auto 0 0}.project-path .path .folder[data-v-33533e3c]{font-weight:700}.project-feature-item .vue-ui-switch[data-v-4c4b8350]{padding:16px;width:100%;box-sizing:border-box}.project-preset-item[data-v-79290378]{padding:16px;padding-left:0}.project-preset-item .content[data-v-79290378]{display:grid;grid-template-columns:64px auto;grid-template-rows:auto;grid-template-areas:"icon info"}.project-preset-item .radio-icon[data-v-79290378]{display:flex;flex-direction:row;align-items:center;justify-content:center;grid-area:icon}.project-preset-item .radio-icon>[data-v-79290378]{flex:auto 0 0}.project-preset-item .list-item-info[data-v-79290378]{grid-area:info}.project-preset-item.selected .radio-icon[data-v-79290378] svg{fill:#42b983}.folder-explorer[data-v-017a7afe]{height:100%;flex:100% 1 1}.project-select[data-v-017a7afe]{height:100%}.top-menu[data-v-017a7afe]{position:fixed;top:16px}.top-menu.left[data-v-017a7afe]{left:16px}.top-menu.right[data-v-017a7afe]{right:16px}.project-select-list[data-v-7fe81cfe]{height:100%;overflow-y:auto;position:relative;min-height:400px}.toolbar[data-v-7fe81cfe]{display:flex;flex-direction:row;align-items:center;justify-content:center;margin-bottom:16px}.toolbar>[data-v-7fe81cfe]{flex:auto 0 0}.content[data-v-1bbc1c3c]{padding:16px;display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto;grid-template-areas:"icon info actions";grid-gap:16px}.favorite[data-v-1bbc1c3c]{grid-area:icon;display:flex;flex-direction:row;align-items:center;justify-content:center}.favorite>[data-v-1bbc1c3c]{flex:auto 0 0}.info[data-v-1bbc1c3c]{grid-area:info}.actions[data-v-1bbc1c3c]{grid-area:actions;display:flex;flex-direction:row;align-items:center}.actions>[data-v-1bbc1c3c]{flex:auto 0 0}.actions[data-v-1bbc1c3c]>*{margin-right:16px}.actions[data-v-1bbc1c3c]>:last-child{margin-right:0}.name[data-v-1bbc1c3c]{display:flex;flex-direction:row;align-items:center}.name>[data-v-1bbc1c3c]{flex:auto 0 0}.bullet-menu[data-v-1bbc1c3c]{margin-left:6px}.project-select-list-item.open[data-v-1bbc1c3c]:not(:hover){background:rgba(66,185,131,.05)}.bullet[data-v-7a5ea0e6]{width:8px;height:8px;border-radius:50%}.menu-trigger[data-v-7a5ea0e6]{width:20px!important;height:20px!important;display:flex;flex-direction:row;align-items:center;justify-content:center}.menu-trigger>[data-v-7a5ea0e6]{flex:auto 0 0}.menu-trigger.running .bullet[data-v-7a5ea0e6]{background-color:#03c2e6}.menu-trigger.running:hover .bullet[data-v-7a5ea0e6]{background-color:#24dafc}.menu-trigger.idle .bullet[data-v-7a5ea0e6]{background-color:#e6e6e6}.menu-trigger.idle:hover .bullet[data-v-7a5ea0e6]{background-color:#ebebeb}.vue-ui-dark-mode .menu-trigger.idle .bullet[data-v-7a5ea0e6]{background-color:#33485c}.vue-ui-dark-mode .menu-trigger.idle:hover .bullet[data-v-7a5ea0e6]{background-color:#4d6d8b}.tasks[data-v-7a5ea0e6]{width:400px;max-height:400px;overflow-y:auto}.prompt{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer}.prompt.selected{background:rgba(66,185,131,.08)}.prompt:hover{background:rgba(66,185,131,.05)}.prompt .prompt-content{display:grid;grid-template-columns:auto 300px;grid-template-rows:auto;grid-template-areas:"info input";padding:16px}.prompt .prompt-content>.list-item-info{grid-area:info}.prompt .prompt-content>.prompt-input{grid-area:input;display:flex;flex-direction:column;align-items:stretch;justify-content:center}.prompt .prompt-content>.prompt-input>*{flex:auto 0 0}.prompt .prompt-content.vertical{grid-template-columns:auto;grid-template-areas:"info" "input";grid-gap:16px}.prompt .list-item-info{margin-right:32px}.prompt-content[data-v-814eceb6]{display:flex;flex-direction:column;align-items:stretch}.prompt-content>[data-v-814eceb6]{flex:auto 0 0}.prompt-content .vue-ui-switch[data-v-814eceb6]{margin-top:6px}.color-preview[data-v-17ce3a2a]{padding-left:16px}.color-swatch[data-v-17ce3a2a]{width:18px;height:18px;border-radius:50%}.color-picker[data-v-17ce3a2a]{width:300px!important;height:370px!important;background:none;box-shadow:none;padding:12px 16px}.color-picker[data-v-17ce3a2a] .vc-sketch-presets{border-top-color:rgba(0,0,0,.1)}.prompt-confirm .vue-ui-switch[data-v-01a5ec3e]{padding:16px;width:100%;box-sizing:border-box}.vue-ui-input[data-v-4434277c]>.content>.input-wrapper>textarea.input{min-height:16em}.prompt-error[data-v-34f8cb1e]{padding:0 16px 16px}.prompt-error .banner[data-v-34f8cb1e]{border-radius:3px}.group[data-v-678b61da]{margin-bottom:32px}.group-name[data-v-678b61da]{padding:16px 16px 8px;font-size:1.6em;font-weight:300;color:#6806c1}.vue-ui-dark-mode .group-name[data-v-678b61da]{color:#c486fb}.instant-search-input .vue-ui-input[data-v-615eeb16]{width:100%}.instant-search-pagination[data-v-43c44150]{margin:16px 0}.instant-search-pagination .content[data-v-43c44150]{display:flex;flex-direction:row;align-items:center;justify-content:center}.instant-search-pagination .content>[data-v-43c44150]{flex:auto 0 0}.instant-search-pagination .content>.vue-ui-button[data-v-43c44150]{margin-right:6px}.instant-search-pagination .content>.vue-ui-button[data-v-43c44150]:last-child{margin-right:0}.suggestions[data-v-6db62ce8]{display:flex;flex-direction:row}.suggestions>[data-v-6db62ce8]{flex:auto 0 0}.suggestion-details[data-v-624b111e]{padding:24px 32px;box-sizing:border-box;width:440px!important}.suggestion-details .label[data-v-624b111e]{font-size:20px}.suggestion-details .actions-bar[data-v-624b111e]{padding:0;margin-top:48px}.suggestion-details .info[data-v-624b111e]:not(:last-child){margin-bottom:16px}.suggestion-details .info.image[data-v-624b111e] img{max-width:100%}.suggestion-bar-item[data-v-624b111e]{margin-left:16px;display:flex;flex-direction:row;align-items:center;justify-content:center}.suggestion-bar-item>[data-v-624b111e]{flex:auto 0 0}.suggestion-bar-item .wrapper[data-v-624b111e]{width:-webkit-max-content;width:-moz-max-content;width:max-content;box-sizing:border-box}.suggestion-bar-item.ping[data-v-624b111e]:not(.suggestion-leave-active){-webkit-animation:ping-data-v-624b111e .5s ease-in-out;animation:ping-data-v-624b111e .5s ease-in-out}.suggestion-enter-active[data-v-624b111e],.suggestion-enter-active[data-v-624b111e] .vue-ui-button,.suggestion-leave-active[data-v-624b111e],.suggestion-leave-active[data-v-624b111e] .vue-ui-button{transition:all 1.5s cubic-bezier(.075,.82,.165,1)}.suggestion-enter-active[data-v-624b111e] .vue-ui-button .content,.suggestion-leave-active[data-v-624b111e] .vue-ui-button .content{transition:all .2s}.suggestion-enter-active[data-v-624b111e] .vue-ui-button .content{transition-delay:.5s}.suggestion-enter[data-v-624b111e],.suggestion-leave-to[data-v-624b111e]{width:0!important;opacity:0;margin-left:0}.suggestion-enter[data-v-624b111e] .vue-ui-button,.suggestion-leave-to[data-v-624b111e] .vue-ui-button{transform:scale(0)}.suggestion-enter[data-v-624b111e] .vue-ui-button .content,.suggestion-leave-to[data-v-624b111e] .vue-ui-button .content{opacity:0}@-webkit-keyframes ping-data-v-624b111e{0%,to{transform:none;filter:none}25%{transform:scale(1.1);filter:brightness(120%)}}@keyframes ping-data-v-624b111e{0%,to{transform:none;filter:none}25%{transform:scale(1.1);filter:brightness(120%)}}.project-task-details[data-v-074b7efc]{display:flex;flex-direction:column;align-items:stretch;height:100%}.project-task-details>[data-v-074b7efc]{flex:auto 0 0}@media (max-width:1250px){.actions-bar[data-v-074b7efc]{flex-direction:column}.views[data-v-074b7efc]{margin-top:16px}}.command[data-v-074b7efc]{flex:1;font-family:Roboto Mono,monospace;font-size:12px;background:rgba(66,185,131,.2);color:#2c3e50;padding:10px 16px;height:32px;border-radius:3px;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box}.vue-ui-dark-mode .command[data-v-074b7efc]{background:#2c3e50;color:#fff}.content[data-v-074b7efc]{flex:auto 1 1;height:0;margin:0 16px 16px;position:relative}.placeholder-content .view[data-v-074b7efc],.terminal-view[data-v-074b7efc]{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:3px}.placeholder-content .view.ghost[data-v-074b7efc],.terminal-view.ghost[data-v-074b7efc]{opacity:0;pointer-events:none}.view[data-v-074b7efc]{max-height:100%;overflow-x:hidden;overflow-y:auto}.header[data-v-074b7efc]{padding:16px 16px 0;display:flex;flex-direction:row;align-items:center}.header>[data-v-074b7efc]{flex:auto 0 0}.header .task-icon[data-v-074b7efc]{margin-right:4px}.header .task-icon[data-v-074b7efc] svg{fill:#2c3e50}.vue-ui-dark-mode .header .task-icon[data-v-074b7efc] svg{fill:#e4f5ef}.header .name[data-v-074b7efc]{font-size:22px;color:#2c3e50;position:relative;top:-1px}.vue-ui-dark-mode .header .name[data-v-074b7efc]{color:#e4f5ef}.header .description[data-v-074b7efc]{flex:1;color:#6a8bad;margin:0 16px;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.main-actions[data-v-074b7efc]{flex:1}.main-actions[data-v-074b7efc]>:not(:last-child){margin-right:16px}.task-settings[data-v-074b7efc]{padding:16px;box-sizing:border-box;width:700px}.task-settings .prompts[data-v-074b7efc]{max-height:500px;overflow-y:auto}.search[data-v-492ec4a6]{margin-right:6px}.task-item[data-v-7f8de00b]{padding:16px}.task-item .content[data-v-7f8de00b]{display:flex;flex-direction:row;align-items:center;justify-content:center}.task-item .content>[data-v-7f8de00b]{flex:auto 0 0}.task-item .list-item-info[data-v-7f8de00b]{flex:100% 1 1;width:0;overflow:hidden}.task-item .list-item-info[data-v-7f8de00b] .description{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.task-item.selected.status-error .list-item-info[data-v-7f8de00b] .name{color:#e83030}.task-item.selected.status-running .list-item-info[data-v-7f8de00b] .name{color:#03c2e6}.view-badge .content[data-v-3c51b48c]{font-size:12px;display:flex;flex-direction:row;align-items:center;justify-content:center}.view-badge .content>[data-v-3c51b48c]{flex:auto 0 0}.view-badge .content .counter[data-v-3c51b48c]{min-width:22px;text-align:center;border-radius:8px;margin-right:6px;font-family:Roboto Mono,monospace}.view-badge .content .label[data-v-3c51b48c]{flex:auto 1 1}.view-badge.type-info .counter[data-v-3c51b48c]{background:#03c2e6}.view-badge.type-success .counter[data-v-3c51b48c]{background:#42b983}.view-badge.type-error .counter[data-v-3c51b48c]{background:#e83030}.view-badge.type-warning .counter[data-v-3c51b48c]{background:#ea6e00}.view-badge.type-accent .counter[data-v-3c51b48c]{background:#6806c1}.view-badge.type-dim .counter[data-v-3c51b48c]{background:#9e9e9e}.vue-ui-dark-mode .view-badge .counter[data-v-3c51b48c]{color:#fff}.project-nav[data-v-38f637c7]{background:#fff;box-shadow:2px 0 10px rgba(0,0,0,.1);position:relative;z-index:2;display:flex;flex-direction:column}.project-nav>[data-v-38f637c7]{flex:auto 0 0}.vue-ui-dark-mode .project-nav[data-v-38f637c7]{background:#1d2935}.project-nav .header[data-v-38f637c7]{padding:16px;display:flex}.project-nav .header .project-quick-dropdown[data-v-38f637c7]{flex:1}.project-nav .content[data-v-38f637c7]{flex:1;display:flex;flex-direction:column;height:100%;padding:8px 0;box-sizing:border-box}.project-nav .content>[data-v-38f637c7]{flex:auto 0 0}.project-nav .content .vue-ui-group[data-v-38f637c7]{flex:auto 1 1;height:0;overflow:hidden}.project-nav .content[data-v-38f637c7] .indicator{justify-content:flex-start;margin-left:4px}.project-nav .content[data-v-38f637c7] .indicator .content{width:6px;height:6px!important;border-radius:50%;border:none!important;background:#42b983}.project-nav .content[data-v-38f637c7] .vue-ui-dropdown{display:block!important}.project-nav .content[data-v-38f637c7] .vue-ui-button{border-radius:0;padding-left:0;padding-right:0;display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%}.project-nav .content[data-v-38f637c7] .vue-ui-button>*{flex:auto 0 0}.project-nav .content[data-v-38f637c7] .vue-ui-button.selected{color:#42b983;background:transparent}.project-nav .content[data-v-38f637c7] .vue-ui-button.selected:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .project-nav .content[data-v-38f637c7] .vue-ui-button.selected:not(.ghost){background:rgba(64,64,64,0)}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .project-nav .content[data-v-38f637c7] .vue-ui-button.selected:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .project-nav .content[data-v-38f637c7] .vue-ui-button.selected:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .project-nav .content[data-v-38f637c7] .vue-ui-button.selected:not(.ghost):hover{background:#2c3e50!important}.project-nav .content[data-v-38f637c7] .vue-ui-button.selected:not(.ghost):active{background:transparent}.project-nav .content[data-v-38f637c7] .vue-ui-button.selected>.content>.button-icon svg{fill:#42b983}.project-nav .content[data-v-38f637c7] .vue-ui-button.selected>.content>.loading-secondary .animation,.project-nav .content[data-v-38f637c7] .vue-ui-button.selected>.vue-ui-loading-indicator .animation{border-right-color:#42b983}.project-nav .content[data-v-38f637c7] .vue-ui-button.selected>.content>.tag-wrapper>.tag{background:#42b983;color:transparent;color:#fff}.vue-ui-dark-mode .project-nav .content[data-v-38f637c7] .vue-ui-button.selected>.content>.tag-wrapper>.tag{color:#2c3e50!important}.vue-ui-high-contrast .project-nav .content[data-v-38f637c7] .vue-ui-button.selected>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.project-nav .content[data-v-38f637c7] .vue-ui-button.selected.vue-ui-dropdown-button,.project-nav .content[data-v-38f637c7] .vue-ui-button.selected:before{background:transparent}.project-nav .content[data-v-38f637c7] .vue-ui-button.selected.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .project-nav .content[data-v-38f637c7] .vue-ui-button.selected.vue-ui-dropdown-button:not(:hover){color:#fff!important}.project-nav .content[data-v-38f637c7] .vue-ui-button.selected.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .project-nav .content[data-v-38f637c7] .vue-ui-button.selected.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.project-nav.wide .content[data-v-38f637c7] .vue-ui-button{justify-content:flex-start;padding-left:16px;padding-right:16px}.project-nav.wide .content[data-v-38f637c7] .vue-ui-button>.content{width:100%;text-align:left}.project-nav.wide .content[data-v-38f637c7] .vue-ui-button>.content>.default-slot{flex:auto 1 1;width:0;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap;padding:4px 0}.project-nav-button[data-v-4a3e22ee]{position:relative}.project-nav-button .force-tooltip[data-v-4a3e22ee]{width:100%}.project-nav-button .bullet[data-v-4a3e22ee]{position:absolute;width:6px;height:6px;border-radius:50%;bottom:12px;left:27px;pointer-events:none;border:2px solid #e4f5ef;transition:border-color .1s}.project-nav-button .bullet.type-info[data-v-4a3e22ee]{background:#03c2e6}.project-nav-button .bullet.type-success[data-v-4a3e22ee]{background:#42b983}.project-nav-button .bullet.type-error[data-v-4a3e22ee]{background:#e83030}.project-nav-button .bullet.type-warning[data-v-4a3e22ee]{background:#ea6e00}.project-nav-button .bullet.type-accent[data-v-4a3e22ee]{background:#6806c1}.project-nav-button .bullet.type-dim[data-v-4a3e22ee]{background:#9e9e9e}.vue-ui-dark-mode .project-nav-button .bullet[data-v-4a3e22ee]{border-color:#2c3e50}.wide .project-nav-button .bullet[data-v-4a3e22ee]{left:28px}.project-nav-button:hover .bullet[data-v-4a3e22ee]{border-color:#ebf8f3}.vue-ui-dark-mode .project-nav-button:hover .bullet[data-v-4a3e22ee]{border-color:#4e6e8e}.project-nav-button:active .bullet[data-v-4a3e22ee]{border-color:#c8ebdf}.vue-ui-dark-mode .project-nav-button:active .bullet[data-v-4a3e22ee]{border-color:#28394a}.project-nav-button .image-icon[data-v-4a3e22ee]{max-width:24px}.wide .project-nav-button .image-icon[data-v-4a3e22ee]{margin-right:6px;position:relative;left:-2px}.project-nav-button .vue-ui-group-button.has-image-icon[data-v-4a3e22ee] .default-slot{display:flex;align-items:center;overflow:visible!important}.project-nav-button .vue-ui-group-button.has-image-icon[data-v-4a3e22ee] .default-slot .label{display:block;max-width:150px;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.project-nav-button .vue-ui-group-button.default-plugin-icon .image-icon[data-v-4a3e22ee]{border-radius:50%}.project-nav-button .vue-ui-group-button.selected[data-v-4a3e22ee]{background:rgba(66,185,131,.05)!important}.badges[data-v-4a3e22ee]{margin:8px 0;display:grid;grid-template-columns:auto;grid-gap:4px}.project-nav-more .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button[data-v-2251f1b8],.project-nav-more .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button[data-v-2251f1b8]:hover{background:#3a5169!important;color:#fff!important}.project-nav-more .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button[data-v-2251f1b8]:hover>.content>.button-icon svg,.project-nav-more .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button[data-v-2251f1b8]>.content>.button-icon svg{fill:#fff!important}.sidepane-enter-active,.sidepane-leave-active{transition:transform .15s}.sidepane-enter,.sidepane-leave-to{transform:translateX(100%)}.slide-up-enter-active,.slide-up-leave-active{transition:transform .3s ease-out,opacity .3s}.slide-up-enter,.slide-up-leave-to{opacity:0}.slide-up-enter{transform:translateY(100%)}.slide-up-leave-to{transform:translateY(-100%)}#app,.page,body,html{height:100%}h2{line-height:32px}ul{padding-left:16px}.empty-icon{display:block;margin:24px auto;width:48px;height:48px}.actions-bar{padding:16px;display:flex;flex-direction:row;align-items:center;justify-content:center;position:relative}.actions-bar>*{flex:auto 0 0;margin-right:16px}.actions-bar>:last-child{margin-right:0}.actions-bar.space-between{justify-content:space-between}.actions-bar.center{justify-content:center}.actions-bar.start{justify-content:flex-start}.actions-bar.end{justify-content:flex-end}.actions-bar.fill>*{flex:auto 1 1;width:0}.cta-text{margin:16px;color:#6a8bad;font-size:18px}.list-item{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:pointer}.list-item.selected{background:rgba(66,185,131,.08)}.list-item:hover{background:rgba(66,185,131,.05)}.list-header{padding:16px;display:flex;align-items:center;justify-content:center}.list-header .search{flex:1}.card{background:#fff;border-radius:6px;box-shadow:0 4px 15px rgba(0,0,0,.05)}.vue-ui-dark-mode .card{background:#1d2935}.ansi-black-fg{color:#2c3e50}.ansi-black-bg{background:#2c3e50}.ansi-bright-black-fg{color:#3a5169}.ansi-bright-black-bg{background:#3a5169}.ansi-red-fg{color:#e83030}.ansi-red-bg{background:#e83030}.ansi-bright-red-fg{color:#ea4545}.ansi-bright-red-bg{background:#ea4545}.ansi-green-fg{color:#42b983}.ansi-green-bg{background:#42b983}.ansi-bright-green-fg{color:#53c290}.ansi-bright-green-bg{background:#53c290}.ansi-yellow-fg{color:#ea6e00}.ansi-yellow-bg{background:#ea6e00}.ansi-bright-yellow-fg{color:#ff7b07}.ansi-bright-yellow-bg{background:#ff7b07}.ansi-blue-fg{color:#2196f3}.ansi-blue-bg{background:#2196f3}.ansi-bright-blue-fg{color:#37a1f4}.ansi-bright-blue-bg{background:#37a1f4}.ansi-magenta-fg{color:#6806c1}.ansi-magenta-bg{background:#6806c1}.ansi-bright-magenta-fg{color:#7807df}.ansi-bright-magenta-bg{background:#7807df}.ansi-cyan-fg{color:#03c2e6}.ansi-cyan-bg{background:#03c2e6}.ansi-bright-cyan-fg{color:#09d5fc}.ansi-bright-cyan-bg{background:#09d5fc}.ansi-white-fg{color:#fff}.ansi-white-bg{background:#fff}.ansi-bright-white-fg{color:#fff}.ansi-bright-white-bg{background:#fff}.vue-ui-dark-mode .ansi-black-fg{color:#4f6f7f}.vue-ui-dark-mode .ansi-black-bg{background:#4f6f7f}.vue-ui-dark-mode .ansi-bright-black-fg{color:#5b7f92}.vue-ui-dark-mode .ansi-bright-black-bg{background:#5b7f92}.vue-ui-dark-mode .ansi-magenta-fg{color:#c486fb}.vue-ui-dark-mode .ansi-magenta-bg{background:#c486fb}.vue-ui-dark-mode .ansi-bright-magenta-fg{color:#ca92fb}.vue-ui-dark-mode .ansi-bright-magenta-bg{background:#ca92fb}.vue-ui-dark-mode .ansi-white-fg{color:#e4f5ef}.vue-ui-dark-mode .ansi-white-bg{background:#e4f5ef}.vue-ui-dark-mode .ansi-bright-white-fg{color:#e7f6f1}.vue-ui-dark-mode .ansi-bright-white-bg{background:#e7f6f1}.vue-ui-icon.separator{width:6px;height:6px;display:flex;flex-direction:row;align-items:center;justify-content:center;margin:16px}.vue-ui-icon.separator>*{flex:auto 0 0}.vue-ui-icon.separator svg{fill:rgba(44,62,80,.2)}.vue-ui-dark-mode .vue-ui-icon.separator svg{fill:hsla(0,0%,100%,.2)}.ais-index{height:100%;display:flex;flex-direction:column;align-items:stretch}.ais-index>*{flex:auto 0 0}.ais-results-box{flex:100% 1 1;height:0;overflow-x:hidden;overflow-y:auto;margin:16px 0}.ais-no-results{margin-top:42px}.ais-highlight em{font-style:normal;background:#d9f1e6;color:#3ba776;padding:0 2px;border-radius:3px}.vue-ui-dark-mode .ais-highlight em{background:#2c3e50;color:#42b983}.ais-logo{max-width:150px}.vue-ui-dark-mode .ais-logo{filter:brightness(200%)}.no-padding-x{padding-left:0;padding-right:0}.no-padding-y{padding-top:0;padding-bottom:0}.no-margin-x{margin-left:0;margin-right:0}.no-margin-y{margin-top:0;margin-bottom:0}.fill-height{height:100%}.blank-icon{width:24px;height:24px;display:block;margin:auto}.blank-icon svg{fill:rgba(44,62,80,.3)}.pane-toolbar{display:flex;flex-direction:row;align-items:center;padding:6px 6px 6px 16px}.pane-toolbar>*{flex:auto 0 0}.pane-toolbar>:not(.separator){margin-right:6px}.pane-toolbar>:not(.separator):last-child{margin-right:0}.pane-toolbar>*+.separator{margin-left:6px}.pane-toolbar .title{flex:100% 1 1;width:0;overflow:hidden;-ms-text-overflow:ellipsis;text-overflow:ellipsis;white-space:nowrap}.pane-toolbar .dropdown-trigger>.vue-ui-button:not(.icon-button),.pane-toolbar>.vue-ui-button:not(.icon-button),.pane-toolbar>.vue-ui-switch{padding:0 8px}.pane-toolbar>.vue-ui-switch{font-size:14px}.dropdown-separator{height:1px;margin:8px 0;background:rgba(44,62,80,.05)}.vue-ui-dark-mode .dropdown-separator{background:rgba(79,111,127,.2)}.vue-ui-modal.anchor{align-items:flex-start}.vue-ui-modal.anchor .shell{margin-top:42px}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{background:none!important}.vue-ui-dark-mode .token.boolean,.vue-ui-dark-mode .token.constant,.vue-ui-dark-mode .token.deleted,.vue-ui-dark-mode .token.number,.vue-ui-dark-mode .token.property,.vue-ui-dark-mode .token.symbol,.vue-ui-dark-mode .token.tag{color:#ff29a0}.vue-ui-dark-mode .token.attr-name,.vue-ui-dark-mode .token.builtin,.vue-ui-dark-mode .token.char,.vue-ui-dark-mode .token.inserted,.vue-ui-dark-mode .token.selector,.vue-ui-dark-mode .token.string{color:#b8ff29}.vue-ui-dark-mode .token.atrule,.vue-ui-dark-mode .token.attr-value,.vue-ui-dark-mode .token.keyword{color:#33c2ff}.vue-ui-dark-mode .token.class-name,.vue-ui-dark-mode .token.function{color:#e78095}.vue-ui-dark-mode .language-css .token.string,.vue-ui-dark-mode .style .token.string,.vue-ui-dark-mode .token.entity,.vue-ui-dark-mode .token.operator,.vue-ui-dark-mode .token.url{color:#be8c52}.vue-ui-dark-mode .token.punctuation{color:#adadad}.resize-handle{position:absolute;width:12px;height:12px;border-radius:50%}.resize-handle,.resize-handle:hover{background:#42b983}.resize-handle.top,.resize-handle.top-left,.resize-handle.top-right{top:-6px}.resize-handle.bottom,.resize-handle.bottom-left,.resize-handle.bottom-right{bottom:-6px}.resize-handle.bottom-left,.resize-handle.left,.resize-handle.top-left{left:-6px}.resize-handle.bottom-right,.resize-handle.right,.resize-handle.top-right{right:-6px}.resize-handle.bottom,.resize-handle.top{left:calc(50% - 6px);cursor:ns-resize}.resize-handle.left,.resize-handle.right{top:calc(50% - 6px);cursor:ew-resize}.resize-handle.bottom-right,.resize-handle.top-left{cursor:nwse-resize}.resize-handle.bottom-left,.resize-handle.top-right{cursor:nesw-resize}.vue-ui-select{width:100%}.app[data-v-7f631aef]{display:flex;flex-direction:column}.connection-status[data-v-7f631aef],.status-bar[data-v-7f631aef]{flex:auto 0 0}.content[data-v-7f631aef]{flex:auto 1 1;height:100%;overflow:hidden}.app-init-loading[data-v-7f631aef]{z-index:100000} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/css/chunk-vendors.08e6b31c.css" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/css/chunk-vendors.08e6b31c.css" new file mode 100644 index 0000000000000000000000000000000000000000..b4b80ecffe156d00589bae6ec8bf9270e8f94269 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/css/chunk-vendors.08e6b31c.css" @@ -0,0 +1 @@ +.vue-recycle-scroller{position:relative}.vue-recycle-scroller.direction-vertical:not(.page-mode){overflow-y:auto}.vue-recycle-scroller.direction-horizontal:not(.page-mode){overflow-x:auto}.vue-recycle-scroller.direction-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex}.vue-recycle-scroller__slot{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-recycle-scroller__item-wrapper{-webkit-box-flex:1;-ms-flex:1;flex:1;-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden;position:relative}.vue-recycle-scroller.ready .vue-recycle-scroller__item-view{position:absolute;top:0;left:0;will-change:transform}.vue-recycle-scroller.direction-vertical .vue-recycle-scroller__item-wrapper{width:100%}.vue-recycle-scroller.direction-horizontal .vue-recycle-scroller__item-wrapper{height:100%}.vue-recycle-scroller.ready.direction-vertical .vue-recycle-scroller__item-view{width:100%}.vue-recycle-scroller.ready.direction-horizontal .vue-recycle-scroller__item-view{height:100%}.resize-observer[data-v-b329ee4c]{border:none;background-color:transparent;opacity:0}.resize-observer[data-v-b329ee4c],.resize-observer[data-v-b329ee4c] object{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;pointer-events:none;display:block;overflow:hidden}.xterm{font-feature-settings:"liga" 0;position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm{cursor:text}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility,.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:.5}.xterm-underline{text-decoration:underline}.resize-observer[data-v-8859cc6c]{border:none;background-color:transparent;opacity:0}.resize-observer[data-v-8859cc6c],.resize-observer[data-v-8859cc6c] object{position:absolute;top:0;left:0;z-index:-1;width:100%;height:100%;pointer-events:none;display:block;overflow:hidden}.v-popper--theme-dropdown .v-popper__inner{color:#000;padding:24px;border-radius:6px;-webkit-box-shadow:0 6px 30px rgba(0,0,0,.1);box-shadow:0 6px 30px rgba(0,0,0,.1)}.v-popper__popper{z-index:10000}.v-popper__popper.v-popper__popper--hidden{visibility:hidden;opacity:0;-webkit-transition:opacity .15s,visibility .15s;transition:opacity .15s,visibility .15s}.v-popper__popper.v-popper__popper--shown{visibility:visible;opacity:1;-webkit-transition:opacity .15s;transition:opacity .15s}.v-popper__popper.v-popper__popper--skip-transition,.v-popper__popper.v-popper__popper--skip-transition>.v-popper__wrapper{-webkit-transition:none!important;transition:none!important}.v-popper__inner{position:relative}.v-popper__arrow-container{width:10px;height:10px}.v-popper__arrow{border-style:solid;position:relative;width:0;height:0}.v-popper__popper[data-popper-placement^=top] .v-popper__arrow{border-width:5px 5px 0 5px;border-left-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow-container{top:0}.v-popper__popper[data-popper-placement^=bottom] .v-popper__arrow{border-width:0 5px 5px 5px;border-left-color:transparent!important;border-right-color:transparent!important;border-top-color:transparent!important;top:-5px}.v-popper__popper[data-popper-placement^=right] .v-popper__arrow{border-width:5px 5px 5px 0;border-left-color:transparent!important;border-top-color:transparent!important;border-bottom-color:transparent!important;left:-5px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow-container{right:-5px}.v-popper__popper[data-popper-placement^=left] .v-popper__arrow{border-width:5px 0 5px 5px;border-top-color:transparent!important;border-right-color:transparent!important;border-bottom-color:transparent!important;right:-5px}.v-popper{width:-webkit-max-content;width:-moz-max-content;width:max-content}.v-popper--theme-tooltip .v-popper__inner{background:rgba(0,0,0,.8);border-radius:6px;padding:7px 12px 6px}.v-popper--theme-tooltip .v-popper__arrow{border-color:rgba(0,0,0,.8)}.vue-ui-dropdown-content .vue-ui-dropdown-button.vue-ui-button{border-radius:0;-webkit-transition:background .1s,color .1s;transition:background .1s,color .1s;text-align:left}.vue-ui-dropdown-content .vue-ui-dropdown-button.vue-ui-button>.content>.button-icon svg{-webkit-transition:fill .1s;transition:fill .1s}.vue-ui-dropdown-content .vue-ui-dropdown-button.vue-ui-button>.content{min-width:100%;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.vue-ui-dropdown{display:inline-block;vertical-align:middle;position:relative}.vue-ui-dropdown .trigger:focus{outline:0}.vue-ui-dropdown .trigger::-moz-focus-inner{border:0}.vue-ui-dropdown .dropdown-trigger:not(.icon-button),.vue-ui-dropdown .dropdown-trigger>:not(.icon-button),.vue-ui-dropdown .trigger:not(.icon-button){width:100%}.vue-ui-dropdown-content.vue-ui-disable{-webkit-box-sizing:border-box;box-sizing:border-box}.vue-ui-dropdown-content.vue-ui-disable>:not(.vue-ui-grid){display:block;width:100%;min-width:150px}.vue-ui-dropdown-content.vue-ui-disable>.vue-ui-grid.default-gap{padding:8px 12px}.vue-ui-dropdown-content.vue-ui-disable>.vue-ui-grid.big-gap{padding:20px 24px}.vue-ui-dropdown-content.vue-ui-disable>.section-title{padding:6px 14px;opacity:.8}.vue-ui-form-field>.wrapper,.vue-ui-form-field>.wrapper>.content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.vue-ui-form-field>.wrapper>*,.vue-ui-form-field>.wrapper>.content>*{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-ui-form-field>.wrapper>.content{margin:6px 0}.vue-ui-form-field>.wrapper>.content>*{margin-bottom:8px}.vue-ui-form-field>.wrapper>.content>:last-child{margin-bottom:0}.vue-ui-form-field>.wrapper>.subtitle,.vue-ui-form-field>.wrapper>.title{-webkit-transition:opacity .3s;transition:opacity .3s}.vue-ui-form-field>.wrapper>.subtitle{font-size:14px}.vue-ui-form-field>.wrapper>.subtitle:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat){color:#4f6f7f}.vue-ui-form-field>.wrapper>.subtitle:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat) .vue-ui-icon svg{fill:#4f6f7f}.vue-ui-dark-mode .vue-ui-form-field>.wrapper>.subtitle:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat){color:#e0f8ed}.vue-ui-dark-mode .vue-ui-form-field>.wrapper>.subtitle:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat) .vue-ui-icon svg{fill:#e0f8ed}.vue-ui-form-field:not(.focused)>.wrapper>.subtitle,.vue-ui-form-field:not(.focused)>.wrapper>.title{opacity:.75}.vue-ui-group,.vue-ui-group>.content-wrapper{position:relative}.vue-ui-group>.content-wrapper>.content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vue-ui-group>.content-wrapper>.content>.vue-ui-button{-webkit-box-flex:1;-ms-flex:auto 1 0px;flex:auto 1 0}.vue-ui-group.start>.content-wrapper>.content{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.vue-ui-group.end>.content-wrapper>.content{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.vue-ui-group.vertical>.content-wrapper>.content{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.vue-ui-group.inline{display:inline-block;vertical-align:middle}.vue-ui-group>.indicator{position:absolute;-webkit-transition:top .15s ease-in-out,left .15s ease-in-out,width .15s ease-in-out,height .15s ease-in-out;transition:top .15s ease-in-out,left .15s ease-in-out,width .15s ease-in-out,height .15s ease-in-out;pointer-events:none;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vue-ui-group>.indicator>*{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-ui-group>.indicator>.content{-webkit-box-sizing:content-box;box-sizing:content-box;width:100%;height:100%}.vue-ui-group:not(.vertical):not(.top-indicator)>.indicator{padding-bottom:1px}.vue-ui-group:not(.vertical):not(.top-indicator)>.indicator>.content{border-bottom:2px solid rgba(44,62,80,.7)}.vue-ui-dark-mode .vue-ui-group:not(.vertical):not(.top-indicator)>.indicator>.content{border-bottom-color:#fff}.vue-ui-group:not(.vertical):not(.top-indicator).primary>.indicator>.content{border-bottom-color:rgba(66,185,131,.7)}.vue-ui-group:not(.vertical):not(.top-indicator).accent>.indicator>.content{border-bottom-color:rgba(164,76,246,.7)}.vue-ui-dark-mode .vue-ui-group:not(.vertical):not(.top-indicator).accent>.indicator>.content{border-bottom-color:#c88eff}.vue-ui-group:not(.vertical).top-indicator>.indicator{padding-top:1px}.vue-ui-group:not(.vertical).top-indicator>.indicator>.content{border-top:2px solid rgba(44,62,80,.7)}.vue-ui-dark-mode .vue-ui-group:not(.vertical).top-indicator>.indicator>.content{border-top-color:#fff}.vue-ui-group:not(.vertical).top-indicator.primary>.indicator>.content{border-top-color:rgba(66,185,131,.7)}.vue-ui-group:not(.vertical).top-indicator.accent>.indicator>.content{border-top-color:rgba(164,76,246,.7)}.vue-ui-dark-mode .vue-ui-group:not(.vertical).top-indicator.accent>.indicator>.content{border-top-color:#c88eff}.vue-ui-group:not(.vertical).small-indicator>.indicator>.content{width:12px}.vue-ui-group.vertical:not(.left-indicator)>.indicator{padding-right:1px}.vue-ui-group.vertical:not(.left-indicator)>.indicator>.content{border-right:2px solid rgba(44,62,80,.7)}.vue-ui-dark-mode .vue-ui-group.vertical:not(.left-indicator)>.indicator>.content{border-right-color:#fff}.vue-ui-group.vertical:not(.left-indicator).primary>.indicator>.content{border-right-color:rgba(66,185,131,.7)}.vue-ui-group.vertical:not(.left-indicator).accent>.indicator>.content{border-right-color:rgba(164,76,246,.7)}.vue-ui-dark-mode .vue-ui-group.vertical:not(.left-indicator).accent>.indicator>.content{border-right-color:#c88eff}.vue-ui-group.vertical.left-indicator>.indicator{padding-left:1px}.vue-ui-group.vertical.left-indicator>.indicator>.content{border-left:2px solid rgba(44,62,80,.7)}.vue-ui-dark-mode .vue-ui-group.vertical.left-indicator>.indicator>.content{border-left-color:#fff}.vue-ui-group.vertical.left-indicator.primary>.indicator>.content{border-left-color:rgba(66,185,131,.7)}.vue-ui-group.vertical.left-indicator.accent>.indicator>.content{border-left-color:rgba(164,76,246,.7)}.vue-ui-dark-mode .vue-ui-group.vertical.left-indicator.accent>.indicator>.content{border-left-color:#c88eff}.vue-ui-group.vertical.small-indicator>.indicator>.content{height:12px}.vue-ui-group.min-size>.content-wrapper>.content>.vue-ui-button{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-ui-group.extend>.content-wrapper>.content>.vue-ui-button:not(.icon-button){-webkit-box-flex:100%;-ms-flex:100% 1 1;flex:100% 1 1;width:0}.vue-ui-group-button.vue-ui-button{-webkit-transition:background .1s,color .1s;transition:background .1s,color .1s}.vue-ui-group-button.vue-ui-button>.content>.button-icon svg{-webkit-transition:fill .1s;transition:fill .1s}.vue-ui-group-button.vue-ui-button:not(.selected):not(.flat){color:#2c3e50;background:#e0f8ed}.vue-ui-dropdown.open .dropdown-trigger .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat):not(.ghost),.vue-ui-group-button.vue-ui-button:not(.selected):not(.flat):not(.ghost):hover{background:#e8faf2}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat):not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat):not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat):not(.ghost):hover{background:#2c3e50!important}.vue-ui-group-button.vue-ui-button:not(.selected):not(.flat):not(.ghost):active{background:#c1f1db}.vue-ui-group-button.vue-ui-button:not(.selected):not(.flat)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-group-button.vue-ui-button:not(.selected):not(.flat)>.content>.loading-secondary .animation,.vue-ui-group-button.vue-ui-button:not(.selected):not(.flat)>.vue-ui-loading-indicator .animation{border-right-color:#2c3e50}.vue-ui-group-button.vue-ui-button:not(.selected):not(.flat)>.content>.tag-wrapper>.tag{background:#2c3e50;color:#e0f8ed}.vue-ui-high-contrast .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat)>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-group-button.vue-ui-button:not(.selected):not(.flat):before{background:#e0f8ed}.vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-dropdown-button{background:0 0}.vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat){color:#fff;background:#2c3e50}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat):not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat):not(.ghost){background:#4e6e8e}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat):not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat):not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat):not(.ghost):hover{background:#2c3e50!important}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat):not(.ghost):active{background:#28394a}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat)>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat)>.vue-ui-loading-indicator .animation{border-right-color:#fff}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat)>.content>.tag-wrapper>.tag{background:#fff;color:#2c3e50}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat)>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat):before{background:#2c3e50}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-dropdown-button{background:0 0}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-select-button{color:#fff;background:#4f6f7f}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-select-button:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-select-button:not(.ghost){background:#7296a8}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-select-button:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-select-button:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-select-button:not(.ghost):hover{background:#2c3e50!important}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-select-button:not(.ghost):active{background:#496675}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-select-button>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-select-button>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-select-button>.vue-ui-loading-indicator .animation{border-right-color:#fff}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-select-button>.content>.tag-wrapper>.tag{background:#fff;color:#4f6f7f}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-select-button>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-select-button:before{background:#4f6f7f}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-select-button.vue-ui-dropdown-button{background:0 0}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-select-button.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-select-button.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-select-button.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-group-button.vue-ui-button:not(.selected):not(.flat).vue-ui-select-button.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected{color:#42b983;background:#e0f8ed}.vue-ui-dropdown.open .dropdown-trigger .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected:not(.ghost),.vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected:not(.ghost):hover{background:#e8faf2}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected:not(.ghost):hover{background:#2c3e50!important}.vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected:not(.ghost):active{background:#c1f1db}.vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected>.content>.button-icon svg{fill:#42b983}.vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected>.content>.loading-secondary .animation,.vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected>.vue-ui-loading-indicator .animation{border-right-color:#42b983}.vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected>.content>.tag-wrapper>.tag{background:#42b983;color:#e0f8ed}.vue-ui-high-contrast .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected:before{background:#e0f8ed}.vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected.vue-ui-dropdown-button{background:0 0}.vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-dark-mode .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected{color:#42b983;background:#2c3e50}.vue-ui-dark-mode .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected:not(.ghost){background:#4e6e8e}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected:not(.ghost):hover{background:#2c3e50!important}.vue-ui-dark-mode .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected:not(.ghost):active{background:#28394a}.vue-ui-dark-mode .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected>.content>.button-icon svg{fill:#42b983}.vue-ui-dark-mode .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected>.vue-ui-loading-indicator .animation{border-right-color:#42b983}.vue-ui-dark-mode .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected>.content>.tag-wrapper>.tag{background:#42b983;color:#2c3e50}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-dark-mode .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected:before{background:#2c3e50}.vue-ui-dark-mode .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected.vue-ui-dropdown-button{background:0 0}.vue-ui-dark-mode .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-dark-mode .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-group.has-indicator.primary .vue-ui-group-button.vue-ui-button.selected.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected{color:#a44cf6;background:#e0f8ed}.vue-ui-dropdown.open .dropdown-trigger .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected:not(.ghost),.vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected:not(.ghost):hover{background:#e8faf2}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected:not(.ghost):hover{background:#2c3e50!important}.vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected:not(.ghost):active{background:#c1f1db}.vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected>.content>.button-icon svg{fill:#a44cf6}.vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected>.content>.loading-secondary .animation,.vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected>.vue-ui-loading-indicator .animation{border-right-color:#a44cf6}.vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected>.content>.tag-wrapper>.tag{background:#a44cf6;color:#e0f8ed}.vue-ui-high-contrast .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected:before{background:#e0f8ed}.vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected.vue-ui-dropdown-button{background:0 0}.vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-dark-mode .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected{color:#c88eff;background:#2c3e50}.vue-ui-dark-mode .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected:not(.ghost){background:#4e6e8e}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected:not(.ghost):hover{background:#2c3e50!important}.vue-ui-dark-mode .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected:not(.ghost):active{background:#28394a}.vue-ui-dark-mode .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected>.content>.button-icon svg{fill:#c88eff}.vue-ui-dark-mode .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected>.vue-ui-loading-indicator .animation{border-right-color:#c88eff}.vue-ui-dark-mode .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected>.content>.tag-wrapper>.tag{background:#c88eff;color:#2c3e50}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-dark-mode .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected:before{background:#2c3e50}.vue-ui-dark-mode .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected.vue-ui-dropdown-button{background:0 0}.vue-ui-dark-mode .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-dark-mode .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-group.has-indicator.accent .vue-ui-group-button.vue-ui-button.selected.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat){color:#fff;background:#2c3e50}.vue-ui-dropdown.open .dropdown-trigger .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat):not(.ghost),.vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat):not(.ghost):hover{background:#4e6e8e}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat):not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat):not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat):not(.ghost):hover{background:#2c3e50!important}.vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat):not(.ghost):active{background:#28394a}.vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat)>.content>.button-icon svg{fill:#fff}.vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat)>.content>.loading-secondary .animation,.vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat)>.vue-ui-loading-indicator .animation{border-right-color:#fff}.vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat)>.content>.tag-wrapper>.tag{background:#fff;color:#2c3e50}.vue-ui-high-contrast .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat)>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat):before{background:#2c3e50}.vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat).vue-ui-dropdown-button{background:0 0}.vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat).vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat).vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat){color:#fff;background:#4f6f7f}.vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat):not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat):not(.ghost){background:#7296a8}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat):not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat):not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat):not(.ghost):hover{background:#2c3e50!important}.vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat):not(.ghost):active{background:#496675}.vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat)>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat)>.vue-ui-loading-indicator .animation{border-right-color:#fff}.vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat)>.content>.tag-wrapper>.tag{background:#fff;color:#4f6f7f}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat)>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat):before{background:#4f6f7f}.vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat).vue-ui-dropdown-button{background:0 0}.vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat).vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat).vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-dark-mode .vue-ui-group:not(.has-indicator) .vue-ui-group-button.vue-ui-button.selected:not(.primary):not(.accent):not(.danger):not(.warning):not(.info):not(.success):not(.flat).vue-ui-select-button{background:#93b0be}.vue-ui-dark-mode .vue-ui-group.has-indicator .vue-ui-group-button.vue-ui-button.flat,.vue-ui-dark-mode .vue-ui-group.has-indicator .vue-ui-group-button.vue-ui-button.selected.flat,.vue-ui-group.has-indicator .vue-ui-group-button.vue-ui-button.flat,.vue-ui-group.has-indicator .vue-ui-group-button.vue-ui-button.selected.flat{background:0 0}.vue-ui-group:not(.vertical) .vue-ui-group-button.vue-ui-button:not(.flat):not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.vue-ui-group:not(.vertical) .vue-ui-group-button.vue-ui-button:not(.flat):not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.vue-ui-group:not(.vertical) .vue-ui-group-button.vue-ui-button:not(.flat).round:first-child{padding-left:18px}.vue-ui-group:not(.vertical) .vue-ui-group-button.vue-ui-button:not(.flat).round:last-child{padding-right:18px}.vue-ui-group:not(.vertical) .vue-ui-group-button.vue-ui-button:not(.flat).round.icon-button:first-child{padding-left:12px}.vue-ui-group:not(.vertical) .vue-ui-group-button.vue-ui-button:not(.flat).round.icon-button:last-child{padding-right:12px}.vue-ui-group.vertical .vue-ui-group-button.vue-ui-button{display:-webkit-box;display:-ms-flexbox;display:flex}.vue-ui-group.vertical .vue-ui-group-button.vue-ui-button:not(.icon-button){width:100%}.vue-ui-group.vertical .vue-ui-group-button.vue-ui-button:not(.flat):not(:first-child){border-top-left-radius:0;border-top-right-radius:0}.vue-ui-group.vertical .vue-ui-group-button.vue-ui-button:not(.flat):not(:last-child){border-bottom-left-radius:0;border-bottom-right-radius:0}.vue-ui-group.vertical .vue-ui-group-button.vue-ui-button:not(.flat).round.selected{background:#e0f8ed!important}.vue-ui-dark-mode .vue-ui-group.vertical .vue-ui-group-button.vue-ui-button:not(.flat).round.selected{background:#2c3e50!important}.vue-ui-high-contrast .vue-ui-group.vertical .vue-ui-group-button.vue-ui-button:not(.flat).round.selected{background:#fff!important}.vue-ui-group.vertical .vue-ui-group-button.vue-ui-button:not(.flat).round.selected:before{content:"";display:block;position:absolute;top:0;left:0;width:100%;height:100%;z-index:0;border-radius:17px}.vue-ui-high-contrast .vue-ui-group.vertical .vue-ui-group-button.vue-ui-button:not(.flat).round.selected:before{display:none}.vue-ui-group.vertical .vue-ui-group-button.vue-ui-button:not(.flat).round.selected>.content{position:relative;z-index:1}.vue-ui-high-contrast .vue-ui-group-button.vue-ui-button.selected,.vue-ui-high-contrast .vue-ui-group.vertical .vue-ui-group-button.vue-ui-button.selected{background:#fff!important;color:#000!important;font-weight:700}.vue-ui-high-contrast .vue-ui-group-button.vue-ui-button.selected svg,.vue-ui-high-contrast .vue-ui-group.vertical .vue-ui-group-button.vue-ui-button.selected svg{fill:#000!important}.vue-ui-input{display:inline-block;vertical-align:middle;-webkit-box-sizing:border-box;box-sizing:border-box;width:auto;min-width:200px}.vue-ui-input>.content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:0 10px;border:1px solid #e0f8ed;color:#2c3e50;border-radius:3px;-webkit-transition:background .3s;transition:background .3s;position:relative}.vue-ui-input>.content>*{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-ui-dark-mode .vue-ui-input>.content{border-color:#3e5770;color:#fff}.vue-ui-input>.content>.input-wrapper{position:relative;width:0;-webkit-box-flex:1;-ms-flex:auto 1 1;flex:auto 1 1}.vue-ui-input>.content>.input-wrapper>.input{position:relative;z-index:1;font-family:inherit;font-size:14px;line-height:14px;color:#2c3e50;padding:0;width:100%;display:block;border:none;background:0 0;outline:0}.vue-ui-dark-mode .vue-ui-input>.content>.input-wrapper>.input{color:#fff}.vue-ui-input>.content>.input-wrapper>.input:not(textarea){height:30px}.vue-ui-input>.content>.input-wrapper>.input::-webkit-input-placeholder{color:#809fae}.vue-ui-input>.content>.input-wrapper>.input::-moz-placeholder{color:#809fae}.vue-ui-input>.content>.input-wrapper>.input:-ms-input-placeholder{color:#809fae}.vue-ui-input>.content>.input-wrapper>.input::-ms-input-placeholder{color:#809fae}.vue-ui-input>.content>.input-wrapper>.input::placeholder{color:#809fae}.vue-ui-dark-mode .vue-ui-input>.content>.input-wrapper>.input::-webkit-input-placeholder{color:#b6c6ce}.vue-ui-dark-mode .vue-ui-input>.content>.input-wrapper>.input::-moz-placeholder{color:#b6c6ce}.vue-ui-dark-mode .vue-ui-input>.content>.input-wrapper>.input:-ms-input-placeholder{color:#b6c6ce}.vue-ui-dark-mode .vue-ui-input>.content>.input-wrapper>.input::-ms-input-placeholder{color:#b6c6ce}.vue-ui-dark-mode .vue-ui-input>.content>.input-wrapper>.input::placeholder{color:#b6c6ce}.vue-ui-input>.content>.input-wrapper>.input::-moz-focus-inner{border:0}.vue-ui-input>.content>.input-wrapper>textarea.input{padding:8px 10px;resize:vertical;min-height:30px;-webkit-box-sizing:border-box;box-sizing:border-box;line-height:18px}.vue-ui-input>.content>.input-wrapper>.suggestion{position:absolute;z-index:0;top:0;left:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;color:#809fae;pointer-events:none}.vue-ui-input>.content>.input-icon.left{margin-right:6px}.vue-ui-input>.content>.input-icon.right{margin-left:6px}.vue-ui-input>.content>.input-icon svg{fill:#809fae;-webkit-transition:fill .3s;transition:fill .3s}.vue-ui-input>.content>.vue-ui-loading-indicator.left{margin-right:8px}.vue-ui-input>.content>.vue-ui-loading-indicator.right{margin-left:8px}.vue-ui-input>.content>.vue-ui-loading-indicator .animation{border-right-color:#809fae;border-bottom-color:#809fae}.vue-ui-input>.content>.border{position:absolute;bottom:-1px;left:30%;right:30%;opacity:0;height:2px;pointer-events:none;-webkit-transition:left .15s,right .15s,opacity .15s;transition:left .15s,right .15s,opacity .15s}.vue-ui-input.type-textarea>.content{padding:0}.vue-ui-input:not(.flat)>.content{background:#fff}.vue-ui-dark-mode .vue-ui-input:not(.flat)>.content{background:#1d2935}.vue-ui-input.show-suggestion>.content>.input-wrapper>.input::-webkit-input-placeholder{color:transparent}.vue-ui-input.show-suggestion>.content>.input-wrapper>.input::-moz-placeholder{color:transparent}.vue-ui-input.show-suggestion>.content>.input-wrapper>.input:-ms-input-placeholder{color:transparent}.vue-ui-input.show-suggestion>.content>.input-wrapper>.input::-ms-input-placeholder{color:transparent}.vue-ui-input.show-suggestion>.content>.input-wrapper>.input::placeholder{color:transparent}.vue-ui-input>.content>.border{background:#42b983}.vue-ui-input.focused>.content>.vue-ui-loading-indicator .animation{border-right-color:#42b983;border-bottom-color:#42b983}.vue-ui-input.focused>.content>.input-icon svg{fill:rgba(66,185,131,.8)}.vue-ui-input.accent>.content>.border{background:#a44cf6}.vue-ui-input.accent.focused>.content>.vue-ui-loading-indicator .animation{border-right-color:#a44cf6;border-bottom-color:#a44cf6}.vue-ui-input.accent.focused>.content>.input-icon svg{fill:rgba(164,76,246,.8)}.vue-ui-dark-mode .vue-ui-input.accent>.content>.border{background:#c88eff}.vue-ui-dark-mode .vue-ui-input.accent.focused>.content>.vue-ui-loading-indicator .animation{border-right-color:#c88eff;border-bottom-color:#c88eff}.vue-ui-dark-mode .vue-ui-input.accent.focused>.content>.input-icon svg{fill:rgba(200,142,255,.8)}.vue-ui-input.danger>.content>.border,.vue-ui-input.status-danger>.content>.border{background:#e83030}.vue-ui-input.danger.focused>.content>.vue-ui-loading-indicator .animation,.vue-ui-input.status-danger.focused>.content>.vue-ui-loading-indicator .animation{border-right-color:#e83030;border-bottom-color:#e83030}.vue-ui-input.danger.focused>.content>.input-icon svg,.vue-ui-input.status-danger.focused>.content>.input-icon svg{fill:rgba(232,48,48,.8)}.vue-ui-input.status-warning>.content>.border,.vue-ui-input.warning>.content>.border{background:#ea6e00}.vue-ui-input.status-warning.focused>.content>.vue-ui-loading-indicator .animation,.vue-ui-input.warning.focused>.content>.vue-ui-loading-indicator .animation{border-right-color:#ea6e00;border-bottom-color:#ea6e00}.vue-ui-input.status-warning.focused>.content>.input-icon svg,.vue-ui-input.warning.focused>.content>.input-icon svg{fill:rgba(234,110,0,.8)}.vue-ui-input.info>.content>.border,.vue-ui-input.status-info>.content>.border{background:#03c2e6}.vue-ui-input.info.focused>.content>.vue-ui-loading-indicator .animation,.vue-ui-input.status-info.focused>.content>.vue-ui-loading-indicator .animation{border-right-color:#03c2e6;border-bottom-color:#03c2e6}.vue-ui-input.info.focused>.content>.input-icon svg,.vue-ui-input.status-info.focused>.content>.input-icon svg{fill:rgba(3,194,230,.8)}.vue-ui-input.status-success>.content>.border,.vue-ui-input.success>.content>.border{background:#42b983}.vue-ui-input.status-success.focused>.content>.vue-ui-loading-indicator .animation,.vue-ui-input.success.focused>.content>.vue-ui-loading-indicator .animation{border-right-color:#42b983;border-bottom-color:#42b983}.vue-ui-input.status-success.focused>.content>.input-icon svg,.vue-ui-input.success.focused>.content>.input-icon svg{fill:rgba(66,185,131,.8)}.vue-ui-input.focused:not(.flat)>.content>.border{left:0;right:0;opacity:1}.vue-ui-input.focused:not(.flat).round>.content>.border{display:none}.vue-ui-input.flat>.content{border-color:transparent}.vue-ui-input.flat>.content>.border{display:none}.vue-ui-input.big>.content{padding:0 14px}.vue-ui-input.big>.content>.input-wrapper>.input{font-size:16px}.vue-ui-input.big>.content>.input-wrapper>.input:not(textarea){height:42px}.vue-ui-input.big>.content>.input-wrapper>textarea.input{padding:14px 0}.vue-ui-input.big>.content>.input-icon{width:20px;height:20px}.vue-ui-input.big>.content>.input-icon.left{margin-right:10px}.vue-ui-input.big>.content>.input-icon.right{margin-left:10px}.vue-ui-input.round>.content{border-radius:17px}.vue-ui-input.round.big>.content{border-radius:22px}.vue-ui-input:not(.disabled){cursor:text}.vue-ui-input.disabled{opacity:.5}.vue-ui-dropdown-content>.vue-ui-input{min-width:200px;padding:0 4px 4px}.vue-ui-high-contrast .vue-ui-input>.content{border-width:2px;border-style:dashed;background:#000!important}@-webkit-keyframes vue-ui-slide-from-bottom{0%{-webkit-transform:translateY(6px);transform:translateY(6px)}to{-webkit-transform:none;transform:none}}@keyframes vue-ui-slide-from-bottom{0%{-webkit-transform:translateY(6px);transform:translateY(6px)}to{-webkit-transform:none;transform:none}}@-webkit-keyframes vue-ui-slide-to-bottom{0%{-webkit-transform:none;transform:none}to{-webkit-transform:translateY(6px);transform:translateY(6px)}}@keyframes vue-ui-slide-to-bottom{0%{-webkit-transform:none;transform:none}to{-webkit-transform:translateY(6px);transform:translateY(6px)}}@-webkit-keyframes vue-ui-slide-from-top{0%{-webkit-transform:translateY(-6px);transform:translateY(-6px)}to{-webkit-transform:none;transform:none}}@keyframes vue-ui-slide-from-top{0%{-webkit-transform:translateY(-6px);transform:translateY(-6px)}to{-webkit-transform:none;transform:none}}@-webkit-keyframes vue-ui-slide-to-top{0%{-webkit-transform:none;transform:none}to{-webkit-transform:translateY(-6px);transform:translateY(-6px)}}@keyframes vue-ui-slide-to-top{0%{-webkit-transform:none;transform:none}to{-webkit-transform:translateY(-6px);transform:translateY(-6px)}}@-webkit-keyframes vue-ui-slide-from-left{0%{-webkit-transform:translateX(-6px);transform:translateX(-6px)}to{-webkit-transform:none;transform:none}}@keyframes vue-ui-slide-from-left{0%{-webkit-transform:translateX(-6px);transform:translateX(-6px)}to{-webkit-transform:none;transform:none}}@-webkit-keyframes vue-ui-slide-to-left{0%{-webkit-transform:none;transform:none}to{-webkit-transform:translateX(-6px);transform:translateX(-6px)}}@keyframes vue-ui-slide-to-left{0%{-webkit-transform:none;transform:none}to{-webkit-transform:translateX(-6px);transform:translateX(-6px)}}@-webkit-keyframes vue-ui-slide-from-right{0%{-webkit-transform:translateX(6px);transform:translateX(6px)}to{-webkit-transform:none;transform:none}}@keyframes vue-ui-slide-from-right{0%{-webkit-transform:translateX(6px);transform:translateX(6px)}to{-webkit-transform:none;transform:none}}@-webkit-keyframes vue-ui-slide-to-right{0%{-webkit-transform:none;transform:none}to{-webkit-transform:translateX(6px);transform:translateX(6px)}}@keyframes vue-ui-slide-to-right{0%{-webkit-transform:none;transform:none}to{-webkit-transform:translateX(6px);transform:translateX(6px)}}.vue-ui-fade-enter-active,.vue-ui-fade-leave-active{-webkit-transition:opacity .15s linear;transition:opacity .15s linear}.vue-ui-fade-enter,.vue-ui-fade-leave-to{opacity:0}@-webkit-keyframes vue-ui-focus{0%{border-color:#a44cf6;-webkit-box-shadow:0 0 20px #a44cf6;box-shadow:0 0 20px #a44cf6}to{border-color:rgba(164,76,246,.6);-webkit-box-shadow:0 0 4px rgba(164,76,246,.5);box-shadow:0 0 4px rgba(164,76,246,.5)}}@keyframes vue-ui-focus{0%{border-color:#a44cf6;-webkit-box-shadow:0 0 20px #a44cf6;box-shadow:0 0 20px #a44cf6}to{border-color:rgba(164,76,246,.6);-webkit-box-shadow:0 0 4px rgba(164,76,246,.5);box-shadow:0 0 4px rgba(164,76,246,.5)}}@-webkit-keyframes vue-ui-focus-dark{0%{border-color:#c88eff;-webkit-box-shadow:0 0 20px #c88eff;box-shadow:0 0 20px #c88eff}to{border-color:rgba(200,142,255,.6);-webkit-box-shadow:0 0 4px rgba(200,142,255,.5);box-shadow:0 0 4px rgba(200,142,255,.5)}}@keyframes vue-ui-focus-dark{0%{border-color:#c88eff;-webkit-box-shadow:0 0 20px #c88eff;box-shadow:0 0 20px #c88eff}to{border-color:rgba(200,142,255,.6);-webkit-box-shadow:0 0 4px rgba(200,142,255,.5);box-shadow:0 0 4px rgba(200,142,255,.5)}}.v-popper--theme-tooltip{font-size:14px}.v-popper--theme-tooltip .v-popper__inner{background:#2c3e50;color:#fff}.v-popper--theme-tooltip .v-popper__arrow{border-color:#2c3e50}.vue-ui-dark-mode .v-popper--theme-tooltip .v-popper__inner{background:#fff;color:#2c3e50}.vue-ui-dark-mode .v-popper--theme-tooltip .v-popper__arrow{border-color:#fff}.v-popper--theme-dropdown .v-popper__inner{background:#fff;color:#2c3e50;padding:4px 0;-webkit-box-shadow:0 0 3px rgba(0,0,0,.05),0 10px 30px rgba(0,0,0,.1);box-shadow:0 0 3px rgba(0,0,0,.05),0 10px 30px rgba(0,0,0,.1)}.v-popper--theme-dropdown .v-popper__arrow{border-color:#fff}.vue-ui-dark-mode .v-popper--theme-dropdown .v-popper__inner{background:#1d2935;color:#fff}.vue-ui-dark-mode .v-popper--theme-dropdown .v-popper__arrow{border-color:#1d2935}.v-popper--theme-dropdown[data-popper-placement^=top] .v-popper__arrow{-webkit-filter:drop-shadow(0 3px 3px rgba(0,0,0,.15));filter:drop-shadow(0 3px 3px rgba(0,0,0,.15))}.v-popper--theme-dropdown[data-popper-placement^=bottom] .v-popper__arrow{-webkit-filter:drop-shadow(0 -3px 3px rgba(0,0,0,.15));filter:drop-shadow(0 -3px 3px rgba(0,0,0,.15))}.v-popper--theme-dropdown[data-popper-placement^=left] .v-popper__arrow{-webkit-filter:drop-shadow(3px 0 3px rgba(0,0,0,.15));filter:drop-shadow(3px 0 3px rgba(0,0,0,.15))}.v-popper--theme-dropdown[data-popper-placement^=right] .v-popper__arrow{-webkit-filter:drop-shadow(-3px 0 3px rgba(0,0,0,.15));filter:drop-shadow(-3px 0 3px rgba(0,0,0,.15))}.v-popper--theme-dropdown.v-popper__popper--hide-to>.v-popper__wrapper,.v-popper--theme-dropdown.v-popper__popper--show-to>.v-popper__wrapper{-webkit-transition:-webkit-transform .12s ease-out;transition:-webkit-transform .12s ease-out;transition:transform .12s ease-out;transition:transform .12s ease-out,-webkit-transform .12s ease-out}.v-popper--theme-dropdown.v-popper__popper--hide-to[data-popper-placement^=top]>.v-popper__wrapper,.v-popper--theme-dropdown.v-popper__popper--show-from[data-popper-placement^=top]>.v-popper__wrapper{-webkit-transform:translateY(6px);transform:translateY(6px)}.v-popper--theme-dropdown.v-popper__popper--hide-to[data-popper-placement^=bottom]>.v-popper__wrapper,.v-popper--theme-dropdown.v-popper__popper--show-from[data-popper-placement^=bottom]>.v-popper__wrapper{-webkit-transform:translateY(-6px);transform:translateY(-6px)}.v-popper--theme-dropdown.v-popper__popper--hide-to[data-popper-placement^=left]>.v-popper__wrapper,.v-popper--theme-dropdown.v-popper__popper--show-from[data-popper-placement^=left]>.v-popper__wrapper{-webkit-transform:translateX(6px);transform:translateX(6px)}.v-popper--theme-dropdown.v-popper__popper--hide-to[data-popper-placement^=right]>.v-popper__wrapper,.v-popper--theme-dropdown.v-popper__popper--show-from[data-popper-placement^=right]>.v-popper__wrapper{-webkit-transform:translateX(-6px);transform:translateX(-6px)}html{background:#fff}body{font-size:16px;font-family:Roboto,Avenir,Helvetica,Arial,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;color:#2c3e50;margin:0}.vue-ui-dark-mode{color:#fff;background:#0b1015}.vue-ui-dark-mode body{color:#fff}.vue-ui-high-contrast{background:#000}hr{border:none;height:1px;background:#e0f8ed}a{color:#42b983;text-decoration:none}a .vue-ui-icon svg{fill:#42b983}h1,h2,h3,h4,h5,h6{font-weight:300;margin:24px 0 8px}h1:first-child,h2:first-child,h3:first-child,h4:first-child,h5:first-child,h6:first-child{margin-top:0}h1{font-size:42px}h2{font-size:32px}h3{font-size:26px}h4{font-size:22px}h5{font-size:18px}h6{font-size:16px}p{margin:0 0 8px}ul{margin:4px 0}.vue-ui-no-scroll{overflow:hidden}.vue-ui-spacer{-webkit-box-flex:1!important;-ms-flex:auto 1 1!important;flex:auto 1 1!important;width:0;height:0}.vue-ui-empty{color:rgba(44,62,80,.5);padding:24px;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}.vue-ui-empty .vue-ui-icon svg{fill:rgba(44,62,80,.5)}.vue-ui-dark-mode .vue-ui-empty{color:hsla(0,0%,100%,.5)}.vue-ui-text.banner{padding:12px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:3px}.vue-ui-text.banner>.vue-ui-icon{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-ui-text.banner>.vue-ui-icon:first-child{margin-right:10px}.vue-ui-text.primary{color:#42b983}.vue-ui-text.primary .vue-ui-icon svg{fill:#42b983!important}.vue-ui-text.primary.banner{background:#ecf8f3}.vue-ui-dark-mode .vue-ui-text.primary.banner{background:#1a4a34}.vue-ui-text.accent{color:#a44cf6}.vue-ui-text.accent .vue-ui-icon svg{fill:#a44cf6!important}.vue-ui-text.accent.banner{background:#f6edfe}.vue-ui-dark-mode .vue-ui-text.accent.banner{background:#42067b}.vue-ui-text.danger{color:#e83030}.vue-ui-text.danger .vue-ui-icon svg{fill:#e83030!important}.vue-ui-text.danger.banner{background:#fdeaea}.vue-ui-dark-mode .vue-ui-text.danger.banner{background:#650b0b}.vue-ui-text.warning{color:#ea6e00}.vue-ui-text.warning .vue-ui-icon svg{fill:#ea6e00!important}.vue-ui-text.warning.banner{background:#fff0e3}.vue-ui-dark-mode .vue-ui-text.warning.banner{background:#5e2c00}.vue-ui-text.info{color:#03c2e6}.vue-ui-text.info .vue-ui-icon svg{fill:#03c2e6!important}.vue-ui-text.info.banner{background:#e4faff}.vue-ui-dark-mode .vue-ui-text.info.banner{background:#014e5c}.vue-ui-text.success{color:#42b983}.vue-ui-text.success .vue-ui-icon svg{fill:#42b983!important}.vue-ui-text.success.banner{background:#ecf8f3}.vue-ui-dark-mode .vue-ui-text.success.banner{background:#1a4a34}.vue-ui-grid{display:grid}.vue-ui-grid.default-gap{grid-gap:12px}.vue-ui-grid.big-gap{grid-gap:24px}.vue-ui-grid.col-1{grid-template-columns:repeat(1,1fr)}.vue-ui-grid .span-1{grid-column:span 1}.vue-ui-grid.col-2{grid-template-columns:repeat(2,1fr)}.vue-ui-grid .span-2{grid-column:span 2}.vue-ui-grid.col-3{grid-template-columns:repeat(3,1fr)}.vue-ui-grid .span-3{grid-column:span 3}.vue-ui-grid.col-4{grid-template-columns:repeat(4,1fr)}.vue-ui-grid .span-4{grid-column:span 4}.vue-ui-grid.col-5{grid-template-columns:repeat(5,1fr)}.vue-ui-grid .span-5{grid-column:span 5}.vue-ui-grid.col-6{grid-template-columns:repeat(6,1fr)}.vue-ui-grid .span-6{grid-column:span 6}.vue-ui-grid.col-7{grid-template-columns:repeat(7,1fr)}.vue-ui-grid .span-7{grid-column:span 7}.vue-ui-grid.col-8{grid-template-columns:repeat(8,1fr)}.vue-ui-grid .span-8{grid-column:span 8}.vue-ui-grid.col-9{grid-template-columns:repeat(9,1fr)}.vue-ui-grid .span-9{grid-column:span 9}.vue-ui-grid.col-10{grid-template-columns:repeat(10,1fr)}.vue-ui-grid .span-10{grid-column:span 10}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track-piece{background:0 0}::-webkit-scrollbar-track:hover{background:rgba(79,111,127,.05)}.vue-ui-dark-mode ::-webkit-scrollbar-track:hover{background:rgba(79,111,127,.1)}::-webkit-scrollbar-thumb{background-color:#b6c6ce;border:3px solid transparent;background-clip:padding-box;border-radius:5px}::-webkit-scrollbar-thumb:hover{background-color:#4f6f7f}.vue-ui-dark-mode ::-webkit-scrollbar-thumb{background-color:#2c3e50}.vue-ui-dark-mode ::-webkit-scrollbar-thumb:hover{background-color:#809fae}.vue-ui-dark-mode{scrollbar-color:#2c3e50 #0b1015}.vue-ui-high-contrast :focus{outline:2px solid #0ff!important}.vue-ui-icon{display:inline-block;width:18px;height:18px;vertical-align:bottom}.vue-ui-icon svg{width:100%;height:100%;fill:#2c3e50;pointer-events:none}.vue-ui-dark-mode .vue-ui-icon svg{fill:#fff}.vue-ui-icon.primary svg{fill:#42b983}.vue-ui-icon.accent svg{fill:#a44cf6}.vue-ui-icon.danger svg{fill:#e83030}.vue-ui-icon.warning svg{fill:#ea6e00}.vue-ui-icon.info svg{fill:#03c2e6}.vue-ui-icon.success svg{fill:#42b983}.vue-ui-icon.top{position:relative;top:-.06rem}.vue-ui-icon.small{width:12px;height:12px}.vue-ui-icon.medium{width:20px;height:20px}.vue-ui-icon.big{width:24px;height:24px}.vue-ui-icon.large{width:32px;height:32px}.vue-ui-icon.huge{width:42px;height:42px}.vue-ui-icon.gigantic{width:64px;height:64px}.vue-ui-loading-bar{height:3px;position:relative;background:#e0f8ed}.vue-ui-loading-bar .bar{height:100%;background:#2c3e50}.vue-ui-dark-mode .vue-ui-loading-bar{background:#2c3e50}.vue-ui-dark-mode .vue-ui-loading-bar .bar{background:#4f6f7f}.vue-ui-loading-bar.primary{background:#e0f8ed}.vue-ui-loading-bar.primary .bar{background:#42b983}.vue-ui-dark-mode .vue-ui-loading-bar.primary{background:#2c3e50}.vue-ui-dark-mode .vue-ui-loading-bar.primary .bar{background:#42b983}.vue-ui-loading-bar.accent{background:#e0f8ed}.vue-ui-loading-bar.accent .bar{background:#a44cf6}.vue-ui-dark-mode .vue-ui-loading-bar.accent{background:#2c3e50}.vue-ui-dark-mode .vue-ui-loading-bar.accent .bar{background:#c88eff}.vue-ui-loading-bar.unknown .bar{position:absolute;top:0;-webkit-animation:bar-animation .8s linear infinite;animation:bar-animation .8s linear infinite}.vue-ui-loading-bar.ghost{height:0;z-index:300;background:0 0}.vue-ui-loading-bar.ghost .bar{height:3px}.vue-ui-loading-indicator{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vue-ui-loading-indicator.inline{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.vue-ui-loading-indicator>.animation{-webkit-animation:rotating .7s linear infinite;animation:rotating .7s linear infinite;width:16px;height:16px;border-radius:50%;border:2px solid transparent;border-color:rgba(44,62,80,.1);border-right-color:#2c3e50}.vue-ui-dark-mode .vue-ui-loading-indicator>.animation{border-color:rgba(79,111,127,.1);border-right-color:#4f6f7f}.vue-ui-loading-indicator.primary>.animation{border-color:rgba(66,185,131,.1);border-right-color:#42b983}.vue-ui-loading-indicator.accent>.animation{border-color:rgba(164,76,246,.1);border-right-color:#a44cf6}.vue-ui-dark-mode .vue-ui-loading-indicator.accent>.animation{border-color:rgba(200,142,255,.1);border-right-color:#c88eff}.vue-ui-loading-indicator.small>.animation{width:10px;height:10px}.vue-ui-loading-indicator.big>.animation{width:24px;height:24px;border-width:3px}.vue-ui-high-contrast .vue-ui-loading-indicator>.animation{border-width:4px}.vue-ui-loading-indicator.overlay{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1}.vue-ui-loading-indicator.overlay>.animation{margin-bottom:32px}.vue-ui-loading-indicator.overlay:not(.transparent){background:hsla(0,0%,100%,.95)}.vue-ui-dark-mode .vue-ui-loading-indicator.overlay:not(.transparent){background:rgba(29,41,53,.95)}.vue-ui-loading-indicator.overlay.fixed{position:fixed}@-webkit-keyframes bar-animation{0%{left:0;right:100%}50%{left:0;right:0}to{left:100%;right:0}}@keyframes bar-animation{0%{left:0;right:100%}50%{left:0;right:0}to{left:100%;right:0}}@-webkit-keyframes rotating{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes rotating{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.vue-ui-button{display:inline-block;vertical-align:middle;border:none;font-family:inherit;text-decoration:none;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:3px;padding:0 14px;font-size:14px;line-height:16px;height:32px;color:#2c3e50;background:#e0f8ed;outline:0;-webkit-tap-highlight-color:rgba(255,255,255,0)}.vue-ui-button>.content{height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vue-ui-button>.content>*{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-ui-button>.content>.tag-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-left:6px}.vue-ui-button>.content>.tag-wrapper>.tag{padding:2px 2px 0;border-radius:4px;font-size:10px;line-height:10px;font-family:monospace}.vue-ui-high-contrast .vue-ui-button>.content>.tag-wrapper>.tag{padding:2px 4px 0;border:2px solid #fff;font-size:12px;font-weight:700}.vue-ui-button.big{padding:0 18px;font-size:16px;height:44px}.vue-ui-button.big .vue-ui-icon{width:24px;height:24px}.vue-ui-button.big>.content>.tag-wrapper>.tag{padding:2px 4px 0;border-radius:7px;font-size:12px;line-height:12px}.vue-ui-button.round{border-radius:17px}.vue-ui-button.round:focus.focus-visible:after{border-radius:18px}.vue-ui-button.round.big{border-radius:22px}.vue-ui-button.round.big:focus.focus-visible:after{border-radius:23px}.vue-ui-button.flat{-webkit-transition:background .1s,color .1s;transition:background .1s,color .1s}.vue-ui-button.flat>.content>.button-icon svg{-webkit-transition:fill .1s;transition:fill .1s}.vue-ui-button:not(.icon-button)>.content>.button-icon{position:relative}.vue-ui-button:not(.icon-button)>.content>.button-icon.left{margin-right:6px;left:-2px}.vue-ui-button:not(.icon-button)>.content>.button-icon.right{margin-left:6px;left:2px}.vue-ui-button:not(.icon-button)>.content>.loading-secondary{margin-right:6px}.vue-ui-button.icon-button{padding:0;width:32px;height:32px}.vue-ui-button.icon-button.big{padding:0;width:44px;height:44px}.vue-ui-button.icon-button>.content{width:100%}.vue-ui-button.icon-button>.content>.tag-wrapper{position:absolute;right:2px;bottom:2px}.vue-ui-high-contrast .vue-ui-button.icon-button>.content>.tag-wrapper{right:-4px;bottom:-4px}.vue-ui-button.big-tag>.content>.tag-wrapper{right:6px;bottom:6px}.vue-ui-high-contrast .vue-ui-button.big-tag>.content>.tag-wrapper{right:-2px;bottom:-2px}.vue-ui-button.ghost{cursor:default}.vue-ui-button.disabled:not(.tab-button){opacity:.5;-webkit-filter:grayscale(50%);filter:grayscale(50%)}.vue-ui-button.loading>.content{visibility:hidden}.vue-ui-button>.vue-ui-loading-indicator{position:absolute;top:0;bottom:0;left:0;right:0}.vue-ui-button:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button:not(.ghost){background:#e8faf2}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button:not(.ghost):hover{background:#2c3e50!important}.vue-ui-button:not(.ghost):active{background:#c1f1db}.vue-ui-button>.content>.button-icon svg{fill:#2c3e50}.vue-ui-button>.content>.loading-secondary .animation,.vue-ui-button>.vue-ui-loading-indicator .animation{border-right-color:#2c3e50}.vue-ui-button>.content>.tag-wrapper>.tag{background:#2c3e50;color:#e0f8ed}.vue-ui-high-contrast .vue-ui-button>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button:before{background:#e0f8ed}.vue-ui-button.vue-ui-dropdown-button{background:0 0}.vue-ui-button.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-button.flat{color:#2c3e50;background:0 0}.vue-ui-button.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost){background:rgba(64,64,64,0)}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button.flat:not(.ghost):hover{background:#2c3e50!important}.vue-ui-button.flat:not(.ghost):active{background:transparent}.vue-ui-button.flat>.content>.button-icon svg{fill:#2c3e50}.vue-ui-button.flat>.content>.loading-secondary .animation,.vue-ui-button.flat>.vue-ui-loading-indicator .animation{border-right-color:#2c3e50}.vue-ui-button.flat>.content>.tag-wrapper>.tag{background:#2c3e50;color:transparent;color:#fff}.vue-ui-dark-mode .vue-ui-button.flat>.content>.tag-wrapper>.tag{color:#2c3e50!important}.vue-ui-high-contrast .vue-ui-button.flat>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button.flat.vue-ui-dropdown-button,.vue-ui-button.flat:before{background:0 0}.vue-ui-button.flat.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.flat.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-button.flat:not(.ghost):active,.vue-ui-button.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost){color:#2c3e50;background:#e0f8ed}.vue-ui-button.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-button.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost):active:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost):hover:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost):not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost):not(.ghost){background:#e8faf2}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost):active:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost):hover:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost):not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost):active:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost):hover:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost):not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-button.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost):not(.ghost):hover{background:#2c3e50!important}.vue-ui-button.flat:not(.ghost):active:not(.ghost):active,.vue-ui-button.flat:not(.ghost):hover:not(.ghost):active,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost):not(.ghost):active{background:#c1f1db}.vue-ui-button.flat:not(.ghost):active>.content>.button-icon svg,.vue-ui-button.flat:not(.ghost):hover>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-button.flat:not(.ghost):active>.content>.loading-secondary .animation,.vue-ui-button.flat:not(.ghost):active>.vue-ui-loading-indicator .animation,.vue-ui-button.flat:not(.ghost):hover>.content>.loading-secondary .animation,.vue-ui-button.flat:not(.ghost):hover>.vue-ui-loading-indicator .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost)>.content>.loading-secondary .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost)>.vue-ui-loading-indicator .animation{border-right-color:#2c3e50}.vue-ui-button.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-button.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#2c3e50;color:#e0f8ed}.vue-ui-high-contrast .vue-ui-button.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-button.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button.flat:not(.ghost):active:before,.vue-ui-button.flat:not(.ghost):hover:before,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost):before{background:#e0f8ed}.vue-ui-button.flat:not(.ghost):active.vue-ui-dropdown-button,.vue-ui-button.flat:not(.ghost):hover.vue-ui-dropdown-button,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost).vue-ui-dropdown-button{background:0 0}.vue-ui-button.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-button.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-button.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-button{border:2px solid #e0f8ed;background:#000!important;color:#fff!important}.vue-ui-high-contrast .vue-ui-button .vue-ui-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-button .vue-ui-loading-indicator .animation{border-right-color:#fff!important}.vue-ui-high-contrast .vue-ui-button:focus,.vue-ui-high-contrast .vue-ui-button:hover{background:#e0f8ed!important;color:#000!important}.vue-ui-high-contrast .vue-ui-button:focus .vue-ui-icon svg,.vue-ui-high-contrast .vue-ui-button:hover .vue-ui-icon svg{fill:#000!important}.vue-ui-high-contrast .vue-ui-button:focus .vue-ui-loading-indicator .animation,.vue-ui-high-contrast .vue-ui-button:hover .vue-ui-loading-indicator .animation{border-right-color:#000!important}.vue-ui-dark-mode .vue-ui-button{color:#fff;background:#2c3e50}.vue-ui-dark-mode .vue-ui-button:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button:not(.ghost){background:#4e6e8e}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-button:not(.ghost):hover{background:#2c3e50!important}.vue-ui-dark-mode .vue-ui-button:not(.ghost):active{background:#28394a}.vue-ui-dark-mode .vue-ui-button>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .vue-ui-button>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-button>.vue-ui-loading-indicator .animation{border-right-color:#fff}.vue-ui-dark-mode .vue-ui-button>.content>.tag-wrapper>.tag{background:#fff;color:#2c3e50}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-dark-mode .vue-ui-button:before{background:#2c3e50}.vue-ui-dark-mode .vue-ui-button.vue-ui-dropdown-button{background:0 0}.vue-ui-dark-mode .vue-ui-button.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-dark-mode .vue-ui-button.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-dark-mode .vue-ui-button.flat{color:#fff;background:0 0}.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost){background:rgba(64,64,64,0)}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover{background:#2c3e50!important}.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active{background:transparent}.vue-ui-dark-mode .vue-ui-button.flat>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .vue-ui-button.flat>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-button.flat>.vue-ui-loading-indicator .animation{border-right-color:#fff}.vue-ui-dark-mode .vue-ui-button.flat>.content>.tag-wrapper>.tag{background:#fff;color:transparent;color:#fff}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.flat>.content>.tag-wrapper>.tag{color:#2c3e50!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.flat>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-dark-mode .vue-ui-button.flat.vue-ui-dropdown-button,.vue-ui-dark-mode .vue-ui-button.flat:before{background:0 0}.vue-ui-dark-mode .vue-ui-button.flat.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.flat.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-dark-mode .vue-ui-button.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active,.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost){color:#fff;background:#2c3e50}.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):not(.ghost){background:#4e6e8e}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):not(.ghost):hover{background:#2c3e50!important}.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active:not(.ghost):active,.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover:not(.ghost):active,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):not(.ghost):active{background:#28394a}.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active>.vue-ui-loading-indicator .animation,.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover>.vue-ui-loading-indicator .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost)>.content>.loading-secondary .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost)>.vue-ui-loading-indicator .animation{border-right-color:#fff}.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#fff;color:#2c3e50}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active:before,.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover:before,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):before{background:#2c3e50}.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active.vue-ui-dropdown-button,.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover.vue-ui-dropdown-button,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost).vue-ui-dropdown-button{background:0 0}.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button{border:2px solid #2c3e50;background:#000!important;color:#fff!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button .vue-ui-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button .vue-ui-loading-indicator .animation{border-right-color:#fff!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button:focus,.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button:hover{background:#2c3e50!important;color:#000!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button:focus .vue-ui-icon svg,.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button:hover .vue-ui-icon svg{fill:#000!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button:focus .vue-ui-loading-indicator .animation,.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button:hover .vue-ui-loading-indicator .animation{border-right-color:#000!important}.vue-ui-button.primary{color:#fff;background:#42b983}.vue-ui-button.primary:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary:not(.ghost){background:#70cca2}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button.primary:not(.ghost):hover{background:#2c3e50!important}.vue-ui-button.primary:not(.ghost):active{background:#3daa79}.vue-ui-button.primary>.content>.button-icon svg{fill:#fff}.vue-ui-button.primary>.content>.loading-secondary .animation,.vue-ui-button.primary>.vue-ui-loading-indicator .animation{border-right-color:#fff}.vue-ui-button.primary>.content>.tag-wrapper>.tag{background:#fff;color:#42b983}.vue-ui-high-contrast .vue-ui-button.primary>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button.primary:before{background:#42b983}.vue-ui-button.primary.vue-ui-dropdown-button{background:0 0}.vue-ui-button.primary.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.primary.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.primary.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.primary.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-button.primary.flat{color:#42b983;background:0 0}.vue-ui-button.primary.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost){background:rgba(64,64,64,0)}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button.primary.flat:not(.ghost):hover{background:#2c3e50!important}.vue-ui-button.primary.flat:not(.ghost):active{background:transparent}.vue-ui-button.primary.flat>.content>.button-icon svg{fill:#42b983}.vue-ui-button.primary.flat>.content>.loading-secondary .animation,.vue-ui-button.primary.flat>.vue-ui-loading-indicator .animation{border-right-color:#42b983}.vue-ui-button.primary.flat>.content>.tag-wrapper>.tag{background:#42b983;color:transparent;color:#fff}.vue-ui-dark-mode .vue-ui-button.primary.flat>.content>.tag-wrapper>.tag{color:#2c3e50!important}.vue-ui-high-contrast .vue-ui-button.primary.flat>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button.primary.flat.vue-ui-dropdown-button,.vue-ui-button.primary.flat:before{background:0 0}.vue-ui-button.primary.flat.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.primary.flat.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.primary.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.primary.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-button.primary.flat:not(.ghost):active,.vue-ui-button.primary.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost){color:#fff;background:#42b983}.vue-ui-button.primary.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-button.primary.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost):active:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost):hover:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost):not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost):not(.ghost){background:#70cca2}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost):active:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost):hover:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost):not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost):active:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost):hover:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost):not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button.primary.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-button.primary.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost):not(.ghost):hover{background:#2c3e50!important}.vue-ui-button.primary.flat:not(.ghost):active:not(.ghost):active,.vue-ui-button.primary.flat:not(.ghost):hover:not(.ghost):active,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost):not(.ghost):active{background:#3daa79}.vue-ui-button.primary.flat:not(.ghost):active>.content>.button-icon svg,.vue-ui-button.primary.flat:not(.ghost):hover>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-button.primary.flat:not(.ghost):active>.content>.loading-secondary .animation,.vue-ui-button.primary.flat:not(.ghost):active>.vue-ui-loading-indicator .animation,.vue-ui-button.primary.flat:not(.ghost):hover>.content>.loading-secondary .animation,.vue-ui-button.primary.flat:not(.ghost):hover>.vue-ui-loading-indicator .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost)>.content>.loading-secondary .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost)>.vue-ui-loading-indicator .animation{border-right-color:#fff}.vue-ui-button.primary.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-button.primary.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#fff;color:#42b983}.vue-ui-high-contrast .vue-ui-button.primary.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-button.primary.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button.primary.flat:not(.ghost):active:before,.vue-ui-button.primary.flat:not(.ghost):hover:before,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost):before{background:#42b983}.vue-ui-button.primary.flat:not(.ghost):active.vue-ui-dropdown-button,.vue-ui-button.primary.flat:not(.ghost):hover.vue-ui-dropdown-button,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost).vue-ui-dropdown-button{background:0 0}.vue-ui-button.primary.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-button.primary.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.primary.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-button.primary.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.primary.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-button.primary.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.primary.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-button.primary.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.primary.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-button.primary{border:2px solid #42b983;background:#000!important;color:#fff!important}.vue-ui-high-contrast .vue-ui-button.primary .vue-ui-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-button.primary .vue-ui-loading-indicator .animation{border-right-color:#fff!important}.vue-ui-high-contrast .vue-ui-button.primary:focus,.vue-ui-high-contrast .vue-ui-button.primary:hover{background:#42b983!important;color:#000!important}.vue-ui-high-contrast .vue-ui-button.primary:focus .vue-ui-icon svg,.vue-ui-high-contrast .vue-ui-button.primary:hover .vue-ui-icon svg{fill:#000!important}.vue-ui-high-contrast .vue-ui-button.primary:focus .vue-ui-loading-indicator .animation,.vue-ui-high-contrast .vue-ui-button.primary:hover .vue-ui-loading-indicator .animation{border-right-color:#000!important}.vue-ui-button.accent{color:#fff;background:#a44cf6}.vue-ui-button.accent:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent:not(.ghost){background:#bb79f8}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button.accent:not(.ghost):hover{background:#2c3e50!important}.vue-ui-button.accent:not(.ghost):active{background:#9833f5}.vue-ui-button.accent>.content>.button-icon svg{fill:#fff}.vue-ui-button.accent>.content>.loading-secondary .animation,.vue-ui-button.accent>.vue-ui-loading-indicator .animation{border-right-color:#fff}.vue-ui-button.accent>.content>.tag-wrapper>.tag{background:#fff;color:#a44cf6}.vue-ui-high-contrast .vue-ui-button.accent>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button.accent:before{background:#a44cf6}.vue-ui-button.accent.vue-ui-dropdown-button{background:0 0}.vue-ui-button.accent.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.accent.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.accent.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.accent.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-button.accent.flat{color:#a44cf6;background:0 0}.vue-ui-button.accent.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost){background:rgba(64,64,64,0)}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button.accent.flat:not(.ghost):hover{background:#2c3e50!important}.vue-ui-button.accent.flat:not(.ghost):active{background:transparent}.vue-ui-button.accent.flat>.content>.button-icon svg{fill:#a44cf6}.vue-ui-button.accent.flat>.content>.loading-secondary .animation,.vue-ui-button.accent.flat>.vue-ui-loading-indicator .animation{border-right-color:#a44cf6}.vue-ui-button.accent.flat>.content>.tag-wrapper>.tag{background:#a44cf6;color:transparent;color:#fff}.vue-ui-dark-mode .vue-ui-button.accent.flat>.content>.tag-wrapper>.tag{color:#2c3e50!important}.vue-ui-high-contrast .vue-ui-button.accent.flat>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button.accent.flat.vue-ui-dropdown-button,.vue-ui-button.accent.flat:before{background:0 0}.vue-ui-button.accent.flat.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.accent.flat.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.accent.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.accent.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-button.accent.flat:not(.ghost):active,.vue-ui-button.accent.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost){color:#fff;background:#a44cf6}.vue-ui-button.accent.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-button.accent.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost):active:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost):hover:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost):not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost):not(.ghost){background:#bb79f8}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost):active:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost):hover:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost):not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost):active:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost):hover:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost):not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button.accent.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-button.accent.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost):not(.ghost):hover{background:#2c3e50!important}.vue-ui-button.accent.flat:not(.ghost):active:not(.ghost):active,.vue-ui-button.accent.flat:not(.ghost):hover:not(.ghost):active,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost):not(.ghost):active{background:#9833f5}.vue-ui-button.accent.flat:not(.ghost):active>.content>.button-icon svg,.vue-ui-button.accent.flat:not(.ghost):hover>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-button.accent.flat:not(.ghost):active>.content>.loading-secondary .animation,.vue-ui-button.accent.flat:not(.ghost):active>.vue-ui-loading-indicator .animation,.vue-ui-button.accent.flat:not(.ghost):hover>.content>.loading-secondary .animation,.vue-ui-button.accent.flat:not(.ghost):hover>.vue-ui-loading-indicator .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost)>.content>.loading-secondary .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost)>.vue-ui-loading-indicator .animation{border-right-color:#fff}.vue-ui-button.accent.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-button.accent.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#fff;color:#a44cf6}.vue-ui-high-contrast .vue-ui-button.accent.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-button.accent.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button.accent.flat:not(.ghost):active:before,.vue-ui-button.accent.flat:not(.ghost):hover:before,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost):before{background:#a44cf6}.vue-ui-button.accent.flat:not(.ghost):active.vue-ui-dropdown-button,.vue-ui-button.accent.flat:not(.ghost):hover.vue-ui-dropdown-button,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost).vue-ui-dropdown-button{background:0 0}.vue-ui-button.accent.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-button.accent.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.accent.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-button.accent.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.accent.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-button.accent{border:2px solid #a44cf6;background:#000!important;color:#fff!important}.vue-ui-high-contrast .vue-ui-button.accent .vue-ui-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-button.accent .vue-ui-loading-indicator .animation{border-right-color:#fff!important}.vue-ui-high-contrast .vue-ui-button.accent:focus,.vue-ui-high-contrast .vue-ui-button.accent:hover{background:#a44cf6!important;color:#000!important}.vue-ui-high-contrast .vue-ui-button.accent:focus .vue-ui-icon svg,.vue-ui-high-contrast .vue-ui-button.accent:hover .vue-ui-icon svg{fill:#000!important}.vue-ui-high-contrast .vue-ui-button.accent:focus .vue-ui-loading-indicator .animation,.vue-ui-high-contrast .vue-ui-button.accent:hover .vue-ui-loading-indicator .animation{border-right-color:#000!important}.vue-ui-dark-mode .vue-ui-button.accent{color:#2c3e50;background:#c88eff}.vue-ui-dark-mode .vue-ui-button.accent:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent:not(.ghost){background:#d6aaff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-button.accent:not(.ghost):hover{background:#2c3e50!important}.vue-ui-dark-mode .vue-ui-button.accent:not(.ghost):active{background:#b96eff}.vue-ui-dark-mode .vue-ui-button.accent>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.accent>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-button.accent>.vue-ui-loading-indicator .animation{border-right-color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.accent>.content>.tag-wrapper>.tag{background:#2c3e50;color:#c88eff}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.accent>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-dark-mode .vue-ui-button.accent:before{background:#c88eff}.vue-ui-dark-mode .vue-ui-button.accent.vue-ui-dropdown-button{background:0 0}.vue-ui-dark-mode .vue-ui-button.accent.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.accent.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-dark-mode .vue-ui-button.accent.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.accent.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-dark-mode .vue-ui-button.accent.flat{color:#c88eff;background:0 0}.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost){background:rgba(64,64,64,0)}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover{background:#2c3e50!important}.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active{background:transparent}.vue-ui-dark-mode .vue-ui-button.accent.flat>.content>.button-icon svg{fill:#c88eff}.vue-ui-dark-mode .vue-ui-button.accent.flat>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-button.accent.flat>.vue-ui-loading-indicator .animation{border-right-color:#c88eff}.vue-ui-dark-mode .vue-ui-button.accent.flat>.content>.tag-wrapper>.tag{background:#c88eff;color:transparent;color:#fff}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.accent.flat>.content>.tag-wrapper>.tag{color:#2c3e50!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.accent.flat>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-dark-mode .vue-ui-button.accent.flat.vue-ui-dropdown-button,.vue-ui-dark-mode .vue-ui-button.accent.flat:before{background:0 0}.vue-ui-dark-mode .vue-ui-button.accent.flat.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.accent.flat.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-dark-mode .vue-ui-button.accent.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.accent.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active,.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost){color:#2c3e50;background:#c88eff}.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):not(.ghost){background:#d6aaff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):not(.ghost):hover{background:#2c3e50!important}.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active:not(.ghost):active,.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover:not(.ghost):active,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):not(.ghost):active{background:#b96eff}.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active>.vue-ui-loading-indicator .animation,.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover>.vue-ui-loading-indicator .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost)>.content>.loading-secondary .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost)>.vue-ui-loading-indicator .animation{border-right-color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#2c3e50;color:#c88eff}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active:before,.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover:before,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):before{background:#c88eff}.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active.vue-ui-dropdown-button,.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover.vue-ui-dropdown-button,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost).vue-ui-dropdown-button{background:0 0}.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.accent.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.accent{border:2px solid #c88eff;background:#000!important;color:#fff!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.accent .vue-ui-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.accent .vue-ui-loading-indicator .animation{border-right-color:#fff!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.accent:focus,.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.accent:hover{background:#c88eff!important;color:#000!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.accent:focus .vue-ui-icon svg,.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.accent:hover .vue-ui-icon svg{fill:#000!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.accent:focus .vue-ui-loading-indicator .animation,.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.accent:hover .vue-ui-loading-indicator .animation{border-right-color:#000!important}.vue-ui-button.danger{color:#fff;background:#e83030}.vue-ui-button.danger:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger:not(.ghost){background:#ee6464}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button.danger:not(.ghost):hover{background:#2c3e50!important}.vue-ui-button.danger:not(.ghost):active{background:#e61c1c}.vue-ui-button.danger>.content>.button-icon svg{fill:#fff}.vue-ui-button.danger>.content>.loading-secondary .animation,.vue-ui-button.danger>.vue-ui-loading-indicator .animation{border-right-color:#fff}.vue-ui-button.danger>.content>.tag-wrapper>.tag{background:#fff;color:#e83030}.vue-ui-high-contrast .vue-ui-button.danger>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button.danger:before{background:#e83030}.vue-ui-button.danger.vue-ui-dropdown-button{background:0 0}.vue-ui-button.danger.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.danger.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.danger.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.danger.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-button.danger.flat{color:#e83030;background:0 0}.vue-ui-button.danger.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost){background:rgba(64,64,64,0)}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button.danger.flat:not(.ghost):hover{background:#2c3e50!important}.vue-ui-button.danger.flat:not(.ghost):active{background:transparent}.vue-ui-button.danger.flat>.content>.button-icon svg{fill:#e83030}.vue-ui-button.danger.flat>.content>.loading-secondary .animation,.vue-ui-button.danger.flat>.vue-ui-loading-indicator .animation{border-right-color:#e83030}.vue-ui-button.danger.flat>.content>.tag-wrapper>.tag{background:#e83030;color:transparent;color:#fff}.vue-ui-dark-mode .vue-ui-button.danger.flat>.content>.tag-wrapper>.tag{color:#2c3e50!important}.vue-ui-high-contrast .vue-ui-button.danger.flat>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button.danger.flat.vue-ui-dropdown-button,.vue-ui-button.danger.flat:before{background:0 0}.vue-ui-button.danger.flat.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.danger.flat.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.danger.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.danger.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-button.danger.flat:not(.ghost):active,.vue-ui-button.danger.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost){color:#fff;background:#e83030}.vue-ui-button.danger.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-button.danger.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost):active:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost):hover:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost):not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost):not(.ghost){background:#ee6464}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost):active:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost):hover:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost):not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost):active:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost):hover:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost):not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button.danger.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-button.danger.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost):not(.ghost):hover{background:#2c3e50!important}.vue-ui-button.danger.flat:not(.ghost):active:not(.ghost):active,.vue-ui-button.danger.flat:not(.ghost):hover:not(.ghost):active,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost):not(.ghost):active{background:#e61c1c}.vue-ui-button.danger.flat:not(.ghost):active>.content>.button-icon svg,.vue-ui-button.danger.flat:not(.ghost):hover>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-button.danger.flat:not(.ghost):active>.content>.loading-secondary .animation,.vue-ui-button.danger.flat:not(.ghost):active>.vue-ui-loading-indicator .animation,.vue-ui-button.danger.flat:not(.ghost):hover>.content>.loading-secondary .animation,.vue-ui-button.danger.flat:not(.ghost):hover>.vue-ui-loading-indicator .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost)>.content>.loading-secondary .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost)>.vue-ui-loading-indicator .animation{border-right-color:#fff}.vue-ui-button.danger.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-button.danger.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#fff;color:#e83030}.vue-ui-high-contrast .vue-ui-button.danger.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-button.danger.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button.danger.flat:not(.ghost):active:before,.vue-ui-button.danger.flat:not(.ghost):hover:before,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost):before{background:#e83030}.vue-ui-button.danger.flat:not(.ghost):active.vue-ui-dropdown-button,.vue-ui-button.danger.flat:not(.ghost):hover.vue-ui-dropdown-button,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost).vue-ui-dropdown-button{background:0 0}.vue-ui-button.danger.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-button.danger.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.danger.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-button.danger.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.danger.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-button.danger.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.danger.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-button.danger.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.danger.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-button.danger{border:2px solid #e83030;background:#000!important;color:#fff!important}.vue-ui-high-contrast .vue-ui-button.danger .vue-ui-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-button.danger .vue-ui-loading-indicator .animation{border-right-color:#fff!important}.vue-ui-high-contrast .vue-ui-button.danger:focus,.vue-ui-high-contrast .vue-ui-button.danger:hover{background:#e83030!important;color:#000!important}.vue-ui-high-contrast .vue-ui-button.danger:focus .vue-ui-icon svg,.vue-ui-high-contrast .vue-ui-button.danger:hover .vue-ui-icon svg{fill:#000!important}.vue-ui-high-contrast .vue-ui-button.danger:focus .vue-ui-loading-indicator .animation,.vue-ui-high-contrast .vue-ui-button.danger:hover .vue-ui-loading-indicator .animation{border-right-color:#000!important}.vue-ui-button.warning{color:#fff;background:#ea6e00}.vue-ui-button.warning:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning:not(.ghost){background:#ff9130}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button.warning:not(.ghost):hover{background:#2c3e50!important}.vue-ui-button.warning:not(.ghost):active{background:#d76500}.vue-ui-button.warning>.content>.button-icon svg{fill:#fff}.vue-ui-button.warning>.content>.loading-secondary .animation,.vue-ui-button.warning>.vue-ui-loading-indicator .animation{border-right-color:#fff}.vue-ui-button.warning>.content>.tag-wrapper>.tag{background:#fff;color:#ea6e00}.vue-ui-high-contrast .vue-ui-button.warning>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button.warning:before{background:#ea6e00}.vue-ui-button.warning.vue-ui-dropdown-button{background:0 0}.vue-ui-button.warning.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.warning.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.warning.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.warning.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-button.warning.flat{color:#ea6e00;background:0 0}.vue-ui-button.warning.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost){background:rgba(64,64,64,0)}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button.warning.flat:not(.ghost):hover{background:#2c3e50!important}.vue-ui-button.warning.flat:not(.ghost):active{background:transparent}.vue-ui-button.warning.flat>.content>.button-icon svg{fill:#ea6e00}.vue-ui-button.warning.flat>.content>.loading-secondary .animation,.vue-ui-button.warning.flat>.vue-ui-loading-indicator .animation{border-right-color:#ea6e00}.vue-ui-button.warning.flat>.content>.tag-wrapper>.tag{background:#ea6e00;color:transparent;color:#fff}.vue-ui-dark-mode .vue-ui-button.warning.flat>.content>.tag-wrapper>.tag{color:#2c3e50!important}.vue-ui-high-contrast .vue-ui-button.warning.flat>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button.warning.flat.vue-ui-dropdown-button,.vue-ui-button.warning.flat:before{background:0 0}.vue-ui-button.warning.flat.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.warning.flat.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.warning.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.warning.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-button.warning.flat:not(.ghost):active,.vue-ui-button.warning.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost){color:#fff;background:#ea6e00}.vue-ui-button.warning.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-button.warning.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost):active:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost):hover:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost):not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost):not(.ghost){background:#ff9130}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost):active:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost):hover:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost):not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost):active:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost):hover:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost):not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button.warning.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-button.warning.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost):not(.ghost):hover{background:#2c3e50!important}.vue-ui-button.warning.flat:not(.ghost):active:not(.ghost):active,.vue-ui-button.warning.flat:not(.ghost):hover:not(.ghost):active,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost):not(.ghost):active{background:#d76500}.vue-ui-button.warning.flat:not(.ghost):active>.content>.button-icon svg,.vue-ui-button.warning.flat:not(.ghost):hover>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-button.warning.flat:not(.ghost):active>.content>.loading-secondary .animation,.vue-ui-button.warning.flat:not(.ghost):active>.vue-ui-loading-indicator .animation,.vue-ui-button.warning.flat:not(.ghost):hover>.content>.loading-secondary .animation,.vue-ui-button.warning.flat:not(.ghost):hover>.vue-ui-loading-indicator .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost)>.content>.loading-secondary .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost)>.vue-ui-loading-indicator .animation{border-right-color:#fff}.vue-ui-button.warning.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-button.warning.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#fff;color:#ea6e00}.vue-ui-high-contrast .vue-ui-button.warning.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-button.warning.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button.warning.flat:not(.ghost):active:before,.vue-ui-button.warning.flat:not(.ghost):hover:before,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost):before{background:#ea6e00}.vue-ui-button.warning.flat:not(.ghost):active.vue-ui-dropdown-button,.vue-ui-button.warning.flat:not(.ghost):hover.vue-ui-dropdown-button,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost).vue-ui-dropdown-button{background:0 0}.vue-ui-button.warning.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-button.warning.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.warning.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-button.warning.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.warning.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-button.warning.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.warning.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-button.warning.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.warning.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-button.warning{border:2px solid #ea6e00;background:#000!important;color:#fff!important}.vue-ui-high-contrast .vue-ui-button.warning .vue-ui-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-button.warning .vue-ui-loading-indicator .animation{border-right-color:#fff!important}.vue-ui-high-contrast .vue-ui-button.warning:focus,.vue-ui-high-contrast .vue-ui-button.warning:hover{background:#ea6e00!important;color:#000!important}.vue-ui-high-contrast .vue-ui-button.warning:focus .vue-ui-icon svg,.vue-ui-high-contrast .vue-ui-button.warning:hover .vue-ui-icon svg{fill:#000!important}.vue-ui-high-contrast .vue-ui-button.warning:focus .vue-ui-loading-indicator .animation,.vue-ui-high-contrast .vue-ui-button.warning:hover .vue-ui-loading-indicator .animation{border-right-color:#000!important}.vue-ui-button.info{color:#03c2e6;background:#e0f8ed}.vue-ui-button.info:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info:not(.ghost){background:#e8faf2}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button.info:not(.ghost):hover{background:#2c3e50!important}.vue-ui-button.info:not(.ghost):active{background:#c1f1db}.vue-ui-button.info>.content>.button-icon svg{fill:#03c2e6}.vue-ui-button.info>.content>.loading-secondary .animation,.vue-ui-button.info>.vue-ui-loading-indicator .animation{border-right-color:#03c2e6}.vue-ui-button.info>.content>.tag-wrapper>.tag{background:#03c2e6;color:#e0f8ed}.vue-ui-high-contrast .vue-ui-button.info>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button.info:before{background:#e0f8ed}.vue-ui-button.info.vue-ui-dropdown-button{background:0 0}.vue-ui-button.info.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.info.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.info.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.info.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-button.info.flat{color:#03c2e6;background:0 0}.vue-ui-button.info.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost){background:rgba(64,64,64,0)}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button.info.flat:not(.ghost):hover{background:#2c3e50!important}.vue-ui-button.info.flat:not(.ghost):active{background:transparent}.vue-ui-button.info.flat>.content>.button-icon svg{fill:#03c2e6}.vue-ui-button.info.flat>.content>.loading-secondary .animation,.vue-ui-button.info.flat>.vue-ui-loading-indicator .animation{border-right-color:#03c2e6}.vue-ui-button.info.flat>.content>.tag-wrapper>.tag{background:#03c2e6;color:transparent;color:#fff}.vue-ui-dark-mode .vue-ui-button.info.flat>.content>.tag-wrapper>.tag{color:#2c3e50!important}.vue-ui-high-contrast .vue-ui-button.info.flat>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button.info.flat.vue-ui-dropdown-button,.vue-ui-button.info.flat:before{background:0 0}.vue-ui-button.info.flat.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.info.flat.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.info.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.info.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-button.info.flat:not(.ghost):active,.vue-ui-button.info.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost){color:#03c2e6;background:#e0f8ed}.vue-ui-button.info.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-button.info.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost):active:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost):hover:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost):not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost):not(.ghost){background:#e8faf2}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost):active:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost):hover:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost):not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost):active:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost):hover:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost):not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button.info.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-button.info.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost):not(.ghost):hover{background:#2c3e50!important}.vue-ui-button.info.flat:not(.ghost):active:not(.ghost):active,.vue-ui-button.info.flat:not(.ghost):hover:not(.ghost):active,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost):not(.ghost):active{background:#c1f1db}.vue-ui-button.info.flat:not(.ghost):active>.content>.button-icon svg,.vue-ui-button.info.flat:not(.ghost):hover>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost)>.content>.button-icon svg{fill:#03c2e6}.vue-ui-button.info.flat:not(.ghost):active>.content>.loading-secondary .animation,.vue-ui-button.info.flat:not(.ghost):active>.vue-ui-loading-indicator .animation,.vue-ui-button.info.flat:not(.ghost):hover>.content>.loading-secondary .animation,.vue-ui-button.info.flat:not(.ghost):hover>.vue-ui-loading-indicator .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost)>.content>.loading-secondary .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost)>.vue-ui-loading-indicator .animation{border-right-color:#03c2e6}.vue-ui-button.info.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-button.info.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#03c2e6;color:#e0f8ed}.vue-ui-high-contrast .vue-ui-button.info.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-button.info.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button.info.flat:not(.ghost):active:before,.vue-ui-button.info.flat:not(.ghost):hover:before,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost):before{background:#e0f8ed}.vue-ui-button.info.flat:not(.ghost):active.vue-ui-dropdown-button,.vue-ui-button.info.flat:not(.ghost):hover.vue-ui-dropdown-button,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost).vue-ui-dropdown-button{background:0 0}.vue-ui-button.info.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-button.info.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.info.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-button.info.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.info.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-button.info{border:2px solid #e0f8ed;background:#000!important;color:#fff!important}.vue-ui-high-contrast .vue-ui-button.info .vue-ui-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-button.info .vue-ui-loading-indicator .animation{border-right-color:#fff!important}.vue-ui-high-contrast .vue-ui-button.info:focus,.vue-ui-high-contrast .vue-ui-button.info:hover{background:#e0f8ed!important;color:#000!important}.vue-ui-high-contrast .vue-ui-button.info:focus .vue-ui-icon svg,.vue-ui-high-contrast .vue-ui-button.info:hover .vue-ui-icon svg{fill:#000!important}.vue-ui-high-contrast .vue-ui-button.info:focus .vue-ui-loading-indicator .animation,.vue-ui-high-contrast .vue-ui-button.info:hover .vue-ui-loading-indicator .animation{border-right-color:#000!important}.vue-ui-dark-mode .vue-ui-button.info{color:#03c2e6;background:#2c3e50}.vue-ui-dark-mode .vue-ui-button.info:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info:not(.ghost){background:#4e6e8e}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-button.info:not(.ghost):hover{background:#2c3e50!important}.vue-ui-dark-mode .vue-ui-button.info:not(.ghost):active{background:#28394a}.vue-ui-dark-mode .vue-ui-button.info>.content>.button-icon svg{fill:#03c2e6}.vue-ui-dark-mode .vue-ui-button.info>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-button.info>.vue-ui-loading-indicator .animation{border-right-color:#03c2e6}.vue-ui-dark-mode .vue-ui-button.info>.content>.tag-wrapper>.tag{background:#03c2e6;color:#2c3e50}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.info>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-dark-mode .vue-ui-button.info:before{background:#2c3e50}.vue-ui-dark-mode .vue-ui-button.info.vue-ui-dropdown-button{background:0 0}.vue-ui-dark-mode .vue-ui-button.info.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.info.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-dark-mode .vue-ui-button.info.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.info.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-dark-mode .vue-ui-button.info.flat{color:#03c2e6;background:0 0}.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost){background:rgba(64,64,64,0)}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover{background:#2c3e50!important}.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active{background:transparent}.vue-ui-dark-mode .vue-ui-button.info.flat>.content>.button-icon svg{fill:#03c2e6}.vue-ui-dark-mode .vue-ui-button.info.flat>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-button.info.flat>.vue-ui-loading-indicator .animation{border-right-color:#03c2e6}.vue-ui-dark-mode .vue-ui-button.info.flat>.content>.tag-wrapper>.tag{background:#03c2e6;color:transparent;color:#fff}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.info.flat>.content>.tag-wrapper>.tag{color:#2c3e50!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.info.flat>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-dark-mode .vue-ui-button.info.flat.vue-ui-dropdown-button,.vue-ui-dark-mode .vue-ui-button.info.flat:before{background:0 0}.vue-ui-dark-mode .vue-ui-button.info.flat.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.info.flat.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-dark-mode .vue-ui-button.info.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.info.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active,.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost){color:#03c2e6;background:#2c3e50}.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):not(.ghost){background:#4e6e8e}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):not(.ghost):hover{background:#2c3e50!important}.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active:not(.ghost):active,.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover:not(.ghost):active,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):not(.ghost):active{background:#28394a}.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost)>.content>.button-icon svg{fill:#03c2e6}.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active>.vue-ui-loading-indicator .animation,.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover>.vue-ui-loading-indicator .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost)>.content>.loading-secondary .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost)>.vue-ui-loading-indicator .animation{border-right-color:#03c2e6}.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#03c2e6;color:#2c3e50}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active:before,.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover:before,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):before{background:#2c3e50}.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active.vue-ui-dropdown-button,.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover.vue-ui-dropdown-button,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost).vue-ui-dropdown-button{background:0 0}.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.info.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.info{border:2px solid #2c3e50;background:#000!important;color:#fff!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.info .vue-ui-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.info .vue-ui-loading-indicator .animation{border-right-color:#fff!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.info:focus,.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.info:hover{background:#2c3e50!important;color:#000!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.info:focus .vue-ui-icon svg,.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.info:hover .vue-ui-icon svg{fill:#000!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.info:focus .vue-ui-loading-indicator .animation,.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.info:hover .vue-ui-loading-indicator .animation{border-right-color:#000!important}.vue-ui-button.success{color:#42b983;background:#e0f8ed}.vue-ui-button.success:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success:not(.ghost){background:#e8faf2}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button.success:not(.ghost):hover{background:#2c3e50!important}.vue-ui-button.success:not(.ghost):active{background:#c1f1db}.vue-ui-button.success>.content>.button-icon svg{fill:#42b983}.vue-ui-button.success>.content>.loading-secondary .animation,.vue-ui-button.success>.vue-ui-loading-indicator .animation{border-right-color:#42b983}.vue-ui-button.success>.content>.tag-wrapper>.tag{background:#42b983;color:#e0f8ed}.vue-ui-high-contrast .vue-ui-button.success>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button.success:before{background:#e0f8ed}.vue-ui-button.success.vue-ui-dropdown-button{background:0 0}.vue-ui-button.success.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.success.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.success.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.success.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-button.success.flat{color:#42b983;background:0 0}.vue-ui-button.success.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost){background:rgba(64,64,64,0)}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button.success.flat:not(.ghost):hover{background:#2c3e50!important}.vue-ui-button.success.flat:not(.ghost):active{background:transparent}.vue-ui-button.success.flat>.content>.button-icon svg{fill:#42b983}.vue-ui-button.success.flat>.content>.loading-secondary .animation,.vue-ui-button.success.flat>.vue-ui-loading-indicator .animation{border-right-color:#42b983}.vue-ui-button.success.flat>.content>.tag-wrapper>.tag{background:#42b983;color:transparent;color:#fff}.vue-ui-dark-mode .vue-ui-button.success.flat>.content>.tag-wrapper>.tag{color:#2c3e50!important}.vue-ui-high-contrast .vue-ui-button.success.flat>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button.success.flat.vue-ui-dropdown-button,.vue-ui-button.success.flat:before{background:0 0}.vue-ui-button.success.flat.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.success.flat.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.success.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.success.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-button.success.flat:not(.ghost):active,.vue-ui-button.success.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost){color:#42b983;background:#e0f8ed}.vue-ui-button.success.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-button.success.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost):active:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost):hover:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost):not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost):not(.ghost){background:#e8faf2}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost):active:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost):hover:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost):not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost):active:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost):hover:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost):not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-button.success.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-button.success.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost):not(.ghost):hover{background:#2c3e50!important}.vue-ui-button.success.flat:not(.ghost):active:not(.ghost):active,.vue-ui-button.success.flat:not(.ghost):hover:not(.ghost):active,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost):not(.ghost):active{background:#c1f1db}.vue-ui-button.success.flat:not(.ghost):active>.content>.button-icon svg,.vue-ui-button.success.flat:not(.ghost):hover>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost)>.content>.button-icon svg{fill:#42b983}.vue-ui-button.success.flat:not(.ghost):active>.content>.loading-secondary .animation,.vue-ui-button.success.flat:not(.ghost):active>.vue-ui-loading-indicator .animation,.vue-ui-button.success.flat:not(.ghost):hover>.content>.loading-secondary .animation,.vue-ui-button.success.flat:not(.ghost):hover>.vue-ui-loading-indicator .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost)>.content>.loading-secondary .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost)>.vue-ui-loading-indicator .animation{border-right-color:#42b983}.vue-ui-button.success.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-button.success.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#42b983;color:#e0f8ed}.vue-ui-high-contrast .vue-ui-button.success.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-button.success.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-button.success.flat:not(.ghost):active:before,.vue-ui-button.success.flat:not(.ghost):hover:before,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost):before{background:#e0f8ed}.vue-ui-button.success.flat:not(.ghost):active.vue-ui-dropdown-button,.vue-ui-button.success.flat:not(.ghost):hover.vue-ui-dropdown-button,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost).vue-ui-dropdown-button{background:0 0}.vue-ui-button.success.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-button.success.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-button.success.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-button.success.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-button.success.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-button.success{border:2px solid #e0f8ed;background:#000!important;color:#fff!important}.vue-ui-high-contrast .vue-ui-button.success .vue-ui-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-button.success .vue-ui-loading-indicator .animation{border-right-color:#fff!important}.vue-ui-high-contrast .vue-ui-button.success:focus,.vue-ui-high-contrast .vue-ui-button.success:hover{background:#e0f8ed!important;color:#000!important}.vue-ui-high-contrast .vue-ui-button.success:focus .vue-ui-icon svg,.vue-ui-high-contrast .vue-ui-button.success:hover .vue-ui-icon svg{fill:#000!important}.vue-ui-high-contrast .vue-ui-button.success:focus .vue-ui-loading-indicator .animation,.vue-ui-high-contrast .vue-ui-button.success:hover .vue-ui-loading-indicator .animation{border-right-color:#000!important}.vue-ui-dark-mode .vue-ui-button.success{color:#42b983;background:#2c3e50}.vue-ui-dark-mode .vue-ui-button.success:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success:not(.ghost){background:#4e6e8e}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-button.success:not(.ghost):hover{background:#2c3e50!important}.vue-ui-dark-mode .vue-ui-button.success:not(.ghost):active{background:#28394a}.vue-ui-dark-mode .vue-ui-button.success>.content>.button-icon svg{fill:#42b983}.vue-ui-dark-mode .vue-ui-button.success>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-button.success>.vue-ui-loading-indicator .animation{border-right-color:#42b983}.vue-ui-dark-mode .vue-ui-button.success>.content>.tag-wrapper>.tag{background:#42b983;color:#2c3e50}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.success>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-dark-mode .vue-ui-button.success:before{background:#2c3e50}.vue-ui-dark-mode .vue-ui-button.success.vue-ui-dropdown-button{background:0 0}.vue-ui-dark-mode .vue-ui-button.success.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.success.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-dark-mode .vue-ui-button.success.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.success.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-dark-mode .vue-ui-button.success.flat{color:#42b983;background:0 0}.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost){background:rgba(64,64,64,0)}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover{background:#2c3e50!important}.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active{background:transparent}.vue-ui-dark-mode .vue-ui-button.success.flat>.content>.button-icon svg{fill:#42b983}.vue-ui-dark-mode .vue-ui-button.success.flat>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-button.success.flat>.vue-ui-loading-indicator .animation{border-right-color:#42b983}.vue-ui-dark-mode .vue-ui-button.success.flat>.content>.tag-wrapper>.tag{background:#42b983;color:transparent;color:#fff}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.success.flat>.content>.tag-wrapper>.tag{color:#2c3e50!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.success.flat>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-dark-mode .vue-ui-button.success.flat.vue-ui-dropdown-button,.vue-ui-dark-mode .vue-ui-button.success.flat:before{background:0 0}.vue-ui-dark-mode .vue-ui-button.success.flat.vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.success.flat.vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-dark-mode .vue-ui-button.success.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.success.flat.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active,.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost){color:#42b983;background:#2c3e50}.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover:not(.ghost),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):not(.ghost):hover,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):not(.ghost){background:#4e6e8e}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover:not(.ghost),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):not(.ghost){background:#4f6f7f;color:#fff}.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover:not(.ghost)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):not(.ghost)>.content>.button-icon svg{fill:#fff}.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover:not(.ghost):hover,.vue-ui-dark-mode .popover .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):not(.ghost):hover{background:#2c3e50!important}.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active:not(.ghost):active,.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover:not(.ghost):active,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):not(.ghost):active{background:#28394a}.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost)>.content>.button-icon svg{fill:#42b983}.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active>.vue-ui-loading-indicator .animation,.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover>.content>.loading-secondary .animation,.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover>.vue-ui-loading-indicator .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost)>.content>.loading-secondary .animation,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost)>.vue-ui-loading-indicator .animation{border-right-color:#42b983}.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#42b983;color:#2c3e50}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover>.content>.tag-wrapper>.tag,.vue-ui-high-contrast .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost)>.content>.tag-wrapper>.tag{background:#000!important;color:#fff!important}.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active:before,.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover:before,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):before{background:#2c3e50}.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active.vue-ui-dropdown-button,.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover.vue-ui-dropdown-button,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost).vue-ui-dropdown-button{background:0 0}.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover),.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost).vue-ui-dropdown-button:not(:hover){color:#fff!important}.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#2c3e50}.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):active.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost):hover.vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg,.vue-ui-dark-mode .vue-ui-dropdown.open .dropdown-trigger .vue-ui-dark-mode .vue-ui-button.success.flat:not(.ghost).vue-ui-dropdown-button:not(:hover)>.content>.button-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.success{border:2px solid #2c3e50;background:#000!important;color:#fff!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.success .vue-ui-icon svg{fill:#fff!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.success .vue-ui-loading-indicator .animation{border-right-color:#fff!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.success:focus,.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.success:hover{background:#2c3e50!important;color:#000!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.success:focus .vue-ui-icon svg,.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.success:hover .vue-ui-icon svg{fill:#000!important}.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.success:focus .vue-ui-loading-indicator .animation,.vue-ui-high-contrast .vue-ui-dark-mode .vue-ui-button.success:hover .vue-ui-loading-indicator .animation{border-right-color:#000!important}.vue-ui-button::-moz-focus-inner{border:0}.vue-ui-button:focus.focus-visible{z-index:1}.vue-ui-button:focus.focus-visible:after{content:"";display:block;position:absolute;top:0;bottom:0;left:0;right:0;border:1px solid;border-radius:4px;-webkit-animation:vue-ui-focus .6s forwards;animation:vue-ui-focus .6s forwards}.vue-ui-dark-mode .vue-ui-button:focus.focus-visible:after{-webkit-animation:vue-ui-focus-dark .6s forwards;animation:vue-ui-focus-dark .6s forwards}.vue-ui-modal{position:fixed;top:0;left:0;width:100%;height:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;z-index:100}.vue-ui-modal>*{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-ui-modal>.backdrop{-webkit-box-flex:0;-ms-flex:none;flex:none;position:absolute;top:0;left:0;width:100%;height:100%;background:hsla(0,0%,100%,.9)}.vue-ui-dark-mode .vue-ui-modal>.backdrop{background:rgba(0,0,0,.7)}.vue-ui-modal>.shell{background:#fff;border-radius:6px;position:relative;max-width:calc(100vw - 100px);max-height:calc(100vh - 100px);-webkit-box-shadow:0 20px 60px rgba(0,0,0,.1);box-shadow:0 20px 60px rgba(0,0,0,.1);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.vue-ui-modal>.shell>*{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-ui-dark-mode .vue-ui-modal>.shell{background:#1d2935;-webkit-box-shadow:0 20px 60px rgba(0,0,0,.5);box-shadow:0 20px 60px rgba(0,0,0,.5)}.vue-ui-modal>.shell>.close-button{position:absolute;top:20px;right:20px}.vue-ui-modal>.shell>.body>.default-body,.vue-ui-modal>.shell>.footer>.actions,.vue-ui-modal>.shell>.header{padding:24px}.vue-ui-modal>.shell>.header>.title{font-size:18px}.vue-ui-modal>.shell>.body{overflow-x:hidden;overflow-y:auto;-webkit-box-flex:1;-ms-flex:auto 1 1;flex:auto 1 1;-webkit-box-orient:vertical;-ms-flex-direction:column;flex-direction:column}.vue-ui-modal>.shell>.body,.vue-ui-modal>.shell>.footer>.actions{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal}.vue-ui-modal>.shell>.footer>.actions{-webkit-box-orient:horizontal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vue-ui-modal>.shell>.footer>.actions>*{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0;margin-right:12px}.vue-ui-modal>.shell>.footer>.actions>:last-child{margin-right:0}.vue-ui-modal>.shell>.footer>.actions.space-between{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.vue-ui-modal>.shell>.footer>.actions.center{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.vue-ui-modal>.shell>.footer>.actions.start{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.vue-ui-modal>.shell>.footer>.actions.end{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.vue-ui-modal.small>.shell{max-width:500px;min-width:400px}.vue-ui-modal.medium>.shell{max-width:800px;min-width:700px}.vue-ui-modal.large>.shell{max-width:1200px;min-width:700px;width:60vw}.vue-ui-modal-enter-active>.backdrop,.vue-ui-modal-leave-active>.backdrop{-webkit-transition:opacity .3s;transition:opacity .3s}.vue-ui-modal-enter-active>.shell,.vue-ui-modal-leave-active>.shell{-webkit-transition:opacity .3s,-webkit-transform .3s cubic-bezier(0,0,.2,1);transition:opacity .3s,-webkit-transform .3s cubic-bezier(0,0,.2,1);transition:opacity .3s,transform .3s cubic-bezier(0,0,.2,1);transition:opacity .3s,transform .3s cubic-bezier(0,0,.2,1),-webkit-transform .3s cubic-bezier(0,0,.2,1)}.vue-ui-modal-enter-active>.shell>.body,.vue-ui-modal-enter-active>.shell>.footer,.vue-ui-modal-leave-active>.shell>.body,.vue-ui-modal-leave-active>.shell>.footer{-webkit-transition:opacity .15s,-webkit-transform .8s cubic-bezier(0,1,0,1);transition:opacity .15s,-webkit-transform .8s cubic-bezier(0,1,0,1);transition:transform .8s cubic-bezier(0,1,0,1),opacity .15s;transition:transform .8s cubic-bezier(0,1,0,1),opacity .15s,-webkit-transform .8s cubic-bezier(0,1,0,1)}.vue-ui-modal-enter-active>.shell>.body,.vue-ui-modal-leave-active>.shell>.body{-webkit-transition-delay:.1s;transition-delay:.1s}.vue-ui-modal-enter-active>.shell>.footer,.vue-ui-modal-leave-active>.shell>.footer{-webkit-transition-delay:.2s;transition-delay:.2s}.vue-ui-modal-enter>.backdrop,.vue-ui-modal-enter>.shell,.vue-ui-modal-leave-to>.backdrop,.vue-ui-modal-leave-to>.shell{opacity:0}.vue-ui-modal-enter>.shell,.vue-ui-modal-leave-to>.shell{-webkit-transform:scale(.95);transform:scale(.95)}.vue-ui-modal-enter>.shell>.body,.vue-ui-modal-enter>.shell>.footer{opacity:0;-webkit-transform:translateY(-20px);transform:translateY(-20px)}.vue-ui-select .dropdown-trigger .vue-ui-button>.content>.default-slot{-webkit-box-flex:1;-ms-flex:auto 1 1;flex:auto 1 1}.vue-ui-select-popover-content{padding:0 4px;max-height:220px;overflow-y:auto}.vue-ui-select-button{border-radius:3px!important}.vue-ui-switch{display:inline-block;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;outline:0;-webkit-tap-highlight-color:rgba(255,255,255,0);font-size:14px}.vue-ui-switch::-moz-focus-inner{border:0}.vue-ui-switch>.content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.vue-ui-switch>.content>*{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-ui-switch>.content>.vue-ui-icon{margin-right:6px}.vue-ui-switch>.content>.wrapper{width:32px;height:16px;margin-left:8px;border-radius:8px;background:#e0f8ed;-webkit-transition:background .3s;transition:background .3s;position:relative;padding:1px;-webkit-box-sizing:border-box;box-sizing:border-box}.vue-ui-dark-mode .vue-ui-switch>.content>.wrapper{background:#3e5770}.vue-ui-switch>.content>.wrapper .bullet{width:14px;height:14px;border-radius:50%;background:#2c3e50;-webkit-transition:margin-left .2s ease-in-out,-webkit-transform .2s ease-in-out;transition:margin-left .2s ease-in-out,-webkit-transform .2s ease-in-out;transition:margin-left .2s ease-in-out,transform .2s ease-in-out;transition:margin-left .2s ease-in-out,transform .2s ease-in-out,-webkit-transform .2s ease-in-out}.vue-ui-dark-mode .vue-ui-switch>.content>.wrapper .bullet{background:#fff}.vue-ui-switch.no-margin>.content>.wrapper{margin:0}.vue-ui-switch.selected>.content>.wrapper{background:#42b983}.vue-ui-switch.selected>.content>.wrapper .bullet{margin-left:16px}.vue-ui-switch.extend-right>.content,.vue-ui-switch.right>.content{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.vue-ui-switch.extend-right>.content>.wrapper,.vue-ui-switch.right>.content>.wrapper{margin-left:0;margin-right:8px}.vue-ui-switch.extend-right>.content>.vue-ui-icon,.vue-ui-switch.right>.content>.vue-ui-icon{margin-right:0;margin-left:6px}.vue-ui-switch.right>.content{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.vue-ui-switch.big{font-size:16px}.vue-ui-switch:not(.disabled){cursor:pointer}.vue-ui-switch:not(.disabled):hover>.content>.wrapper .bullet{background:#4f6f7f}.vue-ui-dark-mode .vue-ui-switch:not(.disabled):hover>.content>.wrapper .bullet{background:#e0e5e7}.vue-ui-switch:not(.disabled):active>.content>.wrapper .bullet{-webkit-transform:scale(.8);transform:scale(.8)}.vue-ui-switch.disabled{opacity:.5}.vue-ui-switch.extend-left>.content>.slot{-webkit-box-flex:100%;-ms-flex:100% 0 1;flex:100% 0 1}.vue-ui-switch.extend-left>.content>.wrapper{margin-right:0}.vue-ui-switch.extend-right>.content>.slot{-webkit-box-flex:100%;-ms-flex:100% 0 1;flex:100% 0 1;text-align:right}.vue-ui-switch.extend-right>.content>.wrapper{margin-left:0}.vue-ui-dropdown-content>.vue-ui-switch>.content{min-width:100%;padding:8px 14px;-webkit-box-sizing:border-box;box-sizing:border-box}.vue-ui-switch.focus>.content>.wrapper:after,.vue-ui-switch:focus.focus-visible>.content>.wrapper:after{content:"";display:block;position:absolute;top:-1px;bottom:-1px;left:-1px;right:-1px;border:1px solid;border-radius:9px;-webkit-animation:vue-ui-focus .6s forwards;animation:vue-ui-focus .6s forwards}.vue-ui-dark-mode .vue-ui-switch.focus>.content>.wrapper:after,.vue-ui-dark-mode .vue-ui-switch:focus.focus-visible>.content>.wrapper:after{-webkit-animation:vue-ui-focus-dark .6s forwards;animation:vue-ui-focus-dark .6s forwards}.vue-ui-tab{outline:0}.vue-ui-tabs{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.vue-ui-tabs>*{-webkit-box-flex:1;-ms-flex:auto 0 0px;flex:auto 0 0}.vue-ui-tabs>.tabs-content{-webkit-box-flex:100%;-ms-flex:100% 1 1;flex:100% 1 1}.vue-ui-tabs.animate>.tabs-content{position:relative}.vue-ui-tabs.animate .vue-ui-tab-enter-active,.vue-ui-tabs.animate .vue-ui-tab-leave-active{-webkit-transition:all .15s cubic-bezier(0,0,.2,1);transition:all .15s cubic-bezier(0,0,.2,1)}.vue-ui-tabs.animate .vue-ui-tab-leave-active{position:absolute;top:0;left:0;right:0;height:0}.vue-ui-tabs.animate .vue-ui-tab-enter,.vue-ui-tabs.animate .vue-ui-tab-leave-to{opacity:0}.vue-ui-tabs.animate.direction-to-right .vue-ui-tab-enter{-webkit-transform:translateX(50px);transform:translateX(50px)}.vue-ui-tabs.animate.direction-to-left .vue-ui-tab-enter,.vue-ui-tabs.animate.direction-to-right .vue-ui-tab-leave-to{-webkit-transform:translateX(-50px);transform:translateX(-50px)}.vue-ui-tabs.animate.direction-to-left .vue-ui-tab-leave-to{-webkit-transform:translateX(50px);transform:translateX(50px)}.vue-ui-type-ahead{display:inline-block;vertical-align:middle}.vue-ui-type-ahead>.vue-ui-dropdown{width:100%}code[class*=language-],pre[class*=language-]{color:#000;background:none;text-shadow:0 1px #fff;font-family:Consolas,Monaco,Andale Mono,Ubuntu Mono,monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-ms-hyphens:none;hyphens:none}code[class*=language-] ::-moz-selection,code[class*=language-]::-moz-selection,pre[class*=language-] ::-moz-selection,pre[class*=language-]::-moz-selection{text-shadow:none;background:#b3d4fc}code[class*=language-] ::selection,code[class*=language-]::selection,pre[class*=language-] ::selection,pre[class*=language-]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*=language-],pre[class*=language-]{text-shadow:none}}pre[class*=language-]{padding:1em;margin:.5em 0;overflow:auto}:not(pre)>code[class*=language-],pre[class*=language-]{background:#f5f2f0}:not(pre)>code[class*=language-]{padding:.1em;border-radius:.3em;white-space:normal}.token.cdata,.token.comment,.token.doctype,.token.prolog{color:#708090}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.boolean,.token.constant,.token.deleted,.token.number,.token.property,.token.symbol,.token.tag{color:#905}.token.attr-name,.token.builtin,.token.char,.token.inserted,.token.selector,.token.string{color:#690}.language-css .token.string,.style .token.string,.token.entity,.token.operator,.token.url{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.class-name,.token.function{color:#dd4a68}.token.important,.token.regex,.token.variable{color:#e90}.token.bold,.token.important{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/favicon.ico" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/favicon.ico" new file mode 100644 index 0000000000000000000000000000000000000000..c7b9a43c8cd16d0b434adaf513fcacb340809a11 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/favicon.ico" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/img/search-by-algolia.41580aee.svg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/img/search-by-algolia.41580aee.svg" new file mode 100644 index 0000000000000000000000000000000000000000..989ed6ab8ffac6572c670c274ecc8b5b717f0580 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/img/search-by-algolia.41580aee.svg" @@ -0,0 +1 @@ +search-by-algolia \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/index.html" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/index.html" new file mode 100644 index 0000000000000000000000000000000000000000..87362a558ca3e2b25064ef15cca7e8a52dde2db3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/index.html" @@ -0,0 +1 @@ +Vue CLI
\ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/js/app.1d602eab.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/js/app.1d602eab.js" new file mode 100644 index 0000000000000000000000000000000000000000..4513781b1bf392ff3f417f42733b49d9bad02780 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/js/app.1d602eab.js" @@ -0,0 +1,23 @@ +(function(){var e={51470:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"routeRequested"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"routeRequested"},arguments:[],directives:[]}]}}],loc:{start:0,end:49}};n.loc.source={body:"subscription routeRequested {\n routeRequested\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.routeRequested=o(n,"routeRequested")},59001:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"clientAddonAdded"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"clientAddonAdded"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"clientAddon"},directives:[]}]}}]}}],loc:{start:0,end:115}};t.loc.source={body:'#import "./clientAddonFragment.gql"\n\nsubscription clientAddonAdded {\n clientAddonAdded {\n ...clientAddon\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(78038).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.clientAddonAdded=d(t,"clientAddonAdded")},78038:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"clientAddon"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ClientAddon"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"url"},arguments:[],directives:[]}]}}],loc:{start:0,end:51}};n.loc.source={body:"fragment clientAddon on ClientAddon {\n id\n url\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.clientAddon=o(n,"clientAddon")},95785:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"clientAddons"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"clientAddons"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"clientAddon"},directives:[]}]}}]}}],loc:{start:0,end:100}};t.loc.source={body:'#import "./clientAddonFragment.gql"\n\nquery clientAddons {\n clientAddons {\n ...clientAddon\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(78038).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.clientAddons=d(t,"clientAddons")},54968:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"configuration"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"configuration"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"configuration"},directives:[]},{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tabs"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"prompts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"prompt"},directives:[]}]}}]}}]}}]}}],loc:{start:0,end:265}};t.loc.source={body:'#import "./configurationFragment.gql"\n#import "../prompt/promptFragment.gql"\n\nquery configuration ($id: ID!) {\n configuration(id: $id) {\n ...configuration\n link\n tabs {\n id\n label\n icon\n prompts {\n ...prompt\n }\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(17030).definitions)),t.definitions=t.definitions.concat(o(i(46546).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.configuration=d(t,"configuration")},95289:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"configurationCancel"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"configurationCancel"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"configuration"},directives:[]}]}}]}}],loc:{start:0,end:142}};t.loc.source={body:'#import "./configurationFragment.gql"\n\nmutation configurationCancel ($id: ID!) {\n configurationCancel (id: $id) {\n ...configuration\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(17030).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.configurationCancel=d(t,"configurationCancel")},17030:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"configuration"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Configuration"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"plugin"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:108}};n.loc.source={body:"fragment configuration on Configuration {\n id\n name\n description\n icon\n plugin {\n id\n logo\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.configuration=o(n,"configuration")},26724:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"configurationSave"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"configurationSave"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"configuration"},directives:[]}]}}]}}],loc:{start:0,end:138}};t.loc.source={body:'#import "./configurationFragment.gql"\n\nmutation configurationSave ($id: ID!) {\n configurationSave (id: $id) {\n ...configuration\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(17030).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.configurationSave=d(t,"configurationSave")},81350:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"configurations"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"configurations"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"configuration"},directives:[]}]}}]}}],loc:{start:0,end:108}};t.loc.source={body:'#import "./configurationFragment.gql"\n\nquery configurations {\n configurations {\n ...configuration\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(17030).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.configurations=d(t,"configurations")},4961:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"connected"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"connected"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"client"},arguments:[]}]}]}}],loc:{start:0,end:40}};n.loc.source={body:"query connected {\n connected @client\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.connected=o(n,"connected")},46126:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"connectedSet"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"value"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"connectedSet"},arguments:[{kind:"Argument",name:{kind:"Name",value:"value"},value:{kind:"Variable",name:{kind:"Name",value:"value"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"client"},arguments:[]}]}]}}],loc:{start:0,end:84}};n.loc.source={body:"mutation connectedSet ($value: Boolean!) {\n connectedSet (value: $value) @client\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.connectedSet=o(n,"connectedSet")},97939:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"consoleLogAdded"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"consoleLogAdded"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"consoleLog"},directives:[]}]}}]}}],loc:{start:0,end:111}};t.loc.source={body:'#import "./consoleLogFragment.gql"\n\nsubscription consoleLogAdded {\n consoleLogAdded {\n ...consoleLog\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(23695).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.consoleLogAdded=d(t,"consoleLogAdded")},23695:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"consoleLog"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ConsoleLog"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tag"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"date"},arguments:[],directives:[]}]}}],loc:{start:0,end:73}};n.loc.source={body:"fragment consoleLog on ConsoleLog {\n id\n type\n message\n tag\n date\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.consoleLog=o(n,"consoleLog")},30070:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"consoleLogLast"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"consoleLogLast"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"consoleLog"},directives:[]}]}}]}}],loc:{start:0,end:102}};t.loc.source={body:'#import "./consoleLogFragment.gql"\n\nquery consoleLogLast {\n consoleLogLast {\n ...consoleLog\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(23695).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.consoleLogLast=d(t,"consoleLogLast")},54389:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"consoleLogs"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"consoleLogs"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"consoleLog"},directives:[]}]}}]}}],loc:{start:0,end:96}};t.loc.source={body:'#import "./consoleLogFragment.gql"\n\nquery consoleLogs {\n consoleLogs {\n ...consoleLog\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(23695).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.consoleLogs=d(t,"consoleLogs")},10840:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"consoleLogsClear"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"consoleLogsClear"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"consoleLog"},directives:[]}]}}]}}],loc:{start:0,end:109}};t.loc.source={body:'#import "./consoleLogFragment.gql"\n\nmutation consoleLogsClear {\n consoleLogsClear {\n ...consoleLog\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(23695).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.consoleLogsClear=d(t,"consoleLogsClear")},77433:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"cwd"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"cwd"},arguments:[],directives:[]}]}}],loc:{start:0,end:20}};n.loc.source={body:"query cwd {\n cwd\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.cwd=o(n,"cwd")},95108:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"cwdChanged"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"cwd"},name:{kind:"Name",value:"cwdChanged"},arguments:[],directives:[]}]}}],loc:{start:0,end:46}};n.loc.source={body:"subscription cwdChanged {\n cwd: cwdChanged\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.cwdChanged=o(n,"cwdChanged")},85641:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"darkMode"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"darkMode"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"client"},arguments:[]}]}]}}],loc:{start:0,end:38}};n.loc.source={body:"query darkMode {\n darkMode @client\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.darkMode=o(n,"darkMode")},16493:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"darkModeSet"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"enabled"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"darkModeSet"},arguments:[{kind:"Argument",name:{kind:"Name",value:"enabled"},value:{kind:"Variable",name:{kind:"Name",value:"enabled"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"client"},arguments:[]}]}]}}],loc:{start:0,end:87}};n.loc.source={body:"mutation darkModeSet($enabled: Boolean!) {\n darkModeSet (enabled: $enabled) @client\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.darkModeSet=o(n,"darkModeSet")},80247:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"dependencies"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dependencies"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"dependency"},directives:[]}]}}]}}],loc:{start:0,end:97}};t.loc.source={body:'#import "./dependencyFragment.gql"\n\nquery dependencies {\n dependencies {\n ...dependency\n }\n}',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(20035).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.dependencies=d(t,"dependencies")},11111:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"dependenciesUpdate"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dependenciesUpdate"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"version"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"current"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:100}};n.loc.source={body:"mutation dependenciesUpdate {\n dependenciesUpdate {\n id\n version {\n current\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.dependenciesUpdate=o(n,"dependenciesUpdate")},94210:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"dependencyDetails"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"dependencyDetails"},name:{kind:"Name",value:"dependency"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"version"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"version"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:189}};t.loc.source={body:'#import "../version/versionFragment.gql"\n\nquery dependencyDetails ($id: ID!) {\n dependencyDetails: dependency (id: $id) {\n id\n version {\n ...version\n }\n description\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(97337).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.dependencyDetails=d(t,"dependencyDetails")},20035:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"dependency"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Dependency"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"installed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"website"},arguments:[],directives:[]}]}}],loc:{start:0,end:71}};n.loc.source={body:"fragment dependency on Dependency {\n id\n type\n installed\n website\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.dependency=o(n,"dependency")},68209:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"dependencyInstall"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DependencyInstall"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dependencyInstall"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"dependency"},directives:[]}]}}]}}],loc:{start:0,end:156}};t.loc.source={body:'#import "./dependencyFragment.gql"\n\nmutation dependencyInstall ($input: DependencyInstall!) {\n dependencyInstall (input: $input) {\n ...dependency\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(20035).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.dependencyInstall=d(t,"dependencyInstall")},98513:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"dependencyUninstall"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DependencyUninstall"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dependencyUninstall"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"dependency"},directives:[]}]}}]}}],loc:{start:0,end:162}};t.loc.source={body:'#import "./dependencyFragment.gql"\n\nmutation dependencyUninstall ($input: DependencyUninstall!) {\n dependencyUninstall (input: $input) {\n ...dependency\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(20035).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.dependencyUninstall=d(t,"dependencyUninstall")},40688:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"dependencyUpdate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"DependencyUpdate"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"dependencyUpdate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"version"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"current"},arguments:[],directives:[]}]}}]}}]}}],loc:{start:0,end:139}};n.loc.source={body:"mutation dependencyUpdate ($input: DependencyUpdate!) {\n dependencyUpdate (input: $input) {\n id\n version {\n current\n }\n }\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.dependencyUpdate=o(n,"dependencyUpdate")},24934:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"feature"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Feature"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"enabled"},arguments:[],directives:[]}]}}],loc:{start:0,end:75}};n.loc.source={body:"fragment feature on Feature {\n id\n name\n description\n link\n enabled\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.feature=o(n,"feature")},12803:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"featureSetEnabled"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"enabled"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"featureSetEnabled"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"enabled"},value:{kind:"Variable",name:{kind:"Name",value:"enabled"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"feature"},directives:[]}]}}]}}],loc:{start:0,end:165}};t.loc.source={body:'#import "./featureFragment.gql"\n\nmutation featureSetEnabled ($id: ID!, $enabled: Boolean!) {\n featureSetEnabled (id: $id, enabled: $enabled) {\n ...feature\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(24934).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.featureSetEnabled=d(t,"featureSetEnabled")},71105:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"fileOpenInEditor"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"OpenInEditorInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fileOpenInEditor"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[]}]}}],loc:{start:0,end:94}};n.loc.source={body:"mutation fileOpenInEditor ($input: OpenInEditorInput!) {\n fileOpenInEditor (input: $input)\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.fileOpenInEditor=o(n,"fileOpenInEditor")},91343:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"folderCreate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"name"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"folderCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"name"},value:{kind:"Variable",name:{kind:"Name",value:"name"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"folderCurrent"},directives:[]}]}}]}}],loc:{start:0,end:137}};t.loc.source={body:'#import "./folderCurrentFragment.gql"\n\nmutation folderCreate ($name: String!) {\n folderCreate (name: $name) {\n ...folderCurrent\n }\n}',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(42830).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.folderCreate=d(t,"folderCreate")},9987:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"folderCurrent"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"folderCurrent"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"folderCurrent"},directives:[]}]}}]}}],loc:{start:0,end:106}};t.loc.source={body:'#import "./folderCurrentFragment.gql"\n\nquery folderCurrent {\n folderCurrent {\n ...folderCurrent\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(42830).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.folderCurrent=d(t,"folderCurrent")},42830:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"folderCurrent"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Folder"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"favorite"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isPackage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isVueProject"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"children"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isPackage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isVueProject"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hidden"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"favorite"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:179}};n.loc.source={body:"fragment folderCurrent on Folder {\n name\n path\n favorite\n isPackage\n isVueProject\n children {\n name\n path\n isPackage\n isVueProject\n hidden\n favorite\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.folderCurrent=o(n,"folderCurrent")},21536:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"folderExists"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"file"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"folderExists"},arguments:[{kind:"Argument",name:{kind:"Name",value:"file"},value:{kind:"Variable",name:{kind:"Name",value:"file"}}}],directives:[]}]}}],loc:{start:0,end:67}};n.loc.source={body:"query folderExists ($file: String!) {\n folderExists(file: $file)\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.folderExists=o(n,"folderExists")},41871:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"folderOpen"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"path"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"folderOpen"},arguments:[{kind:"Argument",name:{kind:"Name",value:"path"},value:{kind:"Variable",name:{kind:"Name",value:"path"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"folderCurrent"},directives:[]}]}}]}}],loc:{start:0,end:133}};t.loc.source={body:'#import "./folderCurrentFragment.gql"\n\nmutation folderOpen ($path: String!) {\n folderOpen(path: $path) {\n ...folderCurrent\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(42830).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.folderOpen=d(t,"folderOpen")},98645:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"folderOpenParent"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"folderOpenParent"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"folderCurrent"},directives:[]}]}}]}}],loc:{start:0,end:115}};t.loc.source={body:'#import "./folderCurrentFragment.gql"\n\nmutation folderOpenParent {\n folderOpenParent {\n ...folderCurrent\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(42830).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.folderOpenParent=d(t,"folderOpenParent")},11722:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"folderSetFavorite"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"path"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"favorite"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"folderSetFavorite"},arguments:[{kind:"Argument",name:{kind:"Name",value:"path"},value:{kind:"Variable",name:{kind:"Name",value:"path"}}},{kind:"Argument",name:{kind:"Name",value:"favorite"},value:{kind:"Variable",name:{kind:"Name",value:"favorite"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"folderCurrent"},directives:[]}]}}]}}],loc:{start:0,end:190}};t.loc.source={body:'#import "./folderCurrentFragment.gql"\n\nmutation folderSetFavorite ($path: String!, $favorite: Boolean!) {\n folderSetFavorite (path: $path, favorite: $favorite) {\n ...folderCurrent\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(42830).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.folderSetFavorite=d(t,"folderSetFavorite")},17222:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"foldersFavorite"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"foldersFavorite"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:59}};n.loc.source={body:"query foldersFavorite {\n foldersFavorite {\n path\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.foldersFavorite=o(n,"foldersFavorite")},16295:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"fileDiffs"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"fileDiffs"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"from"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"to"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"new"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"deleted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"binary"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"chunks"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"oldStart"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"oldLines"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"newStart"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"newLines"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"changes"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ln"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ln1"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"ln2"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"content"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"normal"},arguments:[],directives:[]}]}}]}}]}}]}}],loc:{start:0,end:274}};n.loc.source={body:"query fileDiffs {\n fileDiffs {\n id\n from\n to\n new\n deleted\n binary\n chunks {\n oldStart\n oldLines\n newStart\n newLines\n changes {\n type\n ln\n ln1\n ln2\n content\n normal\n }\n }\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.fileDiffs=o(n,"fileDiffs")},67875:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"gitCommit"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"message"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"String"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"gitCommit"},arguments:[{kind:"Argument",name:{kind:"Name",value:"message"},value:{kind:"Variable",name:{kind:"Name",value:"message"}}}],directives:[]}]}}],loc:{start:0,end:75}};n.loc.source={body:"mutation gitCommit ($message: String!) {\n gitCommit (message: $message)\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.gitCommit=o(n,"gitCommit")},14779:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"loading"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"loading"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"client"},arguments:[]}]}]}}],loc:{start:0,end:36}};n.loc.source={body:"query loading {\n loading @client\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.loading=o(n,"loading")},42478:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"loadingChange"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"mod"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"loadingChange"},arguments:[{kind:"Argument",name:{kind:"Name",value:"mod"},value:{kind:"Variable",name:{kind:"Name",value:"mod"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"client"},arguments:[]}]}]}}],loc:{start:0,end:76}};n.loc.source={body:"mutation loadingChange ($mod: Int!) {\n loadingChange (mod: $mod) @client\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.loadingChange=o(n,"loadingChange")},6268:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"localeAdded"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"localeAdded"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"locale"},directives:[]}]}}]}}],loc:{start:0,end:95}};t.loc.source={body:'#import "./localeFragment.gql"\n\nsubscription localeAdded {\n localeAdded {\n ...locale\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(853).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.localeAdded=d(t,"localeAdded")},853:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"locale"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Locale"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"lang"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"strings"},arguments:[],directives:[]}]}}],loc:{start:0,end:47}};n.loc.source={body:"fragment locale on Locale {\n lang\n strings\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.locale=o(n,"locale")},92216:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"locales"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"locales"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"locale"},directives:[]}]}}]}}],loc:{start:0,end:80}};t.loc.source={body:'#import "./localeFragment.gql"\n\nquery locales {\n locales {\n ...locale\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(853).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.locales=d(t,"locales")},96675:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"pluginActionCall"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"params"}},type:{kind:"NamedType",name:{kind:"Name",value:"JSON"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pluginActionCall"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"params"},value:{kind:"Variable",name:{kind:"Name",value:"params"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pluginActionResult"},directives:[]}]}}]}}],loc:{start:0,end:178}};t.loc.source={body:'#import "./pluginActionResultFragment.gql"\n\nmutation pluginActionCall ($id: ID!, $params: JSON) {\n pluginActionCall (id: $id, params: $params) {\n ...pluginActionResult\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(13263).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.pluginActionCall=d(t,"pluginActionCall")},89405:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"pluginActionCall"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PluginActionCall"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"params"},arguments:[],directives:[]}]}}],loc:{start:0,end:64}};n.loc.source={body:"fragment pluginActionCall on PluginActionCall {\n id\n params\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.pluginActionCall=o(n,"pluginActionCall")},28469:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"pluginActionCalled"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pluginActionCalled"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pluginActionCall"},directives:[]}]}}]}}],loc:{start:0,end:129}};t.loc.source={body:'#import "./pluginActionCallFragment.gql"\n\nsubscription pluginActionCalled {\n pluginActionCalled {\n ...pluginActionCall\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(89405).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.pluginActionCalled=d(t,"pluginActionCalled")},98852:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"pluginActionResolved"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pluginActionResolved"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pluginActionResult"},directives:[]}]}}]}}],loc:{start:0,end:137}};t.loc.source={body:'#import "./pluginActionResultFragment.gql"\n\nsubscription pluginActionResolved {\n pluginActionResolved {\n ...pluginActionResult\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(13263).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.pluginActionResolved=d(t,"pluginActionResolved")},13263:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"pluginActionResult"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PluginActionResult"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"params"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"results"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"errors"},arguments:[],directives:[]}]}}],loc:{start:0,end:87}};n.loc.source={body:"fragment pluginActionResult on PluginActionResult {\n id\n params\n results\n errors\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.pluginActionResult=o(n,"pluginActionResult")},78114:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"pluginDetails"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"pluginDetails"},name:{kind:"Name",value:"plugin"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"version"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"version"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:177}};t.loc.source={body:'#import "../version/versionFragment.gql"\n\nquery pluginDetails ($id: ID!) {\n pluginDetails: plugin (id: $id) {\n id\n version {\n ...version\n }\n description\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(97337).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.pluginDetails=d(t,"pluginDetails")},50816:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"pluginFinishInstall"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pluginFinishInstall"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pluginInstallation"},directives:[]}]}}]}}],loc:{start:0,end:131}};t.loc.source={body:'#import "./pluginInstallationFragment.gql"\n\nmutation pluginFinishInstall {\n pluginFinishInstall {\n ...pluginInstallation\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(79344).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.pluginFinishInstall=d(t,"pluginFinishInstall")},67624:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"plugin"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Plugin"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"official"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"installed"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"website"},arguments:[],directives:[]}]}}],loc:{start:0,end:68}};n.loc.source={body:"fragment plugin on Plugin {\n id\n official\n installed\n website\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.plugin=o(n,"plugin")},52806:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"pluginInstall"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pluginInstall"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pluginInstallation"},directives:[]}]}}]}}],loc:{start:0,end:140}};t.loc.source={body:'#import "./pluginInstallationFragment.gql"\n\nmutation pluginInstall ($id: ID!) {\n pluginInstall (id: $id) {\n ...pluginInstallation\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(79344).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.pluginInstall=d(t,"pluginInstall")},48408:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"pluginInstallLocal"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pluginInstallLocal"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pluginInstallation"},directives:[]}]}}]}}],loc:{start:0,end:129}};t.loc.source={body:'#import "./pluginInstallationFragment.gql"\n\nmutation pluginInstallLocal {\n pluginInstallLocal {\n ...pluginInstallation\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(79344).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.pluginInstallLocal=d(t,"pluginInstallLocal")},43273:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"pluginInstallation"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pluginInstallation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pluginInstallation"},directives:[]}]}}]}}],loc:{start:0,end:126}};t.loc.source={body:'#import "./pluginInstallationFragment.gql"\n\nquery pluginInstallation {\n pluginInstallation {\n ...pluginInstallation\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(79344).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.pluginInstallation=d(t,"pluginInstallation")},79344:function(e,n,i){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"pluginInstallation"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PluginInstallation"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"pluginId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"step"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"prompts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"prompt"},directives:[]}]}}]}}],loc:{start:0,end:147}};t.loc.source={body:'#import "../prompt/promptFragment.gql"\n\nfragment pluginInstallation on PluginInstallation {\n id\n pluginId\n step\n prompts {\n ...prompt\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(46546).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.pluginInstallation=d(t,"pluginInstallation")},75949:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"pluginInvoke"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pluginInvoke"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pluginInstallation"},directives:[]}]}}]}}],loc:{start:0,end:138}};t.loc.source={body:'#import "./pluginInstallationFragment.gql"\n\nmutation pluginInvoke ($id: ID!) {\n pluginInvoke (id: $id) {\n ...pluginInstallation\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(79344).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.pluginInvoke=d(t,"pluginInvoke")},89818:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"pluginLogo"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"pluginLogo"},name:{kind:"Name",value:"plugin"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:85}};n.loc.source={body:"query pluginLogo ($id: ID!) {\n pluginLogo: plugin (id: $id) {\n id\n logo\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.pluginLogo=o(n,"pluginLogo")},24324:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"pluginResetApi"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pluginResetApi"},arguments:[],directives:[]}]}}],loc:{start:0,end:44}};n.loc.source={body:"mutation pluginResetApi {\n pluginResetApi\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.pluginResetApi=o(n,"pluginResetApi")},45015:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"pluginUninstall"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pluginUninstall"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"pluginInstallation"},directives:[]}]}}]}}],loc:{start:0,end:144}};t.loc.source={body:'#import "./pluginInstallationFragment.gql"\n\nmutation pluginUninstall ($id: ID!) {\n pluginUninstall (id: $id) {\n ...pluginInstallation\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(79344).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.pluginUninstall=d(t,"pluginUninstall")},67942:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"pluginUpdate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"full"}},type:{kind:"NamedType",name:{kind:"Name",value:"Boolean"}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pluginUpdate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"full"},value:{kind:"Variable",name:{kind:"Name",value:"full"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"version"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"version"},directives:[]}]}}]}}]}}],loc:{start:0,end:183}};t.loc.source={body:'#import "../version/versionFragment.gql"\n\nmutation pluginUpdate ($id: ID!, $full: Boolean) {\n pluginUpdate (id: $id, full: $full) {\n id\n version {\n ...version\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(97337).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.pluginUpdate=d(t,"pluginUpdate")},97692:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"plugins"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"plugins"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"plugin"},directives:[]}]}}]}}],loc:{start:0,end:80}};t.loc.source={body:'#import "./pluginFragment.gql"\n\nquery plugins {\n plugins {\n ...plugin\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(67624).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.plugins=d(t,"plugins")},88615:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"pluginsUpdate"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"pluginsUpdate"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"version"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"version"},directives:[]}]}}]}}]}}],loc:{start:0,end:135}};t.loc.source={body:'#import "../version/versionFragment.gql"\n\nmutation pluginsUpdate {\n pluginsUpdate {\n id\n version {\n ...version\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(97337).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.pluginsUpdate=d(t,"pluginsUpdate")},99973:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"presetApply"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"presetApply"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"projectCreation"},directives:[]}]}}]}}],loc:{start:0,end:138}};t.loc.source={body:'#import "../project/projectCreationFragment.gql"\n\nmutation presetApply ($id: ID!) {\n presetApply(id: $id) {\n ...projectCreation\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(99834).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.presetApply=d(t,"presetApply")},10070:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"preset"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Preset"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]}]}}],loc:{start:0,end:63}};n.loc.source={body:"fragment preset on Preset {\n id\n name\n description\n link\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.preset=o(n,"preset")},60393:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"progress"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"progress"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"progress"},directives:[]}]}}]}}],loc:{start:0,end:107}};t.loc.source={body:'#import "./progressFragment.gql"\n\nquery progress ($id: ID!) {\n progress (id: $id) {\n ...progress\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(6849).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.progress=d(t,"progress")},87843:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"progressChanged"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"progressChanged"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"progress"},directives:[]}]}}]}}],loc:{start:0,end:128}};t.loc.source={body:'#import "./progressFragment.gql"\n\nsubscription progressChanged ($id: ID!) {\n progressChanged (id: $id) {\n ...progress\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(6849).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.progressChanged=d(t,"progressChanged")},6849:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"progress"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Progress"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"info"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"progress"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"args"},arguments:[],directives:[]}]}}],loc:{start:0,end:81}};n.loc.source={body:"fragment progress on Progress {\n id\n status\n info\n error\n progress\n args\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.progress=o(n,"progress")},34592:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"progressRemoved"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"progressRemoved"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[]}]}}],loc:{start:0,end:72}};n.loc.source={body:"subscription progressRemoved ($id: ID!) {\n progressRemoved (id: $id)\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.progressRemoved=o(n,"progressRemoved")},99861:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"currentProjectId"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentProjectId"},arguments:[],directives:[{kind:"Directive",name:{kind:"Name",value:"client"},arguments:[]}]}]}}],loc:{start:0,end:53}};n.loc.source={body:"query currentProjectId {\n currentProjectId @client\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.currentProjectId=o(n,"currentProjectId")},95569:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"currentProjectIdSet"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"currentProjectIdSet"},arguments:[{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}}],directives:[{kind:"Directive",name:{kind:"Name",value:"client"},arguments:[]}]}]}}],loc:{start:0,end:103}};n.loc.source={body:"mutation currentProjectIdSet ($projectId: ID!) {\n currentProjectIdSet(projectId: $projectId) @client\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.currentProjectIdSet=o(n,"currentProjectIdSet")},9594:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"projectCancelCreation"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"projectCancelCreation"},arguments:[],directives:[]}]}}],loc:{start:0,end:58}};n.loc.source={body:"mutation projectCancelCreation {\n projectCancelCreation\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.projectCancelCreation=o(n,"projectCancelCreation")},40570:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"projectCreate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ProjectCreateInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"projectCreate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"project"},directives:[]}]}}]}}],loc:{start:0,end:142}};t.loc.source={body:'#import "./projectFragment.gql"\n\nmutation projectCreate ($input: ProjectCreateInput!) {\n projectCreate(input: $input) {\n ...project\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(96811).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.projectCreate=d(t,"projectCreate")},22190:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"projectCreation"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"projectCreation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"projectCreation"},directives:[]}]}}]}}],loc:{start:0,end:114}};t.loc.source={body:'#import "./projectCreationFragment.gql"\n\nquery projectCreation {\n projectCreation {\n ...projectCreation\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(99834).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.projectCreation=d(t,"projectCreation")},99834:function(e,n,i){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"projectCreation"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ProjectCreation"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"presets"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"preset"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"features"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"feature"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"prompts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"prompt"},directives:[]}]}}]}}],loc:{start:0,end:260}};t.loc.source={body:'#import "../preset/presetFragment.gql"\n#import "../feature/featureFragment.gql"\n#import "../prompt/promptFragment.gql"\n\nfragment projectCreation on ProjectCreation {\n presets {\n ...preset\n }\n features {\n ...feature\n }\n prompts {\n ...prompt\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(10070).definitions)),t.definitions=t.definitions.concat(o(i(24934).definitions)),t.definitions=t.definitions.concat(o(i(46546).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.projectCreation=d(t,"projectCreation")},43146:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"projectCurrent"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"projectCurrent"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"project"},directives:[]}]}}]}}],loc:{start:0,end:96}};t.loc.source={body:'#import "./projectFragment.gql"\n\nquery projectCurrent {\n projectCurrent {\n ...project\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(96811).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.projectCurrent=d(t,"projectCurrent")},99483:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"projectCwdReset"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"projectCwdReset"},arguments:[],directives:[]}]}}],loc:{start:0,end:47}};n.loc.source={body:"mutation projectCwdReset {\n projectCwdReset\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.projectCwdReset=o(n,"projectCwdReset")},96811:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"project"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Project"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"path"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"favorite"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"homepage"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openDate"},arguments:[],directives:[]}]}}],loc:{start:0,end:91}};n.loc.source={body:"fragment project on Project {\n id\n name\n type\n path\n favorite\n homepage\n openDate\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.project=o(n,"project")},64174:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"projectImport"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ProjectImportInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"projectImport"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"project"},directives:[]}]}}]}}],loc:{start:0,end:142}};t.loc.source={body:'#import "./projectFragment.gql"\n\nmutation projectImport ($input: ProjectImportInput!) {\n projectImport(input: $input) {\n ...project\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(96811).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.projectImport=d(t,"projectImport")},50448:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"projectInitCreation"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"projectInitCreation"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"projectCreation"},directives:[]}]}}]}}],loc:{start:0,end:125}};t.loc.source={body:'#import "./projectCreationFragment.gql"\n\nmutation projectInitCreation {\n projectInitCreation {\n ...projectCreation\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(99834).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.projectInitCreation=d(t,"projectInitCreation")},83492:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"projectOpen"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"projectOpen"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"project"},directives:[]}]}}]}}],loc:{start:0,end:113}};t.loc.source={body:'#import "./projectFragment.gql"\n\nmutation projectOpen ($id: ID!) {\n projectOpen(id: $id) {\n ...project\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(96811).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.projectOpen=d(t,"projectOpen")},25539:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"projectRemove"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"projectRemove"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[]}]}}],loc:{start:0,end:64}};n.loc.source={body:"mutation projectRemove ($id: ID!) {\n projectRemove (id: $id)\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.projectRemove=o(n,"projectRemove")},77536:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"projectSetFavorite"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"favorite"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"Int"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"projectSetFavorite"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"favorite"},value:{kind:"Variable",name:{kind:"Name",value:"favorite"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"project"},directives:[]}]}}]}}],loc:{start:0,end:166}};t.loc.source={body:'#import "./projectFragment.gql"\n\nmutation projectSetFavorite ($id: ID!, $favorite: Int!) {\n projectSetFavorite (id: $id, favorite: $favorite) {\n ...project\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(96811).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.projectSetFavorite=d(t,"projectSetFavorite")},24971:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"projects"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"projects"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"project"},directives:[]},{kind:"Field",name:{kind:"Name",value:"tasks"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"task"},directives:[]}]}}]}}]}}],loc:{start:0,end:151}};t.loc.source={body:'#import "./projectFragment.gql"\n#import "../task/taskFragment.gql"\n\nquery projects {\n projects {\n ...project\n tasks {\n ...task\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(96811).definitions)),t.definitions=t.definitions.concat(o(i(35638).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.projects=d(t,"projects")},99969:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"promptAnswer"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PromptInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"promptAnswer"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"prompt"},directives:[]}]}}]}}],loc:{start:0,end:131}};t.loc.source={body:'#import "./promptFragment.gql"\n\nmutation promptAnswer ($input: PromptInput!) {\n promptAnswer(input: $input) {\n ...prompt\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(46546).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.promptAnswer=d(t,"promptAnswer")},42058:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"promptChoice"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PromptChoice"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"checked"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"disabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"isDefault"},arguments:[],directives:[]}]}}],loc:{start:0,end:90}};n.loc.source={body:"fragment promptChoice on PromptChoice {\n value\n name\n checked\n disabled\n isDefault\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.promptChoice=o(n,"promptChoice")},53806:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"promptError"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PromptError"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]}]}}],loc:{start:0,end:57}};n.loc.source={body:"fragment promptError on PromptError {\n message\n link\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.promptError=o(n,"promptError")},46546:function(e,n,i){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"prompt"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Prompt"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"visible"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"enabled"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"group"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"choices"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"promptChoice"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"valueChanged"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"error"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"promptError"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"tabId"},arguments:[],directives:[]}]}}],loc:{start:0,end:282}};t.loc.source={body:'#import "./promptChoiceFragment.gql"\n#import "./promptErrorFragment.gql"\n\nfragment prompt on Prompt {\n id\n type\n visible\n enabled\n name\n message\n group\n description\n link\n choices {\n ...promptChoice\n }\n value\n valueChanged\n error {\n ...promptError\n }\n tabId\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(42058).definitions)),t.definitions=t.definitions.concat(o(i(53806).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.prompt=d(t,"prompt")},78246:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"sharedData"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sharedData"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"sharedData"},directives:[]}]}}]}}],loc:{start:0,end:155}};t.loc.source={body:'#import "./sharedDataFragment.gql"\n\nquery sharedData ($id: ID!, $projectId: ID!) {\n sharedData (id: $id, projectId: $projectId) {\n ...sharedData\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(43360).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.sharedData=d(t,"sharedData")},43360:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"sharedData"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SharedData"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"value"},arguments:[],directives:[]}]}}],loc:{start:0,end:51}};n.loc.source={body:"fragment sharedData on SharedData {\n id\n value\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.sharedData=o(n,"sharedData")},18280:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"sharedDataUpdate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"value"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"JSON"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sharedDataUpdate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}},{kind:"Argument",name:{kind:"Name",value:"value"},value:{kind:"Variable",name:{kind:"Name",value:"value"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"sharedData"},directives:[]}]}}]}}],loc:{start:0,end:200}};t.loc.source={body:'#import "./sharedDataFragment.gql"\n\nmutation sharedDataUpdate ($id: ID!, $projectId: ID!, $value: JSON!) {\n sharedDataUpdate (id: $id, projectId: $projectId, value: $value) {\n ...sharedData\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(43360).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.sharedDataUpdate=d(t,"sharedDataUpdate")},66259:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"sharedDataUpdated"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"projectId"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"sharedDataUpdated"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}},{kind:"Argument",name:{kind:"Name",value:"projectId"},value:{kind:"Variable",name:{kind:"Name",value:"projectId"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"sharedData"},directives:[]}]}}]}}],loc:{start:0,end:176}};t.loc.source={body:'#import "./sharedDataFragment.gql"\n\nsubscription sharedDataUpdated ($id: ID!, $projectId: ID!) {\n sharedDataUpdated (id: $id, projectId: $projectId) {\n ...sharedData\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(43360).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.sharedDataUpdated=d(t,"sharedDataUpdated")},7727:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"suggestionActivate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SuggestionActivate"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"suggestionActivate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"suggestion"},directives:[]}]}}]}}],loc:{start:0,end:158}};t.loc.source={body:'#import "./suggestionFragment.gql"\n\nmutation suggestionActivate ($input: SuggestionActivate!) {\n suggestionActivate (input: $input) {\n ...suggestion\n }\n}',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(74449).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.suggestionActivate=d(t,"suggestionActivate")},22277:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"suggestionAdded"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"suggestionAdded"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"suggestion"},directives:[]}]}}]}}],loc:{start:0,end:110}};t.loc.source={body:'#import "./suggestionFragment.gql"\n\nsubscription suggestionAdded {\n suggestionAdded {\n ...suggestion\n }\n}',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(74449).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.suggestionAdded=d(t,"suggestionAdded")},74449:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"suggestion"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Suggestion"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"importance"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"message"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"image"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"actionLink"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"busy"},arguments:[],directives:[]}]}}],loc:{start:0,end:115}};n.loc.source={body:"fragment suggestion on Suggestion {\n id\n type\n importance\n label\n message\n image\n link\n actionLink\n busy\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.suggestion=o(n,"suggestion")},69298:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"suggestionRemoved"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"suggestionRemoved"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"suggestion"},directives:[]}]}}]}}],loc:{start:0,end:114}};t.loc.source={body:'#import "./suggestionFragment.gql"\n\nsubscription suggestionRemoved {\n suggestionRemoved {\n ...suggestion\n }\n}',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(74449).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.suggestionRemoved=d(t,"suggestionRemoved")},15676:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"suggestionUpdated"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"suggestionUpdated"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"suggestion"},directives:[]}]}}]}}],loc:{start:0,end:114}};t.loc.source={body:'#import "./suggestionFragment.gql"\n\nsubscription suggestionUpdated {\n suggestionUpdated {\n ...suggestion\n }\n}',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(74449).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.suggestionUpdated=d(t,"suggestionUpdated")},88694:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"suggestions"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"suggestions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"suggestion"},directives:[]}]}}]}}],loc:{start:0,end:95}};t.loc.source={body:'#import "./suggestionFragment.gql"\n\nquery suggestions {\n suggestions {\n ...suggestion\n }\n}',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(74449).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.suggestions=d(t,"suggestions")},60480:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"task"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"task"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"task"},directives:[]},{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"prompts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"prompt"},directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"views"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"component"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"defaultView"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:257}};t.loc.source={body:'#import "./taskFragment.gql"\n#import "../prompt/promptFragment.gql"\n\nquery task ($id: ID!) {\n task (id: $id) {\n ...task\n link\n prompts {\n ...prompt\n }\n views {\n id\n label\n icon\n component\n }\n defaultView\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(35638).definitions)),t.definitions=t.definitions.concat(o(i(46546).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.task=d(t,"task")},13502:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"taskChanged"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taskChanged"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"task"},directives:[]}]}}]}}],loc:{start:0,end:91}};t.loc.source={body:'#import "./taskFragment.gql"\n\nsubscription taskChanged {\n taskChanged {\n ...task\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(35638).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.taskChanged=d(t,"taskChanged")},35638:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"task"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Task"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"status"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"command"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"plugin"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logo"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"project"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]}]}}]}}],loc:{start:0,end:132}};n.loc.source={body:"fragment task on Task {\n id\n status\n name\n command\n description\n icon\n plugin {\n id\n logo\n }\n project {\n id\n }\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.task=o(n,"task")},4117:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"taskLogAdded"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taskLogAdded"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"taskLog"},directives:[]}]}}]}}],loc:{start:0,end:120}};t.loc.source={body:'#import "./taskLogFragment.gql"\n\nsubscription taskLogAdded ($id: ID!) {\n taskLogAdded (id: $id) {\n ...taskLog\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(28051).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.taskLogAdded=d(t,"taskLogAdded")},28051:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"taskLog"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TaskLog"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taskId"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"text"},arguments:[],directives:[]}]}}],loc:{start:0,end:55}};n.loc.source={body:"fragment taskLog on TaskLog {\n taskId\n type\n text\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.taskLog=o(n,"taskLog")},61048:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"taskLogs"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"taskLogs"},name:{kind:"Name",value:"task"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"logs"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"taskLog"},directives:[]}]}}]}}]}}],loc:{start:0,end:136}};t.loc.source={body:'#import "./taskLogFragment.gql"\n\nquery taskLogs ($id: ID!) {\n taskLogs: task(id: $id) {\n id\n logs {\n ...taskLog\n }\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(28051).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.taskLogs=d(t,"taskLogs")},98328:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"taskLogsClear"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taskLogsClear"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"task"},directives:[]}]}}]}}],loc:{start:0,end:112}};t.loc.source={body:'#import "./taskFragment.gql"\n\nmutation taskLogsClear ($id: ID!) {\n taskLogsClear (id: $id) {\n ...task\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(35638).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.taskLogsClear=d(t,"taskLogsClear")},99933:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"taskOpen"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taskOpen"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[]}]}}],loc:{start:0,end:53}};n.loc.source={body:"mutation taskOpen ($id: ID!) {\n taskOpen (id: $id)\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.taskOpen=o(n,"taskOpen")},30683:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"taskRestoreParameters"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taskRestoreParameters"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"prompt"},directives:[]}]}}]}}],loc:{start:0,end:139}};t.loc.source={body:'#import "../prompt/promptFragment.gql"\n\nmutation taskRestoreParameters ($id: ID!) {\n taskRestoreParameters (id: $id) {\n ...prompt\n }\n}',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(46546).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.taskRestoreParameters=d(t,"taskRestoreParameters")},33846:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"taskRun"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taskRun"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"task"},directives:[]}]}}]}}],loc:{start:0,end:100}};t.loc.source={body:'#import "./taskFragment.gql"\n\nmutation taskRun ($id: ID!) {\n taskRun (id: $id) {\n ...task\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(35638).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.taskRun=d(t,"taskRun")},25765:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"taskSaveParameters"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taskSaveParameters"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"prompt"},directives:[]}]}}]}}],loc:{start:0,end:133}};t.loc.source={body:'#import "../prompt/promptFragment.gql"\n\nmutation taskSaveParameters ($id: ID!) {\n taskSaveParameters (id: $id) {\n ...prompt\n }\n}',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(46546).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.taskSaveParameters=d(t,"taskSaveParameters")},33878:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"taskStop"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"taskStop"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"task"},directives:[]}]}}]}}],loc:{start:0,end:102}};t.loc.source={body:'#import "./taskFragment.gql"\n\nmutation taskStop ($id: ID!) {\n taskStop (id: $id) {\n ...task\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(35638).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.taskStop=d(t,"taskStop")},38173:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"tasks"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"tasks"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"task"},directives:[]}]}}]}}],loc:{start:0,end:72}};t.loc.source={body:'#import "./taskFragment.gql"\n\nquery tasks {\n tasks {\n ...task\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(35638).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.tasks=d(t,"tasks")},97337:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"version"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Version"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"current"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"latest"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"wanted"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"range"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"localPath"},arguments:[],directives:[]}]}}],loc:{start:0,end:80}};n.loc.source={body:"fragment version on Version {\n current\n latest\n wanted\n range\n localPath\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.version=o(n,"version")},29119:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"viewAdded"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewAdded"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"view"},directives:[]}]}}]}}],loc:{start:0,end:87}};t.loc.source={body:'#import "./viewFragment.gql"\n\nsubscription viewAdded {\n viewAdded {\n ...view\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(87953).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.viewAdded=d(t,"viewAdded")},85935:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"viewChanged"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewChanged"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"view"},directives:[]}]}}]}}],loc:{start:0,end:91}};t.loc.source={body:'#import "./viewFragment.gql"\n\nsubscription viewChanged {\n viewChanged {\n ...view\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(87953).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.viewChanged=d(t,"viewChanged")},87953:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"view"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"View"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"name"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"tooltip"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"badges"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"type"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"count"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"label"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"priority"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hidden"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"projectTypes"},arguments:[],directives:[]}]}}],loc:{start:0,end:145}};n.loc.source={body:"fragment view on View {\n id\n name\n icon\n tooltip\n badges {\n id\n type\n count\n label\n priority\n hidden\n }\n projectTypes\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.view=o(n,"view")},32445:function(e){var n={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"viewOpen"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewOpen"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[]}]}}],loc:{start:0,end:54}};n.loc.source={body:"mutation viewOpen ($id: ID!) {\n viewOpen (id: $id)\n}\n",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.viewOpen=o(n,"viewOpen")},21802:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"subscription",name:{kind:"Name",value:"viewRemoved"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"viewRemoved"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"view"},directives:[]}]}}]}}],loc:{start:0,end:91}};t.loc.source={body:'#import "./viewFragment.gql"\n\nsubscription viewRemoved {\n viewRemoved {\n ...view\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(87953).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.viewRemoved=d(t,"viewRemoved")},15710:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"views"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"views"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"view"},directives:[]}]}}]}}],loc:{start:0,end:72}};t.loc.source={body:'#import "./viewFragment.gql"\n\nquery views {\n views {\n ...view\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(87953).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.views=d(t,"views")},15433:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"widgetAdd"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"WidgetAddInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"widgetAdd"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"widget"},directives:[]}]}}]}}],loc:{start:0,end:129}};t.loc.source={body:'#import "./widgetFragment.gql"\n\nmutation widgetAdd ($input: WidgetAddInput!) {\n widgetAdd (input: $input) {\n ...widget\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(2570).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.widgetAdd=d(t,"widgetAdd")},65563:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"widgetConfigOpen"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"widgetConfigOpen"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"widget"},directives:[]}]}}]}}],loc:{start:0,end:122}};t.loc.source={body:'#import "./widgetFragment.gql"\n\nmutation widgetConfigOpen ($id: ID!) {\n widgetConfigOpen (id: $id) {\n ...widget\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(2570).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.widgetConfigOpen=d(t,"widgetConfigOpen")},34293:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"widgetConfigSave"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"widgetConfigSave"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"widget"},directives:[]}]}}]}}],loc:{start:0,end:122}};t.loc.source={body:'#import "./widgetFragment.gql"\n\nmutation widgetConfigSave ($id: ID!) {\n widgetConfigSave (id: $id) {\n ...widget\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(2570).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.widgetConfigSave=d(t,"widgetConfigSave")},68356:function(e){var n={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"widgetDefinition"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"WidgetDefinition"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"description"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"longDescription"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"link"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"screenshot"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"component"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"canAddMore"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"count"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"maxCount"},arguments:[],directives:[]}]}}],loc:{start:0,end:165}};n.loc.source={body:"fragment widgetDefinition on WidgetDefinition {\n id\n title\n description\n longDescription\n link\n icon\n screenshot\n component\n canAddMore\n count\n maxCount\n}",name:"GraphQL request",locationOffset:{line:1,column:1}};function i(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var t=e.type;"NamedType"===t.kind&&n.add(t.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){i(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){i(e,n)})),e.definitions&&e.definitions.forEach((function(e){i(e,n)}))}var t={};function a(e,n){for(var i=0;i0){var l=s;s=new Set,l.forEach((function(e){if(!r.has(e)){r.add(e);var n=t[e]||new Set;n.forEach((function(e){s.add(e)}))}}))}return r.forEach((function(n){var t=a(e,n);t&&i.definitions.push(t)})),i}(function(){n.definitions.forEach((function(e){if(e.name){var n=new Set;i(e,n),t[e.name.value]=n}}))})(),e.exports=n,e.exports.widgetDefinition=o(n,"widgetDefinition")},43091:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"widgetDefinitions"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"widgetDefinitions"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"widgetDefinition"},directives:[]}]}}]}}],loc:{start:0,end:120}};t.loc.source={body:'#import "./widgetDefinitionFragment.gql"\n\nquery widgetDefinitions {\n widgetDefinitions {\n ...widgetDefinition\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(68356).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.widgetDefinitions=d(t,"widgetDefinitions")},2570:function(e,n,i){var t={kind:"Document",definitions:[{kind:"FragmentDefinition",name:{kind:"Name",value:"widget"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Widget"}},directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"definition"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"id"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"title"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"icon"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"component"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"detailsComponent"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"canAddMore"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"hasConfigPrompts"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"minWidth"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"minHeight"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"maxWidth"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"maxHeight"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"openDetailsButton"},arguments:[],directives:[]}]}},{kind:"Field",name:{kind:"Name",value:"x"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"y"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"width"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"height"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"config"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"configured"},arguments:[],directives:[]},{kind:"Field",name:{kind:"Name",value:"prompts"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"prompt"},directives:[]}]}}]}}],loc:{start:0,end:343}};t.loc.source={body:'#import "../prompt/promptFragment.gql"\n\nfragment widget on Widget {\n id\n definition {\n id\n title\n icon\n component\n detailsComponent\n canAddMore\n hasConfigPrompts\n minWidth\n minHeight\n maxWidth\n maxHeight\n openDetailsButton\n }\n x\n y\n width\n height\n config\n configured\n prompts {\n ...prompt\n }\n}',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(46546).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.widget=d(t,"widget")},67822:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"widgetMove"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"input"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"WidgetMoveInput"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"widgetMove"},arguments:[{kind:"Argument",name:{kind:"Name",value:"input"},value:{kind:"Variable",name:{kind:"Name",value:"input"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"widget"},directives:[]}]}}]}}],loc:{start:0,end:132}};t.loc.source={body:'#import "./widgetFragment.gql"\n\nmutation widgetMove ($input: WidgetMoveInput!) {\n widgetMove (input: $input) {\n ...widget\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(2570).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.widgetMove=d(t,"widgetMove")},2537:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"widgetRemove"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"id"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ID"}}},directives:[]}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"widgetRemove"},arguments:[{kind:"Argument",name:{kind:"Name",value:"id"},value:{kind:"Variable",name:{kind:"Name",value:"id"}}}],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"widget"},directives:[]}]}}]}}],loc:{start:0,end:113}};t.loc.source={body:'#import "./widgetFragment.gql"\n\nmutation widgetRemove ($id: ID!) {\n widgetRemove(id: $id) {\n ...widget\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(2570).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.widgetRemove=d(t,"widgetRemove")},54781:function(e,n,i){var t={kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"widgets"},variableDefinitions:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"widgets"},arguments:[],directives:[],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"widget"},directives:[]}]}}]}}],loc:{start:0,end:80}};t.loc.source={body:'#import "./widgetFragment.gql"\n\nquery widgets {\n widgets {\n ...widget\n }\n}\n',name:"GraphQL request",locationOffset:{line:1,column:1}};var a={};function o(e){return e.filter((function(e){if("FragmentDefinition"!==e.kind)return!0;var n=e.name.value;return!a[n]&&(a[n]=!0,!0)}))}function r(e,n){if("FragmentSpread"===e.kind)n.add(e.name.value);else if("VariableDefinition"===e.kind){var i=e.type;"NamedType"===i.kind&&n.add(i.name.value)}e.selectionSet&&e.selectionSet.selections.forEach((function(e){r(e,n)})),e.variableDefinitions&&e.variableDefinitions.forEach((function(e){r(e,n)})),e.definitions&&e.definitions.forEach((function(e){r(e,n)}))}t.definitions=t.definitions.concat(o(i(2570).definitions));var s={};function l(e,n){for(var i=0;i0){var r=o;o=new Set,r.forEach((function(e){if(!a.has(e)){a.add(e);var n=s[e]||new Set;n.forEach((function(e){o.add(e)}))}}))}return a.forEach((function(n){var t=l(e,n);t&&i.definitions.push(t)})),i}(function(){t.definitions.forEach((function(e){if(e.name){var n=new Set;r(e,n),s[e.name.value]=n}}))})(),e.exports=t,e.exports.widgets=d(t,"widgets")},8771:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"about page"},[i("h1",[e._v(e._s(e.$t("org.vue.views.about.title")))]),i("p",{staticClass:"description",domProps:{innerHTML:e._s(e.$t("org.vue.views.about.description"))}}),i("blockquote",{staticClass:"quote",domProps:{textContent:e._s(e.$t("org.vue.views.about.quote"))}}),e._m(0),i("h2",[e._v(e._s(e.$t("org.vue.views.about.links")))]),i("div",{staticClass:"links vue-ui-grid default-gap"},[i("VueButton",{attrs:{href:"https://github.com/vuejs/vue-cli",target:"_blank"}},[e._v("Repository")]),i("VueButton",{attrs:{href:"https://cli.vuejs.org",target:"_blank"}},[e._v("Documentation")]),i("VueButton",{attrs:{href:"https://vuejs.org/v2/guide/",target:"_blank"}},[e._v("Vue.js Guide")]),i("VueButton",{attrs:{href:"https://vuejs.org/v2/api/",target:"_blank"}},[e._v("Vue.js API reference")]),i("VueButton",{attrs:{href:"https://forum.vuejs.org/",target:"_blank"}},[e._v("Vue.js Forums")]),i("VueButton",{attrs:{href:"https://chat.vuejs.org/",target:"_blank"}},[e._v("Vue.js Chat")])],1),i("div",{staticClass:"actions"},[i("VueButton",{staticClass:"primary big",attrs:{to:e.previousRoute,"left-icon":"arrow_back",label:e.$t("org.vue.views.about.back")}})],1)])},a=[function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("p",[e._v("- "),i("a",{attrs:{href:"https://github.com/Akryum",target:"_blank"}},[e._v("Guillaume Chau")])])}],o={metaInfo(){return{title:this.$t("org.vue.views.about.title")}},data(){return{previousRoute:{name:"home"}}},beforeRouteEnter(e,n,i){i((e=>{n&&(e.previousRoute=n.fullPath)}))}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,"74eeb262",null),d=l.exports},86848:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return u}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"app-loading"},[i("transition",{attrs:{name:"vue-ui-fade",appear:""}},[e.loading?i("VueLoadingIndicator",{staticClass:"primary"}):e._e()],1)],1)},a=[],o=i(14779),r=i.n(o),s={apollo:{loading:{query:r(),fetchPolicy:"cache-only"}}},l=s,d=i(47262),c=(0,d.Z)(l,t,a,!1,null,null,null),u=c.exports},92761:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ApolloQuery",{staticClass:"connection-status",attrs:{query:i(4961),"fetch-policy":"cache-only"},scopedSlots:e._u([{key:"default",fn:function(n){var i=n.result.data.connected;return[t("transition",{attrs:{duration:"1000"}},[i?e._e():t("div",{staticClass:"banner"},[t("div",{staticClass:"content disconnected"},[t("VueIcon",{staticClass:"medium",attrs:{icon:"cloud_off"}}),t("span",[e._v(e._s(e.$t("org.vue.components.connection-status.disconnected")))])],1),t("div",{staticClass:"content connected"},[t("VueIcon",{staticClass:"medium",attrs:{icon:"wifi"}}),t("span",[e._v(e._s(e.$t("org.vue.components.connection-status.connected")))])],1)])])]}}])})},a=[],o={clientState:!0},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,"7ba24086",null),d=l.exports},65027:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return v}});var t,a,o=i(57953),r=i(92216),s=i.n(r),l=i(6268),d=i.n(l),c={apollo:{locales:{query:s(),fetchPolicy:"no-cache",manual:!0,result({data:{locales:e}}){e.forEach(this.loadLocale)}},$subscribe:{localeAdded:{query:d(),result({data:e}){this.loadLocale(e.localeAdded)}}}},methods:{loadLocale(e){console.log(`[UI] Locale ${e.lang} updated with new strings`),(0,o.i)(e.lang,e.strings)}},render(){return null}},u=c,f=i(47262),m=(0,f.Z)(u,t,a,!1,null,null,null),v=m.exports},31350:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"not-found page"},[e.addonRouteTimout?[i("VueIcon",{staticClass:"huge",attrs:{icon:"cake"}}),i("h1",{staticClass:"title"},[e._v("Addon route taking too long to load")]),i("h2",{staticClass:"subtitle"},[e._v("The route may not exist")]),i("VueButton",{attrs:{to:{name:"home"}}},[e._v("Go home")])]:e.isAddonRoute?[i("VueLoadingIndicator",{staticClass:"accent big"})]:[i("VueIcon",{staticClass:"huge",attrs:{icon:"pets"}}),i("h1",{staticClass:"title"},[e._v("View not found")]),i("VueButton",{attrs:{to:{name:"home"}}},[e._v("Go home")])]],2)},a=[],o={name:"NotFound",data(){return{addonRouteTimout:!1}},computed:{isAddonRoute(){return this.$route.path.includes("/addon/")}},mounted(){this.isAddonRoute&&setTimeout((()=>{this.addonRouteTimout=!0}),5e3)}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,"144ede8a",null),d=l.exports},78794:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return g}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("transition",{attrs:{name:"vue-ui-fade"}},[e.progress?i("div",{staticClass:"loading-screen",class:{loading:e.loading}},[i("VueLoadingIndicator",{staticClass:"primary big overlay fixed"},[i("div",{staticClass:"content"},[e.progress.error?i("div",{staticClass:"error"},[i("VueIcon",{staticClass:"huge",attrs:{icon:"error"}}),i("div",[e._v(e._s(e.progress.error))]),i("div",{staticClass:"actions"},[i("VueButton",{attrs:{"icon-left":"close",label:e.$t("org.vue.components.progress-screen.close")},on:{click:function(n){return e.close()}}})],1)],1):[e.statusMessage?i("div",{staticClass:"status"},[e._v(" "+e._s(e.statusMessage)+" ")]):e._e(),i("div",{staticClass:"secondary-info"},[e.progress.info?i("div",{staticClass:"info",domProps:{innerHTML:e._s(e.ansiColors(e.progress.info))}}):e._e(),-1!==e.progress.progress?i("VueLoadingBar",{attrs:{value:e.progress.progress}}):e._e(),e.debug?i("div",{staticClass:"debug"},[i("pre",[e._v(e._s(e.debug))])]):e._e()],1)]],2)])],1):e._e()])},a=[],o=i(44059),r=i(60393),s=i.n(r),l=i(87843),d=i.n(l),c=i(34592),u=i.n(c),f={props:{progressId:{type:String,required:!0}},data(){return{progress:null}},apollo:{progress:{query:s(),variables(){return{id:this.progressId}},fetchPolicy:"network-only",subscribeToMore:[{document:d(),variables(){return{id:this.progressId}},updateQuery:(e,{subscriptionData:n})=>({progress:n.data.progressChanged})},{document:u(),variables(){return{id:this.progressId}},updateQuery:()=>({progress:null})}]}},computed:{loading(){return this.progress&&!this.progress.error},statusMessage(){if(!this.progress)return null;const{status:e}=this.progress;let n;if(e){const i={};if(this.progress.args)for(let e=0,n=this.progress.args.length;ee.favorite&&(!this.projectCurrent||this.projectCurrent.id!==e.id))):[]},recentProjects(){return this.projects?this.projects.filter((e=>!e.favorite&&(!this.projectCurrent||this.projectCurrent.id!==e.id))).sort(((e,n)=>n.openDate-e.openDate)).slice(0,3):[]}},methods:{async openProject(e){this.$bus("quickOpenProject",e),await this.$apollo.mutate({mutation:u(),variables:{id:e.id}}),await(0,o.MQ)()},async toggleCurrentFavorite(){this.projectCurrent&&await this.$apollo.mutate({mutation:m(),variables:{id:this.projectCurrent.id,favorite:this.projectCurrent.favorite?0:1}})},async openInEditor(e){await this.$apollo.mutate({mutation:p(),variables:{input:{file:e.path}}})}}},k=g,b=i(47262),S=(0,b.Z)(k,t,a,!1,null,"46e8ea3e",null),w=S.exports},59760:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return y}});var t=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"status-bar"},[e.showLogs?t("LoggerView",{on:{close:function(n){e.showLogs=!1}}}):e._e(),t("div",{staticClass:"content"},[t("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.status-bar.project.tooltip"),expression:"$t('org.vue.components.status-bar.project.tooltip')"}],staticClass:"section action current-project",on:{click:function(n){return e.onProjectClick()}}},[t("VueIcon",{attrs:{icon:"home"}}),e.projectCurrent?e._e():t("span",{staticClass:"label"},[e._v(e._s(e.$t("org.vue.components.status-bar.project.empty")))])],1),t("ApolloQuery",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.status-bar.path.tooltip"),expression:"$t('org.vue.components.status-bar.path.tooltip')"}],staticClass:"section current-path",attrs:{query:i(77433)},nativeOn:{click:function(n){return e.onCwdClick()}},scopedSlots:e._u([{key:"default",fn:function(n){var i=n.result.data;return[t("VueIcon",{attrs:{icon:"folder"}}),i?t("span",[e._v(e._s(i.cwd))]):e._e()]}}])},[t("ApolloSubscribeToMore",{attrs:{document:i(95108),"update-query":function(e,n){var i=n.subscriptionData;return{cwd:i.data.cwd}}}})],1),t("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.status-bar.log.tooltip"),expression:"$t('org.vue.components.status-bar.log.tooltip')"}],staticClass:"section action console-log",on:{click:function(n){return e.onConsoleClick()}}},[t("VueIcon",{attrs:{icon:"dvr"}}),t("transition-group",{staticClass:"last-message-container",attrs:{name:"slide-up",duration:"600",tag:"div"}},[e.consoleLogLast?t("LoggerMessage",{key:e.consoleLogLast.id,staticClass:"last-message",attrs:{message:e.consoleLogLast}}):t("div",{key:"__empty",staticClass:"last-message no-log"},[e._v(" "+e._s(e.$t("org.vue.components.status-bar.log.empty"))+" ")])],1)],1),e.enableDarkModeButton?t("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.status-bar.dark-mode"),expression:"$t('org.vue.components.status-bar.dark-mode')"}],staticClass:"section action dark-mode",on:{click:function(n){return e.toggleDarkMode()}}},[t("VueIcon",{attrs:{icon:"invert_colors"}})],1):e._e(),t("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.status-bar.report-bug"),expression:"$t('org.vue.components.status-bar.report-bug')"}],staticClass:"section action bug-report",on:{click:function(n){return e.onBugReportClick()}}},[t("VueIcon",{attrs:{icon:"bug_report"}})],1),t("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.status-bar.translate"),expression:"$t('org.vue.components.status-bar.translate')"}],staticClass:"section action translate",on:{click:function(n){return e.onTranslateClick()}}},[t("VueIcon",{attrs:{icon:"g_translate"}})],1),t("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.status-bar.reset-plugin-api"),expression:"$t('org.vue.components.status-bar.reset-plugin-api')"}],staticClass:"section action reset-plugin-api",on:{click:function(n){return e.resetPluginApi()}}},[t("VueIcon",{attrs:{icon:"cached"}})],1)],1)],1)},a=[],o=i(43146),r=i.n(o),s=i(30070),l=i.n(s),d=i(97939),c=i.n(d),u=i(16493),f=i.n(u),m=i(24324),v=i.n(m),p=i(16343),h=i(6722);let g;var k={clientState:!0,data(){return{showLogs:!1,consoleLogLast:null,enableDarkModeButton:null==(0,h.t)()}},apollo:{projectCurrent:r(),consoleLogLast:l(),$subscribe:{consoleLogAdded:{query:c(),result({data:e}){this.consoleLogLast=e.consoleLogAdded}}}},methods:{onProjectClick(){if(this.$emit("project"),"project-select"===this.$route.name)this.$router.push(g||{name:"project-home"});else{if("project-create"===this.$route.name)g=null;else{const{name:e,params:n,query:i}=this.$route;g={name:e,params:n,query:i}}this.$router.push({name:"project-select"})}},onCwdClick(){this.$emit("cwd")},onConsoleClick(){this.$emit("console"),this.showLogs=!this.showLogs},onBugReportClick(){const e=window.open("https://new-issue.vuejs.org/?repo=vuejs/vue-cli","_blank");e.focus()},onTranslateClick(){const e=window.open("https://cli.vuejs.org/dev-guide/ui-localization.html","_blank");e.focus()},async applyDarkMode(e){localStorage.setItem("vue-ui-dark-mode",e.toString()),await this.$apollo.mutate({mutation:f(),variables:{enabled:e}})},toggleDarkMode(){this.applyDarkMode(!this.darkMode)},async resetPluginApi(){await this.$apollo.mutate({mutation:v()}),await(0,p.MQ)()}}},b=k,S=i(47262),w=(0,S.Z)(b,t,a,!1,null,"df9bd38a",null),y=w.exports},58373:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return l}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"top-bar"},[i("portal-target",{staticClass:"title",attrs:{name:"top-title"}},[e._v("Vue")]),i("AppLoading"),i("div",{staticClass:"vue-ui-spacer"}),i("SuggestionBar"),i("portal-target",{staticClass:"actions",attrs:{name:"top-actions"}})],1)},a=[],o=i(47262),r={},s=(0,o.Z)(r,t,a,!1,null,"68cd19b0",null),l=s.exports},52248:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return e.component?i(e.component,{tag:"component"}):e.timeout?i("div",{staticClass:"vue-ui-empty"},[i("VueIcon",{staticClass:"big",attrs:{icon:"cake"}}),i("div",{staticClass:"timeout-title"},[e._v(" "+e._s(e.$t("org.vue.components.client-addon-component.timeout"))+" ")]),i("div",{staticClass:"timeout-info"},[e._v(" "+e._s(e.$t("org.vue.components.client-addon-component.timeout-info"))+" ")])],1):i("div",{staticClass:"loading"},[i("VueLoadingIndicator")],1)},a=[],o={props:{name:{type:String,default:null}},data(){return{component:null,timeout:!1}},watch:{name:{handler:"updateComponent",immediate:!0}},methods:{async updateComponent(){setTimeout((()=>{this.component||(this.timeout=!0)}),5e3),this.component=await ClientAddonApi.awaitComponent(this.name)}}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,"2b95752e",null),d=l.exports},750:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return m}});var t,a,o=i(95785),r=i.n(o),s=i(59001),l=i.n(s),d={apollo:{clientAddons:{query:r(),fetchPolicy:"no-cache",manual:!0,result({data:{clientAddons:e},stale:n}){n||(e.forEach(this.loadAddon),this.$_lastRead=Date.now())}},$subscribe:{clientAddonAdded:{query:l(),result({data:e}){this.$_lastRead&&Date.now()-this.$_lastRead>1e3&&this.loadAddon(e.clientAddonAdded)}}}},created(){this.$_lastRead=null},methods:{loadAddon(e){console.log(`[UI] Loading client addon ${e.id} (${e.url})...`);const n=document.createElement("script");n.setAttribute("src",e.url),document.body.appendChild(n)}},render(){return null}},c=d,u=i(47262),f=(0,u.Z)(c,t,a,!1,null,null,null),m=f.exports},60963:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{directives:[{name:"tooltip",rawName:"v-tooltip.right",value:e.$t(e.configuration.description),expression:"$t(configuration.description)",modifiers:{right:!0}}],staticClass:"configuration-item list-item",class:{selected:e.selected}},[i("div",{staticClass:"content"},[i("ItemLogo",{attrs:{image:e.configuration.icon||e.configuration.plugin&&e.configuration.plugin.logo,"fallback-icon":"settings_applications"}}),i("ListItemInfo",{attrs:{name:e.configuration.name,description:e.$t(e.configuration.description),selected:e.selected}})],1)])},a=[],o={props:{configuration:{type:Object,required:!0},selected:{type:Boolean,default:!1}}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,"6ca068b0",null),d=l.exports},7591:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return f}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"configuration-tab"},[i("PromptsList",{attrs:{prompts:e.visiblePrompts},on:{answer:e.answerPrompt}})],1)},a=[],o=i(40888),r=i(54968),s=i.n(r),l={mixins:[(0,o.Z)({field:"tab",query:s(),variables(){return{id:this.configuration.id}},updateQuery(e,n){const i={};for(const t of n){const e=i[t.tabId]||(i[t.tabId]=[]);e.push(t)}for(const t in i)e.configuration.tabs.find((e=>e.id===t)).prompts=i[t]}})],props:{configuration:{type:Object,required:!0},tab:{type:Object,required:!0}}},d=l,c=i(47262),u=(0,c.Z)(d,t,a,!1,null,null,null),f=u.exports},27194:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return p}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"project-configuration-details"},[e.configuration?[e.configuration.tabs.length>1?i("div",{staticClass:"tabs"},[i("VueGroup",{staticClass:"tabs-selector",model:{value:e.currentTab,callback:function(n){e.currentTab=n},expression:"currentTab"}},e._l(e.configuration.tabs,(function(n){return i("VueGroupButton",{key:n.id,attrs:{value:n.id,"icon-left":n.icon,label:e.$t(n.label)}})})),1)],1):e._e(),i("div",{staticClass:"content"},e._l(e.configuration.tabs,(function(n){return i("ConfigurationTab",{directives:[{name:"show",rawName:"v-show",value:n.id===e.currentTab,expression:"tab.id === currentTab"}],key:n.id,attrs:{configuration:e.configuration,tab:n},on:{"has-changes":function(i){return e.tabsHaveChanges[n.id]=i}}})})),1)]:i("VueLoadingIndicator",{staticClass:"loading"}),i("div",{staticClass:"actions-bar"},[e.configuration&&e.configuration.link?i("VueButton",{staticClass:"big flat success",attrs:{"icon-right":"open_in_new",label:e.$t("org.vue.views.project-configuration-details.actions.more-info"),href:e.configuration.link,target:"_blank"}}):e._e(),i("div",{staticClass:"vue-ui-spacer"}),i("VueButton",{staticClass:"big",attrs:{disabled:!e.hasPromptsChanged,"icon-left":"cancel",label:e.$t("org.vue.views.project-configuration-details.actions.cancel")},on:{click:function(n){return e.cancel()}}}),e.configuration&&!e.hasPromptsChanged?i("VueButton",{staticClass:"big primary",attrs:{"icon-left":"refresh",label:e.$t("org.vue.views.project-configuration-details.actions.refresh")},on:{click:function(n){return e.refetch()}}}):i("VueButton",{staticClass:"primary big",attrs:{"icon-left":"save",label:e.$t("org.vue.views.project-configuration-details.actions.save")},on:{click:function(n){return e.save()}}})],1)],2)},a=[],o=i(54968),r=i.n(o),s=i(26724),l=i.n(s),d=i(95289),c=i.n(d),u={metaInfo(){return{title:this.configuration&&`${this.configuration.name} - ${this.$t("org.vue.views.project-configurations.title")}`}},props:{id:{type:String,required:!0}},data(){return{configuration:null,currentTab:"__default",tabsHaveChanges:{}}},apollo:{configuration:{query:r(),variables(){return{id:this.id}},async result({data:e,loading:n}){!this.$_init&&!n&&e&&e.configuration&&(this.$_init=!0,this.tabsHaveChanges=e.configuration.tabs.reduce(((e,n)=>(e[n.id]=!1,e)),{}),await this.$nextTick(),this.currentTab=e.configuration.tabs[0].id)}}},computed:{hasPromptsChanged(){for(const e in this.tabsHaveChanges)if(this.tabsHaveChanges[e])return!0;return!1}},watch:{id:"init"},created(){this.init()},methods:{init(e){this.currentTab="__default",this.configuration=null,this.$_init=!1},async cancel(){await this.$apollo.mutate({mutation:c(),variables:{id:this.id}}),this.refetch()},async save(){await this.$apollo.mutate({mutation:l(),variables:{id:this.id}}),this.refetch()},refetch(){this.$apollo.queries.configuration.refetch()}}},f=u,m=i(47262),v=(0,m.Z)(f,t,a,!1,null,"54636a5c",null),p=v.exports},41882:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return m}});var t=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"project-configurations page"},[t("ContentView",{staticClass:"limit-width",attrs:{title:e.$t("org.vue.views.project-configurations.title")}},[t("ApolloQuery",{staticClass:"fill-height",attrs:{query:i(81350)},scopedSlots:e._u([{key:"default",fn:function(n){var i=n.result,a=i.data,o=i.loading;return[!o||a&&a.configurations?a?t("NavContent",{staticClass:"configurations",attrs:{items:e.generateItems(a.configurations)},scopedSlots:e._u([{key:"default",fn:function(e){var n=e.item,i=e.selected;return t("ConfigurationItem",{attrs:{configuration:n.configuration,selected:i}})}}],null,!0)},[t("div",{staticClass:"list-header",attrs:{slot:"before"},slot:"before"},[t("VueInput",{staticClass:"search round",attrs:{"icon-left":"search"},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1)]):e._e():t("VueLoadingIndicator",{staticClass:"overlay"})]}}])})],1)],1)},a=[],o=i(13617),r=i(71336),s=i(81350),l=i.n(s),d={mixins:[(0,o.Z)({baseRoute:{name:"project-configurations"}})],metaInfo(){return{title:this.$t("org.vue.views.project-configurations.title")}},data(){return{search:""}},bus:{quickOpenProject(e){this.$apollo.getClient().writeQuery({query:l(),data:{configurations:null}})}},methods:{generateItems(e){if(!e)return[];const n=(0,r.C)(this.search);return e.filter((e=>!n||e.name.match(n)||e.description.match(n))).map((e=>({route:{name:"project-configuration-details",params:{id:e.id}},configuration:e})))}}},c=d,u=i(47262),f=(0,u.Z)(c,t,a,!1,null,"0e341be2",null),m=f.exports},66571:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"content-view"},[e.title?i("portal",{attrs:{to:"top-title"}},[e._v(e._s(e.title))]):e._e(),i("portal",{attrs:{to:"top-actions"}},[e._t("actions")],2),i("div",{staticClass:"content"},[i("div",{staticClass:"wrapper"},[e._t("default")],2)])],1)},a=[],o={props:{title:{type:String,default:null}}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,"18683bcf",null),d=l.exports},66898:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return c}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"item-logo",class:{selected:e.selected,loaded:e.loaded,error:e.error,vuejs:e.image&&e.image.includes("vuejs")}},[i("div",{staticClass:"wrapper"},[e.selected?i("VueIcon",{attrs:{icon:"done"}}):e.displayImage?i("img",{key:e.imageUrl,staticClass:"image",attrs:{src:e.imageUrl},on:{load:function(n){e.loaded=!0},error:function(n){e.error=!0}}}):i("VueIcon",{attrs:{icon:e.error||!e.image?e.fallbackIcon:e.image}})],1),e.displayImage&&e.colorBullet?i("div",{staticClass:"color-bullet"}):e._e()])},a=[],o=i(77117),r={props:{image:{type:String,default:"widgets"},fallbackIcon:{type:String,default:"image"},selected:{type:Boolean,default:!1},colorBullet:{type:Boolean,default:!1}},data(){return{loaded:!1,error:!1}},computed:{isMaterialIcon(){return/^[a-z0-9_]+$/.test(this.image)},displayImage(){return!this.isMaterialIcon&&!this.error},imageUrl(){return(0,o.J)(this.image)}},watch:{image:"reset",selected:"reset"},methods:{reset(){this.loaded=!1,this.error=!1}}},s=r,l=i(47262),d=(0,l.Z)(s,t,a,!1,null,"9ee9675a",null),c=d.exports},61418:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t,a,o={functional:!0,render(e,{props:n,data:i}){return e("div",i.scopedSlots.default({list:n.list.filter(n.filter)}))}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,null,null),d=l.exports},10596:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"list-item-info",class:{selected:e.selected}},[i("div",{staticClass:"name"},[e._t("name",(function(){return[i("span",{domProps:{innerHTML:e._s(e.ansiColors(e.name))}})]}))],2),e.description||e.link||e.showDescription?i("div",{staticClass:"description"},[e._t("description",(function(){return[i("span",{domProps:{innerHTML:e._s(e.ansiColors(e.description))}})]})),e.link?i("a",{staticClass:"more-info",attrs:{href:e.link,target:"_blank"},on:{click:function(e){return e.stopPropagation(),function(){}.apply(null,arguments)}}},[i("VueIcon",{staticClass:"medium top",attrs:{icon:"open_in_new"}}),e._v(" "+e._s(e.$t("org.vue.components.list-item-info.more-info"))+" ")],1):e._e()],2):e._e()])},a=[],o={props:{description:{type:String,default:""},link:{type:String,default:null},name:{type:String,default:null},selected:{type:Boolean,default:!1},showDescription:{type:Boolean,default:!1}}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,"4001a578",null),d=l.exports},27164:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t,a,o={functional:!0,render(e,{props:n,data:i}){return e("div",i.scopedSlots.default({list:n.list.slice().sort(n.compare)}))}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,null,null),d=l.exports},43666:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"nav-content"},[i("NavList",{attrs:{items:e.items},scopedSlots:e._u([{key:"default",fn:function(n){return[e._t("default",null,null,n)]}}],null,!0)},[e._t("before",null,{slot:"before"}),e._t("after",null,{slot:"after"})],2),i("div",{staticClass:"content vue-ui-disable-scroll"},[i("router-view")],1)],1)},a=[],o={props:{items:{type:Array,required:!0}}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,"4f974f94",null),d=l.exports},47975:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return c}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"nav-list vue-ui-disable-scroll"},[i("div",{staticClass:"content"},[e._t("before"),e._l(e.items,(function(n){return i("div",{key:n.id,on:{click:function(i){e.currentRoute=n.route}}},[e._t("default",null,{item:n,selected:n.route===e.currentRoute})],2)})),e._t("after")],2)])},a=[],o=i(66208),r={props:{items:{type:Array,required:!0}},computed:{currentRoute:{get(){const e=this.$route,n=this.items.find((n=>(0,o.t)(e,this.$router.resolve(n.route).route)));return n&&n.route},set(e){(0,o.m)(this.$route,e)||this.$router.push(e)}}}},s=r,l=i(47262),d=(0,l.Z)(s,t,a,!1,null,"4e81b1ea",null),c=d.exports},70500:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"step-wizard",class:{"hide-tabs":e.hideTabs}},[i("div",{staticClass:"shell"},[i("div",{staticClass:"header"},[i("div",{staticClass:"content"},[e.title?i("div",{staticClass:"title"},[e._v(e._s(e.title))]):e._e()])]),i("VueTabs",e._g(e._b({ref:"tabs",staticClass:"main-tabs",attrs:{"group-class":"accent"}},"VueTabs",e.$attrs,!1),e.$listeners),[e._t("default",null,{next:e.next,previous:e.previous})],2)],1)])},a=[],o={inheritAttrs:!1,props:{hideTabs:{type:Boolean,default:!1},title:{type:String,default:null}},methods:{next(){const e=this.$refs.tabs;e.activateChild(e.activeChildIndex+1)},previous(){const e=this.$refs.tabs;e.activateChild(e.activeChildIndex-1)}}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,"4f685358",null),d=l.exports},88819:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return v}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"terminal-view card"},[e.toolbar?i("div",{staticClass:"pane-toolbar"},[i("VueIcon",{attrs:{icon:"dvr"}}),i("div",{staticClass:"title"},[e._v(e._s(e.title))]),i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.terminal-view.buttons.clear"),expression:"$t('org.vue.components.terminal-view.buttons.clear')"}],staticClass:"icon-button flat",attrs:{"icon-left":"delete_forever"},on:{click:function(n){e.clear(),e.$emit("clear")}}}),i("VueIcon",{staticClass:"separator",attrs:{icon:"lens"}}),i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.terminal-view.buttons.content-copy"),expression:"$t('org.vue.components.terminal-view.buttons.content-copy')"}],staticClass:"icon-button flat",attrs:{"icon-left":"content_copy"},on:{click:function(n){return e.copyContent()}}}),i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.terminal-view.buttons.scroll"),expression:"$t('org.vue.components.terminal-view.buttons.scroll')"}],staticClass:"icon-button flat",attrs:{"icon-left":"subdirectory_arrow_left"},on:{click:function(n){return e.scrollToBottom()}}})],1):e._e(),i("div",{staticClass:"view"},[i("div",{ref:"render",staticClass:"xterm-render"})]),e.autoSize?i("resize-observer",{on:{notify:e.fit}}):e._e()],1)},a=[],o=i(23330),r=i(22638),s=i(32210);const l={foreground:"#2c3e50",background:"#fff",cursor:"rgba(0, 0, 0, .4)",selection:"rgba(0, 0, 0, 0.3)",black:"#000000",red:"#e83030",brightRed:"#e83030",green:"#42b983",brightGreen:"#42b983",brightYellow:"#ea6e00",yellow:"#ea6e00",magenta:"#e83030",brightMagenta:"#e83030",cyan:"#03c2e6",brightBlue:"#03c2e6",brightCyan:"#03c2e6",blue:"#03c2e6",white:"#d0d0d0",brightBlack:"#808080",brightWhite:"#ffffff"},d={...l,foreground:"#fff",background:"#1d2935",cursor:"rgba(255, 255, 255, .4)",selection:"rgba(255, 255, 255, 0.3)",magenta:"#e83030",brightMagenta:"#e83030"};var c={clientState:!0,props:{cols:{type:Number,required:!0},rows:{type:Number,required:!0},content:{type:String,default:void 0},autoSize:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},toolbar:{type:Boolean,default:!1},title:{type:String,default:null},openLinks:{type:Boolean,default:!1}},computed:{theme(){return this.darkMode?d:l}},watch:{cols(e){this.$_terminal.resize(e,this.rows)},rows(e){this.$_terminal.resize(this.cols,e)},content:"setContent",darkMode(e,n){"undefined"===typeof n?this.initTerminal():this.$_terminal&&this.$_terminal.setOption("theme",this.theme)}},beforeDestroy(){this.$_terminal.dispose()},methods:{initTerminal(){const e=this.$_terminal=new o.Terminal({cols:this.cols,rows:this.rows,theme:this.theme,...this.options}),n=new r.FitAddon,i=new s.WebLinksAddon(this.handleLink);this.$_fitAddon=n,e.loadAddon(n),e.loadAddon(i),e.open(this.$refs.render),e.element.addEventListener("blur",(()=>this.$emit("blur"))),e.element.addEventListener("focus",(()=>this.$emit("focus"))),this.autoSize&&this.$nextTick(this.fit)},setContent(e,n=!0){-1===e.indexOf("\n")?"string"===typeof e?this.$_terminal[n?"writeln":"write"](e):this.$_terminal.writeln(""):e.split("\n").forEach((e=>this.setContent(e)))},addLog(e){this.setContent(e.text,"stdout"===e.type)},clear(){this.$_terminal.clear()},scrollToBottom(){this.$_terminal.scrollToBottom()},copyContent(){const e=this.$_terminal.textarea;if(!e)return;const n=e.value,i=!this.$_terminal.hasSelection();try{i&&this.$_terminal.selectAll();const t=this.$_terminal.getSelection();e.value=t,e.select(),document.execCommand("copy")}finally{e.value=n,i&&this.$_terminal.clearSelection()}},handleLink(e,n){this.openLinks&&window.open(n,"_blank"),this.$emit("link",n)},async fit(){const e=this.$_terminal;e.element.style.display="none",await this.$nextTick(),this.$_fitAddon.fit(),e.element.style.display="",e.refresh(0,e.rows-1)},focus(){this.$_terminal.focus()},blur(){this.$_terminal.blur()}}},u=c,f=i(47262),m=(0,f.Z)(u,t,a,!1,null,"69fa52cb",null),v=m.exports},94121:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return u}});var t=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"project-dashboard page",class:{customizing:e.customizeMode,"widget-details-shown":e.injected.isWidgetDetailsShown}},[t("ContentView",{attrs:{title:e.$t("org.vue.views.project-dashboard.title")}},[t("template",{slot:"actions"},[e.customizeMode?t("VueButton",{staticClass:"primary round",attrs:{"icon-left":"done",label:e.$t("org.vue.views.project-dashboard.done")},on:{click:function(n){e.customizeMode=!1}}}):t("VueButton",{staticClass:"primary round",attrs:{"icon-left":"edit",label:e.$t("org.vue.views.project-dashboard.cutomize")},on:{click:function(n){e.customizeMode=!0}}})],1),t("div",{staticClass:"panes fill-height"},[t("ApolloQuery",{ref:"widgets",staticClass:"widgets",attrs:{query:i(54781)},scopedSlots:e._u([{key:"default",fn:function(n){var i=n.result,a=i.data,o=i.loading;return t("div",{staticClass:"widgets-wrapper"},[!o||a&&a.widgets?a?e._l(a.widgets,(function(n){return t("Widget",{key:n.id,attrs:{widget:n,"customize-mode":e.customizeMode}})})):e._e():t("VueLoadingIndicator",{staticClass:"overlay"})],2)}}])}),t("transition",{attrs:{name:"sidepane"}},[e.customizeMode?t("WidgetAddPane",{on:{close:function(n){e.customizeMode=!1}}}):e._e()],1)],1)],2)],1)},a=[];function o(){return{mounted(){window.addEventListener("resize",this.onWindowResize),this.onWindowResize()},beforeDestroy(){window.removeEventListener("resize",this.onWindowResize)}}}const r=8;var s={provide(){return{dashboard:this.injected}},mixins:[o()],metaInfo(){return{title:this.$t("org.vue.views.project-dashboard.title")}},data(){return{customizeMode:!1,injected:{width:0,height:0,left:0,top:0,isWidgetDetailsShown:!1}}},methods:{onWindowResize(){const e=this.$refs.widgets.$el;if(!e)return;const n=e.getBoundingClientRect();this.injected.width=n.width-2*r,this.injected.height=n.height-2*r,this.injected.left=n.left,this.injected.top=n.top}}},l=s,d=i(47262),c=(0,d.Z)(l,t,a,!1,null,"72cde023",null),u=c.exports},96302:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return V}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("transition",{attrs:{duration:"150",appear:""}},[i("div",{staticClass:"widget",class:{customizing:e.customizeMode,moving:e.moveState,resizing:e.resizeState,selected:e.isSelected,"details-shown":e.showDetails,details:e.details}},[i("div",{ref:"shell",staticClass:"shell",style:e.shellStyle||!e.details&&e.mainStyle},[i("div",{staticClass:"wrapper card"},[i("div",{staticClass:"content-wrapper"},[i("div",{staticClass:"header"},[i("div",{staticClass:"title"},[e._v(e._s(e.injected.customTitle||e.$t(e.widget.definition.title)))]),e.widget.configured?e._l(e.visibleHeaderActions,(function(n){return i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t(n.tooltip),expression:"$t(action.tooltip)"}],key:n.id,staticClass:"icon-button flat primary",attrs:{"icon-left":n.icon,disabled:n.disabled},on:{click:function(e){return n.onCalled()}}})})):e._e(),e.widget.definition.hasConfigPrompts?i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.widget.configure"),expression:"$t('org.vue.components.widget.configure')"}],staticClass:"icon-button flat primary",attrs:{"icon-left":"settings"},on:{click:function(n){return e.openConfig()}}}):e._e(),e.details?i("VueButton",{staticClass:"icon-button flat primary",attrs:{"icon-left":"close"},on:{click:function(n){return e.$emit("close")}}}):e.widget.definition.openDetailsButton?i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.widget.open-details"),expression:"$t('org.vue.components.widget.open-details')"}],staticClass:"icon-button flat primary",attrs:{"icon-left":"zoom_out_map"},on:{click:function(n){return e.openDetails()}}}):e._e()],2),e.widget.configured?i("div",{staticClass:"content"},[i("ClientAddonComponent",{staticClass:"view",attrs:{name:e.component}})],1):i("div",{staticClass:"content not-configured"},[i("VueIcon",{staticClass:"icon huge",attrs:{icon:"settings"}}),i("VueButton",{attrs:{label:e.$t("org.vue.components.widget.configure")},on:{click:function(n){return e.openConfig()}}})],1)]),e.customizeMode?i("div",{staticClass:"customize-overlay",on:{mousedown:e.onMoveStart,click:function(n){return e.select()}}},[i("div",{staticClass:"definition-chip"},[i("ItemLogo",{staticClass:"icon",attrs:{image:e.widget.definition.icon,"fallback-icon":"widgets"}}),i("div",{staticClass:"title"},[e._v(e._s(e.injected.customTitle||e.$t(e.widget.definition.title)))])],1),i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.widget.remove"),expression:"$t('org.vue.components.widget.remove')"}],staticClass:"remove-button primary flat icon-button",attrs:{"icon-left":"close"},on:{click:function(n){return n.stopPropagation(),e.remove()}},nativeOn:{mousedown:function(e){e.stopPropagation()}}}),e.showResizeHandle?e._l(e.resizeHandles,(function(n){return i("div",{key:n,staticClass:"resize-handle",class:[n],on:{mousedown:function(i){return i.stopPropagation(),e.onResizeStart(i,n)}}})})):e._e()],2):e._e()])]),e.moveState?i("div",{staticClass:"move-ghost",style:e.moveGhostStyle},[i("div",{staticClass:"backdrop"})]):e._e(),e.resizeState?i("div",{staticClass:"resize-ghost",style:e.resizeGhostStyle},[i("div",{staticClass:"backdrop"})]):e._e(),e.showConfig?i("VueModal",{staticClass:"medium",attrs:{title:e.$t("org.vue.components.widget.configure")},on:{close:function(n){e.showConfig=!1}}},[i("div",{staticClass:"default-body"},[e.loadingConfig?i("VueLoadingIndicator",{staticClass:"big accent"}):i("PromptsList",{attrs:{prompts:e.visiblePrompts},on:{answer:e.answerPrompt}})],1),i("div",{staticClass:"actions",attrs:{slot:"footer"},slot:"footer"},[i("VueButton",{staticClass:"primary big",attrs:{label:e.$t("org.vue.components.widget.save"),disabled:e.loadingConfig},on:{click:function(n){return e.saveConfig()}}})],1)]):e._e(),!e.details&&e.showDetails?i("WidgetDetailsView",{attrs:{widget:e.widget,"shell-origin":e.shellOrigin},on:{close:function(n){return e.closeDetails()}}}):e._e()],1)])},a=[],o=i(85416),r=i(40888);function s({gridSize:e,field:n}){return{computed:{mainStyle(){return this.moveState?{...this.getPositionStyle(this.moveState.pxX,this.moveState.pxY),...this.getSizeStyle()}:this.resizeState?{...this.getPositionStyle(this.resizeState.pxX,this.resizeState.pxY),...this.getSizeStyle(this.resizeState.pxWidth,this.resizeState.pxHeight)}:{...this.getPositionStyle(e*this[n].x,e*this[n].y),...this.getSizeStyle()}},moveGhostStyle(){return{...this.getPositionStyle(e*this.moveState.x,e*this.moveState.y),...this.getSizeStyle()}},resizeGhostStyle(){return{...this.getPositionStyle(e*this.resizeState.x,e*this.resizeState.y),...this.getSizeStyle(e*this.resizeState.width,e*this.resizeState.height)}}},methods:{getPositionStyle(e,n){return{left:`${e}px`,top:`${n}px`}},getSizeStyle(i,t){return{width:`${i||e*this[n].width}px`,height:`${t||e*this[n].height}px`}}}}}function l({gridSize:e,field:n,zoom:i}){return{data(){return{moveState:null}},beforeDestroy(){this.removeMoveListeners()},methods:{removeMoveListeners(){window.removeEventListener("mousemove",this.onMoveUpdate),window.removeEventListener("mouseup",this.onMoveEnd)},updateMoveState(t){const a=t.clientX-this.$_initalMousePosition.x,o=t.clientY-this.$_initalMousePosition.y,r=this[n].x*e+a/i,s=this[n].y*e+o/i;let l=Math.round(r/e),d=Math.round(s/e);l<0&&(l=0),d<0&&(d=0),this.moveState={pxX:r,pxY:s,x:l,y:d}},onMoveStart(e){this.$_initalMousePosition={x:e.clientX,y:e.clientY},this.updateMoveState(e),window.addEventListener("mousemove",this.onMoveUpdate),window.addEventListener("mouseup",this.onMoveEnd)},onMoveUpdate(e){this.updateMoveState(e)},async onMoveEnd(e){this.updateMoveState(e),this.removeMoveListeners(),this.onMoved&&await this.onMoved(),this.moveState=null}}}}function d({gridSize:e,field:n,zoom:i}){return{data(){return{resizeState:null}},computed:{showResizeHandle(){return this.isSelected&&!this.moveState&&this.canBeResized},canBeResized(){const{definition:e}=this[n];return e.minWidth!==e.maxWidth||e.minHeight!==e.maxHeight}},created(){this.resizeHandles=["top-left","top","top-right","right","bottom-right","bottom","bottom-left","left"]},beforeDestroy(){this.removeResizeListeners()},methods:{removeResizeListeners(){window.removeEventListener("mousemove",this.onResizeMove),window.removeEventListener("mouseup",this.onResizeEnd)},updateResizeState(t){const a=this[n],o=(t.clientX-this.$_initalMousePosition.x)/i,r=(t.clientY-this.$_initalMousePosition.y)/i,s=this.$_resizeHandle;let l=0,d=0,c=0,u=0;s.includes("left")?(l=o,c=-o):s.includes("right")&&(c=o),s.includes("top")?(d=r,u=-r):s.includes("bottom")&&(u=r);let f=Math.round(l/e),m=Math.round(d/e),v=Math.round(c/e),p=Math.round(u/e);a.width+va.definition.maxWidth&&(v=a.definition.maxWidth-a.width,f=a.width-a.definition.maxWidth),a.height+pa.definition.maxHeight&&(p=a.definition.maxHeight-a.height,m=a.height-a.definition.maxHeight),this.resizeState={x:a.x+f,y:a.y+m,width:a.width+v,height:a.height+p,pxX:a.x*e+l,pxY:a.y*e+d,pxWidth:a.width*e+c,pxHeight:a.height*e+u}},onResizeStart(e,n){this.$_initalMousePosition={x:e.clientX,y:e.clientY},this.$_resizeHandle=n,this.updateResizeState(e),window.addEventListener("mousemove",this.onResizeMove),window.addEventListener("mouseup",this.onResizeEnd)},onResizeMove(e){this.updateResizeState(e)},async onResizeEnd(e){this.updateResizeState(e),this.removeResizeListeners(),this.onResized&&await this.onResized(),this.resizeState=null}}}}var c=i(2537),u=i.n(c),f=i(67822),m=i.n(f),v=i(54781),p=i.n(v),h=i(2570),g=i.n(h),k=i(68356),b=i.n(k),S=i(65563),w=i.n(S),y=i(34293),D=i.n(y);const N=200,E=.7,j=new o["default"]({data:{selectedWidgetId:null}});var _={provide(){return{widget:this.injected}},inject:["dashboard"],mixins:[(0,r.Z)({field:"widget",update(e,n){e.writeFragment({fragment:g(),fragmentName:"widget",id:this.widget.id,data:{prompts:n}})}}),s({field:"widget",gridSize:N}),l({field:"widget",gridSize:N,zoom:E}),d({field:"widget",gridSize:N,zoom:E})],props:{widget:{type:Object,required:!0},customizeMode:{type:Boolean,default:!1},details:{type:Boolean,default:!1},shellStyle:{type:Object,default:null}},data(){return{showConfig:!1,loadingConfig:!1,showDetails:!1,injected:{data:this.widget,isDetails:this.details,openConfig:this.openConfig,openDetails:this.openDetails,closeDetails:this.closeDetails,addHeaderAction:this.addHeaderAction,removeHeaderAction:this.removeHeaderAction,remove:this.remove,customTitle:null},shellOrigin:null,headerActions:[]}},computed:{isSelected(){return this.widget.id===j.selectedWidgetId},component(){return this.details?this.widget.definition.detailsComponent:this.widget.definition.component},visibleHeaderActions(){return this.headerActions.filter((e=>!e.hidden))}},watch:{widget:{handler(e){this.injected.data=e}},customizeMode(e){e?this.showDetails&&this.closeDetails():this.isSelected&&(j.selectedWidgetId=null)},"dashboard.width":"updateShellOrigin","dashboard.height":"updateShellOrigin","widget.x":"updateShellOrigin","widget.y":"updateShellOrigin","widget.width":"updateShellOrigin","widget.height":"updateShellOrigin"},mounted(){setTimeout((()=>{this.updateShellOrigin()}),150)},methods:{async openConfig(){this.loadingConfig=!0,this.showConfig=!0,await this.$apollo.mutate({mutation:w(),variables:{id:this.widget.id}}),this.loadingConfig=!1},async saveConfig(){this.showConfig=!1,this.loadingConfig=!1,await this.$apollo.mutate({mutation:D(),variables:{id:this.widget.id}})},openDetails(){this.widget.definition.detailsComponent&&(this.showDetails=!0,this.dashboard.isWidgetDetailsShown=!0)},closeDetails(){this.showDetails=!1,this.dashboard.isWidgetDetailsShown=!1},remove(){this.$apollo.mutate({mutation:u(),variables:{id:this.widget.id},update:(e,{data:{widgetRemove:n}})=>{let i=e.readQuery({query:p()});i={widgets:i.widgets.filter((e=>e.id!==this.widget.id))},e.writeQuery({query:p(),data:i}),e.writeFragment({fragment:b(),id:n.definition.id,data:n.definition})}})},select(){j.selectedWidgetId=this.widget.id},async onMoved(){await this.$apollo.mutate({mutation:m(),variables:{input:{id:this.widget.id,x:this.moveState.x,y:this.moveState.y,width:this.widget.width,height:this.widget.height}}})},async onResized(){await this.$apollo.mutate({mutation:m(),variables:{input:{id:this.widget.id,x:this.resizeState.x,y:this.resizeState.y,width:this.resizeState.width,height:this.resizeState.height}}})},updateShellOrigin(){const e=this.$refs.shell;if(!e)return;const n=e.getBoundingClientRect();this.shellOrigin={x:n.left+n.width/2-this.dashboard.left,y:n.top+n.height/2-this.dashboard.top}},addHeaderAction(e){this.removeHeaderAction(e.id),e.tooltip||(e.tooltip=null),e.disabled||(e.disabled=!1),e.hidden||(e.hidden=!1),x(e,"tooltip"),x(e,"disabled"),x(e,"hidden"),this.headerActions.push(e)},removeHeaderAction(e){const n=this.headerActions.findIndex((n=>n.id===e));-1!==n&&this.headerActions.splice(n,1)}}};function x(e,n){const i=e[n];"function"===typeof i&&(delete e[n],Object.defineProperty(e,n,{get:i,enumerable:!0,configurable:!0}))}var C=_,F=i(47262),$=(0,F.Z)(C,t,a,!1,null,"7b42892d",null),V=$.exports},98699:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return p}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"widget-add-item list-item"},[i("div",{staticClass:"info",on:{click:function(n){e.showDetails=!0}}},[i("ItemLogo",{attrs:{image:e.definition.icon,"fallback-icon":"widgets"}}),i("ListItemInfo",{attrs:{name:e.$t(e.definition.title),description:e.$t(e.definition.description),link:e.definition.link}})],1),i("div",{staticClass:"actions"},[i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.widget-add-item.add"),expression:"$t('org.vue.components.widget-add-item.add')"}],staticClass:"primary icon-button",attrs:{"icon-left":"add"},on:{click:function(n){return e.add()}}})],1),e.showDetails?i("VueModal",{staticClass:"medium",attrs:{title:e.$t("org.vue.components.widget-add-item.details.title")},on:{close:function(n){e.showDetails=!1}}},[i("div",{staticClass:"custom-body"},[i("div",{staticClass:"details"},[i("ItemLogo",{attrs:{image:e.definition.icon,"fallback-icon":"widgets"}}),i("ListItemInfo",{attrs:{name:e.$t(e.definition.title),description:e.$t(e.definition.description)}})],1),e.definition.longDescription?i("div",{staticClass:"details"},[i("div",{staticClass:"description",domProps:{innerHTML:e._s(e.$t(e.definition.longDescription))}})]):e._e(),i("div",{staticClass:"instances"},[e._v(" "+e._s(e.$t("org.vue.components.widget-add-item.details.max-instances",{count:e.definition.count,total:null==e.definition.maxCount?e.$t("org.vue.components.widget-add-item.details.unlimited"):e.definition.maxCount}))+" ")])]),i("div",{staticClass:"actions",attrs:{slot:"footer"},slot:"footer"},[e.definition.link?i("VueButton",{staticClass:"flat",attrs:{href:e.definition.link,label:e.$t("org.vue.common.more-info"),target:"_blank","icon-right":"open_in_new"}}):e._e(),i("VueButton",{staticClass:"primary",attrs:{label:e.$t("org.vue.components.widget-add-item.add"),"icon-left":"add"},on:{click:function(n){return e.add()}}})],1)]):e._e()],1)},a=[],o=i(15433),r=i.n(o),s=i(54781),l=i.n(s),d=i(68356),c=i.n(d),u={props:{definition:{type:Object,required:!0}},data(){return{showDetails:!1}},methods:{add(){this.showDetails=!1,this.$apollo.mutate({mutation:r(),variables:{input:{definitionId:this.definition.id}},update:(e,{data:{widgetAdd:n}})=>{let i=e.readQuery({query:l()});i={widgets:[...i.widgets,n]},e.writeQuery({query:l(),data:i}),e.writeFragment({fragment:c(),id:n.definition.id,data:n.definition})}})}}},f=u,m=i(47262),v=(0,m.Z)(f,t,a,!1,null,"4fd981a4",null),p=v.exports},1848:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"widget-add-pane"},[t("div",{staticClass:"pane-toolbar"},[t("VueIcon",{attrs:{icon:"library_add"}}),t("div",{staticClass:"title"},[e._v(" "+e._s(e.$t("org.vue.components.widget-add-pane.title"))+" ")]),t("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.common.close"),expression:"$t('org.vue.common.close')"}],staticClass:"icon-button flat",attrs:{"icon-left":"close"},on:{click:function(n){return e.close()}}})],1),t("div",{staticClass:"toolbar"},[t("VueInput",{staticClass:"round search-input",attrs:{"icon-left":"search"},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),t("ApolloQuery",{staticClass:"widgets",attrs:{query:i(43091)},scopedSlots:e._u([{key:"default",fn:function(n){var i=n.result,a=i.data,o=i.loading;return[!o||a&&a.widgets?a?[e._l(a.widgetDefinitions.filter(e.filterDefinition),(function(n){return[n.canAddMore?t("WidgetAddItem",{key:n.id,attrs:{definition:n}}):e._e()]}))]:e._e():t("VueLoadingIndicator",{staticClass:"overlay"})]}}])})],1)},a=[],o={data(){return{search:""}},methods:{close(){this.$emit("close")},filterDefinition(e){if(!this.search)return!0;const n=new RegExp(this.search.replace(/\s+/g,"|"),"i");return e.title.match(n)||e.description&&e.description.match(n)||e.longDescription&&e.longDescription.match(n)}}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,"18a2056d",null),d=l.exports},49930:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("Widget",{staticClass:"widget-details-view",attrs:{widget:e.widget,"shell-style":{left:this.dashboard.left+8+"px",top:this.dashboard.top+8+"px",width:this.dashboard.width+"px",height:this.dashboard.height+"px",transformOrigin:this.shellOrigin.x+"px "+this.shellOrigin.y+"px"},details:""},on:{close:function(n){return e.close()}}})},a=[],o={inject:["dashboard"],props:{widget:{type:Object,required:!0},shellOrigin:{type:Object,required:!0}},methods:{close(){this.$emit("close")}}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,"0dc1b07a",null),d=l.exports},41492:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"npm-package-search"},[i("div",{staticClass:"content vue-ui-disable-scroll"},[i("ais-index",{attrs:{"app-id":"OFCNCOG2CU","api-key":"db283631f89b5b8a10707311f911fd00","index-name":"npm-search","query-parameters":{hitsPerPage:e.pageSize,attributesToRetrieve:["name","description","repository","homepage","version","owner","humanDownloadsLast30Days","keywords"],attributesToHighlight:["name","description"],analyticsTags:["vue-cli-ui"],filters:e.filters}}},[i("InstantSearchInput",{ref:"searchInput",attrs:{placeholder:e.$t("org.vue.views.project-plugins-add.tabs.search.search-input")}}),i("div",{ref:"resultsBox",staticClass:"ais-results-box"},[i("ais-results",{scopedSlots:e._u([{key:"default",fn:function(n){var t=n.result;return i("PackageSearchItem",{attrs:{pkg:t,selected:e.selectedIdModel===t.name,"load-metadata":e.loadMetadata},nativeOn:{click:function(n){e.selectedIdModel=t.name}}})}}])}),i("ais-no-results",[i("div",{staticClass:"vue-ui-empty"},[i("VueIcon",{staticClass:"huge",attrs:{icon:"search"}}),i("div",[e._v(e._s(e.$t("org.vue.views.project-plugins-add.tabs.search.not-found")))])],1)]),i("InstantSearchPagination",{on:{"page-change":function(n){return e.scrollResultsToTop()}}})],1)],1)],1),i("div",{staticClass:"actions-bar no-padding-x"},[e._m(0),i("div",{staticClass:"vue-ui-spacer"}),e._t("more-actions"),i("VueButton",{staticClass:"big",attrs:{"icon-left":"close",label:e.$t("org.vue.views.project-plugins-add.tabs.search.buttons.cancel")},on:{click:function(n){return e.close()}}}),i("VueButton",{staticClass:"big primary",attrs:{"icon-left":"file_download",label:e.selectedIdModel?e.$t("org.vue.views.project-plugins-add.tabs.search.buttons.install",{target:e.selectedIdModel}):e.$t("org.vue.views.project-plugins-add.tabs.search.buttons.default-install"),disabled:!e.selectedIdModel,"data-testid":"download-plugin"},on:{click:function(n){return e.install()}}})],2)])},a=[function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"algolia"},[t("img",{staticClass:"ais-logo",attrs:{src:i(96198)}})])}],o={props:{selectedId:{type:String,default:null},filters:{type:String,default:null},pageSize:{type:Number,default:20},loadMetadata:{type:Boolean,default:!1}},data(){return{internalSelectedId:this.selectedId}},computed:{selectedIdModel:{get(){return this.internalSelectedId},set(e){this.internalSelectedId=e,this.$emit("update:selectedId",e)}}},watch:{selectedId(e){e!==this.internalSelectedId&&(this.internalSelectedId=e)}},mounted(){requestAnimationFrame((()=>{this.$refs.searchInput.focus()}))},methods:{close(){this.$emit("close")},install(){this.$emit("install",this.selectedIdModel)},scrollResultsToTop(){const e=this.$refs.resultsBox;e&&(e.scrollTop=0)}}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,"5f26a37c",null),d=l.exports},30140:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"package-search-item list-item",class:{selected:e.selected}},[i("ItemLogo",{attrs:{image:e.logoUrl,selected:e.selected,"fallback-icon":"extension"}}),i("ListItemInfo",{attrs:{link:e.pkg.homepage||e.pkg.repository&&e.pkg.repository.url||"",selected:e.selected,"show-description":""}},[i("template",{slot:"name"},[i("span",{staticClass:"name",attrs:{"data-testid":"name"}},[i("ais-highlight",{attrs:{result:e.pkg,"attribute-name":"name"}})],1),i("span",{staticClass:"version"},[e._v(e._s(e.pkg.version))])]),i("template",{slot:"description"},[i("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.pkg.description,expression:"pkg.description"}],staticClass:"info description"},[i("ais-highlight",{attrs:{result:e.pkg,"attribute-name":"description"}})],1),e.official?i("span",{staticClass:"info"},[i("VueIcon",{staticClass:"top medium",attrs:{icon:"star"}}),i("span",[e._v(e._s(e.$t("org.vue.components.project-plugin-item.official")))])],1):e._e(),i("span",{staticClass:"info downloads"},[i("VueIcon",{staticClass:"medium",attrs:{icon:"file_download"}}),i("span",[e._v(e._s(e.pkg.humanDownloadsLast30Days))])],1),i("span",{staticClass:"info owner"},[i("VueIcon",{staticClass:"medium",attrs:{icon:"account_circle"}}),i("span",[e._v(e._s(e.pkg.owner.name))])],1)])],2),e.hasGenerator?i("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.project-plugin-item.features.generator"),expression:"$t('org.vue.components.project-plugin-item.features.generator')"}],staticClass:"feature"},[i("VueIcon",{staticClass:"big",attrs:{icon:"note_add"}})],1):e._e(),e.hasUiIntegration?i("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.project-plugin-item.features.ui-integration"),expression:"$t('org.vue.components.project-plugin-item.features.ui-integration')"}],staticClass:"feature"},[i("VueIcon",{staticClass:"big",attrs:{icon:"brush"}})],1):e._e()],1)},a=[],o={props:{pkg:{type:Object,required:!0},selected:{type:Boolean,default:!1},loadMetadata:{type:Boolean,default:!1}},data(){return{logoUrl:null,hasGenerator:!1,hasUiIntegration:!1}},computed:{official(){return"vuejs"===this.pkg.owner.name}},watch:{"pkg.name":{handler:"updateMetadata",immediate:!0}},methods:{updateMetadata(){const e=this.pkg.name;if(this.hasUiIntegration=!1,this.hasGenerator=!1,this.logoUrl=this.pkg.owner.avatar,this.loadMetadata){const n=new Image;n.onload=()=>{e===this.pkg.name&&(this.logoUrl=n.src)},n.src=`https://unpkg.com/${e}/logo.png`,fetch(`https://unpkg.com/${e}/ui`).then((n=>{e===this.pkg.name&&(this.hasUiIntegration=n.ok)})),fetch(`https://unpkg.com/${e}/generator`).then((n=>{e===this.pkg.name&&(this.hasGenerator=n.ok)}))}}}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,"40f3faa6",null),d=l.exports},12686:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return g}});var t=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"project-dependencies page"},[t("ContentView",{staticClass:"limit-width list",attrs:{title:e.$t("org.vue.views.project-dependencies.title")}},[t("template",{slot:"actions"},[t("VueInput",{staticClass:"round",attrs:{"icon-left":"search"},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}}),t("VueButton",{staticClass:"primary round",attrs:{"icon-left":"add",label:e.$t("org.vue.views.project-dependencies.actions.install")},on:{click:function(n){e.showInstallModal=!0}}}),t("VueDropdown",[t("VueButton",{staticClass:"icon-button flat round",attrs:{slot:"trigger","icon-left":"more_vert"},slot:"trigger"}),t("VueDropdownButton",{attrs:{"icon-left":"file_download",label:e.$t("org.vue.views.project-dependencies.actions.update-all")},on:{click:function(n){return e.updateAll()}}})],1)],1),t("ApolloQuery",{attrs:{query:i(80247)},scopedSlots:e._u([{key:"default",fn:function(n){var i=n.result,a=i.data,o=i.loading;return[!o||a&&a.dependencies?a&&a.dependencies?t("ListFilter",{attrs:{list:a.dependencies,filter:function(n){return!e.search||n.id.includes(e.search)}},scopedSlots:e._u([{key:"default",fn:function(n){var i=n.list;return e._l(["dependencies","devDependencies"],(function(n){return t("ListFilter",{key:n,attrs:{list:i,filter:function(e){return e.type===n}},scopedSlots:e._u([{key:"default",fn:function(i){var a=i.list;return a.length?[t("div",{staticClass:"cta-text"},[e._v(e._s(e.$t("org.vue.views.project-dependencies.heading."+n)))]),t("ListSort",{attrs:{list:a,compare:function(e,n){return e.id.localeCompare(n.id)}},scopedSlots:e._u([{key:"default",fn:function(n){var i=n.list;return e._l(i,(function(n){return t("ProjectDependencyItem",{key:n.id,attrs:{dependency:n},on:{uninstall:function(i){return e.openConfirmUninstall(n.id)}}})}))}}],null,!0)})]:void 0}}],null,!0)})}))}}],null,!0)}):e._e():t("VueLoadingIndicator",{staticClass:"overlay"})]}}])})],2),e.showInstallModal?t("VueModal",{staticClass:"install-modal",attrs:{title:e.$t("org.vue.views.project-dependencies.install.title")},on:{close:function(n){e.showInstallModal=!1}}},[t("div",{staticClass:"default-body"},[t("div",{staticClass:"install-options"},[t("VueGroup",{staticClass:"inline",model:{value:e.installType,callback:function(n){e.installType=n},expression:"installType"}},e._l(["dependencies","devDependencies"],(function(n){return t("VueGroupButton",{key:n,attrs:{value:n}},[e._v(" "+e._s(e.$t("org.vue.views.project-dependencies.heading."+n))+" ")])})),1)],1),t("NpmPackageSearch",{staticClass:"package-search",attrs:{filters:"NOT computedKeywords:vue-cli-plugin"},on:{close:function(n){e.showInstallModal=!1},install:e.installPlugin}})],1)]):e._e(),e.showUninstallModal?t("VueModal",{staticClass:"small",attrs:{title:e.$t("org.vue.views.project-dependencies.uninstall.title")},on:{close:function(n){e.showUninstallModal=!1}}},[t("div",{staticClass:"default-body"},[e._v(" "+e._s(e.$t("org.vue.views.project-dependencies.uninstall.body",{id:e.selectedId}))+" ")]),t("div",{staticClass:"actions end",attrs:{slot:"footer"},slot:"footer"},[t("VueButton",{staticClass:"flat",attrs:{label:e.$t("org.vue.views.project-dependencies.uninstall.cancel")},on:{click:function(n){e.showUninstallModal=!1}}}),t("VueButton",{staticClass:"danger",attrs:{label:e.$t("org.vue.views.project-dependencies.uninstall.uninstall",{id:e.selectedId}),"icon-left":"delete_forever"},on:{click:function(n){return e.uninstallPlugin(e.selectedId)}}})],1)]):e._e(),t("ProgressScreen",{attrs:{"progress-id":"dependency-installation"}})],1)},a=[],o=i(80247),r=i.n(o),s=i(68209),l=i.n(s),d=i(98513),c=i.n(d),u=i(11111),f=i.n(u),m={data(){return{showInstallModal:!1,installType:"dependencies",selectedId:null,showUninstallModal:!1,search:""}},methods:{async updateAll(){await this.$apollo.mutate({mutation:f()})},async installPlugin(e){await this.$apollo.mutate({mutation:l(),variables:{input:{id:e,type:this.installType}},update:(e,{data:{dependencyInstall:n}})=>{let i=e.readQuery({query:r()});i={dependencies:[...i.dependencies,n]},e.writeQuery({query:r(),data:i})}}),this.showInstallModal=!1},openConfirmUninstall(e){this.selectedId=e,this.showUninstallModal=!0},async uninstallPlugin(e){this.showUninstallModal=!1,await this.$apollo.mutate({mutation:c(),variables:{input:{id:e}},update:(e,{data:{dependencyUninstall:n}})=>{let i=e.readQuery({query:r()});const t=i.dependencies.findIndex((e=>e.id===n.id));-1!==t&&(i={dependencies:i.dependencies.slice()},i.dependencies.splice(t,1),e.writeQuery({query:r(),data:i}))}})}}},v=m,p=i(47262),h=(0,p.Z)(v,t,a,!1,null,"40a4792a",null),g=h.exports},10296:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return m}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"project-dependency-item list-item"},[i("div",{staticClass:"content"},[e.visible?e._e():i("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:e.visibilityChanged,expression:"visibilityChanged"}]}),i("ItemLogo",{staticClass:"identicon",attrs:{image:e.image||"widgets","fallback-icon":"widgets"}}),i("ListItemInfo",{attrs:{name:e.dependency.id,link:e.dependency.website,"show-description":""}},[i("span",{staticClass:"dependency-description",attrs:{slot:"description"},slot:"description"},[i("span",{staticClass:"info version"},[i("span",{staticClass:"label"},[e._v(e._s(e.$t("org.vue.components.project-dependency-item.version")))]),i("span",{staticClass:"value"},[e._v(e._s(e.dependencyDetails&&e.dependencyDetails.version.current))])]),i("span",{staticClass:"info wanted"},[i("span",{staticClass:"label"},[e._v(e._s(e.$t("org.vue.components.project-dependency-item.wanted")))]),e.dependencyDetails&&e.dependencyDetails.version.current!==e.dependencyDetails.version.wanted?i("VueIcon",{staticClass:"top medium",attrs:{icon:"warning"}}):e._e(),i("span",{staticClass:"value"},[e._v(e._s(e.dependencyDetails&&e.dependencyDetails.version.wanted))])],1),i("span",{staticClass:"info latest"},[i("span",{staticClass:"label"},[e._v(e._s(e.$t("org.vue.components.project-dependency-item.latest")))]),e.dependencyDetails&&e.dependencyDetails.version.current!==e.dependencyDetails.version.latest?i("VueIcon",{staticClass:"top medium",attrs:{icon:"warning"}}):e._e(),i("span",{staticClass:"value"},[e._v(e._s(e.dependencyDetails&&e.dependencyDetails.version.latest))])],1),e.dependency.installed?i("span",{staticClass:"info installed"},[i("VueIcon",{staticClass:"top medium",attrs:{icon:"check_circle"}}),e._v(" "+e._s(e.$t("org.vue.components.project-dependency-item.installed"))+" ")],1):e._e(),e.dependencyDetails&&e.dependencyDetails.description?i("span",{staticClass:"package-description"},[e._v(" "+e._s(e.dependencyDetails.description)+" ")]):e._e()])]),e.dependencyDetails&&e.dependencyDetails.version.current!==e.dependencyDetails.version.wanted?i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.project-dependency-item.actions.update",{target:e.dependency.id}),expression:"$t('org.vue.components.project-dependency-item.actions.update', { target: dependency.id })"}],staticClass:"icon-button",attrs:{"icon-left":"file_download","loading-left":e.updating},on:{click:function(n){return e.updateDependency()}}}):e._e(),i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.project-dependency-item.actions.uninstall",{target:e.dependency.id}),expression:"$t('org.vue.components.project-dependency-item.actions.uninstall', { target: dependency.id })"}],staticClass:"icon-button",attrs:{"icon-left":"delete"},on:{click:function(n){return e.$emit("uninstall")}}})],1)])},a=[],o=i(94210),r=i.n(o),s=i(40688),l=i.n(s),d={props:{dependency:{type:Object,required:!0}},data(){return{updating:!1,visible:!1,image:null}},apollo:{dependencyDetails:{query:r(),variables(){return{id:this.dependency.id}},skip(){return!this.visible}}},methods:{async updateDependency(){this.updating=!0;try{this.$apollo.mutate({mutation:l(),variables:{input:{id:this.dependency.id}}})}catch(e){console.error(e)}this.updating=!1},visibilityChanged(e){this.visible||(this.image=`https://avatars.dicebear.com/v2/identicon/${this.dependency.id.replace(/\//g,"-")}.svg`,this.visible=e)}}},c=d,u=i(47262),f=(0,u.Z)(c,t,a,!1,null,"c7b4d70c",null),m=f.exports},13797:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return u}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"file-diff",class:{new:e.fileDiff.new,deleted:e.fileDiff.deleted}},[i("div",{staticClass:"toolbar",on:{click:function(n){return e.$emit("update:collapsed",!e.collapsed)}}},[i("VueIcon",{staticClass:"file-icon",attrs:{icon:e.icon}}),e.fileDiff.from===e.fileDiff.to||e.fileDiff.new?e._e():[i("div",{staticClass:"name from-file"},[i("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.fileDiff.from,expression:"fileDiff.from"}]},[e._v(e._s(e.fileDiff.from))])]),e.fileDiff.deleted?e._e():i("VueIcon",{attrs:{icon:"arrow_forward"}})],e.fileDiff.deleted?e._e():i("div",{staticClass:"name to-file"},[i("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.fileDiff.to,expression:"fileDiff.to"}]},[e._v(e._s(e.fileDiff.to))])]),i("div",{staticClass:"vue-ui-spacer"}),e.fileDiff.deleted?e._e():i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.file-diff.actions.open"),expression:"$t('org.vue.components.file-diff.actions.open')"}],staticClass:"icon-button",attrs:{"icon-left":"edit"},on:{click:function(n){return n.stopPropagation(),e.openInEditor()}}}),i("VueButton",{staticClass:"icon-button",attrs:{"icon-left":e.collapsed?"keyboard_arrow_down":"keyboard_arrow_up"}})],2),e.collapsed?e._e():i("div",{staticClass:"content"},[e.fileDiff.binary?i("div",{staticClass:"is-binary"},[i("VueIcon",{staticClass:"icon",attrs:{icon:"memory"}}),i("span",[e._v(e._s(e.$t("org.vue.components.file-diff.binary")))])],1):e._l(e.fileDiff.chunks,(function(e,n){return i("FileDiffChunk",{key:n,attrs:{chunk:e}})}))],2)])},a=[],o=i(71105),r=i.n(o),s={provide(){const e=this;return{FileDiffInjection:{get data(){return e.fileDiff}}}},props:{fileDiff:{type:Object,required:!0},collapsed:{type:Boolean,default:!1}},computed:{icon(){return this.fileDiff.new?"note_add":this.fileDiff.deleted?"delete":"insert_drive_file"}},methods:{openInEditor(){this.$apollo.mutate({mutation:r(),variables:{input:{file:this.fileDiff.to,gitPath:!0}}})}}},l=s,d=i(47262),c=(0,d.Z)(l,t,a,!1,null,"1bd7cf58",null),u=c.exports},4756:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return u}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"file-diff-change",class:["type-"+e.change.type]},[i("div",{staticClass:"lines"},[i("div",{staticClass:"ln ln1"},[e._v(" "+e._s(e.ln1)+" ")]),i("div",{staticClass:"ln ln2",class:{disabled:!e.ln2},on:{click:function(n){return e.openInEditor()}}},[e._v(" "+e._s(e.ln2)+" ")])]),i("div",{staticClass:"content",domProps:{innerHTML:e._s(e.change.content)}})])},a=[],o=i(71105),r=i.n(o),s={inject:["FileDiffInjection"],props:{change:{type:Object,required:!0}},computed:{ln1(){return this.change.normal?this.change.ln1:"del"===this.change.type?this.change.ln:""},ln2(){return this.change.normal?this.change.ln2:"add"===this.change.type?this.change.ln:""}},methods:{openInEditor(){this.ln2&&this.$apollo.mutate({mutation:r(),variables:{input:{file:this.FileDiffInjection.data.to,line:this.ln2,gitPath:!0}}})}}},l=s,d=i(47262),c=(0,d.Z)(l,t,a,!1,null,"75653a05",null),u=c.exports},39603:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"file-diff-chunk"},[i("div",{staticClass:"changes"},e._l(e.chunk.changes,(function(e,n){return i("FileDiffChange",{key:n,attrs:{change:e}})})),1)])},a=[],o={props:{chunk:{type:Object,required:!0}}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,"2db99afb",null),d=l.exports},73024:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return g}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"file-diff-view"},[i("div",{staticClass:"toolbar"},[i("VueIcon",{attrs:{icon:"cached"}}),i("div",{staticClass:"title"},[e._v(e._s(e.$t("org.vue.components.file-diff-view.files-changed")))]),i("div",{staticClass:"file-count"},[e._v(e._s(e.fileDiffs&&e.fileDiffs.length))]),i("transition",{attrs:{name:"vue-ui-fade"}},[e.loading&&e.fileDiffs.length?i("VueLoadingIndicator",{staticClass:"small accent"}):e._e()],1),i("div",{staticClass:"vue-ui-spacer"}),i("VueInput",{attrs:{"icon-left":"search",placeholder:e.$t("org.vue.components.file-diff-view.search-file")},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}}),i("VueButton",{attrs:{"icon-left":e.allCollapsed?"keyboard_arrow_down":"keyboard_arrow_up",label:e.$t("org.vue.components.file-diff-view.actions."+(e.allCollapsed?"expand-all":"collapse-all"))},on:{click:function(n){return e.setCollapsedToAll(!e.allCollapsed)}}}),i("VueButton",{staticClass:"icon-button",attrs:{"icon-left":"refresh"},on:{click:function(n){return e.refresh()}}})],1),i("div",{staticClass:"list"},[e.error||!e.fileDiffs?i("div",{staticClass:"vue-ui-empty"},[i("VueIcon",{staticClass:"empty-icon",attrs:{icon:"error"}}),i("span",[e._v(e._s(e.$t("org.vue.components.file-diff-view.error")))])],1):e.filteredList.length?e._l(e.filteredList,(function(n){return i("FileDiff",{key:n.id,attrs:{"file-diff":n,collapsed:!!e.collapsed[n.id]},on:{"update:collapsed":function(i){return e.$set(e.collapsed,n.id,i)}}})})):i("div",{staticClass:"vue-ui-empty"},[i("VueIcon",{staticClass:"empty-icon",attrs:{icon:"check_circle"}}),i("span",[e._v(e._s(e.$t("org.vue.components.file-diff-view.empty")))])],1)],2),i("div",{staticClass:"actions-bar"},[!e.error&&e.fileDiffs&&e.fileDiffs.length?[i("VueButton",{staticClass:"big primary",attrs:{"icon-left":"vertical_align_bottom",label:e.$t("org.vue.components.file-diff-view.actions.commit")},on:{click:function(n){e.showCommitModal=!0}}}),i("VueButton",{staticClass:"big",attrs:{label:e.$t("org.vue.components.file-diff-view.actions.skip"),"data-testid":"skip-button"},on:{click:function(n){return e.skip()}}})]:[i("VueButton",{staticClass:"big primary",attrs:{"icon-left":"done",label:e.$t("org.vue.components.file-diff-view.actions.continue"),"data-testid":"skip-button"},on:{click:function(n){return e.skip()}}}),i("VueButton",{staticClass:"big",attrs:{label:e.$t("org.vue.components.file-diff-view.actions.refresh"),"icon-left":"refresh"},on:{click:function(n){return e.refresh()}}})]],2),i("transition",{attrs:{name:"vue-ui-fade"}},[e.loading&&!e.fileDiffs.length?i("VueLoadingIndicator",{staticClass:"accent big overlay"}):e._e()],1),e.showCommitModal?i("VueModal",{staticClass:"medium",attrs:{title:e.$t("org.vue.components.file-diff-view.modals.commit.title")},on:{close:function(n){e.showCommitModal=!1}}},[i("div",{staticClass:"default-body"},[i("VueFormField",{attrs:{title:e.$t("org.vue.components.file-diff-view.modals.commit.input"),subtitle:e.$t("org.vue.components.file-diff-view.modals.commit.subtitle")}},[i("VueInput",{directives:[{name:"focus",rawName:"v-focus"}],attrs:{"icon-left":"local_offer"},on:{keyup:function(n){if(!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter"))return null;e.commitMessage&&e.commit()}},model:{value:e.commitMessage,callback:function(n){e.commitMessage=n},expression:"commitMessage"}})],1)],1),i("div",{staticClass:"actions center",attrs:{slot:"footer"},slot:"footer"},[i("VueButton",{staticClass:"flat",attrs:{label:e.$t("org.vue.components.file-diff-view.modals.commit.actions.cancel")},on:{click:function(n){e.showCommitModal=!1}}}),i("VueButton",{staticClass:"primary",attrs:{label:e.$t("org.vue.components.file-diff-view.modals.commit.actions.commit"),"icon-left":"vertical_align_bottom",disabled:!e.commitMessage},on:{click:function(n){return e.commit()}}})],1)]):e._e()],1)},a=[],o=i(85416);const r=new o["default"]({data:{documentVisible:!document.hidden,documentFocus:document.hasFocus()}});document.addEventListener("visibilitychange",(()=>{r.documentVisible=!document.hidden}),!1),window.addEventListener("focus",(()=>{r.documentFocus=!0})),window.addEventListener("blur",(()=>{r.documentFocus=!1}));var s={computed:{documentVisible(){return r.documentVisible},documentFocus(){return r.documentFocus}}},l=i(16295),d=i.n(l),c=i(67875),u=i.n(c);const f=["yarn.lock","pnpm-lock.yaml","package-lock.json"];var m={mixins:[s],data(){return{fileDiffs:[],collapsed:{},search:"",loading:0,commitMessage:"",showCommitModal:!1,error:null}},apollo:{fileDiffs:{query:d(),loadingKey:"loading",fetchPolicy:"network-only",error(e){this.error=e},result(e){e.errors&&e.errors.length?this.error=e.errors[0]:(this.error=null,this.fileDiffs.forEach((e=>{"undefined"===typeof this.collapsed[e.id]&&(e.binary||f.includes(e.from)||f.includes(e.to))&&this.$set(this.collapsed,e.id,!0)})))}}},computed:{allCollapsed(){return!!this.fileDiffs&&!this.fileDiffs.find((e=>!this.collapsed[e.id]))},filteredList(){if(!this.fileDiffs)return[];const e=this.search.trim();if(e){const n=new RegExp(e.replace(/\s+/g,".*"),"i");return this.fileDiffs.filter((e=>n.test(e.from)||n.test(e.to)))}return this.fileDiffs}},watch:{documentFocus(e){e&&this.refresh()}},methods:{setCollapsedToAll(e){const n={};this.fileDiffs.forEach((i=>{n[i.id]=e||f.includes(i.from)||f.includes(i.to)})),this.collapsed=n},refresh(){this.$apollo.queries.fileDiffs.refetch()},async commit(){this.showCommitModal=!1,this.loading++;try{await this.$apollo.mutate({mutation:u(),variables:{message:this.commitMessage}}),this.refresh(),this.$emit("continue")}catch(e){console.error(e)}this.loading--},skip(){this.$emit("continue")}}},v=m,p=i(47262),h=(0,p.Z)(v,t,a,!1,null,"e6aca748",null),g=h.exports},40758:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return j}});var t=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"folder-explorer",class:{error:e.error}},[t("div",{staticClass:"toolbar"},[t("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.folder-explorer.toolbar.tooltips.parent-folder"),expression:"$t('org.vue.components.folder-explorer.toolbar.tooltips.parent-folder')"}],staticClass:"icon-button go-up",attrs:{"icon-left":"keyboard_arrow_up"},on:{click:e.openParentFolder}}),e.editingPath?t("div",{staticClass:"path-edit"},[t("VueInput",{directives:[{name:"focus",rawName:"v-focus"}],ref:"pathInput",staticClass:"path-input",attrs:{placeholder:e.$t("org.vue.components.folder-explorer.toolbar.placeholder"),"icon-right":"edit"},on:{keyup:[function(n){if(!n.type.indexOf("key")&&e._k(n.keyCode,"esc",27,n.key,["Esc","Escape"]))return null;e.editingPath=!1},function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.submitPathEdit()}]},model:{value:e.editedPath,callback:function(n){e.editedPath=n},expression:"editedPath"}})],1):t("ApolloQuery",{staticClass:"current-path",attrs:{query:i(77433)},nativeOn:{dblclick:function(n){return e.openPathEdit()}},scopedSlots:e._u([{key:"default",fn:function(n){var i=n.result.data;return[i?t("div",{staticClass:"path-value"},e._l(e.slicePath(i.cwd),(function(n,i){return t("div",{key:i,staticClass:"path-part"},[t("VueButton",{staticClass:"path-folder flat",class:{"icon-button":!n.name},attrs:{"icon-left":n.name?null:"folder"},on:{click:function(i){return e.openFolder(n.path)}}},[e._v(" "+e._s(n.name)+" ")])],1)})),0):e._e(),t("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.folder-explorer.toolbar.tooltips.edit-path"),expression:"$t('org.vue.components.folder-explorer.toolbar.tooltips.edit-path')"}],staticClass:"edit-path-button icon-button",attrs:{"icon-left":"edit"},on:{click:function(n){return e.openPathEdit()}}})]}}])},[t("ApolloSubscribeToMore",{attrs:{document:i(95108),"update-query":e.cwdChangedUpdate}})],1),e.error?t("VueIcon",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.error.message,expression:"error.message"}],staticClass:"error-icon big",attrs:{icon:"error"}}):e._e(),t("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.folder-explorer.toolbar.tooltips.refresh"),expression:"$t('org.vue.components.folder-explorer.toolbar.tooltips.refresh')"}],staticClass:"icon-button",attrs:{"icon-left":"refresh"},on:{click:e.refreshFolder}}),t("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.folder-explorer.toolbar.tooltips.favorite"),expression:"$t('org.vue.components.folder-explorer.toolbar.tooltips.favorite')"}],staticClass:"icon-button favorite-button",attrs:{"icon-left":e.folderCurrent.favorite?"star":"star_border"},on:{click:function(n){return e.toggleFavorite()}}}),t("VueDropdown",{attrs:{placement:"bottom-end"}},[t("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.folder-explorer.toolbar.tooltips.favorite-folders"),expression:"$t('org.vue.components.folder-explorer.toolbar.tooltips.favorite-folders')"}],staticClass:"icon-button",attrs:{slot:"trigger","icon-left":"arrow_drop_down"},slot:"trigger"}),e.foldersFavorite.length?e._l(e.foldersFavorite,(function(n){return t("VueDropdownButton",{key:n.path,attrs:{label:n.path,"icon-left":"folder"},on:{click:function(i){return e.openFolder(n.path)}}})})):t("div",{staticClass:"vue-ui-empty"},[e._v(" "+e._s(e.$t("org.vue.components.folder-explorer.toolbar.empty"))+" ")])],2),t("VueDropdown",{attrs:{placement:"bottom-end"}},[t("VueButton",{staticClass:"icon-button",attrs:{slot:"trigger","icon-left":"more_vert"},slot:"trigger"}),t("VueDropdownButton",{attrs:{label:e.$t("org.vue.components.folder-explorer.new-folder.action"),"icon-left":"create_new_folder"},on:{click:function(n){e.showNewFolder=!0}}}),t("VueSwitch",{staticClass:"extend-left",attrs:{icon:"visibility"},model:{value:e.showHidden,callback:function(n){e.showHidden=n},expression:"showHidden"}},[e._v(" "+e._s(e.$t("org.vue.components.folder-explorer.toolbar.show-hidden"))+" ")])],1)],1),t("div",{ref:"folders",staticClass:"folders"},[t("transition",{attrs:{name:"vue-ui-fade"}},[e.loading?t("VueLoadingBar",{staticClass:"ghost primary",attrs:{unknown:""}}):e._e()],1),e.folderCurrent&&e.folderCurrent.children?[e._l(e.folderCurrent.children,(function(n){return[e.showHidden||!n.hidden?t("FolderExplorerItem",{key:n.name,attrs:{folder:n},on:{select:function(i){return e.openFolder(n.path)}}}):e._e()]}))]:e._e()],2),e.showNewFolder?t("VueModal",{staticClass:"small new-folder-modal",attrs:{title:e.$t("org.vue.components.folder-explorer.new-folder.title")},on:{close:function(n){e.showNewFolder=!1}}},[t("div",{staticClass:"default-body"},[t("VueFormField",{attrs:{title:e.$t("org.vue.components.folder-explorer.new-folder.field.title"),subtitle:e.$t("org.vue.components.folder-explorer.new-folder.field.subtitle")}},[t("VueInput",{directives:[{name:"focus",rawName:"v-focus"}],attrs:{"icon-left":"folder"},on:{keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.createFolder()}},model:{value:e.newFolderName,callback:function(n){e.newFolderName=n},expression:"newFolderName"}})],1)],1),t("div",{staticClass:"actions end",attrs:{slot:"footer"},slot:"footer"},[t("VueButton",{staticClass:"flat close",attrs:{label:e.$t("org.vue.components.folder-explorer.new-folder.cancel")},on:{click:function(n){e.showNewFolder=!1}}}),t("VueButton",{staticClass:"primary save",attrs:{label:e.$t("org.vue.components.folder-explorer.new-folder.create"),"icon-left":"create_new_folder",disabled:!e.newFolderValid},on:{click:function(n){return e.createFolder()}}})],1)]):e._e()],1)},a=[];function o(e){return!e.match(/[/@\s+%:]|^[_.]/)&&encodeURIComponent(e)===e&&e.length<=214}function r(e){return e=e.replace(/\\/g,"/"),e.split("/").every(o)}var s=i(9987),l=i.n(s),d=i(17222),c=i.n(d),u=i(41871),f=i.n(u),m=i(98645),v=i.n(m),p=i(11722),h=i.n(p),g=i(99483),k=i.n(g),b=i(91343),S=i.n(b);const w="vue-ui.show-hidden-folders";var y={data(){return{loading:0,error:!1,editingPath:!1,editedPath:"",folderCurrent:{},foldersFavorite:[],showHidden:"true"===localStorage.getItem(w),showNewFolder:!1,newFolderName:""}},apollo:{folderCurrent:{query:l(),fetchPolicy:"network-only",loadingKey:"loading",async result(){await this.$nextTick(),this.$refs.folders.scrollTop=0}},foldersFavorite:c()},computed:{newFolderValid(){return r(this.newFolderName)}},watch:{showHidden(e){e?localStorage.setItem(w,"true"):localStorage.removeItem(w)}},beforeRouteLeave(e,n,i){e.matched.some((e=>e.meta.needProject))&&this.resetProjectCwd(),i()},methods:{async openFolder(e){this.editingPath=!1,this.error=null,this.loading++;try{await this.$apollo.mutate({mutation:f(),variables:{path:e},update:(e,{data:{folderOpen:n}})=>{e.writeQuery({query:l(),data:{folderCurrent:n}})}})}catch(n){this.error=n}this.loading--},async openParentFolder(e){this.editingPath=!1,this.error=null,this.loading++;try{await this.$apollo.mutate({mutation:v(),update:(e,{data:{folderOpenParent:n}})=>{e.writeQuery({query:l(),data:{folderCurrent:n}})}})}catch(n){this.error=n}this.loading--},async toggleFavorite(){await this.$apollo.mutate({mutation:h(),variables:{path:this.folderCurrent.path,favorite:!this.folderCurrent.favorite},update:(e,{data:{folderSetFavorite:n}})=>{e.writeQuery({query:l(),data:{folderCurrent:n}});let i=e.readQuery({query:c()});if(i={foldersFavorite:i.foldersFavorite.slice()},n.favorite)i.foldersFavorite.push(n);else{const e=i.foldersFavorite.findIndex((e=>e.path===n.path));-1!==e&&i.foldersFavorite.splice(e,1)}e.writeQuery({query:c(),data:i})}})},cwdChangedUpdate(e,{subscriptionData:n}){return{cwd:n.data.cwd}},async openPathEdit(){this.editedPath=this.folderCurrent.path,this.editingPath=!0,await this.$nextTick(),this.$refs.pathInput.focus()},submitPathEdit(){this.openFolder(this.editedPath)},refreshFolder(){this.openFolder(this.folderCurrent.path)},resetProjectCwd(){this.$apollo.mutate({mutation:k()})},slicePath(e){const n=[];let i,t=0;const a=()=>(i=e.indexOf("/",t),-1===i&&(i=e.indexOf("\\",t)),-1!==i),o=i=>{const a=e.substring(t,i),o=e.substring(0,i+1);n.push({name:a,path:o})};while(a())o(i),t=i+1;return t{e.writeQuery({query:r(),data:{consoleLogs:[]}}),e.writeQuery({query:l(),data:{consoleLogLast:null}})}}),this.close()},close(){this.$emit("close")}}},f=u,m=i(47262),v=(0,m.Z)(f,t,a,!1,null,"7cd2133d",null),p=v.exports},27670:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return u}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"project-plugin-add-local"},[i("FolderExplorer"),i("div",{staticClass:"actions-bar center"},[i("VueButton",{staticClass:"big primary",attrs:{"icon-left":"add",label:e.$t("org.vue.views.project-plugin-add-local.buttons.add")},on:{click:function(n){return e.addPlugin()}}})],1)],1)},a=[],o=i(48408),r=i.n(o),s={methods:{async addPlugin(){await this.$apollo.mutate({mutation:r()}),this.$emit("installed")}}},l=s,d=i(47262),c=(0,d.Z)(l,t,a,!1,null,"eadd60ec",null),u=c.exports},86710:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return p}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"project-plugin-item list-item"},[i("div",{staticClass:"content"},[e.visible?e._e():i("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:e.visibilityChanged,expression:"visibilityChanged"}]}),i("ItemLogo",{attrs:{image:e.pluginLogo&&e.pluginLogo.logo,"fallback-icon":"extension"}}),i("ListItemInfo",{attrs:{name:e.plugin.id,link:e.plugin.website,"show-description":""}},[i("span",{staticClass:"plugin-description",attrs:{slot:"description"},slot:"description"},[i("span",{staticClass:"info version"},[i("span",{staticClass:"label"},[e._v(e._s(e.$t("org.vue.components.project-plugin-item.version")))]),i("span",{staticClass:"value"},[e._v(e._s(e.pluginDetails&&e.pluginDetails.version.current))])]),i("span",{staticClass:"info latest"},[i("span",{staticClass:"label"},[e._v(e._s(e.$t("org.vue.components.project-plugin-item.latest")))]),e.pluginDetails&&e.pluginDetails.version.current!==e.pluginDetails.version.latest?i("VueIcon",{staticClass:"top medium",attrs:{icon:"warning"}}):e._e(),i("span",{staticClass:"value"},[e._v(e._s(e.pluginDetails&&e.pluginDetails.version.latest))])],1),e.plugin.official?i("span",{staticClass:"info"},[i("VueIcon",{staticClass:"top medium",attrs:{icon:"star"}}),e._v(" "+e._s(e.$t("org.vue.components.project-plugin-item.official"))+" ")],1):e._e(),e.plugin.installed?i("span",{staticClass:"info"},[e.isLocal?[i("VueIcon",{staticClass:"top medium",attrs:{icon:"folder"}}),i("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.pluginDetails.version.localPath,expression:"pluginDetails.version.localPath"}]},[e._v(" "+e._s(e.$t("org.vue.components.project-plugin-item.local"))+" ")])]:[i("VueIcon",{staticClass:"top medium",attrs:{icon:"check_circle"}}),e._v(" "+e._s(e.$t("org.vue.components.project-plugin-item.installed"))+" ")]],2):e._e(),e.pluginDetails&&e.pluginDetails.description?i("span",{staticClass:"package-description"},[e._v(" "+e._s(e.pluginDetails.description)+" ")]):e._e()])]),e.isLocal?i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.project-plugin-item.actions.refresh",{target:e.plugin.id}),expression:"$t('org.vue.components.project-plugin-item.actions.refresh', { target: plugin.id })"}],staticClass:"icon-button",attrs:{"icon-left":"cached","loading-left":e.updating},on:{click:function(n){return e.updatePlugin(!n.shiftKey)}}}):e.pluginDetails&&e.pluginDetails.version.current!==e.pluginDetails.version.wanted?i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.project-plugin-item.actions.update",{target:e.plugin.id}),expression:"$t('org.vue.components.project-plugin-item.actions.update', { target: plugin.id })"}],staticClass:"icon-button",attrs:{"icon-left":"file_download","loading-left":e.updating},on:{click:function(n){return e.updatePlugin()}}}):e._e()],1)])},a=[],o=i(78114),r=i.n(o),s=i(89818),l=i.n(s),d=i(67942),c=i.n(d),u={props:{plugin:{type:Object,required:!0}},data(){return{pluginDetails:null,pluginLogo:null,updating:!1,visible:!1}},apollo:{pluginDetails:{query:r(),variables(){return{id:this.plugin.id}},skip(){return!this.visible}},pluginLogo:{query:l(),variables(){return{id:this.plugin.id}}}},computed:{isLocal(){return this.pluginDetails&&this.pluginDetails.version.localPath}},methods:{async updatePlugin(e=!0){this.updating=!0;try{this.$apollo.mutate({mutation:c(),variables:{id:this.plugin.id,full:e}})}catch(n){console.error(n)}this.updating=!1},visibilityChanged(e){this.visible||(this.visible=e)}}},f=u,m=i(47262),v=(0,m.Z)(f,t,a,!1,null,"9b84856a",null),p=v.exports},60866:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return p}});var t=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"project-plugins page"},[t("ContentView",{staticClass:"limit-width list",attrs:{title:e.$t("org.vue.views.project-plugins.title")}},[t("template",{slot:"actions"},[t("VueInput",{staticClass:"round",attrs:{"icon-left":"search"},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}}),t("VueButton",{staticClass:"primary round",attrs:{"icon-left":"add",label:e.$t("org.vue.views.project-plugins.button"),to:{name:"project-plugins-add"},"data-testid":"add-plugin"}}),t("VueDropdown",[t("VueButton",{staticClass:"icon-button flat round",attrs:{slot:"trigger","icon-left":"more_vert"},slot:"trigger"}),t("VueDropdownButton",{attrs:{"icon-left":"file_download",label:e.$t("org.vue.views.project-plugins.update-all")},on:{click:function(n){return e.updateAll()}}})],1)],1),t("ApolloQuery",{attrs:{query:i(97692)},scopedSlots:e._u([{key:"default",fn:function(n){var i=n.result,a=i.data,o=i.loading;return[t("div",{staticClass:"cta-text"},[e._v(e._s(e.$t("org.vue.views.project-plugins.heading")))]),!o||a&&a.plugins?a?t("ListFilter",{staticClass:"plugins",attrs:{list:a.plugins,filter:function(n){return!e.search||n.id.includes(e.search)}},scopedSlots:e._u([{key:"default",fn:function(n){var i=n.list;return e._l(i,(function(e){return t("ProjectPluginItem",{key:e.id,attrs:{plugin:e}})}))}}],null,!0)}):e._e():t("VueLoadingIndicator",{staticClass:"overlay"})]}}])})],2),t("ProgressScreen",{attrs:{"progress-id":"plugin-update"}}),t("ProgressScreen",{attrs:{"progress-id":"plugins-update"}})],1)},a=[],o=i(88615),r=i.n(o),s=i(43146),l=i.n(s),d=i(97692),c=i.n(d),u={name:"ProjectPlugins",metaInfo(){return{title:this.$t("org.vue.views.project-plugins.title")}},data(){return{search:""}},apollo:{projectCurrent:l()},bus:{quickOpenProject(e){this.$apollo.getClient().writeQuery({query:c(),data:{plugins:null}})}},methods:{updateAll(){return this.$apollo.mutate({mutation:r()})}}},f=u,m=i(47262),v=(0,m.Z)(f,t,a,!1,null,"57b470b3",null),p=v.exports},7058:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return y}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"project-plugins-add page"},[i("div",{staticClass:"content"},[i("portal",{attrs:{to:"top-title"}},[e._v(e._s(e.$t("org.vue.views.project-plugins-add.title")))]),i("StepWizard",{staticClass:"frame",attrs:{"tab-id":e.tabId},on:{"update:tabId":function(n){e.tabId=n},"update:tab-id":function(n){e.tabId=n}}},[[i("VueTab",{attrs:{id:"search",label:e.$t("org.vue.views.project-plugins-add.tabs.search.label"),icon:"search",disabled:""}},[i("NpmPackageSearch",{attrs:{filters:"computedKeywords:vue-cli-plugin","load-metadata":""},on:{close:function(n){return e.close()},install:e.installPlugin}},[i("template",{slot:"more-actions"},[i("VueButton",{staticClass:"big flat",attrs:{"icon-left":"folder",label:e.$t("org.vue.views.project-plugins-add.buttons.add-local")},on:{click:function(n){e.showLocalAdd=!0}}})],1)],2)],1),i("VueTab",{attrs:{id:"config",label:e.$t("org.vue.views.project-plugins-add.tabs.configuration.label"),icon:"settings_applications",disabled:"",lazy:""}},[i("div",{staticClass:"content vue-ui-disable-scroll"},[i("div",{staticClass:"cta-text"},[e._v(e._s(e.$t("org.vue.views.project-plugins-add.tabs.configuration.heading",{target:e.pluginId})))]),i("PromptsList",{attrs:{prompts:e.visiblePrompts},on:{answer:e.answerPrompt}})],1),i("div",{staticClass:"actions-bar no-padding-x"},[i("VueButton",{staticClass:"big",attrs:{"icon-left":"arrow_back",label:e.$t("org.vue.views.project-plugins-add.tabs.configuration.buttons.cancel")},on:{click:function(n){e.showCancelInstall=!0}}}),i("VueButton",{staticClass:"big primary",attrs:{"icon-left":"done",label:e.$t("org.vue.views.project-plugins-add.tabs.configuration.buttons.finish"),disabled:!e.configurationValid,"data-testid":"finish-install"},on:{click:function(n){return e.invokePlugin()}}})],1)]),i("VueTab",{attrs:{id:"diff",label:e.$t("org.vue.views.project-plugins-add.tabs.diff.label"),icon:"note_add",disabled:"",lazy:""}},[i("FileDiffView",{on:{continue:function(n){return e.finishInstall()}}})],1)]],2)],1),e.showCancelInstall?i("VueModal",{staticClass:"medium",attrs:{title:e.$t("org.vue.views.project-plugins-add.modal.title",{target:e.pluginId})},on:{close:function(n){e.showCancelInstall=!1}}},[i("div",{staticClass:"default-body"},[e._v(" "+e._s(e.$t("org.vue.views.project-plugins-add.modal.body",{target:e.pluginId}))+" ")]),i("div",{staticClass:"actions end",attrs:{slot:"footer"},slot:"footer"},[i("VueButton",{staticClass:"flat",attrs:{label:e.$t("org.vue.views.project-plugins-add.modal.buttons.back")},on:{click:function(n){e.showCancelInstall=!1}}}),i("VueButton",{attrs:{label:e.$t("org.vue.views.project-plugins-add.modal.buttons.cancel")},on:{click:function(n){return e.cancelInstall()}}}),i("VueButton",{staticClass:"danger",attrs:{label:e.$t("org.vue.views.project-plugins-add.modal.buttons.uninstall"),"icon-left":"delete_forever"},on:{click:function(n){return e.uninstallPlugin()}}})],1)]):e._e(),e.showLocalAdd?i("VueModal",{attrs:{title:e.$t("org.vue.views.project-plugin-add-local.title")},on:{close:function(n){return e.closeLocalAdd()}}},[i("div",{staticClass:"default-body"},[i("ProjectPluginAddLocal",{on:{installed:e.localPluginInstalled}})],1)]):e._e(),i("ProgressScreen",{attrs:{"progress-id":"plugin-installation"}})],1)},a=[],o=i(40888),r=i(43273),s=i.n(r),l=i(52806),d=i.n(l),c=i(45015),u=i.n(c),f=i(75949),m=i.n(f),v=i(50816),p=i.n(v),h=i(99483),g=i.n(h),k={name:"ProjectPluginsAdd",mixins:[(0,o.Z)({field:"pluginInstallation",query:s()})],metaInfo(){return{title:this.$t("org.vue.views.project-plugins-add.title")}},data(){return{tabId:"search",showCancelInstall:!1,pluginInstallation:null,showLocalAdd:!1}},apollo:{pluginInstallation:{query:s(),fetchPolicy:"network-only",result(){this.checkTab()}}},computed:{pluginId(){return this.pluginInstallation&&this.pluginInstallation.pluginId}},mounted(){requestAnimationFrame((()=>{this.checkTab()}))},destroyed(){this.closeLocalAdd()},methods:{close(){this.$router.push({name:"project-plugins"})},checkTab(){if(this.pluginInstallation)switch(this.pluginInstallation.pluginId?this.tabId="config":this.tabId="search",this.pluginInstallation.step){case"config":this.tabId="config";break;case"diff":this.tabId="diff";break;default:this.tabId="search"}},async installPlugin(e){try{await this.$apollo.mutate({mutation:d(),variables:{id:e}}),this.tabId="config"}catch(n){console.error(n)}},cancelInstall(){this.tabId="search",this.showCancelInstall=!1},localPluginInstalled(){this.closeLocalAdd(),this.tabId="config"},async closeLocalAdd(){this.showLocalAdd=!1,await this.$apollo.mutate({mutation:g()})},async uninstallPlugin(){this.showCancelInstall=!1;try{await this.$apollo.mutate({mutation:u(),variables:{id:this.pluginId}}),this.cancelInstall()}catch(e){console.error(e)}},async invokePlugin(){try{await this.$apollo.mutate({mutation:m(),variables:{id:this.pluginId}}),this.tabId="diff"}catch(e){console.error(e)}},async finishInstall(){try{await this.$apollo.mutate({mutation:p()}),this.close()}catch(e){console.error(e)}}}},b=k,S=i(47262),w=(0,S.Z)(b,t,a,!1,null,"290be5fe",null),y=w.exports},89119:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return x}});var t=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"project-create page"},[t("div",{staticClass:"content"},[t("StepWizard",{staticClass:"frame",attrs:{title:e.$t("org.vue.views.project-create.title")},scopedSlots:e._u([{key:"default",fn:function(n){var a=n.next,o=n.previous;return[t("VueTab",{staticClass:"details",attrs:{id:"details",label:e.$t("org.vue.views.project-create.tabs.details.title"),icon:"subject"}},[t("div",{staticClass:"content vue-ui-disable-scroll"},[t("div",{staticClass:"project-details vue-ui-grid col-1"},[t("VueFormField",{attrs:{title:e.$t("org.vue.views.project-create.tabs.details.form.folder.label")}},[t("VueInput",{staticClass:"big app-name",attrs:{placeholder:e.$t("org.vue.views.project-create.tabs.details.form.folder.placeholder"),"icon-left":"folder"},model:{value:e.formData.folder,callback:function(n){e.$set(e.formData,"folder",n)},expression:"formData.folder"}}),t("div",{attrs:{slot:"subtitle"},slot:"subtitle"},[t("div",{staticClass:"project-path"},[t("div",{staticClass:"path"},[t("span",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.cwd,expression:"cwd"}],staticClass:"cwd"},[e._v(" "+e._s(e._f("folder")(e.cwd,42-e.formData.folder.length))+" ")]),t("span",{staticClass:"folder"},[e._v(e._s(e.formData.folder))])]),t("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.views.project-create.tabs.details.form.folder.tooltip"),expression:"$t('org.vue.views.project-create.tabs.details.form.folder.tooltip')"}],staticClass:"icon-button change-folder",attrs:{"icon-left":"edit",to:{name:"project-select",query:{tab:"create",hideTabs:!0}}}})],1),e.formData.folder&&!e.folderNameValid?t("div",{staticClass:"vue-ui-text danger banner"},[t("VueIcon",{staticClass:"big",attrs:{icon:"error"}}),t("span",[e._v(" "+e._s(e.$t("org.vue.views.project-create.tabs.details.form.folder.folder-name-invalid"))+": "+e._s(e.folderNameValidationMessage)+" ")])],1):e._e(),e.formData.folder?t("ApolloQuery",{attrs:{query:i(21536),variables:{file:e.cwd+"/"+e.formData.folder},"fetch-policy":"no-cache"},scopedSlots:e._u([{key:"default",fn:function(n){var i=n.result.data;return i&&i.folderExists?t("div",{staticClass:"vue-ui-text warning banner"},[t("VueIcon",{staticClass:"big",attrs:{icon:"warning"}}),t("span",[e._v(e._s(e.$t("org.vue.views.project-create.tabs.details.form.folder.folder-exists")))])],1):e._e()}}],null,!0)}):e._e()],1)],1),t("VueFormField",{attrs:{title:e.$t("org.vue.views.project-create.tabs.details.form.manager.label")}},[t("VueSelect",{model:{value:e.formData.packageManager,callback:function(n){e.$set(e.formData,"packageManager",n)},expression:"formData.packageManager"}},[t("VueSelectButton",{attrs:{value:void 0,label:e.$t("org.vue.views.project-create.tabs.details.form.manager.default")}}),t("VueSelectButton",{attrs:{value:"npm",label:"npm"}}),t("VueSelectButton",{attrs:{value:"yarn",label:"yarn"}}),t("VueSelectButton",{attrs:{value:"pnpm",label:"pnpm"}})],1)],1),t("VueFormField",{attrs:{title:e.$t("org.vue.views.project-create.tabs.details.form.options.label")}},[t("VueSwitch",{staticClass:"extend-left force",model:{value:e.formData.force,callback:function(n){e.$set(e.formData,"force",n)},expression:"formData.force"}},[e._v(" "+e._s(e.$t("org.vue.views.project-create.tabs.details.form.options.force"))+" ")]),t("VueSwitch",{staticClass:"extend-left bare",model:{value:e.formData.bare,callback:function(n){e.$set(e.formData,"bare",n)},expression:"formData.bare"}},[e._v(" "+e._s(e.$t("org.vue.views.project-create.tabs.details.form.options.bare"))+" ")])],1),t("VueFormField",{attrs:{title:e.$t("org.vue.views.project-create.tabs.details.form.options.git-title")}},[t("VueSwitch",{staticClass:"extend-left git",model:{value:e.formData.enableGit,callback:function(n){e.$set(e.formData,"enableGit",n)},expression:"formData.enableGit"}},[e._v(" "+e._s(e.$t("org.vue.views.project-create.tabs.details.form.options.git"))+" ")]),t("VueInput",{directives:[{name:"show",rawName:"v-show",value:e.formData.enableGit,expression:"formData.enableGit"}],attrs:{placeholder:e.$t("org.vue.views.project-create.tabs.details.form.options.git-commit-message")},model:{value:e.formData.gitCommitMessage,callback:function(n){e.$set(e.formData,"gitCommitMessage",n)},expression:"formData.gitCommitMessage"}})],1)],1)]),t("div",{staticClass:"actions-bar"},[t("VueButton",{staticClass:"big close",attrs:{"icon-left":"close",label:e.$t("org.vue.views.project-create.tabs.details.buttons.cancel")},on:{click:function(n){e.showCancel=!0}}}),t("VueButton",{staticClass:"big primary next",attrs:{"icon-right":"arrow_forward",label:e.$t("org.vue.views.project-create.tabs.details.buttons.next"),disabled:!e.detailsValid},on:{click:function(e){return a()}}})],1)]),t("VueTab",{staticClass:"presets",attrs:{id:"presets",label:e.$t("org.vue.views.project-create.tabs.presets.title"),icon:"check_circle",disabled:!e.detailsValid,lazy:""}},[t("div",{staticClass:"content vue-ui-disable-scroll"},[t("div",{staticClass:"vue-ui-text info banner"},[t("VueIcon",{staticClass:"big",attrs:{icon:"info"}}),t("span",[e._v(e._s(e.$t("org.vue.views.project-create.tabs.presets.description")))])],1),t("div",{staticClass:"cta-text"},[e._v(" "+e._s(e.$t("org.vue.views.project-create.tabs.presets.select"))+" ")]),e.projectCreation?e._l(e.projectCreation.presets,(function(n){return t("ProjectPresetItem",{key:n.id,attrs:{preset:n,selected:e.formData.selectedPreset===n.id},nativeOn:{click:function(i){return e.selectPreset(n.id)}}})})):e._e(),t("ProjectPresetItem",{attrs:{preset:e.remotePresetInfo,selected:"__remote__"===e.formData.selectedPreset,description:e.formData.remotePreset.url},nativeOn:{click:function(n){return e.selectPreset("__remote__")}}})],2),t("div",{staticClass:"actions-bar"},[t("VueButton",{staticClass:"big previous",attrs:{"icon-left":"arrow_back",label:e.$t("org.vue.views.project-create.tabs.presets.buttons.previous")},on:{click:function(e){return o()}}}),e.manual?t("VueButton",{staticClass:"big primary next",attrs:{"icon-right":"arrow_forward",label:e.$t("org.vue.views.project-create.tabs.presets.buttons.next"),disabled:!e.presetValid},on:{click:function(e){return a()}}}):t("VueButton",{staticClass:"big primary next",attrs:{"icon-left":"done",label:e.$t("org.vue.views.project-create.tabs.presets.buttons.create"),disabled:!e.formData.selectedPreset},on:{click:function(n){return e.createWithoutSaving()}}})],1)]),t("VueTab",{staticClass:"features",attrs:{id:"features",label:e.$t("org.vue.views.project-create.tabs.features.title"),icon:"device_hub",disabled:!e.detailsValid||!e.presetValid||!e.manual,lazy:""}},[t("div",{staticClass:"content vue-ui-disable-scroll"},[t("div",{staticClass:"vue-ui-text info banner"},[t("VueIcon",{staticClass:"big",attrs:{icon:"info"}}),t("span",[e._v(e._s(e.$t("org.vue.views.project-create.tabs.features.description")))])],1),t("div",{staticClass:"cta-text"},[e._v(" "+e._s(e.$t("org.vue.views.project-create.tabs.features.enable"))+" ")]),e.projectCreation?e._l(e.projectCreation.features,(function(n){return t("ProjectFeatureItem",{key:n.id,attrs:{feature:n},nativeOn:{click:function(i){return e.toggleFeature(n)}}})})):e._e()],2),t("div",{staticClass:"actions-bar"},[t("VueButton",{staticClass:"big previous",attrs:{"icon-left":"arrow_back",label:e.$t("org.vue.views.project-create.tabs.features.buttons.previous")},on:{click:function(e){return o()}}}),e.visiblePrompts.length?t("VueButton",{staticClass:"big primary next",attrs:{"icon-right":"arrow_forward",label:e.$t("org.vue.views.project-create.tabs.features.buttons.next")},on:{click:function(e){return a()}}}):t("VueButton",{staticClass:"big primary next",attrs:{"icon-left":"done",label:e.$t("org.vue.views.project-create.tabs.features.buttons.create")},on:{click:function(n){e.showSavePreset=!0}}})],1)]),t("VueTab",{staticClass:"config",attrs:{id:"config",label:e.$t("org.vue.views.project-create.tabs.configuration.title"),icon:"settings_applications",disabled:!e.detailsValid||!e.presetValid||!e.manual||!e.visiblePrompts.length,lazy:""}},[t("div",{staticClass:"content vue-ui-disable-scroll"},[t("PromptsList",{attrs:{prompts:e.visiblePrompts},on:{answer:e.answerPrompt}})],1),t("div",{staticClass:"actions-bar"},[t("VueButton",{staticClass:"big previous",attrs:{"icon-left":"arrow_back",label:e.$t("org.vue.views.project-create.tabs.configuration.buttons.previous")},on:{click:function(e){return o()}}}),t("VueButton",{staticClass:"big primary next",attrs:{"icon-left":"done",label:e.$t("org.vue.views.project-create.tabs.configuration.buttons.create"),disabled:!e.configurationValid},on:{click:function(n){e.showSavePreset=!0}}})],1)])]}}])})],1),e.showRemotePreset?t("VueModal",{staticClass:"small remove-preset-modal",attrs:{title:e.$t("org.vue.views.project-create.tabs.presets.modal.title")},on:{close:function(n){return e.closeRemotePresetModal()}}},[t("div",{staticClass:"default-body vue-ui-grid big-gap col-1"},[t("VueFormField",{attrs:{title:e.$t("org.vue.views.project-create.tabs.presets.remote.url.title"),subtitle:e.$t("org.vue.views.project-create.tabs.presets.remote.url.subtitle")}},[t("VueInput",{directives:[{name:"focus",rawName:"v-focus"}],attrs:{"icon-left":"language"},model:{value:e.formData.remotePreset.url,callback:function(n){e.$set(e.formData.remotePreset,"url",n)},expression:"formData.remotePreset.url"}})],1),t("VueFormField",{attrs:{title:e.$t("org.vue.views.project-create.tabs.presets.remote.options")}},[t("VueSwitch",{staticClass:"extend-left",attrs:{disabled:e.remoteNotGithub},model:{value:e.formData.remotePreset.clone,callback:function(n){e.$set(e.formData.remotePreset,"clone",n)},expression:"formData.remotePreset.clone"}},[e._v(" "+e._s(e.$t("org.vue.views.project-create.tabs.presets.remote.clone"))+" ")])],1)],1),t("div",{staticClass:"actions end",attrs:{slot:"footer"},slot:"footer"},[t("VueButton",{staticClass:"flat",attrs:{label:e.$t("org.vue.views.project-create.tabs.presets.remote.cancel")},on:{click:function(n){return e.closeRemotePresetModal(!0)}}}),t("VueButton",{staticClass:"primary",attrs:{label:e.$t("org.vue.views.project-create.tabs.presets.remote.done"),disabled:!e.formData.remotePreset.url||!e.remotePresetValid,"loading-secondary":null===e.remotePresetValid,"icon-left":"done"},on:{click:function(n){return e.closeRemotePresetModal()}}})],1)]):e._e(),e.showCancel?t("VueModal",{staticClass:"small",attrs:{title:e.$t("org.vue.views.project-create.tabs.details.modal.title")},on:{close:function(n){e.showCancel=!1}}},[t("div",{staticClass:"default-body"},[e._v(" "+e._s(e.$t("org.vue.views.project-create.tabs.details.modal.body"))+" ")]),t("div",{staticClass:"actions end",attrs:{slot:"footer"},slot:"footer"},[t("VueButton",{staticClass:"flat",attrs:{label:e.$t("org.vue.views.project-create.tabs.details.modal.buttons.back")},on:{click:function(n){e.showCancel=!1}}}),t("VueButton",{staticClass:"danger",attrs:{to:{name:"project-select"},label:e.$t("org.vue.views.project-create.tabs.details.modal.buttons.clear"),"icon-left":"delete_forever"}})],1)]):e._e(),e.showSavePreset?t("VueModal",{staticClass:"medium save-preset-modal",attrs:{title:e.$t("org.vue.views.project-create.tabs.configuration.modal.title")},on:{close:function(n){e.showSavePreset=!1}}},[t("div",{staticClass:"default-body"},[t("VueFormField",{attrs:{title:e.$t("org.vue.views.project-create.tabs.configuration.modal.body.title"),subtitle:e.$t("org.vue.views.project-create.tabs.configuration.modal.body.subtitle")}},[t("VueInput",{directives:[{name:"focus",rawName:"v-focus"}],attrs:{"icon-left":"local_offer"},model:{value:e.formData.save,callback:function(n){e.$set(e.formData,"save",n)},expression:"formData.save"}})],1)],1),t("div",{staticClass:"actions end",attrs:{slot:"footer"},slot:"footer"},[t("VueButton",{staticClass:"flat close",attrs:{label:e.$t("org.vue.views.project-create.tabs.configuration.modal.buttons.cancel")},on:{click:function(n){e.showSavePreset=!1}}}),t("VueButton",{staticClass:"continue",attrs:{label:e.$t("org.vue.views.project-create.tabs.configuration.modal.buttons.continue")},on:{click:function(n){return e.createWithoutSaving()}}}),t("VueButton",{staticClass:"primary save",attrs:{label:e.$t("org.vue.views.project-create.tabs.configuration.modal.buttons.create"),"icon-left":"save",disabled:!e.formData.save},on:{click:function(n){return e.createProject()}}})],1)]):e._e(),t("ProgressScreen",{attrs:{"progress-id":"project-create",debug:e.debug}})],1)},a=[],o=i(40888),r=i(17165),s=i.n(r),l=i(40001),d=i.n(l),c=i(77433),u=i.n(c),f=i(22190),m=i.n(f),v=i(12803),p=i.n(v),h=i(99973),g=i.n(h),k=i(40570),b=i.n(k),S=i(9594),w=i.n(S);function y(){return{folder:"",force:!1,bare:!1,enableGit:!0,gitCommitMessage:"",packageManager:void 0,selectedPreset:null,remotePreset:{url:"",clone:!1},save:""}}let D=y();var N={name:"ProjectCreate",mixins:[(0,o.Z)({field:"projectCreation",query:m()})],metaInfo(){return{title:this.$t("org.vue.views.project-create.title")}},data(){return{formData:D,cwd:"",projectCreation:null,showCancel:!1,showRemotePreset:!1,showSavePreset:!1,remotePresetValid:!1,debug:""}},apollo:{cwd:{query:u(),fetchPolicy:"network-only"},projectCreation:{query:m(),fetchPolicy:"network-only"}},computed:{folderNameValidationResult(){return s()(this.formData.folder)},folderNameValid(){return this.folderNameValidationResult.validForNewPackages},folderNameValidationMessage(){const e=[...this.folderNameValidationResult.errors||[],...this.folderNameValidationResult.warnings||[]];return e[0]},detailsValid(){return!!this.formData.folder&&this.folderNameValid},presetValid(){return!!this.formData.selectedPreset},manual(){return"__manual__"===this.formData.selectedPreset},remotePresetInfo(){return{name:"org.vue.views.project-create.tabs.presets.remote.name",description:"org.vue.views.project-create.tabs.presets.remote.description"}},remoteNotGithub(){const{url:e}=this.formData.remotePreset;return e&&/^(gitlab|bitbucket):/.test(e)}},watch:{"formData.remotePreset.url"(){this.debouncedCheckRemotePreset()},"formData.remotePreset.clone"(){this.debouncedCheckRemotePreset()},remoteNotGithub(e){e?(this.$_oldClone=this.formData.remotePreset.clone,this.formData.remotePreset.clone=e):this.formData.remotePreset.clone=this.$_oldClone,e||this.checkRemotePreset()}},created(){this.debouncedCheckRemotePreset=d()(this.checkRemotePreset,1e3)},beforeDestroy(){this.cancel()},methods:{async selectPreset(e){this.formData.selectedPreset=e,"__remote__"!==e?await this.$apollo.mutate({mutation:g(),variables:{id:e},update:(e,{data:{presetApply:n}})=>{e.writeQuery({query:m(),data:{projectCreation:n}})}}):this.showRemotePreset=!0},async toggleFeature(e){await this.$apollo.mutate({mutation:p(),variables:{id:e.id,enabled:!e.enabled}}),this.$apollo.queries.projectCreation.refetch()},createWithoutSaving(){this.formData.save="",this.createProject()},async createProject(){this.showSavePreset=!1;try{await this.$apollo.mutate({mutation:b(),variables:{input:{folder:this.formData.folder,force:this.formData.force,bare:this.formData.bare,enableGit:this.formData.enableGit,gitCommitMessage:this.formData.gitCommitMessage,packageManager:this.formData.packageManager,preset:this.formData.selectedPreset,remote:this.formData.remotePreset.url,clone:this.formData.remotePreset.clone,save:this.formData.save}}}),this.$router.push({name:"project-home"}),await this.$nextTick()}catch(e){console.error(e),this.debug=`ERROR: ${e}`}},async cancel(){D=y(),await this.$apollo.mutate({mutation:w()})},closeRemotePresetModal(e=!1){e&&(this.formData.remotePreset.url=""),this.showRemotePreset=!1,this.formData.remotePreset.url||(this.formData.selectedPreset=null)},async checkRemotePreset(){if(this.formData.remotePreset.url)if(this.formData.remotePreset.clone)this.remotePresetValid=!0;else{this.remotePresetValid=null;const e=`https://raw.githubusercontent.com/${this.formData.remotePreset.url}/master/preset.json`,n=await fetch(e);this.remotePresetValid=n.ok}else this.remotePresetValid=!1}}},E=N,j=i(47262),_=(0,j.Z)(E,t,a,!1,null,"33533e3c",null),x=_.exports},21275:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"project-feature-item list-item",class:{selected:e.feature.enabled},attrs:{"data-testid":e.feature.id}},[i("VueSwitch",{staticClass:"extend-left",attrs:{value:e.feature.enabled}},[i("ListItemInfo",{attrs:{name:e.$t(e.feature.name),description:e.$t(e.feature.description),link:e.feature.link,selected:e.feature.enabled}})],1)],1)},a=[],o={props:{feature:{type:Object,required:!0}}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,"4c4b8350",null),d=l.exports},12110:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"project-preset-item list-item",class:{selected:e.selected},attrs:{"data-testid":e.preset.id}},[i("div",{staticClass:"content"},[i("div",{staticClass:"radio-icon"},[i("VueIcon",{staticClass:"medium",attrs:{icon:e.selected?"radio_button_checked":"radio_button_unchecked"}})],1),i("ListItemInfo",{attrs:{name:e.$t(e.preset.name),description:e.description||e.$t(e.preset.description),link:e.preset.link,selected:e.selected}})],1)])},a=[],o={props:{preset:{type:Object,required:!0},selected:{type:Boolean,required:!0},description:{type:String,default:null}}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,"79290378",null),d=l.exports},74737:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return c}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("VueModal",{staticClass:"medium anchor",attrs:{title:e.$t("org.vue.components.project-rename.title")},on:{close:function(n){return e.$emit("close")}}},[i("div",{staticClass:"default-body"},[i("VueFormField",{attrs:{title:e.$t("org.vue.components.project-rename.name-field.title"),subtitle:e.$t("org.vue.components.project-rename.name-field.subtitle")}},[i("VueInput",{directives:[{name:"focus",rawName:"v-focus"}],staticClass:"big",attrs:{"icon-left":"folder"},on:{keyup:function(n){return!n.type.indexOf("key")&&e._k(n.keyCode,"enter",13,n.key,"Enter")?null:e.rename()}},model:{value:e.newName,callback:function(n){e.newName=n},expression:"newName"}})],1)],1),i("div",{staticClass:"actions",attrs:{slot:"footer"},slot:"footer"},[i("VueButton",{staticClass:"flat big close",attrs:{label:e.$t("org.vue.common.cancel")},on:{click:function(n){return e.$emit("close")}}}),i("VueButton",{staticClass:"primary big",attrs:{label:e.$t("org.vue.components.project-rename.submit")},on:{click:function(n){return e.rename()}}})],1)])},a=[],o=i(31452),r={props:{project:{type:Object,required:!0}},data(){return{newName:this.project.name,loading:!1}},methods:{async rename(){this.loading=!0,await this.$apollo.mutate({mutation:o.ZP` + mutation renameProject ($id: ID!, $name: String!) { + projectRename (id: $id, name: $name) { + id + name + } + } + `,variables:{id:this.project.id,name:this.newName}}),this.$emit("close")}}},s=r,l=i(47262),d=(0,l.Z)(s,t,a,!1,null,null,null),c=d.exports},84096:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return g}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"project-select page"},[i("StepWizard",{staticClass:"frame",attrs:{"tab-id":e.tab,title:e.$route.query.hideTabs?e.$t("org.vue.views.project-create.title"):e.$t("org.vue.views.project-select.title"),"hide-tabs":e.hideTabs},on:{"update:tabId":function(n){e.tab=n},"update:tab-id":function(n){e.tab=n}}},[i("VueTab",{staticClass:"select",attrs:{id:"existing",label:e.$t("org.vue.views.project-select.tabs.projects"),icon:"storage"}},[i("ProjectSelectList")],1),i("VueTab",{staticClass:"create",attrs:{id:"create",label:e.$t("org.vue.views.project-select.tabs.create"),icon:"add_box"}},[i("div",{staticClass:"content"},[i("FolderExplorer")],1),i("div",{staticClass:"actions-bar center"},[i("VueButton",{staticClass:"big primary create-project",attrs:{"icon-left":"add",label:e.$route.query.hideTabs?e.$t("org.vue.views.project-create.tabs.details.form.folder.action"):e.$t("org.vue.views.project-select.buttons.create")},on:{click:function(n){return e.createProject()}}})],1)]),i("VueTab",{staticClass:"import",attrs:{id:"import",label:e.$t("org.vue.views.project-select.tabs.import"),icon:"unarchive"}},[i("div",{staticClass:"content"},[i("FolderExplorer")],1),i("div",{staticClass:"actions-bar center"},[i("VueButton",{staticClass:"big primary import-project",attrs:{"icon-left":"unarchive",label:e.$route.query.action||e.$t("org.vue.views.project-select.buttons.import"),disabled:e.folderCurrent&&!e.folderCurrent.isPackage,loading:e.busy},on:{click:function(n){return e.importProject()}}})],1)])],1),i("div",{staticClass:"top-menu left"},[e.projectCurrent?i("VueButton",{staticClass:"flat icon-button",attrs:{to:{name:"home"},"icon-left":"arrow_back"}}):e._e()],1),i("div",{staticClass:"top-menu right"},[i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.views.about.title"),expression:"$t('org.vue.views.about.title')"}],staticClass:"flat icon-button",attrs:{to:{name:"about"},"icon-left":"help"}})],1),e.showNoModulesModal?i("VueModal",{staticClass:"small no-modules-modal",attrs:{title:e.$t("org.vue.views.project-select.import.no-modules.title")},on:{close:function(n){e.showNoModulesModal=!1}}},[i("div",{staticClass:"default-body"},[i("div",{staticClass:"message"},[e._v(" "+e._s(e.$t("org.vue.views.project-select.import.no-modules.message"))+" ")])]),i("div",{staticClass:"actions center",attrs:{slot:"footer"},slot:"footer"},[i("VueButton",{attrs:{label:e.$t("org.vue.views.project-select.import.force")},on:{click:function(n){return e.importProject(!0)}}}),i("VueButton",{staticClass:"primary",attrs:{label:e.$t("org.vue.views.project-select.import.no-modules.close")},on:{click:function(n){e.showNoModulesModal=!1}}})],1)]):e._e()],1)},a=[],o=i(9987),r=i.n(o),s=i(50448),l=i.n(s),d=i(64174),c=i.n(d),u=i(43146),f=i.n(u),m={name:"ProjectSelect",metaInfo(){return{title:this.$t("org.vue.views.project-select.title")}},data(){return{folderCurrent:{},tab:void 0,hideTabs:!!this.$route.query.hideTabs,showNoModulesModal:!1,busy:!1}},apollo:{folderCurrent:r(),projectCurrent:f()},mounted(){setTimeout((()=>{this.tab=this.$route.query.tab||"existing"}))},methods:{async createProject(){await this.$apollo.mutate({mutation:l()}),this.$router.push({name:"project-create"})},async importProject(e=!1){this.showNoModulesModal=!1,this.busy=!0,await this.$nextTick();try{await this.$apollo.mutate({mutation:c(),variables:{input:{path:this.folderCurrent.path,force:e}}}),this.$router.push({name:"project-home"})}catch(n){n.graphQLErrors&&n.graphQLErrors.some((e=>"NO_MODULES"===e.message))&&(this.showNoModulesModal=!0),this.busy=!1}}}},v=m,p=i(47262),h=(0,p.Z)(v,t,a,!1,null,"017a7afe",null),g=h.exports},98805:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return S}});var t=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"project-select-list"},[t("ApolloQuery",{attrs:{query:i(24971)},scopedSlots:e._u([{key:"default",fn:function(n){var i=n.result,a=i.data,o=i.loading;return[a?[a.projects.length?t("div",[t("div",{staticClass:"toolbar"},[t("VueInput",{staticClass:"round",attrs:{"icon-left":"search"},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}})],1),e._l([!0,!1],(function(n){return t("ListFilter",{key:n,attrs:{list:e.filterProjects(a.projects),filter:function(e){return!!e.favorite===n}},scopedSlots:e._u([{key:"default",fn:function(i){var o=i.list;return[a.projects.find((function(e){return e.favorite}))?t("div",{staticClass:"cta-text",class:n?"favorite":"other"},[e._v(" "+e._s(e.$t("org.vue.components.project-select-list.titles."+(n?"favorite":"other")))+" ")]):e._e(),t("ListSort",{attrs:{list:o,compare:e.compareProjects},scopedSlots:e._u([{key:"default",fn:function(n){var i=n.list;return e._l(i,(function(n){return t("ProjectSelectListItem",{key:n.id,class:{open:e.projectCurrent&&e.projectCurrent.id===n.id},attrs:{project:n},on:{remove:function(i){return e.removeProject(n)},favorite:function(i){return e.toggleFavorite(n)}},nativeOn:{click:function(i){return e.openProject(n)}}})}))}}],null,!0)})]}}],null,!0)})}))],2):t("div",{staticClass:"vue-ui-empty"},[t("VueIcon",{staticClass:"empty-icon",attrs:{icon:"attach_file"}}),t("div",[e._v(e._s(e.$t("org.vue.components.project-select-list.empty")))])],1)]:o?t("VueLoadingIndicator",{staticClass:"overlay"}):e._e()]}}])})],1)},a=[],o=i(71336),r=i(24971),s=i.n(r),l=i(43146),d=i.n(l),c=i(83492),u=i.n(c),f=i(25539),m=i.n(f),v=i(77536),p=i.n(v),h={data(){return{search:""}},apollo:{projectCurrent:d()},methods:{async openProject(e){this.projectCurrent&&this.projectCurrent.id===e.id||await this.$apollo.mutate({mutation:u(),variables:{id:e.id}}),this.$router.push({name:"project-home"})},async removeProject(e){await this.$apollo.mutate({mutation:m(),variables:{id:e.id},update:n=>{let i=n.readQuery({query:s()});i={projects:[...i.projects]};const t=i.projects.findIndex((n=>n.id===e.id));-1!==t&&i.projects.splice(t,1),n.writeQuery({query:s(),data:i})}})},async toggleFavorite(e){await this.$apollo.mutate({mutation:p(),variables:{id:e.id,favorite:e.favorite?0:1}})},compareProjects(e,n){return e.name.localeCompare(n.name)},filterProjects(e){const n=(0,o.C)(this.search);return n?e.filter((e=>n.test(e.path))):e}}},g=h,k=i(47262),b=(0,k.Z)(g,t,a,!1,null,"7fe81cfe",null),S=b.exports},22686:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return f}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"project-select-list-item list-item"},[i("div",{staticClass:"content"},[i("div",{staticClass:"favorite"},[i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.project-select-list-item.tooltips.favorite"),expression:"$t('org.vue.components.project-select-list-item.tooltips.favorite')"}],staticClass:"icon-button",attrs:{"icon-left":e.project.favorite?"star":"star_border","data-testid":"favorite-button"},on:{click:function(n){return n.stopPropagation(),e.$emit("favorite")}}})],1),i("div",{staticClass:"info"},[i("ListItemInfo",{attrs:{description:e.project.path}},[i("div",{staticClass:"name",attrs:{slot:"name"},slot:"name"},[i("span",[e._v(e._s(e.project.name))]),i("ProjectTasksDropdown",{staticClass:"bullet-menu",attrs:{tasks:e.project.tasks}})],1)])],1),i("div",{staticClass:"actions"},[i("VueButton",{attrs:{"icon-left":"open_in_browser"},on:{click:function(n){return n.stopPropagation(),e.openInEditor()}}},[e._v(" "+e._s(e.$t("org.vue.components.project-select-list-item.tooltips.open-in-editor"))+" ")]),e.project.homepage?i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.top-bar.homepage"),expression:"$t('org.vue.components.top-bar.homepage')"}],staticClass:"icon-button",attrs:{href:e.project.homepage,target:"_blank","icon-left":"open_in_new"},on:{click:function(e){e.stopPropagation()}}}):e._e(),i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.project-rename.title"),expression:"$t('org.vue.components.project-rename.title')"}],staticClass:"icon-button",attrs:{"icon-left":"edit"},on:{click:function(n){n.stopPropagation(),e.showRename=!0}}}),i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.project-select-list-item.tooltips.delete"),expression:"$t('org.vue.components.project-select-list-item.tooltips.delete')"}],staticClass:"icon-button",attrs:{"icon-left":"close","data-testid":"delete-button"},on:{click:function(n){return n.stopPropagation(),e.$emit("remove")}}})],1)]),e.showRename?i("ProjectRename",{attrs:{project:e.project},on:{close:function(n){e.showRename=!1}},nativeOn:{click:function(e){e.stopPropagation()}}}):e._e()],1)},a=[],o=i(71105),r=i.n(o),s=i(74737),l={components:{ProjectRename:s["default"]},props:{project:{type:Object,required:!0}},data(){return{showRename:!1}},methods:{async openInEditor(){await this.$apollo.mutate({mutation:r(),variables:{input:{file:this.project.path}}})}}},d=l,c=i(47262),u=(0,c.Z)(d,t,a,!1,null,"1bbc1c3c",null),f=u.exports},85268:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return b}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("VueDropdown",{staticClass:"project-tasks-dropdown",attrs:{placement:"right"},nativeOn:{click:function(e){e.preventDefault(),e.stopPropagation()}}},[i("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.countPerStatus.running?e.$t("org.vue.components.project-tasks-dropdown.tooltips.running-tasks",{count:e.countPerStatus.running}):e.$t("org.vue.components.project-tasks-dropdown.tooltips.tasks"),expression:"countPerStatus.running ? $t('org.vue.components.project-tasks-dropdown.tooltips.running-tasks', { count: countPerStatus.running }) : $t('org.vue.components.project-tasks-dropdown.tooltips.tasks')"}],staticClass:"menu-trigger",class:e.bulletClass,attrs:{slot:"trigger"},slot:"trigger"},[i("div",{staticClass:"bullet"})]),i("div",{staticClass:"content"},[i("div",{staticClass:"pane-toolbar"},[i("VueIcon",{attrs:{icon:"assignment"}}),i("div",{staticClass:"title"},[e._v(e._s(e.$t("org.vue.components.project-tasks-dropdown.tooltips.tasks")))]),i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.logger-view.buttons.close"),expression:"$t('org.vue.components.logger-view.buttons.close')"},{name:"close-popover",rawName:"v-close-popover"}],staticClass:"icon-button flat",attrs:{"icon-left":"close"}})],1),i("div",{staticClass:"tasks"},[e._l(e.tasks,(function(n){return i("TaskItem",{key:n.id,attrs:{task:n},nativeOn:{click:function(i){return e.openTask(n)}}},["running"!==n.status?i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.views.project-task-details.actions.play"),expression:"$t('org.vue.views.project-task-details.actions.play')"}],staticClass:"icon-button",attrs:{"icon-left":"play_arrow"},on:{click:function(i){return i.stopPropagation(),e.openTask(n,!0)}}}):i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.views.project-task-details.actions.stop"),expression:"$t('org.vue.views.project-task-details.actions.stop')"}],staticClass:"icon-button",attrs:{"icon-left":"stop"},on:{click:function(i){return i.stopPropagation(),e.stopTask(n)}}})],1)})),e.loading?i("VueLoadingIndicator",{staticClass:"overlay"}):e._e()],2)])])},a=[],o=i(13502),r=i.n(o),s=i(33846),l=i.n(s),d=i(33878),c=i.n(d),u=i(43146),f=i.n(u),m=i(83492),v=i.n(m),p={props:{tasks:{type:Array,required:!0},tooltip:{type:String,default:null}},data(){return{loading:!1}},apollo:{projectCurrent:f(),$subscribe:{taskChanged:{query:r()}}},computed:{countPerStatus(){const e={};for(const n of this.tasks)e[n.status]?e[n.status]++:e[n.status]=1;return e},bulletClass(){return this.countPerStatus.running?"running":"idle"}},methods:{async openTask(e,n=!1){this.loading=!0,this.projectCurrent&&e.project.id===this.projectCurrent.id||await this.$apollo.mutate({mutation:v(),variables:{id:e.project.id}}),this.$router.push({name:"project-tasks",query:{id:e.id}}),n&&await this.$apollo.mutate({mutation:l(),variables:{id:e.id}})},stopTask(e){this.$apollo.mutate({mutation:c(),variables:{id:e.id}})}}},h=p,g=i(47262),k=(0,g.Z)(h,t,a,!1,null,"7a5ea0e6",null),b=k.exports},95438:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return c}});var t,a,o=i(10596),r={components:{ListItemInfo:o["default"]},props:{prompt:{type:Object,required:!0}},data(){return{modifiedValue:void 0}},methods:{value(e){return this.$options.buffer&&"undefined"!==typeof this.modifiedValue?this.modifiedValue:JSON.parse(e)},answer(e){this.modifiedValue=e,this.$emit("answer",e)}}},s=r,l=i(47262),d=(0,l.Z)(s,t,a,!1,null,null,null),c=d.exports},98595:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return c}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("VueDisable",{staticClass:"prompt prompt-checkbox",attrs:{disabled:!e.prompt.enabled}},[i("div",{staticClass:"prompt-content"},[i("ListItemInfo",{attrs:{name:e.$t(e.prompt.message),description:e.$t(e.prompt.description),link:e.prompt.link}}),e._l(e.prompt.choices,(function(n,t){return i("VueSwitch",{key:t,staticClass:"right",attrs:{value:e.isCheckboxSelected(n),disabled:n.disabled},on:{update:function(i){return e.asnwerCheckbox(n,i)}}},[e._v(" "+e._s(e.$t(n.name))+" ")])}))],2),i("PromptError",{attrs:{error:e.prompt.error}})],1)},a=[],o=i(95438),r={extends:o["default"],computed:{checkboxValue(){return this.value(this.prompt.value)}},methods:{isCheckboxSelected(e){return this.checkboxValue&&this.checkboxValue.includes(this.value(e.value))},asnwerCheckbox(e,n){const i=this.checkboxValue,t=this.value(e.value);if(n)i.push(t);else{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}this.answer(i)}}},s=r,l=i(47262),d=(0,l.Z)(s,t,a,!1,null,"814eceb6",null),c=d.exports},84305:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return u}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("VueDisable",{staticClass:"prompt prompt-color",attrs:{disabled:!e.prompt.enabled}},[i("div",{staticClass:"prompt-content"},[i("ListItemInfo",{attrs:{name:e.$t(e.prompt.message),description:e.$t(e.prompt.description),link:e.prompt.link}}),i("VueDropdown",{staticClass:"prompt-input"},[i("VueInput",{attrs:{slot:"trigger",value:e.value(e.prompt.value)},on:{update:function(n){return e.answer(n)}},slot:"trigger"},[i("div",{staticClass:"color-preview",attrs:{slot:"right"},slot:"right"},[i("div",{staticClass:"color-swatch",style:{backgroundColor:e.value(e.prompt.value)}})])]),i("ColorPicker",{staticClass:"color-picker",attrs:{value:e.value(e.prompt.value)},on:{input:function(n){return e.answer(n.hex)}}})],1)],1),i("PromptError",{attrs:{error:e.prompt.error}})],1)},a=[],o=i(95438),r=i(83896),s={extends:o["default"],components:{ColorPicker:r.Sketch},buffer:!0},l=s,d=i(47262),c=(0,d.Z)(l,t,a,!1,null,"17ce3a2a",null),u=c.exports},86946:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return c}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("VueDisable",{staticClass:"prompt prompt-confirm",attrs:{disabled:!e.prompt.enabled}},[i("VueSwitch",{staticClass:"extend-left",attrs:{value:e.value(e.prompt.value)},on:{update:function(n){return e.answer(n)}}},[i("ListItemInfo",{attrs:{name:e.$t(e.prompt.message),description:e.$t(e.prompt.description),link:e.prompt.link}})],1),i("PromptError",{attrs:{error:e.prompt.error}})],1)},a=[],o=i(95438),r={extends:o["default"]},s=r,l=i(47262),d=(0,l.Z)(s,t,a,!1,null,"01a5ec3e",null),c=d.exports},43406:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return c}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("VueDisable",{staticClass:"prompt prompt-editor",attrs:{disabled:!e.prompt.enabled}},[i("div",{staticClass:"prompt-content vertical"},[i("ListItemInfo",{attrs:{name:e.$t(e.prompt.message),description:e.$t(e.prompt.description),link:e.prompt.link}}),i("div",{staticClass:"prompt-input"},[i("VueInput",{attrs:{value:e.value(e.prompt.value),type:"textarea"},on:{update:function(n){return e.answer(n)}}})],1)],1),i("PromptError",{attrs:{error:e.prompt.error}})],1)},a=[],o=i(95438),r={extends:o["default"],buffer:!0},s=r,l=i(47262),d=(0,l.Z)(s,t,a,!1,null,"4434277c",null),c=d.exports},5457:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return e.error?i("div",{staticClass:"prompt-error"},[i("div",{staticClass:"vue-ui-text danger banner"},[i("VueIcon",{staticClass:"big",attrs:{icon:"warning"}}),i("span",[e._v(e._s(e.$t(e.error.message)))])],1)]):e._e()},a=[],o={props:{error:{type:Object,default:null}}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,"34f8cb1e",null),d=l.exports},67459:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return c}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("VueDisable",{staticClass:"prompt prompt-input",attrs:{disabled:!e.prompt.enabled}},[i("div",{staticClass:"prompt-content"},[i("ListItemInfo",{attrs:{name:e.$t(e.prompt.message),description:e.$t(e.prompt.description),link:e.prompt.link}}),i("div",{staticClass:"prompt-input"},[i("VueInput",{attrs:{value:e.value(e.prompt.value),type:"password"===e.prompt.type?"password":"text"},on:{update:function(n){return e.answer(n)}}})],1)],1),i("PromptError",{attrs:{error:e.prompt.error}})],1)},a=[],o=i(95438),r={extends:o["default"],buffer:!0},s=r,l=i(47262),d=(0,l.Z)(s,t,a,!1,null,null,null),c=d.exports},1181:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return c}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("VueDisable",{staticClass:"prompt prompt-list",attrs:{disabled:!e.prompt.enabled}},[i("div",{staticClass:"prompt-content"},[i("ListItemInfo",{attrs:{name:e.$t(e.prompt.message),description:e.$t(e.prompt.description),link:e.prompt.link}}),i("div",{staticClass:"prompt-input"},[i("VueSelect",{attrs:{value:e.value(e.prompt.value)},on:{update:function(n){return e.answer(n)}}},e._l(e.prompt.choices,(function(n,t){return i("VueSelectButton",{key:t,attrs:{value:e.value(n.value),label:e.generateLabel(n)}})})),1)],1)],1),i("PromptError",{attrs:{error:e.prompt.error}})],1)},a=[],o=i(95438),r={extends:o["default"],methods:{generateLabel(e){let n=this.$t(e.name);return e.isDefault&&(n+=` (${this.$t("org.vue.components.prompt-list.default")})`),n}}},s=r,l=i(47262),d=(0,l.Z)(s,t,a,!1,null,null,null),c=d.exports},40133:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return c}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"prompts-list"},[i("div",{staticClass:"content"},[e._l(e.groups,(function(n){return i("div",{key:n.id,staticClass:"group"},[n.id?i("div",{staticClass:"group-name"},[e._v(e._s(e.$t(n.id)))]):e._e(),e._l(n.prompts,(function(n){return[n.visible?i(e.getModule(n),{key:n.id,tag:"component",attrs:{prompt:n},on:{answer:function(i){return e.$emit("answer",{prompt:n,value:i})}}}):e._e()]}))],2)})),e.prompts.length?e._e():i("div",{staticClass:"vue-ui-empty"},[i("VueIcon",{staticClass:"empty-icon",attrs:{icon:"check_circle"}}),i("span",[e._v(e._s(e.$t("org.vue.components.prompts-list.empty")))])],1)],2)])},a=[];const o={rawlist:"list",password:"input"};var r={props:{prompts:{type:Array,required:!0}},computed:{groups(){const e={},n=[];return this.prompts.forEach((i=>{let t=e[i.group];t||(t=e[i.group]={id:i.group,prompts:[]},n.push(t)),t.prompts.push(i)})),n}},methods:{getModule(e){let n=e.type;return o[n]&&(n=o[n]),n=n.charAt(0).toUpperCase()+n.substr(1),i(59545)(`./Prompt${n}.vue`).default}}},s=r,l=i(47262),d=(0,l.Z)(s,t,a,!1,null,"678b61da",null),c=d.exports},59396:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return c}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"instant-search-input"},[i("VueInput",{ref:"input",staticClass:"big",attrs:{"icon-left":"search",placeholder:e.placeholder},model:{value:e.query,callback:function(n){e.query=n},expression:"query"}},[i("template",{slot:"right"},[i("VueButton",{staticClass:"icon-button flat",attrs:{"icon-left":"clear"},on:{click:function(n){return e.clear()}}})],1)],2)],1)},a=[],o=i(71393),r={mixins:[o.wA],props:{placeholder:{type:String,default:null}},computed:{query:{get(){return this.searchStore.query},set(e){this.searchStore.stop(),this.searchStore.query=e,this.$emit("query",e),this.$nextTick((()=>{this.searchStore.start(),this.searchStore.refresh()}))}}},methods:{clear(){this.searchStore.stop(),this.searchStore.query.length>0&&(this.searchStore.query=""),this.searchStore.activeRefinements.length>0&&this.searchStore.clearRefinements(),this.searchStore.start(),this.searchStore.refresh()},focus(){this.$refs.input.focus()}}},s=r,l=i(47262),d=(0,l.Z)(s,t,a,!1,null,"615eeb16",null),c=d.exports},62864:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return c}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{directives:[{name:"show",rawName:"v-show",value:e.totalResults>0,expression:"totalResults > 0"}],staticClass:"instant-search-pagination"},[i("div",{staticClass:"content"},[i("VueButton",{staticClass:"icon-button",attrs:{"icon-left":"first_page",disabled:1===e.page},on:{click:function(n){return e.goToFirstPage()}}}),i("VueButton",{staticClass:"icon-button",attrs:{"icon-left":"chevron_left",disabled:1===e.page},on:{click:function(n){return e.goToPreviousPage()}}}),e._l(e.pages,(function(n){return i("VueButton",{key:n,staticClass:"icon-button",class:{primary:e.page===n},attrs:{label:n.toString()},on:{click:function(i){return e.goToPage(n)}}})})),i("VueButton",{staticClass:"icon-button",attrs:{"icon-left":"chevron_right",disabled:e.page>=e.totalPages},on:{click:function(n){return e.goToNextPage()}}}),i("VueButton",{staticClass:"icon-button",attrs:{"icon-left":"last_page",disabled:e.page>=e.totalPages},on:{click:function(n){return e.goToLastPage()}}})],2)])},a=[],o=i(71393),r={extends:o.tl},s=r,l=i(47262),d=(0,l.Z)(s,t,a,!1,null,"43c44150",null),c=d.exports},48416:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("ApolloQuery",{staticClass:"suggestion-bar",attrs:{query:i(88694)},scopedSlots:e._u([{key:"default",fn:function(n){var i=n.result.data;return i?[t("SuggestionBarList",{attrs:{suggestions:e.withBuiltins(i.suggestions)}})]:void 0}}],null,!0)},[t("ApolloSubscribeToMore",{attrs:{document:i(22277),updateQuery:function(e,n){var i=n.subscriptionData,t=i.data.suggestionAdded;return e.suggestions?e.suggestions.find((function(e){return e.id===t.id}))?e:{suggestions:e.suggestions.concat([t])}:{suggestions:[t]}}}}),t("ApolloSubscribeToMore",{attrs:{document:i(15676)}}),t("ApolloSubscribeToMore",{attrs:{document:i(69298),updateQuery:function(e,n){var i=n.subscriptionData;return{suggestions:e.suggestions?e.suggestions.filter((function(e){return e.id!==i.data.suggestionRemoved.id})):[]}}}})],1)},a=[],o={data(){return{forceDevtoolsSuggestion:!1}},methods:{withBuiltins(e){let n=e;if(this.forceDevtoolsSuggestion||!Object.prototype.hasOwnProperty.call(window,"__VUE_DEVTOOLS_GLOBAL_HOOK__")){let e=null;/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)?e="https://chrome.google.com/webstore/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd":/Firefox/.test(navigator.userAgent)&&(e="https://addons.mozilla.org/en-US/firefox/addon/vue-js-devtools/"),e&&(n=[...n,{id:"vue-devtools",type:"action",label:"org.vue.cli-service.suggestions.vue-devtools.label",message:"org.vue.cli-service.suggestions.vue-devtools.message",link:"https://github.com/vuejs/vue-devtools",image:"https://raw.githubusercontent.com/vuejs/vue-devtools/master/media/screenshot.png",actionLink:e}])}return n}}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,"6db62ce8",null),d=l.exports},35764:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return f}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{directives:[{name:"set-size",rawName:"v-set-size",value:".wrapper",expression:"'.wrapper'"}],staticClass:"suggestion-bar-item",class:{ping:e.ping},style:{animationDelay:.5*e.index+1.5+"s"}},[i("div",{staticClass:"wrapper"},[i("VueDropdown",{staticClass:"dropdown",attrs:{disabled:!e.suggestion.message&&!e.suggestion.link,placement:"bottom-end"}},[i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.components.suggestion-bar.suggestion"),expression:"$t('org.vue.components.suggestion-bar.suggestion')"}],staticClass:"round",attrs:{slot:"trigger",label:e.$t(e.suggestion.label),loading:e.suggestion.busy},on:{click:function(n){return e.onTriggerClick()}},slot:"trigger"}),i("div",{staticClass:"suggestion-details"},[i("div",{staticClass:"info label"},[e._v(" "+e._s(e.$t(e.suggestion.label))+" ")]),e.suggestion.message?i("div",{staticClass:"info message",domProps:{innerHTML:e._s(e.$t(e.suggestion.message))}}):e._e(),e.suggestion.image?i("div",{staticClass:"info image"},[i("img",{attrs:{src:e.image,alt:"image"}})]):e._e(),i("div",{staticClass:"actions-bar"},[e.suggestion.link?i("VueButton",{staticClass:"flat",attrs:{href:e.suggestion.link,label:e.$t("org.vue.components.list-item-info.more-info"),target:"_blank","icon-right":"open_in_new"}}):e._e(),i("div",{staticClass:"vue-ui-spacer"}),i("VueButton",{directives:[{name:"close-popover",rawName:"v-close-popover"}],attrs:{label:e.$t("org.vue.components.suggestion-bar.modal.cancel"),"icon-left":"close"}}),i("VueButton",{directives:[{name:"close-popover",rawName:"v-close-popover"}],staticClass:"primary",attrs:{label:e.$t("org.vue.components.suggestion-bar.modal.continue"),"icon-left":"done"},on:{click:function(n){return e.activate(e.suggestion)}}})],1)])],1)],1)])},a=[],o=i(77117),r=i(7727),s=i.n(r),l={props:{suggestion:{type:Object,required:!0},index:{type:Number,default:-1},ping:{type:Boolean,default:!1}},computed:{image(){return(0,o.J)(this.suggestion.image)}},methods:{onTriggerClick(){this.suggestion.message||this.suggestion.link||this.activate(this.suggestion)},async activate(e){if(e.actionLink){const n=window.open(e.actionLink,"_blank");n.focus()}else await this.$apollo.mutate({mutation:s(),variables:{input:{id:e.id}}})}}},d=l,c=i(47262),u=(0,c.Z)(d,t,a,!1,null,"624b111e",null),f=u.exports},89872:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("transition-group",{staticClass:"suggestions",attrs:{name:"suggestion"}},e._l(e.suggestions,(function(n,t){return i("SuggestionBarItem",{key:e.$i18n.locale+":"+n.id,attrs:{suggestion:n,index:e.suggestions.length-t-1,ping:""}})})),1)},a=[],o={props:{suggestions:{type:Array,required:!0}}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,null,null),d=l.exports},97368:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return C}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"project-task-details"},[e.task?[i("div",{staticClass:"header"},[i("VueIcon",{staticClass:"task-icon big",attrs:{icon:"assignment"}}),i("div",{staticClass:"name"},[e._v(e._s(e.task.name))]),i("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t(e.task.description),expression:"$t(task.description)"}],staticClass:"description"},[e._v(" "+e._s(e.$t(e.task.description))+" ")]),i("div",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.views.project-task-details.command")+":
"+e.task.command+"",expression:"`${$t('org.vue.views.project-task-details.command')}:
${task.command}`"}],staticClass:"command"},[e._v(" "+e._s(e.task.command)+" ")])],1),i("div",{staticClass:"actions-bar"},[i("div",{staticClass:"main-actions"},["running"!==e.task.status?i("VueButton",{staticClass:"primary",attrs:{"icon-left":"play_arrow",label:e.$t("org.vue.views.project-task-details.actions.play"),"data-testid":"run-task"},on:{click:function(n){return e.runTask()}}}):i("VueButton",{staticClass:"primary",attrs:{"icon-left":"stop",label:e.$t("org.vue.views.project-task-details.actions.stop"),"data-testid":"stop-task"},on:{click:function(n){return e.stopTask()}}}),i("VueButton",{attrs:{slot:"trigger","icon-left":"settings",disabled:"running"===e.task.status,label:e.$t("org.vue.views.project-task-details.parameters")},on:{click:function(n){e.showParameters=!0}},slot:"trigger"}),e.task.link?i("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.views.project-task-details.more-info"),expression:"$t('org.vue.views.project-task-details.more-info')"}],staticClass:"icon-button",attrs:{href:e.task.link,target:"_blank","icon-left":"open_in_new"}}):e._e()],1),e.task.views.length?i("VueGroup",{staticClass:"views",model:{value:e.currentView,callback:function(n){e.currentView=n},expression:"currentView"}},[i("VueGroupButton",{attrs:{label:e.$t("org.vue.views.project-task-details.output"),"icon-left":"dvr",value:"_output"}}),e._l(e.task.views,(function(n){return i("VueGroupButton",{key:n.id,attrs:{value:n.id,"icon-left":n.icon,label:e.$t(n.label)}})}))],2):e._e()],1),e.defer(3)?i("div",{staticClass:"content"},[i("TerminalView",{key:e.id,ref:"terminal",class:{ghost:"_output"!==e.currentView},attrs:{cols:100,rows:24,"auto-size":"",options:{scrollback:5e3,disableStdin:!0,useFlowControl:!0},title:e.$t("org.vue.views.project-task-details.output"),toolbar:"","open-links":""},on:{clear:function(n){return e.clearLogs()}}}),"_output"!==e.currentView?i("ClientAddonComponent",{key:e.currentView,staticClass:"view",attrs:{name:e.currentViewComponent}}):e._e()],1):i("div",{staticClass:"content placeholder-content"},[i("div",{staticClass:"view card"})])]:e._e(),e.showParameters?i("VueModal",{staticClass:"medium anchor",attrs:{title:e.$t("org.vue.views.project-task-details.parameters")},on:{close:function(n){return e.restoreParameters()}}},[i("div",{staticClass:"default-body"},[i("PromptsList",{attrs:{prompts:e.visiblePrompts},on:{answer:e.answerPrompt}})],1),i("div",{staticClass:"actions",attrs:{slot:"footer"},slot:"footer"},[i("VueButton",{staticClass:"primary big",attrs:{label:e.$t("org.vue.views.project-task-details.actions.save")},on:{click:function(n){return e.saveParameters()}}})],1)]):e._e()],2)},a=[],o=i(40888);function r(e=10){return{data(){return{displayPriority:0}},mounted(){this.runDisplayPriority()},methods:{runDisplayPriority(){this.displayPriority=0;const n=()=>{requestAnimationFrame((()=>{this.displayPriority++,this.displayPriority=e}}}}var s=i(60480),l=i.n(s),d=i(61048),c=i.n(d),u=i(33846),f=i.n(u),m=i(33878),v=i.n(m),p=i(98328),h=i.n(p),g=i(4117),k=i.n(g),b=i(99933),S=i.n(b),w=i(25765),y=i.n(w),D=i(30683),N=i.n(D),E={name:"ProjectTaskDetails",provide(){return{TaskDetails:this}},mixins:[(0,o.Z)({field:"task",query:l()}),r()],metaInfo(){return{title:this.task&&`${this.task.name} - ${this.$t("org.vue.views.project-tasks.title")}`}},props:{id:{type:String,required:!0}},data(){return{task:null,showParameters:!1,currentView:"_output"}},apollo:{task:{query:l(),variables(){return{id:this.id}},async result({data:e,loading:n}){!this.$_init&&!n&&e&&e.task&&e.task.defaultView&&(this.$_init=!0,await this.$nextTick(),this.currentView=e.task.defaultView)},skip(){return!this.defer(2)}},taskLogs:{query:c(),variables(){return{id:this.id}},fetchPolicy:"network-only",manual:!0,async result({data:e,loading:n}){if(!n){await this.$nextTick();const n=this.$refs.terminal;n&&e.taskLogs.logs.forEach(n.addLog)}},skip(){return!this.defer(3)}},$subscribe:{taskLogAdded:{query:k(),variables(){return{id:this.id}},async result({data:e}){if(e.taskLogAdded.taskId===this.id){await this.$nextTick();const n=this.$refs.terminal;n.addLog(e.taskLogAdded)}},skip(){return!this.defer(3)}}}},computed:{currentViewComponent(){if("_output"!==this.currentView){const e=this.task.views.find((e=>e.id===this.currentView));if(e){const n=e.component;return n}}return null}},watch:{id(){this.showParameters=!1,this.currentView="_output",this.$_init=!1,this.open(),this.runDisplayPriority()}},mounted(){this.open()},methods:{open(){this.$apollo.mutate({mutation:S(),variables:{id:this.id}})},runTask(){this.$apollo.mutate({mutation:f(),variables:{id:this.id}})},stopTask(){this.$apollo.mutate({mutation:v(),variables:{id:this.id}})},clearLogs(){this.$apollo.mutate({mutation:h(),variables:{id:this.id}})},async saveParameters(){await this.$apollo.mutate({mutation:y(),variables:{id:this.id}}),this.showParameters=!1},async restoreParameters(){await this.$apollo.mutate({mutation:N(),variables:{id:this.id}}),this.showParameters=!1}}},j=E,_=i(47262),x=(0,_.Z)(j,t,a,!1,null,"074b7efc",null),C=x.exports},83458:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return v}});var t=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",{staticClass:"project-tasks page"},[t("ContentView",{attrs:{title:e.$t("org.vue.views.project-tasks.title")}},[t("ApolloQuery",{ref:"tasks",staticClass:"fill-height",attrs:{query:i(38173)},scopedSlots:e._u([{key:"default",fn:function(n){var i=n.result,a=i.data,o=i.loading;return[!o||a&&a.tasks?a?t("NavContent",{staticClass:"tasks",attrs:{items:e.generateItems(a.tasks)},scopedSlots:e._u([{key:"default",fn:function(e){var n=e.item,i=e.selected;return t("TaskItem",{attrs:{task:n.task,selected:i}})}}],null,!0)},[t("div",{staticClass:"list-header",attrs:{slot:"before"},slot:"before"},[t("VueInput",{staticClass:"search round",attrs:{"icon-left":"search"},model:{value:e.search,callback:function(n){e.search=n},expression:"search"}}),t("VueButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.$t("org.vue.views.project-tasks.refresh"),expression:"$t('org.vue.views.project-tasks.refresh')"}],staticClass:"icon-button flat",attrs:{"icon-left":"refresh"},on:{click:function(n){return e.refresh()}}})],1)]):e._e():t("VueLoadingIndicator",{staticClass:"overlay"})]}}])})],1)],1)},a=[],o=i(13617),r=i(13502),s=i.n(r),l=i(38173),d=i.n(l),c={mixins:[(0,o.Z)({baseRoute:{name:"project-tasks"}})],metaInfo(){return{title:this.$t("org.vue.views.project-tasks.title")}},data(){return{search:""}},apollo:{$subscribe:{taskChanged:{query:s()}}},bus:{quickOpenProject(e){this.$apollo.getClient().writeQuery({query:d(),data:{tasks:null}})}},methods:{generateItems(e){return e?e.filter((e=>!this.search||e.name.includes(this.search))).map((e=>({route:{name:"project-task-details",params:{id:e.id}},task:e}))):[]},refresh(){this.$refs.tasks.$apollo.queries.query.refetch()}}},u=c,f=i(47262),m=(0,f.Z)(u,t,a,!1,null,"492ec4a6",null),v=m.exports},41210:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return f}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{directives:[{name:"tooltip",rawName:"v-tooltip.right",value:e.description,expression:"description",modifiers:{right:!0}}],staticClass:"task-item list-item",class:["status-"+e.task.status,{selected:e.selected}],on:{dblclick:function(n){return e.runTask()}}},[i("div",{staticClass:"content"},[i("ItemLogo",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.status,expression:"status"}],class:e.iconData.class,attrs:{image:e.logo?e.logo+"?project="+e.task.project.id:e.iconData.icon,"color-bullet":""}}),i("ListItemInfo",{attrs:{name:e.task.name,description:e.description,selected:e.selected}}),e._t("default")],2)])},a=[],o=i(33846),r=i.n(o);const s={idle:{icon:"assignment",class:""},running:{icon:"more_horiz",class:"info"},done:{icon:"check_circle",class:"success"},error:{icon:"error",class:"danger"},terminated:{icon:"error",class:""}};var l={props:{task:{type:Object,required:!0},selected:{type:Boolean,default:!1}},computed:{status(){return this.$t(`org.vue.types.task.status.${this.task.status}`)},iconData(){return s[this.task.status]},logo(){return this.task.icon||this.task.plugin&&this.task.plugin.logo},description(){return"idle"===this.task.status&&this.$t(this.task.description)||this.status}},methods:{runTask(){"running"!==this.task.status&&this.$apollo.mutate({mutation:r(),variables:{id:this.task.id}})}}},d=l,c=i(47262),u=(0,c.Z)(d,t,a,!1,null,"7f8de00b",null),f=u.exports},93262:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return d}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"view-badge",class:["type-"+e.badge.type]},[i("div",{staticClass:"content"},[i("div",{staticClass:"counter"},[e._v(e._s(e.badge.count))]),i("div",{staticClass:"label"},[e._v(e._s(e.$t(e.badge.label)))])])])},a=[],o={props:{badge:{type:Object,required:!0}}},r=o,s=i(47262),l=(0,s.Z)(r,t,a,!1,null,"3c51b48c",null),d=l.exports},11075:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return y}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"project-nav",class:{wide:e.$responsive.wide}},[i("div",{staticClass:"header"},[i("ProjectQuickDropdown")],1),i("div",{staticClass:"content"},[i("VueGroup",{staticClass:"vertical small-indicator left-indicator primary",attrs:{indicator:""},model:{value:e.currentViewName,callback:function(n){e.currentViewName=n},expression:"currentViewName"}},[e._l(e.views,(function(n){return[e.hasProjectType(n)?i("ViewNavButton",{key:n.id,attrs:{view:n}}):e._e()]}))],2),i("ViewNavMore")],1)])},a=[],o=i(66208),r=i(43146),s=i.n(r),l=i(15710),d=i.n(l),c=i(29119),u=i.n(c),f=i(21802),m=i.n(f),v=i(85935),p=i.n(v),h=i(32445),g=i.n(h),k={data(){return{views:[]}},apollo:{projectCurrent:s(),views:{query:d(),subscribeToMore:[{document:u(),updateQuery:(e,{subscriptionData:n})=>{const i=n.data.viewAdded;return e.views?e.views.find((e=>e.id===i.id))?e:{views:[...e.views,i]}:{views:[i]}}},{document:m(),updateQuery:(e,{subscriptionData:n})=>{if(!e.views)return{views:[]};const i=e.views.findIndex((e=>e.id===n.data.viewRemoved.id));if(-1===i)return e;const t=e.views.slice();return t.splice(i,1),{views:t}}},{document:p(),updateQuery:(e,{subscriptionData:n})=>{const i=n.data.viewChanged;if(!e.views)return{views:[i]};const t=e.views.findIndex((e=>e.id===i.id));if(-1===t)return e;const a=e.views.slice();return a.splice(t,1,i),{views:a}}}]}},computed:{currentView(){const e=this.$route;return this.views.find((n=>(0,o.t)(e,this.$router.resolve({name:n.name}).route)))},currentViewName:{get(){const e=this.currentView;return e&&e.name},set(e){(0,o.m)(this.$route,this.$router.resolve({name:e}).route)||this.$router.push({name:e})}}},watch:{currentView:{handler(e,n){e&&(n&&e.id===n.id||(this.checkProjectType(),this.$apollo.mutate({mutation:g(),variables:{id:e.id}})))},immediate:!0},projectCurrent:{handler:"checkProjectType",immediate:!0}},methods:{hasProjectType(e){return!e.projectTypes&&"vue"===this.projectCurrent.type||e.projectTypes&&e.projectTypes.includes(this.projectCurrent.type)},checkProjectType(){if(this.currentView&&!this.hasProjectType(this.currentView)){const e=this.views.find((e=>this.hasProjectType(e)));e&&(this.currentViewName=e.name)}}}},b=k,S=i(47262),w=(0,S.Z)(b,t,a,!1,null,"38f637c7",null),y=w.exports},42703:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return c}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"project-nav-button"},[i("v-tooltip",{staticClass:"force-tooltip",attrs:{trigger:"hover","handle-resize":"",placement:"right",offset:[0,4],delay:{show:300,hide:0}}},[i("VueGroupButton",{staticClass:"flat big",class:{"icon-button":!e.$responsive.wide,"has-image-icon":e.imageIcon,"default-plugin-icon":e.defaultPluginIcon},attrs:{value:e.view.name,"icon-left":e.imageIcon?null:e.view.icon}},[e.imageIcon?i("img",{staticClass:"image-icon",attrs:{src:e.icon}}):e._e(),e.$responsive.wide?i("span",{staticClass:"label"},[e._v(e._s(e.$t(e.view.tooltip)))]):e._e()]),i("template",{slot:"popper"},[i("div",{staticClass:"title"},[e._v(e._s(e.$t(e.view.tooltip)))]),e.badges.length?i("div",{staticClass:"badges"},e._l(e.badges,(function(e){return i("ViewBadge",{key:e.id,attrs:{badge:e}})})),1):e._e()])],2),e.firstNotHiddenBadge?i("div",{staticClass:"bullet",class:["type-"+e.firstNotHiddenBadge.type]}):e._e()],1)},a=[],o=i(77117),r={props:{view:{type:Object,required:!0}},computed:{badges(){return this.view.badges&&this.view.badges.length?this.view.badges.slice().sort(((e,n)=>n.priority-e.priority)):[]},firstNotHiddenBadge(){return this.badges&&this.badges.find((e=>!e.hidden))},imageIcon(){return this.view.icon&&this.view.icon.includes("/")},icon(){return(0,o.J)(this.view.icon)},defaultPluginIcon(){return this.imageIcon&&this.view.icon.includes("/_plugin-logo/")}}},s=r,l=i(47262),d=(0,l.Z)(s,t,a,!1,null,"4a3e22ee",null),c=d.exports},84394:function(e,n,i){"use strict";i.r(n),i.d(n,{default:function(){return l}});var t=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"project-nav-more"},[i("VueDropdown",{attrs:{placement:"right-end"}},[i("VueButton",{staticClass:"big flat",class:{"icon-button":!e.$responsive.wide},attrs:{slot:"trigger","icon-left":"more_horiz"},slot:"trigger"},[e.$responsive.wide?i("span",{staticClass:"label"},[e._v(e._s(e.$t("org.vue.components.project-nav.tooltips.more")))]):e._e()]),i("VueDropdownButton",{attrs:{"icon-left":"home",to:{name:"project-select"},label:e.$t("org.vue.views.project-select.title")}}),i("VueDropdownButton",{attrs:{"icon-left":"info",to:{name:"about"},label:e.$t("org.vue.views.about.title")}})],1)],1)},a=[],o=i(47262),r={},s=(0,o.Z)(r,t,a,!1,null,"2251f1b8",null),l=s.exports},57953:function(e,n,i){"use strict";i.d(n,{i:function(){return m}});var t=i(85416),a=i(53492),o=i(78857),r=i.n(o),s=i(23279);function l(){try{const e=window.navigator.languages&&window.navigator.languages[0]||window.navigator.language||window.navigator.userLanguage;return[e,e.toLowerCase(),e.substr(0,2)].map((e=>e.replace("-","_")))}catch(e){return}}async function d(e){try{const n=await fetch(`https://unpkg.com/vue-cli-locales/locales/${e}.json`);if(n.ok){const i=await n.json();return m(e,i),!0}}catch(n){}return!1}async function c(){const e=l();if(e&&-1===e[0].indexOf("en")){let n,a=!1;for(const i of e)if(i!==n&&(n=i,a=await u(i),a))break;a||console.log(`[UI] No locale data was found for your locale ${e[0]}.`);let o=f.locale;"en"===o?o="en-US":"zh"===o&&(o="zh-CN"),t["default"].component("VueTimeago",(0,s.fy)({name:"VueTimeago",locale:f.locale,locales:{[f.locale]:i(63210)(`./${o}/index.js`)}}))}}async function u(e){console.log(`[UI] Trying to load ${e} locale...`);const n=await d(e);return n&&(f.locale=e,console.log(`[UI] Automatically loaded ${e} locale `)),n}t["default"].use(a.Z),t["default"].use(s.ZP,{name:"VueTimeago",locale:"en"});const f=new a.Z({locale:"en",fallbackLocale:"en",messages:{en:{}},silentTranslationWarn:!1});function m(e,n){const i=r()(f.getLocaleMessage(e),n);f.setLocaleMessage(e,i)}c(),n["Z"]=f},31089:function(e,n,i){"use strict";var t={};i.r(t),i.d(t,{date:function(){return u},folder:function(){return c}});var a=i(85416),o=i(44059),r=i(71393),s=i(20251),l=i(21236),d=i(15097);function c(e,n=-1){if(e=e.replace(/\\/g,"/"),"/"!==e.charAt(e.length-1)&&(e+="/"),-1!==n&&e.length>n){const i=e.length-n+3,t=Math.floor(n/2-i/2),a=Math.ceil(n/2+i/2);e=e.substring(0,t)+"..."+e.substring(a)}return e}function u(e){return new Date(e).toLocaleString()}let f;var m={install(e,n){const i=Object.assign({},{computed:{}},n);f=new e({data(){return{width:window.innerWidth,height:window.innerHeight}},computed:i.computed}),Object.defineProperty(e.prototype,"$responsive",{get:()=>f}),window.addEventListener("resize",(()=>{f.width=window.innerWidth,f.height=window.innerHeight}))}},v=i(78246),p=i.n(v),h=i(18280),g=i.n(h),k=i(66259),b=i.n(k),S=i(99861),w=i.n(S);function y(e,n){return{query:p(),variables:{id:e,projectId:n},update:({sharedData:e})=>e&&e.value||void 0,subscribeToMore:{document:b(),variables:{id:e,projectId:n},updateQuery:(e,{subscriptionData:n})=>({sharedData:n.data.sharedDataUpdated})}}}var D={install(e){e.mixin({data(){return{$sharedData:{}}},beforeCreate(){Object.defineProperty(this,"$sharedData",{get:()=>this.$data.$sharedData,enumerable:!0,configurable:!0})},async created(){const e=this.$options.sharedData;if(e){if("function"===typeof e){let n;this.$watch(e.bind(this),(async e=>{n&&n.forEach((e=>e.destroy())),n=await this.$syncSharedData(e)}),{immediate:!0})}else await this.$syncSharedData(e);this._watchers.forEach((e=>{e.update()}))}},methods:{$getProjectId(){return new Promise((e=>{const n=this.$apollo.getClient(),i=n.watchQuery({query:w()}),t=i.subscribe({next({data:n}){n.currentProjectId&&(t.unsubscribe(),e(n.currentProjectId))}})}))},async $getSharedData(e){const n=await this.$getProjectId(),i=await this.$apollo.query({query:p(),variables:{id:e,projectId:n}});return i.sharedData.value},async $watchSharedData(e,n){const i=await this.$getProjectId();return this.$apollo.addSmartQuery(e,{...y(e,i),manual:!0,result:({data:e})=>{e&&e.sharedData&&n(e.sharedData.value)}})},async $setSharedData(e,n){const i=await this.$getProjectId();return this.$apollo.mutate({mutation:g(),variables:{id:e,value:n,projectId:i}})},async $syncSharedData(e){for(const t in e){const n=e[t];this.$set(this.$data.$sharedData,t,null),Object.defineProperty(this,t,{get:()=>this.$data.$sharedData[t],set:e=>{this.$set(this.$data.$sharedData,t,e),this.$setSharedData(n,e)},enumerable:!0,configurable:!0})}const n=await this.$getProjectId(),i=[];for(const t in e){const a=e[t],o=this.$apollo.addSmartQuery(t,{...y(a,n),update:void 0,manual:!0,result:e=>{if(e&&e.data){const{data:{sharedData:n}}=e,i=n&&n.value||void 0;this.$set(this.$data.$sharedData,t,i)}}});i.push(o)}return i}}}),window.mapSharedData=(e,n)=>{const i={};for(const t in n)i[t]=e+n[t];return i}}},N=i(96675),E=i.n(N),j=i(28469),_=i.n(j),x=i(98852),C=i.n(x);let F=0;var $={install(e){e.mixin({methods:{async $callPluginAction(e,n){const i=await this.$apollo.mutate({mutation:E(),variables:{id:e,params:n}});return i.data.pluginActionCall},$onPluginActionCalled(e){return this.$apollo.addSmartSubscription("plugin-action-called-"+F++,{query:_(),result:({data:n})=>e(n.pluginActionCalled)})},$onPluginActionResolved(e){return this.$apollo.addSmartSubscription("plugin-action-resolved-"+F++,{query:C(),result:({data:n})=>e(n.pluginActionResolved)})}}})}},V=i(4961),I=i.n(V),P=i(85641),L=i.n(P),O={beforeCreate(){if(this.$options.clientState){const e={connected:I(),darkMode:L()};this.$options.apollo={...this.$options.apollo,...e};for(const n in e)Object.defineProperty(this,n,{get:()=>this.$data.$apolloData.data[n],enumerable:!0,configurable:!0})}}},q={bind(e,{value:n}){"string"===typeof n&&(n=e.querySelector(n)),requestAnimationFrame((()=>{const i=n.getBoundingClientRect();e.style.width=`${i.width}px`,e.style.height=`${i.height}px`}))}},T={bind(e){requestAnimationFrame((()=>{const n=e.querySelector("input");n&&(e=n),e.focus()}))}};const A=new a["default"];var z={install(e){e.prototype.$bus=(e,...n)=>{A.$emit(e,...n)},e.mixin({beforeCreate(){const e=this.$options.bus;if(e){this.$_bus=[];const n=e=>{for(const n in e){const i=e[n].bind(this);A.$on(n,i),this.$_bus.push({event:n,handler:i})}};Array.isArray(e)?e.forEach(n):n(e)}},beforeDestroy(){if(this.$_bus)for(const e of this.$_bus)A.$off(e.event,e.handler)}}),e.config.optionMergeStrategies.bus=(e,n,i)=>Array.isArray(e)?Array.isArray(n)?e.concat(n):(e.push(n),e):Array.isArray(n)?(n.push(e),n):e&&n?[e,n]:e||n}},R=i(17172),B=i.n(R);const M=new(B());M.use_classes=!0,M.escape_for_html=!1;var Q={install(e){e.prototype.ansiColors=e=>M.ansi_to_html(e)}},G=i(86943);a["default"].use(r.ZP),a["default"].use(s.Z),a["default"].use(m,{computed:{mobile(){return this.width<=768},tablet(){return this.width<=900},desktop(){return!this.tablet},wide(){return this.width>=1300}}}),a["default"].use(o.ZP),a["default"].use(l.ZP),a["default"].use(d.ZP),a["default"].use(D),a["default"].use($),a["default"].use(z),a["default"].use(Q);for(const Ce in t)a["default"].filter(Ce,t[Ce]);a["default"].mixin(O),a["default"].directive("set-size",q),a["default"].directive("focus",T),a["default"].use(G.ZP);const U=i(30835);U.keys().forEach((e=>{const n=U(e),i=e.substr(e.lastIndexOf("/")+1).replace(/\.\w+$/,"");a["default"].component(i,n.default||n)}));var Z=function(){var e=this,n=e.$createElement,i=e._self._c||n;return i("div",{staticClass:"app",attrs:{id:"app"}},[e.ready?i("ConnectionStatus"):e._e(),e.ready?i("div",{staticClass:"content"},[i("router-view")],1):i("VueLoadingIndicator",{staticClass:"app-init-loading overlay big accent"}),i("StatusBar"),i("ClientAddonLoader"),i("LocaleLoader")],1)},H=[],W=i(57953),J=i(51470),Y=i.n(J),X={metaInfo:{titleTemplate:e=>e?`[Beta] ${e} - Vue CLI`:"[Beta] Vue CLI"},computed:{ready(){return Object.keys(W.Z.getLocaleMessage("en")).length}},apollo:{$subscribe:{routeRequested:{query:Y(),result({data:e}){this.$router.push(e.routeRequested)}}}}},K=X,ee=i(47262),ne=(0,ee.Z)(K,Z,H,!1,null,"7f631aef",null),ie=ne.exports,te=i(66237),ae=i(16343),oe=i(80890),re=i(94121),se=i(60866),le=i(7058),de=i(41882),ce=i(27194),ue=i(83458),fe=i(97368),me=i(12686),ve=i(84096),pe=i(89119),he=i(73024),ge=i(8771),ke=i(31350),be=i(43146),Se=i.n(be),we=i(95569),ye=i.n(we);a["default"].use(te.Z);const De=new te.Z({mode:"history",routes:[{path:"/",component:oe["default"],meta:{needProject:!0},children:[{path:"",name:"project-home",redirect:{name:"project-dashboard"}},{path:"dashboard",name:"project-dashboard",component:re["default"]},{path:"plugins",name:"project-plugins",component:se["default"]},{path:"plugins/add",name:"project-plugins-add",component:le["default"]},{path:"configuration",name:"project-configurations",component:de["default"],children:[{path:":id",name:"project-configuration-details",component:ce["default"],props:!0}]},{path:"tasks",name:"project-tasks",component:ue["default"],children:[{path:":id",name:"project-task-details",component:fe["default"],props:!0}]},{path:"dependencies",name:"project-dependencies",component:me["default"]}]},{path:"/project/select",name:"project-select",component:ve["default"]},{path:"/project/create",name:"project-create",component:pe["default"]},{path:"/file-diff",name:"file-diff",component:he["default"]},{path:"/about",name:"about",component:ge["default"]},{path:"/home",name:"home",redirect:{name:"project-home"}},{path:"*",name:"not-found",component:ke["default"]}]});De.beforeEach((async(e,n,i)=>{if(e.matched.some((e=>e.meta.needProject))){const e=await ae.l8.query({query:Se(),fetchPolicy:"network-only"});if(!e.data.projectCurrent)return void i({name:"project-select"});await ae.l8.mutate({mutation:ye(),variables:{projectId:e.data.projectCurrent.id}})}i()}));var Ne=De;class Ee{constructor(){this.components=new Map,this.componentListeners=new Map}component(e,n){this.components.set(e,n);const i=je(e);a["default"].component(i,n),console.log(`[ClientAddonApi] Registered ${i} component`);const t=this.componentListeners.get(e);t&&(t.forEach((e=>e(n))),this.componentListeners.delete(e))}addRoutes(e,n){Ne.addRoutes([{path:`/addon/${e}`,component:oe["default"],meta:{needProject:!0,restore:!0},children:n}]),console.log(`[ClientAddonApi] Registered new routes under the /addon/${e} route`)}addLocalization(e,n){(0,W.i)(e,n),console.log(`[ClientAddonApi] Registered new strings for locale ${e}`)}getComponent(e){return this.components.get(e)}listenForComponent(e,n){let i=this.componentListeners.get(e);i||(i=[],this.componentListeners.set(e,i)),i.push(n)}awaitComponent(e){return new Promise(((n,i)=>{const t=this.getComponent(e);t?n(t):this.listenForComponent(e,n)}))}}function je(e){return e=e.replace(/\./g,"-"),`client-addon--${e}`}var _e=i(31452);window.gql=_e.ZP,a["default"].config.productionTip=!1,a["default"].config.devtools=!0,window.Vue=a["default"],window.ClientAddonApi=new Ee;const xe=new a["default"]({router:Ne,apolloProvider:ae.zl,i18n:W.Z,...ie});xe.$mount("#app")},40888:function(e,n,i){"use strict";i.d(n,{Z:function(){return o}});var t=i(99969),a=i.n(t);function o({field:e,query:n,variables:i=null,updateQuery:t=null,update:o=null}){return{computed:{configurationValid(){return 0===this.visiblePrompts.filter((e=>e.error||null===e.value||""===JSON.parse(e.value))).length},hasPromptsChanged(){return!!this.visiblePrompts.find((e=>e.valueChanged))},visiblePrompts(){return this[e]?this[e].prompts.filter((e=>e.visible)):[]}},watch:{hasPromptsChanged:{handler(e){this.$emit("has-changes",e)},immediate:!0}},methods:{async answerPrompt({prompt:r,value:s}){await this.$apollo.mutate({mutation:a(),variables:{input:{id:r.id,value:JSON.stringify(s)}},update:(a,{data:{promptAnswer:r}})=>{if(o)return void o.call(this,a,r);let s=i||this.$apollo.queries[e].options.variables||void 0;"function"===typeof s&&(s=s.call(this));const l=a.readQuery({query:n,variables:s});t?t.call(this,l,r):l[e].prompts=r,a.writeQuery({query:n,variables:s,data:l})}})}}}}},13617:function(e,n,i){"use strict";i.d(n,{Z:function(){return r}});var t=i(66208),a=i(43146),o=i.n(a);function r({baseRoute:e=null}={}){let n;return{apollo:{projectCurrent:o()},watch:{projectCurrent(e){this.$_restoreRouteReady&&this.replaceBaseRoute()}},bus:{quickOpenProject(e){this.replaceBaseRoute()}},beforeRouteEnter(e,i,t){if(n){if(!e.params||!Object.keys(e.params).length){const{name:e,params:i,query:a}=n;return void t({name:e,params:i,query:a})}n=null}t()},beforeRouteLeave(e,i,t){i.params&&Object.keys(i.params).length&&(n=i),t()},mounted(){setTimeout((()=>{this.$_restoreRouteReady=!0}),100)},methods:{replaceBaseRoute(){e&&!(0,t.m)(this.$route,e,!1)&&this.$router.replace(e)}}}}},77117:function(e,n,i){"use strict";function t(e){return{VUE_APP_CLI_UI_URL:"",NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_CLI_UI_DEV&&"/"===e.charAt(0)?`http://localhost:${{VUE_APP_CLI_UI_URL:"",NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_GRAPHQL_PORT}${e}`:e}i.d(n,{J:function(){return t}})},66208:function(e,n,i){"use strict";i.d(n,{m:function(){return a},t:function(){return r}});const t=/\/?$/;function a(e,n,i=!0){return!!n&&(e.path&&n.path?e.path.replace(t,"")===n.path.replace(t,"")&&e.hash===n.hash&&(!i||o(e.query,n.query)):!(!e.name||!n.name)&&(e.name===n.name&&e.hash===n.hash&&o(e.params,n.params)&&(!i||o(e.query,n.query))))}function o(e={},n={}){if(!e||!n)return e===n;const i=Object.keys(e),t=Object.keys(n);return i.length===t.length&&i.every((i=>{const t=e[i],a=n[i];return"object"===typeof t&&"object"===typeof a?o(t,a):String(t)===String(a)}))}function r(e,n){return 0===e.path.replace(t,"/").indexOf(n.path.replace(t,"/"))&&(!n.hash||e.hash===n.hash)&&s(e.query,n.query)}function s(e,n){for(const i in n)if(!(i in e))return!1;return!0}},71336:function(e,n,i){"use strict";function t(e){return e&&new RegExp(e.trim().replace(/\s+/g,".{0,5}"),"i")}i.d(n,{C:function(){return t}})},6722:function(e,n,i){"use strict";i.d(n,{t:function(){return a}});let t=null;{const e=/\?theme=(\w+)/.exec(window.location.href);e&&(t=e[1])}function a(){return t}console.log("forced theme",t)},16343:function(e,n,i){"use strict";i.d(n,{l8:function(){return E},zl:function(){return _},MQ:function(){return x}});var t=i(85416),a=i(46502),o=i(85561),r=()=>({connected:!0,loading:0,darkMode:!1,currentProjectId:null}),s=i(14779),l=i.n(s),d={Mutation:{connectedSet:(e,{value:n},{cache:i})=>{const t={connected:n};return i.writeData({data:t}),null},loadingChange:(e,{mod:n},{cache:i})=>{const{loading:t}=i.readQuery({query:l()}),a={loading:t+n};return i.writeData({data:a}),null},darkModeSet:(e,{enabled:n},{cache:i})=>{const t={darkMode:n};i.writeData({data:t});const a=document.getElementsByTagName("html")[0];return n?a.classList.add("vue-ui-dark-mode"):a.classList.remove("vue-ui-dark-mode"),null},currentProjectIdSet:(e,{projectId:n},{cache:i})=>{const t={currentProjectId:n};return i.writeData({data:t}),null}}},c=i(31452),u=c.ZP` +extend type Query { + connected: Boolean! + loading: Boolean! + darkMode: Boolean! + currentProjectId: String +} + +extend type Mutation { + connectedSet (value: Boolean!): Boolean + loadingChange (mod: Int!): Boolean + darkModeSet (enabled: Boolean!): Boolean + currentProjectIdSet (projectId: String): Boolean +} +`,f=i(43146),m=i.n(f),v=i(95569),p=i.n(v),h=i(46126),g=i.n(h),k=i(42478),b=i.n(k),S=i(16493),w=i.n(S),y=i(6722);t["default"].use(a.ZP);let D="";"undefined"===typeof D?D=`ws://localhost:${{VUE_APP_CLI_UI_URL:"",NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_GRAPHQL_PORT}/graphql`:""===D&&(D=window.location.origin.replace("http","ws")+"/graphql");const N={inMemoryCacheOptions:{},wsEndpoint:D,persisting:!1,websocketsOnly:!0,typeDefs:u,resolvers:d,onCacheInit:e=>{e.writeData({data:r()})}},{apolloClient:E,wsClient:j}=(0,o.createApolloClient)(N),_=new a.ZP({defaultClient:E,defaultOptions:{$query:{fetchPolicy:"cache-and-network",errorPolicy:"all"}},watchLoading(e,n){E.mutate({mutation:b(),variables:{mod:n}})},errorHandler(e){console.log("%cAn error occurred","background: red; color: white; padding: 4px; border-radius: 4px;font-weight: bold;"),console.log(e.message),e.graphQLErrors&&console.log(e.graphQLErrors),e.networkError&&console.log(e.networkError)}});async function x(){console.log("[UI] Apollo store reset");const{data:{projectCurrent:e}}=await E.query({query:m(),fetchPolicy:"network-only"}),n=e.id;try{await E.resetStore()}catch(i){}await E.mutate({mutation:p(),variables:{projectId:n}}),F()}function C(e){E.mutate({mutation:g(),variables:{value:e}})}function F(){let e,n;if(n=(0,y.t)())e="dark"===n;else{const n=localStorage.getItem("vue-ui-dark-mode");e="true"===n}E.mutate({mutation:w(),variables:{enabled:e}})}j.on("connected",(()=>C(!0))),j.on("reconnected",(async()=>{await x(),C(!0)})),j.on("disconnected",(()=>C(!1))),j.on("error",(()=>C(!1))),F()},63210:function(e,n,i){var t={"./_lib/buildFormatLongFn/index.js":20289,"./_lib/buildLocalizeFn/index.js":16245,"./_lib/buildMatchFn/index.js":43421,"./_lib/buildMatchPatternFn/index.js":78926,"./af/_lib/formatDistance/index.js":41146,"./af/_lib/formatLong/index.js":60358,"./af/_lib/formatRelative/index.js":31310,"./af/_lib/localize/index.js":82714,"./af/_lib/match/index.js":33185,"./af/index.js":74156,"./ar-DZ/_lib/formatDistance/index.js":10258,"./ar-DZ/_lib/formatLong/index.js":38384,"./ar-DZ/_lib/formatRelative/index.js":12923,"./ar-DZ/_lib/localize/index.js":50996,"./ar-DZ/_lib/match/index.js":53463,"./ar-DZ/index.js":79307,"./ar-EG/_lib/formatDistance/index.js":70405,"./ar-EG/_lib/formatLong/index.js":59137,"./ar-EG/_lib/formatRelative/index.js":19798,"./ar-EG/_lib/localize/index.js":20303,"./ar-EG/_lib/match/index.js":2527,"./ar-EG/index.js":56379,"./ar-MA/_lib/formatDistance/index.js":56716,"./ar-MA/_lib/formatLong/index.js":92086,"./ar-MA/_lib/formatRelative/index.js":79302,"./ar-MA/_lib/localize/index.js":89105,"./ar-MA/_lib/match/index.js":18092,"./ar-MA/index.js":22739,"./ar-SA/_lib/formatDistance/index.js":56224,"./ar-SA/_lib/formatLong/index.js":22041,"./ar-SA/_lib/formatRelative/index.js":90046,"./ar-SA/_lib/localize/index.js":16274,"./ar-SA/_lib/match/index.js":7161,"./ar-SA/index.js":51730,"./ar-TN/_lib/formatDistance/index.js":98818,"./ar-TN/_lib/formatLong/index.js":19048,"./ar-TN/_lib/formatRelative/index.js":30005,"./ar-TN/_lib/localize/index.js":7649,"./ar-TN/_lib/match/index.js":34357,"./ar-TN/index.js":37650,"./ar/_lib/formatDistance/index.js":29226,"./ar/_lib/formatLong/index.js":45604,"./ar/_lib/formatRelative/index.js":77237,"./ar/_lib/localize/index.js":72890,"./ar/_lib/match/index.js":53372,"./ar/index.js":18137,"./az/_lib/formatDistance/index.js":67580,"./az/_lib/formatLong/index.js":3381,"./az/_lib/formatRelative/index.js":5895,"./az/_lib/localize/index.js":79557,"./az/_lib/match/index.js":74390,"./az/index.js":77356,"./be/_lib/formatDistance/index.js":564,"./be/_lib/formatLong/index.js":87682,"./be/_lib/formatRelative/index.js":28206,"./be/_lib/localize/index.js":13533,"./be/_lib/match/index.js":71682,"./be/index.js":9624,"./bg/_lib/formatDistance/index.js":79681,"./bg/_lib/formatLong/index.js":45930,"./bg/_lib/formatRelative/index.js":21185,"./bg/_lib/localize/index.js":91641,"./bg/_lib/match/index.js":45152,"./bg/index.js":94719,"./bn/_lib/formatDistance/index.js":67835,"./bn/_lib/formatLong/index.js":32076,"./bn/_lib/formatRelative/index.js":36520,"./bn/_lib/localize/index.js":12674,"./bn/_lib/match/index.js":35920,"./bn/index.js":82182,"./bs/_lib/formatDistance/index.js":95963,"./bs/_lib/formatLong/index.js":25711,"./bs/_lib/formatRelative/index.js":44374,"./bs/_lib/localize/index.js":28113,"./bs/_lib/match/index.js":69866,"./bs/index.js":32181,"./ca/_lib/formatDistance/index.js":49280,"./ca/_lib/formatLong/index.js":16686,"./ca/_lib/formatRelative/index.js":54470,"./ca/_lib/localize/index.js":50683,"./ca/_lib/match/index.js":73146,"./ca/index.js":44732,"./cs/_lib/formatDistance/index.js":79434,"./cs/_lib/formatLong/index.js":18336,"./cs/_lib/formatRelative/index.js":3003,"./cs/_lib/localize/index.js":48793,"./cs/_lib/match/index.js":63626,"./cs/index.js":76105,"./cy/_lib/formatDistance/index.js":90305,"./cy/_lib/formatLong/index.js":32132,"./cy/_lib/formatRelative/index.js":68527,"./cy/_lib/localize/index.js":17863,"./cy/_lib/match/index.js":53494,"./cy/index.js":96227,"./da/_lib/formatDistance/index.js":96569,"./da/_lib/formatLong/index.js":20658,"./da/_lib/formatRelative/index.js":31002,"./da/_lib/localize/index.js":55578,"./da/_lib/match/index.js":3393,"./da/index.js":44921,"./de-AT/_lib/localize/index.js":56443,"./de-AT/index.js":73210,"./de/_lib/formatDistance/index.js":82376,"./de/_lib/formatLong/index.js":6749,"./de/_lib/formatRelative/index.js":91805,"./de/_lib/localize/index.js":56105,"./de/_lib/match/index.js":83996,"./de/index.js":76119,"./el/_lib/formatDistance/index.js":96170,"./el/_lib/formatLong/index.js":22761,"./el/_lib/formatRelative/index.js":5093,"./el/_lib/localize/index.js":79919,"./el/_lib/match/index.js":20320,"./el/index.js":71511,"./en-AU/_lib/formatLong/index.js":47483,"./en-AU/index.js":51971,"./en-CA/_lib/formatDistance/index.js":16925,"./en-CA/_lib/formatLong/index.js":17156,"./en-CA/index.js":23654,"./en-GB/_lib/formatLong/index.js":90125,"./en-GB/index.js":22709,"./en-IE/index.js":84511,"./en-IN/_lib/formatLong/index.js":44649,"./en-IN/index.js":56635,"./en-NZ/_lib/formatLong/index.js":88738,"./en-NZ/index.js":3557,"./en-US/_lib/formatDistance/index.js":71924,"./en-US/_lib/formatLong/index.js":95062,"./en-US/_lib/formatRelative/index.js":5102,"./en-US/_lib/localize/index.js":87839,"./en-US/_lib/match/index.js":9796,"./en-US/index.js":82512,"./en-ZA/_lib/formatLong/index.js":12820,"./en-ZA/index.js":55585,"./eo/_lib/formatDistance/index.js":60509,"./eo/_lib/formatLong/index.js":61709,"./eo/_lib/formatRelative/index.js":76297,"./eo/_lib/localize/index.js":83419,"./eo/_lib/match/index.js":66460,"./eo/index.js":46050,"./es/_lib/formatDistance/index.js":17308,"./es/_lib/formatLong/index.js":19983,"./es/_lib/formatRelative/index.js":54011,"./es/_lib/localize/index.js":389,"./es/_lib/match/index.js":71365,"./es/index.js":19962,"./et/_lib/formatDistance/index.js":37961,"./et/_lib/formatLong/index.js":50363,"./et/_lib/formatRelative/index.js":87335,"./et/_lib/localize/index.js":50794,"./et/_lib/match/index.js":60084,"./et/index.js":58170,"./eu/_lib/formatDistance/index.js":85454,"./eu/_lib/formatLong/index.js":56183,"./eu/_lib/formatRelative/index.js":94237,"./eu/_lib/localize/index.js":5966,"./eu/_lib/match/index.js":74705,"./eu/index.js":9042,"./fa-IR/_lib/formatDistance/index.js":87201,"./fa-IR/_lib/formatLong/index.js":81884,"./fa-IR/_lib/formatRelative/index.js":91912,"./fa-IR/_lib/localize/index.js":97188,"./fa-IR/_lib/match/index.js":43043,"./fa-IR/index.js":13537,"./fi/_lib/formatDistance/index.js":67380,"./fi/_lib/formatLong/index.js":99532,"./fi/_lib/formatRelative/index.js":15561,"./fi/_lib/localize/index.js":64354,"./fi/_lib/match/index.js":27530,"./fi/index.js":95999,"./fr-CA/_lib/formatLong/index.js":53860,"./fr-CA/index.js":82580,"./fr-CH/_lib/formatLong/index.js":96065,"./fr-CH/_lib/formatRelative/index.js":16372,"./fr-CH/index.js":89718,"./fr/_lib/formatDistance/index.js":66522,"./fr/_lib/formatLong/index.js":34325,"./fr/_lib/formatRelative/index.js":22162,"./fr/_lib/localize/index.js":38803,"./fr/_lib/match/index.js":58213,"./fr/index.js":63126,"./fy/_lib/formatDistance/index.js":36945,"./fy/_lib/formatLong/index.js":84905,"./fy/_lib/formatRelative/index.js":50776,"./fy/_lib/localize/index.js":82930,"./fy/_lib/match/index.js":48674,"./fy/index.js":8848,"./gd/_lib/formatDistance/index.js":52646,"./gd/_lib/formatLong/index.js":88030,"./gd/_lib/formatRelative/index.js":11398,"./gd/_lib/localize/index.js":77390,"./gd/_lib/match/index.js":34044,"./gd/index.js":93698,"./gl/_lib/formatDistance/index.js":22523,"./gl/_lib/formatLong/index.js":75618,"./gl/_lib/formatRelative/index.js":2698,"./gl/_lib/localize/index.js":68154,"./gl/_lib/match/index.js":27475,"./gl/index.js":68846,"./gu/_lib/formatDistance/index.js":22933,"./gu/_lib/formatLong/index.js":82513,"./gu/_lib/formatRelative/index.js":46840,"./gu/_lib/localize/index.js":98528,"./gu/_lib/match/index.js":18201,"./gu/index.js":56209,"./he/_lib/formatDistance/index.js":75736,"./he/_lib/formatLong/index.js":45218,"./he/_lib/formatRelative/index.js":64125,"./he/_lib/localize/index.js":20379,"./he/_lib/match/index.js":15430,"./he/index.js":16309,"./hi/_lib/formatDistance/index.js":51734,"./hi/_lib/formatLong/index.js":78241,"./hi/_lib/formatRelative/index.js":56683,"./hi/_lib/localize/index.js":65282,"./hi/_lib/match/index.js":50248,"./hi/index.js":37056,"./hr/_lib/formatDistance/index.js":7792,"./hr/_lib/formatLong/index.js":77910,"./hr/_lib/formatRelative/index.js":45339,"./hr/_lib/localize/index.js":77677,"./hr/_lib/match/index.js":16436,"./hr/index.js":97276,"./ht/_lib/formatDistance/index.js":61245,"./ht/_lib/formatLong/index.js":67737,"./ht/_lib/formatRelative/index.js":39803,"./ht/_lib/formatters/index.js":46998,"./ht/_lib/localize/index.js":19400,"./ht/_lib/match/index.js":97695,"./ht/index.js":55389,"./hu/_lib/formatDistance/index.js":91898,"./hu/_lib/formatLong/index.js":19266,"./hu/_lib/formatRelative/index.js":41544,"./hu/_lib/localize/index.js":69353,"./hu/_lib/match/index.js":85370,"./hu/index.js":79675,"./hy/_lib/formatDistance/index.js":41839,"./hy/_lib/formatLong/index.js":45625,"./hy/_lib/formatRelative/index.js":80528,"./hy/_lib/localize/index.js":74391,"./hy/_lib/match/index.js":1824,"./hy/index.js":74403,"./id/_lib/formatDistance/index.js":95223,"./id/_lib/formatLong/index.js":27166,"./id/_lib/formatRelative/index.js":65673,"./id/_lib/localize/index.js":98045,"./id/_lib/match/index.js":10798,"./id/index.js":51872,"./is/_lib/formatDistance/index.js":67527,"./is/_lib/formatLong/index.js":73003,"./is/_lib/formatRelative/index.js":75440,"./is/_lib/localize/index.js":53162,"./is/_lib/match/index.js":75101,"./is/index.js":28677,"./it/_lib/formatDistance/index.js":12642,"./it/_lib/formatLong/index.js":96714,"./it/_lib/formatRelative/index.js":74501,"./it/_lib/localize/index.js":82713,"./it/_lib/match/index.js":37281,"./it/index.js":59629,"./ja-Hira/_lib/formatDistance/index.js":65047,"./ja-Hira/_lib/formatLong/index.js":44818,"./ja-Hira/_lib/formatRelative/index.js":20942,"./ja-Hira/_lib/localize/index.js":97031,"./ja-Hira/_lib/match/index.js":71636,"./ja-Hira/index.js":81590,"./ja/_lib/formatDistance/index.js":15525,"./ja/_lib/formatLong/index.js":45161,"./ja/_lib/formatRelative/index.js":85071,"./ja/_lib/localize/index.js":85598,"./ja/_lib/match/index.js":93509,"./ja/index.js":42180,"./ka/_lib/formatDistance/index.js":87414,"./ka/_lib/formatLong/index.js":27355,"./ka/_lib/formatRelative/index.js":91402,"./ka/_lib/localize/index.js":5552,"./ka/_lib/match/index.js":75108,"./ka/index.js":36501,"./kk/_lib/formatDistance/index.js":52071,"./kk/_lib/formatLong/index.js":99466,"./kk/_lib/formatRelative/index.js":52400,"./kk/_lib/localize/index.js":31814,"./kk/_lib/match/index.js":5574,"./kk/index.js":34996,"./km/_lib/formatDistance/index.js":97263,"./km/_lib/formatLong/index.js":66355,"./km/_lib/formatRelative/index.js":34833,"./km/_lib/localize/index.js":99273,"./km/_lib/match/index.js":7916,"./km/index.js":38684,"./kn/_lib/formatDistance/index.js":56071,"./kn/_lib/formatLong/index.js":78505,"./kn/_lib/formatRelative/index.js":8440,"./kn/_lib/localize/index.js":23283,"./kn/_lib/match/index.js":27211,"./kn/index.js":43434,"./ko/_lib/formatDistance/index.js":36136,"./ko/_lib/formatLong/index.js":91257,"./ko/_lib/formatRelative/index.js":52593,"./ko/_lib/localize/index.js":93558,"./ko/_lib/match/index.js":97948,"./ko/index.js":2666,"./lb/_lib/formatDistance/index.js":40714,"./lb/_lib/formatLong/index.js":73815,"./lb/_lib/formatRelative/index.js":1395,"./lb/_lib/localize/index.js":45973,"./lb/_lib/match/index.js":34308,"./lb/index.js":84048,"./lt/_lib/formatDistance/index.js":42067,"./lt/_lib/formatLong/index.js":83573,"./lt/_lib/formatRelative/index.js":63963,"./lt/_lib/localize/index.js":16687,"./lt/_lib/match/index.js":79884,"./lt/index.js":2536,"./lv/_lib/formatDistance/index.js":41340,"./lv/_lib/formatLong/index.js":47090,"./lv/_lib/formatRelative/index.js":54550,"./lv/_lib/localize/index.js":44306,"./lv/_lib/match/index.js":94305,"./lv/index.js":3610,"./mk/_lib/formatDistance/index.js":83350,"./mk/_lib/formatLong/index.js":30299,"./mk/_lib/formatRelative/index.js":21154,"./mk/_lib/localize/index.js":49324,"./mk/_lib/match/index.js":45603,"./mk/index.js":1057,"./mn/_lib/formatDistance/index.js":64216,"./mn/_lib/formatLong/index.js":10562,"./mn/_lib/formatRelative/index.js":69683,"./mn/_lib/localize/index.js":48637,"./mn/_lib/match/index.js":64094,"./mn/index.js":14893,"./ms/_lib/formatDistance/index.js":79522,"./ms/_lib/formatLong/index.js":14333,"./ms/_lib/formatRelative/index.js":51140,"./ms/_lib/localize/index.js":97118,"./ms/_lib/match/index.js":14396,"./ms/index.js":83148,"./mt/_lib/formatDistance/index.js":92252,"./mt/_lib/formatLong/index.js":64778,"./mt/_lib/formatRelative/index.js":69682,"./mt/_lib/localize/index.js":57669,"./mt/_lib/match/index.js":7438,"./mt/index.js":22598,"./nb/_lib/formatDistance/index.js":5979,"./nb/_lib/formatLong/index.js":54727,"./nb/_lib/formatRelative/index.js":91423,"./nb/_lib/localize/index.js":99726,"./nb/_lib/match/index.js":38558,"./nb/index.js":46815,"./nl-BE/_lib/formatDistance/index.js":70218,"./nl-BE/_lib/formatLong/index.js":14661,"./nl-BE/_lib/formatRelative/index.js":51573,"./nl-BE/_lib/localize/index.js":20174,"./nl-BE/_lib/match/index.js":87601,"./nl-BE/index.js":25778,"./nl/_lib/formatDistance/index.js":98562,"./nl/_lib/formatLong/index.js":30221,"./nl/_lib/formatRelative/index.js":96665,"./nl/_lib/localize/index.js":90384,"./nl/_lib/match/index.js":15009,"./nl/index.js":70390,"./nn/_lib/formatDistance/index.js":49714,"./nn/_lib/formatLong/index.js":29983,"./nn/_lib/formatRelative/index.js":35458,"./nn/_lib/localize/index.js":87563,"./nn/_lib/match/index.js":12324,"./nn/index.js":72495,"./pl/_lib/formatDistance/index.js":7325,"./pl/_lib/formatLong/index.js":50807,"./pl/_lib/formatRelative/index.js":66002,"./pl/_lib/localize/index.js":12885,"./pl/_lib/match/index.js":84817,"./pl/index.js":63618,"./pt-BR/_lib/formatDistance/index.js":38877,"./pt-BR/_lib/formatLong/index.js":23903,"./pt-BR/_lib/formatRelative/index.js":41897,"./pt-BR/_lib/localize/index.js":78076,"./pt-BR/_lib/match/index.js":13550,"./pt-BR/index.js":81333,"./pt/_lib/formatDistance/index.js":1092,"./pt/_lib/formatLong/index.js":10063,"./pt/_lib/formatRelative/index.js":29479,"./pt/_lib/localize/index.js":81235,"./pt/_lib/match/index.js":51549,"./pt/index.js":63086,"./ro/_lib/formatDistance/index.js":6666,"./ro/_lib/formatLong/index.js":60333,"./ro/_lib/formatRelative/index.js":67125,"./ro/_lib/localize/index.js":39408,"./ro/_lib/match/index.js":9480,"./ro/index.js":66088,"./ru/_lib/formatDistance/index.js":88770,"./ru/_lib/formatLong/index.js":83233,"./ru/_lib/formatRelative/index.js":53566,"./ru/_lib/localize/index.js":81348,"./ru/_lib/match/index.js":45195,"./ru/index.js":66754,"./sk/_lib/formatDistance/index.js":46732,"./sk/_lib/formatLong/index.js":21831,"./sk/_lib/formatRelative/index.js":50560,"./sk/_lib/localize/index.js":31044,"./sk/_lib/match/index.js":58923,"./sk/index.js":78259,"./sl/_lib/formatDistance/index.js":76930,"./sl/_lib/formatLong/index.js":9273,"./sl/_lib/formatRelative/index.js":83070,"./sl/_lib/localize/index.js":42958,"./sl/_lib/match/index.js":83296,"./sl/index.js":1139,"./sq/_lib/formatDistance/index.js":36794,"./sq/_lib/formatLong/index.js":62624,"./sq/_lib/formatRelative/index.js":19232,"./sq/_lib/localize/index.js":76880,"./sq/_lib/match/index.js":57930,"./sq/index.js":43852,"./sr-Latn/_lib/formatDistance/index.js":26261,"./sr-Latn/_lib/formatLong/index.js":40214,"./sr-Latn/_lib/formatRelative/index.js":619,"./sr-Latn/_lib/localize/index.js":25494,"./sr-Latn/_lib/match/index.js":70091,"./sr-Latn/index.js":62394,"./sr/_lib/formatDistance/index.js":94963,"./sr/_lib/formatLong/index.js":9572,"./sr/_lib/formatRelative/index.js":32195,"./sr/_lib/localize/index.js":63747,"./sr/_lib/match/index.js":59555,"./sr/index.js":32397,"./sv/_lib/formatDistance/index.js":93283,"./sv/_lib/formatLong/index.js":45853,"./sv/_lib/formatRelative/index.js":46304,"./sv/_lib/localize/index.js":62185,"./sv/_lib/match/index.js":31379,"./sv/index.js":29779,"./ta/_lib/formatDistance/index.js":74639,"./ta/_lib/formatLong/index.js":83101,"./ta/_lib/formatRelative/index.js":14179,"./ta/_lib/localize/index.js":88574,"./ta/_lib/match/index.js":6042,"./ta/index.js":32718,"./te/_lib/formatDistance/index.js":15919,"./te/_lib/formatLong/index.js":23003,"./te/_lib/formatRelative/index.js":15927,"./te/_lib/localize/index.js":28739,"./te/_lib/match/index.js":46028,"./te/index.js":52275,"./th/_lib/formatDistance/index.js":73448,"./th/_lib/formatLong/index.js":29011,"./th/_lib/formatRelative/index.js":46945,"./th/_lib/localize/index.js":44017,"./th/_lib/match/index.js":65534,"./th/index.js":98492,"./tr/_lib/formatDistance/index.js":91742,"./tr/_lib/formatLong/index.js":66075,"./tr/_lib/formatRelative/index.js":38897,"./tr/_lib/localize/index.js":81281,"./tr/_lib/match/index.js":20941,"./tr/index.js":41062,"./ug/_lib/formatDistance/index.js":31914,"./ug/_lib/formatLong/index.js":70065,"./ug/_lib/formatRelative/index.js":4128,"./ug/_lib/localize/index.js":19758,"./ug/_lib/match/index.js":60663,"./ug/index.js":61505,"./uk/_lib/formatDistance/index.js":2647,"./uk/_lib/formatLong/index.js":71831,"./uk/_lib/formatRelative/index.js":80507,"./uk/_lib/localize/index.js":31882,"./uk/_lib/match/index.js":88845,"./uk/index.js":25490,"./uz-Cyrl/_lib/formatDistance/index.js":59074,"./uz-Cyrl/_lib/formatLong/index.js":16798,"./uz-Cyrl/_lib/formatRelative/index.js":65283,"./uz-Cyrl/_lib/localize/index.js":10755,"./uz-Cyrl/_lib/match/index.js":56523,"./uz-Cyrl/index.js":93757,"./uz/_lib/formatDistance/index.js":55965,"./uz/_lib/formatLong/index.js":59606,"./uz/_lib/formatRelative/index.js":81632,"./uz/_lib/localize/index.js":52970,"./uz/_lib/match/index.js":29633,"./uz/index.js":26466,"./vi/_lib/formatDistance/index.js":72198,"./vi/_lib/formatLong/index.js":32592,"./vi/_lib/formatRelative/index.js":20022,"./vi/_lib/localize/index.js":48125,"./vi/_lib/match/index.js":8624,"./vi/index.js":52358,"./zh-CN/_lib/formatDistance/index.js":31526,"./zh-CN/_lib/formatLong/index.js":87969,"./zh-CN/_lib/formatRelative/index.js":6915,"./zh-CN/_lib/localize/index.js":6890,"./zh-CN/_lib/match/index.js":95454,"./zh-CN/index.js":24602,"./zh-HK/_lib/formatDistance/index.js":84231,"./zh-HK/_lib/formatLong/index.js":47076,"./zh-HK/_lib/formatRelative/index.js":53082,"./zh-HK/_lib/localize/index.js":13653,"./zh-HK/_lib/match/index.js":88357,"./zh-HK/index.js":96835,"./zh-TW/_lib/formatDistance/index.js":63106,"./zh-TW/_lib/formatLong/index.js":27177,"./zh-TW/_lib/formatRelative/index.js":13238,"./zh-TW/_lib/localize/index.js":46341,"./zh-TW/_lib/match/index.js":7768,"./zh-TW/index.js":68368};function a(e){var n=o(e);return i(n)}function o(e){if(!i.o(t,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t[e]}a.keys=function(){return Object.keys(t)},a.resolve=o,e.exports=a,a.id=63210},59545:function(e,n,i){var t={"./Prompt.vue":95438,"./PromptCheckbox.vue":98595,"./PromptColor.vue":84305,"./PromptConfirm.vue":86946,"./PromptEditor.vue":43406,"./PromptError.vue":5457,"./PromptInput.vue":67459,"./PromptList.vue":1181,"./PromptsList.vue":40133};function a(e){var n=o(e);return i(n)}function o(e){if(!i.o(t,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t[e]}a.keys=function(){return Object.keys(t)},a.resolve=o,e.exports=a,a.id=59545},30835:function(e,n,i){var t={"./app/About.vue":8771,"./app/AppLoading.vue":86848,"./app/ConnectionStatus.vue":92761,"./app/LocaleLoader.vue":65027,"./app/NotFound.vue":31350,"./app/ProgressScreen.vue":78794,"./app/ProjectHome.vue":80890,"./app/ProjectQuickDropdown.vue":86355,"./app/StatusBar.vue":59760,"./app/TopBar.vue":58373,"./client-addon/ClientAddonComponent.vue":52248,"./client-addon/ClientAddonLoader.vue":750,"./configuration/ConfigurationItem.vue":60963,"./configuration/ConfigurationTab.vue":7591,"./configuration/ProjectConfigurationDetails.vue":27194,"./configuration/ProjectConfigurations.vue":41882,"./content/ContentView.vue":66571,"./content/ItemLogo.vue":66898,"./content/ListFilter.vue":61418,"./content/ListItemInfo.vue":10596,"./content/ListSort.vue":27164,"./content/NavContent.vue":43666,"./content/NavList.vue":47975,"./content/StepWizard.vue":70500,"./content/TerminalView.vue":88819,"./dashboard/ProjectDashboard.vue":94121,"./dashboard/Widget.vue":96302,"./dashboard/WidgetAddItem.vue":98699,"./dashboard/WidgetAddPane.vue":1848,"./dashboard/WidgetDetailsView.vue":49930,"./dependency/NpmPackageSearch.vue":41492,"./dependency/PackageSearchItem.vue":30140,"./dependency/ProjectDependencies.vue":12686,"./dependency/ProjectDependencyItem.vue":10296,"./file-diff/FileDiff.vue":13797,"./file-diff/FileDiffChange.vue":4756,"./file-diff/FileDiffChunk.vue":39603,"./file-diff/FileDiffView.vue":73024,"./folder/FolderExplorer.vue":40758,"./folder/FolderExplorerItem.vue":18811,"./logger/LoggerMessage.vue":52321,"./logger/LoggerView.vue":4092,"./plugin/ProjectPluginAddLocal.vue":27670,"./plugin/ProjectPluginItem.vue":86710,"./plugin/ProjectPlugins.vue":60866,"./plugin/ProjectPluginsAdd.vue":7058,"./project-create/ProjectCreate.vue":89119,"./project-create/ProjectFeatureItem.vue":21275,"./project-create/ProjectPresetItem.vue":12110,"./project-manager/ProjectRename.vue":74737,"./project-manager/ProjectSelect.vue":84096,"./project-manager/ProjectSelectList.vue":98805,"./project-manager/ProjectSelectListItem.vue":22686,"./project-manager/ProjectTasksDropdown.vue":85268,"./prompt/Prompt.vue":95438,"./prompt/PromptCheckbox.vue":98595,"./prompt/PromptColor.vue":84305,"./prompt/PromptConfirm.vue":86946,"./prompt/PromptEditor.vue":43406,"./prompt/PromptError.vue":5457,"./prompt/PromptInput.vue":67459,"./prompt/PromptList.vue":1181,"./prompt/PromptsList.vue":40133,"./search/InstantSearchInput.vue":59396,"./search/InstantSearchPagination.vue":62864,"./suggestion/SuggestionBar.vue":48416,"./suggestion/SuggestionBarItem.vue":35764,"./suggestion/SuggestionBarList.vue":89872,"./task/ProjectTaskDetails.vue":97368,"./task/ProjectTasks.vue":83458,"./task/TaskItem.vue":41210,"./view/ViewBadge.vue":93262,"./view/ViewNav.vue":11075,"./view/ViewNavButton.vue":42703,"./view/ViewNavMore.vue":84394};function a(e){var n=o(e);return i(n)}function o(e){if(!i.o(t,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return t[e]}a.keys=function(){return Object.keys(t)},a.resolve=o,e.exports=a,a.id=30835},96198:function(e,n,i){"use strict";e.exports=i.p+"img/search-by-algolia.41580aee.svg"},66949:function(e){"use strict";e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAABU1BMVEUAAABBuIM1SV5BuINBuINAsIFBuINBuINBuINAsoE2TmBBuINBuINBuINBuINBuINBuINBuINBuINBuINBuINBuoRBuINBuINBuINBuINApn5AroBBuINBuINBuINBuINBuINBuIM8d3BBuINBuIM4XGVBuIM5ZmpBuINBuINBuIM8enI2UWE3VGM3VWNBuINBuIM3V2RBuIM4WmQ5YmhBuIM5Y2k6amtBuINBuIM6bm07cG47b207dG9BuINBuIMzO1k6Z2o6aGpBuINBuIM1SV5Bt4NDyok0Qlw0QFtCxogzOFk1R10zNldDzIk1Rl00RFwyNVczPVozO1lCw4dBvIRBvoVBv4VCyIhCwYZBuoM1S187gHEzN1dAqX8/nns+kXc9i3U7eW85bms5Z2k/o30+mHk4YWc4XGY3V2Q3UmJAroE8hXM6c21Bs4JBsYEzNFfbZAU+AAAARHRSTlMAu7v7IA7y5sQG/typi3pcQhT27cy9mmoxKAkDoZKDVEk7KhnRv7aSY083G/Xr4+DY2NTLsq+hd3RwZVVJOi2zu4WBsmbv4tkAAAcESURBVHja7NdZT+JgFMbx44aC+wIqxsQQkShqYjSYuCRq3rcLLW0pmwqI+4LL97+cGcfMKBbOE1Pu+rsmQHPSk/OnQCAQCAQCgUCAFYv2AKLR5FEvL0GES/TyjpJR7P/FKCYg2VpdspwMES7jSFa9lhWQGNGwACiV8lOBfxCZIFhC8g9SeCpXFAEYJqIJgVDU+4ItOfo2wbZ1ybGNe1URiAn6rUcgStnbuuSYzj6B9h1Tcuq32ZJA9NAf/dhIsheaJjnaBoE2gC/TLrLYQPrp3aiAqNd5ydJOCHKiSVb+WhWQUforHIJGcqZUXf5BImkCpCP8g7gR5QwaSChMH8YFQrGucpKl7xBgR5es3JWlCMQ4/bMsEOXioyE5tnlIrEPTlhzj8awsEMv03xq4ghsFhx/JFrG2+IE4hQa4etfokxGBOFdvcpJjanvE2NNMycndqOcCMUKfTfZhK/jZ1iVHWw9TR+F1jZ+r/Yyt3r5J+mJMQKwasIL1FHWU0oHVW7MEZIxaDGIruNR0JceppqmDdNWRHLdZwlbvILVaBd/3S8PkR5KkDpL8QEzjEnzTV+mbIfDkejAkx7QPqK0D25Qc46FYEogh+m4eG8npnQus4E1qaxNYve7dKTaQefIAJpb6mgdW8C61sQus3vyriuaUl4EpaCTFN6kDJ9cAeRqIAKtXvhWhgUy1+ZFZAbFekJMrQ54yyJH1YgnILHmCq7eCVe/P+7YC9603vHoNtHq737feVnyt3i737Qp58796F6jFgu996w2vXguq3mNqcQz1rYX2bSfhaezkEhGgeqvp1iPLx76dZk5ssHpVrHp/0rcq2reMma5UL963RaxvZ4gzB55cDRevXrxv3QZ4ZM0Rw+/q7VrfMnyv3jh9iPvctwz/q7dLfcvCq7dSahaA6k3QuwTQt4VmqQL2LWbJ3+r1v2+XCOB/9eJ9m0X7FoRXrw7cTpvvfQt8UMf7Frboa/VifZtD+3aRcPEQWL1VpHqJkL6tgn0bihMIr14Fq95UCutbBe9b3C/mzV41gSgKg6eI4AtY7cZFTGGnCII2psheE8HF+FOYNWIgFsHGvH+VLkUI7nd3TuG8gSzIHc58A+3JpVjvYr9fCH4rHhEGFkfH8da7qP4dy43qtx2L5ClXKHenIjhQnHZlrvBosXQdrdfRb7sWTVu3Xsy36rdtiydxs17Bb3PRbxOrQaY+uQ4BcvgQ/3ozq4BZb8WTS3hkMb91tV4A8FuV1MN6/fw2tbo0NOvdXq5Yr+K3W81vG1abMbZeR78dG6Av5nVXrLfSb8VIrm8K3HqXoRZL5rc6LXZo8DsitIxxh6zX0W/vDHIP8joQyQG/hdY7+8d6Bb+dyX6L6eU4r+ORXM8cGGpPrrevTYhko0ZyQ9Ph1nv8Y72C3x5j/JYzEq33s4h9ZIl+O7IouPW+vtyM3+rWy59cq/fnOL/lJGJeV57XEX57LsVILjE3MnBowEeEzBxpAuuFfts0T6biJ/nN64RITvwgU3MlVQ8NRVDQjwipAUBedwnzIDAPFxDJISZqXrcKAis1kpuYM2BUxkZgHJ7X+UdyHDAqwyMwDs/reCTnDBiVsRGYM76jsvVeH4E5A0ZlbATmDBiVkUjuwZyhozI+AuPwvI5Hchye1/FIjsPzOhzJucNHZXwExoGjMj4C4/C8jkdy/vBRGR+BcfiojI/AOHxUxkdgHDoqAyMwd/iojI/AONx6b8Zvf9q3m5UEgyiM4yc0LPyksg8wRYywNooQ2CY3A21sGYo77/8muoHjO69zZpjnifndxZ9zHuuozDgC02WpXpi+tY7KrCMwu7ijsvpPcteSkH1U9nP8zt631lGZYQRmkOK9LsmTXI7qhelbc/XC9K21enH61jYq225/dyB9a3qv2x+P+/RPcvbq9dvtHEzfmqr3cADqW9N7XfInuXjvdXb2J7n01QvWt7qli2QpeU1dJFPJbOOi2EhuMxfFTLIbuwjGkp9vVFZzBAZg4swmAqGqekH79vzqRe1b3ciZjASFZ1TmH4HBWDuDtQBZuGALQaJXL3bf6oYu0FCwaIcGvCNCHc98fXuqevn6Vjd3AeYCaOXOthJEU8K+DRiVaT4E04ywb3Vjvr71j8r8WhB9q5sQ9m3FoQH9iGAYlWm+BNqIr29Pv9chPcklH5V9Crw21pNcuAHYk1zSUdmFMGgS9q2ui/UkZxmVeUdgJPpgT3KJRmUvwuO9egRGpIP1JGd5r8N6kgvXA3uSC9fCepKLPip7EzpXfH2rewJ7kos6KrsXRpc3fH2rewB7kgvX5utb3YCwb2uMyl6FV5Owb3Vdvr71jcpuafpW1yfsW90d1pNcuEewJ7lwHb6+PVW9fH2r6xH2ra7RkP9hDvk6UxRFURRFURS0/gD8CBvXYvEa7AAAAABJRU5ErkJggg=="},45503:function(){}},n={};function i(t){var a=n[t];if(void 0!==a)return a.exports;var o=n[t]={id:t,loaded:!1,exports:{}};return e[t].call(o.exports,o,o.exports,i),o.loaded=!0,o.exports}i.m=e,function(){var e=[];i.O=function(n,t,a,o){if(!t){var r=1/0;for(c=0;c=o)&&Object.keys(i.O).every((function(e){return i.O[e](t[l])}))?t.splice(l--,1):(s=!1,o0&&e[c-1][2]>o;c--)e[c]=e[c-1];e[c]=[t,a,o]}}(),function(){i.n=function(e){var n=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(n,{a:n}),n}}(),function(){i.d=function(e,n){for(var t in n)i.o(n,t)&&!i.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})}}(),function(){i.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}()}(),function(){i.hmd=function(e){return e=Object.create(e),e.children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:function(){throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e}}(),function(){i.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}}(),function(){i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){i.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e}}(),function(){i.p="/"}(),function(){var e={143:0};i.O.j=function(n){return 0===e[n]};var n=function(n,t){var a,o,r=t[0],s=t[1],l=t[2],d=0;if(r.some((function(n){return 0!==e[n]}))){for(a in s)i.o(s,a)&&(i.m[a]=s[a]);if(l)var c=l(i)}for(n&&n(t);d 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"routeRequested\"] = oneQuery(doc, \"routeRequested\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"clientAddonAdded\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"clientAddonAdded\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"clientAddon\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":115}};\n doc.loc.source = {\"body\":\"#import \\\"./clientAddonFragment.gql\\\"\\n\\nsubscription clientAddonAdded {\\n clientAddonAdded {\\n ...clientAddon\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./clientAddonFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"clientAddonAdded\"] = oneQuery(doc, \"clientAddonAdded\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"clientAddon\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ClientAddon\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"url\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":51}};\n doc.loc.source = {\"body\":\"fragment clientAddon on ClientAddon {\\n id\\n url\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"clientAddon\"] = oneQuery(doc, \"clientAddon\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"clientAddons\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"clientAddons\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"clientAddon\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":100}};\n doc.loc.source = {\"body\":\"#import \\\"./clientAddonFragment.gql\\\"\\n\\nquery clientAddons {\\n clientAddons {\\n ...clientAddon\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./clientAddonFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"clientAddons\"] = oneQuery(doc, \"clientAddons\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"configuration\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"configuration\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"configuration\"},\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"link\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"tabs\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"label\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"icon\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"prompts\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"prompt\"},\"directives\":[]}]}}]}}]}}]}}],\"loc\":{\"start\":0,\"end\":265}};\n doc.loc.source = {\"body\":\"#import \\\"./configurationFragment.gql\\\"\\n#import \\\"../prompt/promptFragment.gql\\\"\\n\\nquery configuration ($id: ID!) {\\n configuration(id: $id) {\\n ...configuration\\n link\\n tabs {\\n id\\n label\\n icon\\n prompts {\\n ...prompt\\n }\\n }\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./configurationFragment.gql\").definitions));\ndoc.definitions = doc.definitions.concat(unique(require(\"../prompt/promptFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"configuration\"] = oneQuery(doc, \"configuration\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"configurationCancel\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"configurationCancel\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"configuration\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":142}};\n doc.loc.source = {\"body\":\"#import \\\"./configurationFragment.gql\\\"\\n\\nmutation configurationCancel ($id: ID!) {\\n configurationCancel (id: $id) {\\n ...configuration\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./configurationFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"configurationCancel\"] = oneQuery(doc, \"configurationCancel\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"configuration\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Configuration\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"description\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"icon\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"plugin\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"logo\"},\"arguments\":[],\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":108}};\n doc.loc.source = {\"body\":\"fragment configuration on Configuration {\\n id\\n name\\n description\\n icon\\n plugin {\\n id\\n logo\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"configuration\"] = oneQuery(doc, \"configuration\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"configurationSave\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"configurationSave\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"configuration\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":138}};\n doc.loc.source = {\"body\":\"#import \\\"./configurationFragment.gql\\\"\\n\\nmutation configurationSave ($id: ID!) {\\n configurationSave (id: $id) {\\n ...configuration\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./configurationFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"configurationSave\"] = oneQuery(doc, \"configurationSave\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"configurations\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"configurations\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"configuration\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":108}};\n doc.loc.source = {\"body\":\"#import \\\"./configurationFragment.gql\\\"\\n\\nquery configurations {\\n configurations {\\n ...configuration\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./configurationFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"configurations\"] = oneQuery(doc, \"configurations\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"connected\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"connected\"},\"arguments\":[],\"directives\":[{\"kind\":\"Directive\",\"name\":{\"kind\":\"Name\",\"value\":\"client\"},\"arguments\":[]}]}]}}],\"loc\":{\"start\":0,\"end\":40}};\n doc.loc.source = {\"body\":\"query connected {\\n connected @client\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"connected\"] = oneQuery(doc, \"connected\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"connectedSet\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"value\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Boolean\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"connectedSet\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"value\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"value\"}}}],\"directives\":[{\"kind\":\"Directive\",\"name\":{\"kind\":\"Name\",\"value\":\"client\"},\"arguments\":[]}]}]}}],\"loc\":{\"start\":0,\"end\":84}};\n doc.loc.source = {\"body\":\"mutation connectedSet ($value: Boolean!) {\\n connectedSet (value: $value) @client\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"connectedSet\"] = oneQuery(doc, \"connectedSet\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"consoleLogAdded\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"consoleLogAdded\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"consoleLog\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":111}};\n doc.loc.source = {\"body\":\"#import \\\"./consoleLogFragment.gql\\\"\\n\\nsubscription consoleLogAdded {\\n consoleLogAdded {\\n ...consoleLog\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./consoleLogFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"consoleLogAdded\"] = oneQuery(doc, \"consoleLogAdded\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"consoleLog\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ConsoleLog\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"type\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"message\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"tag\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"date\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":73}};\n doc.loc.source = {\"body\":\"fragment consoleLog on ConsoleLog {\\n id\\n type\\n message\\n tag\\n date\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"consoleLog\"] = oneQuery(doc, \"consoleLog\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"consoleLogLast\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"consoleLogLast\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"consoleLog\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":102}};\n doc.loc.source = {\"body\":\"#import \\\"./consoleLogFragment.gql\\\"\\n\\nquery consoleLogLast {\\n consoleLogLast {\\n ...consoleLog\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./consoleLogFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"consoleLogLast\"] = oneQuery(doc, \"consoleLogLast\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"consoleLogs\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"consoleLogs\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"consoleLog\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":96}};\n doc.loc.source = {\"body\":\"#import \\\"./consoleLogFragment.gql\\\"\\n\\nquery consoleLogs {\\n consoleLogs {\\n ...consoleLog\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./consoleLogFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"consoleLogs\"] = oneQuery(doc, \"consoleLogs\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"consoleLogsClear\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"consoleLogsClear\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"consoleLog\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":109}};\n doc.loc.source = {\"body\":\"#import \\\"./consoleLogFragment.gql\\\"\\n\\nmutation consoleLogsClear {\\n consoleLogsClear {\\n ...consoleLog\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./consoleLogFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"consoleLogsClear\"] = oneQuery(doc, \"consoleLogsClear\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"cwd\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"cwd\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":20}};\n doc.loc.source = {\"body\":\"query cwd {\\n cwd\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"cwd\"] = oneQuery(doc, \"cwd\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"cwdChanged\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"alias\":{\"kind\":\"Name\",\"value\":\"cwd\"},\"name\":{\"kind\":\"Name\",\"value\":\"cwdChanged\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":46}};\n doc.loc.source = {\"body\":\"subscription cwdChanged {\\n cwd: cwdChanged\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"cwdChanged\"] = oneQuery(doc, \"cwdChanged\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"darkMode\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"darkMode\"},\"arguments\":[],\"directives\":[{\"kind\":\"Directive\",\"name\":{\"kind\":\"Name\",\"value\":\"client\"},\"arguments\":[]}]}]}}],\"loc\":{\"start\":0,\"end\":38}};\n doc.loc.source = {\"body\":\"query darkMode {\\n darkMode @client\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"darkMode\"] = oneQuery(doc, \"darkMode\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"darkModeSet\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"enabled\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Boolean\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"darkModeSet\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"enabled\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"enabled\"}}}],\"directives\":[{\"kind\":\"Directive\",\"name\":{\"kind\":\"Name\",\"value\":\"client\"},\"arguments\":[]}]}]}}],\"loc\":{\"start\":0,\"end\":87}};\n doc.loc.source = {\"body\":\"mutation darkModeSet($enabled: Boolean!) {\\n darkModeSet (enabled: $enabled) @client\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"darkModeSet\"] = oneQuery(doc, \"darkModeSet\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"dependencies\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"dependencies\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"dependency\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":97}};\n doc.loc.source = {\"body\":\"#import \\\"./dependencyFragment.gql\\\"\\n\\nquery dependencies {\\n dependencies {\\n ...dependency\\n }\\n}\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./dependencyFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"dependencies\"] = oneQuery(doc, \"dependencies\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"dependenciesUpdate\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"dependenciesUpdate\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"version\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"current\"},\"arguments\":[],\"directives\":[]}]}}]}}]}}],\"loc\":{\"start\":0,\"end\":100}};\n doc.loc.source = {\"body\":\"mutation dependenciesUpdate {\\n dependenciesUpdate {\\n id\\n version {\\n current\\n }\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"dependenciesUpdate\"] = oneQuery(doc, \"dependenciesUpdate\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"dependencyDetails\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"alias\":{\"kind\":\"Name\",\"value\":\"dependencyDetails\"},\"name\":{\"kind\":\"Name\",\"value\":\"dependency\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"version\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"version\"},\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"description\"},\"arguments\":[],\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":189}};\n doc.loc.source = {\"body\":\"#import \\\"../version/versionFragment.gql\\\"\\n\\nquery dependencyDetails ($id: ID!) {\\n dependencyDetails: dependency (id: $id) {\\n id\\n version {\\n ...version\\n }\\n description\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"../version/versionFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"dependencyDetails\"] = oneQuery(doc, \"dependencyDetails\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"dependency\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Dependency\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"type\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"installed\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"website\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":71}};\n doc.loc.source = {\"body\":\"fragment dependency on Dependency {\\n id\\n type\\n installed\\n website\\n}\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"dependency\"] = oneQuery(doc, \"dependency\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"dependencyInstall\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"DependencyInstall\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"dependencyInstall\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"dependency\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":156}};\n doc.loc.source = {\"body\":\"#import \\\"./dependencyFragment.gql\\\"\\n\\nmutation dependencyInstall ($input: DependencyInstall!) {\\n dependencyInstall (input: $input) {\\n ...dependency\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./dependencyFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"dependencyInstall\"] = oneQuery(doc, \"dependencyInstall\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"dependencyUninstall\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"DependencyUninstall\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"dependencyUninstall\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"dependency\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":162}};\n doc.loc.source = {\"body\":\"#import \\\"./dependencyFragment.gql\\\"\\n\\nmutation dependencyUninstall ($input: DependencyUninstall!) {\\n dependencyUninstall (input: $input) {\\n ...dependency\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./dependencyFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"dependencyUninstall\"] = oneQuery(doc, \"dependencyUninstall\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"dependencyUpdate\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"DependencyUpdate\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"dependencyUpdate\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"version\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"current\"},\"arguments\":[],\"directives\":[]}]}}]}}]}}],\"loc\":{\"start\":0,\"end\":139}};\n doc.loc.source = {\"body\":\"mutation dependencyUpdate ($input: DependencyUpdate!) {\\n dependencyUpdate (input: $input) {\\n id\\n version {\\n current\\n }\\n }\\n}\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"dependencyUpdate\"] = oneQuery(doc, \"dependencyUpdate\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"feature\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Feature\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"description\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"link\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"enabled\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":75}};\n doc.loc.source = {\"body\":\"fragment feature on Feature {\\n id\\n name\\n description\\n link\\n enabled\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"feature\"] = oneQuery(doc, \"feature\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"featureSetEnabled\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"enabled\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Boolean\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"featureSetEnabled\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"enabled\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"enabled\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"feature\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":165}};\n doc.loc.source = {\"body\":\"#import \\\"./featureFragment.gql\\\"\\n\\nmutation featureSetEnabled ($id: ID!, $enabled: Boolean!) {\\n featureSetEnabled (id: $id, enabled: $enabled) {\\n ...feature\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./featureFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"featureSetEnabled\"] = oneQuery(doc, \"featureSetEnabled\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"fileOpenInEditor\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"OpenInEditorInput\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"fileOpenInEditor\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":94}};\n doc.loc.source = {\"body\":\"mutation fileOpenInEditor ($input: OpenInEditorInput!) {\\n fileOpenInEditor (input: $input)\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"fileOpenInEditor\"] = oneQuery(doc, \"fileOpenInEditor\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"folderCreate\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"folderCreate\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"folderCurrent\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":137}};\n doc.loc.source = {\"body\":\"#import \\\"./folderCurrentFragment.gql\\\"\\n\\nmutation folderCreate ($name: String!) {\\n folderCreate (name: $name) {\\n ...folderCurrent\\n }\\n}\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./folderCurrentFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"folderCreate\"] = oneQuery(doc, \"folderCreate\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"folderCurrent\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"folderCurrent\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"folderCurrent\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":106}};\n doc.loc.source = {\"body\":\"#import \\\"./folderCurrentFragment.gql\\\"\\n\\nquery folderCurrent {\\n folderCurrent {\\n ...folderCurrent\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./folderCurrentFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"folderCurrent\"] = oneQuery(doc, \"folderCurrent\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"folderCurrent\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Folder\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"path\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"favorite\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"isPackage\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"isVueProject\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"children\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"path\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"isPackage\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"isVueProject\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"hidden\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"favorite\"},\"arguments\":[],\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":179}};\n doc.loc.source = {\"body\":\"fragment folderCurrent on Folder {\\n name\\n path\\n favorite\\n isPackage\\n isVueProject\\n children {\\n name\\n path\\n isPackage\\n isVueProject\\n hidden\\n favorite\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"folderCurrent\"] = oneQuery(doc, \"folderCurrent\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"folderExists\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"file\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"folderExists\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"file\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"file\"}}}],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":67}};\n doc.loc.source = {\"body\":\"query folderExists ($file: String!) {\\n folderExists(file: $file)\\n}\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"folderExists\"] = oneQuery(doc, \"folderExists\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"folderOpen\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"path\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"folderOpen\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"path\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"path\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"folderCurrent\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":133}};\n doc.loc.source = {\"body\":\"#import \\\"./folderCurrentFragment.gql\\\"\\n\\nmutation folderOpen ($path: String!) {\\n folderOpen(path: $path) {\\n ...folderCurrent\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./folderCurrentFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"folderOpen\"] = oneQuery(doc, \"folderOpen\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"folderOpenParent\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"folderOpenParent\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"folderCurrent\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":115}};\n doc.loc.source = {\"body\":\"#import \\\"./folderCurrentFragment.gql\\\"\\n\\nmutation folderOpenParent {\\n folderOpenParent {\\n ...folderCurrent\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./folderCurrentFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"folderOpenParent\"] = oneQuery(doc, \"folderOpenParent\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"folderSetFavorite\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"path\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}},\"directives\":[]},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"favorite\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Boolean\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"folderSetFavorite\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"path\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"path\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"favorite\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"favorite\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"folderCurrent\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":190}};\n doc.loc.source = {\"body\":\"#import \\\"./folderCurrentFragment.gql\\\"\\n\\nmutation folderSetFavorite ($path: String!, $favorite: Boolean!) {\\n folderSetFavorite (path: $path, favorite: $favorite) {\\n ...folderCurrent\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./folderCurrentFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"folderSetFavorite\"] = oneQuery(doc, \"folderSetFavorite\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"foldersFavorite\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"foldersFavorite\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"path\"},\"arguments\":[],\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":59}};\n doc.loc.source = {\"body\":\"query foldersFavorite {\\n foldersFavorite {\\n path\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"foldersFavorite\"] = oneQuery(doc, \"foldersFavorite\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"fileDiffs\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"fileDiffs\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"from\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"to\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"new\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"deleted\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"binary\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"chunks\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"oldStart\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"oldLines\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"newStart\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"newLines\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"changes\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"type\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"ln\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"ln1\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"ln2\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"content\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"normal\"},\"arguments\":[],\"directives\":[]}]}}]}}]}}]}}],\"loc\":{\"start\":0,\"end\":274}};\n doc.loc.source = {\"body\":\"query fileDiffs {\\n fileDiffs {\\n id\\n from\\n to\\n new\\n deleted\\n binary\\n chunks {\\n oldStart\\n oldLines\\n newStart\\n newLines\\n changes {\\n type\\n ln\\n ln1\\n ln2\\n content\\n normal\\n }\\n }\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"fileDiffs\"] = oneQuery(doc, \"fileDiffs\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"gitCommit\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"message\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"String\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"gitCommit\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"message\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"message\"}}}],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":75}};\n doc.loc.source = {\"body\":\"mutation gitCommit ($message: String!) {\\n gitCommit (message: $message)\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"gitCommit\"] = oneQuery(doc, \"gitCommit\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"loading\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"loading\"},\"arguments\":[],\"directives\":[{\"kind\":\"Directive\",\"name\":{\"kind\":\"Name\",\"value\":\"client\"},\"arguments\":[]}]}]}}],\"loc\":{\"start\":0,\"end\":36}};\n doc.loc.source = {\"body\":\"query loading {\\n loading @client\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"loading\"] = oneQuery(doc, \"loading\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"loadingChange\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"mod\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Int\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"loadingChange\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"mod\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"mod\"}}}],\"directives\":[{\"kind\":\"Directive\",\"name\":{\"kind\":\"Name\",\"value\":\"client\"},\"arguments\":[]}]}]}}],\"loc\":{\"start\":0,\"end\":76}};\n doc.loc.source = {\"body\":\"mutation loadingChange ($mod: Int!) {\\n loadingChange (mod: $mod) @client\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"loadingChange\"] = oneQuery(doc, \"loadingChange\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"localeAdded\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"localeAdded\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":95}};\n doc.loc.source = {\"body\":\"#import \\\"./localeFragment.gql\\\"\\n\\nsubscription localeAdded {\\n localeAdded {\\n ...locale\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./localeFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"localeAdded\"] = oneQuery(doc, \"localeAdded\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Locale\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"lang\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"strings\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":47}};\n doc.loc.source = {\"body\":\"fragment locale on Locale {\\n lang\\n strings\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"locale\"] = oneQuery(doc, \"locale\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"locales\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"locales\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"locale\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":80}};\n doc.loc.source = {\"body\":\"#import \\\"./localeFragment.gql\\\"\\n\\nquery locales {\\n locales {\\n ...locale\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./localeFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"locales\"] = oneQuery(doc, \"locales\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginActionCall\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"params\"}},\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"JSON\"}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginActionCall\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"params\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"params\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginActionResult\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":178}};\n doc.loc.source = {\"body\":\"#import \\\"./pluginActionResultFragment.gql\\\"\\n\\nmutation pluginActionCall ($id: ID!, $params: JSON) {\\n pluginActionCall (id: $id, params: $params) {\\n ...pluginActionResult\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./pluginActionResultFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"pluginActionCall\"] = oneQuery(doc, \"pluginActionCall\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginActionCall\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"PluginActionCall\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"params\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":64}};\n doc.loc.source = {\"body\":\"fragment pluginActionCall on PluginActionCall {\\n id\\n params\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"pluginActionCall\"] = oneQuery(doc, \"pluginActionCall\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginActionCalled\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginActionCalled\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginActionCall\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":129}};\n doc.loc.source = {\"body\":\"#import \\\"./pluginActionCallFragment.gql\\\"\\n\\nsubscription pluginActionCalled {\\n pluginActionCalled {\\n ...pluginActionCall\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./pluginActionCallFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"pluginActionCalled\"] = oneQuery(doc, \"pluginActionCalled\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginActionResolved\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginActionResolved\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginActionResult\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":137}};\n doc.loc.source = {\"body\":\"#import \\\"./pluginActionResultFragment.gql\\\"\\n\\nsubscription pluginActionResolved {\\n pluginActionResolved {\\n ...pluginActionResult\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./pluginActionResultFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"pluginActionResolved\"] = oneQuery(doc, \"pluginActionResolved\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginActionResult\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"PluginActionResult\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"params\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"results\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"errors\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":87}};\n doc.loc.source = {\"body\":\"fragment pluginActionResult on PluginActionResult {\\n id\\n params\\n results\\n errors\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"pluginActionResult\"] = oneQuery(doc, \"pluginActionResult\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginDetails\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"alias\":{\"kind\":\"Name\",\"value\":\"pluginDetails\"},\"name\":{\"kind\":\"Name\",\"value\":\"plugin\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"version\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"version\"},\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"description\"},\"arguments\":[],\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":177}};\n doc.loc.source = {\"body\":\"#import \\\"../version/versionFragment.gql\\\"\\n\\nquery pluginDetails ($id: ID!) {\\n pluginDetails: plugin (id: $id) {\\n id\\n version {\\n ...version\\n }\\n description\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"../version/versionFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"pluginDetails\"] = oneQuery(doc, \"pluginDetails\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginFinishInstall\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginFinishInstall\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginInstallation\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":131}};\n doc.loc.source = {\"body\":\"#import \\\"./pluginInstallationFragment.gql\\\"\\n\\nmutation pluginFinishInstall {\\n pluginFinishInstall {\\n ...pluginInstallation\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./pluginInstallationFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"pluginFinishInstall\"] = oneQuery(doc, \"pluginFinishInstall\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"plugin\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Plugin\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"official\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"installed\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"website\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":68}};\n doc.loc.source = {\"body\":\"fragment plugin on Plugin {\\n id\\n official\\n installed\\n website\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"plugin\"] = oneQuery(doc, \"plugin\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginInstall\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginInstall\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginInstallation\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":140}};\n doc.loc.source = {\"body\":\"#import \\\"./pluginInstallationFragment.gql\\\"\\n\\nmutation pluginInstall ($id: ID!) {\\n pluginInstall (id: $id) {\\n ...pluginInstallation\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./pluginInstallationFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"pluginInstall\"] = oneQuery(doc, \"pluginInstall\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginInstallLocal\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginInstallLocal\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginInstallation\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":129}};\n doc.loc.source = {\"body\":\"#import \\\"./pluginInstallationFragment.gql\\\"\\n\\nmutation pluginInstallLocal {\\n pluginInstallLocal {\\n ...pluginInstallation\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./pluginInstallationFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"pluginInstallLocal\"] = oneQuery(doc, \"pluginInstallLocal\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginInstallation\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginInstallation\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginInstallation\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":126}};\n doc.loc.source = {\"body\":\"#import \\\"./pluginInstallationFragment.gql\\\"\\n\\nquery pluginInstallation {\\n pluginInstallation {\\n ...pluginInstallation\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./pluginInstallationFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"pluginInstallation\"] = oneQuery(doc, \"pluginInstallation\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginInstallation\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"PluginInstallation\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginId\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"step\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"prompts\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"prompt\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":147}};\n doc.loc.source = {\"body\":\"#import \\\"../prompt/promptFragment.gql\\\"\\n\\nfragment pluginInstallation on PluginInstallation {\\n id\\n pluginId\\n step\\n prompts {\\n ...prompt\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"../prompt/promptFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"pluginInstallation\"] = oneQuery(doc, \"pluginInstallation\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginInvoke\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginInvoke\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginInstallation\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":138}};\n doc.loc.source = {\"body\":\"#import \\\"./pluginInstallationFragment.gql\\\"\\n\\nmutation pluginInvoke ($id: ID!) {\\n pluginInvoke (id: $id) {\\n ...pluginInstallation\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./pluginInstallationFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"pluginInvoke\"] = oneQuery(doc, \"pluginInvoke\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginLogo\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"alias\":{\"kind\":\"Name\",\"value\":\"pluginLogo\"},\"name\":{\"kind\":\"Name\",\"value\":\"plugin\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"logo\"},\"arguments\":[],\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":85}};\n doc.loc.source = {\"body\":\"query pluginLogo ($id: ID!) {\\n pluginLogo: plugin (id: $id) {\\n id\\n logo\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"pluginLogo\"] = oneQuery(doc, \"pluginLogo\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginResetApi\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginResetApi\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":44}};\n doc.loc.source = {\"body\":\"mutation pluginResetApi {\\n pluginResetApi\\n}\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"pluginResetApi\"] = oneQuery(doc, \"pluginResetApi\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginUninstall\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginUninstall\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginInstallation\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":144}};\n doc.loc.source = {\"body\":\"#import \\\"./pluginInstallationFragment.gql\\\"\\n\\nmutation pluginUninstall ($id: ID!) {\\n pluginUninstall (id: $id) {\\n ...pluginInstallation\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./pluginInstallationFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"pluginUninstall\"] = oneQuery(doc, \"pluginUninstall\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginUpdate\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"full\"}},\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Boolean\"}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginUpdate\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"full\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"full\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"version\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"version\"},\"directives\":[]}]}}]}}]}}],\"loc\":{\"start\":0,\"end\":183}};\n doc.loc.source = {\"body\":\"#import \\\"../version/versionFragment.gql\\\"\\n\\nmutation pluginUpdate ($id: ID!, $full: Boolean) {\\n pluginUpdate (id: $id, full: $full) {\\n id\\n version {\\n ...version\\n }\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"../version/versionFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"pluginUpdate\"] = oneQuery(doc, \"pluginUpdate\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"plugins\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"plugins\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"plugin\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":80}};\n doc.loc.source = {\"body\":\"#import \\\"./pluginFragment.gql\\\"\\n\\nquery plugins {\\n plugins {\\n ...plugin\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./pluginFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"plugins\"] = oneQuery(doc, \"plugins\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginsUpdate\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"pluginsUpdate\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"version\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"version\"},\"directives\":[]}]}}]}}]}}],\"loc\":{\"start\":0,\"end\":135}};\n doc.loc.source = {\"body\":\"#import \\\"../version/versionFragment.gql\\\"\\n\\nmutation pluginsUpdate {\\n pluginsUpdate {\\n id\\n version {\\n ...version\\n }\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"../version/versionFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"pluginsUpdate\"] = oneQuery(doc, \"pluginsUpdate\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"presetApply\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"presetApply\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"projectCreation\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":138}};\n doc.loc.source = {\"body\":\"#import \\\"../project/projectCreationFragment.gql\\\"\\n\\nmutation presetApply ($id: ID!) {\\n presetApply(id: $id) {\\n ...projectCreation\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"../project/projectCreationFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"presetApply\"] = oneQuery(doc, \"presetApply\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"preset\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Preset\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"description\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"link\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":63}};\n doc.loc.source = {\"body\":\"fragment preset on Preset {\\n id\\n name\\n description\\n link\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"preset\"] = oneQuery(doc, \"preset\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"progress\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"progress\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"progress\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":107}};\n doc.loc.source = {\"body\":\"#import \\\"./progressFragment.gql\\\"\\n\\nquery progress ($id: ID!) {\\n progress (id: $id) {\\n ...progress\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./progressFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"progress\"] = oneQuery(doc, \"progress\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"progressChanged\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"progressChanged\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"progress\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":128}};\n doc.loc.source = {\"body\":\"#import \\\"./progressFragment.gql\\\"\\n\\nsubscription progressChanged ($id: ID!) {\\n progressChanged (id: $id) {\\n ...progress\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./progressFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"progressChanged\"] = oneQuery(doc, \"progressChanged\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"progress\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Progress\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"status\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"info\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"error\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"progress\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"args\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":81}};\n doc.loc.source = {\"body\":\"fragment progress on Progress {\\n id\\n status\\n info\\n error\\n progress\\n args\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"progress\"] = oneQuery(doc, \"progress\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"progressRemoved\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"progressRemoved\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":72}};\n doc.loc.source = {\"body\":\"subscription progressRemoved ($id: ID!) {\\n progressRemoved (id: $id)\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"progressRemoved\"] = oneQuery(doc, \"progressRemoved\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"currentProjectId\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"currentProjectId\"},\"arguments\":[],\"directives\":[{\"kind\":\"Directive\",\"name\":{\"kind\":\"Name\",\"value\":\"client\"},\"arguments\":[]}]}]}}],\"loc\":{\"start\":0,\"end\":53}};\n doc.loc.source = {\"body\":\"query currentProjectId {\\n currentProjectId @client\\n}\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"currentProjectId\"] = oneQuery(doc, \"currentProjectId\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"currentProjectIdSet\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"projectId\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"currentProjectIdSet\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"projectId\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"projectId\"}}}],\"directives\":[{\"kind\":\"Directive\",\"name\":{\"kind\":\"Name\",\"value\":\"client\"},\"arguments\":[]}]}]}}],\"loc\":{\"start\":0,\"end\":103}};\n doc.loc.source = {\"body\":\"mutation currentProjectIdSet ($projectId: ID!) {\\n currentProjectIdSet(projectId: $projectId) @client\\n}\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"currentProjectIdSet\"] = oneQuery(doc, \"currentProjectIdSet\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"projectCancelCreation\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"projectCancelCreation\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":58}};\n doc.loc.source = {\"body\":\"mutation projectCancelCreation {\\n projectCancelCreation\\n}\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"projectCancelCreation\"] = oneQuery(doc, \"projectCancelCreation\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"projectCreate\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ProjectCreateInput\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"projectCreate\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"project\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":142}};\n doc.loc.source = {\"body\":\"#import \\\"./projectFragment.gql\\\"\\n\\nmutation projectCreate ($input: ProjectCreateInput!) {\\n projectCreate(input: $input) {\\n ...project\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./projectFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"projectCreate\"] = oneQuery(doc, \"projectCreate\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"projectCreation\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"projectCreation\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"projectCreation\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":114}};\n doc.loc.source = {\"body\":\"#import \\\"./projectCreationFragment.gql\\\"\\n\\nquery projectCreation {\\n projectCreation {\\n ...projectCreation\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./projectCreationFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"projectCreation\"] = oneQuery(doc, \"projectCreation\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"projectCreation\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ProjectCreation\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"presets\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"preset\"},\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"features\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"feature\"},\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"prompts\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"prompt\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":260}};\n doc.loc.source = {\"body\":\"#import \\\"../preset/presetFragment.gql\\\"\\n#import \\\"../feature/featureFragment.gql\\\"\\n#import \\\"../prompt/promptFragment.gql\\\"\\n\\nfragment projectCreation on ProjectCreation {\\n presets {\\n ...preset\\n }\\n features {\\n ...feature\\n }\\n prompts {\\n ...prompt\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"../preset/presetFragment.gql\").definitions));\ndoc.definitions = doc.definitions.concat(unique(require(\"../feature/featureFragment.gql\").definitions));\ndoc.definitions = doc.definitions.concat(unique(require(\"../prompt/promptFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"projectCreation\"] = oneQuery(doc, \"projectCreation\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"projectCurrent\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"projectCurrent\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"project\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":96}};\n doc.loc.source = {\"body\":\"#import \\\"./projectFragment.gql\\\"\\n\\nquery projectCurrent {\\n projectCurrent {\\n ...project\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./projectFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"projectCurrent\"] = oneQuery(doc, \"projectCurrent\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"projectCwdReset\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"projectCwdReset\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":47}};\n doc.loc.source = {\"body\":\"mutation projectCwdReset {\\n projectCwdReset\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"projectCwdReset\"] = oneQuery(doc, \"projectCwdReset\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"project\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Project\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"type\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"path\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"favorite\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"homepage\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"openDate\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":91}};\n doc.loc.source = {\"body\":\"fragment project on Project {\\n id\\n name\\n type\\n path\\n favorite\\n homepage\\n openDate\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"project\"] = oneQuery(doc, \"project\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"projectImport\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ProjectImportInput\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"projectImport\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"project\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":142}};\n doc.loc.source = {\"body\":\"#import \\\"./projectFragment.gql\\\"\\n\\nmutation projectImport ($input: ProjectImportInput!) {\\n projectImport(input: $input) {\\n ...project\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./projectFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"projectImport\"] = oneQuery(doc, \"projectImport\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"projectInitCreation\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"projectInitCreation\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"projectCreation\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":125}};\n doc.loc.source = {\"body\":\"#import \\\"./projectCreationFragment.gql\\\"\\n\\nmutation projectInitCreation {\\n projectInitCreation {\\n ...projectCreation\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./projectCreationFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"projectInitCreation\"] = oneQuery(doc, \"projectInitCreation\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"projectOpen\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"projectOpen\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"project\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":113}};\n doc.loc.source = {\"body\":\"#import \\\"./projectFragment.gql\\\"\\n\\nmutation projectOpen ($id: ID!) {\\n projectOpen(id: $id) {\\n ...project\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./projectFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"projectOpen\"] = oneQuery(doc, \"projectOpen\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"projectRemove\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"projectRemove\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":64}};\n doc.loc.source = {\"body\":\"mutation projectRemove ($id: ID!) {\\n projectRemove (id: $id)\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"projectRemove\"] = oneQuery(doc, \"projectRemove\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"projectSetFavorite\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"favorite\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Int\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"projectSetFavorite\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"favorite\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"favorite\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"project\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":166}};\n doc.loc.source = {\"body\":\"#import \\\"./projectFragment.gql\\\"\\n\\nmutation projectSetFavorite ($id: ID!, $favorite: Int!) {\\n projectSetFavorite (id: $id, favorite: $favorite) {\\n ...project\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./projectFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"projectSetFavorite\"] = oneQuery(doc, \"projectSetFavorite\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"projects\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"projects\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"project\"},\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"tasks\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"task\"},\"directives\":[]}]}}]}}]}}],\"loc\":{\"start\":0,\"end\":151}};\n doc.loc.source = {\"body\":\"#import \\\"./projectFragment.gql\\\"\\n#import \\\"../task/taskFragment.gql\\\"\\n\\nquery projects {\\n projects {\\n ...project\\n tasks {\\n ...task\\n }\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./projectFragment.gql\").definitions));\ndoc.definitions = doc.definitions.concat(unique(require(\"../task/taskFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"projects\"] = oneQuery(doc, \"projects\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"promptAnswer\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"PromptInput\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"promptAnswer\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"prompt\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":131}};\n doc.loc.source = {\"body\":\"#import \\\"./promptFragment.gql\\\"\\n\\nmutation promptAnswer ($input: PromptInput!) {\\n promptAnswer(input: $input) {\\n ...prompt\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./promptFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"promptAnswer\"] = oneQuery(doc, \"promptAnswer\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"promptChoice\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"PromptChoice\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"value\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"checked\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"disabled\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"isDefault\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":90}};\n doc.loc.source = {\"body\":\"fragment promptChoice on PromptChoice {\\n value\\n name\\n checked\\n disabled\\n isDefault\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"promptChoice\"] = oneQuery(doc, \"promptChoice\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"promptError\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"PromptError\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"message\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"link\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":57}};\n doc.loc.source = {\"body\":\"fragment promptError on PromptError {\\n message\\n link\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"promptError\"] = oneQuery(doc, \"promptError\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"prompt\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Prompt\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"type\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"visible\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"enabled\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"message\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"group\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"description\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"link\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"choices\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"promptChoice\"},\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"value\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"valueChanged\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"error\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"promptError\"},\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"tabId\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":282}};\n doc.loc.source = {\"body\":\"#import \\\"./promptChoiceFragment.gql\\\"\\n#import \\\"./promptErrorFragment.gql\\\"\\n\\nfragment prompt on Prompt {\\n id\\n type\\n visible\\n enabled\\n name\\n message\\n group\\n description\\n link\\n choices {\\n ...promptChoice\\n }\\n value\\n valueChanged\\n error {\\n ...promptError\\n }\\n tabId\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./promptChoiceFragment.gql\").definitions));\ndoc.definitions = doc.definitions.concat(unique(require(\"./promptErrorFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"prompt\"] = oneQuery(doc, \"prompt\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"sharedData\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"projectId\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sharedData\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"projectId\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"projectId\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"sharedData\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":155}};\n doc.loc.source = {\"body\":\"#import \\\"./sharedDataFragment.gql\\\"\\n\\nquery sharedData ($id: ID!, $projectId: ID!) {\\n sharedData (id: $id, projectId: $projectId) {\\n ...sharedData\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./sharedDataFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"sharedData\"] = oneQuery(doc, \"sharedData\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"sharedData\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"SharedData\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"value\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":51}};\n doc.loc.source = {\"body\":\"fragment sharedData on SharedData {\\n id\\n value\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"sharedData\"] = oneQuery(doc, \"sharedData\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"sharedDataUpdate\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"projectId\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"value\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"JSON\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sharedDataUpdate\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"projectId\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"projectId\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"value\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"value\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"sharedData\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":200}};\n doc.loc.source = {\"body\":\"#import \\\"./sharedDataFragment.gql\\\"\\n\\nmutation sharedDataUpdate ($id: ID!, $projectId: ID!, $value: JSON!) {\\n sharedDataUpdate (id: $id, projectId: $projectId, value: $value) {\\n ...sharedData\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./sharedDataFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"sharedDataUpdate\"] = oneQuery(doc, \"sharedDataUpdate\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"sharedDataUpdated\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]},{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"projectId\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"sharedDataUpdated\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}},{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"projectId\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"projectId\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"sharedData\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":176}};\n doc.loc.source = {\"body\":\"#import \\\"./sharedDataFragment.gql\\\"\\n\\nsubscription sharedDataUpdated ($id: ID!, $projectId: ID!) {\\n sharedDataUpdated (id: $id, projectId: $projectId) {\\n ...sharedData\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./sharedDataFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"sharedDataUpdated\"] = oneQuery(doc, \"sharedDataUpdated\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"suggestionActivate\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"SuggestionActivate\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"suggestionActivate\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"suggestion\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":158}};\n doc.loc.source = {\"body\":\"#import \\\"./suggestionFragment.gql\\\"\\n\\nmutation suggestionActivate ($input: SuggestionActivate!) {\\n suggestionActivate (input: $input) {\\n ...suggestion\\n }\\n}\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./suggestionFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"suggestionActivate\"] = oneQuery(doc, \"suggestionActivate\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"suggestionAdded\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"suggestionAdded\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"suggestion\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":110}};\n doc.loc.source = {\"body\":\"#import \\\"./suggestionFragment.gql\\\"\\n\\nsubscription suggestionAdded {\\n suggestionAdded {\\n ...suggestion\\n }\\n}\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./suggestionFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"suggestionAdded\"] = oneQuery(doc, \"suggestionAdded\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"suggestion\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Suggestion\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"type\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"importance\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"label\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"message\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"image\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"link\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"actionLink\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"busy\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":115}};\n doc.loc.source = {\"body\":\"fragment suggestion on Suggestion {\\n id\\n type\\n importance\\n label\\n message\\n image\\n link\\n actionLink\\n busy\\n}\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"suggestion\"] = oneQuery(doc, \"suggestion\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"suggestionRemoved\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"suggestionRemoved\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"suggestion\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":114}};\n doc.loc.source = {\"body\":\"#import \\\"./suggestionFragment.gql\\\"\\n\\nsubscription suggestionRemoved {\\n suggestionRemoved {\\n ...suggestion\\n }\\n}\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./suggestionFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"suggestionRemoved\"] = oneQuery(doc, \"suggestionRemoved\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"suggestionUpdated\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"suggestionUpdated\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"suggestion\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":114}};\n doc.loc.source = {\"body\":\"#import \\\"./suggestionFragment.gql\\\"\\n\\nsubscription suggestionUpdated {\\n suggestionUpdated {\\n ...suggestion\\n }\\n}\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./suggestionFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"suggestionUpdated\"] = oneQuery(doc, \"suggestionUpdated\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"suggestions\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"suggestions\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"suggestion\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":95}};\n doc.loc.source = {\"body\":\"#import \\\"./suggestionFragment.gql\\\"\\n\\nquery suggestions {\\n suggestions {\\n ...suggestion\\n }\\n}\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./suggestionFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"suggestions\"] = oneQuery(doc, \"suggestions\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"task\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"task\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"task\"},\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"link\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"prompts\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"prompt\"},\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"views\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"label\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"icon\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"component\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"defaultView\"},\"arguments\":[],\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":257}};\n doc.loc.source = {\"body\":\"#import \\\"./taskFragment.gql\\\"\\n#import \\\"../prompt/promptFragment.gql\\\"\\n\\nquery task ($id: ID!) {\\n task (id: $id) {\\n ...task\\n link\\n prompts {\\n ...prompt\\n }\\n views {\\n id\\n label\\n icon\\n component\\n }\\n defaultView\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./taskFragment.gql\").definitions));\ndoc.definitions = doc.definitions.concat(unique(require(\"../prompt/promptFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"task\"] = oneQuery(doc, \"task\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"taskChanged\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"taskChanged\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"task\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":91}};\n doc.loc.source = {\"body\":\"#import \\\"./taskFragment.gql\\\"\\n\\nsubscription taskChanged {\\n taskChanged {\\n ...task\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./taskFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"taskChanged\"] = oneQuery(doc, \"taskChanged\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"task\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Task\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"status\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"command\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"description\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"icon\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"plugin\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"logo\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"project\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":132}};\n doc.loc.source = {\"body\":\"fragment task on Task {\\n id\\n status\\n name\\n command\\n description\\n icon\\n plugin {\\n id\\n logo\\n }\\n project {\\n id\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"task\"] = oneQuery(doc, \"task\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"taskLogAdded\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"taskLogAdded\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"taskLog\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":120}};\n doc.loc.source = {\"body\":\"#import \\\"./taskLogFragment.gql\\\"\\n\\nsubscription taskLogAdded ($id: ID!) {\\n taskLogAdded (id: $id) {\\n ...taskLog\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./taskLogFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"taskLogAdded\"] = oneQuery(doc, \"taskLogAdded\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"taskLog\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"TaskLog\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"taskId\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"type\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"text\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":55}};\n doc.loc.source = {\"body\":\"fragment taskLog on TaskLog {\\n taskId\\n type\\n text\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"taskLog\"] = oneQuery(doc, \"taskLog\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"taskLogs\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"alias\":{\"kind\":\"Name\",\"value\":\"taskLogs\"},\"name\":{\"kind\":\"Name\",\"value\":\"task\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"logs\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"taskLog\"},\"directives\":[]}]}}]}}]}}],\"loc\":{\"start\":0,\"end\":136}};\n doc.loc.source = {\"body\":\"#import \\\"./taskLogFragment.gql\\\"\\n\\nquery taskLogs ($id: ID!) {\\n taskLogs: task(id: $id) {\\n id\\n logs {\\n ...taskLog\\n }\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./taskLogFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"taskLogs\"] = oneQuery(doc, \"taskLogs\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"taskLogsClear\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"taskLogsClear\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"task\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":112}};\n doc.loc.source = {\"body\":\"#import \\\"./taskFragment.gql\\\"\\n\\nmutation taskLogsClear ($id: ID!) {\\n taskLogsClear (id: $id) {\\n ...task\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./taskFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"taskLogsClear\"] = oneQuery(doc, \"taskLogsClear\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"taskOpen\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"taskOpen\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":53}};\n doc.loc.source = {\"body\":\"mutation taskOpen ($id: ID!) {\\n taskOpen (id: $id)\\n}\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"taskOpen\"] = oneQuery(doc, \"taskOpen\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"taskRestoreParameters\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"taskRestoreParameters\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"prompt\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":139}};\n doc.loc.source = {\"body\":\"#import \\\"../prompt/promptFragment.gql\\\"\\n\\nmutation taskRestoreParameters ($id: ID!) {\\n taskRestoreParameters (id: $id) {\\n ...prompt\\n }\\n}\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"../prompt/promptFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"taskRestoreParameters\"] = oneQuery(doc, \"taskRestoreParameters\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"taskRun\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"taskRun\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"task\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":100}};\n doc.loc.source = {\"body\":\"#import \\\"./taskFragment.gql\\\"\\n\\nmutation taskRun ($id: ID!) {\\n taskRun (id: $id) {\\n ...task\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./taskFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"taskRun\"] = oneQuery(doc, \"taskRun\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"taskSaveParameters\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"taskSaveParameters\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"prompt\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":133}};\n doc.loc.source = {\"body\":\"#import \\\"../prompt/promptFragment.gql\\\"\\n\\nmutation taskSaveParameters ($id: ID!) {\\n taskSaveParameters (id: $id) {\\n ...prompt\\n }\\n}\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"../prompt/promptFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"taskSaveParameters\"] = oneQuery(doc, \"taskSaveParameters\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"taskStop\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"taskStop\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"task\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":102}};\n doc.loc.source = {\"body\":\"#import \\\"./taskFragment.gql\\\"\\n\\nmutation taskStop ($id: ID!) {\\n taskStop (id: $id) {\\n ...task\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./taskFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"taskStop\"] = oneQuery(doc, \"taskStop\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"tasks\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"tasks\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"task\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":72}};\n doc.loc.source = {\"body\":\"#import \\\"./taskFragment.gql\\\"\\n\\nquery tasks {\\n tasks {\\n ...task\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./taskFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"tasks\"] = oneQuery(doc, \"tasks\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"version\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Version\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"current\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"latest\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"wanted\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"range\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"localPath\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":80}};\n doc.loc.source = {\"body\":\"fragment version on Version {\\n current\\n latest\\n wanted\\n range\\n localPath\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"version\"] = oneQuery(doc, \"version\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"viewAdded\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"viewAdded\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"view\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":87}};\n doc.loc.source = {\"body\":\"#import \\\"./viewFragment.gql\\\"\\n\\nsubscription viewAdded {\\n viewAdded {\\n ...view\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./viewFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"viewAdded\"] = oneQuery(doc, \"viewAdded\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"viewChanged\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"viewChanged\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"view\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":91}};\n doc.loc.source = {\"body\":\"#import \\\"./viewFragment.gql\\\"\\n\\nsubscription viewChanged {\\n viewChanged {\\n ...view\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./viewFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"viewChanged\"] = oneQuery(doc, \"viewChanged\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"view\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"View\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"icon\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"tooltip\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"badges\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"type\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"count\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"label\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"priority\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"hidden\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"projectTypes\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":145}};\n doc.loc.source = {\"body\":\"fragment view on View {\\n id\\n name\\n icon\\n tooltip\\n badges {\\n id\\n type\\n count\\n label\\n priority\\n hidden\\n }\\n projectTypes\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"view\"] = oneQuery(doc, \"view\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"viewOpen\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"viewOpen\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":54}};\n doc.loc.source = {\"body\":\"mutation viewOpen ($id: ID!) {\\n viewOpen (id: $id)\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"viewOpen\"] = oneQuery(doc, \"viewOpen\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"subscription\",\"name\":{\"kind\":\"Name\",\"value\":\"viewRemoved\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"viewRemoved\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"view\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":91}};\n doc.loc.source = {\"body\":\"#import \\\"./viewFragment.gql\\\"\\n\\nsubscription viewRemoved {\\n viewRemoved {\\n ...view\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./viewFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"viewRemoved\"] = oneQuery(doc, \"viewRemoved\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"views\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"views\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"view\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":72}};\n doc.loc.source = {\"body\":\"#import \\\"./viewFragment.gql\\\"\\n\\nquery views {\\n views {\\n ...view\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./viewFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"views\"] = oneQuery(doc, \"views\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"widgetAdd\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"WidgetAddInput\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"widgetAdd\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"widget\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":129}};\n doc.loc.source = {\"body\":\"#import \\\"./widgetFragment.gql\\\"\\n\\nmutation widgetAdd ($input: WidgetAddInput!) {\\n widgetAdd (input: $input) {\\n ...widget\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./widgetFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"widgetAdd\"] = oneQuery(doc, \"widgetAdd\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"widgetConfigOpen\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"widgetConfigOpen\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"widget\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":122}};\n doc.loc.source = {\"body\":\"#import \\\"./widgetFragment.gql\\\"\\n\\nmutation widgetConfigOpen ($id: ID!) {\\n widgetConfigOpen (id: $id) {\\n ...widget\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./widgetFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"widgetConfigOpen\"] = oneQuery(doc, \"widgetConfigOpen\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"widgetConfigSave\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"widgetConfigSave\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"widget\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":122}};\n doc.loc.source = {\"body\":\"#import \\\"./widgetFragment.gql\\\"\\n\\nmutation widgetConfigSave ($id: ID!) {\\n widgetConfigSave (id: $id) {\\n ...widget\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./widgetFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"widgetConfigSave\"] = oneQuery(doc, \"widgetConfigSave\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"widgetDefinition\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"WidgetDefinition\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"description\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"longDescription\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"link\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"icon\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"screenshot\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"component\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"canAddMore\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"count\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"maxCount\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":165}};\n doc.loc.source = {\"body\":\"fragment widgetDefinition on WidgetDefinition {\\n id\\n title\\n description\\n longDescription\\n link\\n icon\\n screenshot\\n component\\n canAddMore\\n count\\n maxCount\\n}\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"widgetDefinition\"] = oneQuery(doc, \"widgetDefinition\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"widgetDefinitions\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"widgetDefinitions\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"widgetDefinition\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":120}};\n doc.loc.source = {\"body\":\"#import \\\"./widgetDefinitionFragment.gql\\\"\\n\\nquery widgetDefinitions {\\n widgetDefinitions {\\n ...widgetDefinition\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./widgetDefinitionFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"widgetDefinitions\"] = oneQuery(doc, \"widgetDefinitions\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"widget\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Widget\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"definition\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"title\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"icon\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"component\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"detailsComponent\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"canAddMore\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"hasConfigPrompts\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"minWidth\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"minHeight\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"maxWidth\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"maxHeight\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"openDetailsButton\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"x\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"y\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"width\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"height\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"config\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"configured\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"prompts\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"prompt\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":343}};\n doc.loc.source = {\"body\":\"#import \\\"../prompt/promptFragment.gql\\\"\\n\\nfragment widget on Widget {\\n id\\n definition {\\n id\\n title\\n icon\\n component\\n detailsComponent\\n canAddMore\\n hasConfigPrompts\\n minWidth\\n minHeight\\n maxWidth\\n maxHeight\\n openDetailsButton\\n }\\n x\\n y\\n width\\n height\\n config\\n configured\\n prompts {\\n ...prompt\\n }\\n}\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"../prompt/promptFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"widget\"] = oneQuery(doc, \"widget\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"widgetMove\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"WidgetMoveInput\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"widgetMove\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"widget\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":132}};\n doc.loc.source = {\"body\":\"#import \\\"./widgetFragment.gql\\\"\\n\\nmutation widgetMove ($input: WidgetMoveInput!) {\\n widgetMove (input: $input) {\\n ...widget\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./widgetFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"widgetMove\"] = oneQuery(doc, \"widgetMove\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"widgetRemove\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"widgetRemove\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"widget\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":113}};\n doc.loc.source = {\"body\":\"#import \\\"./widgetFragment.gql\\\"\\n\\nmutation widgetRemove ($id: ID!) {\\n widgetRemove(id: $id) {\\n ...widget\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./widgetFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"widgetRemove\"] = oneQuery(doc, \"widgetRemove\");\n \n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"widgets\"},\"variableDefinitions\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"widgets\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"FragmentSpread\",\"name\":{\"kind\":\"Name\",\"value\":\"widget\"},\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":80}};\n doc.loc.source = {\"body\":\"#import \\\"./widgetFragment.gql\\\"\\n\\nquery widgets {\\n widgets {\\n ...widget\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n doc.definitions = doc.definitions.concat(unique(require(\"./widgetFragment.gql\").definitions));\n\n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"widgets\"] = oneQuery(doc, \"widgets\");\n \n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"about page\"},[_c('h1',[_vm._v(_vm._s(_vm.$t('org.vue.views.about.title')))]),_c('p',{staticClass:\"description\",domProps:{\"innerHTML\":_vm._s(_vm.$t('org.vue.views.about.description'))}}),_c('blockquote',{staticClass:\"quote\",domProps:{\"textContent\":_vm._s(_vm.$t('org.vue.views.about.quote'))}}),_vm._m(0),_c('h2',[_vm._v(_vm._s(_vm.$t('org.vue.views.about.links')))]),_c('div',{staticClass:\"links vue-ui-grid default-gap\"},[_c('VueButton',{attrs:{\"href\":\"https://github.com/vuejs/vue-cli\",\"target\":\"_blank\"}},[_vm._v(\"Repository\")]),_c('VueButton',{attrs:{\"href\":\"https://cli.vuejs.org\",\"target\":\"_blank\"}},[_vm._v(\"Documentation\")]),_c('VueButton',{attrs:{\"href\":\"https://vuejs.org/v2/guide/\",\"target\":\"_blank\"}},[_vm._v(\"Vue.js Guide\")]),_c('VueButton',{attrs:{\"href\":\"https://vuejs.org/v2/api/\",\"target\":\"_blank\"}},[_vm._v(\"Vue.js API reference\")]),_c('VueButton',{attrs:{\"href\":\"https://forum.vuejs.org/\",\"target\":\"_blank\"}},[_vm._v(\"Vue.js Forums\")]),_c('VueButton',{attrs:{\"href\":\"https://chat.vuejs.org/\",\"target\":\"_blank\"}},[_vm._v(\"Vue.js Chat\")])],1),_c('div',{staticClass:\"actions\"},[_c('VueButton',{staticClass:\"primary big\",attrs:{\"to\":_vm.previousRoute,\"left-icon\":\"arrow_back\",\"label\":_vm.$t('org.vue.views.about.back')}})],1)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('p',[_vm._v(\"- \"),_c('a',{attrs:{\"href\":\"https://github.com/Akryum\",\"target\":\"_blank\"}},[_vm._v(\"Guillaume Chau\")])])}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./About.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./About.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./About.vue?vue&type=template&id=74eeb262&scoped=true&\"\nimport script from \"./About.vue?vue&type=script&lang=js&\"\nexport * from \"./About.vue?vue&type=script&lang=js&\"\nimport style0 from \"./About.vue?vue&type=style&index=0&id=74eeb262&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"74eeb262\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app-loading\"},[_c('transition',{attrs:{\"name\":\"vue-ui-fade\",\"appear\":\"\"}},[(_vm.loading)?_c('VueLoadingIndicator',{staticClass:\"primary\"}):_vm._e()],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./AppLoading.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./AppLoading.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AppLoading.vue?vue&type=template&id=78b5bdd9&\"\nimport script from \"./AppLoading.vue?vue&type=script&lang=js&\"\nexport * from \"./AppLoading.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ApolloQuery',{staticClass:\"connection-status\",attrs:{\"query\":require('@/graphql/connected/connected.gql'),\"fetch-policy\":\"cache-only\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar connected = ref.result.data.connected;\nreturn [_c('transition',{attrs:{\"duration\":\"1000\"}},[(!connected)?_c('div',{staticClass:\"banner\"},[_c('div',{staticClass:\"content disconnected\"},[_c('VueIcon',{staticClass:\"medium\",attrs:{\"icon\":\"cloud_off\"}}),_c('span',[_vm._v(_vm._s(_vm.$t('org.vue.components.connection-status.disconnected')))])],1),_c('div',{staticClass:\"content connected\"},[_c('VueIcon',{staticClass:\"medium\",attrs:{\"icon\":\"wifi\"}}),_c('span',[_vm._v(_vm._s(_vm.$t('org.vue.components.connection-status.connected')))])],1)]):_vm._e()])]}}])})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ConnectionStatus.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ConnectionStatus.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ConnectionStatus.vue?vue&type=template&id=7ba24086&scoped=true&\"\nimport script from \"./ConnectionStatus.vue?vue&type=script&lang=js&\"\nexport * from \"./ConnectionStatus.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ConnectionStatus.vue?vue&type=style&index=0&id=7ba24086&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7ba24086\",\n null\n \n)\n\nexport default component.exports","var render, staticRenderFns\nimport script from \"./LocaleLoader.vue?vue&type=script&lang=js&\"\nexport * from \"./LocaleLoader.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./LocaleLoader.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./LocaleLoader.vue?vue&type=script&lang=js&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"not-found page\"},[(_vm.addonRouteTimout)?[_c('VueIcon',{staticClass:\"huge\",attrs:{\"icon\":\"cake\"}}),_c('h1',{staticClass:\"title\"},[_vm._v(\"Addon route taking too long to load\")]),_c('h2',{staticClass:\"subtitle\"},[_vm._v(\"The route may not exist\")]),_c('VueButton',{attrs:{\"to\":{ name: 'home' }}},[_vm._v(\"Go home\")])]:(_vm.isAddonRoute)?[_c('VueLoadingIndicator',{staticClass:\"accent big\"})]:[_c('VueIcon',{staticClass:\"huge\",attrs:{\"icon\":\"pets\"}}),_c('h1',{staticClass:\"title\"},[_vm._v(\"View not found\")]),_c('VueButton',{attrs:{\"to\":{ name: 'home' }}},[_vm._v(\"Go home\")])]],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./NotFound.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./NotFound.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NotFound.vue?vue&type=template&id=144ede8a&scoped=true&\"\nimport script from \"./NotFound.vue?vue&type=script&lang=js&\"\nexport * from \"./NotFound.vue?vue&type=script&lang=js&\"\nimport style0 from \"./NotFound.vue?vue&type=style&index=0&id=144ede8a&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"144ede8a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{\"name\":\"vue-ui-fade\"}},[(_vm.progress)?_c('div',{staticClass:\"loading-screen\",class:{\n loading: _vm.loading\n }},[_c('VueLoadingIndicator',{staticClass:\"primary big overlay fixed\"},[_c('div',{staticClass:\"content\"},[(_vm.progress.error)?_c('div',{staticClass:\"error\"},[_c('VueIcon',{staticClass:\"huge\",attrs:{\"icon\":\"error\"}}),_c('div',[_vm._v(_vm._s(_vm.progress.error))]),_c('div',{staticClass:\"actions\"},[_c('VueButton',{attrs:{\"icon-left\":\"close\",\"label\":_vm.$t('org.vue.components.progress-screen.close')},on:{\"click\":function($event){return _vm.close()}}})],1)],1):[(_vm.statusMessage)?_c('div',{staticClass:\"status\"},[_vm._v(\" \"+_vm._s(_vm.statusMessage)+\" \")]):_vm._e(),_c('div',{staticClass:\"secondary-info\"},[(_vm.progress.info)?_c('div',{staticClass:\"info\",domProps:{\"innerHTML\":_vm._s(_vm.ansiColors(_vm.progress.info))}}):_vm._e(),(_vm.progress.progress !== -1)?_c('VueLoadingBar',{attrs:{\"value\":_vm.progress.progress}}):_vm._e(),(_vm.debug)?_c('div',{staticClass:\"debug\"},[_c('pre',[_vm._v(_vm._s(_vm.debug))])]):_vm._e()],1)]],2)])],1):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import PROGRESS from '@/graphql/progress/progress.gql'\nimport PROGRESS_CHANGED from '@/graphql/progress/progressChanged.gql'\nimport PROGRESS_REMOVED from '@/graphql/progress/progressRemoved.gql'\n\n// @vue/component\nexport default {\n props: {\n progressId: {\n type: String,\n required: true\n }\n },\n\n data () {\n return {\n progress: null\n }\n },\n\n apollo: {\n progress: {\n query: PROGRESS,\n variables () {\n return {\n id: this.progressId\n }\n },\n fetchPolicy: 'network-only',\n subscribeToMore: [\n {\n document: PROGRESS_CHANGED,\n variables () {\n return {\n id: this.progressId\n }\n },\n updateQuery: (previousResult, { subscriptionData }) => {\n return {\n progress: subscriptionData.data.progressChanged\n }\n }\n },\n {\n document: PROGRESS_REMOVED,\n variables () {\n return {\n id: this.progressId\n }\n },\n updateQuery: () => {\n return {\n progress: null\n }\n }\n }\n ]\n }\n },\n\n computed: {\n loading () {\n return this.progress && !this.progress.error\n },\n\n statusMessage () {\n if (!this.progress) return null\n\n const { status } = this.progress\n let message\n if (status) {\n const values = {}\n if (this.progress.args) {\n for (let i = 0, l = this.progress.args.length; i < l; i++) {\n values[`arg${i}`] = this.progress.args[i]\n }\n }\n const key = `org.vue.mixins.progress.${status}`\n message = this.$t(key, values)\n message = (message !== key && message)\n if (!message) {\n message = this.$t(status, values)\n message = (message !== status && message)\n }\n }\n return message || status || ''\n }\n }\n}\n","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProgressScreen.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProgressScreen.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProgressScreen.vue?vue&type=template&id=3ba26ff4&scoped=true&\"\nimport script from \"./ProgressScreen.vue?vue&type=script&lang=js&\"\nexport * from \"./ProgressScreen.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProgressScreen.vue?vue&type=style&index=0&id=3ba26ff4&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3ba26ff4\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-home page\",class:{\n wide: _vm.$responsive.wide\n }},[_c('div',{staticClass:\"panes\"},[_c('ViewNav'),(_vm.ready)?_c('div',{staticClass:\"content vue-ui-disable-scroll\"},[_c('TopBar'),_c('router-view',{staticClass:\"router-view\"})],1):_vm._e()],1),_c('ProgressScreen',{attrs:{\"progress-id\":\"__plugins__\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectHome.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectHome.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectHome.vue?vue&type=template&id=2a0d3bdd&scoped=true&\"\nimport script from \"./ProjectHome.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectHome.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProjectHome.vue?vue&type=style&index=0&id=2a0d3bdd&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2a0d3bdd\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-quick-dropdown\"},[(_vm.$responsive.wide)?_c('VueDropdown',{staticClass:\"current-project\",attrs:{\"label\":_vm.projectCurrent ? _vm.projectCurrent.name : _vm.$t('org.vue.components.status-bar.project.empty'),\"icon-right\":\"arrow_drop_down\",\"button-class\":\"round\"}},[(_vm.projectCurrent)?[_c('VueSwitch',{staticClass:\"extend-left\",attrs:{\"value\":_vm.projectCurrent.favorite,\"icon\":_vm.projectCurrent.favorite ? 'star' : 'star_border'},on:{\"update\":function($event){return _vm.toggleCurrentFavorite()}}},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.components.project-select-list-item.tooltips.favorite'))+\" \")]),_c('VueDropdownButton',{attrs:{\"label\":_vm.$t('org.vue.components.project-select-list-item.tooltips.open-in-editor'),\"icon-left\":\"open_in_browser\"},on:{\"click\":function($event){return _vm.openInEditor(_vm.projectCurrent)}}}),_c('VueDropdownButton',{attrs:{\"label\":_vm.$t('org.vue.components.project-rename.title'),\"icon-left\":\"edit\"},on:{\"click\":function($event){_vm.showRename = true}}}),(_vm.projectCurrent.homepage)?_c('VueDropdownButton',{attrs:{\"href\":_vm.projectCurrent.homepage,\"label\":_vm.$t('org.vue.components.top-bar.homepage'),\"target\":\"_blank\",\"icon-left\":\"open_in_new\"}}):_vm._e()]:_vm._e(),_c('div',{staticClass:\"dropdown-separator\"}),(!_vm.favoriteProjects.length)?_c('div',{staticClass:\"vue-ui-empty\"},[_vm._v(_vm._s(_vm.$t('org.vue.components.top-bar.no-favorites')))]):[_c('div',{staticClass:\"section-title\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.components.top-bar.favorite-projects'))+\" \")]),_vm._l((_vm.favoriteProjects),function(project){return _c('VueDropdownButton',{key:project.id,attrs:{\"label\":project.name,\"icon-left\":\"star\"},on:{\"click\":function($event){return _vm.openProject(project)}}})})],(_vm.recentProjects.length)?[_c('div',{staticClass:\"dropdown-separator\"}),_c('div',{staticClass:\"section-title\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.components.top-bar.recent-projects'))+\" \")]),_vm._l((_vm.recentProjects),function(project){return _c('VueDropdownButton',{key:project.id,attrs:{\"label\":project.name,\"icon-left\":\"restore\"},on:{\"click\":function($event){return _vm.openProject(project)}}})})]:_vm._e(),_c('div',{staticClass:\"dropdown-separator\"}),_c('VueDropdownButton',{attrs:{\"to\":{ name: 'project-select' },\"label\":_vm.$t('org.vue.views.project-select.title'),\"icon-left\":\"home\"}})],2):_vm._e(),(_vm.showRename)?_c('ProjectRename',{attrs:{\"project\":_vm.projectCurrent},on:{\"close\":function($event){_vm.showRename = false}}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectQuickDropdown.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectQuickDropdown.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectQuickDropdown.vue?vue&type=template&id=46e8ea3e&scoped=true&\"\nimport script from \"./ProjectQuickDropdown.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectQuickDropdown.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProjectQuickDropdown.vue?vue&type=style&index=0&id=46e8ea3e&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"46e8ea3e\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"status-bar\"},[(_vm.showLogs)?_c('LoggerView',{on:{\"close\":function($event){_vm.showLogs = false}}}):_vm._e(),_c('div',{staticClass:\"content\"},[_c('div',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.status-bar.project.tooltip')),expression:\"$t('org.vue.components.status-bar.project.tooltip')\"}],staticClass:\"section action current-project\",on:{\"click\":function($event){return _vm.onProjectClick()}}},[_c('VueIcon',{attrs:{\"icon\":\"home\"}}),(!_vm.projectCurrent)?_c('span',{staticClass:\"label\"},[_vm._v(_vm._s(_vm.$t('org.vue.components.status-bar.project.empty')))]):_vm._e()],1),_c('ApolloQuery',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.status-bar.path.tooltip')),expression:\"$t('org.vue.components.status-bar.path.tooltip')\"}],staticClass:\"section current-path\",attrs:{\"query\":require('@/graphql/cwd/cwd.gql')},nativeOn:{\"click\":function($event){return _vm.onCwdClick()}},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar data = ref.result.data;\nreturn [_c('VueIcon',{attrs:{\"icon\":\"folder\"}}),(data)?_c('span',[_vm._v(_vm._s(data.cwd))]):_vm._e()]}}])},[_c('ApolloSubscribeToMore',{attrs:{\"document\":require('@/graphql/cwd/cwdChanged.gql'),\"update-query\":function (previousResult, ref) {\n var subscriptionData = ref.subscriptionData;\n\n return ({\n cwd: subscriptionData.data.cwd\n });\n}}})],1),_c('div',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.status-bar.log.tooltip')),expression:\"$t('org.vue.components.status-bar.log.tooltip')\"}],staticClass:\"section action console-log\",on:{\"click\":function($event){return _vm.onConsoleClick()}}},[_c('VueIcon',{attrs:{\"icon\":\"dvr\"}}),_c('transition-group',{staticClass:\"last-message-container\",attrs:{\"name\":\"slide-up\",\"duration\":\"600\",\"tag\":\"div\"}},[(_vm.consoleLogLast)?_c('LoggerMessage',{key:_vm.consoleLogLast.id,staticClass:\"last-message\",attrs:{\"message\":_vm.consoleLogLast}}):_c('div',{key:\"__empty\",staticClass:\"last-message no-log\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.components.status-bar.log.empty'))+\" \")])],1)],1),(_vm.enableDarkModeButton)?_c('div',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.status-bar.dark-mode')),expression:\"$t('org.vue.components.status-bar.dark-mode')\"}],staticClass:\"section action dark-mode\",on:{\"click\":function($event){return _vm.toggleDarkMode()}}},[_c('VueIcon',{attrs:{\"icon\":\"invert_colors\"}})],1):_vm._e(),_c('div',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.status-bar.report-bug')),expression:\"$t('org.vue.components.status-bar.report-bug')\"}],staticClass:\"section action bug-report\",on:{\"click\":function($event){return _vm.onBugReportClick()}}},[_c('VueIcon',{attrs:{\"icon\":\"bug_report\"}})],1),_c('div',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.status-bar.translate')),expression:\"$t('org.vue.components.status-bar.translate')\"}],staticClass:\"section action translate\",on:{\"click\":function($event){return _vm.onTranslateClick()}}},[_c('VueIcon',{attrs:{\"icon\":\"g_translate\"}})],1),_c('div',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.status-bar.reset-plugin-api')),expression:\"$t('org.vue.components.status-bar.reset-plugin-api')\"}],staticClass:\"section action reset-plugin-api\",on:{\"click\":function($event){return _vm.resetPluginApi()}}},[_c('VueIcon',{attrs:{\"icon\":\"cached\"}})],1)],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./StatusBar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./StatusBar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./StatusBar.vue?vue&type=template&id=df9bd38a&scoped=true&\"\nimport script from \"./StatusBar.vue?vue&type=script&lang=js&\"\nexport * from \"./StatusBar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./StatusBar.vue?vue&type=style&index=0&id=df9bd38a&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"df9bd38a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"top-bar\"},[_c('portal-target',{staticClass:\"title\",attrs:{\"name\":\"top-title\"}},[_vm._v(\"Vue\")]),_c('AppLoading'),_c('div',{staticClass:\"vue-ui-spacer\"}),_c('SuggestionBar'),_c('portal-target',{staticClass:\"actions\",attrs:{\"name\":\"top-actions\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./TopBar.vue?vue&type=template&id=68cd19b0&scoped=true&\"\nvar script = {}\nimport style0 from \"./TopBar.vue?vue&type=style&index=0&id=68cd19b0&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"68cd19b0\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.component)?_c(_vm.component,{tag:\"component\"}):(_vm.timeout)?_c('div',{staticClass:\"vue-ui-empty\"},[_c('VueIcon',{staticClass:\"big\",attrs:{\"icon\":\"cake\"}}),_c('div',{staticClass:\"timeout-title\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.components.client-addon-component.timeout'))+\" \")]),_c('div',{staticClass:\"timeout-info\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.components.client-addon-component.timeout-info'))+\" \")])],1):_c('div',{staticClass:\"loading\"},[_c('VueLoadingIndicator')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ClientAddonComponent.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ClientAddonComponent.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ClientAddonComponent.vue?vue&type=template&id=2b95752e&scoped=true&\"\nimport script from \"./ClientAddonComponent.vue?vue&type=script&lang=js&\"\nexport * from \"./ClientAddonComponent.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ClientAddonComponent.vue?vue&type=style&index=0&id=2b95752e&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2b95752e\",\n null\n \n)\n\nexport default component.exports","var render, staticRenderFns\nimport script from \"./ClientAddonLoader.vue?vue&type=script&lang=js&\"\nexport * from \"./ClientAddonLoader.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ClientAddonLoader.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ClientAddonLoader.vue?vue&type=script&lang=js&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"tooltip\",rawName:\"v-tooltip.right\",value:(_vm.$t(_vm.configuration.description)),expression:\"$t(configuration.description)\",modifiers:{\"right\":true}}],staticClass:\"configuration-item list-item\",class:{\n selected: _vm.selected\n }},[_c('div',{staticClass:\"content\"},[_c('ItemLogo',{attrs:{\"image\":_vm.configuration.icon || (_vm.configuration.plugin && _vm.configuration.plugin.logo),\"fallback-icon\":\"settings_applications\"}}),_c('ListItemInfo',{attrs:{\"name\":_vm.configuration.name,\"description\":_vm.$t(_vm.configuration.description),\"selected\":_vm.selected}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ConfigurationItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ConfigurationItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ConfigurationItem.vue?vue&type=template&id=6ca068b0&scoped=true&\"\nimport script from \"./ConfigurationItem.vue?vue&type=script&lang=js&\"\nexport * from \"./ConfigurationItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ConfigurationItem.vue?vue&type=style&index=0&id=6ca068b0&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6ca068b0\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"configuration-tab\"},[_c('PromptsList',{attrs:{\"prompts\":_vm.visiblePrompts},on:{\"answer\":_vm.answerPrompt}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ConfigurationTab.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ConfigurationTab.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ConfigurationTab.vue?vue&type=template&id=3828750c&\"\nimport script from \"./ConfigurationTab.vue?vue&type=script&lang=js&\"\nexport * from \"./ConfigurationTab.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-configuration-details\"},[(_vm.configuration)?[(_vm.configuration.tabs.length > 1)?_c('div',{staticClass:\"tabs\"},[_c('VueGroup',{staticClass:\"tabs-selector\",model:{value:(_vm.currentTab),callback:function ($$v) {_vm.currentTab=$$v},expression:\"currentTab\"}},_vm._l((_vm.configuration.tabs),function(tab){return _c('VueGroupButton',{key:tab.id,attrs:{\"value\":tab.id,\"icon-left\":tab.icon,\"label\":_vm.$t(tab.label)}})}),1)],1):_vm._e(),_c('div',{staticClass:\"content\"},_vm._l((_vm.configuration.tabs),function(tab){return _c('ConfigurationTab',{directives:[{name:\"show\",rawName:\"v-show\",value:(tab.id === _vm.currentTab),expression:\"tab.id === currentTab\"}],key:tab.id,attrs:{\"configuration\":_vm.configuration,\"tab\":tab},on:{\"has-changes\":function (value) { return _vm.tabsHaveChanges[tab.id] = value; }}})}),1)]:_c('VueLoadingIndicator',{staticClass:\"loading\"}),_c('div',{staticClass:\"actions-bar\"},[(_vm.configuration && _vm.configuration.link)?_c('VueButton',{staticClass:\"big flat success\",attrs:{\"icon-right\":\"open_in_new\",\"label\":_vm.$t('org.vue.views.project-configuration-details.actions.more-info'),\"href\":_vm.configuration.link,\"target\":\"_blank\"}}):_vm._e(),_c('div',{staticClass:\"vue-ui-spacer\"}),_c('VueButton',{staticClass:\"big\",attrs:{\"disabled\":!_vm.hasPromptsChanged,\"icon-left\":\"cancel\",\"label\":_vm.$t('org.vue.views.project-configuration-details.actions.cancel')},on:{\"click\":function($event){return _vm.cancel()}}}),(_vm.configuration && !_vm.hasPromptsChanged)?_c('VueButton',{staticClass:\"big primary\",attrs:{\"icon-left\":\"refresh\",\"label\":_vm.$t('org.vue.views.project-configuration-details.actions.refresh')},on:{\"click\":function($event){return _vm.refetch()}}}):_c('VueButton',{staticClass:\"primary big\",attrs:{\"icon-left\":\"save\",\"label\":_vm.$t('org.vue.views.project-configuration-details.actions.save')},on:{\"click\":function($event){return _vm.save()}}})],1)],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectConfigurationDetails.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectConfigurationDetails.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectConfigurationDetails.vue?vue&type=template&id=54636a5c&scoped=true&\"\nimport script from \"./ProjectConfigurationDetails.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectConfigurationDetails.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProjectConfigurationDetails.vue?vue&type=style&index=0&id=54636a5c&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"54636a5c\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-configurations page\"},[_c('ContentView',{staticClass:\"limit-width\",attrs:{\"title\":_vm.$t('org.vue.views.project-configurations.title')}},[_c('ApolloQuery',{staticClass:\"fill-height\",attrs:{\"query\":require('@/graphql/configuration/configurations.gql')},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar ref_result = ref.result;\nvar data = ref_result.data;\nvar loading = ref_result.loading;\nreturn [(loading && (!data || !data.configurations))?_c('VueLoadingIndicator',{staticClass:\"overlay\"}):(data)?_c('NavContent',{staticClass:\"configurations\",attrs:{\"items\":_vm.generateItems(data.configurations)},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar item = ref.item;\nvar selected = ref.selected;\nreturn _c('ConfigurationItem',{attrs:{\"configuration\":item.configuration,\"selected\":selected}})}}],null,true)},[_c('div',{staticClass:\"list-header\",attrs:{\"slot\":\"before\"},slot:\"before\"},[_c('VueInput',{staticClass:\"search round\",attrs:{\"icon-left\":\"search\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1)]):_vm._e()]}}])})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectConfigurations.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectConfigurations.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectConfigurations.vue?vue&type=template&id=0e341be2&scoped=true&\"\nimport script from \"./ProjectConfigurations.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectConfigurations.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProjectConfigurations.vue?vue&type=style&index=0&id=0e341be2&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0e341be2\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"content-view\"},[(_vm.title)?_c('portal',{attrs:{\"to\":\"top-title\"}},[_vm._v(_vm._s(_vm.title))]):_vm._e(),_c('portal',{attrs:{\"to\":\"top-actions\"}},[_vm._t(\"actions\")],2),_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"wrapper\"},[_vm._t(\"default\")],2)])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ContentView.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ContentView.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ContentView.vue?vue&type=template&id=18683bcf&scoped=true&\"\nimport script from \"./ContentView.vue?vue&type=script&lang=js&\"\nexport * from \"./ContentView.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ContentView.vue?vue&type=style&index=0&id=18683bcf&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"18683bcf\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"item-logo\",class:{\n selected: _vm.selected,\n loaded: _vm.loaded,\n error: _vm.error,\n vuejs: _vm.image && _vm.image.includes('vuejs')\n }},[_c('div',{staticClass:\"wrapper\"},[(_vm.selected)?_c('VueIcon',{attrs:{\"icon\":\"done\"}}):(_vm.displayImage)?_c('img',{key:_vm.imageUrl,staticClass:\"image\",attrs:{\"src\":_vm.imageUrl},on:{\"load\":function($event){_vm.loaded = true},\"error\":function($event){_vm.error = true}}}):_c('VueIcon',{attrs:{\"icon\":_vm.error || !_vm.image ? _vm.fallbackIcon : _vm.image}})],1),(_vm.displayImage && _vm.colorBullet)?_c('div',{staticClass:\"color-bullet\"}):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ItemLogo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ItemLogo.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ItemLogo.vue?vue&type=template&id=9ee9675a&scoped=true&\"\nimport script from \"./ItemLogo.vue?vue&type=script&lang=js&\"\nexport * from \"./ItemLogo.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ItemLogo.vue?vue&type=style&index=0&id=9ee9675a&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"9ee9675a\",\n null\n \n)\n\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./ListFilter.vue?vue&type=script&lang=js&\"\nexport * from \"./ListFilter.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ListFilter.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ListFilter.vue?vue&type=script&lang=js&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"list-item-info\",class:{\n selected: _vm.selected\n }},[_c('div',{staticClass:\"name\"},[_vm._t(\"name\",function(){return [_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.ansiColors(_vm.name))}})]})],2),(_vm.description || _vm.link || _vm.showDescription)?_c('div',{staticClass:\"description\"},[_vm._t(\"description\",function(){return [_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.ansiColors(_vm.description))}})]}),(_vm.link)?_c('a',{staticClass:\"more-info\",attrs:{\"href\":_vm.link,\"target\":\"_blank\"},on:{\"click\":function($event){$event.stopPropagation();return (function () {}).apply(null, arguments)}}},[_c('VueIcon',{staticClass:\"medium top\",attrs:{\"icon\":\"open_in_new\"}}),_vm._v(\" \"+_vm._s(_vm.$t('org.vue.components.list-item-info.more-info'))+\" \")],1):_vm._e()],2):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ListItemInfo.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ListItemInfo.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ListItemInfo.vue?vue&type=template&id=4001a578&scoped=true&\"\nimport script from \"./ListItemInfo.vue?vue&type=script&lang=js&\"\nexport * from \"./ListItemInfo.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ListItemInfo.vue?vue&type=style&index=0&id=4001a578&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4001a578\",\n null\n \n)\n\nexport default component.exports","\n","var render, staticRenderFns\nimport script from \"./ListSort.vue?vue&type=script&lang=js&\"\nexport * from \"./ListSort.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ListSort.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ListSort.vue?vue&type=script&lang=js&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"nav-content\"},[_c('NavList',{attrs:{\"items\":_vm.items},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_vm._t(\"default\",null,null,props)]}}],null,true)},[_vm._t(\"before\",null,{\"slot\":\"before\"}),_vm._t(\"after\",null,{\"slot\":\"after\"})],2),_c('div',{staticClass:\"content vue-ui-disable-scroll\"},[_c('router-view')],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./NavContent.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./NavContent.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NavContent.vue?vue&type=template&id=4f974f94&scoped=true&\"\nimport script from \"./NavContent.vue?vue&type=script&lang=js&\"\nexport * from \"./NavContent.vue?vue&type=script&lang=js&\"\nimport style0 from \"./NavContent.vue?vue&type=style&index=0&id=4f974f94&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4f974f94\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"nav-list vue-ui-disable-scroll\"},[_c('div',{staticClass:\"content\"},[_vm._t(\"before\"),_vm._l((_vm.items),function(item){return _c('div',{key:item.id,on:{\"click\":function($event){_vm.currentRoute = item.route}}},[_vm._t(\"default\",null,{\"item\":item,\"selected\":item.route === _vm.currentRoute})],2)}),_vm._t(\"after\")],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./NavList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./NavList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NavList.vue?vue&type=template&id=4e81b1ea&scoped=true&\"\nimport script from \"./NavList.vue?vue&type=script&lang=js&\"\nexport * from \"./NavList.vue?vue&type=script&lang=js&\"\nimport style0 from \"./NavList.vue?vue&type=style&index=0&id=4e81b1ea&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4e81b1ea\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"step-wizard\",class:{\n 'hide-tabs': _vm.hideTabs\n }},[_c('div',{staticClass:\"shell\"},[_c('div',{staticClass:\"header\"},[_c('div',{staticClass:\"content\"},[(_vm.title)?_c('div',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.title))]):_vm._e()])]),_c('VueTabs',_vm._g(_vm._b({ref:\"tabs\",staticClass:\"main-tabs\",attrs:{\"group-class\":\"accent\"}},'VueTabs',_vm.$attrs,false),_vm.$listeners),[_vm._t(\"default\",null,{\"next\":_vm.next,\"previous\":_vm.previous})],2)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./StepWizard.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./StepWizard.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./StepWizard.vue?vue&type=template&id=4f685358&scoped=true&\"\nimport script from \"./StepWizard.vue?vue&type=script&lang=js&\"\nexport * from \"./StepWizard.vue?vue&type=script&lang=js&\"\nimport style0 from \"./StepWizard.vue?vue&type=style&index=0&id=4f685358&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4f685358\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"terminal-view card\"},[(_vm.toolbar)?_c('div',{staticClass:\"pane-toolbar\"},[_c('VueIcon',{attrs:{\"icon\":\"dvr\"}}),_c('div',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.title))]),_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.terminal-view.buttons.clear')),expression:\"$t('org.vue.components.terminal-view.buttons.clear')\"}],staticClass:\"icon-button flat\",attrs:{\"icon-left\":\"delete_forever\"},on:{\"click\":function($event){_vm.clear(); _vm.$emit('clear')}}}),_c('VueIcon',{staticClass:\"separator\",attrs:{\"icon\":\"lens\"}}),_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.terminal-view.buttons.content-copy')),expression:\"$t('org.vue.components.terminal-view.buttons.content-copy')\"}],staticClass:\"icon-button flat\",attrs:{\"icon-left\":\"content_copy\"},on:{\"click\":function($event){return _vm.copyContent()}}}),_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.terminal-view.buttons.scroll')),expression:\"$t('org.vue.components.terminal-view.buttons.scroll')\"}],staticClass:\"icon-button flat\",attrs:{\"icon-left\":\"subdirectory_arrow_left\"},on:{\"click\":function($event){return _vm.scrollToBottom()}}})],1):_vm._e(),_c('div',{staticClass:\"view\"},[_c('div',{ref:\"render\",staticClass:\"xterm-render\"})]),(_vm.autoSize)?_c('resize-observer',{on:{\"notify\":_vm.fit}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./TerminalView.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./TerminalView.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TerminalView.vue?vue&type=template&id=69fa52cb&scoped=true&\"\nimport script from \"./TerminalView.vue?vue&type=script&lang=js&\"\nexport * from \"./TerminalView.vue?vue&type=script&lang=js&\"\nimport style0 from \"./TerminalView.vue?vue&type=style&index=0&lang=stylus&\"\nimport style1 from \"./TerminalView.vue?vue&type=style&index=1&id=69fa52cb&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"69fa52cb\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-dashboard page\",class:{\n customizing: _vm.customizeMode,\n 'widget-details-shown': _vm.injected.isWidgetDetailsShown\n }},[_c('ContentView',{attrs:{\"title\":_vm.$t('org.vue.views.project-dashboard.title')}},[_c('template',{slot:\"actions\"},[(!_vm.customizeMode)?_c('VueButton',{staticClass:\"primary round\",attrs:{\"icon-left\":\"edit\",\"label\":_vm.$t('org.vue.views.project-dashboard.cutomize')},on:{\"click\":function($event){_vm.customizeMode = true}}}):_c('VueButton',{staticClass:\"primary round\",attrs:{\"icon-left\":\"done\",\"label\":_vm.$t('org.vue.views.project-dashboard.done')},on:{\"click\":function($event){_vm.customizeMode = false}}})],1),_c('div',{staticClass:\"panes fill-height\"},[_c('ApolloQuery',{ref:\"widgets\",staticClass:\"widgets\",attrs:{\"query\":require('@/graphql/widget/widgets.gql')},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\n var ref_result = ref.result;\n var data = ref_result.data;\n var loading = ref_result.loading;\nreturn _c('div',{staticClass:\"widgets-wrapper\"},[(loading && (!data || !data.widgets))?_c('VueLoadingIndicator',{staticClass:\"overlay\"}):(data)?_vm._l((data.widgets),function(widget){return _c('Widget',{key:widget.id,attrs:{\"widget\":widget,\"customize-mode\":_vm.customizeMode}})}):_vm._e()],2)}}])}),_c('transition',{attrs:{\"name\":\"sidepane\"}},[(_vm.customizeMode)?_c('WidgetAddPane',{on:{\"close\":function($event){_vm.customizeMode = false}}}):_vm._e()],1)],1)],2)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default function () {\n // @vue/component\n return {\n mounted () {\n window.addEventListener('resize', this.onWindowResize)\n this.onWindowResize()\n },\n\n beforeDestroy () {\n window.removeEventListener('resize', this.onWindowResize)\n }\n }\n}\n","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectDashboard.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectDashboard.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectDashboard.vue?vue&type=template&id=72cde023&scoped=true&\"\nimport script from \"./ProjectDashboard.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectDashboard.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProjectDashboard.vue?vue&type=style&index=0&id=72cde023&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"72cde023\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{\"duration\":\"150\",\"appear\":\"\"}},[_c('div',{staticClass:\"widget\",class:{\n customizing: _vm.customizeMode,\n moving: _vm.moveState,\n resizing: _vm.resizeState,\n selected: _vm.isSelected,\n 'details-shown': _vm.showDetails,\n details: _vm.details\n }},[_c('div',{ref:\"shell\",staticClass:\"shell\",style:(_vm.shellStyle || (!_vm.details && _vm.mainStyle))},[_c('div',{staticClass:\"wrapper card\"},[_c('div',{staticClass:\"content-wrapper\"},[_c('div',{staticClass:\"header\"},[_c('div',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.injected.customTitle || _vm.$t(_vm.widget.definition.title)))]),(_vm.widget.configured)?_vm._l((_vm.visibleHeaderActions),function(action){return _c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t(action.tooltip)),expression:\"$t(action.tooltip)\"}],key:action.id,staticClass:\"icon-button flat primary\",attrs:{\"icon-left\":action.icon,\"disabled\":action.disabled},on:{\"click\":function($event){return action.onCalled()}}})}):_vm._e(),(_vm.widget.definition.hasConfigPrompts)?_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.widget.configure')),expression:\"$t('org.vue.components.widget.configure')\"}],staticClass:\"icon-button flat primary\",attrs:{\"icon-left\":\"settings\"},on:{\"click\":function($event){return _vm.openConfig()}}}):_vm._e(),(_vm.details)?_c('VueButton',{staticClass:\"icon-button flat primary\",attrs:{\"icon-left\":\"close\"},on:{\"click\":function($event){return _vm.$emit('close')}}}):(_vm.widget.definition.openDetailsButton)?_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.widget.open-details')),expression:\"$t('org.vue.components.widget.open-details')\"}],staticClass:\"icon-button flat primary\",attrs:{\"icon-left\":\"zoom_out_map\"},on:{\"click\":function($event){return _vm.openDetails()}}}):_vm._e()],2),(_vm.widget.configured)?_c('div',{staticClass:\"content\"},[_c('ClientAddonComponent',{staticClass:\"view\",attrs:{\"name\":_vm.component}})],1):_c('div',{staticClass:\"content not-configured\"},[_c('VueIcon',{staticClass:\"icon huge\",attrs:{\"icon\":\"settings\"}}),_c('VueButton',{attrs:{\"label\":_vm.$t('org.vue.components.widget.configure')},on:{\"click\":function($event){return _vm.openConfig()}}})],1)]),(_vm.customizeMode)?_c('div',{staticClass:\"customize-overlay\",on:{\"mousedown\":_vm.onMoveStart,\"click\":function($event){return _vm.select()}}},[_c('div',{staticClass:\"definition-chip\"},[_c('ItemLogo',{staticClass:\"icon\",attrs:{\"image\":_vm.widget.definition.icon,\"fallback-icon\":\"widgets\"}}),_c('div',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.injected.customTitle || _vm.$t(_vm.widget.definition.title)))])],1),_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.widget.remove')),expression:\"$t('org.vue.components.widget.remove')\"}],staticClass:\"remove-button primary flat icon-button\",attrs:{\"icon-left\":\"close\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.remove()}},nativeOn:{\"mousedown\":function($event){$event.stopPropagation();}}}),(_vm.showResizeHandle)?_vm._l((_vm.resizeHandles),function(handle){return _c('div',{key:handle,staticClass:\"resize-handle\",class:[\n handle\n ],on:{\"mousedown\":function($event){$event.stopPropagation();return _vm.onResizeStart($event, handle)}}})}):_vm._e()],2):_vm._e()])]),(_vm.moveState)?_c('div',{staticClass:\"move-ghost\",style:(_vm.moveGhostStyle)},[_c('div',{staticClass:\"backdrop\"})]):_vm._e(),(_vm.resizeState)?_c('div',{staticClass:\"resize-ghost\",style:(_vm.resizeGhostStyle)},[_c('div',{staticClass:\"backdrop\"})]):_vm._e(),(_vm.showConfig)?_c('VueModal',{staticClass:\"medium\",attrs:{\"title\":_vm.$t('org.vue.components.widget.configure')},on:{\"close\":function($event){_vm.showConfig = false}}},[_c('div',{staticClass:\"default-body\"},[(_vm.loadingConfig)?_c('VueLoadingIndicator',{staticClass:\"big accent\"}):_c('PromptsList',{attrs:{\"prompts\":_vm.visiblePrompts},on:{\"answer\":_vm.answerPrompt}})],1),_c('div',{staticClass:\"actions\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('VueButton',{staticClass:\"primary big\",attrs:{\"label\":_vm.$t('org.vue.components.widget.save'),\"disabled\":_vm.loadingConfig},on:{\"click\":function($event){return _vm.saveConfig()}}})],1)]):_vm._e(),(!_vm.details && _vm.showDetails)?_c('WidgetDetailsView',{attrs:{\"widget\":_vm.widget,\"shell-origin\":_vm.shellOrigin},on:{\"close\":function($event){return _vm.closeDetails()}}}):_vm._e()],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default function ({\n gridSize,\n field\n}) {\n // @vue/component\n return {\n computed: {\n mainStyle () {\n if (this.moveState) {\n return {\n ...this.getPositionStyle(this.moveState.pxX, this.moveState.pxY),\n ...this.getSizeStyle()\n }\n }\n if (this.resizeState) {\n return {\n ...this.getPositionStyle(this.resizeState.pxX, this.resizeState.pxY),\n ...this.getSizeStyle(this.resizeState.pxWidth, this.resizeState.pxHeight)\n }\n }\n return {\n ...this.getPositionStyle(gridSize * this[field].x, gridSize * this[field].y),\n ...this.getSizeStyle()\n }\n },\n\n moveGhostStyle () {\n return {\n ...this.getPositionStyle(gridSize * this.moveState.x, gridSize * this.moveState.y),\n ...this.getSizeStyle()\n }\n },\n\n resizeGhostStyle () {\n return {\n ...this.getPositionStyle(gridSize * this.resizeState.x, gridSize * this.resizeState.y),\n ...this.getSizeStyle(gridSize * this.resizeState.width, gridSize * this.resizeState.height)\n }\n }\n },\n\n methods: {\n getPositionStyle (x, y) {\n return {\n left: `${x}px`,\n top: `${y}px`\n }\n },\n\n getSizeStyle (width, height) {\n return {\n width: `${width || gridSize * this[field].width}px`,\n height: `${height || gridSize * this[field].height}px`\n }\n }\n }\n }\n}\n","export default function movable ({\n gridSize,\n field,\n zoom\n}) {\n // @vue/component\n return {\n data () {\n return {\n moveState: null\n }\n },\n\n beforeDestroy () {\n this.removeMoveListeners()\n },\n\n methods: {\n removeMoveListeners () {\n window.removeEventListener('mousemove', this.onMoveUpdate)\n window.removeEventListener('mouseup', this.onMoveEnd)\n },\n\n updateMoveState (e) {\n const mouseDeltaX = e.clientX - this.$_initalMousePosition.x\n const mouseDeltaY = e.clientY - this.$_initalMousePosition.y\n const pxX = this[field].x * gridSize + mouseDeltaX / zoom\n const pxY = this[field].y * gridSize + mouseDeltaY / zoom\n let x = Math.round(pxX / gridSize)\n let y = Math.round(pxY / gridSize)\n if (x < 0) x = 0\n if (y < 0) y = 0\n this.moveState = {\n pxX,\n pxY,\n x,\n y\n }\n },\n\n onMoveStart (e) {\n this.$_initalMousePosition = {\n x: e.clientX,\n y: e.clientY\n }\n this.updateMoveState(e)\n window.addEventListener('mousemove', this.onMoveUpdate)\n window.addEventListener('mouseup', this.onMoveEnd)\n },\n\n onMoveUpdate (e) {\n this.updateMoveState(e)\n },\n\n async onMoveEnd (e) {\n this.updateMoveState(e)\n this.removeMoveListeners()\n if (this.onMoved) await this.onMoved()\n this.moveState = null\n }\n }\n }\n}\n","export default function ({\n gridSize,\n field,\n zoom\n}) {\n // @vue/component\n return {\n data () {\n return {\n resizeState: null\n }\n },\n\n computed: {\n showResizeHandle () {\n return this.isSelected && !this.moveState &&\n this.canBeResized\n },\n\n canBeResized () {\n const { definition } = this[field]\n return definition.minWidth !== definition.maxWidth ||\n definition.minHeight !== definition.maxHeight\n }\n },\n\n created () {\n this.resizeHandles = [\n 'top-left',\n 'top',\n 'top-right',\n 'right',\n 'bottom-right',\n 'bottom',\n 'bottom-left',\n 'left'\n ]\n },\n\n beforeDestroy () {\n this.removeResizeListeners()\n },\n\n methods: {\n removeResizeListeners () {\n window.removeEventListener('mousemove', this.onResizeMove)\n window.removeEventListener('mouseup', this.onResizeEnd)\n },\n\n updateResizeState (e) {\n const target = this[field]\n const mouseDeltaX = (e.clientX - this.$_initalMousePosition.x) / zoom\n const mouseDeltaY = (e.clientY - this.$_initalMousePosition.y) / zoom\n const handle = this.$_resizeHandle\n let dX = 0\n let dY = 0\n let dWidth = 0\n let dHeight = 0\n // Handles\n if (handle.includes('left')) {\n dX = mouseDeltaX\n dWidth = -mouseDeltaX\n } else if (handle.includes('right')) {\n dWidth = mouseDeltaX\n }\n if (handle.includes('top')) {\n dY = mouseDeltaY\n dHeight = -mouseDeltaY\n } else if (handle.includes('bottom')) {\n dHeight = mouseDeltaY\n }\n // On-grid diffs\n let gridDX = Math.round(dX / gridSize)\n let gridDY = Math.round(dY / gridSize)\n let gridDWidth = Math.round(dWidth / gridSize)\n let gridDHeight = Math.round(dHeight / gridSize)\n // Bounds\n if (target.width + gridDWidth < target.definition.minWidth) {\n gridDWidth = target.definition.minWidth - target.width\n gridDX = target.width - target.definition.minWidth\n }\n if (target.width + gridDWidth > target.definition.maxWidth) {\n gridDWidth = target.definition.maxWidth - target.width\n gridDX = target.width - target.definition.maxWidth\n }\n if (target.height + gridDHeight < target.definition.minHeight) {\n gridDHeight = target.definition.minHeight - target.height\n gridDY = target.height - target.definition.minHeight\n }\n if (target.height + gridDHeight > target.definition.maxHeight) {\n gridDHeight = target.definition.maxHeight - target.height\n gridDY = target.height - target.definition.maxHeight\n }\n // Temp. applied state\n this.resizeState = {\n x: target.x + gridDX,\n y: target.y + gridDY,\n width: target.width + gridDWidth,\n height: target.height + gridDHeight,\n pxX: target.x * gridSize + dX,\n pxY: target.y * gridSize + dY,\n pxWidth: target.width * gridSize + dWidth,\n pxHeight: target.height * gridSize + dHeight\n }\n },\n\n onResizeStart (e, handle) {\n this.$_initalMousePosition = {\n x: e.clientX,\n y: e.clientY\n }\n this.$_resizeHandle = handle\n this.updateResizeState(e)\n window.addEventListener('mousemove', this.onResizeMove)\n window.addEventListener('mouseup', this.onResizeEnd)\n },\n\n onResizeMove (e) {\n this.updateResizeState(e)\n },\n\n async onResizeEnd (e) {\n this.updateResizeState(e)\n this.removeResizeListeners()\n if (this.onResized) await this.onResized()\n this.resizeState = null\n }\n }\n }\n}\n","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Widget.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Widget.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Widget.vue?vue&type=template&id=7b42892d&scoped=true&\"\nimport script from \"./Widget.vue?vue&type=script&lang=js&\"\nexport * from \"./Widget.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Widget.vue?vue&type=style&index=0&id=7b42892d&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7b42892d\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"widget-add-item list-item\"},[_c('div',{staticClass:\"info\",on:{\"click\":function($event){_vm.showDetails = true}}},[_c('ItemLogo',{attrs:{\"image\":_vm.definition.icon,\"fallback-icon\":\"widgets\"}}),_c('ListItemInfo',{attrs:{\"name\":_vm.$t(_vm.definition.title),\"description\":_vm.$t(_vm.definition.description),\"link\":_vm.definition.link}})],1),_c('div',{staticClass:\"actions\"},[_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.widget-add-item.add')),expression:\"$t('org.vue.components.widget-add-item.add')\"}],staticClass:\"primary icon-button\",attrs:{\"icon-left\":\"add\"},on:{\"click\":function($event){return _vm.add()}}})],1),(_vm.showDetails)?_c('VueModal',{staticClass:\"medium\",attrs:{\"title\":_vm.$t('org.vue.components.widget-add-item.details.title')},on:{\"close\":function($event){_vm.showDetails = false}}},[_c('div',{staticClass:\"custom-body\"},[_c('div',{staticClass:\"details\"},[_c('ItemLogo',{attrs:{\"image\":_vm.definition.icon,\"fallback-icon\":\"widgets\"}}),_c('ListItemInfo',{attrs:{\"name\":_vm.$t(_vm.definition.title),\"description\":_vm.$t(_vm.definition.description)}})],1),(_vm.definition.longDescription)?_c('div',{staticClass:\"details\"},[_c('div',{staticClass:\"description\",domProps:{\"innerHTML\":_vm._s(_vm.$t(_vm.definition.longDescription))}})]):_vm._e(),_c('div',{staticClass:\"instances\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.components.widget-add-item.details.max-instances', { count: _vm.definition.count, total: _vm.definition.maxCount == null ? _vm.$t('org.vue.components.widget-add-item.details.unlimited') : _vm.definition.maxCount }))+\" \")])]),_c('div',{staticClass:\"actions\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[(_vm.definition.link)?_c('VueButton',{staticClass:\"flat\",attrs:{\"href\":_vm.definition.link,\"label\":_vm.$t('org.vue.common.more-info'),\"target\":\"_blank\",\"icon-right\":\"open_in_new\"}}):_vm._e(),_c('VueButton',{staticClass:\"primary\",attrs:{\"label\":_vm.$t('org.vue.components.widget-add-item.add'),\"icon-left\":\"add\"},on:{\"click\":function($event){return _vm.add()}}})],1)]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./WidgetAddItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./WidgetAddItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./WidgetAddItem.vue?vue&type=template&id=4fd981a4&scoped=true&\"\nimport script from \"./WidgetAddItem.vue?vue&type=script&lang=js&\"\nexport * from \"./WidgetAddItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./WidgetAddItem.vue?vue&type=style&index=0&id=4fd981a4&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4fd981a4\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"widget-add-pane\"},[_c('div',{staticClass:\"pane-toolbar\"},[_c('VueIcon',{attrs:{\"icon\":\"library_add\"}}),_c('div',{staticClass:\"title\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.components.widget-add-pane.title'))+\" \")]),_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.common.close')),expression:\"$t('org.vue.common.close')\"}],staticClass:\"icon-button flat\",attrs:{\"icon-left\":\"close\"},on:{\"click\":function($event){return _vm.close()}}})],1),_c('div',{staticClass:\"toolbar\"},[_c('VueInput',{staticClass:\"round search-input\",attrs:{\"icon-left\":\"search\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1),_c('ApolloQuery',{staticClass:\"widgets\",attrs:{\"query\":require('@/graphql/widget/widgetDefinitions.gql')},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar ref_result = ref.result;\nvar data = ref_result.data;\nvar loading = ref_result.loading;\nreturn [(loading && (!data || !data.widgets))?_c('VueLoadingIndicator',{staticClass:\"overlay\"}):(data)?[_vm._l((data.widgetDefinitions.filter(_vm.filterDefinition)),function(definition){return [(definition.canAddMore)?_c('WidgetAddItem',{key:definition.id,attrs:{\"definition\":definition}}):_vm._e()]})]:_vm._e()]}}])})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./WidgetAddPane.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./WidgetAddPane.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./WidgetAddPane.vue?vue&type=template&id=18a2056d&scoped=true&\"\nimport script from \"./WidgetAddPane.vue?vue&type=script&lang=js&\"\nexport * from \"./WidgetAddPane.vue?vue&type=script&lang=js&\"\nimport style0 from \"./WidgetAddPane.vue?vue&type=style&index=0&id=18a2056d&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"18a2056d\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('Widget',{staticClass:\"widget-details-view\",attrs:{\"widget\":_vm.widget,\"shell-style\":{\n left: ((this.dashboard.left + 8) + \"px\"),\n top: ((this.dashboard.top + 8) + \"px\"),\n width: ((this.dashboard.width) + \"px\"),\n height: ((this.dashboard.height) + \"px\"),\n transformOrigin: ((this.shellOrigin.x) + \"px \" + (this.shellOrigin.y) + \"px\")\n },\"details\":\"\"},on:{\"close\":function($event){return _vm.close()}}})}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./WidgetDetailsView.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./WidgetDetailsView.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./WidgetDetailsView.vue?vue&type=template&id=0dc1b07a&scoped=true&\"\nimport script from \"./WidgetDetailsView.vue?vue&type=script&lang=js&\"\nexport * from \"./WidgetDetailsView.vue?vue&type=script&lang=js&\"\nimport style0 from \"./WidgetDetailsView.vue?vue&type=style&index=0&id=0dc1b07a&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0dc1b07a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"npm-package-search\"},[_c('div',{staticClass:\"content vue-ui-disable-scroll\"},[_c('ais-index',{attrs:{\"app-id\":\"OFCNCOG2CU\",\"api-key\":\"db283631f89b5b8a10707311f911fd00\",\"index-name\":\"npm-search\",\"query-parameters\":{\n hitsPerPage: _vm.pageSize,\n attributesToRetrieve: [\n 'name',\n 'description',\n 'repository',\n 'homepage',\n 'version',\n 'owner',\n 'humanDownloadsLast30Days',\n 'keywords'\n ],\n attributesToHighlight: [\n 'name',\n 'description'\n ],\n analyticsTags: [\n 'vue-cli-ui'\n ],\n filters: _vm.filters\n }}},[_c('InstantSearchInput',{ref:\"searchInput\",attrs:{\"placeholder\":_vm.$t('org.vue.views.project-plugins-add.tabs.search.search-input')}}),_c('div',{ref:\"resultsBox\",staticClass:\"ais-results-box\"},[_c('ais-results',{scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\n var result = ref.result;\nreturn _c('PackageSearchItem',{attrs:{\"pkg\":result,\"selected\":_vm.selectedIdModel === result.name,\"load-metadata\":_vm.loadMetadata},nativeOn:{\"click\":function($event){_vm.selectedIdModel = result.name}}})}}])}),_c('ais-no-results',[_c('div',{staticClass:\"vue-ui-empty\"},[_c('VueIcon',{staticClass:\"huge\",attrs:{\"icon\":\"search\"}}),_c('div',[_vm._v(_vm._s(_vm.$t('org.vue.views.project-plugins-add.tabs.search.not-found')))])],1)]),_c('InstantSearchPagination',{on:{\"page-change\":function($event){return _vm.scrollResultsToTop()}}})],1)],1)],1),_c('div',{staticClass:\"actions-bar no-padding-x\"},[_vm._m(0),_c('div',{staticClass:\"vue-ui-spacer\"}),_vm._t(\"more-actions\"),_c('VueButton',{staticClass:\"big\",attrs:{\"icon-left\":\"close\",\"label\":_vm.$t('org.vue.views.project-plugins-add.tabs.search.buttons.cancel')},on:{\"click\":function($event){return _vm.close()}}}),_c('VueButton',{staticClass:\"big primary\",attrs:{\"icon-left\":\"file_download\",\"label\":_vm.selectedIdModel ? _vm.$t('org.vue.views.project-plugins-add.tabs.search.buttons.install', { target: _vm.selectedIdModel }) : _vm.$t('org.vue.views.project-plugins-add.tabs.search.buttons.default-install'),\"disabled\":!_vm.selectedIdModel,\"data-testid\":\"download-plugin\"},on:{\"click\":function($event){return _vm.install()}}})],2)])}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"algolia\"},[_c('img',{staticClass:\"ais-logo\",attrs:{\"src\":require(\"@/assets/search-by-algolia.svg\")}})])}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./NpmPackageSearch.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./NpmPackageSearch.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NpmPackageSearch.vue?vue&type=template&id=5f26a37c&scoped=true&\"\nimport script from \"./NpmPackageSearch.vue?vue&type=script&lang=js&\"\nexport * from \"./NpmPackageSearch.vue?vue&type=script&lang=js&\"\nimport style0 from \"./NpmPackageSearch.vue?vue&type=style&index=0&id=5f26a37c&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5f26a37c\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"package-search-item list-item\",class:{\n selected: _vm.selected\n }},[_c('ItemLogo',{attrs:{\"image\":_vm.logoUrl,\"selected\":_vm.selected,\"fallback-icon\":\"extension\"}}),_c('ListItemInfo',{attrs:{\"link\":_vm.pkg.homepage || (_vm.pkg.repository && _vm.pkg.repository.url) || '',\"selected\":_vm.selected,\"show-description\":\"\"}},[_c('template',{slot:\"name\"},[_c('span',{staticClass:\"name\",attrs:{\"data-testid\":\"name\"}},[_c('ais-highlight',{attrs:{\"result\":_vm.pkg,\"attribute-name\":\"name\"}})],1),_c('span',{staticClass:\"version\"},[_vm._v(_vm._s(_vm.pkg.version))])]),_c('template',{slot:\"description\"},[_c('span',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.pkg.description),expression:\"pkg.description\"}],staticClass:\"info description\"},[_c('ais-highlight',{attrs:{\"result\":_vm.pkg,\"attribute-name\":\"description\"}})],1),(_vm.official)?_c('span',{staticClass:\"info\"},[_c('VueIcon',{staticClass:\"top medium\",attrs:{\"icon\":\"star\"}}),_c('span',[_vm._v(_vm._s(_vm.$t('org.vue.components.project-plugin-item.official')))])],1):_vm._e(),_c('span',{staticClass:\"info downloads\"},[_c('VueIcon',{staticClass:\"medium\",attrs:{\"icon\":\"file_download\"}}),_c('span',[_vm._v(_vm._s(_vm.pkg.humanDownloadsLast30Days))])],1),_c('span',{staticClass:\"info owner\"},[_c('VueIcon',{staticClass:\"medium\",attrs:{\"icon\":\"account_circle\"}}),_c('span',[_vm._v(_vm._s(_vm.pkg.owner.name))])],1)])],2),(_vm.hasGenerator)?_c('div',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.project-plugin-item.features.generator')),expression:\"$t('org.vue.components.project-plugin-item.features.generator')\"}],staticClass:\"feature\"},[_c('VueIcon',{staticClass:\"big\",attrs:{\"icon\":\"note_add\"}})],1):_vm._e(),(_vm.hasUiIntegration)?_c('div',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.project-plugin-item.features.ui-integration')),expression:\"$t('org.vue.components.project-plugin-item.features.ui-integration')\"}],staticClass:\"feature\"},[_c('VueIcon',{staticClass:\"big\",attrs:{\"icon\":\"brush\"}})],1):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./PackageSearchItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./PackageSearchItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PackageSearchItem.vue?vue&type=template&id=40f3faa6&scoped=true&\"\nimport script from \"./PackageSearchItem.vue?vue&type=script&lang=js&\"\nexport * from \"./PackageSearchItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./PackageSearchItem.vue?vue&type=style&index=0&id=40f3faa6&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"40f3faa6\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-dependencies page\"},[_c('ContentView',{staticClass:\"limit-width list\",attrs:{\"title\":_vm.$t('org.vue.views.project-dependencies.title')}},[_c('template',{slot:\"actions\"},[_c('VueInput',{staticClass:\"round\",attrs:{\"icon-left\":\"search\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}}),_c('VueButton',{staticClass:\"primary round\",attrs:{\"icon-left\":\"add\",\"label\":_vm.$t('org.vue.views.project-dependencies.actions.install')},on:{\"click\":function($event){_vm.showInstallModal = true}}}),_c('VueDropdown',[_c('VueButton',{staticClass:\"icon-button flat round\",attrs:{\"slot\":\"trigger\",\"icon-left\":\"more_vert\"},slot:\"trigger\"}),_c('VueDropdownButton',{attrs:{\"icon-left\":\"file_download\",\"label\":_vm.$t('org.vue.views.project-dependencies.actions.update-all')},on:{\"click\":function($event){return _vm.updateAll()}}})],1)],1),_c('ApolloQuery',{attrs:{\"query\":require('@/graphql/dependency/dependencies.gql')},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar ref_result = ref.result;\nvar data = ref_result.data;\nvar loading = ref_result.loading;\nreturn [(loading && (!data || !data.dependencies))?_c('VueLoadingIndicator',{staticClass:\"overlay\"}):(data && data.dependencies)?_c('ListFilter',{attrs:{\"list\":data.dependencies,\"filter\":function (item) { return !_vm.search || item.id.includes(_vm.search); }},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar list = ref.list;\nreturn _vm._l((['dependencies', 'devDependencies']),function(type){return _c('ListFilter',{key:type,attrs:{\"list\":list,\"filter\":function (item) { return item.type === type; }},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar list = ref.list;\nreturn (list.length)?[_c('div',{staticClass:\"cta-text\"},[_vm._v(_vm._s(_vm.$t((\"org.vue.views.project-dependencies.heading.\" + type))))]),_c('ListSort',{attrs:{\"list\":list,\"compare\":function (a, b) { return a.id.localeCompare(b.id); }},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar list = ref.list;\nreturn _vm._l((list),function(dependency){return _c('ProjectDependencyItem',{key:dependency.id,attrs:{\"dependency\":dependency},on:{\"uninstall\":function($event){return _vm.openConfirmUninstall(dependency.id)}}})})}}],null,true)})]:undefined}}],null,true)})})}}],null,true)}):_vm._e()]}}])})],2),(_vm.showInstallModal)?_c('VueModal',{staticClass:\"install-modal\",attrs:{\"title\":_vm.$t('org.vue.views.project-dependencies.install.title')},on:{\"close\":function($event){_vm.showInstallModal = false}}},[_c('div',{staticClass:\"default-body\"},[_c('div',{staticClass:\"install-options\"},[_c('VueGroup',{staticClass:\"inline\",model:{value:(_vm.installType),callback:function ($$v) {_vm.installType=$$v},expression:\"installType\"}},_vm._l((['dependencies', 'devDependencies']),function(type){return _c('VueGroupButton',{key:type,attrs:{\"value\":type}},[_vm._v(\" \"+_vm._s(_vm.$t((\"org.vue.views.project-dependencies.heading.\" + type)))+\" \")])}),1)],1),_c('NpmPackageSearch',{staticClass:\"package-search\",attrs:{\"filters\":\"NOT computedKeywords:vue-cli-plugin\"},on:{\"close\":function($event){_vm.showInstallModal = false},\"install\":_vm.installPlugin}})],1)]):_vm._e(),(_vm.showUninstallModal)?_c('VueModal',{staticClass:\"small\",attrs:{\"title\":_vm.$t('org.vue.views.project-dependencies.uninstall.title')},on:{\"close\":function($event){_vm.showUninstallModal = false}}},[_c('div',{staticClass:\"default-body\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.views.project-dependencies.uninstall.body', { id: _vm.selectedId }))+\" \")]),_c('div',{staticClass:\"actions end\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('VueButton',{staticClass:\"flat\",attrs:{\"label\":_vm.$t('org.vue.views.project-dependencies.uninstall.cancel')},on:{\"click\":function($event){_vm.showUninstallModal = false}}}),_c('VueButton',{staticClass:\"danger\",attrs:{\"label\":_vm.$t('org.vue.views.project-dependencies.uninstall.uninstall', { id: _vm.selectedId }),\"icon-left\":\"delete_forever\"},on:{\"click\":function($event){return _vm.uninstallPlugin(_vm.selectedId)}}})],1)]):_vm._e(),_c('ProgressScreen',{attrs:{\"progress-id\":\"dependency-installation\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectDependencies.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectDependencies.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectDependencies.vue?vue&type=template&id=40a4792a&scoped=true&\"\nimport script from \"./ProjectDependencies.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectDependencies.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProjectDependencies.vue?vue&type=style&index=0&id=40a4792a&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"40a4792a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-dependency-item list-item\"},[_c('div',{staticClass:\"content\"},[(!_vm.visible)?_c('div',{directives:[{name:\"observe-visibility\",rawName:\"v-observe-visibility\",value:(_vm.visibilityChanged),expression:\"visibilityChanged\"}]}):_vm._e(),_c('ItemLogo',{staticClass:\"identicon\",attrs:{\"image\":_vm.image || 'widgets',\"fallback-icon\":\"widgets\"}}),_c('ListItemInfo',{attrs:{\"name\":_vm.dependency.id,\"link\":_vm.dependency.website,\"show-description\":\"\"}},[_c('span',{staticClass:\"dependency-description\",attrs:{\"slot\":\"description\"},slot:\"description\"},[_c('span',{staticClass:\"info version\"},[_c('span',{staticClass:\"label\"},[_vm._v(_vm._s(_vm.$t('org.vue.components.project-dependency-item.version')))]),_c('span',{staticClass:\"value\"},[_vm._v(_vm._s(_vm.dependencyDetails && _vm.dependencyDetails.version.current))])]),_c('span',{staticClass:\"info wanted\"},[_c('span',{staticClass:\"label\"},[_vm._v(_vm._s(_vm.$t('org.vue.components.project-dependency-item.wanted')))]),(_vm.dependencyDetails && _vm.dependencyDetails.version.current !== _vm.dependencyDetails.version.wanted)?_c('VueIcon',{staticClass:\"top medium\",attrs:{\"icon\":\"warning\"}}):_vm._e(),_c('span',{staticClass:\"value\"},[_vm._v(_vm._s(_vm.dependencyDetails && _vm.dependencyDetails.version.wanted))])],1),_c('span',{staticClass:\"info latest\"},[_c('span',{staticClass:\"label\"},[_vm._v(_vm._s(_vm.$t('org.vue.components.project-dependency-item.latest')))]),(_vm.dependencyDetails && _vm.dependencyDetails.version.current !== _vm.dependencyDetails.version.latest)?_c('VueIcon',{staticClass:\"top medium\",attrs:{\"icon\":\"warning\"}}):_vm._e(),_c('span',{staticClass:\"value\"},[_vm._v(_vm._s(_vm.dependencyDetails && _vm.dependencyDetails.version.latest))])],1),(_vm.dependency.installed)?_c('span',{staticClass:\"info installed\"},[_c('VueIcon',{staticClass:\"top medium\",attrs:{\"icon\":\"check_circle\"}}),_vm._v(\" \"+_vm._s(_vm.$t('org.vue.components.project-dependency-item.installed'))+\" \")],1):_vm._e(),(_vm.dependencyDetails && _vm.dependencyDetails.description)?_c('span',{staticClass:\"package-description\"},[_vm._v(\" \"+_vm._s(_vm.dependencyDetails.description)+\" \")]):_vm._e()])]),(_vm.dependencyDetails && _vm.dependencyDetails.version.current !== _vm.dependencyDetails.version.wanted)?_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.project-dependency-item.actions.update', { target: _vm.dependency.id })),expression:\"$t('org.vue.components.project-dependency-item.actions.update', { target: dependency.id })\"}],staticClass:\"icon-button\",attrs:{\"icon-left\":\"file_download\",\"loading-left\":_vm.updating},on:{\"click\":function($event){return _vm.updateDependency()}}}):_vm._e(),_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.project-dependency-item.actions.uninstall', { target: _vm.dependency.id })),expression:\"$t('org.vue.components.project-dependency-item.actions.uninstall', { target: dependency.id })\"}],staticClass:\"icon-button\",attrs:{\"icon-left\":\"delete\"},on:{\"click\":function($event){return _vm.$emit('uninstall')}}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectDependencyItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectDependencyItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectDependencyItem.vue?vue&type=template&id=c7b4d70c&scoped=true&\"\nimport script from \"./ProjectDependencyItem.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectDependencyItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProjectDependencyItem.vue?vue&type=style&index=0&id=c7b4d70c&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"c7b4d70c\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"file-diff\",class:{\n new: _vm.fileDiff.new,\n deleted: _vm.fileDiff.deleted\n }},[_c('div',{staticClass:\"toolbar\",on:{\"click\":function($event){return _vm.$emit('update:collapsed', !_vm.collapsed)}}},[_c('VueIcon',{staticClass:\"file-icon\",attrs:{\"icon\":_vm.icon}}),(_vm.fileDiff.from !== _vm.fileDiff.to && !_vm.fileDiff.new)?[_c('div',{staticClass:\"name from-file\"},[_c('span',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.fileDiff.from),expression:\"fileDiff.from\"}]},[_vm._v(_vm._s(_vm.fileDiff.from))])]),(!_vm.fileDiff.deleted)?_c('VueIcon',{attrs:{\"icon\":\"arrow_forward\"}}):_vm._e()]:_vm._e(),(!_vm.fileDiff.deleted)?_c('div',{staticClass:\"name to-file\"},[_c('span',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.fileDiff.to),expression:\"fileDiff.to\"}]},[_vm._v(_vm._s(_vm.fileDiff.to))])]):_vm._e(),_c('div',{staticClass:\"vue-ui-spacer\"}),(!_vm.fileDiff.deleted)?_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.file-diff.actions.open')),expression:\"$t('org.vue.components.file-diff.actions.open')\"}],staticClass:\"icon-button\",attrs:{\"icon-left\":\"edit\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.openInEditor()}}}):_vm._e(),_c('VueButton',{staticClass:\"icon-button\",attrs:{\"icon-left\":_vm.collapsed ? 'keyboard_arrow_down' : 'keyboard_arrow_up'}})],2),(!_vm.collapsed)?_c('div',{staticClass:\"content\"},[(_vm.fileDiff.binary)?_c('div',{staticClass:\"is-binary\"},[_c('VueIcon',{staticClass:\"icon\",attrs:{\"icon\":\"memory\"}}),_c('span',[_vm._v(_vm._s(_vm.$t('org.vue.components.file-diff.binary')))])],1):_vm._l((_vm.fileDiff.chunks),function(chunk,index){return _c('FileDiffChunk',{key:index,attrs:{\"chunk\":chunk}})})],2):_vm._e()])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./FileDiff.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./FileDiff.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FileDiff.vue?vue&type=template&id=1bd7cf58&scoped=true&\"\nimport script from \"./FileDiff.vue?vue&type=script&lang=js&\"\nexport * from \"./FileDiff.vue?vue&type=script&lang=js&\"\nimport style0 from \"./FileDiff.vue?vue&type=style&index=0&id=1bd7cf58&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1bd7cf58\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"file-diff-change\",class:[\n (\"type-\" + (_vm.change.type))\n ]},[_c('div',{staticClass:\"lines\"},[_c('div',{staticClass:\"ln ln1\"},[_vm._v(\" \"+_vm._s(_vm.ln1)+\" \")]),_c('div',{staticClass:\"ln ln2\",class:{\n disabled: !_vm.ln2\n },on:{\"click\":function($event){return _vm.openInEditor()}}},[_vm._v(\" \"+_vm._s(_vm.ln2)+\" \")])]),_c('div',{staticClass:\"content\",domProps:{\"innerHTML\":_vm._s(_vm.change.content)}})])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./FileDiffChange.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./FileDiffChange.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FileDiffChange.vue?vue&type=template&id=75653a05&scoped=true&\"\nimport script from \"./FileDiffChange.vue?vue&type=script&lang=js&\"\nexport * from \"./FileDiffChange.vue?vue&type=script&lang=js&\"\nimport style0 from \"./FileDiffChange.vue?vue&type=style&index=0&id=75653a05&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"75653a05\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"file-diff-chunk\"},[_c('div',{staticClass:\"changes\"},_vm._l((_vm.chunk.changes),function(change,index){return _c('FileDiffChange',{key:index,attrs:{\"change\":change}})}),1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./FileDiffChunk.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./FileDiffChunk.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FileDiffChunk.vue?vue&type=template&id=2db99afb&scoped=true&\"\nimport script from \"./FileDiffChunk.vue?vue&type=script&lang=js&\"\nexport * from \"./FileDiffChunk.vue?vue&type=script&lang=js&\"\nimport style0 from \"./FileDiffChunk.vue?vue&type=style&index=0&id=2db99afb&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2db99afb\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"file-diff-view\"},[_c('div',{staticClass:\"toolbar\"},[_c('VueIcon',{attrs:{\"icon\":\"cached\"}}),_c('div',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.$t('org.vue.components.file-diff-view.files-changed')))]),_c('div',{staticClass:\"file-count\"},[_vm._v(_vm._s(_vm.fileDiffs && _vm.fileDiffs.length))]),_c('transition',{attrs:{\"name\":\"vue-ui-fade\"}},[(_vm.loading && _vm.fileDiffs.length)?_c('VueLoadingIndicator',{staticClass:\"small accent\"}):_vm._e()],1),_c('div',{staticClass:\"vue-ui-spacer\"}),_c('VueInput',{attrs:{\"icon-left\":\"search\",\"placeholder\":_vm.$t('org.vue.components.file-diff-view.search-file')},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}}),_c('VueButton',{attrs:{\"icon-left\":_vm.allCollapsed ? 'keyboard_arrow_down' : 'keyboard_arrow_up',\"label\":_vm.$t((\"org.vue.components.file-diff-view.actions.\" + (_vm.allCollapsed ? 'expand-all' : 'collapse-all')))},on:{\"click\":function($event){return _vm.setCollapsedToAll(!_vm.allCollapsed)}}}),_c('VueButton',{staticClass:\"icon-button\",attrs:{\"icon-left\":\"refresh\"},on:{\"click\":function($event){return _vm.refresh()}}})],1),_c('div',{staticClass:\"list\"},[(_vm.error || !_vm.fileDiffs)?_c('div',{staticClass:\"vue-ui-empty\"},[_c('VueIcon',{staticClass:\"empty-icon\",attrs:{\"icon\":\"error\"}}),_c('span',[_vm._v(_vm._s(_vm.$t('org.vue.components.file-diff-view.error')))])],1):(!_vm.filteredList.length)?_c('div',{staticClass:\"vue-ui-empty\"},[_c('VueIcon',{staticClass:\"empty-icon\",attrs:{\"icon\":\"check_circle\"}}),_c('span',[_vm._v(_vm._s(_vm.$t('org.vue.components.file-diff-view.empty')))])],1):_vm._l((_vm.filteredList),function(fileDiff){return _c('FileDiff',{key:fileDiff.id,attrs:{\"file-diff\":fileDiff,\"collapsed\":!!_vm.collapsed[fileDiff.id]},on:{\"update:collapsed\":function (value) { return _vm.$set(_vm.collapsed, fileDiff.id, value); }}})})],2),_c('div',{staticClass:\"actions-bar\"},[(!_vm.error && _vm.fileDiffs && _vm.fileDiffs.length)?[_c('VueButton',{staticClass:\"big primary\",attrs:{\"icon-left\":\"vertical_align_bottom\",\"label\":_vm.$t('org.vue.components.file-diff-view.actions.commit')},on:{\"click\":function($event){_vm.showCommitModal = true}}}),_c('VueButton',{staticClass:\"big\",attrs:{\"label\":_vm.$t('org.vue.components.file-diff-view.actions.skip'),\"data-testid\":\"skip-button\"},on:{\"click\":function($event){return _vm.skip()}}})]:[_c('VueButton',{staticClass:\"big primary\",attrs:{\"icon-left\":\"done\",\"label\":_vm.$t('org.vue.components.file-diff-view.actions.continue'),\"data-testid\":\"skip-button\"},on:{\"click\":function($event){return _vm.skip()}}}),_c('VueButton',{staticClass:\"big\",attrs:{\"label\":_vm.$t('org.vue.components.file-diff-view.actions.refresh'),\"icon-left\":\"refresh\"},on:{\"click\":function($event){return _vm.refresh()}}})]],2),_c('transition',{attrs:{\"name\":\"vue-ui-fade\"}},[(_vm.loading && !_vm.fileDiffs.length)?_c('VueLoadingIndicator',{staticClass:\"accent big overlay\"}):_vm._e()],1),(_vm.showCommitModal)?_c('VueModal',{staticClass:\"medium\",attrs:{\"title\":_vm.$t('org.vue.components.file-diff-view.modals.commit.title')},on:{\"close\":function($event){_vm.showCommitModal = false}}},[_c('div',{staticClass:\"default-body\"},[_c('VueFormField',{attrs:{\"title\":_vm.$t('org.vue.components.file-diff-view.modals.commit.input'),\"subtitle\":_vm.$t('org.vue.components.file-diff-view.modals.commit.subtitle')}},[_c('VueInput',{directives:[{name:\"focus\",rawName:\"v-focus\"}],attrs:{\"icon-left\":\"local_offer\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }_vm.commitMessage && _vm.commit()}},model:{value:(_vm.commitMessage),callback:function ($$v) {_vm.commitMessage=$$v},expression:\"commitMessage\"}})],1)],1),_c('div',{staticClass:\"actions center\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('VueButton',{staticClass:\"flat\",attrs:{\"label\":_vm.$t('org.vue.components.file-diff-view.modals.commit.actions.cancel')},on:{\"click\":function($event){_vm.showCommitModal = false}}}),_c('VueButton',{staticClass:\"primary\",attrs:{\"label\":_vm.$t('org.vue.components.file-diff-view.modals.commit.actions.commit'),\"icon-left\":\"vertical_align_bottom\",\"disabled\":!_vm.commitMessage},on:{\"click\":function($event){return _vm.commit()}}})],1)]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Vue from 'vue'\n\nconst vm = new Vue({\n data: {\n documentVisible: !document.hidden,\n documentFocus: document.hasFocus()\n }\n})\n\ndocument.addEventListener('visibilitychange', () => {\n vm.documentVisible = !document.hidden\n}, false)\n\nwindow.addEventListener('focus', () => {\n vm.documentFocus = true\n})\n\nwindow.addEventListener('blur', () => {\n vm.documentFocus = false\n})\n\n// @vue/component\nexport default {\n computed: {\n documentVisible () {\n return vm.documentVisible\n },\n\n documentFocus () {\n return vm.documentFocus\n }\n }\n}\n","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./FileDiffView.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./FileDiffView.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FileDiffView.vue?vue&type=template&id=e6aca748&scoped=true&\"\nimport script from \"./FileDiffView.vue?vue&type=script&lang=js&\"\nexport * from \"./FileDiffView.vue?vue&type=script&lang=js&\"\nimport style0 from \"./FileDiffView.vue?vue&type=style&index=0&id=e6aca748&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"e6aca748\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"folder-explorer\",class:{\n error: _vm.error\n }},[_c('div',{staticClass:\"toolbar\"},[_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.folder-explorer.toolbar.tooltips.parent-folder')),expression:\"$t('org.vue.components.folder-explorer.toolbar.tooltips.parent-folder')\"}],staticClass:\"icon-button go-up\",attrs:{\"icon-left\":\"keyboard_arrow_up\"},on:{\"click\":_vm.openParentFolder}}),(_vm.editingPath)?_c('div',{staticClass:\"path-edit\"},[_c('VueInput',{directives:[{name:\"focus\",rawName:\"v-focus\"}],ref:\"pathInput\",staticClass:\"path-input\",attrs:{\"placeholder\":_vm.$t('org.vue.components.folder-explorer.toolbar.placeholder'),\"icon-right\":\"edit\"},on:{\"keyup\":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"esc\",27,$event.key,[\"Esc\",\"Escape\"])){ return null; }_vm.editingPath = false},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.submitPathEdit()}]},model:{value:(_vm.editedPath),callback:function ($$v) {_vm.editedPath=$$v},expression:\"editedPath\"}})],1):_c('ApolloQuery',{staticClass:\"current-path\",attrs:{\"query\":require('@/graphql/cwd/cwd.gql')},nativeOn:{\"dblclick\":function($event){return _vm.openPathEdit()}},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\n var data = ref.result.data;\nreturn [(data)?_c('div',{staticClass:\"path-value\"},_vm._l((_vm.slicePath(data.cwd)),function(slice,index){return _c('div',{key:index,staticClass:\"path-part\"},[_c('VueButton',{staticClass:\"path-folder flat\",class:{\n 'icon-button': !slice.name\n },attrs:{\"icon-left\":!slice.name ? 'folder' : null},on:{\"click\":function($event){return _vm.openFolder(slice.path)}}},[_vm._v(\" \"+_vm._s(slice.name)+\" \")])],1)}),0):_vm._e(),_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.folder-explorer.toolbar.tooltips.edit-path')),expression:\"$t('org.vue.components.folder-explorer.toolbar.tooltips.edit-path')\"}],staticClass:\"edit-path-button icon-button\",attrs:{\"icon-left\":\"edit\"},on:{\"click\":function($event){return _vm.openPathEdit()}}})]}}])},[_c('ApolloSubscribeToMore',{attrs:{\"document\":require('@/graphql/cwd/cwdChanged.gql'),\"update-query\":_vm.cwdChangedUpdate}})],1),(_vm.error)?_c('VueIcon',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.error.message),expression:\"error.message\"}],staticClass:\"error-icon big\",attrs:{\"icon\":\"error\"}}):_vm._e(),_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.folder-explorer.toolbar.tooltips.refresh')),expression:\"$t('org.vue.components.folder-explorer.toolbar.tooltips.refresh')\"}],staticClass:\"icon-button\",attrs:{\"icon-left\":\"refresh\"},on:{\"click\":_vm.refreshFolder}}),_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.folder-explorer.toolbar.tooltips.favorite')),expression:\"$t('org.vue.components.folder-explorer.toolbar.tooltips.favorite')\"}],staticClass:\"icon-button favorite-button\",attrs:{\"icon-left\":_vm.folderCurrent.favorite ? 'star' : 'star_border'},on:{\"click\":function($event){return _vm.toggleFavorite()}}}),_c('VueDropdown',{attrs:{\"placement\":\"bottom-end\"}},[_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.folder-explorer.toolbar.tooltips.favorite-folders')),expression:\"$t('org.vue.components.folder-explorer.toolbar.tooltips.favorite-folders')\"}],staticClass:\"icon-button\",attrs:{\"slot\":\"trigger\",\"icon-left\":\"arrow_drop_down\"},slot:\"trigger\"}),(_vm.foldersFavorite.length)?_vm._l((_vm.foldersFavorite),function(folder){return _c('VueDropdownButton',{key:folder.path,attrs:{\"label\":folder.path,\"icon-left\":\"folder\"},on:{\"click\":function($event){return _vm.openFolder(folder.path)}}})}):_c('div',{staticClass:\"vue-ui-empty\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.components.folder-explorer.toolbar.empty'))+\" \")])],2),_c('VueDropdown',{attrs:{\"placement\":\"bottom-end\"}},[_c('VueButton',{staticClass:\"icon-button\",attrs:{\"slot\":\"trigger\",\"icon-left\":\"more_vert\"},slot:\"trigger\"}),_c('VueDropdownButton',{attrs:{\"label\":_vm.$t('org.vue.components.folder-explorer.new-folder.action'),\"icon-left\":\"create_new_folder\"},on:{\"click\":function($event){_vm.showNewFolder = true}}}),_c('VueSwitch',{staticClass:\"extend-left\",attrs:{\"icon\":\"visibility\"},model:{value:(_vm.showHidden),callback:function ($$v) {_vm.showHidden=$$v},expression:\"showHidden\"}},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.components.folder-explorer.toolbar.show-hidden'))+\" \")])],1)],1),_c('div',{ref:\"folders\",staticClass:\"folders\"},[_c('transition',{attrs:{\"name\":\"vue-ui-fade\"}},[(_vm.loading)?_c('VueLoadingBar',{staticClass:\"ghost primary\",attrs:{\"unknown\":\"\"}}):_vm._e()],1),(_vm.folderCurrent && _vm.folderCurrent.children)?[_vm._l((_vm.folderCurrent.children),function(folder){return [(_vm.showHidden || !folder.hidden)?_c('FolderExplorerItem',{key:folder.name,attrs:{\"folder\":folder},on:{\"select\":function($event){return _vm.openFolder(folder.path)}}}):_vm._e()]})]:_vm._e()],2),(_vm.showNewFolder)?_c('VueModal',{staticClass:\"small new-folder-modal\",attrs:{\"title\":_vm.$t('org.vue.components.folder-explorer.new-folder.title')},on:{\"close\":function($event){_vm.showNewFolder = false}}},[_c('div',{staticClass:\"default-body\"},[_c('VueFormField',{attrs:{\"title\":_vm.$t('org.vue.components.folder-explorer.new-folder.field.title'),\"subtitle\":_vm.$t('org.vue.components.folder-explorer.new-folder.field.subtitle')}},[_c('VueInput',{directives:[{name:\"focus\",rawName:\"v-focus\"}],attrs:{\"icon-left\":\"folder\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.createFolder()}},model:{value:(_vm.newFolderName),callback:function ($$v) {_vm.newFolderName=$$v},expression:\"newFolderName\"}})],1)],1),_c('div',{staticClass:\"actions end\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('VueButton',{staticClass:\"flat close\",attrs:{\"label\":_vm.$t('org.vue.components.folder-explorer.new-folder.cancel')},on:{\"click\":function($event){_vm.showNewFolder = false}}}),_c('VueButton',{staticClass:\"primary save\",attrs:{\"label\":_vm.$t('org.vue.components.folder-explorer.new-folder.create'),\"icon-left\":\"create_new_folder\",\"disabled\":!_vm.newFolderValid},on:{\"click\":function($event){return _vm.createFolder()}}})],1)]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export function isValidName (name) {\n return !name.match(/[/@\\s+%:]|^[_.]/) && encodeURIComponent(name) === name && name.length <= 214\n}\n\nexport function isValidMultiName (name) {\n name = name.replace(/\\\\/g, '/')\n return name.split('/').every(isValidName)\n}\n","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./FolderExplorer.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./FolderExplorer.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FolderExplorer.vue?vue&type=template&id=bbb28d68&scoped=true&\"\nimport script from \"./FolderExplorer.vue?vue&type=script&lang=js&\"\nexport * from \"./FolderExplorer.vue?vue&type=script&lang=js&\"\nimport style0 from \"./FolderExplorer.vue?vue&type=style&index=0&id=bbb28d68&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"bbb28d68\",\n null\n \n)\n\nexport default component.exports","var render = function (_h,_vm) {var _c=_vm._c;return _c('div',{staticClass:\"folder-explorer-item\",class:{\n hidden: _vm.props.folder.hidden\n },on:{\"click\":function($event){return _vm.listeners.select()}}},[_c('VueIcon',{staticClass:\"folder-icon big\",attrs:{\"icon\":_vm.props.folder.isPackage ? 'folder' : 'folder_open'}}),_c('div',{staticClass:\"folder-name\"},[_vm._v(\" \"+_vm._s(_vm.props.folder.name)+\" \"),(_vm.props.folder.isVueProject)?_c('img',{staticClass:\"vue-ui-project-icon\",attrs:{\"src\":require(\"@/assets/logo.png\")}}):_vm._e()]),(_vm.props.folder.favorite)?_c('VueIcon',{staticClass:\"favorite-icon\",attrs:{\"icon\":\"star\"}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./FolderExplorerItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./FolderExplorerItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FolderExplorerItem.vue?vue&type=template&id=3200338a&scoped=true&functional=true&\"\nimport script from \"./FolderExplorerItem.vue?vue&type=script&lang=js&\"\nexport * from \"./FolderExplorerItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./FolderExplorerItem.vue?vue&type=style&index=0&id=3200338a&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n true,\n null,\n \"3200338a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"logger-message\",class:[\n (\"type-\" + (_vm.message.type)),\n {\n 'has-type': _vm.message.type !== 'log',\n 'has-tag': _vm.message.tag,\n pre: _vm.pre\n }\n ]},[(_vm.message.type !== 'log')?_c('div',{staticClass:\"type\"},[_vm._v(_vm._s(_vm.message.type))]):_vm._e(),(_vm.message.tag)?_c('div',{staticClass:\"tag\"},[_vm._v(_vm._s(_vm.message.tag))]):_vm._e(),_c('div',{staticClass:\"message\",domProps:{\"innerHTML\":_vm._s(_vm.ansiColors(_vm.message.message))}}),_c('div',{staticClass:\"date\"},[_vm._v(_vm._s(_vm._f(\"date\")(_vm.message.date)))])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./LoggerMessage.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./LoggerMessage.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./LoggerMessage.vue?vue&type=template&id=927a788c&scoped=true&\"\nimport script from \"./LoggerMessage.vue?vue&type=script&lang=js&\"\nexport * from \"./LoggerMessage.vue?vue&type=script&lang=js&\"\nimport style0 from \"./LoggerMessage.vue?vue&type=style&index=0&id=927a788c&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"927a788c\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"logger-view\"},[_c('div',{staticClass:\"pane-toolbar\"},[_c('VueIcon',{attrs:{\"icon\":\"dvr\"}}),_c('div',{staticClass:\"title\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.components.logger-view.title'))+\" \")]),_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.logger-view.buttons.clear')),expression:\"$t('org.vue.components.logger-view.buttons.clear')\"}],staticClass:\"icon-button flat\",attrs:{\"icon-left\":\"delete_forever\"},on:{\"click\":function($event){return _vm.clearLogs()}}}),_c('VueIcon',{staticClass:\"separator\",attrs:{\"icon\":\"lens\"}}),_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.logger-view.buttons.scroll')),expression:\"$t('org.vue.components.logger-view.buttons.scroll')\"}],staticClass:\"icon-button flat\",attrs:{\"icon-left\":\"subdirectory_arrow_left\"},on:{\"click\":function($event){return _vm.scrollToBottom()}}}),_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.logger-view.buttons.close')),expression:\"$t('org.vue.components.logger-view.buttons.close')\"}],staticClass:\"icon-button flat\",attrs:{\"icon-left\":\"close\"},on:{\"click\":function($event){return _vm.close()}}})],1),_c('ApolloQuery',{ref:\"logs\",staticClass:\"logs\",attrs:{\"query\":require('@/graphql/console-log/consoleLogs.gql')},on:{\"result\":function($event){return _vm.scrollToBottom()}},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar data = ref.result.data;\nreturn [(data && data.consoleLogs)?[_vm._l((data.consoleLogs),function(log){return _c('LoggerMessage',{key:log.id,attrs:{\"message\":log,\"pre\":\"\"}})}),(!data.consoleLogs.length)?_c('div',{staticClass:\"vue-ui-empty\"},[_c('VueIcon',{staticClass:\"large\",attrs:{\"icon\":\"wifi\"}}),_c('div',[_vm._v(_vm._s(_vm.$t('org.vue.components.logger-view.empty')))])],1):_vm._e()]:_vm._e()]}}])},[_c('ApolloSubscribeToMore',{attrs:{\"document\":require('@/graphql/console-log/consoleLogAdded.gql'),\"update-query\":_vm.onConsoleLogAdded}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./LoggerView.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./LoggerView.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./LoggerView.vue?vue&type=template&id=7cd2133d&scoped=true&\"\nimport script from \"./LoggerView.vue?vue&type=script&lang=js&\"\nexport * from \"./LoggerView.vue?vue&type=script&lang=js&\"\nimport style0 from \"./LoggerView.vue?vue&type=style&index=0&id=7cd2133d&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7cd2133d\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-plugin-add-local\"},[_c('FolderExplorer'),_c('div',{staticClass:\"actions-bar center\"},[_c('VueButton',{staticClass:\"big primary\",attrs:{\"icon-left\":\"add\",\"label\":_vm.$t('org.vue.views.project-plugin-add-local.buttons.add')},on:{\"click\":function($event){return _vm.addPlugin()}}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectPluginAddLocal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectPluginAddLocal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectPluginAddLocal.vue?vue&type=template&id=eadd60ec&scoped=true&\"\nimport script from \"./ProjectPluginAddLocal.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectPluginAddLocal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProjectPluginAddLocal.vue?vue&type=style&index=0&id=eadd60ec&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"eadd60ec\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-plugin-item list-item\"},[_c('div',{staticClass:\"content\"},[(!_vm.visible)?_c('div',{directives:[{name:\"observe-visibility\",rawName:\"v-observe-visibility\",value:(_vm.visibilityChanged),expression:\"visibilityChanged\"}]}):_vm._e(),_c('ItemLogo',{attrs:{\"image\":_vm.pluginLogo && _vm.pluginLogo.logo,\"fallback-icon\":\"extension\"}}),_c('ListItemInfo',{attrs:{\"name\":_vm.plugin.id,\"link\":_vm.plugin.website,\"show-description\":\"\"}},[_c('span',{staticClass:\"plugin-description\",attrs:{\"slot\":\"description\"},slot:\"description\"},[_c('span',{staticClass:\"info version\"},[_c('span',{staticClass:\"label\"},[_vm._v(_vm._s(_vm.$t('org.vue.components.project-plugin-item.version')))]),_c('span',{staticClass:\"value\"},[_vm._v(_vm._s(_vm.pluginDetails && _vm.pluginDetails.version.current))])]),_c('span',{staticClass:\"info latest\"},[_c('span',{staticClass:\"label\"},[_vm._v(_vm._s(_vm.$t('org.vue.components.project-plugin-item.latest')))]),(_vm.pluginDetails && _vm.pluginDetails.version.current !== _vm.pluginDetails.version.latest)?_c('VueIcon',{staticClass:\"top medium\",attrs:{\"icon\":\"warning\"}}):_vm._e(),_c('span',{staticClass:\"value\"},[_vm._v(_vm._s(_vm.pluginDetails && _vm.pluginDetails.version.latest))])],1),(_vm.plugin.official)?_c('span',{staticClass:\"info\"},[_c('VueIcon',{staticClass:\"top medium\",attrs:{\"icon\":\"star\"}}),_vm._v(\" \"+_vm._s(_vm.$t('org.vue.components.project-plugin-item.official'))+\" \")],1):_vm._e(),(_vm.plugin.installed)?_c('span',{staticClass:\"info\"},[(_vm.isLocal)?[_c('VueIcon',{staticClass:\"top medium\",attrs:{\"icon\":\"folder\"}}),_c('span',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.pluginDetails.version.localPath),expression:\"pluginDetails.version.localPath\"}]},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.components.project-plugin-item.local'))+\" \")])]:[_c('VueIcon',{staticClass:\"top medium\",attrs:{\"icon\":\"check_circle\"}}),_vm._v(\" \"+_vm._s(_vm.$t('org.vue.components.project-plugin-item.installed'))+\" \")]],2):_vm._e(),(_vm.pluginDetails && _vm.pluginDetails.description)?_c('span',{staticClass:\"package-description\"},[_vm._v(\" \"+_vm._s(_vm.pluginDetails.description)+\" \")]):_vm._e()])]),(_vm.isLocal)?_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.project-plugin-item.actions.refresh', { target: _vm.plugin.id })),expression:\"$t('org.vue.components.project-plugin-item.actions.refresh', { target: plugin.id })\"}],staticClass:\"icon-button\",attrs:{\"icon-left\":\"cached\",\"loading-left\":_vm.updating},on:{\"click\":function (e) { return _vm.updatePlugin(!e.shiftKey); }}}):(_vm.pluginDetails && _vm.pluginDetails.version.current !== _vm.pluginDetails.version.wanted)?_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.project-plugin-item.actions.update', { target: _vm.plugin.id })),expression:\"$t('org.vue.components.project-plugin-item.actions.update', { target: plugin.id })\"}],staticClass:\"icon-button\",attrs:{\"icon-left\":\"file_download\",\"loading-left\":_vm.updating},on:{\"click\":function($event){return _vm.updatePlugin()}}}):_vm._e()],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectPluginItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectPluginItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectPluginItem.vue?vue&type=template&id=9b84856a&scoped=true&\"\nimport script from \"./ProjectPluginItem.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectPluginItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProjectPluginItem.vue?vue&type=style&index=0&id=9b84856a&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"9b84856a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-plugins page\"},[_c('ContentView',{staticClass:\"limit-width list\",attrs:{\"title\":_vm.$t('org.vue.views.project-plugins.title')}},[_c('template',{slot:\"actions\"},[_c('VueInput',{staticClass:\"round\",attrs:{\"icon-left\":\"search\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}}),_c('VueButton',{staticClass:\"primary round\",attrs:{\"icon-left\":\"add\",\"label\":_vm.$t('org.vue.views.project-plugins.button'),\"to\":{ name: 'project-plugins-add' },\"data-testid\":\"add-plugin\"}}),_c('VueDropdown',[_c('VueButton',{staticClass:\"icon-button flat round\",attrs:{\"slot\":\"trigger\",\"icon-left\":\"more_vert\"},slot:\"trigger\"}),_c('VueDropdownButton',{attrs:{\"icon-left\":\"file_download\",\"label\":_vm.$t('org.vue.views.project-plugins.update-all')},on:{\"click\":function($event){return _vm.updateAll()}}})],1)],1),_c('ApolloQuery',{attrs:{\"query\":require('@/graphql/plugin/plugins.gql')},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar ref_result = ref.result;\nvar data = ref_result.data;\nvar loading = ref_result.loading;\nreturn [_c('div',{staticClass:\"cta-text\"},[_vm._v(_vm._s(_vm.$t('org.vue.views.project-plugins.heading')))]),(loading && (!data || !data.plugins))?_c('VueLoadingIndicator',{staticClass:\"overlay\"}):(data)?_c('ListFilter',{staticClass:\"plugins\",attrs:{\"list\":data.plugins,\"filter\":function (item) { return !_vm.search || item.id.includes(_vm.search); }},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar list = ref.list;\nreturn _vm._l((list),function(plugin){return _c('ProjectPluginItem',{key:plugin.id,attrs:{\"plugin\":plugin}})})}}],null,true)}):_vm._e()]}}])})],2),_c('ProgressScreen',{attrs:{\"progress-id\":\"plugin-update\"}}),_c('ProgressScreen',{attrs:{\"progress-id\":\"plugins-update\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectPlugins.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectPlugins.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectPlugins.vue?vue&type=template&id=57b470b3&scoped=true&\"\nimport script from \"./ProjectPlugins.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectPlugins.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProjectPlugins.vue?vue&type=style&index=0&id=57b470b3&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"57b470b3\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-plugins-add page\"},[_c('div',{staticClass:\"content\"},[_c('portal',{attrs:{\"to\":\"top-title\"}},[_vm._v(_vm._s(_vm.$t('org.vue.views.project-plugins-add.title')))]),_c('StepWizard',{staticClass:\"frame\",attrs:{\"tab-id\":_vm.tabId},on:{\"update:tabId\":function($event){_vm.tabId=$event},\"update:tab-id\":function($event){_vm.tabId=$event}}},[[_c('VueTab',{attrs:{\"id\":\"search\",\"label\":_vm.$t('org.vue.views.project-plugins-add.tabs.search.label'),\"icon\":\"search\",\"disabled\":\"\"}},[_c('NpmPackageSearch',{attrs:{\"filters\":\"computedKeywords:vue-cli-plugin\",\"load-metadata\":\"\"},on:{\"close\":function($event){return _vm.close()},\"install\":_vm.installPlugin}},[_c('template',{slot:\"more-actions\"},[_c('VueButton',{staticClass:\"big flat\",attrs:{\"icon-left\":\"folder\",\"label\":_vm.$t('org.vue.views.project-plugins-add.buttons.add-local')},on:{\"click\":function($event){_vm.showLocalAdd = true}}})],1)],2)],1),_c('VueTab',{attrs:{\"id\":\"config\",\"label\":_vm.$t('org.vue.views.project-plugins-add.tabs.configuration.label'),\"icon\":\"settings_applications\",\"disabled\":\"\",\"lazy\":\"\"}},[_c('div',{staticClass:\"content vue-ui-disable-scroll\"},[_c('div',{staticClass:\"cta-text\"},[_vm._v(_vm._s(_vm.$t('org.vue.views.project-plugins-add.tabs.configuration.heading', { target: _vm.pluginId })))]),_c('PromptsList',{attrs:{\"prompts\":_vm.visiblePrompts},on:{\"answer\":_vm.answerPrompt}})],1),_c('div',{staticClass:\"actions-bar no-padding-x\"},[_c('VueButton',{staticClass:\"big\",attrs:{\"icon-left\":\"arrow_back\",\"label\":_vm.$t('org.vue.views.project-plugins-add.tabs.configuration.buttons.cancel')},on:{\"click\":function($event){_vm.showCancelInstall = true}}}),_c('VueButton',{staticClass:\"big primary\",attrs:{\"icon-left\":\"done\",\"label\":_vm.$t('org.vue.views.project-plugins-add.tabs.configuration.buttons.finish'),\"disabled\":!_vm.configurationValid,\"data-testid\":\"finish-install\"},on:{\"click\":function($event){return _vm.invokePlugin()}}})],1)]),_c('VueTab',{attrs:{\"id\":\"diff\",\"label\":_vm.$t('org.vue.views.project-plugins-add.tabs.diff.label'),\"icon\":\"note_add\",\"disabled\":\"\",\"lazy\":\"\"}},[_c('FileDiffView',{on:{\"continue\":function($event){return _vm.finishInstall()}}})],1)]],2)],1),(_vm.showCancelInstall)?_c('VueModal',{staticClass:\"medium\",attrs:{\"title\":_vm.$t('org.vue.views.project-plugins-add.modal.title', { target: _vm.pluginId })},on:{\"close\":function($event){_vm.showCancelInstall = false}}},[_c('div',{staticClass:\"default-body\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.views.project-plugins-add.modal.body', { target: _vm.pluginId }))+\" \")]),_c('div',{staticClass:\"actions end\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('VueButton',{staticClass:\"flat\",attrs:{\"label\":_vm.$t('org.vue.views.project-plugins-add.modal.buttons.back')},on:{\"click\":function($event){_vm.showCancelInstall = false}}}),_c('VueButton',{attrs:{\"label\":_vm.$t('org.vue.views.project-plugins-add.modal.buttons.cancel')},on:{\"click\":function($event){return _vm.cancelInstall()}}}),_c('VueButton',{staticClass:\"danger\",attrs:{\"label\":_vm.$t('org.vue.views.project-plugins-add.modal.buttons.uninstall'),\"icon-left\":\"delete_forever\"},on:{\"click\":function($event){return _vm.uninstallPlugin()}}})],1)]):_vm._e(),(_vm.showLocalAdd)?_c('VueModal',{attrs:{\"title\":_vm.$t('org.vue.views.project-plugin-add-local.title')},on:{\"close\":function($event){return _vm.closeLocalAdd()}}},[_c('div',{staticClass:\"default-body\"},[_c('ProjectPluginAddLocal',{on:{\"installed\":_vm.localPluginInstalled}})],1)]):_vm._e(),_c('ProgressScreen',{attrs:{\"progress-id\":\"plugin-installation\"}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectPluginsAdd.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectPluginsAdd.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectPluginsAdd.vue?vue&type=template&id=290be5fe&scoped=true&\"\nimport script from \"./ProjectPluginsAdd.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectPluginsAdd.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProjectPluginsAdd.vue?vue&type=style&index=0&id=290be5fe&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"290be5fe\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-create page\"},[_c('div',{staticClass:\"content\"},[_c('StepWizard',{staticClass:\"frame\",attrs:{\"title\":_vm.$t('org.vue.views.project-create.title')},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar next = ref.next;\nvar previous = ref.previous;\nreturn [_c('VueTab',{staticClass:\"details\",attrs:{\"id\":\"details\",\"label\":_vm.$t('org.vue.views.project-create.tabs.details.title'),\"icon\":\"subject\"}},[_c('div',{staticClass:\"content vue-ui-disable-scroll\"},[_c('div',{staticClass:\"project-details vue-ui-grid col-1\"},[_c('VueFormField',{attrs:{\"title\":_vm.$t('org.vue.views.project-create.tabs.details.form.folder.label')}},[_c('VueInput',{staticClass:\"big app-name\",attrs:{\"placeholder\":_vm.$t('org.vue.views.project-create.tabs.details.form.folder.placeholder'),\"icon-left\":\"folder\"},model:{value:(_vm.formData.folder),callback:function ($$v) {_vm.$set(_vm.formData, \"folder\", $$v)},expression:\"formData.folder\"}}),_c('div',{attrs:{\"slot\":\"subtitle\"},slot:\"subtitle\"},[_c('div',{staticClass:\"project-path\"},[_c('div',{staticClass:\"path\"},[_c('span',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.cwd),expression:\"cwd\"}],staticClass:\"cwd\"},[_vm._v(\" \"+_vm._s(_vm._f(\"folder\")(_vm.cwd,42 - _vm.formData.folder.length))+\" \")]),_c('span',{staticClass:\"folder\"},[_vm._v(_vm._s(_vm.formData.folder))])]),_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.views.project-create.tabs.details.form.folder.tooltip')),expression:\"$t('org.vue.views.project-create.tabs.details.form.folder.tooltip')\"}],staticClass:\"icon-button change-folder\",attrs:{\"icon-left\":\"edit\",\"to\":{\n name: 'project-select',\n query: {\n tab: 'create',\n hideTabs: true\n }\n }}})],1),(_vm.formData.folder && !_vm.folderNameValid)?_c('div',{staticClass:\"vue-ui-text danger banner\"},[_c('VueIcon',{staticClass:\"big\",attrs:{\"icon\":\"error\"}}),_c('span',[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.views.project-create.tabs.details.form.folder.folder-name-invalid'))+\": \"+_vm._s(_vm.folderNameValidationMessage)+\" \")])],1):_vm._e(),(_vm.formData.folder)?_c('ApolloQuery',{attrs:{\"query\":require('@/graphql/folder/folderExists.gql'),\"variables\":{\n file: (_vm.cwd + \"/\" + (_vm.formData.folder))\n },\"fetch-policy\":\"no-cache\"},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\n var data = ref.result.data;\nreturn (data && data.folderExists)?_c('div',{staticClass:\"vue-ui-text warning banner\"},[_c('VueIcon',{staticClass:\"big\",attrs:{\"icon\":\"warning\"}}),_c('span',[_vm._v(_vm._s(_vm.$t('org.vue.views.project-create.tabs.details.form.folder.folder-exists')))])],1):_vm._e()}}],null,true)}):_vm._e()],1)],1),_c('VueFormField',{attrs:{\"title\":_vm.$t('org.vue.views.project-create.tabs.details.form.manager.label')}},[_c('VueSelect',{model:{value:(_vm.formData.packageManager),callback:function ($$v) {_vm.$set(_vm.formData, \"packageManager\", $$v)},expression:\"formData.packageManager\"}},[_c('VueSelectButton',{attrs:{\"value\":undefined,\"label\":_vm.$t('org.vue.views.project-create.tabs.details.form.manager.default')}}),_c('VueSelectButton',{attrs:{\"value\":\"npm\",\"label\":\"npm\"}}),_c('VueSelectButton',{attrs:{\"value\":\"yarn\",\"label\":\"yarn\"}}),_c('VueSelectButton',{attrs:{\"value\":\"pnpm\",\"label\":\"pnpm\"}})],1)],1),_c('VueFormField',{attrs:{\"title\":_vm.$t('org.vue.views.project-create.tabs.details.form.options.label')}},[_c('VueSwitch',{staticClass:\"extend-left force\",model:{value:(_vm.formData.force),callback:function ($$v) {_vm.$set(_vm.formData, \"force\", $$v)},expression:\"formData.force\"}},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.views.project-create.tabs.details.form.options.force'))+\" \")]),_c('VueSwitch',{staticClass:\"extend-left bare\",model:{value:(_vm.formData.bare),callback:function ($$v) {_vm.$set(_vm.formData, \"bare\", $$v)},expression:\"formData.bare\"}},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.views.project-create.tabs.details.form.options.bare'))+\" \")])],1),_c('VueFormField',{attrs:{\"title\":_vm.$t('org.vue.views.project-create.tabs.details.form.options.git-title')}},[_c('VueSwitch',{staticClass:\"extend-left git\",model:{value:(_vm.formData.enableGit),callback:function ($$v) {_vm.$set(_vm.formData, \"enableGit\", $$v)},expression:\"formData.enableGit\"}},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.views.project-create.tabs.details.form.options.git'))+\" \")]),_c('VueInput',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.formData.enableGit),expression:\"formData.enableGit\"}],attrs:{\"placeholder\":_vm.$t('org.vue.views.project-create.tabs.details.form.options.git-commit-message')},model:{value:(_vm.formData.gitCommitMessage),callback:function ($$v) {_vm.$set(_vm.formData, \"gitCommitMessage\", $$v)},expression:\"formData.gitCommitMessage\"}})],1)],1)]),_c('div',{staticClass:\"actions-bar\"},[_c('VueButton',{staticClass:\"big close\",attrs:{\"icon-left\":\"close\",\"label\":_vm.$t('org.vue.views.project-create.tabs.details.buttons.cancel')},on:{\"click\":function($event){_vm.showCancel = true}}}),_c('VueButton',{staticClass:\"big primary next\",attrs:{\"icon-right\":\"arrow_forward\",\"label\":_vm.$t('org.vue.views.project-create.tabs.details.buttons.next'),\"disabled\":!_vm.detailsValid},on:{\"click\":function($event){return next()}}})],1)]),_c('VueTab',{staticClass:\"presets\",attrs:{\"id\":\"presets\",\"label\":_vm.$t('org.vue.views.project-create.tabs.presets.title'),\"icon\":\"check_circle\",\"disabled\":!_vm.detailsValid,\"lazy\":\"\"}},[_c('div',{staticClass:\"content vue-ui-disable-scroll\"},[_c('div',{staticClass:\"vue-ui-text info banner\"},[_c('VueIcon',{staticClass:\"big\",attrs:{\"icon\":\"info\"}}),_c('span',[_vm._v(_vm._s(_vm.$t('org.vue.views.project-create.tabs.presets.description')))])],1),_c('div',{staticClass:\"cta-text\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.views.project-create.tabs.presets.select'))+\" \")]),(_vm.projectCreation)?_vm._l((_vm.projectCreation.presets),function(preset){return _c('ProjectPresetItem',{key:preset.id,attrs:{\"preset\":preset,\"selected\":_vm.formData.selectedPreset === preset.id},nativeOn:{\"click\":function($event){return _vm.selectPreset(preset.id)}}})}):_vm._e(),_c('ProjectPresetItem',{attrs:{\"preset\":_vm.remotePresetInfo,\"selected\":_vm.formData.selectedPreset === '__remote__',\"description\":_vm.formData.remotePreset.url},nativeOn:{\"click\":function($event){return _vm.selectPreset('__remote__')}}})],2),_c('div',{staticClass:\"actions-bar\"},[_c('VueButton',{staticClass:\"big previous\",attrs:{\"icon-left\":\"arrow_back\",\"label\":_vm.$t('org.vue.views.project-create.tabs.presets.buttons.previous')},on:{\"click\":function($event){return previous()}}}),(_vm.manual)?_c('VueButton',{staticClass:\"big primary next\",attrs:{\"icon-right\":\"arrow_forward\",\"label\":_vm.$t('org.vue.views.project-create.tabs.presets.buttons.next'),\"disabled\":!_vm.presetValid},on:{\"click\":function($event){return next()}}}):_c('VueButton',{staticClass:\"big primary next\",attrs:{\"icon-left\":\"done\",\"label\":_vm.$t('org.vue.views.project-create.tabs.presets.buttons.create'),\"disabled\":!_vm.formData.selectedPreset},on:{\"click\":function($event){return _vm.createWithoutSaving()}}})],1)]),_c('VueTab',{staticClass:\"features\",attrs:{\"id\":\"features\",\"label\":_vm.$t('org.vue.views.project-create.tabs.features.title'),\"icon\":\"device_hub\",\"disabled\":!_vm.detailsValid || !_vm.presetValid || !_vm.manual,\"lazy\":\"\"}},[_c('div',{staticClass:\"content vue-ui-disable-scroll\"},[_c('div',{staticClass:\"vue-ui-text info banner\"},[_c('VueIcon',{staticClass:\"big\",attrs:{\"icon\":\"info\"}}),_c('span',[_vm._v(_vm._s(_vm.$t('org.vue.views.project-create.tabs.features.description')))])],1),_c('div',{staticClass:\"cta-text\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.views.project-create.tabs.features.enable'))+\" \")]),(_vm.projectCreation)?_vm._l((_vm.projectCreation.features),function(feature){return _c('ProjectFeatureItem',{key:feature.id,attrs:{\"feature\":feature},nativeOn:{\"click\":function($event){return _vm.toggleFeature(feature)}}})}):_vm._e()],2),_c('div',{staticClass:\"actions-bar\"},[_c('VueButton',{staticClass:\"big previous\",attrs:{\"icon-left\":\"arrow_back\",\"label\":_vm.$t('org.vue.views.project-create.tabs.features.buttons.previous')},on:{\"click\":function($event){return previous()}}}),(_vm.visiblePrompts.length)?_c('VueButton',{staticClass:\"big primary next\",attrs:{\"icon-right\":\"arrow_forward\",\"label\":_vm.$t('org.vue.views.project-create.tabs.features.buttons.next')},on:{\"click\":function($event){return next()}}}):_c('VueButton',{staticClass:\"big primary next\",attrs:{\"icon-left\":\"done\",\"label\":_vm.$t('org.vue.views.project-create.tabs.features.buttons.create')},on:{\"click\":function($event){_vm.showSavePreset = true}}})],1)]),_c('VueTab',{staticClass:\"config\",attrs:{\"id\":\"config\",\"label\":_vm.$t('org.vue.views.project-create.tabs.configuration.title'),\"icon\":\"settings_applications\",\"disabled\":!_vm.detailsValid || !_vm.presetValid || !_vm.manual || !_vm.visiblePrompts.length,\"lazy\":\"\"}},[_c('div',{staticClass:\"content vue-ui-disable-scroll\"},[_c('PromptsList',{attrs:{\"prompts\":_vm.visiblePrompts},on:{\"answer\":_vm.answerPrompt}})],1),_c('div',{staticClass:\"actions-bar\"},[_c('VueButton',{staticClass:\"big previous\",attrs:{\"icon-left\":\"arrow_back\",\"label\":_vm.$t('org.vue.views.project-create.tabs.configuration.buttons.previous')},on:{\"click\":function($event){return previous()}}}),_c('VueButton',{staticClass:\"big primary next\",attrs:{\"icon-left\":\"done\",\"label\":_vm.$t('org.vue.views.project-create.tabs.configuration.buttons.create'),\"disabled\":!_vm.configurationValid},on:{\"click\":function($event){_vm.showSavePreset = true}}})],1)])]}}])})],1),(_vm.showRemotePreset)?_c('VueModal',{staticClass:\"small remove-preset-modal\",attrs:{\"title\":_vm.$t('org.vue.views.project-create.tabs.presets.modal.title')},on:{\"close\":function($event){return _vm.closeRemotePresetModal()}}},[_c('div',{staticClass:\"default-body vue-ui-grid big-gap col-1\"},[_c('VueFormField',{attrs:{\"title\":_vm.$t('org.vue.views.project-create.tabs.presets.remote.url.title'),\"subtitle\":_vm.$t('org.vue.views.project-create.tabs.presets.remote.url.subtitle')}},[_c('VueInput',{directives:[{name:\"focus\",rawName:\"v-focus\"}],attrs:{\"icon-left\":\"language\"},model:{value:(_vm.formData.remotePreset.url),callback:function ($$v) {_vm.$set(_vm.formData.remotePreset, \"url\", $$v)},expression:\"formData.remotePreset.url\"}})],1),_c('VueFormField',{attrs:{\"title\":_vm.$t('org.vue.views.project-create.tabs.presets.remote.options')}},[_c('VueSwitch',{staticClass:\"extend-left\",attrs:{\"disabled\":_vm.remoteNotGithub},model:{value:(_vm.formData.remotePreset.clone),callback:function ($$v) {_vm.$set(_vm.formData.remotePreset, \"clone\", $$v)},expression:\"formData.remotePreset.clone\"}},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.views.project-create.tabs.presets.remote.clone'))+\" \")])],1)],1),_c('div',{staticClass:\"actions end\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('VueButton',{staticClass:\"flat\",attrs:{\"label\":_vm.$t('org.vue.views.project-create.tabs.presets.remote.cancel')},on:{\"click\":function($event){return _vm.closeRemotePresetModal(true)}}}),_c('VueButton',{staticClass:\"primary\",attrs:{\"label\":_vm.$t('org.vue.views.project-create.tabs.presets.remote.done'),\"disabled\":!_vm.formData.remotePreset.url || !_vm.remotePresetValid,\"loading-secondary\":_vm.remotePresetValid === null,\"icon-left\":\"done\"},on:{\"click\":function($event){return _vm.closeRemotePresetModal()}}})],1)]):_vm._e(),(_vm.showCancel)?_c('VueModal',{staticClass:\"small\",attrs:{\"title\":_vm.$t('org.vue.views.project-create.tabs.details.modal.title')},on:{\"close\":function($event){_vm.showCancel = false}}},[_c('div',{staticClass:\"default-body\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.views.project-create.tabs.details.modal.body'))+\" \")]),_c('div',{staticClass:\"actions end\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('VueButton',{staticClass:\"flat\",attrs:{\"label\":_vm.$t('org.vue.views.project-create.tabs.details.modal.buttons.back')},on:{\"click\":function($event){_vm.showCancel = false}}}),_c('VueButton',{staticClass:\"danger\",attrs:{\"to\":{ name: 'project-select' },\"label\":_vm.$t('org.vue.views.project-create.tabs.details.modal.buttons.clear'),\"icon-left\":\"delete_forever\"}})],1)]):_vm._e(),(_vm.showSavePreset)?_c('VueModal',{staticClass:\"medium save-preset-modal\",attrs:{\"title\":_vm.$t('org.vue.views.project-create.tabs.configuration.modal.title')},on:{\"close\":function($event){_vm.showSavePreset = false}}},[_c('div',{staticClass:\"default-body\"},[_c('VueFormField',{attrs:{\"title\":_vm.$t('org.vue.views.project-create.tabs.configuration.modal.body.title'),\"subtitle\":_vm.$t('org.vue.views.project-create.tabs.configuration.modal.body.subtitle')}},[_c('VueInput',{directives:[{name:\"focus\",rawName:\"v-focus\"}],attrs:{\"icon-left\":\"local_offer\"},model:{value:(_vm.formData.save),callback:function ($$v) {_vm.$set(_vm.formData, \"save\", $$v)},expression:\"formData.save\"}})],1)],1),_c('div',{staticClass:\"actions end\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('VueButton',{staticClass:\"flat close\",attrs:{\"label\":_vm.$t('org.vue.views.project-create.tabs.configuration.modal.buttons.cancel')},on:{\"click\":function($event){_vm.showSavePreset = false}}}),_c('VueButton',{staticClass:\"continue\",attrs:{\"label\":_vm.$t('org.vue.views.project-create.tabs.configuration.modal.buttons.continue')},on:{\"click\":function($event){return _vm.createWithoutSaving()}}}),_c('VueButton',{staticClass:\"primary save\",attrs:{\"label\":_vm.$t('org.vue.views.project-create.tabs.configuration.modal.buttons.create'),\"icon-left\":\"save\",\"disabled\":!_vm.formData.save},on:{\"click\":function($event){return _vm.createProject()}}})],1)]):_vm._e(),_c('ProgressScreen',{attrs:{\"progress-id\":\"project-create\",\"debug\":_vm.debug}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectCreate.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectCreate.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectCreate.vue?vue&type=template&id=33533e3c&scoped=true&\"\nimport script from \"./ProjectCreate.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectCreate.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProjectCreate.vue?vue&type=style&index=0&id=33533e3c&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"33533e3c\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-feature-item list-item\",class:{\n selected: _vm.feature.enabled\n },attrs:{\"data-testid\":_vm.feature.id}},[_c('VueSwitch',{staticClass:\"extend-left\",attrs:{\"value\":_vm.feature.enabled}},[_c('ListItemInfo',{attrs:{\"name\":_vm.$t(_vm.feature.name),\"description\":_vm.$t(_vm.feature.description),\"link\":_vm.feature.link,\"selected\":_vm.feature.enabled}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectFeatureItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectFeatureItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectFeatureItem.vue?vue&type=template&id=4c4b8350&scoped=true&\"\nimport script from \"./ProjectFeatureItem.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectFeatureItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProjectFeatureItem.vue?vue&type=style&index=0&id=4c4b8350&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4c4b8350\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-preset-item list-item\",class:{\n selected: _vm.selected\n },attrs:{\"data-testid\":_vm.preset.id}},[_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"radio-icon\"},[_c('VueIcon',{staticClass:\"medium\",attrs:{\"icon\":_vm.selected ? 'radio_button_checked' : 'radio_button_unchecked'}})],1),_c('ListItemInfo',{attrs:{\"name\":_vm.$t(_vm.preset.name),\"description\":_vm.description || _vm.$t(_vm.preset.description),\"link\":_vm.preset.link,\"selected\":_vm.selected}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectPresetItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectPresetItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectPresetItem.vue?vue&type=template&id=79290378&scoped=true&\"\nimport script from \"./ProjectPresetItem.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectPresetItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProjectPresetItem.vue?vue&type=style&index=0&id=79290378&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"79290378\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('VueModal',{staticClass:\"medium anchor\",attrs:{\"title\":_vm.$t('org.vue.components.project-rename.title')},on:{\"close\":function($event){return _vm.$emit('close')}}},[_c('div',{staticClass:\"default-body\"},[_c('VueFormField',{attrs:{\"title\":_vm.$t('org.vue.components.project-rename.name-field.title'),\"subtitle\":_vm.$t('org.vue.components.project-rename.name-field.subtitle')}},[_c('VueInput',{directives:[{name:\"focus\",rawName:\"v-focus\"}],staticClass:\"big\",attrs:{\"icon-left\":\"folder\"},on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.rename()}},model:{value:(_vm.newName),callback:function ($$v) {_vm.newName=$$v},expression:\"newName\"}})],1)],1),_c('div',{staticClass:\"actions\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('VueButton',{staticClass:\"flat big close\",attrs:{\"label\":_vm.$t('org.vue.common.cancel')},on:{\"click\":function($event){return _vm.$emit('close')}}}),_c('VueButton',{staticClass:\"primary big\",attrs:{\"label\":_vm.$t('org.vue.components.project-rename.submit')},on:{\"click\":function($event){return _vm.rename()}}})],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectRename.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectRename.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectRename.vue?vue&type=template&id=52527046&\"\nimport script from \"./ProjectRename.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectRename.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-select page\"},[_c('StepWizard',{staticClass:\"frame\",attrs:{\"tab-id\":_vm.tab,\"title\":_vm.$route.query.hideTabs ? _vm.$t('org.vue.views.project-create.title') : _vm.$t('org.vue.views.project-select.title'),\"hide-tabs\":_vm.hideTabs},on:{\"update:tabId\":function($event){_vm.tab=$event},\"update:tab-id\":function($event){_vm.tab=$event}}},[_c('VueTab',{staticClass:\"select\",attrs:{\"id\":\"existing\",\"label\":_vm.$t('org.vue.views.project-select.tabs.projects'),\"icon\":\"storage\"}},[_c('ProjectSelectList')],1),_c('VueTab',{staticClass:\"create\",attrs:{\"id\":\"create\",\"label\":_vm.$t('org.vue.views.project-select.tabs.create'),\"icon\":\"add_box\"}},[_c('div',{staticClass:\"content\"},[_c('FolderExplorer')],1),_c('div',{staticClass:\"actions-bar center\"},[_c('VueButton',{staticClass:\"big primary create-project\",attrs:{\"icon-left\":\"add\",\"label\":_vm.$route.query.hideTabs ? _vm.$t('org.vue.views.project-create.tabs.details.form.folder.action') : _vm.$t('org.vue.views.project-select.buttons.create')},on:{\"click\":function($event){return _vm.createProject()}}})],1)]),_c('VueTab',{staticClass:\"import\",attrs:{\"id\":\"import\",\"label\":_vm.$t('org.vue.views.project-select.tabs.import'),\"icon\":\"unarchive\"}},[_c('div',{staticClass:\"content\"},[_c('FolderExplorer')],1),_c('div',{staticClass:\"actions-bar center\"},[_c('VueButton',{staticClass:\"big primary import-project\",attrs:{\"icon-left\":\"unarchive\",\"label\":_vm.$route.query.action || _vm.$t('org.vue.views.project-select.buttons.import'),\"disabled\":_vm.folderCurrent && !_vm.folderCurrent.isPackage,\"loading\":_vm.busy},on:{\"click\":function($event){return _vm.importProject()}}})],1)])],1),_c('div',{staticClass:\"top-menu left\"},[(_vm.projectCurrent)?_c('VueButton',{staticClass:\"flat icon-button\",attrs:{\"to\":{ name: 'home' },\"icon-left\":\"arrow_back\"}}):_vm._e()],1),_c('div',{staticClass:\"top-menu right\"},[_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.views.about.title')),expression:\"$t('org.vue.views.about.title')\"}],staticClass:\"flat icon-button\",attrs:{\"to\":{ name: 'about' },\"icon-left\":\"help\"}})],1),(_vm.showNoModulesModal)?_c('VueModal',{staticClass:\"small no-modules-modal\",attrs:{\"title\":_vm.$t('org.vue.views.project-select.import.no-modules.title')},on:{\"close\":function($event){_vm.showNoModulesModal = false}}},[_c('div',{staticClass:\"default-body\"},[_c('div',{staticClass:\"message\"},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.views.project-select.import.no-modules.message'))+\" \")])]),_c('div',{staticClass:\"actions center\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('VueButton',{attrs:{\"label\":_vm.$t('org.vue.views.project-select.import.force')},on:{\"click\":function($event){return _vm.importProject(true)}}}),_c('VueButton',{staticClass:\"primary\",attrs:{\"label\":_vm.$t('org.vue.views.project-select.import.no-modules.close')},on:{\"click\":function($event){_vm.showNoModulesModal = false}}})],1)]):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectSelect.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectSelect.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectSelect.vue?vue&type=template&id=017a7afe&scoped=true&\"\nimport script from \"./ProjectSelect.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectSelect.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProjectSelect.vue?vue&type=style&index=0&id=017a7afe&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"017a7afe\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-select-list\"},[_c('ApolloQuery',{attrs:{\"query\":require('@/graphql/project/projects.gql')},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar ref_result = ref.result;\nvar data = ref_result.data;\nvar loading = ref_result.loading;\nreturn [(data)?[(data.projects.length)?_c('div',[_c('div',{staticClass:\"toolbar\"},[_c('VueInput',{staticClass:\"round\",attrs:{\"icon-left\":\"search\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}})],1),_vm._l(([true, false]),function(favorite){return _c('ListFilter',{key:favorite,attrs:{\"list\":_vm.filterProjects(data.projects),\"filter\":function (item) { return !!item.favorite === favorite; }},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar list = ref.list;\nreturn [(data.projects.find(function (item) { return item.favorite; }))?_c('div',{staticClass:\"cta-text\",class:favorite ? 'favorite' : 'other'},[_vm._v(\" \"+_vm._s(_vm.$t((\"org.vue.components.project-select-list.titles.\" + (favorite ? 'favorite' : 'other'))))+\" \")]):_vm._e(),_c('ListSort',{attrs:{\"list\":list,\"compare\":_vm.compareProjects},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar list = ref.list;\nreturn _vm._l((list),function(project){return _c('ProjectSelectListItem',{key:project.id,class:{\n open: _vm.projectCurrent && _vm.projectCurrent.id === project.id\n },attrs:{\"project\":project},on:{\"remove\":function($event){return _vm.removeProject(project)},\"favorite\":function($event){return _vm.toggleFavorite(project)}},nativeOn:{\"click\":function($event){return _vm.openProject(project)}}})})}}],null,true)})]}}],null,true)})})],2):_c('div',{staticClass:\"vue-ui-empty\"},[_c('VueIcon',{staticClass:\"empty-icon\",attrs:{\"icon\":\"attach_file\"}}),_c('div',[_vm._v(_vm._s(_vm.$t('org.vue.components.project-select-list.empty')))])],1)]:(loading)?_c('VueLoadingIndicator',{staticClass:\"overlay\"}):_vm._e()]}}])})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectSelectList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectSelectList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectSelectList.vue?vue&type=template&id=7fe81cfe&scoped=true&\"\nimport script from \"./ProjectSelectList.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectSelectList.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProjectSelectList.vue?vue&type=style&index=0&id=7fe81cfe&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7fe81cfe\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-select-list-item list-item\"},[_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"favorite\"},[_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.project-select-list-item.tooltips.favorite')),expression:\"$t('org.vue.components.project-select-list-item.tooltips.favorite')\"}],staticClass:\"icon-button\",attrs:{\"icon-left\":_vm.project.favorite ? 'star' : 'star_border',\"data-testid\":\"favorite-button\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.$emit('favorite')}}})],1),_c('div',{staticClass:\"info\"},[_c('ListItemInfo',{attrs:{\"description\":_vm.project.path}},[_c('div',{staticClass:\"name\",attrs:{\"slot\":\"name\"},slot:\"name\"},[_c('span',[_vm._v(_vm._s(_vm.project.name))]),_c('ProjectTasksDropdown',{staticClass:\"bullet-menu\",attrs:{\"tasks\":_vm.project.tasks}})],1)])],1),_c('div',{staticClass:\"actions\"},[_c('VueButton',{attrs:{\"icon-left\":\"open_in_browser\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.openInEditor()}}},[_vm._v(\" \"+_vm._s(_vm.$t('org.vue.components.project-select-list-item.tooltips.open-in-editor'))+\" \")]),(_vm.project.homepage)?_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.top-bar.homepage')),expression:\"$t('org.vue.components.top-bar.homepage')\"}],staticClass:\"icon-button\",attrs:{\"href\":_vm.project.homepage,\"target\":\"_blank\",\"icon-left\":\"open_in_new\"},on:{\"click\":function($event){$event.stopPropagation();}}}):_vm._e(),_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.project-rename.title')),expression:\"$t('org.vue.components.project-rename.title')\"}],staticClass:\"icon-button\",attrs:{\"icon-left\":\"edit\"},on:{\"click\":function($event){$event.stopPropagation();_vm.showRename = true}}}),_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.project-select-list-item.tooltips.delete')),expression:\"$t('org.vue.components.project-select-list-item.tooltips.delete')\"}],staticClass:\"icon-button\",attrs:{\"icon-left\":\"close\",\"data-testid\":\"delete-button\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.$emit('remove')}}})],1)]),(_vm.showRename)?_c('ProjectRename',{attrs:{\"project\":_vm.project},on:{\"close\":function($event){_vm.showRename = false}},nativeOn:{\"click\":function($event){$event.stopPropagation();}}}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectSelectListItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectSelectListItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectSelectListItem.vue?vue&type=template&id=1bbc1c3c&scoped=true&\"\nimport script from \"./ProjectSelectListItem.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectSelectListItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProjectSelectListItem.vue?vue&type=style&index=0&id=1bbc1c3c&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1bbc1c3c\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('VueDropdown',{staticClass:\"project-tasks-dropdown\",attrs:{\"placement\":\"right\"},nativeOn:{\"click\":function($event){$event.preventDefault();$event.stopPropagation();}}},[_c('div',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.countPerStatus.running ? _vm.$t('org.vue.components.project-tasks-dropdown.tooltips.running-tasks', { count: _vm.countPerStatus.running }) : _vm.$t('org.vue.components.project-tasks-dropdown.tooltips.tasks')),expression:\"countPerStatus.running ? $t('org.vue.components.project-tasks-dropdown.tooltips.running-tasks', { count: countPerStatus.running }) : $t('org.vue.components.project-tasks-dropdown.tooltips.tasks')\"}],staticClass:\"menu-trigger\",class:_vm.bulletClass,attrs:{\"slot\":\"trigger\"},slot:\"trigger\"},[_c('div',{staticClass:\"bullet\"})]),_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"pane-toolbar\"},[_c('VueIcon',{attrs:{\"icon\":\"assignment\"}}),_c('div',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.$t('org.vue.components.project-tasks-dropdown.tooltips.tasks')))]),_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.logger-view.buttons.close')),expression:\"$t('org.vue.components.logger-view.buttons.close')\"},{name:\"close-popover\",rawName:\"v-close-popover\"}],staticClass:\"icon-button flat\",attrs:{\"icon-left\":\"close\"}})],1),_c('div',{staticClass:\"tasks\"},[_vm._l((_vm.tasks),function(task){return _c('TaskItem',{key:task.id,attrs:{\"task\":task},nativeOn:{\"click\":function($event){return _vm.openTask(task)}}},[(task.status !== 'running')?_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.views.project-task-details.actions.play')),expression:\"$t('org.vue.views.project-task-details.actions.play')\"}],staticClass:\"icon-button\",attrs:{\"icon-left\":\"play_arrow\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.openTask(task, true)}}}):_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.views.project-task-details.actions.stop')),expression:\"$t('org.vue.views.project-task-details.actions.stop')\"}],staticClass:\"icon-button\",attrs:{\"icon-left\":\"stop\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.stopTask(task)}}})],1)}),(_vm.loading)?_c('VueLoadingIndicator',{staticClass:\"overlay\"}):_vm._e()],2)])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectTasksDropdown.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectTasksDropdown.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectTasksDropdown.vue?vue&type=template&id=7a5ea0e6&scoped=true&\"\nimport script from \"./ProjectTasksDropdown.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectTasksDropdown.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProjectTasksDropdown.vue?vue&type=style&index=0&id=7a5ea0e6&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7a5ea0e6\",\n null\n \n)\n\nexport default component.exports","var render, staticRenderFns\nimport script from \"./Prompt.vue?vue&type=script&lang=js&\"\nexport * from \"./Prompt.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Prompt.vue?vue&type=style&index=0&lang=stylus&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Prompt.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./Prompt.vue?vue&type=script&lang=js&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('VueDisable',{staticClass:\"prompt prompt-checkbox\",attrs:{\"disabled\":!_vm.prompt.enabled}},[_c('div',{staticClass:\"prompt-content\"},[_c('ListItemInfo',{attrs:{\"name\":_vm.$t(_vm.prompt.message),\"description\":_vm.$t(_vm.prompt.description),\"link\":_vm.prompt.link}}),_vm._l((_vm.prompt.choices),function(choice,index){return _c('VueSwitch',{key:index,staticClass:\"right\",attrs:{\"value\":_vm.isCheckboxSelected(choice),\"disabled\":choice.disabled},on:{\"update\":function (value) { return _vm.asnwerCheckbox(choice, value); }}},[_vm._v(\" \"+_vm._s(_vm.$t(choice.name))+\" \")])})],2),_c('PromptError',{attrs:{\"error\":_vm.prompt.error}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./PromptCheckbox.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./PromptCheckbox.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PromptCheckbox.vue?vue&type=template&id=814eceb6&scoped=true&\"\nimport script from \"./PromptCheckbox.vue?vue&type=script&lang=js&\"\nexport * from \"./PromptCheckbox.vue?vue&type=script&lang=js&\"\nimport style0 from \"./PromptCheckbox.vue?vue&type=style&index=0&id=814eceb6&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"814eceb6\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('VueDisable',{staticClass:\"prompt prompt-color\",attrs:{\"disabled\":!_vm.prompt.enabled}},[_c('div',{staticClass:\"prompt-content\"},[_c('ListItemInfo',{attrs:{\"name\":_vm.$t(_vm.prompt.message),\"description\":_vm.$t(_vm.prompt.description),\"link\":_vm.prompt.link}}),_c('VueDropdown',{staticClass:\"prompt-input\"},[_c('VueInput',{attrs:{\"slot\":\"trigger\",\"value\":_vm.value(_vm.prompt.value)},on:{\"update\":function (value) { return _vm.answer(value); }},slot:\"trigger\"},[_c('div',{staticClass:\"color-preview\",attrs:{\"slot\":\"right\"},slot:\"right\"},[_c('div',{staticClass:\"color-swatch\",style:({\n backgroundColor: _vm.value(_vm.prompt.value)\n })})])]),_c('ColorPicker',{staticClass:\"color-picker\",attrs:{\"value\":_vm.value(_vm.prompt.value)},on:{\"input\":function (value) { return _vm.answer(value.hex); }}})],1)],1),_c('PromptError',{attrs:{\"error\":_vm.prompt.error}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./PromptColor.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./PromptColor.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PromptColor.vue?vue&type=template&id=17ce3a2a&scoped=true&\"\nimport script from \"./PromptColor.vue?vue&type=script&lang=js&\"\nexport * from \"./PromptColor.vue?vue&type=script&lang=js&\"\nimport style0 from \"./PromptColor.vue?vue&type=style&index=0&id=17ce3a2a&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"17ce3a2a\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('VueDisable',{staticClass:\"prompt prompt-confirm\",attrs:{\"disabled\":!_vm.prompt.enabled}},[_c('VueSwitch',{staticClass:\"extend-left\",attrs:{\"value\":_vm.value(_vm.prompt.value)},on:{\"update\":function (value) { return _vm.answer(value); }}},[_c('ListItemInfo',{attrs:{\"name\":_vm.$t(_vm.prompt.message),\"description\":_vm.$t(_vm.prompt.description),\"link\":_vm.prompt.link}})],1),_c('PromptError',{attrs:{\"error\":_vm.prompt.error}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./PromptConfirm.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./PromptConfirm.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PromptConfirm.vue?vue&type=template&id=01a5ec3e&scoped=true&\"\nimport script from \"./PromptConfirm.vue?vue&type=script&lang=js&\"\nexport * from \"./PromptConfirm.vue?vue&type=script&lang=js&\"\nimport style0 from \"./PromptConfirm.vue?vue&type=style&index=0&id=01a5ec3e&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"01a5ec3e\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('VueDisable',{staticClass:\"prompt prompt-editor\",attrs:{\"disabled\":!_vm.prompt.enabled}},[_c('div',{staticClass:\"prompt-content vertical\"},[_c('ListItemInfo',{attrs:{\"name\":_vm.$t(_vm.prompt.message),\"description\":_vm.$t(_vm.prompt.description),\"link\":_vm.prompt.link}}),_c('div',{staticClass:\"prompt-input\"},[_c('VueInput',{attrs:{\"value\":_vm.value(_vm.prompt.value),\"type\":\"textarea\"},on:{\"update\":function (value) { return _vm.answer(value); }}})],1)],1),_c('PromptError',{attrs:{\"error\":_vm.prompt.error}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./PromptEditor.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./PromptEditor.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PromptEditor.vue?vue&type=template&id=4434277c&scoped=true&\"\nimport script from \"./PromptEditor.vue?vue&type=script&lang=js&\"\nexport * from \"./PromptEditor.vue?vue&type=script&lang=js&\"\nimport style0 from \"./PromptEditor.vue?vue&type=style&index=0&id=4434277c&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4434277c\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.error)?_c('div',{staticClass:\"prompt-error\"},[_c('div',{staticClass:\"vue-ui-text danger banner\"},[_c('VueIcon',{staticClass:\"big\",attrs:{\"icon\":\"warning\"}}),_c('span',[_vm._v(_vm._s(_vm.$t(_vm.error.message)))])],1)]):_vm._e()}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./PromptError.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./PromptError.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PromptError.vue?vue&type=template&id=34f8cb1e&scoped=true&\"\nimport script from \"./PromptError.vue?vue&type=script&lang=js&\"\nexport * from \"./PromptError.vue?vue&type=script&lang=js&\"\nimport style0 from \"./PromptError.vue?vue&type=style&index=0&id=34f8cb1e&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"34f8cb1e\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('VueDisable',{staticClass:\"prompt prompt-input\",attrs:{\"disabled\":!_vm.prompt.enabled}},[_c('div',{staticClass:\"prompt-content\"},[_c('ListItemInfo',{attrs:{\"name\":_vm.$t(_vm.prompt.message),\"description\":_vm.$t(_vm.prompt.description),\"link\":_vm.prompt.link}}),_c('div',{staticClass:\"prompt-input\"},[_c('VueInput',{attrs:{\"value\":_vm.value(_vm.prompt.value),\"type\":_vm.prompt.type === 'password' ? 'password' : 'text'},on:{\"update\":function (value) { return _vm.answer(value); }}})],1)],1),_c('PromptError',{attrs:{\"error\":_vm.prompt.error}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./PromptInput.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./PromptInput.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PromptInput.vue?vue&type=template&id=266a40a9&\"\nimport script from \"./PromptInput.vue?vue&type=script&lang=js&\"\nexport * from \"./PromptInput.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('VueDisable',{staticClass:\"prompt prompt-list\",attrs:{\"disabled\":!_vm.prompt.enabled}},[_c('div',{staticClass:\"prompt-content\"},[_c('ListItemInfo',{attrs:{\"name\":_vm.$t(_vm.prompt.message),\"description\":_vm.$t(_vm.prompt.description),\"link\":_vm.prompt.link}}),_c('div',{staticClass:\"prompt-input\"},[_c('VueSelect',{attrs:{\"value\":_vm.value(_vm.prompt.value)},on:{\"update\":function (value) { return _vm.answer(value); }}},_vm._l((_vm.prompt.choices),function(choice,index){return _c('VueSelectButton',{key:index,attrs:{\"value\":_vm.value(choice.value),\"label\":_vm.generateLabel(choice)}})}),1)],1)],1),_c('PromptError',{attrs:{\"error\":_vm.prompt.error}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./PromptList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./PromptList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PromptList.vue?vue&type=template&id=7a4e48fc&\"\nimport script from \"./PromptList.vue?vue&type=script&lang=js&\"\nexport * from \"./PromptList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"prompts-list\"},[_c('div',{staticClass:\"content\"},[_vm._l((_vm.groups),function(group){return _c('div',{key:group.id,staticClass:\"group\"},[(group.id)?_c('div',{staticClass:\"group-name\"},[_vm._v(_vm._s(_vm.$t(group.id)))]):_vm._e(),_vm._l((group.prompts),function(prompt){return [(prompt.visible)?_c(_vm.getModule(prompt),{key:prompt.id,tag:\"component\",attrs:{\"prompt\":prompt},on:{\"answer\":function (value) { return _vm.$emit('answer', { prompt: prompt, value: value }); }}}):_vm._e()]})],2)}),(!_vm.prompts.length)?_c('div',{staticClass:\"vue-ui-empty\"},[_c('VueIcon',{staticClass:\"empty-icon\",attrs:{\"icon\":\"check_circle\"}}),_c('span',[_vm._v(_vm._s(_vm.$t('org.vue.components.prompts-list.empty')))])],1):_vm._e()],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./PromptsList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./PromptsList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./PromptsList.vue?vue&type=template&id=678b61da&scoped=true&\"\nimport script from \"./PromptsList.vue?vue&type=script&lang=js&\"\nexport * from \"./PromptsList.vue?vue&type=script&lang=js&\"\nimport style0 from \"./PromptsList.vue?vue&type=style&index=0&id=678b61da&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"678b61da\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"instant-search-input\"},[_c('VueInput',{ref:\"input\",staticClass:\"big\",attrs:{\"icon-left\":\"search\",\"placeholder\":_vm.placeholder},model:{value:(_vm.query),callback:function ($$v) {_vm.query=$$v},expression:\"query\"}},[_c('template',{slot:\"right\"},[_c('VueButton',{staticClass:\"icon-button flat\",attrs:{\"icon-left\":\"clear\"},on:{\"click\":function($event){return _vm.clear()}}})],1)],2)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./InstantSearchInput.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./InstantSearchInput.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./InstantSearchInput.vue?vue&type=template&id=615eeb16&scoped=true&\"\nimport script from \"./InstantSearchInput.vue?vue&type=script&lang=js&\"\nexport * from \"./InstantSearchInput.vue?vue&type=script&lang=js&\"\nimport style0 from \"./InstantSearchInput.vue?vue&type=style&index=0&id=615eeb16&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"615eeb16\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.totalResults > 0),expression:\"totalResults > 0\"}],staticClass:\"instant-search-pagination\"},[_c('div',{staticClass:\"content\"},[_c('VueButton',{staticClass:\"icon-button\",attrs:{\"icon-left\":\"first_page\",\"disabled\":_vm.page === 1},on:{\"click\":function($event){return _vm.goToFirstPage()}}}),_c('VueButton',{staticClass:\"icon-button\",attrs:{\"icon-left\":\"chevron_left\",\"disabled\":_vm.page === 1},on:{\"click\":function($event){return _vm.goToPreviousPage()}}}),_vm._l((_vm.pages),function(item){return _c('VueButton',{key:item,staticClass:\"icon-button\",class:{\n primary: _vm.page === item\n },attrs:{\"label\":item.toString()},on:{\"click\":function($event){return _vm.goToPage(item)}}})}),_c('VueButton',{staticClass:\"icon-button\",attrs:{\"icon-left\":\"chevron_right\",\"disabled\":_vm.page >= _vm.totalPages},on:{\"click\":function($event){return _vm.goToNextPage()}}}),_c('VueButton',{staticClass:\"icon-button\",attrs:{\"icon-left\":\"last_page\",\"disabled\":_vm.page >= _vm.totalPages},on:{\"click\":function($event){return _vm.goToLastPage()}}})],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./InstantSearchPagination.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./InstantSearchPagination.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./InstantSearchPagination.vue?vue&type=template&id=43c44150&scoped=true&\"\nimport script from \"./InstantSearchPagination.vue?vue&type=script&lang=js&\"\nexport * from \"./InstantSearchPagination.vue?vue&type=script&lang=js&\"\nimport style0 from \"./InstantSearchPagination.vue?vue&type=style&index=0&id=43c44150&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"43c44150\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ApolloQuery',{staticClass:\"suggestion-bar\",attrs:{\"query\":require('@/graphql/suggestion/suggestions.gql')},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar data = ref.result.data;\nreturn (data)?[_c('SuggestionBarList',{attrs:{\"suggestions\":_vm.withBuiltins(data.suggestions)}})]:undefined}}],null,true)},[_c('ApolloSubscribeToMore',{attrs:{\"document\":require('@/graphql/suggestion/suggestionAdded.gql'),\"updateQuery\":function (previousResult, ref) {\n var subscriptionData = ref.subscriptionData;\n\n var newSuggestion = subscriptionData.data.suggestionAdded\n if (!previousResult.suggestions) {\n return {\n suggestions: [newSuggestion]\n }\n }\n if (previousResult.suggestions.find(function (s) { return s.id === newSuggestion.id; })) {\n return previousResult\n }\n return {\n suggestions: previousResult.suggestions.concat( [newSuggestion]\n )\n }\n }}}),_c('ApolloSubscribeToMore',{attrs:{\"document\":require('@/graphql/suggestion/suggestionUpdated.gql')}}),_c('ApolloSubscribeToMore',{attrs:{\"document\":require('@/graphql/suggestion/suggestionRemoved.gql'),\"updateQuery\":function (previousResult, ref) {\n var subscriptionData = ref.subscriptionData;\n\n return ({\n suggestions: previousResult.suggestions ? previousResult.suggestions.filter(\n function (s) { return s.id !== subscriptionData.data.suggestionRemoved.id; }\n ) : []\n });\n}}})],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SuggestionBar.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SuggestionBar.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SuggestionBar.vue?vue&type=template&id=6db62ce8&scoped=true&\"\nimport script from \"./SuggestionBar.vue?vue&type=script&lang=js&\"\nexport * from \"./SuggestionBar.vue?vue&type=script&lang=js&\"\nimport style0 from \"./SuggestionBar.vue?vue&type=style&index=0&id=6db62ce8&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"6db62ce8\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"set-size\",rawName:\"v-set-size\",value:('.wrapper'),expression:\"'.wrapper'\"}],staticClass:\"suggestion-bar-item\",class:{\n ping: _vm.ping\n },style:({\n animationDelay: ((_vm.index * .5 + 1.5) + \"s\")\n })},[_c('div',{staticClass:\"wrapper\"},[_c('VueDropdown',{staticClass:\"dropdown\",attrs:{\"disabled\":!_vm.suggestion.message && !_vm.suggestion.link,\"placement\":\"bottom-end\"}},[_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.components.suggestion-bar.suggestion')),expression:\"$t('org.vue.components.suggestion-bar.suggestion')\"}],staticClass:\"round\",attrs:{\"slot\":\"trigger\",\"label\":_vm.$t(_vm.suggestion.label),\"loading\":_vm.suggestion.busy},on:{\"click\":function($event){return _vm.onTriggerClick()}},slot:\"trigger\"}),_c('div',{staticClass:\"suggestion-details\"},[_c('div',{staticClass:\"info label\"},[_vm._v(\" \"+_vm._s(_vm.$t(_vm.suggestion.label))+\" \")]),(_vm.suggestion.message)?_c('div',{staticClass:\"info message\",domProps:{\"innerHTML\":_vm._s(_vm.$t(_vm.suggestion.message))}}):_vm._e(),(_vm.suggestion.image)?_c('div',{staticClass:\"info image\"},[_c('img',{attrs:{\"src\":_vm.image,\"alt\":\"image\"}})]):_vm._e(),_c('div',{staticClass:\"actions-bar\"},[(_vm.suggestion.link)?_c('VueButton',{staticClass:\"flat\",attrs:{\"href\":_vm.suggestion.link,\"label\":_vm.$t('org.vue.components.list-item-info.more-info'),\"target\":\"_blank\",\"icon-right\":\"open_in_new\"}}):_vm._e(),_c('div',{staticClass:\"vue-ui-spacer\"}),_c('VueButton',{directives:[{name:\"close-popover\",rawName:\"v-close-popover\"}],attrs:{\"label\":_vm.$t('org.vue.components.suggestion-bar.modal.cancel'),\"icon-left\":\"close\"}}),_c('VueButton',{directives:[{name:\"close-popover\",rawName:\"v-close-popover\"}],staticClass:\"primary\",attrs:{\"label\":_vm.$t('org.vue.components.suggestion-bar.modal.continue'),\"icon-left\":\"done\"},on:{\"click\":function($event){return _vm.activate(_vm.suggestion)}}})],1)])],1)],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SuggestionBarItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SuggestionBarItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SuggestionBarItem.vue?vue&type=template&id=624b111e&scoped=true&\"\nimport script from \"./SuggestionBarItem.vue?vue&type=script&lang=js&\"\nexport * from \"./SuggestionBarItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./SuggestionBarItem.vue?vue&type=style&index=0&id=624b111e&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"624b111e\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition-group',{staticClass:\"suggestions\",attrs:{\"name\":\"suggestion\"}},_vm._l((_vm.suggestions),function(suggestion,index){return _c('SuggestionBarItem',{key:((_vm.$i18n.locale) + \":\" + (suggestion.id)),attrs:{\"suggestion\":suggestion,\"index\":_vm.suggestions.length - index - 1,\"ping\":\"\"}})}),1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SuggestionBarList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./SuggestionBarList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./SuggestionBarList.vue?vue&type=template&id=58e26f9f&\"\nimport script from \"./SuggestionBarList.vue?vue&type=script&lang=js&\"\nexport * from \"./SuggestionBarList.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-task-details\"},[(_vm.task)?[_c('div',{staticClass:\"header\"},[_c('VueIcon',{staticClass:\"task-icon big\",attrs:{\"icon\":\"assignment\"}}),_c('div',{staticClass:\"name\"},[_vm._v(_vm._s(_vm.task.name))]),_c('div',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t(_vm.task.description)),expression:\"$t(task.description)\"}],staticClass:\"description\"},[_vm._v(\" \"+_vm._s(_vm.$t(_vm.task.description))+\" \")]),_c('div',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(((_vm.$t('org.vue.views.project-task-details.command')) + \":
\" + (_vm.task.command) + \"\")),expression:\"`${$t('org.vue.views.project-task-details.command')}:
${task.command}`\"}],staticClass:\"command\"},[_vm._v(\" \"+_vm._s(_vm.task.command)+\" \")])],1),_c('div',{staticClass:\"actions-bar\"},[_c('div',{staticClass:\"main-actions\"},[(_vm.task.status !== 'running')?_c('VueButton',{staticClass:\"primary\",attrs:{\"icon-left\":\"play_arrow\",\"label\":_vm.$t('org.vue.views.project-task-details.actions.play'),\"data-testid\":\"run-task\"},on:{\"click\":function($event){return _vm.runTask()}}}):_c('VueButton',{staticClass:\"primary\",attrs:{\"icon-left\":\"stop\",\"label\":_vm.$t('org.vue.views.project-task-details.actions.stop'),\"data-testid\":\"stop-task\"},on:{\"click\":function($event){return _vm.stopTask()}}}),_c('VueButton',{attrs:{\"slot\":\"trigger\",\"icon-left\":\"settings\",\"disabled\":_vm.task.status === 'running',\"label\":_vm.$t('org.vue.views.project-task-details.parameters')},on:{\"click\":function($event){_vm.showParameters = true}},slot:\"trigger\"}),(_vm.task.link)?_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.views.project-task-details.more-info')),expression:\"$t('org.vue.views.project-task-details.more-info')\"}],staticClass:\"icon-button\",attrs:{\"href\":_vm.task.link,\"target\":\"_blank\",\"icon-left\":\"open_in_new\"}}):_vm._e()],1),(_vm.task.views.length)?_c('VueGroup',{staticClass:\"views\",model:{value:(_vm.currentView),callback:function ($$v) {_vm.currentView=$$v},expression:\"currentView\"}},[_c('VueGroupButton',{attrs:{\"label\":_vm.$t('org.vue.views.project-task-details.output'),\"icon-left\":\"dvr\",\"value\":\"_output\"}}),_vm._l((_vm.task.views),function(view){return _c('VueGroupButton',{key:view.id,attrs:{\"value\":view.id,\"icon-left\":view.icon,\"label\":_vm.$t(view.label)}})})],2):_vm._e()],1),(!_vm.defer(3))?_c('div',{staticClass:\"content placeholder-content\"},[_c('div',{staticClass:\"view card\"})]):_c('div',{staticClass:\"content\"},[_c('TerminalView',{key:_vm.id,ref:\"terminal\",class:{\n ghost: _vm.currentView !== '_output'\n },attrs:{\"cols\":100,\"rows\":24,\"auto-size\":\"\",\"options\":{\n scrollback: 5000,\n disableStdin: true,\n useFlowControl: true\n },\"title\":_vm.$t('org.vue.views.project-task-details.output'),\"toolbar\":\"\",\"open-links\":\"\"},on:{\"clear\":function($event){return _vm.clearLogs()}}}),(_vm.currentView !== '_output')?_c('ClientAddonComponent',{key:_vm.currentView,staticClass:\"view\",attrs:{\"name\":_vm.currentViewComponent}}):_vm._e()],1)]:_vm._e(),(_vm.showParameters)?_c('VueModal',{staticClass:\"medium anchor\",attrs:{\"title\":_vm.$t('org.vue.views.project-task-details.parameters')},on:{\"close\":function($event){return _vm.restoreParameters()}}},[_c('div',{staticClass:\"default-body\"},[_c('PromptsList',{attrs:{\"prompts\":_vm.visiblePrompts},on:{\"answer\":_vm.answerPrompt}})],1),_c('div',{staticClass:\"actions\",attrs:{\"slot\":\"footer\"},slot:\"footer\"},[_c('VueButton',{staticClass:\"primary big\",attrs:{\"label\":_vm.$t('org.vue.views.project-task-details.actions.save')},on:{\"click\":function($event){return _vm.saveParameters()}}})],1)]):_vm._e()],2)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export default function (count = 10) {\n // @vue/component\n return {\n data () {\n return {\n displayPriority: 0\n }\n },\n\n mounted () {\n this.runDisplayPriority()\n },\n\n methods: {\n runDisplayPriority () {\n this.displayPriority = 0\n const step = () => {\n requestAnimationFrame(() => {\n this.displayPriority++\n if (this.displayPriority < count) {\n step()\n }\n })\n }\n step()\n },\n\n defer (priority) {\n return this.displayPriority >= priority\n }\n }\n }\n}\n","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectTaskDetails.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectTaskDetails.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectTaskDetails.vue?vue&type=template&id=074b7efc&scoped=true&\"\nimport script from \"./ProjectTaskDetails.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectTaskDetails.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProjectTaskDetails.vue?vue&type=style&index=0&id=074b7efc&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"074b7efc\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-tasks page\"},[_c('ContentView',{attrs:{\"title\":_vm.$t('org.vue.views.project-tasks.title')}},[_c('ApolloQuery',{ref:\"tasks\",staticClass:\"fill-height\",attrs:{\"query\":require('@/graphql/task/tasks.gql')},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar ref_result = ref.result;\nvar data = ref_result.data;\nvar loading = ref_result.loading;\nreturn [(loading && (!data || !data.tasks))?_c('VueLoadingIndicator',{staticClass:\"overlay\"}):(data)?_c('NavContent',{staticClass:\"tasks\",attrs:{\"items\":_vm.generateItems(data.tasks)},scopedSlots:_vm._u([{key:\"default\",fn:function(ref){\nvar item = ref.item;\nvar selected = ref.selected;\nreturn _c('TaskItem',{attrs:{\"task\":item.task,\"selected\":selected}})}}],null,true)},[_c('div',{staticClass:\"list-header\",attrs:{\"slot\":\"before\"},slot:\"before\"},[_c('VueInput',{staticClass:\"search round\",attrs:{\"icon-left\":\"search\"},model:{value:(_vm.search),callback:function ($$v) {_vm.search=$$v},expression:\"search\"}}),_c('VueButton',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.$t('org.vue.views.project-tasks.refresh')),expression:\"$t('org.vue.views.project-tasks.refresh')\"}],staticClass:\"icon-button flat\",attrs:{\"icon-left\":\"refresh\"},on:{\"click\":function($event){return _vm.refresh()}}})],1)]):_vm._e()]}}])})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectTasks.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ProjectTasks.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ProjectTasks.vue?vue&type=template&id=492ec4a6&scoped=true&\"\nimport script from \"./ProjectTasks.vue?vue&type=script&lang=js&\"\nexport * from \"./ProjectTasks.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ProjectTasks.vue?vue&type=style&index=0&id=492ec4a6&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"492ec4a6\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"tooltip\",rawName:\"v-tooltip.right\",value:(_vm.description),expression:\"description\",modifiers:{\"right\":true}}],staticClass:\"task-item list-item\",class:[\n (\"status-\" + (_vm.task.status)),\n {\n selected: _vm.selected\n }\n ],on:{\"dblclick\":function($event){return _vm.runTask()}}},[_c('div',{staticClass:\"content\"},[_c('ItemLogo',{directives:[{name:\"tooltip\",rawName:\"v-tooltip\",value:(_vm.status),expression:\"status\"}],class:_vm.iconData.class,attrs:{\"image\":_vm.logo ? (_vm.logo + \"?project=\" + (_vm.task.project.id)) : _vm.iconData.icon,\"color-bullet\":\"\"}}),_c('ListItemInfo',{attrs:{\"name\":_vm.task.name,\"description\":_vm.description,\"selected\":_vm.selected}}),_vm._t(\"default\")],2)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./TaskItem.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./TaskItem.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./TaskItem.vue?vue&type=template&id=7f8de00b&scoped=true&\"\nimport script from \"./TaskItem.vue?vue&type=script&lang=js&\"\nexport * from \"./TaskItem.vue?vue&type=script&lang=js&\"\nimport style0 from \"./TaskItem.vue?vue&type=style&index=0&id=7f8de00b&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7f8de00b\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"view-badge\",class:[\n (\"type-\" + (_vm.badge.type))\n ]},[_c('div',{staticClass:\"content\"},[_c('div',{staticClass:\"counter\"},[_vm._v(_vm._s(_vm.badge.count))]),_c('div',{staticClass:\"label\"},[_vm._v(_vm._s(_vm.$t(_vm.badge.label)))])])])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ViewBadge.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ViewBadge.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ViewBadge.vue?vue&type=template&id=3c51b48c&scoped=true&\"\nimport script from \"./ViewBadge.vue?vue&type=script&lang=js&\"\nexport * from \"./ViewBadge.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ViewBadge.vue?vue&type=style&index=0&id=3c51b48c&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3c51b48c\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-nav\",class:{\n wide: _vm.$responsive.wide\n }},[_c('div',{staticClass:\"header\"},[_c('ProjectQuickDropdown')],1),_c('div',{staticClass:\"content\"},[_c('VueGroup',{staticClass:\"vertical small-indicator left-indicator primary\",attrs:{\"indicator\":\"\"},model:{value:(_vm.currentViewName),callback:function ($$v) {_vm.currentViewName=$$v},expression:\"currentViewName\"}},[_vm._l((_vm.views),function(view){return [(_vm.hasProjectType(view))?_c('ViewNavButton',{key:view.id,attrs:{\"view\":view}}):_vm._e()]})],2),_c('ViewNavMore')],1)])}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ViewNav.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ViewNav.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ViewNav.vue?vue&type=template&id=38f637c7&scoped=true&\"\nimport script from \"./ViewNav.vue?vue&type=script&lang=js&\"\nexport * from \"./ViewNav.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ViewNav.vue?vue&type=style&index=0&id=38f637c7&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"38f637c7\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-nav-button\"},[_c('v-tooltip',{staticClass:\"force-tooltip\",attrs:{\"trigger\":\"hover\",\"handle-resize\":\"\",\"placement\":\"right\",\"offset\":[0, 4],\"delay\":{ show: 300, hide: 0 }}},[_c('VueGroupButton',{staticClass:\"flat big\",class:{\n 'icon-button': !_vm.$responsive.wide,\n 'has-image-icon': _vm.imageIcon,\n 'default-plugin-icon': _vm.defaultPluginIcon\n },attrs:{\"value\":_vm.view.name,\"icon-left\":!_vm.imageIcon ? _vm.view.icon : null}},[(_vm.imageIcon)?_c('img',{staticClass:\"image-icon\",attrs:{\"src\":_vm.icon}}):_vm._e(),(_vm.$responsive.wide)?_c('span',{staticClass:\"label\"},[_vm._v(_vm._s(_vm.$t(_vm.view.tooltip)))]):_vm._e()]),_c('template',{slot:\"popper\"},[_c('div',{staticClass:\"title\"},[_vm._v(_vm._s(_vm.$t(_vm.view.tooltip)))]),(_vm.badges.length)?_c('div',{staticClass:\"badges\"},_vm._l((_vm.badges),function(badge){return _c('ViewBadge',{key:badge.id,attrs:{\"badge\":badge}})}),1):_vm._e()])],2),(_vm.firstNotHiddenBadge)?_c('div',{staticClass:\"bullet\",class:[\n (\"type-\" + (_vm.firstNotHiddenBadge.type))\n ]}):_vm._e()],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ViewNavButton.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./ViewNavButton.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ViewNavButton.vue?vue&type=template&id=4a3e22ee&scoped=true&\"\nimport script from \"./ViewNavButton.vue?vue&type=script&lang=js&\"\nexport * from \"./ViewNavButton.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ViewNavButton.vue?vue&type=style&index=0&id=4a3e22ee&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"4a3e22ee\",\n null\n \n)\n\nexport default component.exports","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"project-nav-more\"},[_c('VueDropdown',{attrs:{\"placement\":\"right-end\"}},[_c('VueButton',{staticClass:\"big flat\",class:{\n 'icon-button': !_vm.$responsive.wide\n },attrs:{\"slot\":\"trigger\",\"icon-left\":\"more_horiz\"},slot:\"trigger\"},[(_vm.$responsive.wide)?_c('span',{staticClass:\"label\"},[_vm._v(_vm._s(_vm.$t('org.vue.components.project-nav.tooltips.more')))]):_vm._e()]),_c('VueDropdownButton',{attrs:{\"icon-left\":\"home\",\"to\":{ name: 'project-select' },\"label\":_vm.$t('org.vue.views.project-select.title')}}),_c('VueDropdownButton',{attrs:{\"icon-left\":\"info\",\"to\":{ name: 'about' },\"label\":_vm.$t('org.vue.views.about.title')}})],1)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { render, staticRenderFns } from \"./ViewNavMore.vue?vue&type=template&id=2251f1b8&scoped=true&\"\nvar script = {}\nimport style0 from \"./ViewNavMore.vue?vue&type=style&index=0&id=2251f1b8&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"2251f1b8\",\n null\n \n)\n\nexport default component.exports","import Vue from 'vue'\nimport VueI18n from 'vue-i18n'\nimport deepmerge from 'deepmerge'\nimport VueTimeago, { createTimeago } from 'vue-timeago'\n\nVue.use(VueI18n)\n\nVue.use(VueTimeago, {\n name: 'VueTimeago',\n locale: 'en'\n})\n\nfunction detectLanguage () {\n try {\n const lang = (window.navigator.languages && window.navigator.languages[0]) ||\n window.navigator.language ||\n window.navigator.userLanguage\n return [lang, lang.toLowerCase(), lang.substr(0, 2)].map(lang => lang.replace('-', '_'))\n } catch (e) {\n return undefined\n }\n}\n\nasync function autoInstallLocale (lang) {\n try {\n const response = await fetch(`https://unpkg.com/vue-cli-locales/locales/${lang}.json`)\n if (response.ok) {\n const data = await response.json()\n mergeLocale(lang, data)\n return true\n }\n } catch (e) {}\n return false\n}\n\nasync function autoDetect () {\n const codes = detectLanguage()\n if (codes && codes[0].indexOf('en') === -1) {\n let ok = false\n let previousCode\n for (const code of codes) {\n if (code === previousCode) continue\n previousCode = code\n ok = await tryAutoLang(code)\n if (ok) break\n }\n\n if (!ok) {\n console.log(`[UI] No locale data was found for your locale ${codes[0]}.`)\n }\n\n let dateFnsLocale = i18n.locale\n if (dateFnsLocale === 'en') {\n dateFnsLocale = 'en-US'\n } else if (dateFnsLocale === 'zh') {\n // we use `zh` as language code in transifex, but date-fns only has zh-CN\n dateFnsLocale = 'zh-CN'\n }\n\n Vue.component('VueTimeago', createTimeago({\n name: 'VueTimeago',\n locale: i18n.locale,\n locales: {\n [i18n.locale]: require(`date-fns/locale/${dateFnsLocale}/index.js`)\n }\n }))\n }\n}\n\nasync function tryAutoLang (lang) {\n console.log(`[UI] Trying to load ${lang} locale...`)\n const result = await autoInstallLocale(lang)\n if (result) {\n i18n.locale = lang\n // eslint-disable-next-line no-console\n console.log(`[UI] Automatically loaded ${lang} locale `)\n }\n return result\n}\n\nconst i18n = new VueI18n({\n locale: 'en',\n fallbackLocale: 'en',\n messages: {\n en: {}\n },\n silentTranslationWarn: process.env.NODE_ENV !== 'production'\n})\n\nautoDetect()\n\nexport function mergeLocale (lang, messages) {\n const newData = deepmerge(i18n.getLocaleMessage(lang), messages)\n i18n.setLocaleMessage(lang, newData)\n}\n\nexport default i18n\n","/**\n * Display a folder path\n * @param {string} value path\n * @param {number} maxLength maximum length of displayed path\n */\nexport function folder (value, maxLength = -1) {\n value = value.replace(/\\\\/g, '/')\n\n if (value.charAt(value.length - 1) !== '/') {\n value += '/'\n }\n\n if (maxLength !== -1 && value.length > maxLength) {\n const exceeded = value.length - maxLength + 3\n const firstEnd = Math.floor(maxLength / 2 - exceeded / 2)\n const lastStart = Math.ceil(maxLength / 2 + exceeded / 2)\n value = value.substring(0, firstEnd) + '...' + value.substring(lastStart)\n }\n\n return value\n}\n\nexport function date (value) {\n return new Date(value).toLocaleString()\n}\n","export let responsive\n\nexport default {\n install (Vue, options) {\n const finalOptions = Object.assign({}, {\n computed: {}\n }, options)\n\n responsive = new Vue({\n data () {\n return {\n width: window.innerWidth,\n height: window.innerHeight\n }\n },\n computed: finalOptions.computed\n })\n\n Object.defineProperty(Vue.prototype, '$responsive', {\n get: () => responsive\n })\n\n window.addEventListener('resize', () => {\n responsive.width = window.innerWidth\n responsive.height = window.innerHeight\n })\n }\n}\n","import SHARED_DATA from '@/graphql/shared-data/sharedData.gql'\nimport SHARED_DATA_UPDATE from '@/graphql/shared-data/sharedDataUpdate.gql'\nimport SHARED_DATA_UPDATED from '@/graphql/shared-data/sharedDataUpdated.gql'\nimport CURRENT_PROJECT_ID from '@/graphql/project/currentProjectId.gql'\n\nfunction genQuery (id, projectId) {\n return {\n query: SHARED_DATA,\n variables: {\n id,\n projectId\n },\n update: ({ sharedData }) => (sharedData && sharedData.value) || undefined,\n subscribeToMore: {\n document: SHARED_DATA_UPDATED,\n variables: {\n id,\n projectId\n },\n updateQuery: (previousResult, { subscriptionData }) => {\n return {\n sharedData: subscriptionData.data.sharedDataUpdated\n }\n }\n }\n }\n}\n\nexport default {\n install (Vue) {\n Vue.mixin({\n data () {\n return {\n $sharedData: {}\n }\n },\n\n beforeCreate () {\n Object.defineProperty(this, '$sharedData', {\n get: () => this.$data.$sharedData,\n enumerable: true,\n configurable: true\n })\n },\n\n async created () {\n const options = this.$options.sharedData\n if (options) {\n if (typeof options === 'function') {\n let smartQueries\n this.$watch(options.bind(this), async result => {\n if (smartQueries) {\n smartQueries.forEach(s => s.destroy())\n }\n smartQueries = await this.$syncSharedData(result)\n }, {\n immediate: true\n })\n } else {\n await this.$syncSharedData(options)\n }\n // Force watchers to re-evaluate\n // Because we just added the proxies to this.$data.$sharedData[key]\n this._watchers.forEach(watcher => {\n watcher.update()\n })\n }\n },\n\n methods: {\n $getProjectId () {\n return new Promise((resolve) => {\n const client = this.$apollo.getClient()\n const observable = client.watchQuery({\n query: CURRENT_PROJECT_ID\n })\n const sub = observable.subscribe({\n next ({ data }) {\n if (data.currentProjectId) {\n sub.unsubscribe()\n resolve(data.currentProjectId)\n }\n }\n })\n })\n },\n\n async $getSharedData (id) {\n const projectId = await this.$getProjectId()\n const result = await this.$apollo.query({\n query: SHARED_DATA,\n variables: {\n id,\n projectId\n }\n })\n return result.sharedData.value\n },\n\n async $watchSharedData (id, cb) {\n const projectId = await this.$getProjectId()\n return this.$apollo.addSmartQuery(id, {\n ...genQuery(id, projectId),\n manual: true,\n result: ({ data }) => {\n data && data.sharedData && cb(data.sharedData.value)\n }\n })\n },\n\n async $setSharedData (id, value) {\n const projectId = await this.$getProjectId()\n return this.$apollo.mutate({\n mutation: SHARED_DATA_UPDATE,\n variables: {\n id,\n value,\n projectId\n }\n })\n },\n\n async $syncSharedData (options) {\n for (const key in options) {\n const id = options[key]\n this.$set(this.$data.$sharedData, key, null)\n // Proxy\n Object.defineProperty(this, key, {\n get: () => this.$data.$sharedData[key],\n set: value => {\n this.$set(this.$data.$sharedData, key, value)\n this.$setSharedData(id, value)\n },\n enumerable: true,\n configurable: true\n })\n }\n const projectId = await this.$getProjectId()\n const smartQueries = []\n for (const key in options) {\n const id = options[key]\n const smartQuery = this.$apollo.addSmartQuery(key, {\n ...genQuery(id, projectId),\n update: undefined,\n manual: true,\n result: (result) => {\n if (result && result.data) {\n const { data: { sharedData } } = result\n const value = (sharedData && sharedData.value) || undefined\n this.$set(this.$data.$sharedData, key, value)\n }\n }\n })\n smartQueries.push(smartQuery)\n }\n return smartQueries\n }\n }\n })\n\n window.mapSharedData = (namespace, options) => {\n const result = {}\n for (const key in options) {\n result[key] = namespace + options[key]\n }\n return result\n }\n }\n}\n","import PLUGIN_ACTION_CALL from '@/graphql/plugin/pluginActionCall.gql'\nimport PLUGIN_ACTION_CALLED from '@/graphql/plugin/pluginActionCalled.gql'\nimport PLUGIN_ACTION_RESOLVED from '@/graphql/plugin/pluginActionResolved.gql'\n\nlet uid = 0\n\nexport default {\n install (Vue) {\n Vue.mixin({\n methods: {\n async $callPluginAction (id, params) {\n const result = await this.$apollo.mutate({\n mutation: PLUGIN_ACTION_CALL,\n variables: {\n id,\n params\n }\n })\n return result.data.pluginActionCall\n },\n\n $onPluginActionCalled (cb) {\n return this.$apollo.addSmartSubscription(`plugin-action-called-${uid++}`, {\n query: PLUGIN_ACTION_CALLED,\n result: ({ data }) => cb(data.pluginActionCalled)\n })\n },\n\n $onPluginActionResolved (cb) {\n return this.$apollo.addSmartSubscription(`plugin-action-resolved-${uid++}`, {\n query: PLUGIN_ACTION_RESOLVED,\n result: ({ data }) => cb(data.pluginActionResolved)\n })\n }\n }\n })\n }\n}\n","import CONNECTED from '@/graphql/connected/connected.gql'\nimport DARK_MODE from '@/graphql/dark-mode/darkMode.gql'\n\n// @vue/component\nexport default {\n beforeCreate () {\n if (this.$options.clientState) {\n const newData = {\n connected: CONNECTED,\n darkMode: DARK_MODE\n }\n this.$options.apollo = {\n ...this.$options.apollo,\n ...newData\n }\n // Proxy prop on `this`\n for (const key in newData) {\n Object.defineProperty(this, key, {\n get: () => this.$data.$apolloData.data[key],\n enumerable: true,\n configurable: true\n })\n }\n }\n }\n}\n","export default {\n bind (el, { value }) {\n if (typeof value === 'string') {\n value = el.querySelector(value)\n }\n requestAnimationFrame(() => {\n const bounds = value.getBoundingClientRect()\n el.style.width = `${bounds.width}px`\n el.style.height = `${bounds.height}px`\n })\n }\n}\n","export default {\n bind (el) {\n requestAnimationFrame(() => {\n const input = el.querySelector('input')\n if (input) el = input\n el.focus()\n })\n }\n}\n","import Vue from 'vue'\n\nconst bus = new Vue()\n\nexport default {\n install (Vue) {\n Vue.prototype.$bus = (type, ...args) => {\n bus.$emit(type, ...args)\n }\n\n Vue.mixin({\n beforeCreate () {\n const busOptions = this.$options.bus\n if (busOptions) {\n this.$_bus = []\n\n const addListeners = map => {\n for (const event in map) {\n const handler = map[event].bind(this)\n bus.$on(event, handler)\n this.$_bus.push({ event, handler })\n }\n }\n\n if (Array.isArray(busOptions)) {\n busOptions.forEach(addListeners)\n } else {\n addListeners(busOptions)\n }\n }\n },\n\n beforeDestroy () {\n if (this.$_bus) {\n for (const listener of this.$_bus) {\n bus.$off(listener.event, listener.handler)\n }\n }\n }\n })\n\n Vue.config.optionMergeStrategies.bus = (parent, child, vm) => {\n if (Array.isArray(parent)) {\n if (Array.isArray(child)) {\n return parent.concat(child)\n } else {\n parent.push(child)\n return parent\n }\n } else if (Array.isArray(child)) {\n child.push(parent)\n return child\n } else if (parent && child) {\n return [parent, child]\n } else if (parent) {\n return parent\n }\n return child\n }\n }\n}\n","import AU from 'ansi_up'\n\nconst ansiUp = new AU()\nansiUp.use_classes = true\nansiUp.escape_for_html = false\n\nexport default {\n install (Vue) {\n Vue.prototype.ansiColors = text => ansiUp.ansi_to_html(text)\n }\n}\n","import Vue from 'vue'\nimport VueUi from '@vue/ui'\nimport InstantSearch from 'vue-instantsearch'\nimport VueMeta from 'vue-meta'\nimport PortalVue from 'portal-vue'\nimport VueObserveVisibility from 'vue-observe-visibility'\nimport * as Filters from './filters'\nimport Responsive from './util/responsive'\nimport SharedData from './util/shared-data'\nimport PluginAction from './util/plugin-action'\nimport ClientState from './mixins/ClientState'\nimport SetSize from './util/set-size'\nimport Focus from './util/focus'\nimport Bus from './util/bus'\nimport AnsiColors from './util/ansi-colors'\nimport VueVirtualScroller from 'vue-virtual-scroller'\nimport 'vue-virtual-scroller/dist/vue-virtual-scroller.css'\n\nVue.use(InstantSearch)\nVue.use(VueMeta)\nVue.use(Responsive, {\n computed: {\n mobile () {\n return this.width <= 768\n },\n tablet () {\n return this.width <= 900\n },\n desktop () {\n return !this.tablet\n },\n wide () {\n return this.width >= 1300\n }\n }\n})\nVue.use(VueUi)\nVue.use(PortalVue)\nVue.use(VueObserveVisibility)\nVue.use(SharedData)\nVue.use(PluginAction)\nVue.use(Bus)\nVue.use(AnsiColors)\n\nfor (const key in Filters) {\n Vue.filter(key, Filters[key])\n}\n\nVue.mixin(ClientState)\n\nVue.directive('set-size', SetSize)\nVue.directive('focus', Focus)\n\nVue.use(VueVirtualScroller)\n","/**\n * We register all the components so future cli-ui plugins\n * could use them directly\n */\n\nimport Vue from 'vue'\n\n// https://webpack.js.org/guides/dependency-management/#require-context\nconst requireComponent = require.context('./components', true, /[a-z0-9]+\\.(jsx?|vue)$/i)\n\n// For each matching file name...\nrequireComponent.keys().forEach(fileName => {\n const componentConfig = requireComponent(fileName)\n const componentName = fileName\n .substr(fileName.lastIndexOf('/') + 1)\n // Remove the file extension from the end\n .replace(/\\.\\w+$/, '')\n // Globally register the component\n Vue.component(componentName, componentConfig.default || componentConfig)\n})\n","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"app\",attrs:{\"id\":\"app\"}},[(_vm.ready)?_c('ConnectionStatus'):_vm._e(),(_vm.ready)?_c('div',{staticClass:\"content\"},[_c('router-view')],1):_c('VueLoadingIndicator',{staticClass:\"app-init-loading overlay big accent\"}),_c('StatusBar'),_c('ClientAddonLoader'),_c('LocaleLoader')],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n","import mod from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[1]!../../../../node_modules/cache-loader/dist/cjs.js??ruleSet[0].rules[0].use[0]!../../cli-service/lib/config/vue-loader-v15-resolve-compat/vue-loader.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=7f631aef&scoped=true&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=stylus&\"\nimport style1 from \"./App.vue?vue&type=style&index=1&id=7f631aef&lang=stylus&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7f631aef\",\n null\n \n)\n\nexport default component.exports","import Vue from 'vue'\nimport Router from 'vue-router'\nimport { apolloClient } from './vue-apollo'\n\nimport ProjectHome from './components/app/ProjectHome.vue'\n\nimport ProjectDashboard from './components/dashboard/ProjectDashboard.vue'\nimport ProjectPlugins from './components/plugin/ProjectPlugins.vue'\nimport ProjectPluginsAdd from './components/plugin/ProjectPluginsAdd.vue'\nimport ProjectConfigurations from './components/configuration/ProjectConfigurations.vue'\nimport ProjectConfigurationDetails from './components/configuration/ProjectConfigurationDetails.vue'\nimport ProjectTasks from './components/task/ProjectTasks.vue'\nimport ProjectTaskDetails from './components/task/ProjectTaskDetails.vue'\nimport ProjectDependencies from './components/dependency/ProjectDependencies.vue'\n\nimport ProjectSelect from './components/project-manager/ProjectSelect.vue'\nimport ProjectCreate from './components/project-create/ProjectCreate.vue'\n\nimport FileDiffView from './components/file-diff/FileDiffView.vue'\n\nimport About from './components/app/About.vue'\nimport NotFound from './components/app/NotFound.vue'\n\nimport PROJECT_CURRENT from './graphql/project/projectCurrent.gql'\nimport CURRENT_PROJECT_ID_SET from './graphql/project/currentProjectIdSet.gql'\n\nVue.use(Router)\n\nconst router = new Router({\n mode: 'history',\n routes: [\n {\n path: '/',\n component: ProjectHome,\n meta: {\n needProject: true\n },\n children: [\n {\n path: '',\n name: 'project-home',\n redirect: { name: 'project-dashboard' }\n },\n {\n path: 'dashboard',\n name: 'project-dashboard',\n component: ProjectDashboard\n },\n {\n path: 'plugins',\n name: 'project-plugins',\n component: ProjectPlugins\n },\n {\n path: 'plugins/add',\n name: 'project-plugins-add',\n component: ProjectPluginsAdd\n },\n {\n path: 'configuration',\n name: 'project-configurations',\n component: ProjectConfigurations,\n children: [\n {\n path: ':id',\n name: 'project-configuration-details',\n component: ProjectConfigurationDetails,\n props: true\n }\n ]\n },\n {\n path: 'tasks',\n name: 'project-tasks',\n component: ProjectTasks,\n children: [\n {\n path: ':id',\n name: 'project-task-details',\n component: ProjectTaskDetails,\n props: true\n }\n ]\n },\n {\n path: 'dependencies',\n name: 'project-dependencies',\n component: ProjectDependencies\n }\n ]\n },\n {\n path: '/project/select',\n name: 'project-select',\n component: ProjectSelect\n },\n {\n path: '/project/create',\n name: 'project-create',\n component: ProjectCreate\n },\n {\n path: '/file-diff',\n name: 'file-diff',\n component: FileDiffView\n },\n {\n path: '/about',\n name: 'about',\n component: About\n },\n {\n path: '/home',\n name: 'home',\n redirect: { name: 'project-home' }\n },\n {\n path: '*',\n name: 'not-found',\n component: NotFound\n }\n ]\n})\n\nrouter.beforeEach(async (to, from, next) => {\n if (to.matched.some(m => m.meta.needProject)) {\n const result = await apolloClient.query({\n query: PROJECT_CURRENT,\n fetchPolicy: 'network-only'\n })\n if (!result.data.projectCurrent) {\n next({ name: 'project-select' })\n return\n } else {\n await apolloClient.mutate({\n mutation: CURRENT_PROJECT_ID_SET,\n variables: {\n projectId: result.data.projectCurrent.id\n }\n })\n }\n }\n next()\n})\n\nexport default router\n","import Vue from 'vue'\nimport router from '../router'\nimport { mergeLocale } from '../i18n'\nimport ProjectHome from '@/components/app/ProjectHome.vue'\n\nexport default class ClientAddonApi {\n constructor () {\n this.components = new Map()\n this.componentListeners = new Map()\n }\n\n /**\n * Register a component globally.\n *\n * @param {string} id Component id\n * @param {object} definition Component definition\n */\n component (id, definition) {\n this.components.set(id, definition)\n const componentId = toComponentId(id)\n Vue.component(componentId, definition)\n // eslint-disable-next-line no-console\n console.log(`[ClientAddonApi] Registered ${componentId} component`)\n // Call listeners\n const listeners = this.componentListeners.get(id)\n if (listeners) {\n listeners.forEach(l => l(definition))\n this.componentListeners.delete(id)\n }\n }\n\n /**\n * Add routes to vue-router under a /addon/ parent route.\n * For example, addRoutes('foo', [ { path: '' }, { path: 'bar' } ])\n * will add the /addon/foo/ and the /addon/foo/bar routes to vue-router.\n *\n * @param {string} id Routes pack id (generally the vue-cli plugin id)\n * @param {any} routes vue-router route definitions\n */\n addRoutes (id, routes) {\n router.addRoutes([\n {\n path: `/addon/${id}`,\n component: ProjectHome,\n meta: {\n needProject: true,\n restore: true\n },\n children: routes\n }\n ])\n // eslint-disable-next-line no-console\n console.log(`[ClientAddonApi] Registered new routes under the /addon/${id} route`)\n }\n\n /**\n * Merge new strings into the specified lang translations (using vue-i18n).\n *\n * @param {string} lang Locale to merge to (ex: 'en', 'fr'...)\n * @param {object} strings A vue-i18n strings object containing the translations\n */\n addLocalization (lang, strings) {\n mergeLocale(lang, strings)\n // eslint-disable-next-line no-console\n console.log(`[ClientAddonApi] Registered new strings for locale ${lang}`)\n }\n\n /* Internal */\n\n getComponent (id) {\n return this.components.get(id)\n }\n\n listenForComponent (id, cb) {\n let listeners = this.componentListeners.get(id)\n if (!listeners) {\n listeners = []\n this.componentListeners.set(id, listeners)\n }\n listeners.push(cb)\n }\n\n awaitComponent (id) {\n return new Promise((resolve, reject) => {\n const result = this.getComponent(id)\n if (result) {\n resolve(result)\n } else {\n this.listenForComponent(id, resolve)\n }\n })\n }\n}\n\nexport function toComponentId (id) {\n id = id.replace(/\\./g, '-')\n return `client-addon--${id}`\n}\n","import './plugins'\nimport './register-components'\n\nimport Vue from 'vue'\nimport App from './App.vue'\nimport router from './router'\nimport i18n from './i18n'\nimport { apolloProvider } from './vue-apollo'\nimport ClientAddonApi from './util/ClientAddonApi'\nimport gql from 'graphql-tag'\n\nwindow.gql = gql\n\nVue.config.productionTip = false\nVue.config.devtools = true\n\n// For client addons\nwindow.Vue = Vue\nwindow.ClientAddonApi = new ClientAddonApi()\n\nconst app = new Vue({\n router,\n apolloProvider,\n i18n,\n ...App\n})\n\napp.$mount('#app')\n","import PROMPT_ANSWER from '@/graphql/prompt/promptAnswer.gql'\n\nexport default function ({\n field,\n query,\n variables = null,\n updateQuery = null,\n update = null\n}) {\n // @vue/component\n return {\n computed: {\n configurationValid () {\n return this.visiblePrompts.filter(\n p =>\n p.error ||\n p.value === null ||\n JSON.parse(p.value) === ''\n ).length === 0\n },\n\n hasPromptsChanged () {\n return !!this.visiblePrompts.find(\n prompt => prompt.valueChanged\n )\n },\n\n visiblePrompts () {\n if (!this[field]) {\n return []\n }\n return this[field].prompts.filter(\n p => p.visible\n )\n }\n },\n\n watch: {\n hasPromptsChanged: {\n handler (value) {\n this.$emit('has-changes', value)\n },\n immediate: true\n }\n },\n\n methods: {\n async answerPrompt ({ prompt, value }) {\n await this.$apollo.mutate({\n mutation: PROMPT_ANSWER,\n variables: {\n input: {\n id: prompt.id,\n value: JSON.stringify(value)\n }\n },\n update: (store, { data: { promptAnswer } }) => {\n if (update) {\n update.call(this, store, promptAnswer)\n return\n }\n let vars = variables || this.$apollo.queries[field].options.variables || undefined\n if (typeof vars === 'function') {\n vars = vars.call(this)\n }\n const data = store.readQuery({ query, variables: vars })\n if (updateQuery) {\n updateQuery.call(this, data, promptAnswer)\n } else {\n data[field].prompts = promptAnswer\n }\n store.writeQuery({ query, variables: vars, data })\n }\n })\n }\n }\n }\n}\n","import { isSameRoute } from '../util/route'\n\nimport PROJECT_CURRENT from '@/graphql/project/projectCurrent.gql'\n\nexport default function ({\n baseRoute = null\n} = {}) {\n let lastRoute\n\n // @vue/component\n return {\n apollo: {\n projectCurrent: PROJECT_CURRENT\n },\n\n watch: {\n projectCurrent (value) {\n if (!this.$_restoreRouteReady) return\n this.replaceBaseRoute()\n }\n },\n\n bus: {\n quickOpenProject (project) {\n this.replaceBaseRoute()\n }\n },\n\n beforeRouteEnter (to, from, next) {\n if (lastRoute) {\n if (!to.params || !Object.keys(to.params).length) {\n const { name, params, query } = lastRoute\n next({ name, params, query })\n return\n }\n lastRoute = null\n }\n next()\n },\n\n beforeRouteLeave (to, from, next) {\n if (from.params && Object.keys(from.params).length) {\n lastRoute = from\n }\n next()\n },\n\n mounted () {\n setTimeout(() => {\n this.$_restoreRouteReady = true\n }, 100)\n },\n\n methods: {\n replaceBaseRoute () {\n if (baseRoute && !isSameRoute(this.$route, baseRoute, false)) {\n this.$router.replace(baseRoute)\n }\n }\n }\n }\n}\n","export function getImageUrl (url) {\n // Fix images in development\n if (process.env.VUE_APP_CLI_UI_DEV && url.charAt(0) === '/') {\n return `http://localhost:${process.env.VUE_APP_GRAPHQL_PORT}${url}`\n }\n return url\n}\n","const trailingSlashRE = /\\/?$/\n\nexport function isSameRoute (a, b, checkQuery = true) {\n if (!b) {\n return false\n } else if (a.path && b.path) {\n return (\n a.path.replace(trailingSlashRE, '') === b.path.replace(trailingSlashRE, '') &&\n a.hash === b.hash &&\n (!checkQuery || isObjectEqual(a.query, b.query))\n )\n } else if (a.name && b.name) {\n return (\n a.name === b.name &&\n a.hash === b.hash &&\n isObjectEqual(a.params, b.params) &&\n (!checkQuery || isObjectEqual(a.query, b.query))\n )\n } else {\n return false\n }\n}\n\nfunction isObjectEqual (a = {}, b = {}) {\n // handle null value #1566\n if (!a || !b) return a === b\n const aKeys = Object.keys(a)\n const bKeys = Object.keys(b)\n if (aKeys.length !== bKeys.length) {\n return false\n }\n return aKeys.every(key => {\n const aVal = a[key]\n const bVal = b[key]\n // check nested equality\n if (typeof aVal === 'object' && typeof bVal === 'object') {\n return isObjectEqual(aVal, bVal)\n }\n return String(aVal) === String(bVal)\n })\n}\n\nexport function isIncludedRoute (current, target) {\n return (\n current.path.replace(trailingSlashRE, '/').indexOf(\n target.path.replace(trailingSlashRE, '/')\n ) === 0 &&\n (!target.hash || current.hash === target.hash) &&\n queryIncludes(current.query, target.query)\n )\n}\n\nfunction queryIncludes (current, target) {\n for (const key in target) {\n if (!(key in current)) {\n return false\n }\n }\n return true\n}\n","export function generateSearchRegex (text) {\n return text && new RegExp(text.trim().replace(/\\s+/g, '.{0,5}'), 'i')\n}\n","let forcedTheme = null\n\n{\n const result = /\\?theme=(\\w+)/.exec(window.location.href)\n if (result) forcedTheme = result[1]\n}\n\nconsole.log('forced theme', forcedTheme)\n\nexport function getForcedTheme () {\n return forcedTheme\n}\n","export default () => ({\n connected: true,\n loading: 0,\n darkMode: false,\n currentProjectId: null\n})\n","import LOADING from '@/graphql/loading/loading.gql'\n\nexport default {\n Mutation: {\n connectedSet: (root, { value }, { cache }) => {\n const data = {\n connected: value\n }\n cache.writeData({ data })\n return null\n },\n\n loadingChange: (root, { mod }, { cache }) => {\n const { loading } = cache.readQuery({ query: LOADING })\n const data = {\n loading: loading + mod\n }\n cache.writeData({ data })\n return null\n },\n\n darkModeSet: (root, { enabled }, { cache }) => {\n const data = {\n darkMode: enabled\n }\n cache.writeData({ data })\n const el = document.getElementsByTagName('html')[0]\n if (enabled) {\n el.classList.add('vue-ui-dark-mode')\n } else {\n el.classList.remove('vue-ui-dark-mode')\n }\n return null\n },\n\n currentProjectIdSet: (root, { projectId }, { cache }) => {\n const data = {\n currentProjectId: projectId\n }\n cache.writeData({ data })\n return null\n }\n }\n}\n","import gql from 'graphql-tag'\n\nexport default gql`\nextend type Query {\n connected: Boolean!\n loading: Boolean!\n darkMode: Boolean!\n currentProjectId: String\n}\n\nextend type Mutation {\n connectedSet (value: Boolean!): Boolean\n loadingChange (mod: Int!): Boolean\n darkModeSet (enabled: Boolean!): Boolean\n currentProjectIdSet (projectId: String): Boolean\n}\n`\n","import Vue from 'vue'\nimport VueApollo from 'vue-apollo'\nimport { createApolloClient } from 'vue-cli-plugin-apollo/graphql-client'\nimport clientStateDefaults from './state/defaults'\nimport clientStateResolvers from './state/resolvers'\nimport clientStateTypeDefs from './state/typeDefs'\n// GraphQL documents\nimport PROJECT_CURRENT from './graphql/project/projectCurrent.gql'\nimport CURRENT_PROJECT_ID_SET from './graphql/project/currentProjectIdSet.gql'\nimport CONNECTED_SET from '@/graphql/connected/connectedSet.gql'\nimport LOADING_CHANGE from '@/graphql/loading/loadingChange.gql'\nimport DARK_MODE_SET from '@/graphql/dark-mode/darkModeSet.gql'\nimport { getForcedTheme } from './util/theme'\n\n// Install the vue plugin\nVue.use(VueApollo)\n\nlet endpoint = process.env.VUE_APP_CLI_UI_URL\nif (typeof endpoint === 'undefined') {\n endpoint = `ws://localhost:${process.env.VUE_APP_GRAPHQL_PORT}/graphql`\n} else if (endpoint === '') {\n endpoint = window.location.origin.replace('http', 'ws') + '/graphql'\n}\n\n// Config\nconst options = {\n inMemoryCacheOptions: {},\n wsEndpoint: endpoint,\n persisting: false,\n websocketsOnly: true,\n typeDefs: clientStateTypeDefs,\n resolvers: clientStateResolvers,\n onCacheInit: cache => {\n cache.writeData({ data: clientStateDefaults() })\n }\n}\n\n// Create apollo client\nexport const { apolloClient, wsClient } = createApolloClient(options)\n\n// Create vue apollo provider\nexport const apolloProvider = new VueApollo({\n defaultClient: apolloClient,\n defaultOptions: {\n $query: {\n fetchPolicy: 'cache-and-network',\n errorPolicy: 'all'\n }\n },\n watchLoading (state, mod) {\n apolloClient.mutate({\n mutation: LOADING_CHANGE,\n variables: {\n mod\n }\n })\n },\n errorHandler (error) {\n console.log('%cAn error occurred', 'background: red; color: white; padding: 4px; border-radius: 4px;font-weight: bold;')\n console.log(error.message)\n if (error.graphQLErrors) {\n console.log(error.graphQLErrors)\n }\n if (error.networkError) {\n console.log(error.networkError)\n }\n }\n})\n\nexport async function resetApollo () {\n console.log('[UI] Apollo store reset')\n\n const { data: { projectCurrent } } = await apolloClient.query({\n query: PROJECT_CURRENT,\n fetchPolicy: 'network-only'\n })\n const projectId = projectCurrent.id\n\n try {\n await apolloClient.resetStore()\n } catch (e) {\n // Potential errors\n }\n\n await apolloClient.mutate({\n mutation: CURRENT_PROJECT_ID_SET,\n variables: {\n projectId\n }\n })\n\n loadDarkMode()\n}\n\n/* Connected state */\n\nfunction setConnected (value) {\n apolloClient.mutate({\n mutation: CONNECTED_SET,\n variables: {\n value\n }\n })\n}\n\nwsClient.on('connected', () => setConnected(true))\nwsClient.on('reconnected', async () => {\n await resetApollo()\n setConnected(true)\n})\n// Offline\nwsClient.on('disconnected', () => setConnected(false))\nwsClient.on('error', () => setConnected(false))\n\n/* Dark mode */\n\nfunction loadDarkMode () {\n let enabled, forcedTheme\n if ((forcedTheme = getForcedTheme())) {\n enabled = forcedTheme === 'dark'\n } else {\n const raw = localStorage.getItem('vue-ui-dark-mode')\n enabled = raw === 'true'\n }\n apolloClient.mutate({\n mutation: DARK_MODE_SET,\n variables: {\n enabled\n }\n })\n}\n\nloadDarkMode()\n","var map = {\n\t\"./_lib/buildFormatLongFn/index.js\": 20289,\n\t\"./_lib/buildLocalizeFn/index.js\": 16245,\n\t\"./_lib/buildMatchFn/index.js\": 43421,\n\t\"./_lib/buildMatchPatternFn/index.js\": 78926,\n\t\"./af/_lib/formatDistance/index.js\": 41146,\n\t\"./af/_lib/formatLong/index.js\": 60358,\n\t\"./af/_lib/formatRelative/index.js\": 31310,\n\t\"./af/_lib/localize/index.js\": 82714,\n\t\"./af/_lib/match/index.js\": 33185,\n\t\"./af/index.js\": 74156,\n\t\"./ar-DZ/_lib/formatDistance/index.js\": 10258,\n\t\"./ar-DZ/_lib/formatLong/index.js\": 38384,\n\t\"./ar-DZ/_lib/formatRelative/index.js\": 12923,\n\t\"./ar-DZ/_lib/localize/index.js\": 50996,\n\t\"./ar-DZ/_lib/match/index.js\": 53463,\n\t\"./ar-DZ/index.js\": 79307,\n\t\"./ar-EG/_lib/formatDistance/index.js\": 70405,\n\t\"./ar-EG/_lib/formatLong/index.js\": 59137,\n\t\"./ar-EG/_lib/formatRelative/index.js\": 19798,\n\t\"./ar-EG/_lib/localize/index.js\": 20303,\n\t\"./ar-EG/_lib/match/index.js\": 2527,\n\t\"./ar-EG/index.js\": 56379,\n\t\"./ar-MA/_lib/formatDistance/index.js\": 56716,\n\t\"./ar-MA/_lib/formatLong/index.js\": 92086,\n\t\"./ar-MA/_lib/formatRelative/index.js\": 79302,\n\t\"./ar-MA/_lib/localize/index.js\": 89105,\n\t\"./ar-MA/_lib/match/index.js\": 18092,\n\t\"./ar-MA/index.js\": 22739,\n\t\"./ar-SA/_lib/formatDistance/index.js\": 56224,\n\t\"./ar-SA/_lib/formatLong/index.js\": 22041,\n\t\"./ar-SA/_lib/formatRelative/index.js\": 90046,\n\t\"./ar-SA/_lib/localize/index.js\": 16274,\n\t\"./ar-SA/_lib/match/index.js\": 7161,\n\t\"./ar-SA/index.js\": 51730,\n\t\"./ar-TN/_lib/formatDistance/index.js\": 98818,\n\t\"./ar-TN/_lib/formatLong/index.js\": 19048,\n\t\"./ar-TN/_lib/formatRelative/index.js\": 30005,\n\t\"./ar-TN/_lib/localize/index.js\": 7649,\n\t\"./ar-TN/_lib/match/index.js\": 34357,\n\t\"./ar-TN/index.js\": 37650,\n\t\"./ar/_lib/formatDistance/index.js\": 29226,\n\t\"./ar/_lib/formatLong/index.js\": 45604,\n\t\"./ar/_lib/formatRelative/index.js\": 77237,\n\t\"./ar/_lib/localize/index.js\": 72890,\n\t\"./ar/_lib/match/index.js\": 53372,\n\t\"./ar/index.js\": 18137,\n\t\"./az/_lib/formatDistance/index.js\": 67580,\n\t\"./az/_lib/formatLong/index.js\": 3381,\n\t\"./az/_lib/formatRelative/index.js\": 5895,\n\t\"./az/_lib/localize/index.js\": 79557,\n\t\"./az/_lib/match/index.js\": 74390,\n\t\"./az/index.js\": 77356,\n\t\"./be/_lib/formatDistance/index.js\": 564,\n\t\"./be/_lib/formatLong/index.js\": 87682,\n\t\"./be/_lib/formatRelative/index.js\": 28206,\n\t\"./be/_lib/localize/index.js\": 13533,\n\t\"./be/_lib/match/index.js\": 71682,\n\t\"./be/index.js\": 9624,\n\t\"./bg/_lib/formatDistance/index.js\": 79681,\n\t\"./bg/_lib/formatLong/index.js\": 45930,\n\t\"./bg/_lib/formatRelative/index.js\": 21185,\n\t\"./bg/_lib/localize/index.js\": 91641,\n\t\"./bg/_lib/match/index.js\": 45152,\n\t\"./bg/index.js\": 94719,\n\t\"./bn/_lib/formatDistance/index.js\": 67835,\n\t\"./bn/_lib/formatLong/index.js\": 32076,\n\t\"./bn/_lib/formatRelative/index.js\": 36520,\n\t\"./bn/_lib/localize/index.js\": 12674,\n\t\"./bn/_lib/match/index.js\": 35920,\n\t\"./bn/index.js\": 82182,\n\t\"./bs/_lib/formatDistance/index.js\": 95963,\n\t\"./bs/_lib/formatLong/index.js\": 25711,\n\t\"./bs/_lib/formatRelative/index.js\": 44374,\n\t\"./bs/_lib/localize/index.js\": 28113,\n\t\"./bs/_lib/match/index.js\": 69866,\n\t\"./bs/index.js\": 32181,\n\t\"./ca/_lib/formatDistance/index.js\": 49280,\n\t\"./ca/_lib/formatLong/index.js\": 16686,\n\t\"./ca/_lib/formatRelative/index.js\": 54470,\n\t\"./ca/_lib/localize/index.js\": 50683,\n\t\"./ca/_lib/match/index.js\": 73146,\n\t\"./ca/index.js\": 44732,\n\t\"./cs/_lib/formatDistance/index.js\": 79434,\n\t\"./cs/_lib/formatLong/index.js\": 18336,\n\t\"./cs/_lib/formatRelative/index.js\": 3003,\n\t\"./cs/_lib/localize/index.js\": 48793,\n\t\"./cs/_lib/match/index.js\": 63626,\n\t\"./cs/index.js\": 76105,\n\t\"./cy/_lib/formatDistance/index.js\": 90305,\n\t\"./cy/_lib/formatLong/index.js\": 32132,\n\t\"./cy/_lib/formatRelative/index.js\": 68527,\n\t\"./cy/_lib/localize/index.js\": 17863,\n\t\"./cy/_lib/match/index.js\": 53494,\n\t\"./cy/index.js\": 96227,\n\t\"./da/_lib/formatDistance/index.js\": 96569,\n\t\"./da/_lib/formatLong/index.js\": 20658,\n\t\"./da/_lib/formatRelative/index.js\": 31002,\n\t\"./da/_lib/localize/index.js\": 55578,\n\t\"./da/_lib/match/index.js\": 3393,\n\t\"./da/index.js\": 44921,\n\t\"./de-AT/_lib/localize/index.js\": 56443,\n\t\"./de-AT/index.js\": 73210,\n\t\"./de/_lib/formatDistance/index.js\": 82376,\n\t\"./de/_lib/formatLong/index.js\": 6749,\n\t\"./de/_lib/formatRelative/index.js\": 91805,\n\t\"./de/_lib/localize/index.js\": 56105,\n\t\"./de/_lib/match/index.js\": 83996,\n\t\"./de/index.js\": 76119,\n\t\"./el/_lib/formatDistance/index.js\": 96170,\n\t\"./el/_lib/formatLong/index.js\": 22761,\n\t\"./el/_lib/formatRelative/index.js\": 5093,\n\t\"./el/_lib/localize/index.js\": 79919,\n\t\"./el/_lib/match/index.js\": 20320,\n\t\"./el/index.js\": 71511,\n\t\"./en-AU/_lib/formatLong/index.js\": 47483,\n\t\"./en-AU/index.js\": 51971,\n\t\"./en-CA/_lib/formatDistance/index.js\": 16925,\n\t\"./en-CA/_lib/formatLong/index.js\": 17156,\n\t\"./en-CA/index.js\": 23654,\n\t\"./en-GB/_lib/formatLong/index.js\": 90125,\n\t\"./en-GB/index.js\": 22709,\n\t\"./en-IE/index.js\": 84511,\n\t\"./en-IN/_lib/formatLong/index.js\": 44649,\n\t\"./en-IN/index.js\": 56635,\n\t\"./en-NZ/_lib/formatLong/index.js\": 88738,\n\t\"./en-NZ/index.js\": 3557,\n\t\"./en-US/_lib/formatDistance/index.js\": 71924,\n\t\"./en-US/_lib/formatLong/index.js\": 95062,\n\t\"./en-US/_lib/formatRelative/index.js\": 5102,\n\t\"./en-US/_lib/localize/index.js\": 87839,\n\t\"./en-US/_lib/match/index.js\": 9796,\n\t\"./en-US/index.js\": 82512,\n\t\"./en-ZA/_lib/formatLong/index.js\": 12820,\n\t\"./en-ZA/index.js\": 55585,\n\t\"./eo/_lib/formatDistance/index.js\": 60509,\n\t\"./eo/_lib/formatLong/index.js\": 61709,\n\t\"./eo/_lib/formatRelative/index.js\": 76297,\n\t\"./eo/_lib/localize/index.js\": 83419,\n\t\"./eo/_lib/match/index.js\": 66460,\n\t\"./eo/index.js\": 46050,\n\t\"./es/_lib/formatDistance/index.js\": 17308,\n\t\"./es/_lib/formatLong/index.js\": 19983,\n\t\"./es/_lib/formatRelative/index.js\": 54011,\n\t\"./es/_lib/localize/index.js\": 389,\n\t\"./es/_lib/match/index.js\": 71365,\n\t\"./es/index.js\": 19962,\n\t\"./et/_lib/formatDistance/index.js\": 37961,\n\t\"./et/_lib/formatLong/index.js\": 50363,\n\t\"./et/_lib/formatRelative/index.js\": 87335,\n\t\"./et/_lib/localize/index.js\": 50794,\n\t\"./et/_lib/match/index.js\": 60084,\n\t\"./et/index.js\": 58170,\n\t\"./eu/_lib/formatDistance/index.js\": 85454,\n\t\"./eu/_lib/formatLong/index.js\": 56183,\n\t\"./eu/_lib/formatRelative/index.js\": 94237,\n\t\"./eu/_lib/localize/index.js\": 5966,\n\t\"./eu/_lib/match/index.js\": 74705,\n\t\"./eu/index.js\": 9042,\n\t\"./fa-IR/_lib/formatDistance/index.js\": 87201,\n\t\"./fa-IR/_lib/formatLong/index.js\": 81884,\n\t\"./fa-IR/_lib/formatRelative/index.js\": 91912,\n\t\"./fa-IR/_lib/localize/index.js\": 97188,\n\t\"./fa-IR/_lib/match/index.js\": 43043,\n\t\"./fa-IR/index.js\": 13537,\n\t\"./fi/_lib/formatDistance/index.js\": 67380,\n\t\"./fi/_lib/formatLong/index.js\": 99532,\n\t\"./fi/_lib/formatRelative/index.js\": 15561,\n\t\"./fi/_lib/localize/index.js\": 64354,\n\t\"./fi/_lib/match/index.js\": 27530,\n\t\"./fi/index.js\": 95999,\n\t\"./fr-CA/_lib/formatLong/index.js\": 53860,\n\t\"./fr-CA/index.js\": 82580,\n\t\"./fr-CH/_lib/formatLong/index.js\": 96065,\n\t\"./fr-CH/_lib/formatRelative/index.js\": 16372,\n\t\"./fr-CH/index.js\": 89718,\n\t\"./fr/_lib/formatDistance/index.js\": 66522,\n\t\"./fr/_lib/formatLong/index.js\": 34325,\n\t\"./fr/_lib/formatRelative/index.js\": 22162,\n\t\"./fr/_lib/localize/index.js\": 38803,\n\t\"./fr/_lib/match/index.js\": 58213,\n\t\"./fr/index.js\": 63126,\n\t\"./fy/_lib/formatDistance/index.js\": 36945,\n\t\"./fy/_lib/formatLong/index.js\": 84905,\n\t\"./fy/_lib/formatRelative/index.js\": 50776,\n\t\"./fy/_lib/localize/index.js\": 82930,\n\t\"./fy/_lib/match/index.js\": 48674,\n\t\"./fy/index.js\": 8848,\n\t\"./gd/_lib/formatDistance/index.js\": 52646,\n\t\"./gd/_lib/formatLong/index.js\": 88030,\n\t\"./gd/_lib/formatRelative/index.js\": 11398,\n\t\"./gd/_lib/localize/index.js\": 77390,\n\t\"./gd/_lib/match/index.js\": 34044,\n\t\"./gd/index.js\": 93698,\n\t\"./gl/_lib/formatDistance/index.js\": 22523,\n\t\"./gl/_lib/formatLong/index.js\": 75618,\n\t\"./gl/_lib/formatRelative/index.js\": 2698,\n\t\"./gl/_lib/localize/index.js\": 68154,\n\t\"./gl/_lib/match/index.js\": 27475,\n\t\"./gl/index.js\": 68846,\n\t\"./gu/_lib/formatDistance/index.js\": 22933,\n\t\"./gu/_lib/formatLong/index.js\": 82513,\n\t\"./gu/_lib/formatRelative/index.js\": 46840,\n\t\"./gu/_lib/localize/index.js\": 98528,\n\t\"./gu/_lib/match/index.js\": 18201,\n\t\"./gu/index.js\": 56209,\n\t\"./he/_lib/formatDistance/index.js\": 75736,\n\t\"./he/_lib/formatLong/index.js\": 45218,\n\t\"./he/_lib/formatRelative/index.js\": 64125,\n\t\"./he/_lib/localize/index.js\": 20379,\n\t\"./he/_lib/match/index.js\": 15430,\n\t\"./he/index.js\": 16309,\n\t\"./hi/_lib/formatDistance/index.js\": 51734,\n\t\"./hi/_lib/formatLong/index.js\": 78241,\n\t\"./hi/_lib/formatRelative/index.js\": 56683,\n\t\"./hi/_lib/localize/index.js\": 65282,\n\t\"./hi/_lib/match/index.js\": 50248,\n\t\"./hi/index.js\": 37056,\n\t\"./hr/_lib/formatDistance/index.js\": 7792,\n\t\"./hr/_lib/formatLong/index.js\": 77910,\n\t\"./hr/_lib/formatRelative/index.js\": 45339,\n\t\"./hr/_lib/localize/index.js\": 77677,\n\t\"./hr/_lib/match/index.js\": 16436,\n\t\"./hr/index.js\": 97276,\n\t\"./ht/_lib/formatDistance/index.js\": 61245,\n\t\"./ht/_lib/formatLong/index.js\": 67737,\n\t\"./ht/_lib/formatRelative/index.js\": 39803,\n\t\"./ht/_lib/formatters/index.js\": 46998,\n\t\"./ht/_lib/localize/index.js\": 19400,\n\t\"./ht/_lib/match/index.js\": 97695,\n\t\"./ht/index.js\": 55389,\n\t\"./hu/_lib/formatDistance/index.js\": 91898,\n\t\"./hu/_lib/formatLong/index.js\": 19266,\n\t\"./hu/_lib/formatRelative/index.js\": 41544,\n\t\"./hu/_lib/localize/index.js\": 69353,\n\t\"./hu/_lib/match/index.js\": 85370,\n\t\"./hu/index.js\": 79675,\n\t\"./hy/_lib/formatDistance/index.js\": 41839,\n\t\"./hy/_lib/formatLong/index.js\": 45625,\n\t\"./hy/_lib/formatRelative/index.js\": 80528,\n\t\"./hy/_lib/localize/index.js\": 74391,\n\t\"./hy/_lib/match/index.js\": 1824,\n\t\"./hy/index.js\": 74403,\n\t\"./id/_lib/formatDistance/index.js\": 95223,\n\t\"./id/_lib/formatLong/index.js\": 27166,\n\t\"./id/_lib/formatRelative/index.js\": 65673,\n\t\"./id/_lib/localize/index.js\": 98045,\n\t\"./id/_lib/match/index.js\": 10798,\n\t\"./id/index.js\": 51872,\n\t\"./is/_lib/formatDistance/index.js\": 67527,\n\t\"./is/_lib/formatLong/index.js\": 73003,\n\t\"./is/_lib/formatRelative/index.js\": 75440,\n\t\"./is/_lib/localize/index.js\": 53162,\n\t\"./is/_lib/match/index.js\": 75101,\n\t\"./is/index.js\": 28677,\n\t\"./it/_lib/formatDistance/index.js\": 12642,\n\t\"./it/_lib/formatLong/index.js\": 96714,\n\t\"./it/_lib/formatRelative/index.js\": 74501,\n\t\"./it/_lib/localize/index.js\": 82713,\n\t\"./it/_lib/match/index.js\": 37281,\n\t\"./it/index.js\": 59629,\n\t\"./ja-Hira/_lib/formatDistance/index.js\": 65047,\n\t\"./ja-Hira/_lib/formatLong/index.js\": 44818,\n\t\"./ja-Hira/_lib/formatRelative/index.js\": 20942,\n\t\"./ja-Hira/_lib/localize/index.js\": 97031,\n\t\"./ja-Hira/_lib/match/index.js\": 71636,\n\t\"./ja-Hira/index.js\": 81590,\n\t\"./ja/_lib/formatDistance/index.js\": 15525,\n\t\"./ja/_lib/formatLong/index.js\": 45161,\n\t\"./ja/_lib/formatRelative/index.js\": 85071,\n\t\"./ja/_lib/localize/index.js\": 85598,\n\t\"./ja/_lib/match/index.js\": 93509,\n\t\"./ja/index.js\": 42180,\n\t\"./ka/_lib/formatDistance/index.js\": 87414,\n\t\"./ka/_lib/formatLong/index.js\": 27355,\n\t\"./ka/_lib/formatRelative/index.js\": 91402,\n\t\"./ka/_lib/localize/index.js\": 5552,\n\t\"./ka/_lib/match/index.js\": 75108,\n\t\"./ka/index.js\": 36501,\n\t\"./kk/_lib/formatDistance/index.js\": 52071,\n\t\"./kk/_lib/formatLong/index.js\": 99466,\n\t\"./kk/_lib/formatRelative/index.js\": 52400,\n\t\"./kk/_lib/localize/index.js\": 31814,\n\t\"./kk/_lib/match/index.js\": 5574,\n\t\"./kk/index.js\": 34996,\n\t\"./km/_lib/formatDistance/index.js\": 97263,\n\t\"./km/_lib/formatLong/index.js\": 66355,\n\t\"./km/_lib/formatRelative/index.js\": 34833,\n\t\"./km/_lib/localize/index.js\": 99273,\n\t\"./km/_lib/match/index.js\": 7916,\n\t\"./km/index.js\": 38684,\n\t\"./kn/_lib/formatDistance/index.js\": 56071,\n\t\"./kn/_lib/formatLong/index.js\": 78505,\n\t\"./kn/_lib/formatRelative/index.js\": 8440,\n\t\"./kn/_lib/localize/index.js\": 23283,\n\t\"./kn/_lib/match/index.js\": 27211,\n\t\"./kn/index.js\": 43434,\n\t\"./ko/_lib/formatDistance/index.js\": 36136,\n\t\"./ko/_lib/formatLong/index.js\": 91257,\n\t\"./ko/_lib/formatRelative/index.js\": 52593,\n\t\"./ko/_lib/localize/index.js\": 93558,\n\t\"./ko/_lib/match/index.js\": 97948,\n\t\"./ko/index.js\": 2666,\n\t\"./lb/_lib/formatDistance/index.js\": 40714,\n\t\"./lb/_lib/formatLong/index.js\": 73815,\n\t\"./lb/_lib/formatRelative/index.js\": 1395,\n\t\"./lb/_lib/localize/index.js\": 45973,\n\t\"./lb/_lib/match/index.js\": 34308,\n\t\"./lb/index.js\": 84048,\n\t\"./lt/_lib/formatDistance/index.js\": 42067,\n\t\"./lt/_lib/formatLong/index.js\": 83573,\n\t\"./lt/_lib/formatRelative/index.js\": 63963,\n\t\"./lt/_lib/localize/index.js\": 16687,\n\t\"./lt/_lib/match/index.js\": 79884,\n\t\"./lt/index.js\": 2536,\n\t\"./lv/_lib/formatDistance/index.js\": 41340,\n\t\"./lv/_lib/formatLong/index.js\": 47090,\n\t\"./lv/_lib/formatRelative/index.js\": 54550,\n\t\"./lv/_lib/localize/index.js\": 44306,\n\t\"./lv/_lib/match/index.js\": 94305,\n\t\"./lv/index.js\": 3610,\n\t\"./mk/_lib/formatDistance/index.js\": 83350,\n\t\"./mk/_lib/formatLong/index.js\": 30299,\n\t\"./mk/_lib/formatRelative/index.js\": 21154,\n\t\"./mk/_lib/localize/index.js\": 49324,\n\t\"./mk/_lib/match/index.js\": 45603,\n\t\"./mk/index.js\": 1057,\n\t\"./mn/_lib/formatDistance/index.js\": 64216,\n\t\"./mn/_lib/formatLong/index.js\": 10562,\n\t\"./mn/_lib/formatRelative/index.js\": 69683,\n\t\"./mn/_lib/localize/index.js\": 48637,\n\t\"./mn/_lib/match/index.js\": 64094,\n\t\"./mn/index.js\": 14893,\n\t\"./ms/_lib/formatDistance/index.js\": 79522,\n\t\"./ms/_lib/formatLong/index.js\": 14333,\n\t\"./ms/_lib/formatRelative/index.js\": 51140,\n\t\"./ms/_lib/localize/index.js\": 97118,\n\t\"./ms/_lib/match/index.js\": 14396,\n\t\"./ms/index.js\": 83148,\n\t\"./mt/_lib/formatDistance/index.js\": 92252,\n\t\"./mt/_lib/formatLong/index.js\": 64778,\n\t\"./mt/_lib/formatRelative/index.js\": 69682,\n\t\"./mt/_lib/localize/index.js\": 57669,\n\t\"./mt/_lib/match/index.js\": 7438,\n\t\"./mt/index.js\": 22598,\n\t\"./nb/_lib/formatDistance/index.js\": 5979,\n\t\"./nb/_lib/formatLong/index.js\": 54727,\n\t\"./nb/_lib/formatRelative/index.js\": 91423,\n\t\"./nb/_lib/localize/index.js\": 99726,\n\t\"./nb/_lib/match/index.js\": 38558,\n\t\"./nb/index.js\": 46815,\n\t\"./nl-BE/_lib/formatDistance/index.js\": 70218,\n\t\"./nl-BE/_lib/formatLong/index.js\": 14661,\n\t\"./nl-BE/_lib/formatRelative/index.js\": 51573,\n\t\"./nl-BE/_lib/localize/index.js\": 20174,\n\t\"./nl-BE/_lib/match/index.js\": 87601,\n\t\"./nl-BE/index.js\": 25778,\n\t\"./nl/_lib/formatDistance/index.js\": 98562,\n\t\"./nl/_lib/formatLong/index.js\": 30221,\n\t\"./nl/_lib/formatRelative/index.js\": 96665,\n\t\"./nl/_lib/localize/index.js\": 90384,\n\t\"./nl/_lib/match/index.js\": 15009,\n\t\"./nl/index.js\": 70390,\n\t\"./nn/_lib/formatDistance/index.js\": 49714,\n\t\"./nn/_lib/formatLong/index.js\": 29983,\n\t\"./nn/_lib/formatRelative/index.js\": 35458,\n\t\"./nn/_lib/localize/index.js\": 87563,\n\t\"./nn/_lib/match/index.js\": 12324,\n\t\"./nn/index.js\": 72495,\n\t\"./pl/_lib/formatDistance/index.js\": 7325,\n\t\"./pl/_lib/formatLong/index.js\": 50807,\n\t\"./pl/_lib/formatRelative/index.js\": 66002,\n\t\"./pl/_lib/localize/index.js\": 12885,\n\t\"./pl/_lib/match/index.js\": 84817,\n\t\"./pl/index.js\": 63618,\n\t\"./pt-BR/_lib/formatDistance/index.js\": 38877,\n\t\"./pt-BR/_lib/formatLong/index.js\": 23903,\n\t\"./pt-BR/_lib/formatRelative/index.js\": 41897,\n\t\"./pt-BR/_lib/localize/index.js\": 78076,\n\t\"./pt-BR/_lib/match/index.js\": 13550,\n\t\"./pt-BR/index.js\": 81333,\n\t\"./pt/_lib/formatDistance/index.js\": 1092,\n\t\"./pt/_lib/formatLong/index.js\": 10063,\n\t\"./pt/_lib/formatRelative/index.js\": 29479,\n\t\"./pt/_lib/localize/index.js\": 81235,\n\t\"./pt/_lib/match/index.js\": 51549,\n\t\"./pt/index.js\": 63086,\n\t\"./ro/_lib/formatDistance/index.js\": 6666,\n\t\"./ro/_lib/formatLong/index.js\": 60333,\n\t\"./ro/_lib/formatRelative/index.js\": 67125,\n\t\"./ro/_lib/localize/index.js\": 39408,\n\t\"./ro/_lib/match/index.js\": 9480,\n\t\"./ro/index.js\": 66088,\n\t\"./ru/_lib/formatDistance/index.js\": 88770,\n\t\"./ru/_lib/formatLong/index.js\": 83233,\n\t\"./ru/_lib/formatRelative/index.js\": 53566,\n\t\"./ru/_lib/localize/index.js\": 81348,\n\t\"./ru/_lib/match/index.js\": 45195,\n\t\"./ru/index.js\": 66754,\n\t\"./sk/_lib/formatDistance/index.js\": 46732,\n\t\"./sk/_lib/formatLong/index.js\": 21831,\n\t\"./sk/_lib/formatRelative/index.js\": 50560,\n\t\"./sk/_lib/localize/index.js\": 31044,\n\t\"./sk/_lib/match/index.js\": 58923,\n\t\"./sk/index.js\": 78259,\n\t\"./sl/_lib/formatDistance/index.js\": 76930,\n\t\"./sl/_lib/formatLong/index.js\": 9273,\n\t\"./sl/_lib/formatRelative/index.js\": 83070,\n\t\"./sl/_lib/localize/index.js\": 42958,\n\t\"./sl/_lib/match/index.js\": 83296,\n\t\"./sl/index.js\": 1139,\n\t\"./sq/_lib/formatDistance/index.js\": 36794,\n\t\"./sq/_lib/formatLong/index.js\": 62624,\n\t\"./sq/_lib/formatRelative/index.js\": 19232,\n\t\"./sq/_lib/localize/index.js\": 76880,\n\t\"./sq/_lib/match/index.js\": 57930,\n\t\"./sq/index.js\": 43852,\n\t\"./sr-Latn/_lib/formatDistance/index.js\": 26261,\n\t\"./sr-Latn/_lib/formatLong/index.js\": 40214,\n\t\"./sr-Latn/_lib/formatRelative/index.js\": 619,\n\t\"./sr-Latn/_lib/localize/index.js\": 25494,\n\t\"./sr-Latn/_lib/match/index.js\": 70091,\n\t\"./sr-Latn/index.js\": 62394,\n\t\"./sr/_lib/formatDistance/index.js\": 94963,\n\t\"./sr/_lib/formatLong/index.js\": 9572,\n\t\"./sr/_lib/formatRelative/index.js\": 32195,\n\t\"./sr/_lib/localize/index.js\": 63747,\n\t\"./sr/_lib/match/index.js\": 59555,\n\t\"./sr/index.js\": 32397,\n\t\"./sv/_lib/formatDistance/index.js\": 93283,\n\t\"./sv/_lib/formatLong/index.js\": 45853,\n\t\"./sv/_lib/formatRelative/index.js\": 46304,\n\t\"./sv/_lib/localize/index.js\": 62185,\n\t\"./sv/_lib/match/index.js\": 31379,\n\t\"./sv/index.js\": 29779,\n\t\"./ta/_lib/formatDistance/index.js\": 74639,\n\t\"./ta/_lib/formatLong/index.js\": 83101,\n\t\"./ta/_lib/formatRelative/index.js\": 14179,\n\t\"./ta/_lib/localize/index.js\": 88574,\n\t\"./ta/_lib/match/index.js\": 6042,\n\t\"./ta/index.js\": 32718,\n\t\"./te/_lib/formatDistance/index.js\": 15919,\n\t\"./te/_lib/formatLong/index.js\": 23003,\n\t\"./te/_lib/formatRelative/index.js\": 15927,\n\t\"./te/_lib/localize/index.js\": 28739,\n\t\"./te/_lib/match/index.js\": 46028,\n\t\"./te/index.js\": 52275,\n\t\"./th/_lib/formatDistance/index.js\": 73448,\n\t\"./th/_lib/formatLong/index.js\": 29011,\n\t\"./th/_lib/formatRelative/index.js\": 46945,\n\t\"./th/_lib/localize/index.js\": 44017,\n\t\"./th/_lib/match/index.js\": 65534,\n\t\"./th/index.js\": 98492,\n\t\"./tr/_lib/formatDistance/index.js\": 91742,\n\t\"./tr/_lib/formatLong/index.js\": 66075,\n\t\"./tr/_lib/formatRelative/index.js\": 38897,\n\t\"./tr/_lib/localize/index.js\": 81281,\n\t\"./tr/_lib/match/index.js\": 20941,\n\t\"./tr/index.js\": 41062,\n\t\"./ug/_lib/formatDistance/index.js\": 31914,\n\t\"./ug/_lib/formatLong/index.js\": 70065,\n\t\"./ug/_lib/formatRelative/index.js\": 4128,\n\t\"./ug/_lib/localize/index.js\": 19758,\n\t\"./ug/_lib/match/index.js\": 60663,\n\t\"./ug/index.js\": 61505,\n\t\"./uk/_lib/formatDistance/index.js\": 2647,\n\t\"./uk/_lib/formatLong/index.js\": 71831,\n\t\"./uk/_lib/formatRelative/index.js\": 80507,\n\t\"./uk/_lib/localize/index.js\": 31882,\n\t\"./uk/_lib/match/index.js\": 88845,\n\t\"./uk/index.js\": 25490,\n\t\"./uz-Cyrl/_lib/formatDistance/index.js\": 59074,\n\t\"./uz-Cyrl/_lib/formatLong/index.js\": 16798,\n\t\"./uz-Cyrl/_lib/formatRelative/index.js\": 65283,\n\t\"./uz-Cyrl/_lib/localize/index.js\": 10755,\n\t\"./uz-Cyrl/_lib/match/index.js\": 56523,\n\t\"./uz-Cyrl/index.js\": 93757,\n\t\"./uz/_lib/formatDistance/index.js\": 55965,\n\t\"./uz/_lib/formatLong/index.js\": 59606,\n\t\"./uz/_lib/formatRelative/index.js\": 81632,\n\t\"./uz/_lib/localize/index.js\": 52970,\n\t\"./uz/_lib/match/index.js\": 29633,\n\t\"./uz/index.js\": 26466,\n\t\"./vi/_lib/formatDistance/index.js\": 72198,\n\t\"./vi/_lib/formatLong/index.js\": 32592,\n\t\"./vi/_lib/formatRelative/index.js\": 20022,\n\t\"./vi/_lib/localize/index.js\": 48125,\n\t\"./vi/_lib/match/index.js\": 8624,\n\t\"./vi/index.js\": 52358,\n\t\"./zh-CN/_lib/formatDistance/index.js\": 31526,\n\t\"./zh-CN/_lib/formatLong/index.js\": 87969,\n\t\"./zh-CN/_lib/formatRelative/index.js\": 6915,\n\t\"./zh-CN/_lib/localize/index.js\": 6890,\n\t\"./zh-CN/_lib/match/index.js\": 95454,\n\t\"./zh-CN/index.js\": 24602,\n\t\"./zh-HK/_lib/formatDistance/index.js\": 84231,\n\t\"./zh-HK/_lib/formatLong/index.js\": 47076,\n\t\"./zh-HK/_lib/formatRelative/index.js\": 53082,\n\t\"./zh-HK/_lib/localize/index.js\": 13653,\n\t\"./zh-HK/_lib/match/index.js\": 88357,\n\t\"./zh-HK/index.js\": 96835,\n\t\"./zh-TW/_lib/formatDistance/index.js\": 63106,\n\t\"./zh-TW/_lib/formatLong/index.js\": 27177,\n\t\"./zh-TW/_lib/formatRelative/index.js\": 13238,\n\t\"./zh-TW/_lib/localize/index.js\": 46341,\n\t\"./zh-TW/_lib/match/index.js\": 7768,\n\t\"./zh-TW/index.js\": 68368\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 63210;","var map = {\n\t\"./Prompt.vue\": 95438,\n\t\"./PromptCheckbox.vue\": 98595,\n\t\"./PromptColor.vue\": 84305,\n\t\"./PromptConfirm.vue\": 86946,\n\t\"./PromptEditor.vue\": 43406,\n\t\"./PromptError.vue\": 5457,\n\t\"./PromptInput.vue\": 67459,\n\t\"./PromptList.vue\": 1181,\n\t\"./PromptsList.vue\": 40133\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 59545;","var map = {\n\t\"./app/About.vue\": 8771,\n\t\"./app/AppLoading.vue\": 86848,\n\t\"./app/ConnectionStatus.vue\": 92761,\n\t\"./app/LocaleLoader.vue\": 65027,\n\t\"./app/NotFound.vue\": 31350,\n\t\"./app/ProgressScreen.vue\": 78794,\n\t\"./app/ProjectHome.vue\": 80890,\n\t\"./app/ProjectQuickDropdown.vue\": 86355,\n\t\"./app/StatusBar.vue\": 59760,\n\t\"./app/TopBar.vue\": 58373,\n\t\"./client-addon/ClientAddonComponent.vue\": 52248,\n\t\"./client-addon/ClientAddonLoader.vue\": 750,\n\t\"./configuration/ConfigurationItem.vue\": 60963,\n\t\"./configuration/ConfigurationTab.vue\": 7591,\n\t\"./configuration/ProjectConfigurationDetails.vue\": 27194,\n\t\"./configuration/ProjectConfigurations.vue\": 41882,\n\t\"./content/ContentView.vue\": 66571,\n\t\"./content/ItemLogo.vue\": 66898,\n\t\"./content/ListFilter.vue\": 61418,\n\t\"./content/ListItemInfo.vue\": 10596,\n\t\"./content/ListSort.vue\": 27164,\n\t\"./content/NavContent.vue\": 43666,\n\t\"./content/NavList.vue\": 47975,\n\t\"./content/StepWizard.vue\": 70500,\n\t\"./content/TerminalView.vue\": 88819,\n\t\"./dashboard/ProjectDashboard.vue\": 94121,\n\t\"./dashboard/Widget.vue\": 96302,\n\t\"./dashboard/WidgetAddItem.vue\": 98699,\n\t\"./dashboard/WidgetAddPane.vue\": 1848,\n\t\"./dashboard/WidgetDetailsView.vue\": 49930,\n\t\"./dependency/NpmPackageSearch.vue\": 41492,\n\t\"./dependency/PackageSearchItem.vue\": 30140,\n\t\"./dependency/ProjectDependencies.vue\": 12686,\n\t\"./dependency/ProjectDependencyItem.vue\": 10296,\n\t\"./file-diff/FileDiff.vue\": 13797,\n\t\"./file-diff/FileDiffChange.vue\": 4756,\n\t\"./file-diff/FileDiffChunk.vue\": 39603,\n\t\"./file-diff/FileDiffView.vue\": 73024,\n\t\"./folder/FolderExplorer.vue\": 40758,\n\t\"./folder/FolderExplorerItem.vue\": 18811,\n\t\"./logger/LoggerMessage.vue\": 52321,\n\t\"./logger/LoggerView.vue\": 4092,\n\t\"./plugin/ProjectPluginAddLocal.vue\": 27670,\n\t\"./plugin/ProjectPluginItem.vue\": 86710,\n\t\"./plugin/ProjectPlugins.vue\": 60866,\n\t\"./plugin/ProjectPluginsAdd.vue\": 7058,\n\t\"./project-create/ProjectCreate.vue\": 89119,\n\t\"./project-create/ProjectFeatureItem.vue\": 21275,\n\t\"./project-create/ProjectPresetItem.vue\": 12110,\n\t\"./project-manager/ProjectRename.vue\": 74737,\n\t\"./project-manager/ProjectSelect.vue\": 84096,\n\t\"./project-manager/ProjectSelectList.vue\": 98805,\n\t\"./project-manager/ProjectSelectListItem.vue\": 22686,\n\t\"./project-manager/ProjectTasksDropdown.vue\": 85268,\n\t\"./prompt/Prompt.vue\": 95438,\n\t\"./prompt/PromptCheckbox.vue\": 98595,\n\t\"./prompt/PromptColor.vue\": 84305,\n\t\"./prompt/PromptConfirm.vue\": 86946,\n\t\"./prompt/PromptEditor.vue\": 43406,\n\t\"./prompt/PromptError.vue\": 5457,\n\t\"./prompt/PromptInput.vue\": 67459,\n\t\"./prompt/PromptList.vue\": 1181,\n\t\"./prompt/PromptsList.vue\": 40133,\n\t\"./search/InstantSearchInput.vue\": 59396,\n\t\"./search/InstantSearchPagination.vue\": 62864,\n\t\"./suggestion/SuggestionBar.vue\": 48416,\n\t\"./suggestion/SuggestionBarItem.vue\": 35764,\n\t\"./suggestion/SuggestionBarList.vue\": 89872,\n\t\"./task/ProjectTaskDetails.vue\": 97368,\n\t\"./task/ProjectTasks.vue\": 83458,\n\t\"./task/TaskItem.vue\": 41210,\n\t\"./view/ViewBadge.vue\": 93262,\n\t\"./view/ViewNav.vue\": 11075,\n\t\"./view/ViewNavButton.vue\": 42703,\n\t\"./view/ViewNavMore.vue\": 84394\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 30835;","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.hmd = function(module) {\n\tmodule = Object.create(module);\n\tif (!module.children) module.children = [];\n\tObject.defineProperty(module, 'exports', {\n\t\tenumerable: true,\n\t\tset: function() {\n\t\t\tthrow new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);\n\t\t}\n\t});\n\treturn module;\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","__webpack_require__.p = \"/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t143: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_vue_cli_ui\"] = self[\"webpackChunk_vue_cli_ui\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [998], function() { return __webpack_require__(31089); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["doc","loc","source","collectFragmentReferences","node","refs","kind","add","name","value","type","selectionSet","selections","forEach","selection","variableDefinitions","def","definitions","definitionRefs","findOperation","i","length","element","oneQuery","operationName","newDoc","hasOwnProperty","opRefs","Set","allRefs","newRefs","refName","size","prevRefs","has","childRefs","childRef","op","push","module","exports","names","unique","defs","filter","concat","render","_vm","this","_h","$createElement","_c","_self","staticClass","_v","_s","$t","domProps","_m","attrs","previousRoute","staticRenderFns","metaInfo","title","data","beforeRouteEnter","next","vm","from","fullPath","component","_e","apollo","loading","query","fetchPolicy","scopedSlots","_u","key","fn","ref","connected","result","clientState","locales","manual","loadLocale","$subscribe","localeAdded","methods","console","log","locale","lang","mergeLocale","strings","addonRouteTimout","computed","isAddonRoute","$route","path","includes","mounted","setTimeout","class","progress","error","on","$event","close","statusMessage","ansiColors","info","debug","props","progressId","String","required","PROGRESS","variables","id","subscribeToMore","document","PROGRESS_CHANGED","updateQuery","previousResult","subscriptionData","progressChanged","PROGRESS_REMOVED","status","message","values","args","l","mixins","DisableScroll","Progress","wide","$responsive","ready","async","$apollo","mutate","mutation","projectCurrent","favorite","toggleCurrentFavorite","openInEditor","showRename","homepage","favoriteProjects","_l","project","openProject","recentProjects","components","ProjectRename","projects","p","sort","slice","$bus","input","file","showLogs","directives","rawName","expression","onProjectClick","nativeOn","onCwdClick","cwd","onConsoleClick","consoleLogLast","toggleDarkMode","onBugReportClick","onTranslateClick","resetPluginApi","lastRoute","enableDarkModeButton","consoleLogAdded","$emit","$router","params","win","window","open","focus","localStorage","setItem","enabled","toString","applyDarkMode","darkMode","script","tag","default","timeout","watch","handler","immediate","ClientAddonApi","awaitComponent","clientAddons","stale","loadAddon","$_lastRead","Date","now","clientAddonAdded","created","addon","url","createElement","setAttribute","body","appendChild","configuration","description","modifiers","selected","icon","plugin","logo","Object","Boolean","visiblePrompts","answerPrompt","Prompts","field","list","tab","tabs","model","callback","$$v","currentTab","label","tabsHaveChanges","link","hasPromptsChanged","cancel","refetch","save","$_init","reduce","obj","$nextTick","init","queries","ref_result","configurations","generateItems","item","slot","search","RestoreRoute","baseRoute","bus","quickOpenProject","getClient","writeQuery","reg","map","route","_t","loaded","vuejs","image","imageUrl","fallbackIcon","displayImage","colorBullet","isMaterialIcon","test","reset","functional","h","showDescription","stopPropagation","apply","arguments","items","Array","currentRoute","get","find","set","hideTabs","_g","_b","$attrs","$listeners","previous","inheritAttrs","$refs","activateChild","activeChildIndex","clear","copyContent","scrollToBottom","fit","defaultTheme","foreground","background","cursor","black","red","brightRed","green","brightGreen","brightYellow","yellow","magenta","brightMagenta","cyan","brightBlue","brightCyan","blue","white","brightBlack","brightWhite","darkTheme","cols","Number","rows","content","undefined","autoSize","options","toolbar","openLinks","theme","$_terminal","resize","c","r","oldValue","initTerminal","setOption","beforeDestroy","dispose","term","Terminal","fitAddon","FitAddon","webLinksAddon","WebLinksAddon","handleLink","$_fitAddon","addEventListener","setContent","indexOf","ln","writeln","split","t","addLog","text","textarea","textValue","emptySelection","hasSelection","selectAll","getSelection","select","execCommand","clearSelection","uri","style","display","refresh","blur","customizing","customizeMode","injected","isWidgetDetailsShown","widgets","widget","onWindowResize","removeEventListener","PADDING","provide","dashboard","OnWindowResize","width","height","left","top","el","$el","bounds","getBoundingClientRect","moving","moveState","resizing","resizeState","isSelected","showDetails","details","shellStyle","mainStyle","customTitle","definition","action","tooltip","disabled","onCalled","openConfig","openDetails","onMoveStart","remove","handle","onResizeStart","showConfig","loadingConfig","saveConfig","shellOrigin","closeDetails","gridSize","getPositionStyle","pxX","pxY","getSizeStyle","pxWidth","pxHeight","x","y","moveGhostStyle","resizeGhostStyle","movable","zoom","removeMoveListeners","onMoveUpdate","onMoveEnd","updateMoveState","e","mouseDeltaX","clientX","$_initalMousePosition","mouseDeltaY","clientY","Math","round","onMoved","showResizeHandle","canBeResized","minWidth","maxWidth","minHeight","maxHeight","resizeHandles","removeResizeListeners","onResizeMove","onResizeEnd","updateResizeState","target","$_resizeHandle","dX","dY","dWidth","dHeight","gridDX","gridDY","gridDWidth","gridDHeight","onResized","GRID_SIZE","ZOOM","state","selectedWidgetId","inject","update","store","fragment","fragmentName","OnGrid","Movable","Resizable","isDetails","addHeaderAction","removeHeaderAction","headerActions","detailsComponent","visibleHeaderActions","hidden","updateShellOrigin","widgetRemove","readQuery","w","writeFragment","shell","transformToGetter","index","findIndex","a","splice","defineProperty","enumerable","configurable","longDescription","count","total","maxCount","definitionId","widgetAdd","widgetDefinitions","filterDefinition","RegExp","replace","match","transformOrigin","hitsPerPage","pageSize","attributesToRetrieve","attributesToHighlight","analyticsTags","filters","selectedIdModel","loadMetadata","scrollResultsToTop","install","selectedId","internalSelectedId","requestAnimationFrame","searchInput","resultsBox","scrollTop","logoUrl","pkg","repository","version","humanDownloadsLast30Days","owner","hasGenerator","hasUiIntegration","official","updateMetadata","avatar","img","Image","onload","src","fetch","then","response","ok","showInstallModal","updateAll","dependencies","b","localeCompare","dependency","openConfirmUninstall","installType","installPlugin","showUninstallModal","uninstallPlugin","dependencyInstall","dependencyUninstall","d","visible","website","dependencyDetails","current","wanted","latest","updating","updateDependency","skip","visibilityChanged","isVisible","new","fileDiff","deleted","collapsed","to","chunk","FileDiffInjection","gitPath","change","ln1","ln2","normal","line","fileDiffs","allCollapsed","setCollapsedToAll","filteredList","$set","showCommitModal","_k","keyCode","commitMessage","commit","Vue","documentVisible","documentFocus","hasFocus","defaultCollapsed","PageVisibility","loadingKey","errors","trim","openParentFolder","editingPath","submitPathEdit","editedPath","openPathEdit","slicePath","openFolder","cwdChangedUpdate","refreshFolder","folderCurrent","toggleFavorite","foldersFavorite","folder","showNewFolder","showHidden","children","createFolder","newFolderName","newFolderValid","isValidName","encodeURIComponent","isValidMultiName","every","SHOW_HIDDEN","getItem","folders","removeItem","beforeRouteLeave","matched","some","m","meta","needProject","resetProjectCwd","folderOpen","folderOpenParent","folderSetFavorite","f","pathInput","parts","startIndex","findSeparator","addPart","substring","folderCreate","listeners","isPackage","pre","_f","date","clearLogs","consoleLogs","onConsoleLogAdded","logs","scrollHeight","addPlugin","pluginLogo","pluginDetails","updatePlugin","shiftKey","isLocal","localPath","full","plugins","tabId","showLocalAdd","pluginId","showCancelInstall","configurationValid","invokePlugin","finishInstall","cancelInstall","closeLocalAdd","localPluginInstalled","pluginInstallation","checkTab","destroyed","step","formData","folderNameValid","folderNameValidationMessage","folderExists","showCancel","detailsValid","projectCreation","preset","selectedPreset","selectPreset","remotePresetInfo","remotePreset","presetValid","createWithoutSaving","feature","toggleFeature","showSavePreset","closeRemotePresetModal","remoteNotGithub","remotePresetValid","createProject","formDataFactory","force","bare","enableGit","gitCommitMessage","packageManager","clone","showRemotePreset","folderNameValidationResult","validForNewPackages","messages","debouncedCheckRemotePreset","$_oldClone","checkRemotePreset","presetApply","remote","rename","newName","busy","importProject","showNoModulesModal","graphQLErrors","filterProjects","compareProjects","removeProject","tasks","preventDefault","countPerStatus","running","bulletClass","task","openTask","stopTask","taskChanged","run","ListItemInfo","prompt","modifiedValue","$options","buffer","JSON","parse","answer","choice","isCheckboxSelected","asnwerCheckbox","extends","checkboxValue","choiceValue","backgroundColor","hex","ColorPicker","generateLabel","isDefault","group","getModule","prompts","types","rawlist","password","groups","groupMap","charAt","toUpperCase","substr","placeholder","Component","searchStore","stop","start","activeRefinements","clearRefinements","totalResults","page","goToFirstPage","goToPreviousPage","primary","goToPage","totalPages","goToNextPage","goToLastPage","withBuiltins","suggestions","newSuggestion","suggestionAdded","s","suggestionRemoved","forceDevtoolsSuggestion","prototype","call","devtoolsLink","navigator","userAgent","vendor","actionLink","ping","animationDelay","suggestion","onTriggerClick","activate","$i18n","command","runTask","showParameters","views","currentView","view","defer","ghost","scrollback","disableStdin","useFlowControl","currentViewComponent","restoreParameters","saveParameters","displayPriority","runDisplayPriority","priority","TaskDetails","Defer","defaultView","taskLogs","terminal","taskLogAdded","taskId","iconData","icons","idle","done","terminated","badge","currentViewName","hasProjectType","resolve","checkProjectType","v","show","hide","imageIcon","defaultPluginIcon","badges","firstNotHiddenBadge","detectLanguage","languages","language","userLanguage","toLowerCase","autoInstallLocale","json","autoDetect","codes","previousCode","code","tryAutoLang","dateFnsLocale","i18n","createTimeago","require","VueI18n","VueTimeago","fallbackLocale","en","silentTranslationWarn","process","newData","deepmerge","getLocaleMessage","setLocaleMessage","maxLength","exceeded","firstEnd","floor","lastStart","ceil","toLocaleString","responsive","finalOptions","assign","innerWidth","innerHeight","genQuery","projectId","SHARED_DATA","sharedData","SHARED_DATA_UPDATED","sharedDataUpdated","mixin","$sharedData","beforeCreate","$data","smartQueries","$watch","bind","destroy","$syncSharedData","_watchers","watcher","$getProjectId","Promise","client","observable","watchQuery","CURRENT_PROJECT_ID","sub","subscribe","currentProjectId","unsubscribe","cb","addSmartQuery","SHARED_DATA_UPDATE","$setSharedData","smartQuery","mapSharedData","namespace","uid","PLUGIN_ACTION_CALL","pluginActionCall","$onPluginActionCalled","addSmartSubscription","PLUGIN_ACTION_CALLED","pluginActionCalled","$onPluginActionResolved","PLUGIN_ACTION_RESOLVED","pluginActionResolved","CONNECTED","DARK_MODE","$apolloData","querySelector","busOptions","$_bus","addListeners","event","$on","isArray","listener","$off","config","optionMergeStrategies","parent","child","ansiUp","AU","use_classes","escape_for_html","ansi_to_html","InstantSearch","VueMeta","Responsive","mobile","tablet","desktop","VueUi","PortalVue","VueObserveVisibility","SharedData","PluginAction","Bus","AnsiColors","Filters","ClientState","SetSize","Focus","VueVirtualScroller","requireComponent","keys","fileName","componentConfig","componentName","lastIndexOf","titleTemplate","routeRequested","Router","router","mode","routes","ProjectHome","redirect","ProjectDashboard","ProjectPlugins","ProjectPluginsAdd","ProjectConfigurations","ProjectConfigurationDetails","ProjectTasks","ProjectTaskDetails","ProjectDependencies","ProjectSelect","ProjectCreate","FileDiffView","About","NotFound","beforeEach","apolloClient","PROJECT_CURRENT","CURRENT_PROJECT_ID_SET","constructor","Map","componentListeners","componentId","toComponentId","delete","addRoutes","restore","addLocalization","getComponent","listenForComponent","reject","gql","app","apolloProvider","App","$mount","valueChanged","PROMPT_ANSWER","stringify","promptAnswer","vars","$_restoreRouteReady","replaceBaseRoute","isSameRoute","getImageUrl","VUE_APP_CLI_UI_DEV","VUE_APP_GRAPHQL_PORT","trailingSlashRE","checkQuery","hash","isObjectEqual","aKeys","bKeys","aVal","bVal","isIncludedRoute","queryIncludes","generateSearchRegex","forcedTheme","exec","location","href","getForcedTheme","Mutation","connectedSet","root","cache","writeData","loadingChange","mod","LOADING","darkModeSet","getElementsByTagName","classList","currentProjectIdSet","VueApollo","endpoint","origin","inMemoryCacheOptions","wsEndpoint","persisting","websocketsOnly","typeDefs","clientStateTypeDefs","resolvers","clientStateResolvers","onCacheInit","clientStateDefaults","wsClient","createApolloClient","defaultClient","defaultOptions","$query","errorPolicy","watchLoading","LOADING_CHANGE","errorHandler","networkError","resetApollo","resetStore","loadDarkMode","setConnected","CONNECTED_SET","raw","DARK_MODE_SET","webpackContext","req","webpackContextResolve","__webpack_require__","o","Error","__webpack_module_cache__","moduleId","cachedModule","__webpack_modules__","deferred","O","chunkIds","notFulfilled","Infinity","fulfilled","j","n","getter","__esModule","g","globalThis","Function","hmd","create","prop","Symbol","toStringTag","nmd","paths","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","chunkLoadingGlobal","self","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/js/chunk-vendors.e81f4e61.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/js/chunk-vendors.e81f4e61.js" new file mode 100644 index 0000000000000000000000000000000000000000..dd9c1169a4443055829cb21a19d4d807fd5aa664 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/dist/js/chunk-vendors.e81f4e61.js" @@ -0,0 +1,108 @@ +(self["webpackChunk_vue_cli_ui"]=self["webpackChunk_vue_cli_ui"]||[]).push([[998],{44059:function(e,t,n){"use strict";n.d(t,{cV:function(){return Lj},ZP:function(){return qT}});var i="top",r="bottom",a="right",o="left",s="auto",l=[i,r,a,o],u="start",c="end",h="clippingParents",d="viewport",f="popper",v="reference",p=l.reduce((function(e,t){return e.concat([t+"-"+u,t+"-"+c])}),[]),g=[].concat(l,[s]).reduce((function(e,t){return e.concat([t,t+"-"+u,t+"-"+c])}),[]),m="beforeRead",w="read",y="afterRead",b="beforeMain",_="main",x="afterMain",M="beforeWrite",z="write",C="afterWrite",S=[m,w,y,b,_,x,M,z,C];function H(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function k(e){var t=H(e).Element;return e instanceof t||e instanceof Element}function P(e){var t=H(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function O(e){if("undefined"===typeof ShadowRoot)return!1;var t=H(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var L=Math.max,V=Math.min,j=Math.round;function T(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),i=1,r=1;if(P(e)&&t){var a=e.offsetHeight,o=e.offsetWidth;o>0&&(i=j(n.width)/o||1),a>0&&(r=j(n.height)/a||1)}return{width:n.width/i,height:n.height/r,top:n.top/r,right:n.right/i,bottom:n.bottom/r,left:n.left/i,x:n.left/i,y:n.top/r}}function E(e){var t=H(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function A(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function D(e){return e!==H(e)&&P(e)?A(e):E(e)}function R(e){return e?(e.nodeName||"").toLowerCase():null}function W(e){return((k(e)?e.ownerDocument:e.document)||window.document).documentElement}function B(e){return T(W(e)).left+E(e).scrollLeft}function I(e){return H(e).getComputedStyle(e)}function N(e){var t=I(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+i)}function F(e){var t=e.getBoundingClientRect(),n=j(t.width)/e.offsetWidth||1,i=j(t.height)/e.offsetHeight||1;return 1!==n||1!==i}function $(e,t,n){void 0===n&&(n=!1);var i=P(t),r=P(t)&&F(t),a=W(t),o=T(e,r),s={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(i||!i&&!n)&&(("body"!==R(t)||N(a))&&(s=D(t)),P(t)?(l=T(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=B(a))),{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function q(e){var t=T(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function U(e){return"html"===R(e)?e:e.assignedSlot||e.parentNode||(O(e)?e.host:null)||W(e)}function X(e){return["html","body","#document"].indexOf(R(e))>=0?e.ownerDocument.body:P(e)&&N(e)?e:X(U(e))}function Y(e,t){var n;void 0===t&&(t=[]);var i=X(e),r=i===(null==(n=e.ownerDocument)?void 0:n.body),a=H(i),o=r?[a].concat(a.visualViewport||[],N(i)?i:[]):i,s=t.concat(o);return r?s:s.concat(Y(U(o)))}function Q(e){return["table","td","th"].indexOf(R(e))>=0}function G(e){return P(e)&&"fixed"!==I(e).position?e.offsetParent:null}function K(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),n=-1!==navigator.userAgent.indexOf("Trident");if(n&&P(e)){var i=I(e);if("fixed"===i.position)return null}var r=U(e);while(P(r)&&["html","body"].indexOf(R(r))<0){var a=I(r);if("none"!==a.transform||"none"!==a.perspective||"paint"===a.contain||-1!==["transform","perspective"].indexOf(a.willChange)||t&&"filter"===a.willChange||t&&a.filter&&"none"!==a.filter)return r;r=r.parentNode}return null}function J(e){var t=H(e),n=G(e);while(n&&Q(n)&&"static"===I(n).position)n=G(n);return n&&("html"===R(n)||"body"===R(n)&&"static"===I(n).position)?t:n||K(e)||t}function Z(e){var t=new Map,n=new Set,i=[];function r(e){n.add(e.name);var a=[].concat(e.requires||[],e.requiresIfExists||[]);a.forEach((function(e){if(!n.has(e)){var i=t.get(e);i&&r(i)}})),i.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||r(e)})),i}function ee(e){var t=Z(e);return S.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}function te(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}function ne(e){var t=e.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{});return Object.keys(t).map((function(e){return t[e]}))}var ie={placement:"bottom",modifiers:[],strategy:"absolute"};function re(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function de(e){var t,n=e.reference,s=e.element,l=e.placement,h=l?ue(l):null,d=l?ce(l):null,f=n.x+n.width/2-s.width/2,v=n.y+n.height/2-s.height/2;switch(h){case i:t={x:f,y:n.y-s.height};break;case r:t={x:f,y:n.y+n.height};break;case a:t={x:n.x+n.width,y:v};break;case o:t={x:n.x-s.width,y:v};break;default:t={x:n.x,y:n.y}}var p=h?he(h):null;if(null!=p){var g="y"===p?"height":"width";switch(d){case u:t[p]=t[p]-(n[g]/2-s[g]/2);break;case c:t[p]=t[p]+(n[g]/2-s[g]/2);break;default:}}return t}function fe(e){var t=e.state,n=e.name;t.modifiersData[n]=de({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var ve={name:"popperOffsets",enabled:!0,phase:"read",fn:fe,data:{}},pe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ge(e){var t=e.x,n=e.y,i=window,r=i.devicePixelRatio||1;return{x:j(t*r)/r||0,y:j(n*r)/r||0}}function me(e){var t,n=e.popper,s=e.popperRect,l=e.placement,u=e.variation,h=e.offsets,d=e.position,f=e.gpuAcceleration,v=e.adaptive,p=e.roundOffsets,g=e.isFixed,m=h.x,w=void 0===m?0:m,y=h.y,b=void 0===y?0:y,_="function"===typeof p?p({x:w,y:b}):{x:w,y:b};w=_.x,b=_.y;var x=h.hasOwnProperty("x"),M=h.hasOwnProperty("y"),z=o,C=i,S=window;if(v){var k=J(n),P="clientHeight",O="clientWidth";if(k===H(n)&&(k=W(n),"static"!==I(k).position&&"absolute"===d&&(P="scrollHeight",O="scrollWidth")),k=k,l===i||(l===o||l===a)&&u===c){C=r;var L=g&&S.visualViewport?S.visualViewport.height:k[P];b-=L-s.height,b*=f?1:-1}if(l===o||(l===i||l===r)&&u===c){z=a;var V=g&&S.visualViewport?S.visualViewport.width:k[O];w-=V-s.width,w*=f?1:-1}}var j,T=Object.assign({position:d},v&&pe),E=!0===p?ge({x:w,y:b}):{x:w,y:b};return w=E.x,b=E.y,f?Object.assign({},T,(j={},j[C]=M?"0":"",j[z]=x?"0":"",j.transform=(S.devicePixelRatio||1)<=1?"translate("+w+"px, "+b+"px)":"translate3d("+w+"px, "+b+"px, 0)",j)):Object.assign({},T,(t={},t[C]=M?b+"px":"",t[z]=x?w+"px":"",t.transform="",t))}function we(e){var t=e.state,n=e.options,i=n.gpuAcceleration,r=void 0===i||i,a=n.adaptive,o=void 0===a||a,s=n.roundOffsets,l=void 0===s||s,u={placement:ue(t.placement),variation:ce(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,me(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,me(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var ye={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:we,data:{}};function be(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},i=t.attributes[e]||{},r=t.elements[e];P(r)&&R(r)&&(Object.assign(r.style,n),Object.keys(i).forEach((function(e){var t=i[e];!1===t?r.removeAttribute(e):r.setAttribute(e,!0===t?"":t)})))}))}function _e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var i=t.elements[e],r=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]),o=a.reduce((function(e,t){return e[t]="",e}),{});P(i)&&R(i)&&(Object.assign(i.style,o),Object.keys(r).forEach((function(e){i.removeAttribute(e)})))}))}}var xe={name:"applyStyles",enabled:!0,phase:"write",fn:be,effect:_e,requires:["computeStyles"]};function Me(e,t,n){var r=ue(e),s=[o,i].indexOf(r)>=0?-1:1,l="function"===typeof n?n(Object.assign({},t,{placement:e})):n,u=l[0],c=l[1];return u=u||0,c=(c||0)*s,[o,a].indexOf(r)>=0?{x:c,y:u}:{x:u,y:c}}function ze(e){var t=e.state,n=e.options,i=e.name,r=n.offset,a=void 0===r?[0,0]:r,o=g.reduce((function(e,n){return e[n]=Me(n,t.rects,a),e}),{}),s=o[t.placement],l=s.x,u=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[i]=o}var Ce={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:ze},Se={left:"right",right:"left",bottom:"top",top:"bottom"};function He(e){return e.replace(/left|right|bottom|top/g,(function(e){return Se[e]}))}var ke={start:"end",end:"start"};function Pe(e){return e.replace(/start|end/g,(function(e){return ke[e]}))}function Oe(e){var t=H(e),n=W(e),i=t.visualViewport,r=n.clientWidth,a=n.clientHeight,o=0,s=0;return i&&(r=i.width,a=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(o=i.offsetLeft,s=i.offsetTop)),{width:r,height:a,x:o+B(e),y:s}}function Le(e){var t,n=W(e),i=E(e),r=null==(t=e.ownerDocument)?void 0:t.body,a=L(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),o=L(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-i.scrollLeft+B(e),l=-i.scrollTop;return"rtl"===I(r||n).direction&&(s+=L(n.clientWidth,r?r.clientWidth:0)-a),{width:a,height:o,x:s,y:l}}function Ve(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&O(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function je(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Te(e){var t=T(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function Ee(e,t){return t===d?je(Oe(e)):k(t)?Te(t):je(Le(W(e)))}function Ae(e){var t=Y(U(e)),n=["absolute","fixed"].indexOf(I(e).position)>=0,i=n&&P(e)?J(e):e;return k(i)?t.filter((function(e){return k(e)&&Ve(e,i)&&"body"!==R(e)})):[]}function De(e,t,n){var i="clippingParents"===t?Ae(e):[].concat(t),r=[].concat(i,[n]),a=r[0],o=r.reduce((function(t,n){var i=Ee(e,n);return t.top=L(i.top,t.top),t.right=V(i.right,t.right),t.bottom=V(i.bottom,t.bottom),t.left=L(i.left,t.left),t}),Ee(e,a));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Re(){return{top:0,right:0,bottom:0,left:0}}function We(e){return Object.assign({},Re(),e)}function Be(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Ie(e,t){void 0===t&&(t={});var n=t,o=n.placement,s=void 0===o?e.placement:o,u=n.boundary,c=void 0===u?h:u,p=n.rootBoundary,g=void 0===p?d:p,m=n.elementContext,w=void 0===m?f:m,y=n.altBoundary,b=void 0!==y&&y,_=n.padding,x=void 0===_?0:_,M=We("number"!==typeof x?x:Be(x,l)),z=w===f?v:f,C=e.rects.popper,S=e.elements[b?z:w],H=De(k(S)?S:S.contextElement||W(e.elements.popper),c,g),P=T(e.elements.reference),O=de({reference:P,element:C,strategy:"absolute",placement:s}),L=je(Object.assign({},C,O)),V=w===f?L:P,j={top:H.top-V.top+M.top,bottom:V.bottom-H.bottom+M.bottom,left:H.left-V.left+M.left,right:V.right-H.right+M.right},E=e.modifiersData.offset;if(w===f&&E){var A=E[s];Object.keys(j).forEach((function(e){var t=[a,r].indexOf(e)>=0?1:-1,n=[i,r].indexOf(e)>=0?"y":"x";j[e]+=A[n]*t}))}return j}function Ne(e,t){void 0===t&&(t={});var n=t,i=n.placement,r=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,u=n.allowedAutoPlacements,c=void 0===u?g:u,h=ce(i),d=h?s?p:p.filter((function(e){return ce(e)===h})):l,f=d.filter((function(e){return c.indexOf(e)>=0}));0===f.length&&(f=d);var v=f.reduce((function(t,n){return t[n]=Ie(e,{placement:n,boundary:r,rootBoundary:a,padding:o})[ue(n)],t}),{});return Object.keys(v).sort((function(e,t){return v[e]-v[t]}))}function Fe(e){if(ue(e)===s)return[];var t=He(e);return[Pe(e),t,Pe(t)]}function $e(e){var t=e.state,n=e.options,l=e.name;if(!t.modifiersData[l]._skip){for(var c=n.mainAxis,h=void 0===c||c,d=n.altAxis,f=void 0===d||d,v=n.fallbackPlacements,p=n.padding,g=n.boundary,m=n.rootBoundary,w=n.altBoundary,y=n.flipVariations,b=void 0===y||y,_=n.allowedAutoPlacements,x=t.options.placement,M=ue(x),z=M===x,C=v||(z||!b?[He(x)]:Fe(x)),S=[x].concat(C).reduce((function(e,n){return e.concat(ue(n)===s?Ne(t,{placement:n,boundary:g,rootBoundary:m,padding:p,flipVariations:b,allowedAutoPlacements:_}):n)}),[]),H=t.rects.reference,k=t.rects.popper,P=new Map,O=!0,L=S[0],V=0;V=0,D=A?"width":"height",R=Ie(t,{placement:j,boundary:g,rootBoundary:m,altBoundary:w,padding:p}),W=A?E?a:o:E?r:i;H[D]>k[D]&&(W=He(W));var B=He(W),I=[];if(h&&I.push(R[T]<=0),f&&I.push(R[W]<=0,R[B]<=0),I.every((function(e){return e}))){L=j,O=!1;break}P.set(j,I)}if(O)for(var N=b?3:1,F=function(e){var t=S.find((function(t){var n=P.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return L=t,"break"},$=N;$>0;$--){var q=F($);if("break"===q)break}t.placement!==L&&(t.modifiersData[l]._skip=!0,t.placement=L,t.reset=!0)}}var qe={name:"flip",enabled:!0,phase:"main",fn:$e,requiresIfExists:["offset"],data:{_skip:!1}};function Ue(e){return"x"===e?"y":"x"}function Xe(e,t,n){return L(e,V(t,n))}function Ye(e,t,n){var i=Xe(e,t,n);return i>n?n:i}function Qe(e){var t=e.state,n=e.options,s=e.name,l=n.mainAxis,c=void 0===l||l,h=n.altAxis,d=void 0!==h&&h,f=n.boundary,v=n.rootBoundary,p=n.altBoundary,g=n.padding,m=n.tether,w=void 0===m||m,y=n.tetherOffset,b=void 0===y?0:y,_=Ie(t,{boundary:f,rootBoundary:v,padding:g,altBoundary:p}),x=ue(t.placement),M=ce(t.placement),z=!M,C=he(x),S=Ue(C),H=t.modifiersData.popperOffsets,k=t.rects.reference,P=t.rects.popper,O="function"===typeof b?b(Object.assign({},t.rects,{placement:t.placement})):b,j="number"===typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,E={x:0,y:0};if(H){if(c){var A,D="y"===C?i:o,R="y"===C?r:a,W="y"===C?"height":"width",B=H[C],I=B+_[D],N=B-_[R],F=w?-P[W]/2:0,$=M===u?k[W]:P[W],U=M===u?-P[W]:-k[W],X=t.elements.arrow,Y=w&&X?q(X):{width:0,height:0},Q=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Re(),G=Q[D],K=Q[R],Z=Xe(0,k[W],Y[W]),ee=z?k[W]/2-F-Z-G-j.mainAxis:$-Z-G-j.mainAxis,te=z?-k[W]/2+F+Z+K+j.mainAxis:U+Z+K+j.mainAxis,ne=t.elements.arrow&&J(t.elements.arrow),ie=ne?"y"===C?ne.clientTop||0:ne.clientLeft||0:0,re=null!=(A=null==T?void 0:T[C])?A:0,ae=B+ee-re-ie,oe=B+te-re,se=Xe(w?V(I,ae):I,B,w?L(N,oe):N);H[C]=se,E[C]=se-B}if(d){var le,de="x"===C?i:o,fe="x"===C?r:a,ve=H[S],pe="y"===S?"height":"width",ge=ve+_[de],me=ve-_[fe],we=-1!==[i,o].indexOf(x),ye=null!=(le=null==T?void 0:T[S])?le:0,be=we?ge:ve-k[pe]-P[pe]-ye+j.altAxis,_e=we?ve+k[pe]+P[pe]-ye-j.altAxis:me,xe=w&&we?Ye(be,ve,_e):Xe(w?be:ge,ve,w?_e:me);H[S]=xe,E[S]=xe-ve}t.modifiersData[s]=E}}var Ge={name:"preventOverflow",enabled:!0,phase:"main",fn:Qe,requiresIfExists:["offset"]},Ke=function(e,t){return e="function"===typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e,We("number"!==typeof e?e:Be(e,l))};function Je(e){var t,n=e.state,s=e.name,l=e.options,u=n.elements.arrow,c=n.modifiersData.popperOffsets,h=ue(n.placement),d=he(h),f=[o,a].indexOf(h)>=0,v=f?"height":"width";if(u&&c){var p=Ke(l.padding,n),g=q(u),m="y"===d?i:o,w="y"===d?r:a,y=n.rects.reference[v]+n.rects.reference[d]-c[d]-n.rects.popper[v],b=c[d]-n.rects.reference[d],_=J(u),x=_?"y"===d?_.clientHeight||0:_.clientWidth||0:0,M=y/2-b/2,z=p[m],C=x-g[v]-p[w],S=x/2-g[v]/2+M,H=Xe(z,S,C),k=d;n.modifiersData[s]=(t={},t[k]=H,t.centerOffset=H-S,t)}}function Ze(e){var t=e.state,n=e.options,i=n.element,r=void 0===i?"[data-popper-arrow]":i;null!=r&&("string"!==typeof r||(r=t.elements.popper.querySelector(r),r))&&Ve(t.elements.popper,r)&&(t.elements.arrow=r)}var et={name:"arrow",enabled:!0,phase:"main",fn:Je,effect:Ze,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function tt(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function nt(e){return[i,a,r,o].some((function(t){return e[t]>=0}))}function it(e){var t=e.state,n=e.name,i=t.rects.reference,r=t.rects.popper,a=t.modifiersData.preventOverflow,o=Ie(t,{elementContext:"reference"}),s=Ie(t,{altBoundary:!0}),l=tt(o,i),u=tt(s,r,a),c=nt(l),h=nt(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":h})}var rt,at={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:it},ot=[le,ve,ye,xe,Ce,qe,Ge,et,at],st=ae({defaultModifiers:ot});function lt(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}function ut(){ut.init||(ut.init=!0,rt=-1!==lt())}var ct={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted:function(){var e=this;ut(),this.$nextTick((function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight,e.emitOnMount&&e.emitSize()}));var t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",rt&&this.$el.appendChild(t),t.data="about:blank",rt||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()},methods:{compareAndNotify:function(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize:function(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!rt&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};function ht(e,t,n,i,r,a,o,s,l,u){"boolean"!==typeof o&&(l=s,s=o,o=!1);var c,h="function"===typeof n?n.options:n;if(e&&e.render&&(h.render=e.render,h.staticRenderFns=e.staticRenderFns,h._compiled=!0,r&&(h.functional=!0)),i&&(h._scopeId=i),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,l(e)),e&&e._registeredComponents&&e._registeredComponents.add(a)},h._ssrRegister=c):t&&(c=o?function(e){t.call(this,u(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,s(e))}),c)if(h.functional){var d=h.render;h.render=function(e,t){return c.call(t),d(e,t)}}else{var f=h.beforeCreate;h.beforeCreate=f?[].concat(f,c):[c]}return n}var dt=ct,ft=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},vt=[];ft._withStripped=!0;var pt=void 0,gt="data-v-8859cc6c",mt=void 0,wt=!1,yt=ht({render:ft,staticRenderFns:vt},pt,dt,gt,wt,mt,!1,void 0,void 0,void 0);function bt(e){e.component("resize-observer",yt),e.component("ResizeObserver",yt)}var _t={version:"1.0.1",install:bt},xt=null;"undefined"!==typeof window?xt=window.Vue:"undefined"!==typeof n.g&&(xt=n.g.Vue),xt&&xt.use(_t);var Mt=_t,zt=n(85416);function Ct(e){return Ct="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ct(e)}function St(e,t,n,i,r,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(i,r)}function Ht(e){return function(){var t=this,n=arguments;return new Promise((function(i,r){var a=e.apply(t,n);function o(e){St(a,i,r,o,s,"next",e)}function s(e){St(a,i,r,o,s,"throw",e)}o(void 0)}))}}function kt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Ot(e){for(var t=1;t=0||(r[n]=e[n]);return r}function Vt(e,t){if(null==e)return{};var n,i,r=Lt(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function jt(e,t){return At(e)||Rt(e,t)||Wt(e,t)||Nt()}function Tt(e){return Et(e)||Dt(e)||Wt(e)||It()}function Et(e){if(Array.isArray(e))return Bt(e)}function At(e){if(Array.isArray(e))return e}function Dt(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function Rt(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){r=!0,a=l}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw a}}return n}}function Wt(e,t){if(e){if("string"===typeof e)return Bt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bt(e,t):void 0}}function Bt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function $t(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&("object"===Ct(t[n])&&e[n]?$t(e[n],t[n]):e[n]=t[n])}var qt={disabled:!1,offset:[0,5],container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",modifiers:[],popperOptions:{},themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:function(e){return[].concat(Tt(e),["click"])},delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function Ut(e,t){var n,i=qt.themes[e]||{};do{n=i[t],"undefined"===typeof n?i.$extend?i=qt.themes[i.$extend]||{}:(i=null,n=qt[t]):i=null}while(i);return n}function Xt(e){var t=[e],n=qt.themes[e]||{};do{n.$extend&&!n.$resetCss?(t.push(n.$extend),n=qt.themes[n.$extend]||{}):n=null}while(n);return t.map((function(e){return"v-popper--theme-".concat(e)}))}var Yt=!1;if("undefined"!==typeof window){Yt=!1;try{var Qt=Object.defineProperty({},"passive",{get:function(){Yt=!0}});window.addEventListener("test",null,Qt)}catch(UT){}}var Gt=!1;function Kt(e,t,n){var i=e.find((function(e){return e.name===t}));for(var r in i||(i={name:t},e.push(i)),n)"options"===r?(i.options||(i.options={}),Object.assign(i.options,n.options)):i[r]=n[r]}"undefined"!==typeof window&&"undefined"!==typeof navigator&&(Gt=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);var Jt={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},Zt={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function en(e,t){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}var tn=[],nn=null,rn=function(){};"undefined"!==typeof window&&(rn=window.Element);var an=function(){return{name:"VPopper",props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,required:!0},popperNode:{type:Function,required:!0},arrowNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:function(){return Ut(this.theme,"disabled")}},placement:{type:String,default:function(){return Ut(this.theme,"placement")},validator:function(e){return g.includes(e)}},delay:{type:[String,Number,Object],default:function(){return Ut(this.theme,"delay")}},offset:{type:[Array,Function],default:function(){return Ut(this.theme,"offset")}},triggers:{type:Array,default:function(){return Ut(this.theme,"triggers")}},showTriggers:{type:[Array,Function],default:function(){return Ut(this.theme,"showTriggers")}},hideTriggers:{type:[Array,Function],default:function(){return Ut(this.theme,"hideTriggers")}},popperTriggers:{type:Array,default:function(){return Ut(this.theme,"popperTriggers")}},popperShowTriggers:{type:[Array,Function],default:function(){return Ut(this.theme,"popperShowTriggers")}},popperHideTriggers:{type:[Array,Function],default:function(){return Ut(this.theme,"popperHideTriggers")}},container:{type:[String,Object,rn,Boolean],default:function(){return Ut(this.theme,"container")}},boundary:{type:[String,rn],default:function(){return Ut(this.theme,"boundary")}},strategy:{type:String,validator:function(e){return["absolute","fixed"].includes(e)},default:function(){return Ut(this.theme,"strategy")}},modifiers:{type:Array,default:function(){return Ut(this.theme,"modifiers")}},popperOptions:{type:Object,default:function(){return Ut(this.theme,"popperOptions")}},autoHide:{type:Boolean,default:function(){return Ut(this.theme,"autoHide")}},handleResize:{type:Boolean,default:function(){return Ut(this.theme,"handleResize")}},instantMove:{type:Boolean,default:function(){return Ut(this.theme,"instantMove")}},eagerMount:{type:Boolean,default:function(){return Ut(this.theme,"eagerMount")}},popperClass:{type:[String,Array,Object],default:function(){return Ut(this.theme,"popperClass")}},computeTransformOrigin:{type:Boolean,default:function(){return Ut(this.theme,"computeTransformOrigin")}},autoMinSize:{type:Boolean,default:function(){return Ut(this.theme,"autoMinSize")}}},data:function(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0}}},computed:{popperId:function(){return null!=this.ariaId?this.ariaId:this.randomId},shouldMountContent:function(){return this.eagerMount||this.isMounted},slotData:function(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:Ot(Ot({},this.classes),{},{popperClass:this.popperClass})}}},watch:{shown:"$_autoShowHide",disabled:function(e){e?this.dispose():this.init()},container:function(){var e=this;return Ht((function*(){e.isShown&&e.popperInstance&&(e.$_ensureContainer(),yield e.popperInstance.update())}))()},triggers:function(){this.$_removeEventListeners(),this.$_addEventListeners()},placement:"$_refreshPopperOptions",offset:"$_refreshPopperOptions",boundary:"$_refreshPopperOptions",strategy:"$_refreshPopperOptions",modifiers:"$_refreshPopperOptions",popperOptions:{handler:"$_refreshPopperOptions",deep:!0}},created:function(){this.$_isDisposed=!0,this.randomId="popper_".concat([Math.random(),Date.now()].map((function(e){return e.toString(36).substring(2,10)})).join("_"))},mounted:function(){this.init()},activated:function(){this.$_autoShowHide()},deactivated:function(){this.hide()},beforeDestroy:function(){this.dispose()},methods:{show:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.event,i=t.skipDelay,r=void 0!==i&&i,a=t.force,o=void 0!==a&&a;!o&&this.disabled||(this.$_scheduleShow(n,r),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame((function(){e.$_showFrameLocked=!1}))),this.$emit("update:shown",!0)},hide:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.event,n=e.skipDelay,i=void 0!==n&&n;this.$_scheduleHide(t,i),this.$emit("hide"),this.$emit("update:shown",!1)},init:function(){this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_targetNodes=this.targetNodes().filter((function(e){return e.nodeType===e.ELEMENT_NODE})),this.$_popperNode=this.popperNode(),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose:function(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.popperInstance&&(this.popperInstance.destroy(),this.$_detachPopperNode()),this.isMounted=!1,this.popperInstance=null,this.isShown=!1,this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},onResize:function(){var e=this;return Ht((function*(){e.isShown&&e.popperInstance&&(yield e.popperInstance.update(),e.$emit("resize"))}))()},$_getPopperOptions:function(){var e=this,t=Ot(Ot({},this.popperOptions),{},{placement:this.placement,strategy:this.strategy,modifiers:this.modifiers,onFirstUpdate:function(){var t=Ht((function*(t){e.popperOptions.onFirstUpdate&&e.popperOptions.onFirstUpdate(t),yield e.$_applyShowEffect()}));function n(e){return t.apply(this,arguments)}return n}()});return t.modifiers||(t.modifiers=[]),Kt(t.modifiers,"arrow",{options:{element:this.arrowNode&&this.arrowNode()||"[data-popper-arrow]"}}),this.offset&&Kt(t.modifiers,"offset",{options:{offset:this.offset}}),this.boundary&&Kt(t.modifiers,"preventOverflow",{options:{boundary:this.boundary}}),this.isShown||Kt(t.modifiers,"eventListeners",{enabled:!1}),t},$_refreshPopperOptions:function(){var e=this;return Ht((function*(){e.popperInstance&&(yield e.popperInstance.setOptions(e.$_getPopperOptions()))}))()},$_scheduleShow:function(){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),nn&&this.instantMove&&nn.instantMove)return nn.$_applyHide(!0),void this.$_applyShow(!0);e?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide:function(){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(nn=this),e?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay:function(e){var t=this.delay;return parseInt(t&&t[e]||t||0)},$_applyShow:function(){var e=arguments,t=this;return Ht((function*(){var n=e.length>0&&void 0!==e[0]&&e[0];clearTimeout(t.$_disposeTimer),clearTimeout(t.$_scheduleTimer),t.skipTransition=n,t.isShown||(t.isMounted||(t.$_ensureContainer(),t.isMounted=!0),t.popperInstance?(yield t.popperInstance.update(),yield t.$_refreshPopperOptions(),yield t.$_applyShowEffect()):t.popperInstance=st(t.referenceNode(),t.$_popperNode,t.$_getPopperOptions()))}))()},$_applyShowEffect:function(){var e=this;return Ht((function*(){if(!e.$_hideInProgress){var t,n=function(){return t||(t=e.referenceNode().getBoundingClientRect())};if(e.computeTransformOrigin){var i=n(),r=e.$_popperNode.querySelector(".v-popper__wrapper"),a=r.parentNode.getBoundingClientRect(),o=i.left+i.width/2-(a.left+r.offsetLeft),s=i.top+i.height/2-(a.top+r.offsetTop);r.style.transformOrigin="".concat(o,"px ").concat(s,"px")}if(e.autoMinSize){var l=n(),u=e.$_popperNode.querySelector(".v-popper__inner"),c=e.$_popperNode.dataset.popperPlacement.split("-"),h=jt(c,1),d=h[0];"left"===d||"right"===d?u.style.minHeight="".concat(l.height,"px"):u.style.minWidth="".concat(l.width,"px")}e.isShown=!0,e.$_applyAttrsToTarget({"aria-describedby":e.popperId,"data-popper-shown":""});var f=e.showGroup;if(f)for(var v,p=0;p0&&void 0!==e[0]&&e[0];if(clearTimeout(t.$_scheduleTimer),t.isShown){t.skipTransition=n,en(tn,t),nn===t&&(nn=null),t.isShown=!1,t.popperInstance&&(yield t.$_refreshPopperOptions()),t.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(t.$_disposeTimer);var i=Ut(t.theme,"disposeTimeout");null!==i&&(t.$_disposeTimer=setTimeout((function(){t.$_popperNode&&(t.$_detachPopperNode(),t.isMounted=!1)}),i)),t.$emit("apply-hide"),t.classes.showFrom=!1,t.classes.showTo=!1,t.classes.hideFrom=!0,t.classes.hideTo=!1,yield hn(),t.classes.hideFrom=!1,t.classes.hideTo=!0}}))()},$_autoShowHide:function(){this.shown?this.show():this.hide()},$_ensureContainer:function(){var e=this.container;if("string"===typeof e?e=window.document.querySelector(e):!1===e&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode)},$_addEventListeners:function(){var e=this,t=function(t,n,i,r,a){var o=i;null!=r&&(o="function"===typeof r?r(o):r),o.forEach((function(i){var r=n[i];r&&(e.$_events.push({targetNodes:t,eventType:r,handler:a}),t.forEach((function(e){return e.addEventListener(r,a,Yt?{passive:!0}:void 0)})))}))},n=function(t){e.isShown&&!e.$_hideInProgress||(t.usedByTooltip=!0,!e.$_preventShow&&e.show({event:t}))};t(this.$_targetNodes,Jt,this.triggers,this.showTriggers,n),t([this.$_popperNode],Jt,this.popperTriggers,this.popperShowTriggers,n);var i=function(t){t.usedByTooltip||e.hide({event:t})};t(this.$_targetNodes,Zt,this.triggers,this.hideTriggers,i),t([this.$_popperNode],Zt,this.popperTriggers,this.popperHideTriggers,i)},$_removeEventListeners:function(){this.$_events.forEach((function(e){var t=e.targetNodes,n=e.eventType,i=e.handler;t.forEach((function(e){return e.removeEventListener(n,i)}))})),this.$_events=[]},$_handleGlobalClose:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),n&&(this.$_preventShow=!0,setTimeout((function(){t.$_preventShow=!1}),300)))},$_handleGlobalResize:function(e){var t=this;return Ht((function*(){t.popperInstance&&(yield t.popperInstance.update())}))()},$_detachPopperNode:function(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs:function(e,t){var n,i=Ft(this.$_targetNodes);try{for(i.s();!(n=i.n()).done;){var r=n.value,a=r.getAttribute(e);a&&(r.removeAttribute(e),r.setAttribute(t,a))}}catch(o){i.e(o)}finally{i.f()}},$_applyAttrsToTarget:function(e){var t,n=Ft(this.$_targetNodes);try{for(n.s();!(t=n.n()).done;){var i=t.value;for(var r in e){var a=e[r];null==a?i.removeAttribute(r):i.setAttribute(r,a)}}}catch(o){n.e(o)}finally{n.f()}}},render:function(e){return this.$scopedSlots.default(this.slotData)[0]}}};function on(e){for(var t=0;t1&&void 0!==arguments[1]&&arguments[1],n=function(n){var i=tn[n],r=i.popperNode(),a=i.$_mouseDownContains||r.contains(e.target);requestAnimationFrame((function(){(e.closeAllPopover||e.closePopover&&a||i.autoHide&&!a)&&i.$_handleGlobalClose(e,t)}))},i=0;i1&&void 0!==arguments[1]?arguments[1]:{};Mi.installed||(Mi.installed=!0,$t(qt,t),e.directive("tooltip",pi),e.directive("close-popper",xi),e.component("v-tooltip",Zn),e.component("VTooltip",Zn),e.component("v-dropdown",Wn),e.component("VDropdown",Wn),e.component("v-menu",Un),e.component("VMenu",Un))}var zi={version:"3.0.0-beta.20",install:Mi,options:qt},Ci=null;"undefined"!==typeof window?Ci=window.Vue:"undefined"!==typeof n.g&&(Ci=n.g.Vue),Ci&&Ci.use(zi);var Si=zi;n(82212);function Hi(e){return Hi="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Hi(e)}function ki(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pi(e,t){return Vi(e)||Ti(e,t)||Ei(e,t)||Ri()}function Oi(e){return Li(e)||ji(e)||Ei(e)||Di()}function Li(e){if(Array.isArray(e))return Ai(e)}function Vi(e){if(Array.isArray(e))return e}function ji(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function Ti(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(n.push(o.value),t&&n.length===t)break}catch(l){r=!0,a=l}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw a}}return n}}function Ei(e,t){if(e){if("string"===typeof e)return Ai(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ai(e,t):void 0}}function Ai(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n(.*)<\/svg>/.exec(r),u=Pi(l,2),c=u[1];r='').concat(c,""),t[n]+=r,(i+1)%40===0&&(t.push(""),n++)}));for(var i=0,r=t;i[0,4]},noPopoverFocus:{type:Boolean,default:!1}},data(){return{isOpen:!1,width:0}},mounted(){this.forceMinSize&&this.$nextTick(this.onResize)},beforeDestroy(){this.removeGlobalMouseEvents()},methods:{onKeyTab(e){if(this.isOpen&&!this.noPopoverFocus){const t=this.$refs.popoverContent.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"]');t&&(e.preventDefault(),t.focus())}},onPopoverContentMousedown(e){this.$emit("popover-mousedown",e),window.addEventListener("mouseup",this.onPopoverContentMouseup)},onPopoverContentMouseup(e){this.$emit("popover-mouseup",e),this.removeGlobalMouseEvents()},onResize(){this.width=this.$el.offsetWidth},onUpdateShown(e){this.isOpen=e},removeGlobalMouseEvents(){window.removeEventListener("mouseup",this.onPopoverContentMouseup)}}};const vV=fV;var pV=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("VDropdown",e._g(e._b({ref:"popover",staticClass:"vue-ui-dropdown",attrs:{"auto-hide":e.autoHide,offset:e.offset,disabled:e.finalDisabled},on:{"update:shown":e.onUpdateShown},nativeOn:{keydown:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"tab",9,t.key,"Tab")?null:e.onKeyTab(t)}},scopedSlots:e._u([{key:"popper",fn:function(){return[n("VueDisable",{ref:"popoverContent",staticClass:"vue-ui-dropdown-content",class:e.contentClass,style:{minWidth:e.forceMinSize?e.width+"px":"0"},attrs:{disabled:!e.isOpen},nativeOn:{mousedown:function(t){return e.onPopoverContentMousedown(t)}}},[e._t("default")],2)]},proxy:!0}],null,!0)},"VDropdown",e.$attrs,!1),e.$listeners),[n("div",{staticClass:"dropdown-trigger"},[e._t("trigger",[n("VueButton",{class:e.buttonClass,attrs:{"icon-left":e.iconLeft,"icon-right":e.iconRight,disabled:e.finalDisabled}},[e._v(e._s(e.label))])])],2),e._v(" "),e._v(" "),e.forceMinSize?n("resize-observer",{on:{notify:e.onResize}}):e._e()],1)},gV=[];pV._withStripped=!0;const mV=void 0,wV=void 0,yV=void 0,bV=!1;var _V=YL({render:pV,staticRenderFns:gV},mV,vV,wV,bV,yV,void 0,void 0),xV={name:"VueDropdownButton",inheritAttrs:!1,props:{keepOpen:{type:Boolean,default:!1}}};const MV=xV;var zV=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("VueButton",e._g(e._b({directives:[{name:"close-popper",rawName:"v-close-popper",value:!e.keepOpen,expression:"!keepOpen"}],staticClass:"vue-ui-dropdown-button"},"VueButton",e.$attrs,!1),e.$listeners),[e._t("default")],2)},CV=[];zV._withStripped=!0;const SV=void 0,HV=void 0,kV=void 0,PV=!1;var OV=YL({render:zV,staticRenderFns:CV},SV,MV,HV,PV,kV,void 0,void 0);const LV={danger:"error",warning:"warning",info:"info",success:"check_circle"};var VV={name:"VueFormField",provide(){return{VueFormField:{data:this.injectedData}}},props:{subtitle:{type:String,default:void 0},subtitleIcon:{type:String,default:void 0},statusIcon:{type:Boolean,default:!1},title:{type:String,default:void 0}},data(){return{injectedData:{focused:!1,status:null}}},computed:{subtitleIconId(){if(this.subtitleIcon)return this.subtitleIcon;if(this.statusIcon){const e=this.injectedData.status;if(e)return LV[e]}}}};const jV=VV;var TV=function(){var e,t,n=this,i=n.$createElement,r=n._self._c||i;return r("div",{staticClass:"vue-ui-form-field",class:(e={focused:n.injectedData.focused},e["status-"+n.injectedData.status]=n.injectedData.status,e)},[r("div",{staticClass:"wrapper"},[r("div",{staticClass:"title"},[n._t("title",[r("span",{domProps:{innerHTML:n._s(n.title)}})])],2),n._v(" "),r("div",{staticClass:"content"},[n._t("default")],2),n._v(" "),r("div",{staticClass:"subtitle",class:(t={},t["vue-ui-text "+n.injectedData.status]=n.injectedData.status,t)},[n.subtitleIconId?r("VueIcon",{attrs:{icon:n.subtitleIconId}}):n._e(),n._v(" "),n._t("subtitle",[r("span",{domProps:{innerHTML:n._s(n.subtitle)}})])],2)])])},EV=[];TV._withStripped=!0;const AV=void 0,DV=void 0,RV=void 0,WV=!1;var BV=YL({render:TV,staticRenderFns:EV},AV,jV,DV,WV,RV,void 0,void 0);function IV(e){return{provide:function(){var t=this,n={};return Object.defineProperty(n,"activeChild",{get:function(){return t.activeChild}}),n.$_addCoupledChild=this.$_addCoupledChild.bind(this),n.$_removeCoupledChild=this.$_removeCoupledChild.bind(this),ki({},e,n)},props:{childIndex:{default:0}},data:function(){return{children:[],activeChildIndex:parseInt(this.childIndex)||0}},computed:{activeChild:function(){if(this.activeChildIndex1&&void 0!==arguments[1]&&arguments[1],n=this.activeChildIndex;e<0?e=0:e>=this.children.length&&(e=this.children.length-1),this.activeChildIndex=e,this.$emit("update:childIndex",e),this.childActivated(e,n,t)},childActivated:function(e,t,n){},$_addCoupledChild:function(e){var t=this;this.$slots&&this.$slots.default&&this.$nextTick((function(){var n=t.$slots.default.reduce((function(e,t){var n=NV(t);return n&&e.push(n.$_couplingProxy),e}),[]),i=n.indexOf(e);-1!==i&&(t.children.splice(i,0,e),t.$_updateChildren("add",i,e))}))},$_removeCoupledChild:function(e){var t=this.children.indexOf(e);-1!==t&&this.children.splice(t,1),this.$_updateChildren("remove",t,e)},$_updateChildren:function(e,t,n){"add"===e?(t<=this.activeChildIndex&&this.activateChild(this.activeChildIndex+1),1===this.children.length&&this.activateChild(0)):"remove"===e&&t<=this.activeChildIndex&&this.activateChild(this.activeChildIndex-1)}}}}function NV(e){var t=e.child;if(t)return t.$_couplingProxy?t:FV(Oi(t.$children))}function FV(e){var t;while(t=e.shift()){if(t.$_couplingProxy)return t;e.push.apply(e,Oi(t.$children))}}var $V={name:"VueGroup",mixins:[IV("VueGroupCoupling")],model:{event:"update"},provide(){return{VueGroup:{data:this.injection,setValue:this.setValue}}},props:{value:{},indicator:{type:Boolean,default:!1}},data(){return{injection:{value:this.value},indicatorStyle:null}},watch:{value(e,t){e!==t&&(this.injection.value=e,this.updateIndicator())},"children.length"(){this.updateIndicator()}},mounted(){this.updateIndicator()},methods:{setValue(e){this.$emit("update",e)},updateIndicator(){this.$nextTick((()=>{const e=this.$el.querySelector(".selected");if(e){const t={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight};let n=e.offsetParent;while(n&&n!==this.$el)t.top+=n.offsetTop,t.left+=n.offsetLeft,n=n.offsetParent;this.indicatorStyle=t}else this.indicatorStyle=null}))}}};const qV=$V;var UV=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-ui-group",class:{"has-indicator":e.indicator}},[n("div",{staticClass:"content-wrapper"},[n("div",{staticClass:"content"},[e._t("default")],2),e._v(" "),e.indicator?n("resize-observer",{on:{notify:function(t){return e.updateIndicator()}}}):e._e()],1),e._v(" "),e.indicator&&e.indicatorStyle?n("div",{staticClass:"indicator",style:{top:e.indicatorStyle.top+"px",left:e.indicatorStyle.left+"px",width:e.indicatorStyle.width+"px",height:e.indicatorStyle.height+"px"}},[n("div",{staticClass:"content"},[e._t("indicator")],2)]):e._e()])},XV=[];UV._withStripped=!0;const YV=void 0,QV=void 0,GV=void 0,KV=!1;var JV=YL({render:UV,staticRenderFns:XV},YV,qV,QV,KV,GV,void 0,void 0);function ZV(e){return{inject:[e],computed:{active:function(){return this[e].activeChild===this.$_couplingProxy}},created:function(){var t=this,n=this.$_couplingProxy={},i=function(e){if("$"===e.charAt(0)||"_"===e.charAt(0))return"continue";Object.defineProperty(n,e,{enumerable:!0,configurable:!1,get:function(){return t.$data[e]}})};for(var r in this.$data)i(r);var a=function(e){if("$"===e.charAt(0)||"_"===e.charAt(0))return"continue";Object.defineProperty(n,e,{enumerable:!0,configurable:!1,get:function(){return t.$props[e]}})};for(var o in this.$props)a(o);Object.defineProperty(n,"$slots",{enumerable:!1,configurable:!1,get:function(){return t.$slots}}),this[e].$_addCoupledChild(n)},beforeDestroy:function(){this[e].$_removeCoupledChild(this.$_couplingProxy)}}}var ej={name:"VueGroupButton",mixins:[ZV("VueGroupCoupling")],inheritAttrs:!1,inject:["VueGroup"],props:{value:{},flat:{type:Boolean,default:!1}},computed:{selected(){return this.value===this.VueGroup.data.value}},watch:{selected(e,t){e!==t&&this.$emit("selected",e)}},methods:{handleClick(...e){this.$emit("click",...e),this.VueGroup.setValue(this.value)}}};const tj=ej;var nj=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("VueButton",e._b({staticClass:"vue-ui-group-button",class:{selected:e.selected,flat:e.flat&&!e.selected},attrs:{"aria-selected":e.selected},on:{click:e.handleClick}},"VueButton",e.$attrs,!1),[e._t("default")],2)},ij=[];nj._withStripped=!0;const rj=void 0,aj=void 0,oj=void 0,sj=!1;var lj=YL({render:nj,staticRenderFns:ij},rj,tj,aj,sj,oj,void 0,void 0);function uj(){return uj=Object.assign||function(e){for(var t,n=1;n{e.setSelectionRange(0,e.value.length),clearTimeout(this.$_selectAllTimer),this.$_selectAllTimer=setTimeout((()=>{this.$_autoSelect=!1}),500)}))}},onBlur(e){this.focused=!1,this.$_autoSelect=!1,this.$emit("blur",e)},onFocus(e){this.focused||(clearTimeout(this.$_selectAllTimer),this.$_autoSelect=!0),this.focused=!0,this.autoSelectAll(),this.$emit("focus",e)},onKeyTab(e){this.showSuggestion&&(this.valueModel=this.suggestion,e.preventDefault(),e.stopPropagation())}}};const wj=mj;var yj=function(){var e,t=this,n=t.$createElement,i=t._self._c||n;return i("div",{staticClass:"vue-ui-input",class:["type-"+t.type,(e={disabled:t.finalDisabled,focused:t.focused,"show-suggestion":t.showSuggestion},e["status-"+t.status]=t.status,e)],on:{click:function(e){return t.focus()}}},[i("div",{staticClass:"content"},[t.loadingLeft?i("VueLoadingIndicator",{staticClass:"small left"}):t.iconLeft?i("VueIcon",{staticClass:"input-icon left",attrs:{icon:t.iconLeft}}):t._e(),t._v(" "),t._t("left"),t._v(" "),i("div",{staticClass:"input-wrapper"},[i("textarea"===t.type?t.type:"input",t._g(t._b({ref:"input",tag:"component",staticClass:"input",attrs:{type:t.type,placeholder:t.placeholder,disabled:t.finalDisabled},domProps:{value:t.valueModel},on:{input:function(e){t.valueModel=e.currentTarget.value},focus:t.onFocus,blur:t.onBlur,keydown:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:t.onKeyTab(e)}}},"component",t.$attrs,!1),t.$listeners)),t._v(" "),t.showSuggestion?i("input",{staticClass:"input suggestion",attrs:{disabled:""},domProps:{value:t.suggestion}}):t._e()],1),t._v(" "),t._t("right"),t._v(" "),t.iconRight?i("VueIcon",{staticClass:"input-icon right",attrs:{icon:t.iconRight}}):t._e(),t._v(" "),t.loadingRight?i("VueLoadingIndicator",{staticClass:"small right"}):t._e(),t._v(" "),i("div",{staticClass:"border"})],2)])},bj=[];yj._withStripped=!0;const _j=void 0,xj=void 0,Mj=void 0,zj=!1;var Cj=YL({render:yj,staticRenderFns:bj},_j,wj,xj,zj,Mj,void 0,void 0),Sj={name:"VueLoadingBar",functional:!0,props:{value:{type:Number,default:0},unknown:{type:Boolean,default:!1}},render:function(e,t){var n=t.props,i=t.data;return i.class=[i.class,{unknown:n.unknown}],e("div",pj([{class:"vue-ui-loading-bar"},i]),[e("div",{class:"bar",style:!n.unknown&&{width:"".concat(100*n.value,"%")}})])}},Hj={name:"VueLoadingIndicator",functional:!0,render:function(e,t){var n=t.data,i=t.children;return e("div",pj([{class:"vue-ui-loading-indicator"},n]),[e("div",{class:"animation"}),i])}},kj=0;function Pj(){return document.querySelectorAll(".vue-ui-disable-scroll, body")}function Oj(){0===kj?Pj().forEach((function(e){return e.classList.remove("vue-ui-no-scroll")})):1===kj&&Pj().forEach((function(e){return e.classList.add("vue-ui-no-scroll")}))}var Lj={mounted:function(){kj++,Oj()},beforeDestroy:function(){kj--,Oj()}},Vj={name:"VueModal",mixins:[Lj],props:{locked:{type:Boolean,default:!1},title:{type:String,default:null}},mounted(){this.$nextTick((()=>{this.$el.focus()}))},methods:{close(){this.locked||this.$emit("close")}}};const jj=Vj;var Tj=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("transition",{attrs:{name:"vue-ui-modal",duration:{enter:1e3,leave:300},appear:""}},[n("div",{staticClass:"vue-ui-modal",class:{locked:e.locked},attrs:{tabindex:"0",role:"dialog","aria-modal":"true"},on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.close()}}},[n("div",{staticClass:"backdrop",on:{click:function(t){return e.close()}}}),e._v(" "),n("div",{staticClass:"shell",on:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:e.close()}}},[n("div",{staticClass:"header"},[e._t("header",[e.title?n("div",{staticClass:"title",domProps:{innerHTML:e._s(e.title)}}):e._e()])],2),e._v(" "),n("div",{staticClass:"body"},[e._t("default")],2),e._v(" "),n("div",{staticClass:"footer"},[e._t("footer")],2),e._v(" "),e.locked?e._e():n("VueButton",{staticClass:"close-button icon-button flat round",attrs:{"icon-left":"close"},on:{click:function(t){return e.close()}}})],1)])])},Ej=[];Tj._withStripped=!0;const Aj=void 0,Dj=void 0,Rj=void 0,Wj=!1;var Bj=YL({render:Tj,staticRenderFns:Ej},Aj,jj,Dj,Wj,Rj,void 0,void 0),Ij={name:"VueSelect",inheritAttrs:!1,model:{event:"update"},mixins:[qL],provide(){return{VueSelect:{setCurrentChild:this.setCurrentChild,getCurrentChild:()=>this.currentChild}}},props:{iconLeft:{type:String,default:null},iconRight:{type:String,default:"keyboard_arrow_down"},label:{type:[String,Number],default:null},placeholder:{type:String,default:"Select..."},popoverClass:{type:String,default:void 0},value:{}},data(){return{currentChild:null}},computed:{displayedLabel(){return this.label?this.label:this.currentChild?this.currentChild.selectLabel||this.currentChild.$attrs.label||this.value:this.placeholder?this.placeholder:this.value},displayedIcon(){return this.iconLeft?this.iconLeft:this.currentChild?this.currentChild.$attrs.icon||this.currentChild.$attrs["icon-left"]:void 0},valueModel:{get(){return this.value},set(e){this.$emit("update",e)}}},methods:{setCurrentChild(e){this.currentChild=e}}};const Nj=Ij;var Fj=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("VueDropdown",e._g(e._b({ref:"dropdown",staticClass:"vue-ui-select",attrs:{disabled:e.finalDisabled,"icon-left":e.displayedIcon,"icon-right":e.iconRight,label:e.displayedLabel,"popover-class":["popover","select-popover",e.popoverClass],"content-class":"vue-ui-select-popover-content","force-min-size":"","eager-mount":""}},"VueDropdown",e.$attrs,!1),e.$listeners),[n("template",{slot:"trigger"},[e._t("trigger",null,{label:e.displayedLabel})],2),e._v(" "),n("VueGroup",{staticClass:"vertical",model:{value:e.valueModel,callback:function(t){e.valueModel=t},expression:"valueModel"}},[e._t("default")],2)],2)},$j=[];Fj._withStripped=!0;const qj=void 0,Uj=void 0,Xj=void 0,Yj=!1;var Qj=YL({render:Fj,staticRenderFns:$j},qj,Nj,Uj,Yj,Xj,void 0,void 0),Gj={name:"VueSelectButton",extends:OV,inject:["VueSelect"],props:{selectLabel:{type:String,default:null}},mounted(){this.onSelect(this.$refs.groupButton.selected)},methods:{onSelect(e){e?this.VueSelect.setCurrentChild(this):this.VueSelect.getCurrentChild()===this&&this.VueSelect.setCurrentChild(null)}}};const Kj=Gj;var Jj=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("VueGroupButton",e._g(e._b({directives:[{name:"close-popper",rawName:"v-close-popper",value:!e.keepOpen,expression:"!keepOpen"}],ref:"groupButton",staticClass:"vue-ui-select-button",attrs:{flat:""},on:{selected:e.onSelect}},"VueGroupButton",e.$attrs,!1),e.$listeners),[e._t("default")],2)},Zj=[];Jj._withStripped=!0;const eT=void 0,tT=void 0,nT=void 0,iT=!1;var rT=YL({render:Jj,staticRenderFns:Zj},eT,Kj,tT,iT,nT,void 0,void 0),aT={name:"VueSwitch",model:{event:"update"},mixins:[qL],props:{icon:{type:String,default:null},value:{}},data(){return{focused:!1}},computed:{valueModel:{get(){return this.value},set(e){this.$emit("update",e)}}},methods:{toggleValue(){this.finalDisabled||(this.valueModel=!this.valueModel)}}};const oT=aT;var sT=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-ui-switch",class:{selected:e.value,disabled:e.finalDisabled,focus:e.focused},attrs:{tabindex:e.disabled?-1:0,role:"checkbox","aria-disabled":e.disabled,"aria-checked":!!e.value},on:{click:e.toggleValue,keydown:[function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter"))return null;e.focused=!0,e.toggleValue(t)},function(t){if(!t.type.indexOf("key")&&e._k(t.keyCode,"space",32,t.key,[" ","Spacebar"]))return null;e.focused=!0,e.toggleValue(t)}],blur:function(t){e.focused=!1}}},[n("div",{staticClass:"content"},[e.icon?n("VueIcon",{attrs:{icon:e.icon}}):e._e(),e._v(" "),n("span",{staticClass:"slot"},[e._t("default")],2),e._v(" "),e._m(0)],1)])},lT=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"wrapper"},[n("div",{staticClass:"bullet"})])}];sT._withStripped=!0;const uT=void 0,cT=void 0,hT=void 0,dT=!1;var fT=YL({render:sT,staticRenderFns:lT},uT,oT,cT,dT,hT,void 0,void 0),vT={name:"VueTab",components:{NoTransition:{functional:!0,render(e,{slots:t}){return t().default[0]}}},mixins:[ZV("VueTabsCoupling")],inject:["VueTabs"],props:{icon:{type:String,default:null},id:{type:[String,Number],required:!0},label:{type:String,default:""},lazy:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},computed:{contentShown(){return!this.lazy||this.showContent}},data(){return{showContent:!1}},watch:{active(e,t){e&&e!==t&&!this.showContent&&(this.showContent=!0)}}};const pT=vT;var gT=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n(e.VueTabs.data.animate?"transition":"NoTransition",{tag:"component",attrs:{name:"vue-ui-tab"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.active,expression:"active"}],staticClass:"vue-ui-tab",class:{selected:e.active},attrs:{role:"tabpanel",tabindex:e.active?"0":null,"aria-hidden":e.active?null:"true"}},[e.contentShown?n("div",{staticClass:"vue-ui-tab-content"},[e._t("default")],2):e._e()])])},mT=[];gT._withStripped=!0;const wT=void 0,yT=void 0,bT=void 0,_T=!1;var xT=YL({render:gT,staticRenderFns:mT},wT,pT,yT,_T,bT,void 0,void 0),MT={name:"VueTabs",mixins:[IV("VueTabsCoupling")],components:{TabButtonContent:{functional:!0,props:{tab:{required:!0}},render(e,{props:t}){const{tab:n}=t;return n.$slots.button}}},provide(){return{VueTabs:{data:this.injectedData}}},props:{animate:{type:Boolean,default:!1},groupClass:{type:[String,Array,Object],default:"primary"},groupNoIndicator:{type:Boolean,default:!1},tabClass:{type:[String,Array,Object],default:"flat big"},tabId:{type:[String,Number],default:null}},data(){return{currentTabId:this.tabId,direction:"to-right",injectedData:{animate:this.animate}}},watch:{animate(e,t){e!==t&&(this.injectedData.animate=e)},currentTabId(e,t){if(e!==t){const t=this.findTabIndex(e);-1!==t&&t!==this.activeChildIndex&&this.activateChild(t,!0),e!==this.tabId&&this.$emit("update:tabId",e)}},tabId(e,t){e!==t&&e!==this.currentTabId&&(this.currentTabId=e)}},methods:{childActivated(e,t,n){const i=this.children[e];i&&i.id!==this.currentTabId&&(this.currentTabId=i.id),this.direction=e===t?"":e{if(!this.$refs.tabButtons)return;const t=this.$refs.tabButtons[e];t&&t.$el.focus()}))},findTabIndex(e){return this.children.findIndex((t=>t.id===e))}}};const zT=MT;var CT=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-ui-tabs",class:["direction-"+e.direction,{animate:e.animate}]},[n("VueGroup",{staticClass:"tabs min-size",class:e.groupClass,attrs:{indicator:!e.groupNoIndicator},model:{value:e.currentTabId,callback:function(t){e.currentTabId=t},expression:"currentTabId"}},e._l(e.children,(function(t,i){return n("VueGroupButton",{key:t.id,ref:"tabButtons",refInFor:!0,staticClass:"tab-button",class:e.tabClass,attrs:{value:t.id,label:t.label,"icon-left":t.icon,disabled:t.disabled,role:"tab",tabindex:"0","aria-controls":"tab-"+i},nativeOn:{keyup:[function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"left",37,t.key,["Left","ArrowLeft"])||"button"in t&&0!==t.button?null:e.activateChild(i-1)},function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"right",39,t.key,["Right","ArrowRight"])||"button"in t&&2!==t.button?null:e.activateChild(i+1)}]}},[n("TabButtonContent",{attrs:{tab:t}})],1)})),1),e._v(" "),n("div",{staticClass:"tabs-content"},[e._t("default")],2)],1)},ST=[];CT._withStripped=!0;const HT=void 0,kT=void 0,PT=void 0,OT=!1;var LT=YL({render:CT,staticRenderFns:ST},HT,zT,kT,OT,PT,void 0,void 0),VT={name:"VueTypeAhead",inheritAttrs:!1,model:{event:"update"},props:{loading:{type:Boolean,default:!1},restrictChoice:{type:Boolean,default:!1},showAll:{type:Boolean,default:!1},showMax:{type:[String,Number],default:10},suggestions:{type:Array,required:!0},value:{default:""}},data(){return{directSelect:!1,dirty:!1,focused:!1,open:!1,tempValue:this.value,lastSuggestions:this.suggestions}},computed:{filteredSuggestions(){const e=this.tempValue;return e?this.suggestions.filter((t=>t.value&&t.value.startsWith(e))):this.showAll?this.suggestions:[]},finalOpen(){return!(!this.open||!this.shownSuggestions.length||1===this.shownSuggestions.length&&this.shownSuggestions[0].value===this.value)},shownSuggestions(){return this.open?this.filteredSuggestions:this.lastSuggestions},suggestion(){if(this.shownSuggestions.length)return this.shownSuggestions[0].value},tempValueModel:{get(){return this.tempValue},set(e){this.tempValue=e,this.dirty=!0,e&&!this.open&&this.showSuggestions()}},valueModel:{get(){return this.value},set(e){this.directSelect=!0,this.tempValue=e,this.$emit("update",e)}}},watch:{filteredSuggestions(e){this.open&&(this.lastSuggestions=e)},value(e,t){e!==t&&e!==this.tempValue&&(this.tempValue=e)}},methods:{getFinalChoice(e){return this.restrictChoice?this.suggestions.find((t=>t.value===e))?e:"":e},onBlur(){this.$nextTick((()=>{if(!this.$_popoverMousedown&&(this.focused=!1,this.open=!1,!this.directSelect)){let e=this.getFinalChoice(this.tempValue);this.restrictChoice&&!e&&(e=this.getFinalChoice(this.value)),this.dirty&&e!==this.value?(this.$emit("update",e),this.tempValue=e):this.tempValue=this.value}}))},onFocus(){this.focused=!0,this.directSelect=!1,this.dirty=!1,this.tempValue="",this.$_popoverMousedown=!1,(this.value||this.showAll)&&this.showSuggestions()},onPopoverContentMousedown(e){this.$_popoverMousedown=!0},onPopoverContentMouseup(e){this.$_popoverMousedown=!1,setTimeout((()=>{this.onBlur()}),100)},showSuggestions(){this.open=!0}}};const jT=VT;var TT=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"vue-ui-type-ahead"},[n("VueSelect",{attrs:{open:e.finalOpen,trigger:"manual","auto-hide":!e.focused,"no-popover-focus":""},on:{"update:open":function(t){return e.open=t},"popover-mousedown":e.onPopoverContentMousedown,"popover-mouseup":e.onPopoverContentMouseup},model:{value:e.valueModel,callback:function(t){e.valueModel=t},expression:"valueModel"}},[n("VueInput",e._b({attrs:{slot:"trigger","loading-right":e.loading,suggestion:e.suggestion},on:{focus:e.onFocus,blur:e.onBlur,keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.onBlur(t)}},slot:"trigger",model:{value:e.tempValueModel,callback:function(t){e.tempValueModel=t},expression:"tempValueModel"}},"VueInput",e.$attrs,!1)),e._v(" "),e.shownSuggestions.length?e._l(e.shownSuggestions.slice(0,e.showMax),(function(t,i){return n("VueSelectButton",{key:i,attrs:{"icon-left":t.icon,value:t.value}},[e._v("\n "+e._s(t.label||t.value)+"\n ")])})):e._e()],2)],1)},ET=[];TT._withStripped=!0;const AT=void 0,DT=void 0,RT=void 0,WT=!1;var BT=YL({render:TT,staticRenderFns:ET},AT,jT,DT,WT,RT,void 0,void 0);function IT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.use($L),e.use(Si,FT({bondary:document.body,themes:{tooltip:{delay:{show:1e3,hide:800},instantMove:!0},dropdown:{handleResize:!1}}},t.vtooltip)),e.use(Mt),e.component("VueButton",nV),e.component("VueDisable",dV),e.component("VueDropdown",_V),e.component("VueDropdownButton",OV),e.component("VueFormField",BV),e.component("VueGroup",JV),e.component("VueGroupButton",lj),e.component("VueIcon",gj),e.component("VueInput",Cj),e.component("VueLoadingBar",Sj),e.component("VueLoadingIndicator",Hj),e.component("VueModal",Bj),e.component("VueSelect",Qj),e.component("VueSelectButton",rT),e.component("VueSwitch",fT),e.component("VueTab",xT),e.component("VueTabs",LT),e.component("VueTypeAhead",BT)}var NT={version:"0.12.5",install:IT};function FT(e,t){for(var n in t)e[n]&&t[n]&&"object"===Hi(e[n])&&"object"===Hi(t[n])?FT(e[n],t[n]):e[n]=t[n];return e}var $T=null;"undefined"!==typeof window?$T=window.Vue:"undefined"!==typeof n.g&&($T=n.g.Vue),$T&&$T.use(NT);var qT=NT},47262:function(e,t,n){"use strict";function i(e,t,n,i,r,a,o,s){var l,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),a&&(u._scopeId="data-v-"+a),o?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),r&&r.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},u._ssrRegister=l):r&&(l=s?function(){r.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(e,t){return l.call(t),c(e,t)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:e,options:u}}n.d(t,{Z:function(){return i}})},82497:function(e,t,n){"use strict";n.d(t,{D:function(){return s}});var i=Object.prototype,r=i.toString,a=i.hasOwnProperty,o=new Map;function s(e,t){try{return l(e,t)}finally{o.clear()}}function l(e,t){if(e===t)return!0;var n=r.call(e),i=r.call(t);if(n!==i)return!1;switch(n){case"[object Array]":if(e.length!==t.length)return!1;case"[object Object]":if(u(e,t))return!0;var o=Object.keys(e),s=Object.keys(t),c=o.length;if(c!==s.length)return!1;for(var h=0;h0;if(i(r)||!o)return o;var s=""+r;return-1!==a(e[t],s)}};e.exports=h},85871:function(e,t,n){"use strict";var i=n(47709),r=n(86330),a=n(37213),o=n(86834),s=n(96965);function l(e,t){var n={},l=r(t,(function(e){return-1!==e.indexOf("attribute:")})),u=a(l,(function(e){return e.split(":")[1]}));-1===s(u,"*")?i(u,(function(t){e.isConjunctiveFacet(t)&&e.isFacetRefined(t)&&(n.facetsRefinements||(n.facetsRefinements={}),n.facetsRefinements[t]=e.facetsRefinements[t]),e.isDisjunctiveFacet(t)&&e.isDisjunctiveFacetRefined(t)&&(n.disjunctiveFacetsRefinements||(n.disjunctiveFacetsRefinements={}),n.disjunctiveFacetsRefinements[t]=e.disjunctiveFacetsRefinements[t]),e.isHierarchicalFacet(t)&&e.isHierarchicalFacetRefined(t)&&(n.hierarchicalFacetsRefinements||(n.hierarchicalFacetsRefinements={}),n.hierarchicalFacetsRefinements[t]=e.hierarchicalFacetsRefinements[t]);var i=e.getNumericRefinements(t);o(i)||(n.numericRefinements||(n.numericRefinements={}),n.numericRefinements[t]=e.numericRefinements[t])})):(o(e.numericRefinements)||(n.numericRefinements=e.numericRefinements),o(e.facetsRefinements)||(n.facetsRefinements=e.facetsRefinements),o(e.disjunctiveFacetsRefinements)||(n.disjunctiveFacetsRefinements=e.disjunctiveFacetsRefinements),o(e.hierarchicalFacetsRefinements)||(n.hierarchicalFacetsRefinements=e.hierarchicalFacetsRefinements));var c=r(t,(function(e){return-1===e.indexOf("attribute:")}));return i(c,(function(t){n[t]=e[t]})),n}e.exports=l},7276:function(e,t,n){"use strict";var i=n(52635),r=n(7566),a=n(6348),o=n(47709),s=n(86330),l=n(37213),u=n(20520),c=n(9086),h=n(96965),d=n(95919),f=n(86834),v=n(89793),p=n(72720),g=n(34461),m=n(93839),w=n(56786),y=n(54771),b=n(17901),_=n(86349),x=n(82048),M=n(85871),z=n(37811);function C(e,t){return w(e,(function(e){return v(e,t)}))}function S(e){var t=e?S._parseNumbers(e):{};this.index=t.index||"",this.query=t.query||"",this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{},this.numericFilters=t.numericFilters,this.tagFilters=t.tagFilters,this.optionalTagFilters=t.optionalTagFilters,this.optionalFacetFilters=t.optionalFacetFilters,this.hitsPerPage=t.hitsPerPage,this.maxValuesPerFacet=t.maxValuesPerFacet,this.page=t.page||0,this.queryType=t.queryType,this.typoTolerance=t.typoTolerance,this.minWordSizefor1Typo=t.minWordSizefor1Typo,this.minWordSizefor2Typos=t.minWordSizefor2Typos,this.minProximity=t.minProximity,this.allowTyposOnNumericTokens=t.allowTyposOnNumericTokens,this.ignorePlurals=t.ignorePlurals,this.restrictSearchableAttributes=t.restrictSearchableAttributes,this.advancedSyntax=t.advancedSyntax,this.analytics=t.analytics,this.analyticsTags=t.analyticsTags,this.synonyms=t.synonyms,this.replaceSynonymsInHighlight=t.replaceSynonymsInHighlight,this.optionalWords=t.optionalWords,this.removeWordsIfNoResults=t.removeWordsIfNoResults,this.attributesToRetrieve=t.attributesToRetrieve,this.attributesToHighlight=t.attributesToHighlight,this.highlightPreTag=t.highlightPreTag,this.highlightPostTag=t.highlightPostTag,this.attributesToSnippet=t.attributesToSnippet,this.getRankingInfo=t.getRankingInfo,this.distinct=t.distinct,this.aroundLatLng=t.aroundLatLng,this.aroundLatLngViaIP=t.aroundLatLngViaIP,this.aroundRadius=t.aroundRadius,this.minimumAroundRadius=t.minimumAroundRadius,this.aroundPrecision=t.aroundPrecision,this.insideBoundingBox=t.insideBoundingBox,this.insidePolygon=t.insidePolygon,this.snippetEllipsisText=t.snippetEllipsisText,this.disableExactOnAttributes=t.disableExactOnAttributes,this.enableExactOnSingleWordQuery=t.enableExactOnSingleWordQuery,this.offset=t.offset,this.length=t.length;var n=this;a(t,(function(e,t){-1===S.PARAMETERS.indexOf(t)&&(n[t]=e)}))}S.PARAMETERS=i(new S),S._parseNumbers=function(e){if(e instanceof S)return e;var t={},n=["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"];if(o(n,(function(n){var i=e[n];if(g(i)){var r=parseFloat(i);t[n]=d(r)?i:r}})),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map((function(e){return e.map((function(e){return parseFloat(e)}))}))),e.numericRefinements){var i={};o(e.numericRefinements,(function(e,t){i[t]={},o(e,(function(e,n){var r=l(e,(function(e){return Array.isArray(e)?l(e,(function(e){return g(e)?parseFloat(e):e})):g(e)?parseFloat(e):e}));i[t][n]=r}))})),t.numericRefinements=i}return _({},e,t)},S.make=function(e){var t=new S(e);return o(e.hierarchicalFacets,(function(e){if(e.rootPath){var n=t.getHierarchicalRefinement(e.name);n.length>0&&0!==n[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),n=t.getHierarchicalRefinement(e.name),0===n.length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}})),t},S.validate=function(e,t){var n=t||{};return e.tagFilters&&n.tagRefinements&&n.tagRefinements.length>0?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):e.tagRefinements.length>0&&n.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&n.numericRefinements&&!f(n.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):!f(e.numericRefinements)&&n.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},S.prototype={constructor:S,clearRefinements:function(e){var t=z.clearRefinement,n={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:t(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:t(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:t(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:t(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return n.numericRefinements===this.numericRefinements&&n.facetsRefinements===this.facetsRefinements&&n.facetsExcludes===this.facetsExcludes&&n.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&n.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(n)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,n){var i=x(n);if(this.isNumericRefined(e,t,i))return this;var r=_({},this.numericRefinements);return r[e]=_({},r[e]),r[e][t]?(r[e][t]=r[e][t].slice(),r[e][t].push(i)):r[e][t]=[i],this.setQueryParameters({numericRefinements:r})},getConjunctiveRefinements:function(e){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,n){if(void 0!==n){var i=x(n);return this.isNumericRefined(e,t,i)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(n,r){return r===e&&n.op===t&&v(n.val,i)}))}):this}return void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(n,i){return i===e&&n.op===t}))}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements((function(t,n){return n===e}))}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(p(e))return f(this.numericRefinements)?this.numericRefinements:{};if(g(e))return f(this.numericRefinements[e])?this.numericRefinements:c(this.numericRefinements,e);if(m(e)){var t=!1,n=u(this.numericRefinements,(function(n,i,r){var a={};return o(i,(function(n,i){var s=[];o(n,(function(t){var n=e({val:t,op:i},r,"numeric");n||s.push(t)})),f(s)?t=!0:(s.length!==n.length&&(t=!0),a[i]=s)})),f(a)||(n[r]=a),n}),{});return t?n:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return z.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:z.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return z.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:z.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return z.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:z.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:s(this.facets,(function(t){return t!==e}))}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:s(this.disjunctiveFacets,(function(t){return t!==e}))}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:s(this.hierarchicalFacets,(function(t){return t.name!==e}))}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return z.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:z.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return z.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:z.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return z.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:z.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:s(this.tagRefinements,(function(t){return t!==e}))};return this.setQueryParameters(t)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:z.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:z.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:z.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),i={},r=void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+n));return r?-1===t.indexOf(n)?i[e]=[]:i[e]=[t.slice(0,t.lastIndexOf(n))]:i[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:b({},i,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");var n={};return n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:b({},n,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))throw new Error(e+" is not refined.");var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:b({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return h(this.disjunctiveFacets,e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return h(this.facets,e)>-1},isFacetRefined:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return z.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return z.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return z.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this.getHierarchicalRefinement(e);return t?-1!==h(n,t):n.length>0},isNumericRefined:function(e,t,n){if(p(n)&&p(t))return!!this.numericRefinements[e];var i=this.numericRefinements[e]&&!p(this.numericRefinements[e][t]);if(p(n)||!i)return i;var r=x(n),a=!p(C(this.numericRefinements[e][t],r));return i&&a},isTagRefined:function(e){return-1!==h(this.tagRefinements,e)},getRefinedDisjunctiveFacets:function(){var e=r(i(this.numericRefinements),this.disjunctiveFacets);return i(this.disjunctiveFacetsRefinements).concat(e).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function(){return r(l(this.hierarchicalFacets,"name"),i(this.hierarchicalFacetsRefinements))},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return s(this.disjunctiveFacets,(function(t){return-1===h(e,t)}))},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={};return a(this,(function(n,i){-1===h(e,i)&&void 0!==n&&(t[i]=n)})),t},getQueryParameter:function(e){if(!this.hasOwnProperty(e))throw new Error("Parameter '"+e+"' is not an attribute of SearchParameters (http://algolia.github.io/algoliasearch-helper-js/docs/SearchParameters.html)");return this[e]},setQueryParameter:function(e,t){if(this[e]===t)return this;var n={};return n[e]=t,this.setQueryParameters(n)},setQueryParameters:function(e){if(!e)return this;var t=S.validate(this,e);if(t)throw t;var n=S._parseNumbers(e);return this.mutateMe((function(t){var r=i(e);return o(r,(function(e){t[e]=n[e]})),t}))},filter:function(e){return M(this,e)},mutateMe:function(e){var t=new this.constructor(this);return e(t,this),t},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!==typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return w(this.hierarchicalFacets,{name:e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))throw new Error("Cannot get the breadcrumb of an unknown hierarchical facet: `"+e+"`");var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),i=t.split(n);return l(i,y)},toString:function(){return JSON.stringify(this,null,2)}},e.exports=S},20686:function(e,t,n){"use strict";var i=n(43323),r=n(52635),a={advancedSyntax:"aS",allowTyposOnNumericTokens:"aTONT",analyticsTags:"aT",analytics:"a",aroundLatLngViaIP:"aLLVIP",aroundLatLng:"aLL",aroundPrecision:"aP",aroundRadius:"aR",attributesToHighlight:"aTH",attributesToRetrieve:"aTR",attributesToSnippet:"aTS",disjunctiveFacetsRefinements:"dFR",disjunctiveFacets:"dF",distinct:"d",facetsExcludes:"fE",facetsRefinements:"fR",facets:"f",getRankingInfo:"gRI",hierarchicalFacetsRefinements:"hFR",hierarchicalFacets:"hF",highlightPostTag:"hPoT",highlightPreTag:"hPrT",hitsPerPage:"hPP",ignorePlurals:"iP",index:"idx",insideBoundingBox:"iBB",insidePolygon:"iPg",length:"l",maxValuesPerFacet:"mVPF",minimumAroundRadius:"mAR",minProximity:"mP",minWordSizefor1Typo:"mWS1T",minWordSizefor2Typos:"mWS2T",numericFilters:"nF",numericRefinements:"nR",offset:"o",optionalWords:"oW",page:"p",queryType:"qT",query:"q",removeWordsIfNoResults:"rWINR",replaceSynonymsInHighlight:"rSIH",restrictSearchableAttributes:"rSA",synonyms:"s",tagFilters:"tF",tagRefinements:"tR",typoTolerance:"tT",optionalTagFilters:"oTF",optionalFacetFilters:"oFF",snippetEllipsisText:"sET",disableExactOnAttributes:"dEOA",enableExactOnSingleWordQuery:"eEOSWQ"},o=i(a);e.exports={ENCODED_PARAMETERS:r(o),decode:function(e){return o[e]},encode:function(e){return a[e]}}},92701:function(e,t,n){"use strict";e.exports=h;var i=n(22972),r=n(37213),a=n(20520),o=n(81473),s=n(54771),l=n(56786),u=n(79922),c=n(69290);function h(e){return function(t,n){var i=e.hierarchicalFacets[n],r=e.hierarchicalFacetsRefinements[i.name]&&e.hierarchicalFacetsRefinements[i.name][0]||"",o=e._getHierarchicalFacetSeparator(i),s=e._getHierarchicalRootPath(i),l=e._getHierarchicalShowParentLevel(i),u=c(e._getHierarchicalFacetSortBy(i)),h=d(u,o,s,l,r),f=t;return s&&(f=t.slice(s.split(o).length)),a(f,h,{name:e.hierarchicalFacets[n].name,count:null,isRefined:!0,path:null,data:null})}}function d(e,t,n,i,a){return function(s,c,h){var d=s;if(h>0){var p=0;d=s;while(p-1&&(p.disjunctiveFacets[u].data[t]=0)}))}})),d++})),i(e.getRefinedHierarchicalFacets(),(function(n){var r=e.getHierarchicalFacetByName(n),a=e._getHierarchicalFacetSeparator(r),s=e.getHierarchicalRefinement(n);if(!(0===s.length||s[0].split(a).length<2)){var l=t[d];i(l.facets,(function(t,n){var i=o(e.hierarchicalFacets,{name:r.name}),l=o(p.hierarchicalFacets[i],{attribute:n});if(-1!==l){var u={};if(s.length>0){var c=s[0].split(a)[0];u[c]=p.hierarchicalFacets[i][l].data[c]}p.hierarchicalFacets[i][l].data=f(u,t,p.hierarchicalFacets[i][l].data)}})),d++}})),i(e.facetsExcludes,(function(e,t){var r=u[t];p.facets[r]={name:t,data:n.facets[t],exhaustive:n.exhaustiveFacetsCount},i(e,(function(e){p.facets[r]=p.facets[r]||{name:t},p.facets[r].data=p.facets[r].data||{},p.facets[r].data[e]=0}))})),this.hierarchicalFacets=h(this.hierarchicalFacets,y(e)),this.facets=r(this.facets),this.disjunctiveFacets=r(this.disjunctiveFacets),this._state=e}function z(e,t){var n={name:t};if(e._state.isConjunctiveFacet(t)){var i=u(e.facets,n);return i?h(i.data,(function(n,i){return{name:i,count:n,isRefined:e._state.isFacetRefined(t,i),isExcluded:e._state.isExcludeRefined(t,i)}})):[]}if(e._state.isDisjunctiveFacet(t)){var r=u(e.disjunctiveFacets,n);return r?h(r.data,(function(n,i){return{name:i,count:n,isRefined:e._state.isDisjunctiveFacetRefined(t,i)}})):[]}if(e._state.isHierarchicalFacet(t))return u(e.hierarchicalFacets,n)}function C(e,t){if(!t.data||0===t.data.length)return t;var n=h(t.data,g(C,e)),i=e(n),r=v({},t,{data:i});return r}function S(e,t){return t.sort(e)}function H(e,t){var n=u(e,{name:t});return n&&n.stats}function k(e,t,n,i,r){var a=u(r,{name:n}),o=s(a,"data["+i+"]"),l=s(a,"exhaustive");return{type:t,attributeName:n,name:i,count:o||0,exhaustive:l||!1}}function P(e,t,n,i){for(var r=u(i,{name:t}),a=e.getHierarchicalFacetByName(t),o=n.split(a.separator),l=o[o.length-1],c=0;void 0!==r&&c0},p.prototype._change=function(e){e!==this.state&&(this.state=e,this.emit("change",this.state,this.lastResults))},p.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},p.prototype.setClient=function(e){return this.client===e||(e.addAlgoliaAgent&&!w(e)&&e.addAlgoliaAgent("JS Helper ("+v+")"),this.client=e),this},p.prototype.getClient=function(){return this.client},p.prototype.derive=function(e){var t=new a(this,e);return this.derivedHelpers.push(t),t},p.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},p.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=p},69290:function(e,t,n){"use strict";var i=n(20520),r=n(56786),a=n(90748);e.exports=function(e,t){return i(e,(function(e,n){var i=n.split(":");if(t&&1===i.length){var o=r(t,(function(e){return a(e,n[0])}));o&&(i=o.split(":"))}return e[0].push(i[0]),e[1].push(i[1]),e}),[[],[]])}},58964:function(e){"use strict";function t(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}e.exports=t},82048:function(e,t,n){"use strict";var i=n(37213),r=n(80022),a=n(34461);function o(e){if(r(e))return e;if(a(e))return parseFloat(e);if(Array.isArray(e))return i(e,o);throw new Error("The value should be a number, a parseable string or an array of those.")}e.exports=o},59242:function(e,t,n){"use strict";var i=n(47709),r=n(37213),a=n(20520),o=n(86349),s={_getQueries:function(e,t){var n=[];return n.push({indexName:e,params:s._getHitsSearchParams(t)}),i(t.getRefinedDisjunctiveFacets(),(function(i){n.push({indexName:e,params:s._getDisjunctiveFacetSearchParams(t,i)})})),i(t.getRefinedHierarchicalFacets(),(function(i){var r=t.getHierarchicalFacetByName(i),a=t.getHierarchicalRefinement(i),o=t._getHierarchicalFacetSeparator(r);a.length>0&&a[0].split(o).length>1&&n.push({indexName:e,params:s._getDisjunctiveFacetSearchParams(t,i,!0)})})),n},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(s._getHitsHierarchicalFacetsAttributes(e)),n=s._getFacetFilters(e),i=s._getNumericFilters(e),r=s._getTagFilters(e),a={facets:t,tagFilters:r};return n.length>0&&(a.facetFilters=n),i.length>0&&(a.numericFilters=i),o(e.getQueryParams(),a)},_getDisjunctiveFacetSearchParams:function(e,t,n){var i=s._getFacetFilters(e,t,n),r=s._getNumericFilters(e,t),a=s._getTagFilters(e),l={hitsPerPage:1,page:0,attributesToRetrieve:[],attributesToHighlight:[],attributesToSnippet:[],tagFilters:a,analytics:!1,clickAnalytics:!1},u=e.getHierarchicalFacetByName(t);return l.facets=u?s._getDisjunctiveHierarchicalFacetAttribute(e,u,n):t,r.length>0&&(l.numericFilters=r),i.length>0&&(l.facetFilters=i),o(e.getQueryParams(),l)},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var n=[];return i(e.numericRefinements,(function(e,a){i(e,(function(e,o){t!==a&&i(e,(function(e){if(Array.isArray(e)){var t=r(e,(function(e){return a+o+e}));n.push(t)}else n.push(a+o+e)}))}))})),n},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,n){var r=[];return i(e.facetsRefinements,(function(e,t){i(e,(function(e){r.push(t+":"+e)}))})),i(e.facetsExcludes,(function(e,t){i(e,(function(e){r.push(t+":-"+e)}))})),i(e.disjunctiveFacetsRefinements,(function(e,n){if(n!==t&&e&&0!==e.length){var a=[];i(e,(function(e){a.push(n+":"+e)})),r.push(a)}})),i(e.hierarchicalFacetsRefinements,(function(i,a){var o=i[0];if(void 0!==o){var s,l,u=e.getHierarchicalFacetByName(a),c=e._getHierarchicalFacetSeparator(u),h=e._getHierarchicalRootPath(u);if(t===a){if(-1===o.indexOf(c)||!h&&!0===n||h&&h.split(c).length===o.split(c).length)return;h?(l=h.split(c).length-1,o=h):(l=o.split(c).length-2,o=o.slice(0,o.lastIndexOf(c))),s=u.attributes[l]}else l=o.split(c).length-1,s=u.attributes[l];s&&r.push([s+":"+o])}})),r},_getHitsHierarchicalFacetsAttributes:function(e){var t=[];return a(e.hierarchicalFacets,(function(t,n){var i=e.getHierarchicalRefinement(n.name)[0];if(!i)return t.push(n.attributes[0]),t;var r=e._getHierarchicalFacetSeparator(n),a=i.split(r).length,o=n.attributes.slice(0,a+1);return t.concat(o)}),t)},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,n){var i=e._getHierarchicalFacetSeparator(t);if(!0===n){var r=e._getHierarchicalRootPath(t),a=0;return r&&(a=r.split(i).length),[t.attributes[a]]}var o=e.getHierarchicalRefinement(t.name)[0]||"",s=o.split(i).length-1;return t.attributes.slice(0,s+1)},getSearchForFacetQuery:function(e,t,n,i){var r=i.isDisjunctiveFacet(e)?i.clearRefinements(e):i,a={facetQuery:t,facetName:e};"number"===typeof n&&(a.maxFacetHits=n);var l=o(s._getHitsSearchParams(r),a);return l}};e.exports=s},97588:function(e,t,n){"use strict";var i=n(20686),r=n(7276),a=n(33348),o=n(8347),s=n(47709),l=n(88423),u=n(37213),c=n(52169),h=n(53792),d=n(34461),f=n(9636),v=n(86834),p=n(43323),g=n(33422).encode;function m(e){return f(e)?h(e,m):Array.isArray(e)?u(e,m):d(e)?g(e):e}var w=["dFR","fR","nR","hFR","tR"],y=i.ENCODED_PARAMETERS;function b(e,t,n,i){if(null!==e&&(n=n.replace(e,""),i=i.replace(e,"")),n=t[n]||n,i=t[i]||i,-1!==y.indexOf(n)||-1!==y.indexOf(i)){if("q"===n)return-1;if("q"===i)return 1;var r=-1!==w.indexOf(n),a=-1!==w.indexOf(i);if(r&&!a)return 1;if(a&&!r)return-1}return n.localeCompare(i)}t.getStateFromQueryString=function(e,t){var n=t&&t.prefix||"",o=t&&t.mapping||{},s=p(o),u=a.parse(e),h=new RegExp("^"+n),d=c(u,(function(e,t){var r=n&&h.test(t),a=r?t.replace(h,""):t,o=i.decode(s[a]||a);return o||a})),f=r._parseNumbers(d);return l(f,r.PARAMETERS)},t.getUnrecognizedParametersInQueryString=function(e,t){var n=t&&t.prefix,r=t&&t.mapping||{},o=p(r),l={},u=a.parse(e);if(n){var c=new RegExp("^"+n);s(u,(function(e,t){c.test(t)||(l[t]=e)}))}else s(u,(function(e,t){i.decode(o[t]||t)||(l[t]=e)}));return l},t.getQueryStringFromState=function(e,t){var n=t&&t.moreAttributes,r=t&&t.prefix||"",s=t&&t.mapping||{},l=t&&t.safe||!1,u=p(s),h=l?e:m(e),d=c(h,(function(e,t){var n=i.encode(t);return r+(s[n]||n)})),f=""===r?null:new RegExp("^"+r),g=o(b,null,f,u);if(!v(n)){var w=a.stringify(d,{encode:l,sort:g}),y=a.stringify(n,{encode:l});return w?w+"&"+y:y}return a.stringify(d,{encode:l,sort:g})}},32061:function(e){"use strict";e.exports="2.28.1"},92564:function(e,t,n){function i(){return!("undefined"===typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!==typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!==typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!==typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function r(e){var n=this.useColors;if(e[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+e[0]+(n?"%c ":" ")+"+"+t.humanize(this.diff),n){var i="color: "+this.color;e.splice(1,0,i,"color: inherit");var r=0,a=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(r++,"%c"===e&&(a=r))})),e.splice(a,0,i)}}function a(){return"object"===typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function o(e){try{null==e?t.storage.removeItem("debug"):t.storage.debug=e}catch(n){}}function s(){var e;try{e=t.storage.debug}catch(n){}return!e&&"undefined"!==typeof process&&"env"in process&&(e={VUE_APP_CLI_UI_URL:"",NODE_ENV:"production",BASE_URL:"/"}.DEBUG),e}function l(){try{return window.localStorage}catch(e){}}t=e.exports=n(59400),t.log=a,t.formatArgs=r,t.save=o,t.load=s,t.useColors=i,t.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:l(),t.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],t.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},t.enable(s())},59400:function(e,t,n){var i;function r(e){var n,i=0;for(n in e)i=(i<<5)-i+e.charCodeAt(n),i|=0;return t.colors[Math.abs(i)%t.colors.length]}function a(e){function n(){if(n.enabled){var e=n,r=+new Date,a=r-(i||r);e.diff=a,e.prev=i,e.curr=r,i=r;for(var o=new Array(arguments.length),s=0;s100)){var o=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(o){var s=parseFloat(o[1]),l=(o[2]||"ms").toLowerCase();switch(l){case"years":case"year":case"yrs":case"yr":case"y":return s*a;case"days":case"day":case"d":return s*r;case"hours":case"hour":case"hrs":case"hr":case"h":return s*i;case"minutes":case"minute":case"mins":case"min":case"m":return s*n;case"seconds":case"second":case"secs":case"sec":case"s":return s*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return s;default:return}}}}function s(e){return e>=r?Math.round(e/r)+"d":e>=i?Math.round(e/i)+"h":e>=n?Math.round(e/n)+"m":e>=t?Math.round(e/t)+"s":e+"ms"}function l(e){return u(e,r,"day")||u(e,i,"hour")||u(e,n,"minute")||u(e,t,"second")||e+" ms"}function u(e,t,n){if(!(e0)return o(e);if("number"===n&&!1===isNaN(e))return t.long?l(e):s(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},69888:function(e,t,n){e.exports=u;var i=n(39181),r=n(13757),a=n(84717),o=n(33030),s=500,l={VUE_APP_CLI_UI_URL:"",NODE_ENV:"production",BASE_URL:"/"}.RESET_APP_DATA_TIMER&&parseInt({VUE_APP_CLI_UI_URL:"",NODE_ENV:"production",BASE_URL:"/"}.RESET_APP_DATA_TIMER,10)||12e4;function u(e,t,r){var a=n(92564)("algoliasearch"),o=n(85279),s=n(10680),l=n(48448),u="Usage: algoliasearch(applicationID, apiKey, opts)";if(!0!==r._allowEmptyCredentials&&!e)throw new i.AlgoliaSearchError("Please provide an application ID. "+u);if(!0!==r._allowEmptyCredentials&&!t)throw new i.AlgoliaSearchError("Please provide an API key. "+u);this.applicationID=e,this.apiKey=t,this.hosts={read:[],write:[]},r=r||{},this._timeouts=r.timeouts||{connect:1e3,read:2e3,write:3e4},r.timeout&&(this._timeouts.connect=this._timeouts.read=this._timeouts.write=r.timeout);var h=r.protocol||"https:";if(/:$/.test(h)||(h+=":"),"http:"!==h&&"https:"!==h)throw new i.AlgoliaSearchError("protocol must be `http:` or `https:` (was `"+r.protocol+"`)");if(this._checkAppIdData(),r.hosts)s(r.hosts)?(this.hosts.read=o(r.hosts),this.hosts.write=o(r.hosts)):(this.hosts.read=o(r.hosts.read),this.hosts.write=o(r.hosts.write));else{var d=l(this._shuffleResult,(function(t){return e+"-"+t+".algolianet.com"})),f=(!1===r.dsn?"":"-dsn")+".algolia.net";this.hosts.read=[this.applicationID+f].concat(d),this.hosts.write=[this.applicationID+".algolia.net"].concat(d)}this.hosts.read=l(this.hosts.read,c(h)),this.hosts.write=l(this.hosts.write,c(h)),this.extraHeaders={},this.cache=r._cache||{},this._ua=r._ua,this._useCache=!(void 0!==r._useCache&&!r._cache)||r._useCache,this._useRequestCache=this._useCache&&r._useRequestCache,this._useFallback=void 0===r.useFallback||r.useFallback,this._setTimeout=r._setTimeout,a("init done, %j",this)}function c(e){return function(t){return e+"//"+t.toLowerCase()}}function h(e){if(void 0===Array.prototype.toJSON)return JSON.stringify(e);var t=Array.prototype.toJSON;delete Array.prototype.toJSON;var n=JSON.stringify(e);return Array.prototype.toJSON=t,n}function d(e){var t,n,i=e.length;while(0!==i)n=Math.floor(Math.random()*i),i-=1,t=e[i],e[i]=e[n],e[n]=t;return e}function f(e){var t={};for(var n in e){var i;if(Object.prototype.hasOwnProperty.call(e,n))i="x-algolia-api-key"===n||"x-algolia-application-id"===n?"**hidden for security purposes**":e[n],t[n]=i}return t}u.prototype.initIndex=function(e){return new a(this,e)},u.prototype.setExtraHeader=function(e,t){this.extraHeaders[e.toLowerCase()]=t},u.prototype.getExtraHeader=function(e){return this.extraHeaders[e.toLowerCase()]},u.prototype.unsetExtraHeader=function(e){delete this.extraHeaders[e.toLowerCase()]},u.prototype.addAlgoliaAgent=function(e){var t="; "+e;-1===this._ua.indexOf(t)&&(this._ua+=t)},u.prototype._jsonRequest=function(e){this._checkAppIdData();var t,a,o,l=n(92564)("algoliasearch:"+e.url),u=e.additionalUA||"",c=e.cache,d=this,v=0,p=!1,g=d._useFallback&&d._request.fallback&&e.fallback;this.apiKey.length>s&&void 0!==e.body&&(void 0!==e.body.params||void 0!==e.body.requests)?(e.body.apiKey=this.apiKey,o=this._computeRequestHeaders({additionalUA:u,withApiKey:!1,headers:e.headers})):o=this._computeRequestHeaders({additionalUA:u,headers:e.headers}),void 0!==e.body&&(t=h(e.body)),l("request start");var m=[];function w(n,r){d._checkAppIdData();var s=new Date;if(d._useCache&&!d._useRequestCache&&(a=e.url),d._useCache&&!d._useRequestCache&&t&&(a+="_body_"+r.body),y(!d._useRequestCache,c,a)){l("serving response from cache");var b=c[a];return d._promise.resolve({body:JSON.parse(b),responseText:b})}if(v>=d.hosts[e.hostType].length)return!g||p?(l("could not get any response"),d._promise.reject(new i.AlgoliaSearchError("Cannot connect to the AlgoliaSearch API. Send an email to support@algolia.com to report and resolve the issue. Application id was: "+d.applicationID,{debugData:m}))):(l("switching to fallback"),v=0,r.method=e.fallback.method,r.url=e.fallback.url,r.jsonBody=e.fallback.body,r.jsonBody&&(r.body=h(r.jsonBody)),o=d._computeRequestHeaders({additionalUA:u,headers:e.headers}),r.timeouts=d._getTimeoutsForRequest(e.hostType),d._setHostIndexByType(0,e.hostType),p=!0,w(d._request.fallback,r));var _=d._getHostByType(e.hostType),x=_+r.url,M={body:r.body,jsonBody:r.jsonBody,method:r.method,headers:o,timeouts:r.timeouts,debug:l,forceAuthHeaders:r.forceAuthHeaders};return l("method: %s, url: %s, headers: %j, timeouts: %d",M.method,x,M.headers,M.timeouts),n===d._request.fallback&&l("using fallback"),n.call(d,x,M).then(z,C);function z(e){var n=e&&e.body&&e.body.message&&e.body.status||e.statusCode||e&&e.body&&200;l("received response: statusCode: %s, computed statusCode: %d, headers: %j",e.statusCode,n,e.headers);var u=2===Math.floor(n/100),h=new Date;if(m.push({currentHost:_,headers:f(o),content:t||null,contentLength:void 0!==t?t.length:null,method:r.method,timeouts:r.timeouts,url:r.url,startTime:s,endTime:h,duration:h-s,statusCode:n}),u)return d._useCache&&!d._useRequestCache&&c&&(c[a]=e.responseText),{responseText:e.responseText,body:e.body};var p=4!==Math.floor(n/100);if(p)return v+=1,S();l("unrecoverable error");var g=new i.AlgoliaSearchError(e.body&&e.body.message,{debugData:m,statusCode:n});return d._promise.reject(g)}function C(n){l("error: %s, stack: %s",n.message,n.stack);var a=new Date;return m.push({currentHost:_,headers:f(o),content:t||null,contentLength:void 0!==t?t.length:null,method:r.method,timeouts:r.timeouts,url:r.url,startTime:s,endTime:a,duration:a-s}),n instanceof i.AlgoliaSearchError||(n=new i.Unknown(n&&n.message,n)),v+=1,n instanceof i.Unknown||n instanceof i.UnparsableJSON||v>=d.hosts[e.hostType].length&&(p||!g)?(n.debugData=m,d._promise.reject(n)):n instanceof i.RequestTimeout?H():S()}function S(){return l("retrying request"),d._incrementHostIndex(e.hostType),w(n,r)}function H(){return l("retrying request with higher timeout"),d._incrementHostIndex(e.hostType),d._incrementTimeoutMultipler(),r.timeouts=d._getTimeoutsForRequest(e.hostType),w(n,r)}}function y(e,t,n){return d._useCache&&e&&t&&void 0!==t[n]}function b(t,n){if(y(d._useRequestCache,c,a)&&t.catch((function(){delete c[a]})),"function"!==typeof e.callback)return t.then(n);t.then((function(t){r((function(){e.callback(null,n(t))}),d._setTimeout||setTimeout)}),(function(t){r((function(){e.callback(t)}),d._setTimeout||setTimeout)}))}if(d._useCache&&d._useRequestCache&&(a=e.url),d._useCache&&d._useRequestCache&&t&&(a+="_body_"+t),y(d._useRequestCache,c,a)){l("serving request from cache");var _=c[a],x="function"!==typeof _.then?d._promise.resolve({responseText:_}):_;return b(x,(function(e){return JSON.parse(e.responseText)}))}var M=w(d._request,{url:e.url,method:e.method,body:t,jsonBody:e.body,timeouts:d._getTimeoutsForRequest(e.hostType),forceAuthHeaders:e.forceAuthHeaders});return d._useCache&&d._useRequestCache&&c&&(c[a]=M),b(M,(function(e){return e.body}))},u.prototype._getSearchParams=function(e,t){if(void 0===e||null===e)return t;for(var n in e)null!==n&&void 0!==e[n]&&e.hasOwnProperty(n)&&(t+=""===t?"":"&",t+=n+"="+encodeURIComponent("[object Array]"===Object.prototype.toString.call(e[n])?h(e[n]):e[n]));return t},u.prototype._computeRequestHeaders=function(e){var t=n(38608),i=e.additionalUA?this._ua+"; "+e.additionalUA:this._ua,r={"x-algolia-agent":i,"x-algolia-application-id":this.applicationID};return!1!==e.withApiKey&&(r["x-algolia-api-key"]=this.apiKey),this.userToken&&(r["x-algolia-usertoken"]=this.userToken),this.securityTags&&(r["x-algolia-tagfilters"]=this.securityTags),t(this.extraHeaders,(function(e,t){r[t]=e})),e.headers&&t(e.headers,(function(e,t){r[t]=e})),r},u.prototype.search=function(e,t,i){var r=n(10680),a=n(48448),o="Usage: client.search(arrayOfQueries[, callback])";if(!r(e))throw new Error(o);"function"===typeof t?(i=t,t={}):void 0===t&&(t={});var s=this,l={requests:a(e,(function(e){var t="";return void 0!==e.query&&(t+="query="+encodeURIComponent(e.query)),{indexName:e.indexName,params:s._getSearchParams(e.params,t)}}))},u=a(l.requests,(function(e,t){return t+"="+encodeURIComponent("/1/indexes/"+encodeURIComponent(e.indexName)+"?"+e.params)})).join("&"),c="/1/indexes/*/queries";return void 0!==t.strategy&&(l.strategy=t.strategy),this._jsonRequest({cache:this.cache,method:"POST",url:c,body:l,hostType:"read",fallback:{method:"GET",url:"/1/indexes/*",body:{params:u}},callback:i})},u.prototype.searchForFacetValues=function(e){var t=n(10680),i=n(48448),r="Usage: client.searchForFacetValues([{indexName, params: {facetName, facetQuery, ...params}}, ...queries])";if(!t(e))throw new Error(r);var a=this;return a._promise.all(i(e,(function(e){if(!e||void 0===e.indexName||void 0===e.params.facetName||void 0===e.params.facetQuery)throw new Error(r);var t=n(85279),i=n(1802),o=e.indexName,s=e.params,l=s.facetName,u=i(t(s),(function(e){return"facetName"===e})),c=a._getSearchParams(u,"");return a._jsonRequest({cache:a.cache,method:"POST",url:"/1/indexes/"+encodeURIComponent(o)+"/facets/"+encodeURIComponent(l)+"/query",hostType:"read",body:{params:c}})})))},u.prototype.setSecurityTags=function(e){if("[object Array]"===Object.prototype.toString.call(e)){for(var t=[],n=0;nl?this._resetInitialAppIdData(e):e},u.prototype._resetInitialAppIdData=function(e){var t=e||{};return t.hostIndexes={read:0,write:0},t.timeoutMultiplier=1,t.shuffleResult=t.shuffleResult||d([1,2,3]),this._setAppIdData(t)},u.prototype._cacheAppIdData=function(e){this._hostIndexes=e.hostIndexes,this._timeoutMultiplier=e.timeoutMultiplier,this._shuffleResult=e.shuffleResult},u.prototype._partialAppIdDataUpdate=function(e){var t=n(38608),i=this._getAppIdData();return t(e,(function(e,t){i[t]=e})),this._setAppIdData(i)},u.prototype._getHostByType=function(e){return this.hosts[e][this._getHostIndexByType(e)]},u.prototype._getTimeoutMultiplier=function(){return this._timeoutMultiplier},u.prototype._getHostIndexByType=function(e){return this._hostIndexes[e]},u.prototype._setHostIndexByType=function(e,t){var i=n(85279),r=i(this._hostIndexes);return r[t]=e,this._partialAppIdDataUpdate({hostIndexes:r}),e},u.prototype._incrementHostIndex=function(e){return this._setHostIndexByType((this._getHostIndexByType(e)+1)%this.hosts[e].length,e)},u.prototype._incrementTimeoutMultipler=function(){var e=Math.max(this._timeoutMultiplier+1,4);return this._partialAppIdDataUpdate({timeoutMultiplier:e})},u.prototype._getTimeoutsForRequest=function(e){return{connect:this._timeouts.connect*this._timeoutMultiplier,complete:this._timeouts[e]*this._timeoutMultiplier}}},84717:function(e,t,n){var i=n(15686),r=n(78207),a=n(69009);function o(e,t){this.indexName=t,this.as=e,this.typeAheadArgs=null,this.typeAheadValueOption=null,this.cache={}}e.exports=o,o.prototype.clearCache=function(){this.cache={}},o.prototype.search=i("query"),o.prototype.similarSearch=r(i("similarQuery"),a("index.similarSearch(query[, callback])","index.search({ similarQuery: query }[, callback])")),o.prototype.browse=function(e,t,i){var r,a,o=n(57182),s=this;0===arguments.length||1===arguments.length&&"function"===typeof arguments[0]?(r=0,i=arguments[0],e=void 0):"number"===typeof arguments[0]?(r=arguments[0],"number"===typeof arguments[1]?a=arguments[1]:"function"===typeof arguments[1]&&(i=arguments[1],a=void 0),e=void 0,t=void 0):"object"===typeof arguments[0]?("function"===typeof arguments[1]&&(i=arguments[1]),t=arguments[0],e=void 0):"string"===typeof arguments[0]&&"function"===typeof arguments[1]&&(i=arguments[1],t=void 0),t=o({},t||{},{page:r,hitsPerPage:a,query:e});var l=this.as._getSearchParams(t,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(s.indexName)+"/browse",body:{params:l},hostType:"read",callback:i})},o.prototype.browseFrom=function(e,t){return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/browse",body:{cursor:e},hostType:"read",callback:t})},o.prototype.searchForFacetValues=function(e,t){var i=n(85279),r=n(1802),a="Usage: index.searchForFacetValues({facetName, facetQuery, ...params}[, callback])";if(void 0===e.facetName||void 0===e.facetQuery)throw new Error(a);var o=e.facetName,s=r(i(e),(function(e){return"facetName"===e})),l=this.as._getSearchParams(s,"");return this.as._jsonRequest({method:"POST",url:"/1/indexes/"+encodeURIComponent(this.indexName)+"/facets/"+encodeURIComponent(o)+"/query",hostType:"read",body:{params:l},callback:t})},o.prototype.searchFacet=r((function(e,t){return this.searchForFacetValues(e,t)}),a("index.searchFacet(params[, callback])","index.searchForFacetValues(params[, callback])")),o.prototype._search=function(e,t,n,i){return this.as._jsonRequest({cache:this.cache,method:"POST",url:t||"/1/indexes/"+encodeURIComponent(this.indexName)+"/query",body:{params:e},hostType:"read",fallback:{method:"GET",url:"/1/indexes/"+encodeURIComponent(this.indexName),body:{params:e}},callback:n,additionalUA:i})},o.prototype.getObject=function(e,t,n){var i=this;1!==arguments.length&&"function"!==typeof t||(n=t,t=void 0);var r="";if(void 0!==t){r="?attributes=";for(var a=0;a1&&p()}}))},d.prototype._request.fallback=function(e,t){return e=s(e,t.headers),new r((function(n,i){l(e,t,(function(e,t){e?i(e):n(t)}))}))},d.prototype._promise={reject:function(e){return r.reject(e)},resolve:function(e){return r.resolve(e)},delay:function(e){return new r((function(t){setTimeout(t,e)}))},all:function(e){return r.all(e)}},c}},62488:function(e,t,n){"use strict";e.exports=r;var i=n(41659);function r(e,t){return/\?/.test(e)?e+="&":e+="?",e+i(t)}},27119:function(e,t,n){"use strict";e.exports=a;var i=n(39181),r=0;function a(e,t,n){if("GET"===t.method){t.debug("JSONP: start");var a=!1,o=!1;r+=1;var s=document.getElementsByTagName("head")[0],l=document.createElement("script"),u="algoliaJSONP_"+r,c=!1;window[u]=function(e){p(),o?t.debug("JSONP: Late answer, ignoring"):(a=!0,v(),n(null,{body:e,responseText:JSON.stringify(e)}))},e+="&callback="+u,t.jsonBody&&t.jsonBody.params&&(e+="&"+t.jsonBody.params);var h=setTimeout(g,t.timeouts.complete);l.onreadystatechange=f,l.onload=d,l.onerror=m,l.async=!0,l.defer=!0,l.src=e,s.appendChild(l)}else n(new Error("Method "+t.method+" "+e+" is not supported by JSONP."));function d(){t.debug("JSONP: success"),c||o||(c=!0,a||(t.debug("JSONP: Fail. Script loaded but did not call the callback"),v(),n(new i.JSONPScriptFail)))}function f(){"loaded"!==this.readyState&&"complete"!==this.readyState||d()}function v(){clearTimeout(h),l.onload=null,l.onreadystatechange=null,l.onerror=null,s.removeChild(l)}function p(){try{delete window[u],delete window[u+"_loaded"]}catch(e){window[u]=window[u+"_loaded"]=void 0}}function g(){t.debug("JSONP: Script timeout"),o=!0,v(),n(new i.RequestTimeout)}function m(){t.debug("JSONP: Script error"),c||o||(v(),n(new i.JSONPScriptError))}}},15686:function(e,t,n){e.exports=r;var i=n(39181);function r(e,t){return function(n,r,a){if("function"===typeof n&&"object"===typeof r||"object"===typeof a)throw new i.AlgoliaSearchError("index.search usage is index.search(query, params, cb)");0===arguments.length||"function"===typeof n?(a=n,n=""):1!==arguments.length&&"function"!==typeof r||(a=r,r=void 0),"object"===typeof n&&null!==n?(r=n,n=void 0):void 0!==n&&null!==n||(n="");var o,s="";return void 0!==n&&(s+=e+"="+encodeURIComponent(n)),void 0!==r&&(r.additionalUA&&(o=r.additionalUA,delete r.additionalUA),s=this.as._getSearchParams(r,s)),this._search(s,t,a,o)}}},85279:function(e){e.exports=function(e){return JSON.parse(JSON.stringify(e))}},78207:function(e){e.exports=function(e,t){var n=!1;function i(){return n||(console.warn(t),n=!0),e.apply(this,arguments)}return i}},69009:function(e){e.exports=function(e,t){var n=e.toLowerCase().replace(/[\.\(\)]/g,"");return"algoliasearch: `"+e+"` was replaced by `"+t+"`. Please see https://github.com/algolia/algoliasearch-client-javascript/wiki/Deprecated#"+n}},39181:function(e,t,n){"use strict";var i=n(22111);function r(e,t){var i=n(38608),r=this;"function"===typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):r.stack=(new Error).stack||"Cannot get a stacktrace, browser is too old",this.name="AlgoliaSearchError",this.message=e||"Unknown error",t&&i(t,(function(e,t){r[t]=e}))}function a(e,t){function n(){var n=Array.prototype.slice.call(arguments,0);"string"!==typeof n[0]&&n.unshift(t),r.apply(this,n),this.name="AlgoliaSearch"+e+"Error"}return i(n,r),n}i(r,Error),e.exports={AlgoliaSearchError:r,UnparsableJSON:a("UnparsableJSON","Could not parse the incoming response as JSON, see err.more for details"),RequestTimeout:a("RequestTimeout","Request timed out before getting a response"),Network:a("Network","Network issue, see err.more for details"),JSONPScriptFail:a("JSONPScriptFail"," + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/assets/done.png" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/assets/done.png" new file mode 100644 index 0000000000000000000000000000000000000000..844970e622ac4d93b475e1f7f21a24fe95f8310c Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/assets/done.png" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/assets/error.png" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/assets/error.png" new file mode 100644 index 0000000000000000000000000000000000000000..335e6b492908131ec7094df3586a3265c816e42b Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/assets/error.png" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/assets/logo.png" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/assets/logo.png" new file mode 100644 index 0000000000000000000000000000000000000000..8e984b9bca3927103625cc3c0863f06d0f643e82 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/assets/logo.png" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/assets/search-by-algolia.svg" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/assets/search-by-algolia.svg" new file mode 100644 index 0000000000000000000000000000000000000000..989ed6ab8ffac6572c670c274ecc8b5b717f0580 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/assets/search-by-algolia.svg" @@ -0,0 +1 @@ +search-by-algolia \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/About.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/About.vue" new file mode 100644 index 0000000000000000000000000000000000000000..1601d365d4df95b366907b2f9252937d62db1fc1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/About.vue" @@ -0,0 +1,75 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/AppLoading.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/AppLoading.vue" new file mode 100644 index 0000000000000000000000000000000000000000..752991ecebe6350c65f7d287b158f8c96bce1dc4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/AppLoading.vue" @@ -0,0 +1,23 @@ + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/ConnectionStatus.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/ConnectionStatus.vue" new file mode 100644 index 0000000000000000000000000000000000000000..2363ea041a0735b76d35918ce1ffa1fddd803d59 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/ConnectionStatus.vue" @@ -0,0 +1,105 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/LocaleLoader.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/LocaleLoader.vue" new file mode 100644 index 0000000000000000000000000000000000000000..a799078f6a8fbbcad62325abf7cb2b7f53c0ce28 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/LocaleLoader.vue" @@ -0,0 +1,40 @@ + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/NotFound.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/NotFound.vue" new file mode 100644 index 0000000000000000000000000000000000000000..6dbf278ff30622d4342413b025bcb3155cf0fd0b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/NotFound.vue" @@ -0,0 +1,58 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/ProgressScreen.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/ProgressScreen.vue" new file mode 100644 index 0000000000000000000000000000000000000000..ea62e17c1450662009525a6f517f01de7969b90c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/ProgressScreen.vue" @@ -0,0 +1,127 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/ProjectHome.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/ProjectHome.vue" new file mode 100644 index 0000000000000000000000000000000000000000..48340c065af06fd3379c09f46c7a7df9078d776b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/ProjectHome.vue" @@ -0,0 +1,79 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/ProjectQuickDropdown.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/ProjectQuickDropdown.vue" new file mode 100644 index 0000000000000000000000000000000000000000..be2a1beea25eb1e42b7e64c6e3386531f480ae68 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/ProjectQuickDropdown.vue" @@ -0,0 +1,192 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/StatusBar.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/StatusBar.vue" new file mode 100644 index 0000000000000000000000000000000000000000..fb6d5bcff632df6e433680cee5503813aa6f5d1d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/StatusBar.vue" @@ -0,0 +1,277 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/TopBar.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/TopBar.vue" new file mode 100644 index 0000000000000000000000000000000000000000..779446429281028d1af24a291ec267ce401ffcd2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/app/TopBar.vue" @@ -0,0 +1,35 @@ + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/client-addon/ClientAddonComponent.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/client-addon/ClientAddonComponent.vue" new file mode 100644 index 0000000000000000000000000000000000000000..b5afd2196bae1921c49c29a916bdd4a43201da50 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/client-addon/ClientAddonComponent.vue" @@ -0,0 +1,69 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/client-addon/ClientAddonLoader.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/client-addon/ClientAddonLoader.vue" new file mode 100644 index 0000000000000000000000000000000000000000..069c82db1e660f85a8c09afa3eb2c62ffc5af1e8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/client-addon/ClientAddonLoader.vue" @@ -0,0 +1,49 @@ + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/configuration/ConfigurationItem.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/configuration/ConfigurationItem.vue" new file mode 100644 index 0000000000000000000000000000000000000000..b5c05f4a6b13ecf4d3ad3d621632e50903436391 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/configuration/ConfigurationItem.vue" @@ -0,0 +1,56 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/configuration/ConfigurationTab.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/configuration/ConfigurationTab.vue" new file mode 100644 index 0000000000000000000000000000000000000000..48b46761371f98b48d8a11bfa0212c4097c32b9f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/configuration/ConfigurationTab.vue" @@ -0,0 +1,50 @@ + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/configuration/ProjectConfigurationDetails.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/configuration/ProjectConfigurationDetails.vue" new file mode 100644 index 0000000000000000000000000000000000000000..58a7a1dd658a044434b39f9359713dc0b7830d13 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/configuration/ProjectConfigurationDetails.vue" @@ -0,0 +1,197 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/configuration/ProjectConfigurations.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/configuration/ProjectConfigurations.vue" new file mode 100644 index 0000000000000000000000000000000000000000..2071cb967b4888c031251ee36d8e1673d2153e29 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/configuration/ProjectConfigurations.vue" @@ -0,0 +1,108 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/ContentView.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/ContentView.vue" new file mode 100644 index 0000000000000000000000000000000000000000..77b2be9f4de533919269e6d393f3c256a5afdeba --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/ContentView.vue" @@ -0,0 +1,62 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/ItemLogo.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/ItemLogo.vue" new file mode 100644 index 0000000000000000000000000000000000000000..85bb46b5f4766fe8abb25573cdb3f18e3e2b2e98 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/ItemLogo.vue" @@ -0,0 +1,207 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/ListFilter.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/ListFilter.vue" new file mode 100644 index 0000000000000000000000000000000000000000..129a9e08b8c7e2cfa87be57f3417aa2832a595e2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/ListFilter.vue" @@ -0,0 +1,9 @@ + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/ListItemInfo.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/ListItemInfo.vue" new file mode 100644 index 0000000000000000000000000000000000000000..398c9ac506d1e29b2e7c61dbb32dd0acc574b9d1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/ListItemInfo.vue" @@ -0,0 +1,98 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/ListSort.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/ListSort.vue" new file mode 100644 index 0000000000000000000000000000000000000000..fbdc166b8d3c8a7ae18dfc36e3d2243d4425a540 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/ListSort.vue" @@ -0,0 +1,9 @@ + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/NavContent.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/NavContent.vue" new file mode 100644 index 0000000000000000000000000000000000000000..8a366386de426722f3f2abc76aea47c3ab0e3a8b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/NavContent.vue" @@ -0,0 +1,46 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/NavList.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/NavList.vue" new file mode 100644 index 0000000000000000000000000000000000000000..3ab4f998936b2594f1ad5cb6fd0e11cda076eb3a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/NavList.vue" @@ -0,0 +1,59 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/StepWizard.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/StepWizard.vue" new file mode 100644 index 0000000000000000000000000000000000000000..816583a6340daed1bb70bdb210cf26811c772214 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/StepWizard.vue" @@ -0,0 +1,132 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/TerminalView.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/TerminalView.vue" new file mode 100644 index 0000000000000000000000000000000000000000..c0fe7f972c5bb7eb040016ffe3cea021a95a8a7c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/content/TerminalView.vue" @@ -0,0 +1,283 @@ + + + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dashboard/ProjectDashboard.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dashboard/ProjectDashboard.vue" new file mode 100644 index 0000000000000000000000000000000000000000..2f89335b481f1bc5cc888ea96edde402fcac04ac --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dashboard/ProjectDashboard.vue" @@ -0,0 +1,142 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dashboard/Widget.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dashboard/Widget.vue" new file mode 100644 index 0000000000000000000000000000000000000000..255ea020770663905cd79ac2e6117ff17b69d77c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dashboard/Widget.vue" @@ -0,0 +1,632 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dashboard/WidgetAddItem.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dashboard/WidgetAddItem.vue" new file mode 100644 index 0000000000000000000000000000000000000000..842ee53caaecbcafb675226d00199d6cf631d659 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dashboard/WidgetAddItem.vue" @@ -0,0 +1,162 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dashboard/WidgetAddPane.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dashboard/WidgetAddPane.vue" new file mode 100644 index 0000000000000000000000000000000000000000..e98b53be65a6f3df00b843ddaf1684b83f9c352c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dashboard/WidgetAddPane.vue" @@ -0,0 +1,97 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dashboard/WidgetDetailsView.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dashboard/WidgetDetailsView.vue" new file mode 100644 index 0000000000000000000000000000000000000000..f43e48c2c84e7b3420d72a4ad9df627aced91b60 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dashboard/WidgetDetailsView.vue" @@ -0,0 +1,48 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dependency/NpmPackageSearch.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dependency/NpmPackageSearch.vue" new file mode 100644 index 0000000000000000000000000000000000000000..baea7b103ff89a8882e7b6917d100bb0f06cd47f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dependency/NpmPackageSearch.vue" @@ -0,0 +1,171 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dependency/PackageSearchItem.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dependency/PackageSearchItem.vue" new file mode 100644 index 0000000000000000000000000000000000000000..3397d5ffcae108262d627f1311194600addd5da3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dependency/PackageSearchItem.vue" @@ -0,0 +1,192 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dependency/ProjectDependencies.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dependency/ProjectDependencies.vue" new file mode 100644 index 0000000000000000000000000000000000000000..c6e900f029cb10be7f4784f7225bd648348c7fc2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dependency/ProjectDependencies.vue" @@ -0,0 +1,236 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dependency/ProjectDependencyItem.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dependency/ProjectDependencyItem.vue" new file mode 100644 index 0000000000000000000000000000000000000000..17ef5292396e9c516f1aedc3a0fdee13f9b9aaf5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/dependency/ProjectDependencyItem.vue" @@ -0,0 +1,197 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/file-diff/FileDiff.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/file-diff/FileDiff.vue" new file mode 100644 index 0000000000000000000000000000000000000000..89f354ec4cbb8282549b47cb744b12546fa85316 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/file-diff/FileDiff.vue" @@ -0,0 +1,159 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/file-diff/FileDiffChange.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/file-diff/FileDiffChange.vue" new file mode 100644 index 0000000000000000000000000000000000000000..7c26a1f03a04d5f66a34e15dd15229195878714a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/file-diff/FileDiffChange.vue" @@ -0,0 +1,137 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/file-diff/FileDiffChunk.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/file-diff/FileDiffChunk.vue" new file mode 100644 index 0000000000000000000000000000000000000000..2b61206a4bc3a7441560aeba2292134354981c9d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/file-diff/FileDiffChunk.vue" @@ -0,0 +1,44 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/file-diff/FileDiffView.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/file-diff/FileDiffView.vue" new file mode 100644 index 0000000000000000000000000000000000000000..ba1436e347b7297896d4c4902aa7bba914ad3e5a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/file-diff/FileDiffView.vue" @@ -0,0 +1,286 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/folder/FolderExplorer.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/folder/FolderExplorer.vue" new file mode 100644 index 0000000000000000000000000000000000000000..505e2b0eb250c4188c7d30199b2308479640d466 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/folder/FolderExplorer.vue" @@ -0,0 +1,464 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/folder/FolderExplorerItem.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/folder/FolderExplorerItem.vue" new file mode 100644 index 0000000000000000000000000000000000000000..7952f77318cab0a63000e202fbca308d02909139 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/folder/FolderExplorerItem.vue" @@ -0,0 +1,76 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/logger/LoggerMessage.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/logger/LoggerMessage.vue" new file mode 100644 index 0000000000000000000000000000000000000000..f1077d8d6cdca53ee8b237ecfe883b283c6b55ba --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/logger/LoggerMessage.vue" @@ -0,0 +1,96 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/logger/LoggerView.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/logger/LoggerView.vue" new file mode 100644 index 0000000000000000000000000000000000000000..36f66c6fad058b1241f67ebcab355bf873f0546f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/logger/LoggerView.vue" @@ -0,0 +1,137 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/plugin/ProjectPluginAddLocal.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/plugin/ProjectPluginAddLocal.vue" new file mode 100644 index 0000000000000000000000000000000000000000..126c8ce588ee065ff1bdfdcf2dc1bd99ac56da68 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/plugin/ProjectPluginAddLocal.vue" @@ -0,0 +1,41 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/plugin/ProjectPluginItem.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/plugin/ProjectPluginItem.vue" new file mode 100644 index 0000000000000000000000000000000000000000..13c42a0223af9b1c63b899762ff323eb25a82926 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/plugin/ProjectPluginItem.vue" @@ -0,0 +1,211 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/plugin/ProjectPlugins.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/plugin/ProjectPlugins.vue" new file mode 100644 index 0000000000000000000000000000000000000000..eb2a433959108ad8cb0ad091df6a46155ebf83fa --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/plugin/ProjectPlugins.vue" @@ -0,0 +1,120 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/plugin/ProjectPluginsAdd.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/plugin/ProjectPluginsAdd.vue" new file mode 100644 index 0000000000000000000000000000000000000000..6995b4905a473a851730ecf581cb5ac51ab09ef3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/plugin/ProjectPluginsAdd.vue" @@ -0,0 +1,306 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-create/ProjectCreate.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-create/ProjectCreate.vue" new file mode 100644 index 0000000000000000000000000000000000000000..65e4fe6411444d91ff8e08b34242b047395969ea --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-create/ProjectCreate.vue" @@ -0,0 +1,750 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-create/ProjectFeatureItem.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-create/ProjectFeatureItem.vue" new file mode 100644 index 0000000000000000000000000000000000000000..51bd937212e63cfffdc744a320018dfed810cd8a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-create/ProjectFeatureItem.vue" @@ -0,0 +1,40 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-create/ProjectPresetItem.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-create/ProjectPresetItem.vue" new file mode 100644 index 0000000000000000000000000000000000000000..a4098196c3f3d431d8fb33e7a78a5d0dc99c92b4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-create/ProjectPresetItem.vue" @@ -0,0 +1,74 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-manager/ProjectRename.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-manager/ProjectRename.vue" new file mode 100644 index 0000000000000000000000000000000000000000..fa690c1b929cb17fd48cc4bdb728650194c8859b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-manager/ProjectRename.vue" @@ -0,0 +1,79 @@ + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-manager/ProjectSelect.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-manager/ProjectSelect.vue" new file mode 100644 index 0000000000000000000000000000000000000000..df42021035802a70895dfa73c7d2351181786bc2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-manager/ProjectSelect.vue" @@ -0,0 +1,196 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-manager/ProjectSelectList.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-manager/ProjectSelectList.vue" new file mode 100644 index 0000000000000000000000000000000000000000..1bbec0d3496008ede7b87e0fcdeea349535bba1f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-manager/ProjectSelectList.vue" @@ -0,0 +1,162 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-manager/ProjectSelectListItem.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-manager/ProjectSelectListItem.vue" new file mode 100644 index 0000000000000000000000000000000000000000..6259dad529a5272e723cba37480d8b7d56d995f3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-manager/ProjectSelectListItem.vue" @@ -0,0 +1,147 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-manager/ProjectTasksDropdown.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-manager/ProjectTasksDropdown.vue" new file mode 100644 index 0000000000000000000000000000000000000000..d23b82cca8c46b7c5ed389d67eb434d4c111cd23 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/project-manager/ProjectTasksDropdown.vue" @@ -0,0 +1,187 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/Prompt.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/Prompt.vue" new file mode 100644 index 0000000000000000000000000000000000000000..fe489b36b79165abeed92ae61c873571e5e8ee91 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/Prompt.vue" @@ -0,0 +1,62 @@ + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptCheckbox.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptCheckbox.vue" new file mode 100644 index 0000000000000000000000000000000000000000..254c2ebbab37b6850def40599451d7f802e15d20 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptCheckbox.vue" @@ -0,0 +1,68 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptColor.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptColor.vue" new file mode 100644 index 0000000000000000000000000000000000000000..ceee528dad997d49e9b7d96372a2d80cad110945 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptColor.vue" @@ -0,0 +1,73 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptConfirm.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptConfirm.vue" new file mode 100644 index 0000000000000000000000000000000000000000..45397e2dd20a5c4bfda903e978620ddf7be14c16 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptConfirm.vue" @@ -0,0 +1,36 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptEditor.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptEditor.vue" new file mode 100644 index 0000000000000000000000000000000000000000..46dfd0005d0264e956610d3f6b34e3a68d0f7ef7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptEditor.vue" @@ -0,0 +1,39 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptError.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptError.vue" new file mode 100644 index 0000000000000000000000000000000000000000..b8d668985eda812622f1a9a8a03b968963a582f6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptError.vue" @@ -0,0 +1,27 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptInput.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptInput.vue" new file mode 100644 index 0000000000000000000000000000000000000000..a69997c84e4fda233afce935e3515a30c0214542 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptInput.vue" @@ -0,0 +1,34 @@ + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptList.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptList.vue" new file mode 100644 index 0000000000000000000000000000000000000000..9249475bfc2fc388ad69524cfb801c5b3e5c54cf --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptList.vue" @@ -0,0 +1,48 @@ + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptsList.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptsList.vue" new file mode 100644 index 0000000000000000000000000000000000000000..5055a41c9b7464a68d7042845790c31357350632 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/prompt/PromptsList.vue" @@ -0,0 +1,87 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/search/InstantSearchInput.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/search/InstantSearchInput.vue" new file mode 100644 index 0000000000000000000000000000000000000000..c571373bab96aeb6b24d041e1c539b878b218423 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/search/InstantSearchInput.vue" @@ -0,0 +1,79 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/search/InstantSearchPagination.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/search/InstantSearchPagination.vue" new file mode 100644 index 0000000000000000000000000000000000000000..e7bf2064ca01eb742a2d1b1e5ea1f7155b84cdb3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/search/InstantSearchPagination.vue" @@ -0,0 +1,66 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/suggestion/SuggestionBar.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/suggestion/SuggestionBar.vue" new file mode 100644 index 0000000000000000000000000000000000000000..01296f7ec104106b8312511a233ffacd7d4677d8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/suggestion/SuggestionBar.vue" @@ -0,0 +1,94 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/suggestion/SuggestionBarItem.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/suggestion/SuggestionBarItem.vue" new file mode 100644 index 0000000000000000000000000000000000000000..7c8c9abc2a9bb5567227bfbb31a151eeada9295a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/suggestion/SuggestionBarItem.vue" @@ -0,0 +1,195 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/suggestion/SuggestionBarList.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/suggestion/SuggestionBarList.vue" new file mode 100644 index 0000000000000000000000000000000000000000..5721c89605332d7b908e045a0432dd2e9f10cf03 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/suggestion/SuggestionBarList.vue" @@ -0,0 +1,22 @@ + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/task/ProjectTaskDetails.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/task/ProjectTaskDetails.vue" new file mode 100644 index 0000000000000000000000000000000000000000..8427a49e237672a15038958222876e2fba450a77 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/task/ProjectTaskDetails.vue" @@ -0,0 +1,435 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/task/ProjectTasks.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/task/ProjectTasks.vue" new file mode 100644 index 0000000000000000000000000000000000000000..54bc988d292d4e36ff9fcb2ef78d636b6dbf185f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/task/ProjectTasks.vue" @@ -0,0 +1,124 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/task/TaskItem.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/task/TaskItem.vue" new file mode 100644 index 0000000000000000000000000000000000000000..c86a5230865c5d3d3bc429eb5b359a07cc5221f0 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/task/TaskItem.vue" @@ -0,0 +1,111 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/view/ViewBadge.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/view/ViewBadge.vue" new file mode 100644 index 0000000000000000000000000000000000000000..ba747a33d18c59bc66b6e7e4decfb81eec24fa94 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/view/ViewBadge.vue" @@ -0,0 +1,65 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/view/ViewNav.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/view/ViewNav.vue" new file mode 100644 index 0000000000000000000000000000000000000000..2f89b071e8ac10587f6d1db60960491ae526b7a3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/view/ViewNav.vue" @@ -0,0 +1,238 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/view/ViewNavButton.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/view/ViewNavButton.vue" new file mode 100644 index 0000000000000000000000000000000000000000..b8a1d07440e317fe37029b7a20ac49582b634661 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/view/ViewNavButton.vue" @@ -0,0 +1,173 @@ + + + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/view/ViewNavMore.vue" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/view/ViewNavMore.vue" new file mode 100644 index 0000000000000000000000000000000000000000..08e108c44725b0ce16e46383eabc1053fabe3708 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/components/view/ViewNavMore.vue" @@ -0,0 +1,39 @@ + + + diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/filters.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/filters.js" new file mode 100644 index 0000000000000000000000000000000000000000..7d9f963539e39bfe270b155be02c0657e2a9535f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/filters.js" @@ -0,0 +1,25 @@ +/** + * Display a folder path + * @param {string} value path + * @param {number} maxLength maximum length of displayed path + */ +export function folder (value, maxLength = -1) { + value = value.replace(/\\/g, '/') + + if (value.charAt(value.length - 1) !== '/') { + value += '/' + } + + if (maxLength !== -1 && value.length > maxLength) { + const exceeded = value.length - maxLength + 3 + const firstEnd = Math.floor(maxLength / 2 - exceeded / 2) + const lastStart = Math.ceil(maxLength / 2 + exceeded / 2) + value = value.substring(0, firstEnd) + '...' + value.substring(lastStart) + } + + return value +} + +export function date (value) { + return new Date(value).toLocaleString() +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/app/routeRequested.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/app/routeRequested.gql" new file mode 100644 index 0000000000000000000000000000000000000000..8b7deb016fbb245c79d7710ab22e6243a7c27b51 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/app/routeRequested.gql" @@ -0,0 +1,3 @@ +subscription routeRequested { + routeRequested +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/client-addon/clientAddonAdded.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/client-addon/clientAddonAdded.gql" new file mode 100644 index 0000000000000000000000000000000000000000..412a3fe5948c5f0c81d5c88010b34bba5fb8610b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/client-addon/clientAddonAdded.gql" @@ -0,0 +1,7 @@ +#import "./clientAddonFragment.gql" + +subscription clientAddonAdded { + clientAddonAdded { + ...clientAddon + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/client-addon/clientAddonFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/client-addon/clientAddonFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..f32c069aa7af607382cc8de9a5d3c9abb9b6b0ec --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/client-addon/clientAddonFragment.gql" @@ -0,0 +1,4 @@ +fragment clientAddon on ClientAddon { + id + url +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/client-addon/clientAddons.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/client-addon/clientAddons.gql" new file mode 100644 index 0000000000000000000000000000000000000000..e9a6e548579e46447bb5c8a5e9e0a4cbeb452c5e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/client-addon/clientAddons.gql" @@ -0,0 +1,7 @@ +#import "./clientAddonFragment.gql" + +query clientAddons { + clientAddons { + ...clientAddon + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/configuration/configuration.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/configuration/configuration.gql" new file mode 100644 index 0000000000000000000000000000000000000000..133e00c7d38d05d824d7d14d067caccbf6dda5ea --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/configuration/configuration.gql" @@ -0,0 +1,17 @@ +#import "./configurationFragment.gql" +#import "../prompt/promptFragment.gql" + +query configuration ($id: ID!) { + configuration(id: $id) { + ...configuration + link + tabs { + id + label + icon + prompts { + ...prompt + } + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/configuration/configurationCancel.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/configuration/configurationCancel.gql" new file mode 100644 index 0000000000000000000000000000000000000000..e2d6c92fb6b251cb4c63d474bcda73fc2cf416f8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/configuration/configurationCancel.gql" @@ -0,0 +1,7 @@ +#import "./configurationFragment.gql" + +mutation configurationCancel ($id: ID!) { + configurationCancel (id: $id) { + ...configuration + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/configuration/configurationFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/configuration/configurationFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..20e024177b3b30fd7412cc76b41f923b59601f37 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/configuration/configurationFragment.gql" @@ -0,0 +1,10 @@ +fragment configuration on Configuration { + id + name + description + icon + plugin { + id + logo + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/configuration/configurationSave.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/configuration/configurationSave.gql" new file mode 100644 index 0000000000000000000000000000000000000000..0c636a865f4c4a24a94d79ef641e11c2b2dc849c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/configuration/configurationSave.gql" @@ -0,0 +1,7 @@ +#import "./configurationFragment.gql" + +mutation configurationSave ($id: ID!) { + configurationSave (id: $id) { + ...configuration + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/configuration/configurations.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/configuration/configurations.gql" new file mode 100644 index 0000000000000000000000000000000000000000..59942c79c04bccea7da60c6b988f0aeefbc22fdf --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/configuration/configurations.gql" @@ -0,0 +1,7 @@ +#import "./configurationFragment.gql" + +query configurations { + configurations { + ...configuration + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/connected/connected.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/connected/connected.gql" new file mode 100644 index 0000000000000000000000000000000000000000..42f59d20901917f5e7f5ccac090b1e4137b151c7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/connected/connected.gql" @@ -0,0 +1,3 @@ +query connected { + connected @client +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/connected/connectedSet.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/connected/connectedSet.gql" new file mode 100644 index 0000000000000000000000000000000000000000..5d4f52b00d7f54421db4b6626816099c4c4c77e2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/connected/connectedSet.gql" @@ -0,0 +1,3 @@ +mutation connectedSet ($value: Boolean!) { + connectedSet (value: $value) @client +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/console-log/consoleLogAdded.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/console-log/consoleLogAdded.gql" new file mode 100644 index 0000000000000000000000000000000000000000..3e5e5bb46adbd0da38167170e444f4fa30c36ad0 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/console-log/consoleLogAdded.gql" @@ -0,0 +1,7 @@ +#import "./consoleLogFragment.gql" + +subscription consoleLogAdded { + consoleLogAdded { + ...consoleLog + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/console-log/consoleLogFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/console-log/consoleLogFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..fcf64b1f264fd434cc5f89ededcb4a5681da71c6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/console-log/consoleLogFragment.gql" @@ -0,0 +1,7 @@ +fragment consoleLog on ConsoleLog { + id + type + message + tag + date +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/console-log/consoleLogLast.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/console-log/consoleLogLast.gql" new file mode 100644 index 0000000000000000000000000000000000000000..e7fca0d77d3181224255cece1c8ef7177e0e105a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/console-log/consoleLogLast.gql" @@ -0,0 +1,7 @@ +#import "./consoleLogFragment.gql" + +query consoleLogLast { + consoleLogLast { + ...consoleLog + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/console-log/consoleLogs.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/console-log/consoleLogs.gql" new file mode 100644 index 0000000000000000000000000000000000000000..685181b651caa54667c69669ca0051165f4377cc --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/console-log/consoleLogs.gql" @@ -0,0 +1,7 @@ +#import "./consoleLogFragment.gql" + +query consoleLogs { + consoleLogs { + ...consoleLog + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/console-log/consoleLogsClear.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/console-log/consoleLogsClear.gql" new file mode 100644 index 0000000000000000000000000000000000000000..4aea6b914040eecefa1af15dd328666a88a334ab --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/console-log/consoleLogsClear.gql" @@ -0,0 +1,7 @@ +#import "./consoleLogFragment.gql" + +mutation consoleLogsClear { + consoleLogsClear { + ...consoleLog + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/cwd/cwd.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/cwd/cwd.gql" new file mode 100644 index 0000000000000000000000000000000000000000..5411d953351c367849961ceffa94822281de9b5c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/cwd/cwd.gql" @@ -0,0 +1,3 @@ +query cwd { + cwd +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/cwd/cwdChanged.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/cwd/cwdChanged.gql" new file mode 100644 index 0000000000000000000000000000000000000000..9fa6178e963ad44bc5bd62c2439ac1e2c9fe5e80 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/cwd/cwdChanged.gql" @@ -0,0 +1,3 @@ +subscription cwdChanged { + cwd: cwdChanged +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dark-mode/darkMode.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dark-mode/darkMode.gql" new file mode 100644 index 0000000000000000000000000000000000000000..a170fe032c09a98a185a2efc029593f3f98a8bfa --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dark-mode/darkMode.gql" @@ -0,0 +1,3 @@ +query darkMode { + darkMode @client +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dark-mode/darkModeSet.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dark-mode/darkModeSet.gql" new file mode 100644 index 0000000000000000000000000000000000000000..04ac84303673023c8f431d926e13889bc55f18ef --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dark-mode/darkModeSet.gql" @@ -0,0 +1,3 @@ +mutation darkModeSet($enabled: Boolean!) { + darkModeSet (enabled: $enabled) @client +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependencies.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependencies.gql" new file mode 100644 index 0000000000000000000000000000000000000000..4734b05f8dcb40beee27cd62a4e5a24277168e2a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependencies.gql" @@ -0,0 +1,7 @@ +#import "./dependencyFragment.gql" + +query dependencies { + dependencies { + ...dependency + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependenciesUpdate.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependenciesUpdate.gql" new file mode 100644 index 0000000000000000000000000000000000000000..3dc7ab75ddcd473e36162de000608a64a26ad730 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependenciesUpdate.gql" @@ -0,0 +1,8 @@ +mutation dependenciesUpdate { + dependenciesUpdate { + id + version { + current + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependencyDetails.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependencyDetails.gql" new file mode 100644 index 0000000000000000000000000000000000000000..743744952a0edbe37da15310639dbeeaefe880e1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependencyDetails.gql" @@ -0,0 +1,11 @@ +#import "../version/versionFragment.gql" + +query dependencyDetails ($id: ID!) { + dependencyDetails: dependency (id: $id) { + id + version { + ...version + } + description + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependencyFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependencyFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..5acdc8928d68070df7250732aec7ca00676f2fec --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependencyFragment.gql" @@ -0,0 +1,6 @@ +fragment dependency on Dependency { + id + type + installed + website +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependencyInstall.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependencyInstall.gql" new file mode 100644 index 0000000000000000000000000000000000000000..5ae0cfd49e9e0c59e7ded6be360d27757ebb0b77 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependencyInstall.gql" @@ -0,0 +1,7 @@ +#import "./dependencyFragment.gql" + +mutation dependencyInstall ($input: DependencyInstall!) { + dependencyInstall (input: $input) { + ...dependency + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependencyUninstall.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependencyUninstall.gql" new file mode 100644 index 0000000000000000000000000000000000000000..5dcd05ab1e81dcb139ae055efe8ab57756879ddc --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependencyUninstall.gql" @@ -0,0 +1,7 @@ +#import "./dependencyFragment.gql" + +mutation dependencyUninstall ($input: DependencyUninstall!) { + dependencyUninstall (input: $input) { + ...dependency + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependencyUpdate.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependencyUpdate.gql" new file mode 100644 index 0000000000000000000000000000000000000000..3462770a278dc3b13e8c19a2105e59d1e171f3bf --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/dependency/dependencyUpdate.gql" @@ -0,0 +1,8 @@ +mutation dependencyUpdate ($input: DependencyUpdate!) { + dependencyUpdate (input: $input) { + id + version { + current + } + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/feature/featureFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/feature/featureFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..fd471b48c195c6db78bf09229e25c7ca50aacb4f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/feature/featureFragment.gql" @@ -0,0 +1,7 @@ +fragment feature on Feature { + id + name + description + link + enabled +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/feature/featureSetEnabled.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/feature/featureSetEnabled.gql" new file mode 100644 index 0000000000000000000000000000000000000000..3a3f5021279eca96e1cf13268f38d0aa7c2ac4d2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/feature/featureSetEnabled.gql" @@ -0,0 +1,7 @@ +#import "./featureFragment.gql" + +mutation featureSetEnabled ($id: ID!, $enabled: Boolean!) { + featureSetEnabled (id: $id, enabled: $enabled) { + ...feature + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/file/fileOpenInEditor.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/file/fileOpenInEditor.gql" new file mode 100644 index 0000000000000000000000000000000000000000..d17474d7a158d21da1c8db773a21adb610e83b94 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/file/fileOpenInEditor.gql" @@ -0,0 +1,3 @@ +mutation fileOpenInEditor ($input: OpenInEditorInput!) { + fileOpenInEditor (input: $input) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderCreate.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderCreate.gql" new file mode 100644 index 0000000000000000000000000000000000000000..a9b39ef6e3c8cc957ef4ca00b9a0adf697e1a848 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderCreate.gql" @@ -0,0 +1,7 @@ +#import "./folderCurrentFragment.gql" + +mutation folderCreate ($name: String!) { + folderCreate (name: $name) { + ...folderCurrent + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderCurrent.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderCurrent.gql" new file mode 100644 index 0000000000000000000000000000000000000000..e18533371f9452d42b67e2a11b0f7e524fdd755b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderCurrent.gql" @@ -0,0 +1,7 @@ +#import "./folderCurrentFragment.gql" + +query folderCurrent { + folderCurrent { + ...folderCurrent + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderCurrentFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderCurrentFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..a69e256a7eaae29cc67199b862498e008c938f40 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderCurrentFragment.gql" @@ -0,0 +1,15 @@ +fragment folderCurrent on Folder { + name + path + favorite + isPackage + isVueProject + children { + name + path + isPackage + isVueProject + hidden + favorite + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderExists.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderExists.gql" new file mode 100644 index 0000000000000000000000000000000000000000..e17ea21d199a3269bcbcd9c498961c198c5c6207 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderExists.gql" @@ -0,0 +1,3 @@ +query folderExists ($file: String!) { + folderExists(file: $file) +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderOpen.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderOpen.gql" new file mode 100644 index 0000000000000000000000000000000000000000..cc92466c66e4fbfe6e398ca073940690e3325d6a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderOpen.gql" @@ -0,0 +1,7 @@ +#import "./folderCurrentFragment.gql" + +mutation folderOpen ($path: String!) { + folderOpen(path: $path) { + ...folderCurrent + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderOpenParent.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderOpenParent.gql" new file mode 100644 index 0000000000000000000000000000000000000000..dd2396ccf0bc6069adc5eda5786b7b5f3dca4e84 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderOpenParent.gql" @@ -0,0 +1,7 @@ +#import "./folderCurrentFragment.gql" + +mutation folderOpenParent { + folderOpenParent { + ...folderCurrent + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderSetFavorite.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderSetFavorite.gql" new file mode 100644 index 0000000000000000000000000000000000000000..8b41025f1d55e9d327639d26a457b6397143bf9e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/folderSetFavorite.gql" @@ -0,0 +1,7 @@ +#import "./folderCurrentFragment.gql" + +mutation folderSetFavorite ($path: String!, $favorite: Boolean!) { + folderSetFavorite (path: $path, favorite: $favorite) { + ...folderCurrent + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/foldersFavorite.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/foldersFavorite.gql" new file mode 100644 index 0000000000000000000000000000000000000000..238cb28bd448f57e68e303bb12c987d8e014769f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/folder/foldersFavorite.gql" @@ -0,0 +1,5 @@ +query foldersFavorite { + foldersFavorite { + path + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/git/fileDiffs.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/git/fileDiffs.gql" new file mode 100644 index 0000000000000000000000000000000000000000..544925b859a080121fe0bdd0b969f765a1e4ed0e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/git/fileDiffs.gql" @@ -0,0 +1,24 @@ +query fileDiffs { + fileDiffs { + id + from + to + new + deleted + binary + chunks { + oldStart + oldLines + newStart + newLines + changes { + type + ln + ln1 + ln2 + content + normal + } + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/git/gitCommit.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/git/gitCommit.gql" new file mode 100644 index 0000000000000000000000000000000000000000..29cc3df7fba559620cf70484664395bbd08c2190 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/git/gitCommit.gql" @@ -0,0 +1,3 @@ +mutation gitCommit ($message: String!) { + gitCommit (message: $message) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/loading/loading.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/loading/loading.gql" new file mode 100644 index 0000000000000000000000000000000000000000..7550e5af16c2e2e5f930e8b58b34d9eb9917930a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/loading/loading.gql" @@ -0,0 +1,3 @@ +query loading { + loading @client +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/loading/loadingChange.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/loading/loadingChange.gql" new file mode 100644 index 0000000000000000000000000000000000000000..c66ee4c75089f8ebb56ce5e11499478b40062d86 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/loading/loadingChange.gql" @@ -0,0 +1,3 @@ +mutation loadingChange ($mod: Int!) { + loadingChange (mod: $mod) @client +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/locale/localeAdded.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/locale/localeAdded.gql" new file mode 100644 index 0000000000000000000000000000000000000000..988b0907d9e48c647d56ad95fe3fe618c6cf125c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/locale/localeAdded.gql" @@ -0,0 +1,7 @@ +#import "./localeFragment.gql" + +subscription localeAdded { + localeAdded { + ...locale + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/locale/localeFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/locale/localeFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..ecf506ad44ea7591ecc1f10081c447e8f7be63ce --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/locale/localeFragment.gql" @@ -0,0 +1,4 @@ +fragment locale on Locale { + lang + strings +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/locale/locales.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/locale/locales.gql" new file mode 100644 index 0000000000000000000000000000000000000000..a5fed39b58a6cc6356c5da11fd8e37cb33167ad8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/locale/locales.gql" @@ -0,0 +1,7 @@ +#import "./localeFragment.gql" + +query locales { + locales { + ...locale + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginActionCall.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginActionCall.gql" new file mode 100644 index 0000000000000000000000000000000000000000..f6c65c4e5f6d74e5f2b4558ab3ee7f0a6f4ff5a7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginActionCall.gql" @@ -0,0 +1,7 @@ +#import "./pluginActionResultFragment.gql" + +mutation pluginActionCall ($id: ID!, $params: JSON) { + pluginActionCall (id: $id, params: $params) { + ...pluginActionResult + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginActionCallFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginActionCallFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..63795c21bc52854eb3ea482f3c4a9f503b400c0a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginActionCallFragment.gql" @@ -0,0 +1,4 @@ +fragment pluginActionCall on PluginActionCall { + id + params +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginActionCalled.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginActionCalled.gql" new file mode 100644 index 0000000000000000000000000000000000000000..151e6dd50c040fbf28b9f34c714a2320079e6e0b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginActionCalled.gql" @@ -0,0 +1,7 @@ +#import "./pluginActionCallFragment.gql" + +subscription pluginActionCalled { + pluginActionCalled { + ...pluginActionCall + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginActionResolved.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginActionResolved.gql" new file mode 100644 index 0000000000000000000000000000000000000000..92597b7d7e0a67a58de5602d737b6e8799be856d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginActionResolved.gql" @@ -0,0 +1,7 @@ +#import "./pluginActionResultFragment.gql" + +subscription pluginActionResolved { + pluginActionResolved { + ...pluginActionResult + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginActionResultFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginActionResultFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..da5f4f460cd686feeb957d69903f36e5d4d19474 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginActionResultFragment.gql" @@ -0,0 +1,6 @@ +fragment pluginActionResult on PluginActionResult { + id + params + results + errors +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginDetails.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginDetails.gql" new file mode 100644 index 0000000000000000000000000000000000000000..dc9c91d145bf016f8623b77cd1dddd8bd1f2d3a5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginDetails.gql" @@ -0,0 +1,11 @@ +#import "../version/versionFragment.gql" + +query pluginDetails ($id: ID!) { + pluginDetails: plugin (id: $id) { + id + version { + ...version + } + description + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginFinishInstall.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginFinishInstall.gql" new file mode 100644 index 0000000000000000000000000000000000000000..eb067ff9c6668484c239724a85816d0e4cd70ac0 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginFinishInstall.gql" @@ -0,0 +1,7 @@ +#import "./pluginInstallationFragment.gql" + +mutation pluginFinishInstall { + pluginFinishInstall { + ...pluginInstallation + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..69b8f6f7d2bddd77a05a1ed002a6b034e3e59b59 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginFragment.gql" @@ -0,0 +1,6 @@ +fragment plugin on Plugin { + id + official + installed + website +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginInstall.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginInstall.gql" new file mode 100644 index 0000000000000000000000000000000000000000..bf2d6b838c3cc3560c3a987270fe91e1d6ba9e73 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginInstall.gql" @@ -0,0 +1,7 @@ +#import "./pluginInstallationFragment.gql" + +mutation pluginInstall ($id: ID!) { + pluginInstall (id: $id) { + ...pluginInstallation + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginInstallLocal.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginInstallLocal.gql" new file mode 100644 index 0000000000000000000000000000000000000000..d330dfc21d5632f5ec3d8f3cfa1b8b69230567e2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginInstallLocal.gql" @@ -0,0 +1,7 @@ +#import "./pluginInstallationFragment.gql" + +mutation pluginInstallLocal { + pluginInstallLocal { + ...pluginInstallation + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginInstallation.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginInstallation.gql" new file mode 100644 index 0000000000000000000000000000000000000000..563d016ccb94cf441633ca90167b36249316c957 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginInstallation.gql" @@ -0,0 +1,7 @@ +#import "./pluginInstallationFragment.gql" + +query pluginInstallation { + pluginInstallation { + ...pluginInstallation + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginInstallationFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginInstallationFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..b46a570e2017051c6786b831cb7311b1e8036da0 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginInstallationFragment.gql" @@ -0,0 +1,10 @@ +#import "../prompt/promptFragment.gql" + +fragment pluginInstallation on PluginInstallation { + id + pluginId + step + prompts { + ...prompt + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginInvoke.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginInvoke.gql" new file mode 100644 index 0000000000000000000000000000000000000000..a6c35bd05703a479415a34dff39b4a46ab7d3292 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginInvoke.gql" @@ -0,0 +1,7 @@ +#import "./pluginInstallationFragment.gql" + +mutation pluginInvoke ($id: ID!) { + pluginInvoke (id: $id) { + ...pluginInstallation + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginLogo.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginLogo.gql" new file mode 100644 index 0000000000000000000000000000000000000000..73accce4b655f8ceff9dcf01ac2b274eedb77dfa --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginLogo.gql" @@ -0,0 +1,6 @@ +query pluginLogo ($id: ID!) { + pluginLogo: plugin (id: $id) { + id + logo + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginResetApi.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginResetApi.gql" new file mode 100644 index 0000000000000000000000000000000000000000..94a16175d6a920ad17e90fe88e1fa50b1bc4a1d0 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginResetApi.gql" @@ -0,0 +1,3 @@ +mutation pluginResetApi { + pluginResetApi +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginUninstall.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginUninstall.gql" new file mode 100644 index 0000000000000000000000000000000000000000..f0ffdb11a52f23fe580bceabc06b3a719aefbcdb --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginUninstall.gql" @@ -0,0 +1,7 @@ +#import "./pluginInstallationFragment.gql" + +mutation pluginUninstall ($id: ID!) { + pluginUninstall (id: $id) { + ...pluginInstallation + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginUpdate.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginUpdate.gql" new file mode 100644 index 0000000000000000000000000000000000000000..4925a6fc0f9d72c32cc54a9db0ece8a3c0a32553 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginUpdate.gql" @@ -0,0 +1,10 @@ +#import "../version/versionFragment.gql" + +mutation pluginUpdate ($id: ID!, $full: Boolean) { + pluginUpdate (id: $id, full: $full) { + id + version { + ...version + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/plugins.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/plugins.gql" new file mode 100644 index 0000000000000000000000000000000000000000..6cd64aa6a4d0fb080ad28618f852b6240c259311 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/plugins.gql" @@ -0,0 +1,7 @@ +#import "./pluginFragment.gql" + +query plugins { + plugins { + ...plugin + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginsUpdate.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginsUpdate.gql" new file mode 100644 index 0000000000000000000000000000000000000000..0d733df94a53ba3ffbe9d0936ac69ba6b30fd499 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/plugin/pluginsUpdate.gql" @@ -0,0 +1,10 @@ +#import "../version/versionFragment.gql" + +mutation pluginsUpdate { + pluginsUpdate { + id + version { + ...version + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/preset/presetApply.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/preset/presetApply.gql" new file mode 100644 index 0000000000000000000000000000000000000000..127801f432b481fb67a79bf5f26253f239b88679 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/preset/presetApply.gql" @@ -0,0 +1,7 @@ +#import "../project/projectCreationFragment.gql" + +mutation presetApply ($id: ID!) { + presetApply(id: $id) { + ...projectCreation + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/preset/presetFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/preset/presetFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..719c263037f662f0376a01ead4cf611f2df126c0 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/preset/presetFragment.gql" @@ -0,0 +1,6 @@ +fragment preset on Preset { + id + name + description + link +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/progress/progress.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/progress/progress.gql" new file mode 100644 index 0000000000000000000000000000000000000000..697ced83245d80ac70104cb80f8cb7de548f4bf6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/progress/progress.gql" @@ -0,0 +1,7 @@ +#import "./progressFragment.gql" + +query progress ($id: ID!) { + progress (id: $id) { + ...progress + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/progress/progressChanged.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/progress/progressChanged.gql" new file mode 100644 index 0000000000000000000000000000000000000000..fa2b5a803c3fb60f0a4f9f18a6ae4aa88c7f886d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/progress/progressChanged.gql" @@ -0,0 +1,7 @@ +#import "./progressFragment.gql" + +subscription progressChanged ($id: ID!) { + progressChanged (id: $id) { + ...progress + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/progress/progressFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/progress/progressFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..ad8870f68a4dac04945944bed98e1fdab6472ab3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/progress/progressFragment.gql" @@ -0,0 +1,8 @@ +fragment progress on Progress { + id + status + info + error + progress + args +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/progress/progressRemoved.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/progress/progressRemoved.gql" new file mode 100644 index 0000000000000000000000000000000000000000..c2ffbf2fd0ed43bd90d7451878fc07a3e7833852 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/progress/progressRemoved.gql" @@ -0,0 +1,3 @@ +subscription progressRemoved ($id: ID!) { + progressRemoved (id: $id) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/currentProjectId.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/currentProjectId.gql" new file mode 100644 index 0000000000000000000000000000000000000000..7e5b47350bfbe4d3b79dfe4277651c6028410795 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/currentProjectId.gql" @@ -0,0 +1,3 @@ +query currentProjectId { + currentProjectId @client +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/currentProjectIdSet.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/currentProjectIdSet.gql" new file mode 100644 index 0000000000000000000000000000000000000000..e5e7363278287ce28929578b4daa279b38899769 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/currentProjectIdSet.gql" @@ -0,0 +1,3 @@ +mutation currentProjectIdSet ($projectId: ID!) { + currentProjectIdSet(projectId: $projectId) @client +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectCancelCreation.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectCancelCreation.gql" new file mode 100644 index 0000000000000000000000000000000000000000..c5edcee1b486730d1cfe56018827de6d1af0b19a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectCancelCreation.gql" @@ -0,0 +1,3 @@ +mutation projectCancelCreation { + projectCancelCreation +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectCreate.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectCreate.gql" new file mode 100644 index 0000000000000000000000000000000000000000..4c8b4fdf180853d8d0789f943b89911926f361a5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectCreate.gql" @@ -0,0 +1,7 @@ +#import "./projectFragment.gql" + +mutation projectCreate ($input: ProjectCreateInput!) { + projectCreate(input: $input) { + ...project + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectCreation.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectCreation.gql" new file mode 100644 index 0000000000000000000000000000000000000000..96e4f5b63227c0063b8e763d0571d9c3893a9e33 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectCreation.gql" @@ -0,0 +1,7 @@ +#import "./projectCreationFragment.gql" + +query projectCreation { + projectCreation { + ...projectCreation + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectCreationFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectCreationFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..763d2cf09631b5c588ee1d6fd622d04d427ef6fb --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectCreationFragment.gql" @@ -0,0 +1,15 @@ +#import "../preset/presetFragment.gql" +#import "../feature/featureFragment.gql" +#import "../prompt/promptFragment.gql" + +fragment projectCreation on ProjectCreation { + presets { + ...preset + } + features { + ...feature + } + prompts { + ...prompt + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectCurrent.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectCurrent.gql" new file mode 100644 index 0000000000000000000000000000000000000000..2dcf33dee7f9c7d38b85a28456bc1aa6bee4a8f5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectCurrent.gql" @@ -0,0 +1,7 @@ +#import "./projectFragment.gql" + +query projectCurrent { + projectCurrent { + ...project + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectCwdReset.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectCwdReset.gql" new file mode 100644 index 0000000000000000000000000000000000000000..2ce5238f04e4b3337bf04addaaeb295034d8ecec --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectCwdReset.gql" @@ -0,0 +1,3 @@ +mutation projectCwdReset { + projectCwdReset +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..978fc0c2b7b3172bd30d57fb57a078872616832c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectFragment.gql" @@ -0,0 +1,9 @@ +fragment project on Project { + id + name + type + path + favorite + homepage + openDate +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectImport.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectImport.gql" new file mode 100644 index 0000000000000000000000000000000000000000..5afaf1902f63910188a36573615e0e2929f35983 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectImport.gql" @@ -0,0 +1,7 @@ +#import "./projectFragment.gql" + +mutation projectImport ($input: ProjectImportInput!) { + projectImport(input: $input) { + ...project + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectInitCreation.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectInitCreation.gql" new file mode 100644 index 0000000000000000000000000000000000000000..0773a09c4b1618d9982580f7bcf5c4fcae77f282 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectInitCreation.gql" @@ -0,0 +1,7 @@ +#import "./projectCreationFragment.gql" + +mutation projectInitCreation { + projectInitCreation { + ...projectCreation + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectOpen.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectOpen.gql" new file mode 100644 index 0000000000000000000000000000000000000000..f4d4e006f1b81bc16dd06f8f7b991349c7c300d3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectOpen.gql" @@ -0,0 +1,7 @@ +#import "./projectFragment.gql" + +mutation projectOpen ($id: ID!) { + projectOpen(id: $id) { + ...project + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectRemove.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectRemove.gql" new file mode 100644 index 0000000000000000000000000000000000000000..bbcb8d7066af55fe2a6b529f40540c68e7ba95e1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectRemove.gql" @@ -0,0 +1,3 @@ +mutation projectRemove ($id: ID!) { + projectRemove (id: $id) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectSetFavorite.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectSetFavorite.gql" new file mode 100644 index 0000000000000000000000000000000000000000..0cae64d8c52bd449652052fa7eff27ec459ad4e1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projectSetFavorite.gql" @@ -0,0 +1,7 @@ +#import "./projectFragment.gql" + +mutation projectSetFavorite ($id: ID!, $favorite: Int!) { + projectSetFavorite (id: $id, favorite: $favorite) { + ...project + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projects.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projects.gql" new file mode 100644 index 0000000000000000000000000000000000000000..bc26e40b36e2058a47c7032d9c6d74b0f0d53e92 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/project/projects.gql" @@ -0,0 +1,11 @@ +#import "./projectFragment.gql" +#import "../task/taskFragment.gql" + +query projects { + projects { + ...project + tasks { + ...task + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/prompt/promptAnswer.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/prompt/promptAnswer.gql" new file mode 100644 index 0000000000000000000000000000000000000000..bb28bbb27e88e326edded324798fa9db97b11ba2 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/prompt/promptAnswer.gql" @@ -0,0 +1,7 @@ +#import "./promptFragment.gql" + +mutation promptAnswer ($input: PromptInput!) { + promptAnswer(input: $input) { + ...prompt + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/prompt/promptChoiceFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/prompt/promptChoiceFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..f1748d6678be017c48afdfe2b4c76d151863b10f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/prompt/promptChoiceFragment.gql" @@ -0,0 +1,7 @@ +fragment promptChoice on PromptChoice { + value + name + checked + disabled + isDefault +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/prompt/promptErrorFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/prompt/promptErrorFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..719d472cc7426d901f8c7c1ea10fb3ce72064f81 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/prompt/promptErrorFragment.gql" @@ -0,0 +1,4 @@ +fragment promptError on PromptError { + message + link +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/prompt/promptFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/prompt/promptFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..4360e254e3ebad9c879fd2912d19636780c09c6f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/prompt/promptFragment.gql" @@ -0,0 +1,23 @@ +#import "./promptChoiceFragment.gql" +#import "./promptErrorFragment.gql" + +fragment prompt on Prompt { + id + type + visible + enabled + name + message + group + description + link + choices { + ...promptChoice + } + value + valueChanged + error { + ...promptError + } + tabId +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/shared-data/sharedData.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/shared-data/sharedData.gql" new file mode 100644 index 0000000000000000000000000000000000000000..2914900299e1f59ee1a568e1b2ff12824af4fc5c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/shared-data/sharedData.gql" @@ -0,0 +1,7 @@ +#import "./sharedDataFragment.gql" + +query sharedData ($id: ID!, $projectId: ID!) { + sharedData (id: $id, projectId: $projectId) { + ...sharedData + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/shared-data/sharedDataFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/shared-data/sharedDataFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..fd434a03a5958e669f2e1317587c864583510561 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/shared-data/sharedDataFragment.gql" @@ -0,0 +1,4 @@ +fragment sharedData on SharedData { + id + value +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/shared-data/sharedDataUpdate.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/shared-data/sharedDataUpdate.gql" new file mode 100644 index 0000000000000000000000000000000000000000..46e5a113f7c88618651ff10267dc2b9d0fc2652d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/shared-data/sharedDataUpdate.gql" @@ -0,0 +1,7 @@ +#import "./sharedDataFragment.gql" + +mutation sharedDataUpdate ($id: ID!, $projectId: ID!, $value: JSON!) { + sharedDataUpdate (id: $id, projectId: $projectId, value: $value) { + ...sharedData + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/shared-data/sharedDataUpdated.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/shared-data/sharedDataUpdated.gql" new file mode 100644 index 0000000000000000000000000000000000000000..8cf2f0b2b3fea50b45133f45cd58dd66f0117424 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/shared-data/sharedDataUpdated.gql" @@ -0,0 +1,7 @@ +#import "./sharedDataFragment.gql" + +subscription sharedDataUpdated ($id: ID!, $projectId: ID!) { + sharedDataUpdated (id: $id, projectId: $projectId) { + ...sharedData + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/suggestion/suggestionActivate.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/suggestion/suggestionActivate.gql" new file mode 100644 index 0000000000000000000000000000000000000000..4100f163146a14c94182679864ff3b2522b192e0 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/suggestion/suggestionActivate.gql" @@ -0,0 +1,7 @@ +#import "./suggestionFragment.gql" + +mutation suggestionActivate ($input: SuggestionActivate!) { + suggestionActivate (input: $input) { + ...suggestion + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/suggestion/suggestionAdded.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/suggestion/suggestionAdded.gql" new file mode 100644 index 0000000000000000000000000000000000000000..3c698c5ab019353246777d2e2c50154354d54cca --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/suggestion/suggestionAdded.gql" @@ -0,0 +1,7 @@ +#import "./suggestionFragment.gql" + +subscription suggestionAdded { + suggestionAdded { + ...suggestion + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/suggestion/suggestionFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/suggestion/suggestionFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..00c22d575f2c83f30ec24cf2bf30dd62b6049cab --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/suggestion/suggestionFragment.gql" @@ -0,0 +1,11 @@ +fragment suggestion on Suggestion { + id + type + importance + label + message + image + link + actionLink + busy +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/suggestion/suggestionRemoved.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/suggestion/suggestionRemoved.gql" new file mode 100644 index 0000000000000000000000000000000000000000..fa75118bb134e0631f5621a79f1af179044618e7 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/suggestion/suggestionRemoved.gql" @@ -0,0 +1,7 @@ +#import "./suggestionFragment.gql" + +subscription suggestionRemoved { + suggestionRemoved { + ...suggestion + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/suggestion/suggestionUpdated.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/suggestion/suggestionUpdated.gql" new file mode 100644 index 0000000000000000000000000000000000000000..a5a01b5ab4719f6abed48d1482a08c097953ed70 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/suggestion/suggestionUpdated.gql" @@ -0,0 +1,7 @@ +#import "./suggestionFragment.gql" + +subscription suggestionUpdated { + suggestionUpdated { + ...suggestion + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/suggestion/suggestions.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/suggestion/suggestions.gql" new file mode 100644 index 0000000000000000000000000000000000000000..e07aebc2859df29e810cd2f0c3f28adeb5ab3f56 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/suggestion/suggestions.gql" @@ -0,0 +1,7 @@ +#import "./suggestionFragment.gql" + +query suggestions { + suggestions { + ...suggestion + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/task.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/task.gql" new file mode 100644 index 0000000000000000000000000000000000000000..f741547fe578269442870aa8769e04123f5e6fbe --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/task.gql" @@ -0,0 +1,19 @@ +#import "./taskFragment.gql" +#import "../prompt/promptFragment.gql" + +query task ($id: ID!) { + task (id: $id) { + ...task + link + prompts { + ...prompt + } + views { + id + label + icon + component + } + defaultView + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskChanged.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskChanged.gql" new file mode 100644 index 0000000000000000000000000000000000000000..d330e9283ab28bd0da17b00f883f68f7cdd7a704 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskChanged.gql" @@ -0,0 +1,7 @@ +#import "./taskFragment.gql" + +subscription taskChanged { + taskChanged { + ...task + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..4d3fde1972f04e68e189ef4ee26db854ad065fc3 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskFragment.gql" @@ -0,0 +1,15 @@ +fragment task on Task { + id + status + name + command + description + icon + plugin { + id + logo + } + project { + id + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskLogAdded.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskLogAdded.gql" new file mode 100644 index 0000000000000000000000000000000000000000..181c8d0da4e6e4a096213acb87a8e9c2627ca436 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskLogAdded.gql" @@ -0,0 +1,7 @@ +#import "./taskLogFragment.gql" + +subscription taskLogAdded ($id: ID!) { + taskLogAdded (id: $id) { + ...taskLog + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskLogFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskLogFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..0c3b251053b70329f7ed2901ffa93880103321fd --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskLogFragment.gql" @@ -0,0 +1,5 @@ +fragment taskLog on TaskLog { + taskId + type + text +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskLogs.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskLogs.gql" new file mode 100644 index 0000000000000000000000000000000000000000..a2f6aa44e93bd9be7595bc1b21d082895384d556 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskLogs.gql" @@ -0,0 +1,10 @@ +#import "./taskLogFragment.gql" + +query taskLogs ($id: ID!) { + taskLogs: task(id: $id) { + id + logs { + ...taskLog + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskLogsClear.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskLogsClear.gql" new file mode 100644 index 0000000000000000000000000000000000000000..4531ea8fef8e00c1bca183448803b7b3bdaaaf4f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskLogsClear.gql" @@ -0,0 +1,7 @@ +#import "./taskFragment.gql" + +mutation taskLogsClear ($id: ID!) { + taskLogsClear (id: $id) { + ...task + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskOpen.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskOpen.gql" new file mode 100644 index 0000000000000000000000000000000000000000..7fbf8f37588f37eeb6a0c6ba9b0ed492d76e963d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskOpen.gql" @@ -0,0 +1,3 @@ +mutation taskOpen ($id: ID!) { + taskOpen (id: $id) +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskRestoreParameters.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskRestoreParameters.gql" new file mode 100644 index 0000000000000000000000000000000000000000..817cc8aee3712add6df504baf1374dff3b8d418b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskRestoreParameters.gql" @@ -0,0 +1,7 @@ +#import "../prompt/promptFragment.gql" + +mutation taskRestoreParameters ($id: ID!) { + taskRestoreParameters (id: $id) { + ...prompt + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskRun.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskRun.gql" new file mode 100644 index 0000000000000000000000000000000000000000..18688b0c36585478828d1ddcc8621a3e26889644 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskRun.gql" @@ -0,0 +1,7 @@ +#import "./taskFragment.gql" + +mutation taskRun ($id: ID!) { + taskRun (id: $id) { + ...task + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskSaveParameters.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskSaveParameters.gql" new file mode 100644 index 0000000000000000000000000000000000000000..063bb2dcecc0ff0d824a9318e44f2d164bbe336f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskSaveParameters.gql" @@ -0,0 +1,7 @@ +#import "../prompt/promptFragment.gql" + +mutation taskSaveParameters ($id: ID!) { + taskSaveParameters (id: $id) { + ...prompt + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskStop.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskStop.gql" new file mode 100644 index 0000000000000000000000000000000000000000..3cc2e7ae859de637a84a7dfd05716d0d5bea009b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/taskStop.gql" @@ -0,0 +1,7 @@ +#import "./taskFragment.gql" + +mutation taskStop ($id: ID!) { + taskStop (id: $id) { + ...task + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/tasks.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/tasks.gql" new file mode 100644 index 0000000000000000000000000000000000000000..a5031578368a5bba121df5cd7b4f0744fd9972f8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/task/tasks.gql" @@ -0,0 +1,7 @@ +#import "./taskFragment.gql" + +query tasks { + tasks { + ...task + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/version/versionFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/version/versionFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..1f21fd9278e031586594308d9c5df00de446cc0c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/version/versionFragment.gql" @@ -0,0 +1,7 @@ +fragment version on Version { + current + latest + wanted + range + localPath +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/view/viewAdded.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/view/viewAdded.gql" new file mode 100644 index 0000000000000000000000000000000000000000..07dd445a712f62e94ab7dbc85bf9477e3671b4f1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/view/viewAdded.gql" @@ -0,0 +1,7 @@ +#import "./viewFragment.gql" + +subscription viewAdded { + viewAdded { + ...view + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/view/viewChanged.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/view/viewChanged.gql" new file mode 100644 index 0000000000000000000000000000000000000000..74718653bce410b5d23cf9c20a43cfefa4819ddc --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/view/viewChanged.gql" @@ -0,0 +1,7 @@ +#import "./viewFragment.gql" + +subscription viewChanged { + viewChanged { + ...view + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/view/viewFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/view/viewFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..60311b1f59e4d7f72de557ed6603b7a59c55486f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/view/viewFragment.gql" @@ -0,0 +1,15 @@ +fragment view on View { + id + name + icon + tooltip + badges { + id + type + count + label + priority + hidden + } + projectTypes +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/view/viewOpen.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/view/viewOpen.gql" new file mode 100644 index 0000000000000000000000000000000000000000..628abff879d94f901adc7b78a4994b93e7de6b49 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/view/viewOpen.gql" @@ -0,0 +1,3 @@ +mutation viewOpen ($id: ID!) { + viewOpen (id: $id) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/view/viewRemoved.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/view/viewRemoved.gql" new file mode 100644 index 0000000000000000000000000000000000000000..eda1d0ec7698f855a16a3dec79cbd30ef9e632a5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/view/viewRemoved.gql" @@ -0,0 +1,7 @@ +#import "./viewFragment.gql" + +subscription viewRemoved { + viewRemoved { + ...view + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/view/views.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/view/views.gql" new file mode 100644 index 0000000000000000000000000000000000000000..0030408b3ce09abd44ad9b5ad40aa3a41d4fdef6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/view/views.gql" @@ -0,0 +1,7 @@ +#import "./viewFragment.gql" + +query views { + views { + ...view + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetAdd.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetAdd.gql" new file mode 100644 index 0000000000000000000000000000000000000000..2df4d8424432915d6f4c3e66f1e3d310c57d97cb --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetAdd.gql" @@ -0,0 +1,7 @@ +#import "./widgetFragment.gql" + +mutation widgetAdd ($input: WidgetAddInput!) { + widgetAdd (input: $input) { + ...widget + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetConfigOpen.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetConfigOpen.gql" new file mode 100644 index 0000000000000000000000000000000000000000..662018a1e968de5e44271170a03b810cef91ebd6 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetConfigOpen.gql" @@ -0,0 +1,7 @@ +#import "./widgetFragment.gql" + +mutation widgetConfigOpen ($id: ID!) { + widgetConfigOpen (id: $id) { + ...widget + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetConfigSave.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetConfigSave.gql" new file mode 100644 index 0000000000000000000000000000000000000000..5a0eb857e3a5323e7b2fbc636b278a027781ba09 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetConfigSave.gql" @@ -0,0 +1,7 @@ +#import "./widgetFragment.gql" + +mutation widgetConfigSave ($id: ID!) { + widgetConfigSave (id: $id) { + ...widget + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetDefinitionFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetDefinitionFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..804e88e0fff215a4d5edeeb7f54f2722d455044a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetDefinitionFragment.gql" @@ -0,0 +1,13 @@ +fragment widgetDefinition on WidgetDefinition { + id + title + description + longDescription + link + icon + screenshot + component + canAddMore + count + maxCount +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetDefinitions.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetDefinitions.gql" new file mode 100644 index 0000000000000000000000000000000000000000..1bc022267f568f336b166d1e703a76667c3ade4c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetDefinitions.gql" @@ -0,0 +1,7 @@ +#import "./widgetDefinitionFragment.gql" + +query widgetDefinitions { + widgetDefinitions { + ...widgetDefinition + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetFragment.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetFragment.gql" new file mode 100644 index 0000000000000000000000000000000000000000..4e1fa07fedee5c3ab5f62279124274dc250e9435 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetFragment.gql" @@ -0,0 +1,28 @@ +#import "../prompt/promptFragment.gql" + +fragment widget on Widget { + id + definition { + id + title + icon + component + detailsComponent + canAddMore + hasConfigPrompts + minWidth + minHeight + maxWidth + maxHeight + openDetailsButton + } + x + y + width + height + config + configured + prompts { + ...prompt + } +} \ No newline at end of file diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetMove.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetMove.gql" new file mode 100644 index 0000000000000000000000000000000000000000..64145cceb21cd65eca838da953df7d3440bbde3d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetMove.gql" @@ -0,0 +1,7 @@ +#import "./widgetFragment.gql" + +mutation widgetMove ($input: WidgetMoveInput!) { + widgetMove (input: $input) { + ...widget + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetRemove.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetRemove.gql" new file mode 100644 index 0000000000000000000000000000000000000000..3982607be740551855876c1d8ac016f898ae374c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgetRemove.gql" @@ -0,0 +1,7 @@ +#import "./widgetFragment.gql" + +mutation widgetRemove ($id: ID!) { + widgetRemove(id: $id) { + ...widget + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgets.gql" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgets.gql" new file mode 100644 index 0000000000000000000000000000000000000000..e85822ba97151edfc833dd641e386a1dd33c1866 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/graphql/widget/widgets.gql" @@ -0,0 +1,7 @@ +#import "./widgetFragment.gql" + +query widgets { + widgets { + ...widget + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/i18n.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/i18n.js" new file mode 100644 index 0000000000000000000000000000000000000000..48a00ee2042e3aa80d06a4c9e7a37e8135c1fad0 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/i18n.js" @@ -0,0 +1,97 @@ +import Vue from 'vue' +import VueI18n from 'vue-i18n' +import deepmerge from 'deepmerge' +import VueTimeago, { createTimeago } from 'vue-timeago' + +Vue.use(VueI18n) + +Vue.use(VueTimeago, { + name: 'VueTimeago', + locale: 'en' +}) + +function detectLanguage () { + try { + const lang = (window.navigator.languages && window.navigator.languages[0]) || + window.navigator.language || + window.navigator.userLanguage + return [lang, lang.toLowerCase(), lang.substr(0, 2)].map(lang => lang.replace('-', '_')) + } catch (e) { + return undefined + } +} + +async function autoInstallLocale (lang) { + try { + const response = await fetch(`https://unpkg.com/vue-cli-locales/locales/${lang}.json`) + if (response.ok) { + const data = await response.json() + mergeLocale(lang, data) + return true + } + } catch (e) {} + return false +} + +async function autoDetect () { + const codes = detectLanguage() + if (codes && codes[0].indexOf('en') === -1) { + let ok = false + let previousCode + for (const code of codes) { + if (code === previousCode) continue + previousCode = code + ok = await tryAutoLang(code) + if (ok) break + } + + if (!ok) { + console.log(`[UI] No locale data was found for your locale ${codes[0]}.`) + } + + let dateFnsLocale = i18n.locale + if (dateFnsLocale === 'en') { + dateFnsLocale = 'en-US' + } else if (dateFnsLocale === 'zh') { + // we use `zh` as language code in transifex, but date-fns only has zh-CN + dateFnsLocale = 'zh-CN' + } + + Vue.component('VueTimeago', createTimeago({ + name: 'VueTimeago', + locale: i18n.locale, + locales: { + [i18n.locale]: require(`date-fns/locale/${dateFnsLocale}/index.js`) + } + })) + } +} + +async function tryAutoLang (lang) { + console.log(`[UI] Trying to load ${lang} locale...`) + const result = await autoInstallLocale(lang) + if (result) { + i18n.locale = lang + // eslint-disable-next-line no-console + console.log(`[UI] Automatically loaded ${lang} locale `) + } + return result +} + +const i18n = new VueI18n({ + locale: 'en', + fallbackLocale: 'en', + messages: { + en: {} + }, + silentTranslationWarn: process.env.NODE_ENV !== 'production' +}) + +autoDetect() + +export function mergeLocale (lang, messages) { + const newData = deepmerge(i18n.getLocaleMessage(lang), messages) + i18n.setLocaleMessage(lang, newData) +} + +export default i18n diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/main.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/main.js" new file mode 100644 index 0000000000000000000000000000000000000000..d9114a815e2681aa75a3c62a5297aabdec17c53b --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/main.js" @@ -0,0 +1,28 @@ +import './plugins' +import './register-components' + +import Vue from 'vue' +import App from './App.vue' +import router from './router' +import i18n from './i18n' +import { apolloProvider } from './vue-apollo' +import ClientAddonApi from './util/ClientAddonApi' +import gql from 'graphql-tag' + +window.gql = gql + +Vue.config.productionTip = false +Vue.config.devtools = true + +// For client addons +window.Vue = Vue +window.ClientAddonApi = new ClientAddonApi() + +const app = new Vue({ + router, + apolloProvider, + i18n, + ...App +}) + +app.$mount('#app') diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/ClientState.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/ClientState.js" new file mode 100644 index 0000000000000000000000000000000000000000..a6a1fabb7dac73f823e30d55ccf540e2d2d79e80 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/ClientState.js" @@ -0,0 +1,26 @@ +import CONNECTED from '@/graphql/connected/connected.gql' +import DARK_MODE from '@/graphql/dark-mode/darkMode.gql' + +// @vue/component +export default { + beforeCreate () { + if (this.$options.clientState) { + const newData = { + connected: CONNECTED, + darkMode: DARK_MODE + } + this.$options.apollo = { + ...this.$options.apollo, + ...newData + } + // Proxy prop on `this` + for (const key in newData) { + Object.defineProperty(this, key, { + get: () => this.$data.$apolloData.data[key], + enumerable: true, + configurable: true + }) + } + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/Defer.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/Defer.js" new file mode 100644 index 0000000000000000000000000000000000000000..8db282b4824a88e949f06c580159089c9308de47 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/Defer.js" @@ -0,0 +1,33 @@ +export default function (count = 10) { + // @vue/component + return { + data () { + return { + displayPriority: 0 + } + }, + + mounted () { + this.runDisplayPriority() + }, + + methods: { + runDisplayPriority () { + this.displayPriority = 0 + const step = () => { + requestAnimationFrame(() => { + this.displayPriority++ + if (this.displayPriority < count) { + step() + } + }) + } + step() + }, + + defer (priority) { + return this.displayPriority >= priority + } + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/Movable.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/Movable.js" new file mode 100644 index 0000000000000000000000000000000000000000..a64a8f348a4ef1d762bae2945fd32d847d3b4e0f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/Movable.js" @@ -0,0 +1,63 @@ +export default function movable ({ + gridSize, + field, + zoom +}) { + // @vue/component + return { + data () { + return { + moveState: null + } + }, + + beforeDestroy () { + this.removeMoveListeners() + }, + + methods: { + removeMoveListeners () { + window.removeEventListener('mousemove', this.onMoveUpdate) + window.removeEventListener('mouseup', this.onMoveEnd) + }, + + updateMoveState (e) { + const mouseDeltaX = e.clientX - this.$_initalMousePosition.x + const mouseDeltaY = e.clientY - this.$_initalMousePosition.y + const pxX = this[field].x * gridSize + mouseDeltaX / zoom + const pxY = this[field].y * gridSize + mouseDeltaY / zoom + let x = Math.round(pxX / gridSize) + let y = Math.round(pxY / gridSize) + if (x < 0) x = 0 + if (y < 0) y = 0 + this.moveState = { + pxX, + pxY, + x, + y + } + }, + + onMoveStart (e) { + this.$_initalMousePosition = { + x: e.clientX, + y: e.clientY + } + this.updateMoveState(e) + window.addEventListener('mousemove', this.onMoveUpdate) + window.addEventListener('mouseup', this.onMoveEnd) + }, + + onMoveUpdate (e) { + this.updateMoveState(e) + }, + + async onMoveEnd (e) { + this.updateMoveState(e) + this.removeMoveListeners() + if (this.onMoved) await this.onMoved() + this.moveState = null + } + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/OnGrid.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/OnGrid.js" new file mode 100644 index 0000000000000000000000000000000000000000..2d1726af42b5b84d1cae5f3d5155bd35bcf52a98 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/OnGrid.js" @@ -0,0 +1,58 @@ +export default function ({ + gridSize, + field +}) { + // @vue/component + return { + computed: { + mainStyle () { + if (this.moveState) { + return { + ...this.getPositionStyle(this.moveState.pxX, this.moveState.pxY), + ...this.getSizeStyle() + } + } + if (this.resizeState) { + return { + ...this.getPositionStyle(this.resizeState.pxX, this.resizeState.pxY), + ...this.getSizeStyle(this.resizeState.pxWidth, this.resizeState.pxHeight) + } + } + return { + ...this.getPositionStyle(gridSize * this[field].x, gridSize * this[field].y), + ...this.getSizeStyle() + } + }, + + moveGhostStyle () { + return { + ...this.getPositionStyle(gridSize * this.moveState.x, gridSize * this.moveState.y), + ...this.getSizeStyle() + } + }, + + resizeGhostStyle () { + return { + ...this.getPositionStyle(gridSize * this.resizeState.x, gridSize * this.resizeState.y), + ...this.getSizeStyle(gridSize * this.resizeState.width, gridSize * this.resizeState.height) + } + } + }, + + methods: { + getPositionStyle (x, y) { + return { + left: `${x}px`, + top: `${y}px` + } + }, + + getSizeStyle (width, height) { + return { + width: `${width || gridSize * this[field].width}px`, + height: `${height || gridSize * this[field].height}px` + } + } + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/OnWindowResize.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/OnWindowResize.js" new file mode 100644 index 0000000000000000000000000000000000000000..351444cec9ae63f5b73a32300e380856015c6c16 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/OnWindowResize.js" @@ -0,0 +1,13 @@ +export default function () { + // @vue/component + return { + mounted () { + window.addEventListener('resize', this.onWindowResize) + this.onWindowResize() + }, + + beforeDestroy () { + window.removeEventListener('resize', this.onWindowResize) + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/PageVisibility.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/PageVisibility.js" new file mode 100644 index 0000000000000000000000000000000000000000..65c8a821efe61af65b4ccec955a186ca82a549fb --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/PageVisibility.js" @@ -0,0 +1,33 @@ +import Vue from 'vue' + +const vm = new Vue({ + data: { + documentVisible: !document.hidden, + documentFocus: document.hasFocus() + } +}) + +document.addEventListener('visibilitychange', () => { + vm.documentVisible = !document.hidden +}, false) + +window.addEventListener('focus', () => { + vm.documentFocus = true +}) + +window.addEventListener('blur', () => { + vm.documentFocus = false +}) + +// @vue/component +export default { + computed: { + documentVisible () { + return vm.documentVisible + }, + + documentFocus () { + return vm.documentFocus + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/Progress.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/Progress.js" new file mode 100644 index 0000000000000000000000000000000000000000..15cabeac5b0ff6b1ab7b3a2dd49d96425da2ff97 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/Progress.js" @@ -0,0 +1,88 @@ +import PROGRESS from '@/graphql/progress/progress.gql' +import PROGRESS_CHANGED from '@/graphql/progress/progressChanged.gql' +import PROGRESS_REMOVED from '@/graphql/progress/progressRemoved.gql' + +// @vue/component +export default { + props: { + progressId: { + type: String, + required: true + } + }, + + data () { + return { + progress: null + } + }, + + apollo: { + progress: { + query: PROGRESS, + variables () { + return { + id: this.progressId + } + }, + fetchPolicy: 'network-only', + subscribeToMore: [ + { + document: PROGRESS_CHANGED, + variables () { + return { + id: this.progressId + } + }, + updateQuery: (previousResult, { subscriptionData }) => { + return { + progress: subscriptionData.data.progressChanged + } + } + }, + { + document: PROGRESS_REMOVED, + variables () { + return { + id: this.progressId + } + }, + updateQuery: () => { + return { + progress: null + } + } + } + ] + } + }, + + computed: { + loading () { + return this.progress && !this.progress.error + }, + + statusMessage () { + if (!this.progress) return null + + const { status } = this.progress + let message + if (status) { + const values = {} + if (this.progress.args) { + for (let i = 0, l = this.progress.args.length; i < l; i++) { + values[`arg${i}`] = this.progress.args[i] + } + } + const key = `org.vue.mixins.progress.${status}` + message = this.$t(key, values) + message = (message !== key && message) + if (!message) { + message = this.$t(status, values) + message = (message !== status && message) + } + } + return message || status || '' + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/Prompts.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/Prompts.js" new file mode 100644 index 0000000000000000000000000000000000000000..61287e5b86535c7b8c15a735c3d210b0946e0f2e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/Prompts.js" @@ -0,0 +1,78 @@ +import PROMPT_ANSWER from '@/graphql/prompt/promptAnswer.gql' + +export default function ({ + field, + query, + variables = null, + updateQuery = null, + update = null +}) { + // @vue/component + return { + computed: { + configurationValid () { + return this.visiblePrompts.filter( + p => + p.error || + p.value === null || + JSON.parse(p.value) === '' + ).length === 0 + }, + + hasPromptsChanged () { + return !!this.visiblePrompts.find( + prompt => prompt.valueChanged + ) + }, + + visiblePrompts () { + if (!this[field]) { + return [] + } + return this[field].prompts.filter( + p => p.visible + ) + } + }, + + watch: { + hasPromptsChanged: { + handler (value) { + this.$emit('has-changes', value) + }, + immediate: true + } + }, + + methods: { + async answerPrompt ({ prompt, value }) { + await this.$apollo.mutate({ + mutation: PROMPT_ANSWER, + variables: { + input: { + id: prompt.id, + value: JSON.stringify(value) + } + }, + update: (store, { data: { promptAnswer } }) => { + if (update) { + update.call(this, store, promptAnswer) + return + } + let vars = variables || this.$apollo.queries[field].options.variables || undefined + if (typeof vars === 'function') { + vars = vars.call(this) + } + const data = store.readQuery({ query, variables: vars }) + if (updateQuery) { + updateQuery.call(this, data, promptAnswer) + } else { + data[field].prompts = promptAnswer + } + store.writeQuery({ query, variables: vars, data }) + } + }) + } + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/Resizable.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/Resizable.js" new file mode 100644 index 0000000000000000000000000000000000000000..7d2d90a24756eaa5581ecf91770c04af8abbec30 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/Resizable.js" @@ -0,0 +1,130 @@ +export default function ({ + gridSize, + field, + zoom +}) { + // @vue/component + return { + data () { + return { + resizeState: null + } + }, + + computed: { + showResizeHandle () { + return this.isSelected && !this.moveState && + this.canBeResized + }, + + canBeResized () { + const { definition } = this[field] + return definition.minWidth !== definition.maxWidth || + definition.minHeight !== definition.maxHeight + } + }, + + created () { + this.resizeHandles = [ + 'top-left', + 'top', + 'top-right', + 'right', + 'bottom-right', + 'bottom', + 'bottom-left', + 'left' + ] + }, + + beforeDestroy () { + this.removeResizeListeners() + }, + + methods: { + removeResizeListeners () { + window.removeEventListener('mousemove', this.onResizeMove) + window.removeEventListener('mouseup', this.onResizeEnd) + }, + + updateResizeState (e) { + const target = this[field] + const mouseDeltaX = (e.clientX - this.$_initalMousePosition.x) / zoom + const mouseDeltaY = (e.clientY - this.$_initalMousePosition.y) / zoom + const handle = this.$_resizeHandle + let dX = 0 + let dY = 0 + let dWidth = 0 + let dHeight = 0 + // Handles + if (handle.includes('left')) { + dX = mouseDeltaX + dWidth = -mouseDeltaX + } else if (handle.includes('right')) { + dWidth = mouseDeltaX + } + if (handle.includes('top')) { + dY = mouseDeltaY + dHeight = -mouseDeltaY + } else if (handle.includes('bottom')) { + dHeight = mouseDeltaY + } + // On-grid diffs + let gridDX = Math.round(dX / gridSize) + let gridDY = Math.round(dY / gridSize) + let gridDWidth = Math.round(dWidth / gridSize) + let gridDHeight = Math.round(dHeight / gridSize) + // Bounds + if (target.width + gridDWidth < target.definition.minWidth) { + gridDWidth = target.definition.minWidth - target.width + gridDX = target.width - target.definition.minWidth + } + if (target.width + gridDWidth > target.definition.maxWidth) { + gridDWidth = target.definition.maxWidth - target.width + gridDX = target.width - target.definition.maxWidth + } + if (target.height + gridDHeight < target.definition.minHeight) { + gridDHeight = target.definition.minHeight - target.height + gridDY = target.height - target.definition.minHeight + } + if (target.height + gridDHeight > target.definition.maxHeight) { + gridDHeight = target.definition.maxHeight - target.height + gridDY = target.height - target.definition.maxHeight + } + // Temp. applied state + this.resizeState = { + x: target.x + gridDX, + y: target.y + gridDY, + width: target.width + gridDWidth, + height: target.height + gridDHeight, + pxX: target.x * gridSize + dX, + pxY: target.y * gridSize + dY, + pxWidth: target.width * gridSize + dWidth, + pxHeight: target.height * gridSize + dHeight + } + }, + + onResizeStart (e, handle) { + this.$_initalMousePosition = { + x: e.clientX, + y: e.clientY + } + this.$_resizeHandle = handle + this.updateResizeState(e) + window.addEventListener('mousemove', this.onResizeMove) + window.addEventListener('mouseup', this.onResizeEnd) + }, + + onResizeMove (e) { + this.updateResizeState(e) + }, + + async onResizeEnd (e) { + this.updateResizeState(e) + this.removeResizeListeners() + if (this.onResized) await this.onResized() + this.resizeState = null + } + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/RestoreRoute.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/RestoreRoute.js" new file mode 100644 index 0000000000000000000000000000000000000000..d80e3646d70bfba5c52d047f4322714a022ee932 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/mixins/RestoreRoute.js" @@ -0,0 +1,62 @@ +import { isSameRoute } from '../util/route' + +import PROJECT_CURRENT from '@/graphql/project/projectCurrent.gql' + +export default function ({ + baseRoute = null +} = {}) { + let lastRoute + + // @vue/component + return { + apollo: { + projectCurrent: PROJECT_CURRENT + }, + + watch: { + projectCurrent (value) { + if (!this.$_restoreRouteReady) return + this.replaceBaseRoute() + } + }, + + bus: { + quickOpenProject (project) { + this.replaceBaseRoute() + } + }, + + beforeRouteEnter (to, from, next) { + if (lastRoute) { + if (!to.params || !Object.keys(to.params).length) { + const { name, params, query } = lastRoute + next({ name, params, query }) + return + } + lastRoute = null + } + next() + }, + + beforeRouteLeave (to, from, next) { + if (from.params && Object.keys(from.params).length) { + lastRoute = from + } + next() + }, + + mounted () { + setTimeout(() => { + this.$_restoreRouteReady = true + }, 100) + }, + + methods: { + replaceBaseRoute () { + if (baseRoute && !isSameRoute(this.$route, baseRoute, false)) { + this.$router.replace(baseRoute) + } + } + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/plugins.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/plugins.js" new file mode 100644 index 0000000000000000000000000000000000000000..889b07a2c3d296b36e8daeb883f3d1b5e4cd7a6e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/plugins.js" @@ -0,0 +1,54 @@ +import Vue from 'vue' +import VueUi from '@vue/ui' +import InstantSearch from 'vue-instantsearch' +import VueMeta from 'vue-meta' +import PortalVue from 'portal-vue' +import VueObserveVisibility from 'vue-observe-visibility' +import * as Filters from './filters' +import Responsive from './util/responsive' +import SharedData from './util/shared-data' +import PluginAction from './util/plugin-action' +import ClientState from './mixins/ClientState' +import SetSize from './util/set-size' +import Focus from './util/focus' +import Bus from './util/bus' +import AnsiColors from './util/ansi-colors' +import VueVirtualScroller from 'vue-virtual-scroller' +import 'vue-virtual-scroller/dist/vue-virtual-scroller.css' + +Vue.use(InstantSearch) +Vue.use(VueMeta) +Vue.use(Responsive, { + computed: { + mobile () { + return this.width <= 768 + }, + tablet () { + return this.width <= 900 + }, + desktop () { + return !this.tablet + }, + wide () { + return this.width >= 1300 + } + } +}) +Vue.use(VueUi) +Vue.use(PortalVue) +Vue.use(VueObserveVisibility) +Vue.use(SharedData) +Vue.use(PluginAction) +Vue.use(Bus) +Vue.use(AnsiColors) + +for (const key in Filters) { + Vue.filter(key, Filters[key]) +} + +Vue.mixin(ClientState) + +Vue.directive('set-size', SetSize) +Vue.directive('focus', Focus) + +Vue.use(VueVirtualScroller) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/register-components.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/register-components.js" new file mode 100644 index 0000000000000000000000000000000000000000..e44b63dc529ae40820b3e49d808a02100e02c01d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/register-components.js" @@ -0,0 +1,20 @@ +/** + * We register all the components so future cli-ui plugins + * could use them directly + */ + +import Vue from 'vue' + +// https://webpack.js.org/guides/dependency-management/#require-context +const requireComponent = require.context('./components', true, /[a-z0-9]+\.(jsx?|vue)$/i) + +// For each matching file name... +requireComponent.keys().forEach(fileName => { + const componentConfig = requireComponent(fileName) + const componentName = fileName + .substr(fileName.lastIndexOf('/') + 1) + // Remove the file extension from the end + .replace(/\.\w+$/, '') + // Globally register the component + Vue.component(componentName, componentConfig.default || componentConfig) +}) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/router.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/router.js" new file mode 100644 index 0000000000000000000000000000000000000000..b01878c7945488c49f79830fd8c8c1011af4c2cf --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/router.js" @@ -0,0 +1,146 @@ +import Vue from 'vue' +import Router from 'vue-router' +import { apolloClient } from './vue-apollo' + +import ProjectHome from './components/app/ProjectHome.vue' + +import ProjectDashboard from './components/dashboard/ProjectDashboard.vue' +import ProjectPlugins from './components/plugin/ProjectPlugins.vue' +import ProjectPluginsAdd from './components/plugin/ProjectPluginsAdd.vue' +import ProjectConfigurations from './components/configuration/ProjectConfigurations.vue' +import ProjectConfigurationDetails from './components/configuration/ProjectConfigurationDetails.vue' +import ProjectTasks from './components/task/ProjectTasks.vue' +import ProjectTaskDetails from './components/task/ProjectTaskDetails.vue' +import ProjectDependencies from './components/dependency/ProjectDependencies.vue' + +import ProjectSelect from './components/project-manager/ProjectSelect.vue' +import ProjectCreate from './components/project-create/ProjectCreate.vue' + +import FileDiffView from './components/file-diff/FileDiffView.vue' + +import About from './components/app/About.vue' +import NotFound from './components/app/NotFound.vue' + +import PROJECT_CURRENT from './graphql/project/projectCurrent.gql' +import CURRENT_PROJECT_ID_SET from './graphql/project/currentProjectIdSet.gql' + +Vue.use(Router) + +const router = new Router({ + mode: 'history', + routes: [ + { + path: '/', + component: ProjectHome, + meta: { + needProject: true + }, + children: [ + { + path: '', + name: 'project-home', + redirect: { name: 'project-dashboard' } + }, + { + path: 'dashboard', + name: 'project-dashboard', + component: ProjectDashboard + }, + { + path: 'plugins', + name: 'project-plugins', + component: ProjectPlugins + }, + { + path: 'plugins/add', + name: 'project-plugins-add', + component: ProjectPluginsAdd + }, + { + path: 'configuration', + name: 'project-configurations', + component: ProjectConfigurations, + children: [ + { + path: ':id', + name: 'project-configuration-details', + component: ProjectConfigurationDetails, + props: true + } + ] + }, + { + path: 'tasks', + name: 'project-tasks', + component: ProjectTasks, + children: [ + { + path: ':id', + name: 'project-task-details', + component: ProjectTaskDetails, + props: true + } + ] + }, + { + path: 'dependencies', + name: 'project-dependencies', + component: ProjectDependencies + } + ] + }, + { + path: '/project/select', + name: 'project-select', + component: ProjectSelect + }, + { + path: '/project/create', + name: 'project-create', + component: ProjectCreate + }, + { + path: '/file-diff', + name: 'file-diff', + component: FileDiffView + }, + { + path: '/about', + name: 'about', + component: About + }, + { + path: '/home', + name: 'home', + redirect: { name: 'project-home' } + }, + { + path: '*', + name: 'not-found', + component: NotFound + } + ] +}) + +router.beforeEach(async (to, from, next) => { + if (to.matched.some(m => m.meta.needProject)) { + const result = await apolloClient.query({ + query: PROJECT_CURRENT, + fetchPolicy: 'network-only' + }) + if (!result.data.projectCurrent) { + next({ name: 'project-select' }) + return + } else { + await apolloClient.mutate({ + mutation: CURRENT_PROJECT_ID_SET, + variables: { + projectId: result.data.projectCurrent.id + } + }) + } + } + next() +}) + +export default router diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/state/defaults.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/state/defaults.js" new file mode 100644 index 0000000000000000000000000000000000000000..b534f6e78e7dc757baccc22014424f4a9b90d15f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/state/defaults.js" @@ -0,0 +1,6 @@ +export default () => ({ + connected: true, + loading: 0, + darkMode: false, + currentProjectId: null +}) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/state/resolvers.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/state/resolvers.js" new file mode 100644 index 0000000000000000000000000000000000000000..3ef310f39aa0bd83e9e31d26d95ede1a4a6205cf --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/state/resolvers.js" @@ -0,0 +1,44 @@ +import LOADING from '@/graphql/loading/loading.gql' + +export default { + Mutation: { + connectedSet: (root, { value }, { cache }) => { + const data = { + connected: value + } + cache.writeData({ data }) + return null + }, + + loadingChange: (root, { mod }, { cache }) => { + const { loading } = cache.readQuery({ query: LOADING }) + const data = { + loading: loading + mod + } + cache.writeData({ data }) + return null + }, + + darkModeSet: (root, { enabled }, { cache }) => { + const data = { + darkMode: enabled + } + cache.writeData({ data }) + const el = document.getElementsByTagName('html')[0] + if (enabled) { + el.classList.add('vue-ui-dark-mode') + } else { + el.classList.remove('vue-ui-dark-mode') + } + return null + }, + + currentProjectIdSet: (root, { projectId }, { cache }) => { + const data = { + currentProjectId: projectId + } + cache.writeData({ data }) + return null + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/state/typeDefs.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/state/typeDefs.js" new file mode 100644 index 0000000000000000000000000000000000000000..27ae916efd97cc02b864e2472eadad83c8593703 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/state/typeDefs.js" @@ -0,0 +1,17 @@ +import gql from 'graphql-tag' + +export default gql` +extend type Query { + connected: Boolean! + loading: Boolean! + darkMode: Boolean! + currentProjectId: String +} + +extend type Mutation { + connectedSet (value: Boolean!): Boolean + loadingChange (mod: Int!): Boolean + darkModeSet (enabled: Boolean!): Boolean + currentProjectIdSet (projectId: String): Boolean +} +` diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/style/colors.styl" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/style/colors.styl" new file mode 100644 index 0000000000000000000000000000000000000000..bfb7e672ba284ba3d731544281889b8f8427463d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/style/colors.styl" @@ -0,0 +1,9 @@ +$color-background-light = lighten($vue-ui-color-light-neutral, 80%) +$color-text-light = lighten($vue-ui-color-dark, 40%) + +$content-bg-primary-light = darken($vue-ui-color-light-neutral, 8%) +$content-bg-primary-dark = lighten($vue-ui-color-dark, 3%) +$content-bg-secondary-light = darken($vue-ui-color-light-neutral, 12%) +$content-bg-secondary-dark = lighten($vue-ui-color-dark, 6%) +$content-bg-list-light = $vue-ui-color-light-neutral +$content-bg-list-dark = $vue-ui-color-dark diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/style/imports.styl" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/style/imports.styl" new file mode 100644 index 0000000000000000000000000000000000000000..29baddd710790dacf5905c7994f14e0b6bf83c08 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/style/imports.styl" @@ -0,0 +1,4 @@ +@import "~@vue/ui/src/style/imports" +@import "colors" +@import "vars" +@import "mixins" diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/style/main.styl" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/style/main.styl" new file mode 100644 index 0000000000000000000000000000000000000000..729884041080c35a3868bb5ea1db2af41844f2a5 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/style/main.styl" @@ -0,0 +1,250 @@ +@import '~prismjs/themes/prism.css' +@import 'transitions' + +html, +body, +#app, +.page + height 100% + +h2 + line-height 32px + +ul + padding-left $padding-item + +.empty-icon + display block + margin 24px auto + width 48px + height @width + +.actions-bar + padding $padding-item + h-box() + box-center() + position relative + + > * + space-between-x($padding-item) + + &.space-between + justify-content space-between + &.center + justify-content center + &.start + justify-content flex-start + &.end + justify-content flex-end + &.fill + > * + flex auto 1 1 + width 0 + +.cta-text + margin $padding-item + color $color-text-light + font-size 18px + +.list-item + list-item() + +.list-header + padding $padding-item + display flex + align-items center + justify-content center + + .search + flex 1 + +.card + background $vue-ui-color-light + border-radius ($br * 2) + box-shadow 0 4px 15px rgba(black, .05) + .vue-ui-dark-mode & + background $vue-ui-color-darker + +ansi-colors('black', $vue-ui-color-dark) +ansi-colors('red', $vue-ui-color-danger) +ansi-colors('green', $vue-ui-color-primary) +ansi-colors('yellow', $vue-ui-color-warning) +ansi-colors('blue', $md-blue) +ansi-colors('magenta', $vue-ui-color-accent) +ansi-colors('cyan', $vue-ui-color-info) +ansi-colors('white', $vue-ui-color-light) +.vue-ui-dark-mode + ansi-colors('black', $vue-ui-color-dark-neutral) + ansi-colors('magenta', lighten($vue-ui-color-accent, 60%)) + ansi-colors('white', $vue-ui-color-light-neutral) + +.vue-ui-icon.separator + width 6px + height @width + h-box() + box-center() + margin $padding-item + svg + fill rgba($vue-ui-color-dark, .2) + .vue-ui-dark-mode & + fill rgba($vue-ui-color-light, .2) + +.ais-index + height 100% + v-box() + align-items stretch + +.ais-results-box + flex 100% 1 1 + height 0 + overflow-x hidden + overflow-y auto + margin $padding-item 0 + +.ais-no-results + margin-top 42px + +.ais-highlight + em + font-style normal + background lighten($vue-ui-color-primary, 80%) + color darken($vue-ui-color-primary, 10%) + padding 0 2px + border-radius $br + .vue-ui-dark-mode & + background $vue-ui-color-dark + color $vue-ui-color-primary + +.ais-logo + max-width 150px + .vue-ui-dark-mode & + filter brightness(200%) + +.no-padding-x + padding-left 0 + padding-right 0 +.no-padding-y + padding-top 0 + padding-bottom 0 +.no-margin-x + margin-left 0 + margin-right 0 +.no-margin-y + margin-top 0 + margin-bottom 0 + +.fill-height + height 100% + +.blank-icon + width 24px + height @width + display block + margin auto + svg + fill rgba($vue-ui-color-dark, .3) + +.pane-toolbar + h-box() + align-items center + padding 6px 6px 6px $padding-item + > :not(.separator) + space-between-x(6px) + > * + .separator + margin-left 6px + .title + flex 100% 1 1 + width 0 + ellipsis() + + > .vue-ui-switch, + > .vue-ui-button:not(.icon-button), + .dropdown-trigger > .vue-ui-button:not(.icon-button) + padding 0 8px + + > .vue-ui-switch + font-size 14px + +.dropdown-separator + height 1px + margin ($padding-item / 2) 0 + background rgba($vue-ui-color-dark, .05) + .vue-ui-dark-mode & + background rgba($vue-ui-color-dark-neutral, .2) + +.vue-ui-modal + &.anchor + align-items flex-start + .shell + margin-top 42px + +// Syntax highlighting +.token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string + background none !important + +.vue-ui-dark-mode + .token.property, .token.tag, .token.boolean, .token.number, .token.constant, .token.symbol, .token.deleted + color lighten(#905, 40%) + + .token.selector, .token.attr-name, .token.string, .token.char, .token.builtin, .token.inserted + color lighten(#690, 40%) + + .token.atrule, .token.attr-value, .token.keyword + color lighten(#07a, 40%) + + .token.function, .token.class-name + color lighten(#dd4a68, 30%) + + .token.operator, .token.entity, .token.url, .language-css .token.string, .style .token.string + color lighten(#9a6e3a, 20%) + + .token.punctuation + color lighten(#999, 20%) + +// Resizing + +.resize-handle + position absolute + width 12px + height @width + border-radius 50% + background $vue-ui-color-primary + + $halfWidth = @width / 2 + $halfHeight = @height / 2 + + &:hover + background $vue-ui-color-primary + &.top, + &.top-left, + &.top-right + top -($halfHeight) + &.bottom, + &.bottom-left, + &.bottom-right + bottom -($halfHeight) + &.left, + &.top-left, + &.bottom-left + left -($halfWidth) + &.right, + &.top-right, + &.bottom-right + right -($halfWidth) + &.top, + &.bottom + left 'calc(50% - %s)' % $halfWidth + cursor ns-resize + &.left, + &.right + top 'calc(50% - %s)' % $halfHeight + cursor ew-resize + &.top-left, + &.bottom-right + cursor nwse-resize + &.top-right, + &.bottom-left + cursor nesw-resize + +.vue-ui-select + width 100% diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/style/mixins.styl" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/style/mixins.styl" new file mode 100644 index 0000000000000000000000000000000000000000..b026f9c03d5aeb414726f93e80bfd646d4b6f4e4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/style/mixins.styl" @@ -0,0 +1,20 @@ +list-item() + user-select none + cursor pointer + + &.selected + background rgba($vue-ui-color-primary, .08) + + &:hover + background rgba($vue-ui-color-primary, .05) + + +ansi-colors($name, $color) + .ansi-{$name}-fg + color $color + .ansi-{$name}-bg + background $color + .ansi-bright-{$name}-fg + color lighten($color, 10%) + .ansi-bright-{$name}-bg + background lighten($color, 10%) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/style/transitions.styl" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/style/transitions.styl" new file mode 100644 index 0000000000000000000000000000000000000000..861ad75d994de9821411cba7a012a1c4117d5ba9 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/style/transitions.styl" @@ -0,0 +1,21 @@ +.sidepane-enter-active, +.sidepane-leave-active + transition transform .15s + +.sidepane-enter, +.sidepane-leave-to + transform translateX(100%) + +.slide-up-enter-active, +.slide-up-leave-active + transition transform .3s ease-out, opacity .3s + +.slide-up-enter, +.slide-up-leave-to + opacity 0 + +.slide-up-enter + transform translateY(100%) + +.slide-up-leave-to + transform translateY(-100%) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/style/vars.styl" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/style/vars.styl" new file mode 100644 index 0000000000000000000000000000000000000000..a8067d2dca127f1fa3dd029d279a9340ec0a7d4d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/style/vars.styl" @@ -0,0 +1,3 @@ +$padding-item = 16px +$font-mono = 'Roboto Mono', monospace +$ease = cubic-bezier(0.075, 0.820, 0.165, 1.000) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/ClientAddonApi.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/ClientAddonApi.js" new file mode 100644 index 0000000000000000000000000000000000000000..92ad2a9ff244fc895209c3a7f31850f5eafc82f8 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/ClientAddonApi.js" @@ -0,0 +1,98 @@ +import Vue from 'vue' +import router from '../router' +import { mergeLocale } from '../i18n' +import ProjectHome from '@/components/app/ProjectHome.vue' + +export default class ClientAddonApi { + constructor () { + this.components = new Map() + this.componentListeners = new Map() + } + + /** + * Register a component globally. + * + * @param {string} id Component id + * @param {object} definition Component definition + */ + component (id, definition) { + this.components.set(id, definition) + const componentId = toComponentId(id) + Vue.component(componentId, definition) + // eslint-disable-next-line no-console + console.log(`[ClientAddonApi] Registered ${componentId} component`) + // Call listeners + const listeners = this.componentListeners.get(id) + if (listeners) { + listeners.forEach(l => l(definition)) + this.componentListeners.delete(id) + } + } + + /** + * Add routes to vue-router under a /addon/ parent route. + * For example, addRoutes('foo', [ { path: '' }, { path: 'bar' } ]) + * will add the /addon/foo/ and the /addon/foo/bar routes to vue-router. + * + * @param {string} id Routes pack id (generally the vue-cli plugin id) + * @param {any} routes vue-router route definitions + */ + addRoutes (id, routes) { + router.addRoutes([ + { + path: `/addon/${id}`, + component: ProjectHome, + meta: { + needProject: true, + restore: true + }, + children: routes + } + ]) + // eslint-disable-next-line no-console + console.log(`[ClientAddonApi] Registered new routes under the /addon/${id} route`) + } + + /** + * Merge new strings into the specified lang translations (using vue-i18n). + * + * @param {string} lang Locale to merge to (ex: 'en', 'fr'...) + * @param {object} strings A vue-i18n strings object containing the translations + */ + addLocalization (lang, strings) { + mergeLocale(lang, strings) + // eslint-disable-next-line no-console + console.log(`[ClientAddonApi] Registered new strings for locale ${lang}`) + } + + /* Internal */ + + getComponent (id) { + return this.components.get(id) + } + + listenForComponent (id, cb) { + let listeners = this.componentListeners.get(id) + if (!listeners) { + listeners = [] + this.componentListeners.set(id, listeners) + } + listeners.push(cb) + } + + awaitComponent (id) { + return new Promise((resolve, reject) => { + const result = this.getComponent(id) + if (result) { + resolve(result) + } else { + this.listenForComponent(id, resolve) + } + }) + } +} + +export function toComponentId (id) { + id = id.replace(/\./g, '-') + return `client-addon--${id}` +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/ansi-colors.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/ansi-colors.js" new file mode 100644 index 0000000000000000000000000000000000000000..aeb82c93b8899d8378e242f060394005e0e9182a --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/ansi-colors.js" @@ -0,0 +1,11 @@ +import AU from 'ansi_up' + +const ansiUp = new AU() +ansiUp.use_classes = true +ansiUp.escape_for_html = false + +export default { + install (Vue) { + Vue.prototype.ansiColors = text => ansiUp.ansi_to_html(text) + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/bus.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/bus.js" new file mode 100644 index 0000000000000000000000000000000000000000..380bc05f5171af9d23c9da432a12502e1dbb5fd1 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/bus.js" @@ -0,0 +1,61 @@ +import Vue from 'vue' + +const bus = new Vue() + +export default { + install (Vue) { + Vue.prototype.$bus = (type, ...args) => { + bus.$emit(type, ...args) + } + + Vue.mixin({ + beforeCreate () { + const busOptions = this.$options.bus + if (busOptions) { + this.$_bus = [] + + const addListeners = map => { + for (const event in map) { + const handler = map[event].bind(this) + bus.$on(event, handler) + this.$_bus.push({ event, handler }) + } + } + + if (Array.isArray(busOptions)) { + busOptions.forEach(addListeners) + } else { + addListeners(busOptions) + } + } + }, + + beforeDestroy () { + if (this.$_bus) { + for (const listener of this.$_bus) { + bus.$off(listener.event, listener.handler) + } + } + } + }) + + Vue.config.optionMergeStrategies.bus = (parent, child, vm) => { + if (Array.isArray(parent)) { + if (Array.isArray(child)) { + return parent.concat(child) + } else { + parent.push(child) + return parent + } + } else if (Array.isArray(child)) { + child.push(parent) + return child + } else if (parent && child) { + return [parent, child] + } else if (parent) { + return parent + } + return child + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/focus.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/focus.js" new file mode 100644 index 0000000000000000000000000000000000000000..af568824e150053423788f82456ce7a61b630085 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/focus.js" @@ -0,0 +1,9 @@ +export default { + bind (el) { + requestAnimationFrame(() => { + const input = el.querySelector('input') + if (input) el = input + el.focus() + }) + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/folders.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/folders.js" new file mode 100644 index 0000000000000000000000000000000000000000..6510c267fa72c6121e7e1d7939a8922b5e0df994 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/folders.js" @@ -0,0 +1,8 @@ +export function isValidName (name) { + return !name.match(/[/@\s+%:]|^[_.]/) && encodeURIComponent(name) === name && name.length <= 214 +} + +export function isValidMultiName (name) { + name = name.replace(/\\/g, '/') + return name.split('/').every(isValidName) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/image.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/image.js" new file mode 100644 index 0000000000000000000000000000000000000000..962bd072e96fdb5f35d70a517aa578da4f680ea4 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/image.js" @@ -0,0 +1,7 @@ +export function getImageUrl (url) { + // Fix images in development + if (process.env.VUE_APP_CLI_UI_DEV && url.charAt(0) === '/') { + return `http://localhost:${process.env.VUE_APP_GRAPHQL_PORT}${url}` + } + return url +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/plugin-action.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/plugin-action.js" new file mode 100644 index 0000000000000000000000000000000000000000..8a9c2e06fe1313d4aed4394d583095f80ce7a032 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/plugin-action.js" @@ -0,0 +1,38 @@ +import PLUGIN_ACTION_CALL from '@/graphql/plugin/pluginActionCall.gql' +import PLUGIN_ACTION_CALLED from '@/graphql/plugin/pluginActionCalled.gql' +import PLUGIN_ACTION_RESOLVED from '@/graphql/plugin/pluginActionResolved.gql' + +let uid = 0 + +export default { + install (Vue) { + Vue.mixin({ + methods: { + async $callPluginAction (id, params) { + const result = await this.$apollo.mutate({ + mutation: PLUGIN_ACTION_CALL, + variables: { + id, + params + } + }) + return result.data.pluginActionCall + }, + + $onPluginActionCalled (cb) { + return this.$apollo.addSmartSubscription(`plugin-action-called-${uid++}`, { + query: PLUGIN_ACTION_CALLED, + result: ({ data }) => cb(data.pluginActionCalled) + }) + }, + + $onPluginActionResolved (cb) { + return this.$apollo.addSmartSubscription(`plugin-action-resolved-${uid++}`, { + query: PLUGIN_ACTION_RESOLVED, + result: ({ data }) => cb(data.pluginActionResolved) + }) + } + } + }) + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/responsive.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/responsive.js" new file mode 100644 index 0000000000000000000000000000000000000000..67ff6b2c29d4c90f5a2048dc73f9372da76e5386 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/responsive.js" @@ -0,0 +1,28 @@ +export let responsive + +export default { + install (Vue, options) { + const finalOptions = Object.assign({}, { + computed: {} + }, options) + + responsive = new Vue({ + data () { + return { + width: window.innerWidth, + height: window.innerHeight + } + }, + computed: finalOptions.computed + }) + + Object.defineProperty(Vue.prototype, '$responsive', { + get: () => responsive + }) + + window.addEventListener('resize', () => { + responsive.width = window.innerWidth + responsive.height = window.innerHeight + }) + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/route.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/route.js" new file mode 100644 index 0000000000000000000000000000000000000000..cd79302f685a6c2551f349ebcbe9f5dcfdfcda2d --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/route.js" @@ -0,0 +1,60 @@ +const trailingSlashRE = /\/?$/ + +export function isSameRoute (a, b, checkQuery = true) { + if (!b) { + return false + } else if (a.path && b.path) { + return ( + a.path.replace(trailingSlashRE, '') === b.path.replace(trailingSlashRE, '') && + a.hash === b.hash && + (!checkQuery || isObjectEqual(a.query, b.query)) + ) + } else if (a.name && b.name) { + return ( + a.name === b.name && + a.hash === b.hash && + isObjectEqual(a.params, b.params) && + (!checkQuery || isObjectEqual(a.query, b.query)) + ) + } else { + return false + } +} + +function isObjectEqual (a = {}, b = {}) { + // handle null value #1566 + if (!a || !b) return a === b + const aKeys = Object.keys(a) + const bKeys = Object.keys(b) + if (aKeys.length !== bKeys.length) { + return false + } + return aKeys.every(key => { + const aVal = a[key] + const bVal = b[key] + // check nested equality + if (typeof aVal === 'object' && typeof bVal === 'object') { + return isObjectEqual(aVal, bVal) + } + return String(aVal) === String(bVal) + }) +} + +export function isIncludedRoute (current, target) { + return ( + current.path.replace(trailingSlashRE, '/').indexOf( + target.path.replace(trailingSlashRE, '/') + ) === 0 && + (!target.hash || current.hash === target.hash) && + queryIncludes(current.query, target.query) + ) +} + +function queryIncludes (current, target) { + for (const key in target) { + if (!(key in current)) { + return false + } + } + return true +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/search.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/search.js" new file mode 100644 index 0000000000000000000000000000000000000000..d9064779b829ae16da82b41f71e6d16b2392917f --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/search.js" @@ -0,0 +1,3 @@ +export function generateSearchRegex (text) { + return text && new RegExp(text.trim().replace(/\s+/g, '.{0,5}'), 'i') +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/set-size.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/set-size.js" new file mode 100644 index 0000000000000000000000000000000000000000..f2d324d5062ab6a80baa6a8096e6ca8c920c3233 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/set-size.js" @@ -0,0 +1,12 @@ +export default { + bind (el, { value }) { + if (typeof value === 'string') { + value = el.querySelector(value) + } + requestAnimationFrame(() => { + const bounds = value.getBoundingClientRect() + el.style.width = `${bounds.width}px` + el.style.height = `${bounds.height}px` + }) + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/shared-data.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/shared-data.js" new file mode 100644 index 0000000000000000000000000000000000000000..5f6b6f0cd5981e2e78423709355a7eefcec37bda --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/shared-data.js" @@ -0,0 +1,169 @@ +import SHARED_DATA from '@/graphql/shared-data/sharedData.gql' +import SHARED_DATA_UPDATE from '@/graphql/shared-data/sharedDataUpdate.gql' +import SHARED_DATA_UPDATED from '@/graphql/shared-data/sharedDataUpdated.gql' +import CURRENT_PROJECT_ID from '@/graphql/project/currentProjectId.gql' + +function genQuery (id, projectId) { + return { + query: SHARED_DATA, + variables: { + id, + projectId + }, + update: ({ sharedData }) => (sharedData && sharedData.value) || undefined, + subscribeToMore: { + document: SHARED_DATA_UPDATED, + variables: { + id, + projectId + }, + updateQuery: (previousResult, { subscriptionData }) => { + return { + sharedData: subscriptionData.data.sharedDataUpdated + } + } + } + } +} + +export default { + install (Vue) { + Vue.mixin({ + data () { + return { + $sharedData: {} + } + }, + + beforeCreate () { + Object.defineProperty(this, '$sharedData', { + get: () => this.$data.$sharedData, + enumerable: true, + configurable: true + }) + }, + + async created () { + const options = this.$options.sharedData + if (options) { + if (typeof options === 'function') { + let smartQueries + this.$watch(options.bind(this), async result => { + if (smartQueries) { + smartQueries.forEach(s => s.destroy()) + } + smartQueries = await this.$syncSharedData(result) + }, { + immediate: true + }) + } else { + await this.$syncSharedData(options) + } + // Force watchers to re-evaluate + // Because we just added the proxies to this.$data.$sharedData[key] + this._watchers.forEach(watcher => { + watcher.update() + }) + } + }, + + methods: { + $getProjectId () { + return new Promise((resolve) => { + const client = this.$apollo.getClient() + const observable = client.watchQuery({ + query: CURRENT_PROJECT_ID + }) + const sub = observable.subscribe({ + next ({ data }) { + if (data.currentProjectId) { + sub.unsubscribe() + resolve(data.currentProjectId) + } + } + }) + }) + }, + + async $getSharedData (id) { + const projectId = await this.$getProjectId() + const result = await this.$apollo.query({ + query: SHARED_DATA, + variables: { + id, + projectId + } + }) + return result.sharedData.value + }, + + async $watchSharedData (id, cb) { + const projectId = await this.$getProjectId() + return this.$apollo.addSmartQuery(id, { + ...genQuery(id, projectId), + manual: true, + result: ({ data }) => { + data && data.sharedData && cb(data.sharedData.value) + } + }) + }, + + async $setSharedData (id, value) { + const projectId = await this.$getProjectId() + return this.$apollo.mutate({ + mutation: SHARED_DATA_UPDATE, + variables: { + id, + value, + projectId + } + }) + }, + + async $syncSharedData (options) { + for (const key in options) { + const id = options[key] + this.$set(this.$data.$sharedData, key, null) + // Proxy + Object.defineProperty(this, key, { + get: () => this.$data.$sharedData[key], + set: value => { + this.$set(this.$data.$sharedData, key, value) + this.$setSharedData(id, value) + }, + enumerable: true, + configurable: true + }) + } + const projectId = await this.$getProjectId() + const smartQueries = [] + for (const key in options) { + const id = options[key] + const smartQuery = this.$apollo.addSmartQuery(key, { + ...genQuery(id, projectId), + update: undefined, + manual: true, + result: (result) => { + if (result && result.data) { + const { data: { sharedData } } = result + const value = (sharedData && sharedData.value) || undefined + this.$set(this.$data.$sharedData, key, value) + } + } + }) + smartQueries.push(smartQuery) + } + return smartQueries + } + } + }) + + window.mapSharedData = (namespace, options) => { + const result = {} + for (const key in options) { + result[key] = namespace + options[key] + } + return result + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/theme.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/theme.js" new file mode 100644 index 0000000000000000000000000000000000000000..c83ebb68e78c7f20e6c643489de159de97a492fc --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/util/theme.js" @@ -0,0 +1,12 @@ +let forcedTheme = null + +{ + const result = /\?theme=(\w+)/.exec(window.location.href) + if (result) forcedTheme = result[1] +} + +console.log('forced theme', forcedTheme) + +export function getForcedTheme () { + return forcedTheme +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/vue-apollo.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/vue-apollo.js" new file mode 100644 index 0000000000000000000000000000000000000000..807cc87f8d1ae7ee03a8a40e4b89daac032ed832 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/src/vue-apollo.js" @@ -0,0 +1,133 @@ +import Vue from 'vue' +import VueApollo from 'vue-apollo' +import { createApolloClient } from 'vue-cli-plugin-apollo/graphql-client' +import clientStateDefaults from './state/defaults' +import clientStateResolvers from './state/resolvers' +import clientStateTypeDefs from './state/typeDefs' +// GraphQL documents +import PROJECT_CURRENT from './graphql/project/projectCurrent.gql' +import CURRENT_PROJECT_ID_SET from './graphql/project/currentProjectIdSet.gql' +import CONNECTED_SET from '@/graphql/connected/connectedSet.gql' +import LOADING_CHANGE from '@/graphql/loading/loadingChange.gql' +import DARK_MODE_SET from '@/graphql/dark-mode/darkModeSet.gql' +import { getForcedTheme } from './util/theme' + +// Install the vue plugin +Vue.use(VueApollo) + +let endpoint = process.env.VUE_APP_CLI_UI_URL +if (typeof endpoint === 'undefined') { + endpoint = `ws://localhost:${process.env.VUE_APP_GRAPHQL_PORT}/graphql` +} else if (endpoint === '') { + endpoint = window.location.origin.replace('http', 'ws') + '/graphql' +} + +// Config +const options = { + inMemoryCacheOptions: {}, + wsEndpoint: endpoint, + persisting: false, + websocketsOnly: true, + typeDefs: clientStateTypeDefs, + resolvers: clientStateResolvers, + onCacheInit: cache => { + cache.writeData({ data: clientStateDefaults() }) + } +} + +// Create apollo client +export const { apolloClient, wsClient } = createApolloClient(options) + +// Create vue apollo provider +export const apolloProvider = new VueApollo({ + defaultClient: apolloClient, + defaultOptions: { + $query: { + fetchPolicy: 'cache-and-network', + errorPolicy: 'all' + } + }, + watchLoading (state, mod) { + apolloClient.mutate({ + mutation: LOADING_CHANGE, + variables: { + mod + } + }) + }, + errorHandler (error) { + console.log('%cAn error occurred', 'background: red; color: white; padding: 4px; border-radius: 4px;font-weight: bold;') + console.log(error.message) + if (error.graphQLErrors) { + console.log(error.graphQLErrors) + } + if (error.networkError) { + console.log(error.networkError) + } + } +}) + +export async function resetApollo () { + console.log('[UI] Apollo store reset') + + const { data: { projectCurrent } } = await apolloClient.query({ + query: PROJECT_CURRENT, + fetchPolicy: 'network-only' + }) + const projectId = projectCurrent.id + + try { + await apolloClient.resetStore() + } catch (e) { + // Potential errors + } + + await apolloClient.mutate({ + mutation: CURRENT_PROJECT_ID_SET, + variables: { + projectId + } + }) + + loadDarkMode() +} + +/* Connected state */ + +function setConnected (value) { + apolloClient.mutate({ + mutation: CONNECTED_SET, + variables: { + value + } + }) +} + +wsClient.on('connected', () => setConnected(true)) +wsClient.on('reconnected', async () => { + await resetApollo() + setConnected(true) +}) +// Offline +wsClient.on('disconnected', () => setConnected(false)) +wsClient.on('error', () => setConnected(false)) + +/* Dark mode */ + +function loadDarkMode () { + let enabled, forcedTheme + if ((forcedTheme = getForcedTheme())) { + enabled = forcedTheme === 'dark' + } else { + const raw = localStorage.getItem('vue-ui-dark-mode') + enabled = raw === 'true' + } + apolloClient.mutate({ + mutation: DARK_MODE_SET, + variables: { + enabled + } + }) +} + +loadDarkMode() diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/config.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/config.js" new file mode 100644 index 0000000000000000000000000000000000000000..e91c77482038198e38df754f764dddde9700293e --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/config.js" @@ -0,0 +1,116 @@ +module.exports = api => { + api.describeConfig({ + id: 'org.vue.vue-cli', + name: 'Vue CLI', + description: 'org.vue.vue-webpack.config.vue-cli.description', + link: 'https://cli.vuejs.org/config/', + files: { + vue: { + js: ['vue.config.js'] + } + }, + icon: '/public/vue-cli.png', + onRead: ({ data }) => ({ + prompts: [ + { + name: 'publicPath', + type: 'input', + default: '/', + value: data.vue && data.vue.publicPath, + message: 'org.vue.vue-webpack.config.vue-cli.publicPath.label', + description: 'org.vue.vue-webpack.config.vue-cli.publicPath.description', + group: 'org.vue.vue-webpack.config.vue-cli.groups.general', + link: 'https://cli.vuejs.org/config/#publicpath' + }, + { + name: 'outputDir', + type: 'input', + default: 'dist', + value: data.vue && data.vue.outputDir, + validate: input => !!input, + message: 'org.vue.vue-webpack.config.vue-cli.outputDir.label', + description: 'org.vue.vue-webpack.config.vue-cli.outputDir.description', + group: 'org.vue.vue-webpack.config.vue-cli.groups.general', + link: 'https://cli.vuejs.org/config/#outputdir' + }, + { + name: 'assetsDir', + type: 'input', + default: '', + value: data.vue && data.vue.assetsDir, + message: 'org.vue.vue-webpack.config.vue-cli.assetsDir.label', + description: 'org.vue.vue-webpack.config.vue-cli.assetsDir.description', + group: 'org.vue.vue-webpack.config.vue-cli.groups.general', + link: 'https://cli.vuejs.org/config/#assetsdir' + }, + { + name: 'runtimeCompiler', + type: 'confirm', + default: false, + value: data.vue && data.vue.runtimeCompiler, + message: 'org.vue.vue-webpack.config.vue-cli.runtimeCompiler.label', + description: 'org.vue.vue-webpack.config.vue-cli.runtimeCompiler.description', + group: 'org.vue.vue-webpack.config.vue-cli.groups.general', + link: 'https://cli.vuejs.org/config/#runtimecompiler' + }, + { + name: 'productionSourceMap', + type: 'confirm', + default: true, + value: data.vue && data.vue.productionSourceMap, + message: 'org.vue.vue-webpack.config.vue-cli.productionSourceMap.label', + description: 'org.vue.vue-webpack.config.vue-cli.productionSourceMap.description', + group: 'org.vue.vue-webpack.config.vue-cli.groups.general', + link: 'https://cli.vuejs.org/config/#productionsourcemap' + }, + { + name: 'parallel', + type: 'confirm', + default: require('os').cpus().length > 1, + value: data.vue && data.vue.parallel, + message: 'org.vue.vue-webpack.config.vue-cli.parallel.label', + description: 'org.vue.vue-webpack.config.vue-cli.parallel.description', + group: 'org.vue.vue-webpack.config.vue-cli.groups.general', + link: 'https://cli.vuejs.org/config/#parallel' + }, + { + name: 'css.modules', + type: 'confirm', + default: false, + value: data.vue && data.vue.css && data.vue.css.modules, + message: 'org.vue.vue-webpack.config.vue-cli.css.modules.label', + description: 'org.vue.vue-webpack.config.vue-cli.css.modules.description', + group: 'org.vue.vue-webpack.config.vue-cli.groups.css', + link: 'https://cli.vuejs.org/config/#css-modules' + }, + { + name: 'css.extract', + type: 'confirm', + default: true, + value: data.vue && data.vue.css && data.vue.css.extract, + message: 'org.vue.vue-webpack.config.vue-cli.css.extract.label', + description: 'org.vue.vue-webpack.config.vue-cli.css.extract.description', + group: 'org.vue.vue-webpack.config.vue-cli.groups.css', + link: 'https://cli.vuejs.org/config/#css-extract' + }, + { + name: 'css.sourceMap', + type: 'confirm', + default: false, + value: data.vue && data.vue.css && data.vue.css.sourceMap, + message: 'org.vue.vue-webpack.config.vue-cli.css.sourceMap.label', + description: 'org.vue.vue-webpack.config.vue-cli.css.sourceMap.description', + group: 'org.vue.vue-webpack.config.vue-cli.groups.css', + link: 'https://cli.vuejs.org/config/#css-sourcemap' + } + ] + }), + onWrite: async ({ api, prompts }) => { + const vueData = {} + for (const prompt of prompts) { + vueData[prompt.id] = await api.getAnswer(prompt.id) + } + api.setData('vue', vueData) + } + }) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/index.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/index.js" new file mode 100644 index 0000000000000000000000000000000000000000..61bec7eea1e0e995554ee9576c5ce1bfd8b65de0 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/index.js" @@ -0,0 +1,6 @@ +module.exports = api => { + require('./tasks')(api) + require('./suggestions')(api) + require('./config')(api) + require('./widgets')(api) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/suggestions.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/suggestions.js" new file mode 100644 index 0000000000000000000000000000000000000000..8b310a57fd16038295f41e08174e91a10f501945 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/suggestions.js" @@ -0,0 +1,102 @@ +const { semver, loadModule } = require('@vue/cli-shared-utils') +const invoke = require('@vue/cli/lib/invoke') +const add = require('@vue/cli/lib/add') + +const ROUTER = 'org.vue.vue-router-add' +const VUEX = 'org.vue.vuex-add' +const VUE_CONFIG_OPEN = 'org.vue.vue-config-open' + +module.exports = api => { + api.onViewOpen(({ view }) => { + if (view.id === 'vue-project-plugins') { + if (!api.hasPlugin('router')) { + api.addSuggestion({ + id: ROUTER, + type: 'action', + label: 'org.vue.cli-service.suggestions.vue-router-add.label', + message: 'org.vue.cli-service.suggestions.vue-router-add.message', + link: 'https://router.vuejs.org/', + async handler () { + await install(api, 'router') + } + }) + } + + if (!api.hasPlugin('vuex')) { + api.addSuggestion({ + id: VUEX, + type: 'action', + label: 'org.vue.cli-service.suggestions.vuex-add.label', + message: 'org.vue.cli-service.suggestions.vuex-add.message', + link: 'https://vuex.vuejs.org/', + async handler () { + await install(api, 'vuex') + } + }) + } + } else { + [ROUTER, VUEX].forEach(id => api.removeSuggestion(id)) + } + + if (view.id !== 'vue-project-configurations') { + api.removeSuggestion(VUE_CONFIG_OPEN) + } + }) + + api.onConfigRead(({ config }) => { + if (config.id === 'org.vue.vue-cli') { + if (config.foundFiles.vue) { + api.addSuggestion({ + id: VUE_CONFIG_OPEN, + type: 'action', + label: 'org.vue.vue-webpack.suggestions.vue-config-open', + handler () { + const file = config.foundFiles.vue.path + console.log('open', file) + const { launch } = require('@vue/cli-shared-utils') + launch(file) + return { + keep: true + } + } + }) + return + } + } + api.removeSuggestion(VUE_CONFIG_OPEN) + }) +} + +async function install (api, id) { + api.setProgress({ + status: 'org.vue.cli-service.suggestions.progress', + args: [id], + progress: -1 + }) + + const context = api.getCwd() + + let error + + try { + const servicePkg = loadModule('@vue/cli-service/package.json', context) + // @vue/cli-plugin-router is not compatible with @vue/cli-service v3, + // so we have to check for the version and call the right generator + if (semver.satisfies(servicePkg.version, '3.x')) { + await invoke.runGenerator(context, { + id: `core:${id}`, + apply: loadModule(`@vue/cli-service/generator/${id}`, context) + }) + } else { + // FIXME: a temporary fix for adding router plugin + // should implement a plugin prompt ui later + await add(id, { $inlineOptions: '{}' }, context) + } + } catch (e) { + error = e + } + + api.removeProgress() + + if (error) throw error +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/tasks.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/tasks.js" new file mode 100644 index 0000000000000000000000000000000000000000..f349078d84e65b850b30abac2d6571a6362f7a95 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/tasks.js" @@ -0,0 +1,421 @@ +const path = require('path') +const fs = require('fs-extra') +const { loadModule, semver } = require('@vue/cli-shared-utils') +const { processStats } = require('./utils/stats') + +/** @typedef {import('../apollo-server/api/PluginApi')} PluginApi */ + +/** + * @param {PluginApi} api + */ +module.exports = api => { + const { getSharedData, setSharedData, removeSharedData } = api.namespace('org.vue.webpack.') + + let firstRun = true + let hadFailed = false + + // Specific to each modes (serve, build, ...) + const fields = { + status: null, + progress: {}, + operations: null, + sizes: null, + problems: null, + url: null + } + + // Common fields for all mode + const commonFields = { + 'modern-mode': false + } + + // Init data + api.onProjectOpen(setup) + api.onPluginReload(setup) + + function setup () { + for (const key of ['serve', 'build', 'build-modern']) { + setupSharedData(key) + } + setupCommonData() + } + + // Called when opening a project + function setupSharedData (mode) { + resetSharedData(mode) + } + + // Called when opening a project + function setupCommonData () { + for (const field in commonFields) { + setSharedData(field, getSharedDataInitialValue(field, commonFields[field])) + } + } + + function resetSharedData (mode, clear = false) { + for (const field in fields) { + const id = `${mode}-${field}` + setSharedData(id, getSharedDataInitialValue(id, fields[field], clear)) + } + } + + function getSharedDataInitialValue (id, defaultValue, clear) { + if (!clear) { + const data = getSharedData(id) + if (data != null) return data.value + } + return defaultValue + } + + async function onWebpackMessage ({ data: message }) { + if (message.webpackDashboardData) { + const modernMode = getSharedData('modern-mode').value + const type = message.webpackDashboardData.type + + for (const data of message.webpackDashboardData.value) { + const id = `${type}-${data.type}` + + if (data.type === 'stats') { + // Stats are read from a file + const statsFile = path.resolve(api.getCwd(), `./node_modules/.stats-${type}.json`) + const value = await fs.readJson(statsFile) + const { stats, analyzer } = processStats(value) + setSharedData(id, stats, { disk: true }) + setSharedData(`${id}-analyzer`, analyzer, { disk: true }) + await fs.remove(statsFile) + } else if (data.type === 'progress') { + if (type === 'serve' || !modernMode) { + setSharedData(id, { + [type]: data.value + }) + } else { + // Display two progress bars + const progress = getSharedData(id).value + progress[type] = data.value + for (const t of ['build', 'build-modern']) { + setSharedData(`${t}-${data.type}`, { + build: progress.build || 0, + 'build-modern': progress['build-modern'] || 0 + }) + } + } + } else { + // Don't display success until both build and build-modern are done + if (type !== 'serve' && modernMode && data.type === 'status' && data.value === 'Success') { + if (type === 'build-modern') { + for (const t of ['build', 'build-modern']) { + setSharedData(`${t}-status`, data.value) + } + } + } else { + setSharedData(id, data.value) + } + + // Notifications + if (type === 'serve' && data.type === 'status') { + if (data.value === 'Failed') { + api.notify({ + title: 'Build failed', + message: 'The build has errors.', + icon: 'error' + }) + hadFailed = true + } else if (data.value === 'Success') { + if (hadFailed) { + api.notify({ + title: 'Build fixed', + message: 'The build succeeded.', + icon: 'done' + }) + hadFailed = false + } else if (firstRun) { + api.notify({ + title: 'App ready', + message: 'The build succeeded.', + icon: 'done' + }) + firstRun = false + } + } + } + } + } + } + } + + // Tasks + const views = { + views: [ + { + id: 'org.vue.webpack.views.dashboard', + label: 'org.vue.vue-webpack.dashboard.title', + icon: 'dashboard', + component: 'org.vue.webpack.components.dashboard' + }, + { + id: 'org.vue.webpack.views.analyzer', + label: 'org.vue.vue-webpack.analyzer.title', + icon: 'donut_large', + component: 'org.vue.webpack.components.analyzer' + } + ], + defaultView: 'org.vue.webpack.views.dashboard' + } + api.describeTask({ + match: /vue-cli-service serve(\s+--\S+(\s+\S+)?)*$/, + description: 'org.vue.vue-webpack.tasks.serve.description', + link: 'https://cli.vuejs.org/guide/cli-service.html#vue-cli-service-serve', + icon: '/public/webpack-logo.png', + prompts: [ + { + name: 'open', + type: 'confirm', + default: false, + description: 'org.vue.vue-webpack.tasks.serve.open' + }, + { + name: 'mode', + type: 'list', + default: 'development', + choices: [ + { + name: 'development', + value: 'development' + }, + { + name: 'production', + value: 'production' + }, + { + name: 'test', + value: 'test' + }, + { + name: '(unset)', + value: '' + } + ], + description: 'org.vue.vue-webpack.tasks.serve.mode' + }, + { + name: 'host', + type: 'input', + default: '', + description: 'org.vue.vue-webpack.tasks.serve.host' + }, + { + name: 'port', + type: 'input', + default: undefined, + description: 'org.vue.vue-webpack.tasks.serve.port' + }, + { + name: 'https', + type: 'confirm', + default: false, + description: 'org.vue.vue-webpack.tasks.serve.https' + } + ], + onBeforeRun: ({ answers, args }) => { + // Args + if (answers.open) args.push('--open') + if (answers.mode) args.push('--mode', answers.mode) + if (answers.host) args.push('--host', answers.host) + if (answers.port) args.push('--port', answers.port) + if (answers.https) args.push('--https') + args.push('--dashboard') + + // Data + resetSharedData('serve', true) + firstRun = true + hadFailed = false + }, + onRun: () => { + api.ipcOn(onWebpackMessage) + }, + onExit: () => { + api.ipcOff(onWebpackMessage) + removeSharedData('serve-url') + }, + ...views + }) + api.describeTask({ + match: /vue-cli-service build(\s+--\S+(\s+\S+)?)*$/, + description: 'org.vue.vue-webpack.tasks.build.description', + link: 'https://cli.vuejs.org/guide/cli-service.html#vue-cli-service-build', + icon: '/public/webpack-logo.png', + prompts: [ + { + name: 'modern', + type: 'confirm', + default: false, + message: 'org.vue.vue-webpack.tasks.build.modern.label', + description: 'org.vue.vue-webpack.tasks.build.modern.description', + link: 'https://cli.vuejs.org/guide/browser-compatibility.html#modern-mode' + }, + { + name: 'mode', + type: 'list', + default: 'production', + choices: [ + { + name: 'development', + value: 'development' + }, + { + name: 'production', + value: 'production' + }, + { + name: 'test', + value: 'test' + }, + { + name: '(unset)', + value: '' + } + ], + description: 'org.vue.vue-webpack.tasks.build.mode' + }, + { + name: 'dest', + type: 'input', + default: '', + description: 'org.vue.vue-webpack.tasks.build.dest' + }, + { + name: 'target', + type: 'list', + default: 'app', + choices: [ + { + name: 'org.vue.vue-webpack.tasks.build.target.app', + value: 'app' + }, + { + name: 'org.vue.vue-webpack.tasks.build.target.lib', + value: 'lib' + }, + { + name: 'org.vue.vue-webpack.tasks.build.target.wc', + value: 'wc' + }, + { + name: 'org.vue.vue-webpack.tasks.build.target.wc-async', + value: 'wc-async' + } + ], + description: 'org.vue.vue-webpack.tasks.build.target.description' + }, + { + name: 'name', + type: 'input', + default: '', + description: 'org.vue.vue-webpack.tasks.build.name' + }, + { + name: 'watch', + type: 'confirm', + default: false, + description: 'org.vue.vue-webpack.tasks.build.watch' + } + ], + onBeforeRun: ({ answers, args }) => { + // Args + if (answers.mode) args.push('--mode', answers.mode) + if (answers.dest) args.push('--dest', answers.dest) + if (answers.target) args.push('--target', answers.target) + if (answers.name) args.push('--name', answers.name) + if (answers.watch) args.push('--watch') + + // the flag is different between v3/4 and v5 projects + const servicePkg = loadModule('@vue/cli-service/package.json', api.getCwd()) + const isV5Project = servicePkg && semver.satisfies(servicePkg.version, '^5.0.0-0') + + if (answers.modern) { + args.push(isV5Project ? '--module' : '--modern') + } else { + args.push(isV5Project ? '--no-module' : '--no-modern') + } + + setSharedData('modern-mode', !!answers.modern) + args.push('--dashboard') + + // Data + resetSharedData('build', true) + resetSharedData('build-modern', true) + }, + onRun: () => { + api.ipcOn(onWebpackMessage) + }, + onExit: () => { + api.ipcOff(onWebpackMessage) + }, + ...views + }) + // vue inspect + api.addTask({ + name: 'inspect', + command: 'vue-cli-service inspect', + description: 'org.vue.vue-webpack.tasks.inspect.description', + link: 'https://cli.vuejs.org/guide/webpack.html#inspecting-the-project-s-webpack-config', + icon: '/public/webpack-inspect-logo.png', + prompts: [ + { + name: 'mode', + type: 'list', + default: 'production', + choices: [ + { + name: 'development', + value: 'development' + }, + { + name: 'production', + value: 'production' + }, + { + name: 'test', + value: 'test' + }, + { + name: '(unset)', + value: '' + } + ], + description: 'org.vue.vue-webpack.tasks.inspect.mode' + }, + { + name: 'verbose', + type: 'confirm', + default: false, + description: 'org.vue.vue-webpack.tasks.inspect.verbose' + } + ], + onBeforeRun: ({ answers, args }) => { + if (answers.mode) args.push('--mode', answers.mode) + if (answers.verbose) args.push('--verbose') + } + }) + + if (process.env.VUE_APP_CLI_UI_DEV) { + // Add dynamic components in dev mode (webpack dashboard & analyzer) + api.addClientAddon({ + id: 'org.vue.webpack.client-addon.dev', + url: 'http://localhost:8096/index.js' + }) + } else { + // Webpack dashboard + api.addClientAddon({ + id: 'org.vue.webpack.client-addon', + path: '@vue/cli-ui-addon-webpack/dist' + }) + } + + // Open app button + api.ipcOn(({ data }) => { + if (data.vueServe) { + setSharedData('serve-url', data.vueServe.url) + } + }) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/utils/audit.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/utils/audit.js" new file mode 100644 index 0000000000000000000000000000000000000000..9a8b266978294a2071ced7fc75cc54aebf48f0a9 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/utils/audit.js" @@ -0,0 +1,138 @@ +const { hasProjectYarn, hasProjectPnpm, execa } = require('@vue/cli-shared-utils') + +const severity = { + critical: 0, + high: 1, + moderate: 2, + low: 3 +} + +exports.auditProject = async function (cwd) { + try { + if (hasProjectYarn(cwd)) { + const child = await execa('yarn', [ + 'audit', + '--json', + '--non-interactive', + '--no-progress' + ], { + cwd, + reject: false + }) + + if (child.stderr) { + const errLines = child.stderr.split('\n').map(l => l.trim()).filter(l => l) + const error = errLines.find(l => l.startsWith('Error:')) + if (error) { + throw new Error(error.substr('Error:'.length).trim()) + } + } + + const data = child.stdout + + const auditAdvisories = [] + + const ids = {} + + const lines = data.split('\n').filter(l => l.trim()).map(l => JSON.parse(l)) + for (const line of lines) { + if (line.type === 'auditAdvisory') { + if (!ids[line.data.advisory.id]) { + auditAdvisories.push(line) + ids[line.data.advisory.id] = true + } + } + } + + const details = { + vulnerabilities: [], + summary: { + critical: 0, + high: 0, + moderate: 0, + low: 0 + } + } + + auditAdvisories.sort((a, b) => severity[a.data.advisory.severity] - severity[b.data.advisory.severity]) + + let id = 0 + for (const { data: { advisory } } of auditAdvisories) { + for (const finding of advisory.findings) { + // const [finding] = advisory.findings + const detail = { + id: id++, + name: advisory.module_name, + version: finding.version, + parents: finding.paths.sort( + (a, b) => a.length - b.length + ).map( + parents => parents.split('>').slice(0, parents.length - 2).map(p => ({ + name: p + })) + ), + moreInfo: advisory.url, + severity: advisory.severity, + title: advisory.title, + message: advisory.overview, + versions: { + vulnerable: advisory.vulnerable_versions, + patched: advisory.patched_versions + }, + recommendation: advisory.recommendation + } + details.vulnerabilities.push(detail) + details.summary[advisory.severity]++ + } + } + + const status = { + status: 'ok', + count: details.vulnerabilities.length, + message: null + } + + if (status.count) { + status.status = 'attention' + } + + for (const n in details.summary) { + if (details.summary) { + status.severity = n + break + } + } + + return { + status, + details + } + } else if (hasProjectPnpm(cwd)) { + // TODO pnpm audit + return { + status: { + status: 'error', + message: 'Not implemented for PNPM projects yet' + }, + details: null + } + } else { + // TODO NPM audit + return { + status: { + status: 'error', + message: 'Not implemented for NPM projects yet' + }, + details: null + } + } + } catch (e) { + return { + status: { + status: 'error', + message: e.message + }, + details: null + } + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/utils/modules.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/utils/modules.js" new file mode 100644 index 0000000000000000000000000000000000000000..82c6ba67d7bf5d98a9b16daa4f66beb8dcbaa254 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/utils/modules.js" @@ -0,0 +1,178 @@ +const getModulePath = function (identifier) { + return identifier.replace(/.*!/, '').replace(/\\/g, '/') +} + +exports.filterModules = function (modules) { + return modules.filter(module => module.name.indexOf('(webpack)') === -1) +} + +exports.buildSortedModules = function (modules, sizeField) { + let list = modules.slice() + if (list.length) { + list = list.map(module => { + const size = module.size[sizeField] + return { + id: module.id, + identifier: module.identifier, + size + } + }) + list.sort((a, b) => b.size - a.size) + } + return list +} + +exports.buildDepModules = function (modules) { + const deps = new Map() + for (const module of modules) { + const path = getModulePath(module.identifier) + const pathParts = path.split('/node_modules/') + if (pathParts.length === 2) { + let name = pathParts[1] + if (name.charAt(0) === '@') { + // Scoped package + name = name.substr(0, name.indexOf('/', name.indexOf('/') + 1)) + } else { + name = name.substr(0, name.indexOf('/')) + } + let dep = deps.get(name) + if (!dep) { + dep = { + name, + size: 0 + } + deps.set(name, dep) + } + dep.size += module.size + } + } + const list = Array.from(deps.values()) + list.sort((a, b) => b.size - a.size) + if (list.length) { + const max = list[0].size + for (const dep of list) { + dep.ratio = dep.size / max + } + } + return list +} + +/* +{ + id: './node_modules', + size: { + stats: 1024, + parsed: 0, + gzip: 400 + } + fullPath: '/node_modules', + children: [ + { + id: 'vuex', + identifier: '...', + size: { + stats: 42, + parsed: 0, + gzip: 12 + }, + // Total size of previous children in list + previousSize: { + stats: 0, + parsed: 0, + gzip: 0 + }, + fullPath: '/node_modules/vuex', + children: [ + ... + ], + }, + ... + ] +} +*/ + +exports.buildModulesTrees = function (modules, sizeType) { + const trees = {} + + for (const module of modules) { + const path = getModulePath(module.identifier) + if (path.indexOf('multi ') === 0) continue + const parts = path.split('/') + for (const treeId of module.chunks) { + let subtree = trees[treeId] + if (!subtree) { + subtree = trees[treeId] = { + id: treeId, + size: { + stats: 0, + parsed: 0, + gzip: 0 + }, + children: {} + } + } + const fullPath = [] + for (let i = 0; i < parts.length; i++) { + const part = parts[i] + let child = subtree.children[part] + if (!child) { + fullPath.push(part) + child = subtree.children[part] = { + id: part, + size: { + stats: 0, + parsed: 0, + gzip: 0 + }, + fullPath: fullPath.join('/'), + children: {} + } + } + child.size.stats += module.size.stats + child.size.parsed += module.size.parsed || 0 + child.size.gzip += module.size.gzip || 0 + // Leaf + if (i === parts.length - 1) { + child.identifier = module.identifier + } + subtree = child + } + } + } + + for (const n in trees) { + let tree = trees[n] + let keys + while ((keys = Object.keys(tree.children)).length !== 0 && keys.length === 1) { + tree = tree.children[keys[0]] + } + walkTreeToSortChildren(tree, sizeType) + trees[n] = tree + } + + return trees +} + +function walkTreeToSortChildren (tree, sizeType) { + const size = { + stats: 0, + parsed: 0, + gzip: 0 + } + tree.children = Object.keys(tree.children).map( + key => tree.children[key] + ).filter( + child => child.size.stats > tree.size.stats * 0.01 && child.size.stats > 1024 + ).sort((a, b) => b.size[sizeType] - a.size[sizeType]) + for (const child of tree.children) { + child.previousSize = { + stats: size.stats, + parsed: size.parsed, + gzip: size.gzip + } + size.stats += child.size.stats + size.parsed += child.size.parsed + size.gzip += child.size.gzip + walkTreeToSortChildren(child, sizeType) + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/utils/stats.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/utils/stats.js" new file mode 100644 index 0000000000000000000000000000000000000000..5938cd84711eb9eb4bfc5ae5fe010a4a6b19cf11 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/utils/stats.js" @@ -0,0 +1,49 @@ +const ModulesUtils = require('./modules') + +const sizeTypes = ['stats', 'parsed', 'gzip'] + +exports.processStats = function (stats) { + const rawModules = ModulesUtils.filterModules(stats.data.modules) + + const modulesPerSizeType = {} + const analyzer = {} + for (const sizeType of sizeTypes) { + const modules = ModulesUtils.buildSortedModules(rawModules, sizeType) + const modulesTotalSize = modules.reduce((total, module) => total + module.size, 0) + const depModules = ModulesUtils.buildDepModules(modules) + const depModulesTotalSize = depModules.reduce((total, module) => total + module.size, 0) + modulesPerSizeType[sizeType] = { + modulesTotalSize, + depModules, + depModulesTotalSize + } + + const modulesTrees = ModulesUtils.buildModulesTrees(rawModules, sizeType) + analyzer[sizeType] = { + modulesTrees + } + } + + stats = { + data: { + errors: stats.data.errors, + warnings: stats.data.warnings, + assets: stats.data.assets.map(a => ({ + name: a.name, + size: a.size + })), + chunks: stats.data.chunks.map(c => ({ + id: c.id, + names: c.names + })) + }, + computed: { + modulesPerSizeType + } + } + + return { + stats, + analyzer + } +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/widgets.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/widgets.js" new file mode 100644 index 0000000000000000000000000000000000000000..f3a867ec4e7aef492873a499f6b71d9903777106 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-defaults/widgets.js" @@ -0,0 +1,230 @@ +module.exports = api => { + const { registerWidget, onAction, setSharedData } = api.namespace('org.vue.widgets.') + + if (process.env.VUE_APP_CLI_UI_DEV) { + api.addClientAddon({ + id: 'org.vue.widgets.client-addon.dev', + url: 'http://localhost:8097/index.js' + }) + } else { + api.addClientAddon({ + id: 'org.vue.widgets.client-addon', + path: '@vue/cli-ui-addon-widgets/dist' + }) + } + + // Welcome widget + + registerWidget({ + id: 'welcome', + title: 'org.vue.widgets.welcome.title', + description: 'org.vue.widgets.welcome.description', + icon: 'mood', + component: 'org.vue.widgets.components.welcome', + minWidth: 3, + minHeight: 4, + maxWidth: 3, + maxHeight: 4, + maxCount: 1 + }) + + // Kill port widget + + registerWidget({ + id: 'kill-port', + title: 'org.vue.widgets.kill-port.title', + description: 'org.vue.widgets.kill-port.description', + icon: 'flash_on', + component: 'org.vue.widgets.components.kill-port', + minWidth: 2, + minHeight: 1, + maxWidth: 2, + maxHeight: 1, + maxCount: 1 + }) + + setSharedData('kill-port.status', 'idle') + onAction('actions.kill-port', async params => { + const fkill = require('fkill') + setSharedData('kill-port.status', 'killing') + try { + await fkill(`:${params.port}`) + setSharedData('kill-port.status', 'killed') + } catch (e) { + console.log(e) + setSharedData('kill-port.status', 'error') + } + }) + + // Plugin updates + + setSharedData('plugin-updates.status', { + status: 'ok', + lastUpdate: Date.now() + }) + registerWidget({ + id: 'plugin-updates', + title: 'org.vue.widgets.plugin-updates.title', + description: 'org.vue.widgets.plugin-updates.description', + icon: 'extension', + component: 'org.vue.widgets.components.plugin-updates', + minWidth: 2, + minHeight: 1, + maxWidth: 2, + maxHeight: 1, + maxCount: 1 + }) + + // Dependency updates + + setSharedData('dependency-updates.status', { + status: 'loading', + lastUpdate: null + }) + registerWidget({ + id: 'dependency-updates', + title: 'org.vue.widgets.dependency-updates.title', + description: 'org.vue.widgets.dependency-updates.description', + icon: 'collections_bookmark', + component: 'org.vue.widgets.components.dependency-updates', + minWidth: 2, + minHeight: 1, + maxWidth: 2, + maxHeight: 1, + maxCount: 1 + }) + + // Vulnerability check + + let lastAudit = null + setSharedData('vulnerability.status', { + status: 'loading', + lastUpdate: lastAudit, + count: 0, + message: null + }) + setSharedData('vulnerability.details', { + vulnerabilities: [], + summary: {} + }) + registerWidget({ + id: 'vulnerability', + title: 'org.vue.widgets.vulnerability.title', + description: 'org.vue.widgets.vulnerability.description', + icon: 'verified_user', + component: 'org.vue.widgets.components.vulnerability', + detailsComponent: 'org.vue.widgets.components.vulnerability-details', + minWidth: 2, + minHeight: 1, + maxWidth: 2, + maxHeight: 1, + maxCount: 1 + }) + async function checkVulnerability (params) { + setSharedData('vulnerability.status', { + status: 'loading', + lastUpdate: lastAudit, + count: 0, + message: null + }) + + const { auditProject } = require('./utils/audit') + const { status, details } = await auditProject(api.getCwd()) + + status.lastUpdate = lastAudit = Date.now() + + setSharedData('vulnerability.status', status) + setSharedData('vulnerability.details', details) + } + onAction('actions.check-vunerability', checkVulnerability) + checkVulnerability() + + // Run task + + registerWidget({ + id: 'run-task', + title: 'org.vue.widgets.run-task.title', + description: 'org.vue.widgets.run-task.description', + icon: 'assignment', + component: 'org.vue.widgets.components.run-task', + minWidth: 2, + minHeight: 1, + maxWidth: 2, + maxHeight: 1, + needsUserConfig: true, + onConfigOpen: async ({ context }) => { + const tasks = require('@vue/cli-ui/apollo-server/connectors/tasks') + return { + prompts: [ + { + name: 'task', + type: 'list', + message: 'org.vue.widgets.run-task.prompts.task', + choices: (await tasks.list(undefined, context)).map(task => ({ + name: task.name, + value: task.id + })) + } + ] + } + } + }) + + // News + + registerWidget({ + id: 'news', + title: 'org.vue.widgets.news.title', + description: 'org.vue.widgets.news.description', + icon: 'rss_feed', + component: 'org.vue.widgets.components.news', + detailsComponent: 'org.vue.widgets.components.news', + minWidth: 2, + minHeight: 1, + maxWidth: 6, + maxHeight: 6, + defaultWidth: 2, + defaultHeight: 3, + openDetailsButton: true, + defaultConfig: () => ({ + url: 'https://vuenews.fireside.fm/rss' + }), + onConfigOpen: async ({ context }) => { + return { + prompts: [ + { + name: 'url', + type: 'input', + message: 'org.vue.widgets.news.prompts.url', + validate: input => !!input + } + ] + } + } + }) + + const newsCache = global['org.vue.newsCache'] = global['org.vue.newsCache'] || {} + let parser + + onAction('actions.fetch-news', async params => { + if (!parser) { + const Parser = require('rss-parser') + parser = new Parser() + } + + if (!params.force) { + const cached = newsCache[params.url] + if (cached) return cached + } + + let url = params.url + // GitHub repo + if (url.match(/^[\w_.-]+\/[\w_.-]+$/)) { + url = `https://github.com/${url}/releases.atom` + } + + const result = await parser.parseURL(url) + newsCache[params.url] = result + return result + }) +} diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-public/vue-cli.png" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-public/vue-cli.png" new file mode 100644 index 0000000000000000000000000000000000000000..9e0ea5e50420683870149a0af470f8d8f9f7a026 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-public/vue-cli.png" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-public/vue-logo.png" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-public/vue-logo.png" new file mode 100644 index 0000000000000000000000000000000000000000..60e17006ad07cd313788585e2f5e528fbb7cf821 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-public/vue-logo.png" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-public/webpack-inspect-logo.png" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-public/webpack-inspect-logo.png" new file mode 100644 index 0000000000000000000000000000000000000000..048f7927d3cab7d2e64d28da78ca098e19a0c764 Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-public/webpack-inspect-logo.png" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-public/webpack-logo.png" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-public/webpack-logo.png" new file mode 100644 index 0000000000000000000000000000000000000000..e1a910fa05fd3bd6273607a25eefe42007ab415c Binary files /dev/null and "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli-ui/ui-public/webpack-logo.png" differ diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli/LICENSE" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli/LICENSE" new file mode 100644 index 0000000000000000000000000000000000000000..4e467aa91f232b47969ae232744e8f1a0066d36c --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli/LICENSE" @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2017-present, Yuxi (Evan) You + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli/README.md" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli/README.md" new file mode 100644 index 0000000000000000000000000000000000000000..2e45b3371c266a92f6ff0c2305b39451d82e3c62 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli/README.md" @@ -0,0 +1,8 @@ +# @vue/cli + +``` sh +npm install -g @vue/cli +vue create my-project +``` + +[Full Docs](https://cli.vuejs.org/) diff --git "a/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli/bin/vue.js" "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli/bin/vue.js" new file mode 100644 index 0000000000000000000000000000000000000000..082ad83573c658a73065fd40c1727ab582762e68 --- /dev/null +++ "b/\346\235\216\344\275\263\351\276\204/vue\344\275\234\344\270\232/20220421\345\224\257\345\223\201\344\274\232\350\267\257\347\224\261\357\274\210\347\202\271\345\207\273\350\257\246\346\203\205\351\241\265)/vuepro/node_modules/@vue/cli/bin/vue.js" @@ -0,0 +1,252 @@ +#!/usr/bin/env node + +// Check node version before requiring/doing anything else +// The user may be on a very old node version + +const { chalk, semver } = require('@vue/cli-shared-utils') +const requiredVersion = require('../package.json').engines.node +const leven = require('leven') + +function checkNodeVersion (wanted, id) { + if (!semver.satisfies(process.version, wanted, { includePrerelease: true })) { + console.log(chalk.red( + 'You are using Node ' + process.version + ', but this version of ' + id + + ' requires Node ' + wanted + '.\nPlease upgrade your Node version.' + )) + process.exit(1) + } +} + +checkNodeVersion(requiredVersion, '@vue/cli') + +const fs = require('fs') +const path = require('path') +const slash = require('slash') +const minimist = require('minimist') + +// enter debug mode when creating test repo +if ( + slash(process.cwd()).indexOf('/packages/test') > 0 && ( + fs.existsSync(path.resolve(process.cwd(), '../@vue')) || + fs.existsSync(path.resolve(process.cwd(), '../../@vue')) + ) +) { + process.env.VUE_CLI_DEBUG = true +} + +const program = require('commander') +const loadCommand = require('../lib/util/loadCommand') + +program + .version(`@vue/cli ${require('../package').version}`) + .usage(' [options]') + +program + .command('create ') + .description('create a new project powered by vue-cli-service') + .option('-p, --preset ', 'Skip prompts and use saved or remote preset') + .option('-d, --default', 'Skip prompts and use default preset') + .option('-i, --inlinePreset ', 'Skip prompts and use inline JSON string as preset') + .option('-m, --packageManager ', 'Use specified npm client when installing dependencies') + .option('-r, --registry ', 'Use specified npm registry when installing dependencies (only for npm)') + .option('-g, --git [message]', 'Force git initialization with initial commit message') + .option('-n, --no-git', 'Skip git initialization') + .option('-f, --force', 'Overwrite target directory if it exists') + .option('--merge', 'Merge target directory if it exists') + .option('-c, --clone', 'Use git clone when fetching remote preset') + .option('-x, --proxy ', 'Use specified proxy when creating project') + .option('-b, --bare', 'Scaffold project without beginner instructions') + .option('--skipGetStarted', 'Skip displaying "Get started" instructions') + .action((name, options) => { + if (minimist(process.argv.slice(3))._.length > 1) { + console.log(chalk.yellow('\n Info: You provided more than one argument. The first one will be used as the app\'s name, the rest are ignored.')) + } + // --git makes commander to default git to true + if (process.argv.includes('-g') || process.argv.includes('--git')) { + options.forceGit = true + } + require('../lib/create')(name, options) + }) + +program + .command('add [pluginOptions]') + .description('install a plugin and invoke its generator in an already created project') + .option('--registry ', 'Use specified npm registry when installing dependencies (only for npm)') + .allowUnknownOption() + .action((plugin) => { + require('../lib/add')(plugin, minimist(process.argv.slice(3))) + }) + +program + .command('invoke [pluginOptions]') + .description('invoke the generator of a plugin in an already created project') + .option('--registry ', 'Use specified npm registry when installing dependencies (only for npm)') + .allowUnknownOption() + .action((plugin) => { + require('../lib/invoke')(plugin, minimist(process.argv.slice(3))) + }) + +program + .command('inspect [paths...]') + .description('inspect the webpack config in a project with vue-cli-service') + .option('--mode ') + .option('--rule ', 'inspect a specific module rule') + .option('--plugin ', 'inspect a specific plugin') + .option('--rules', 'list all module rule names') + .option('--plugins', 'list all plugin names') + .option('-v --verbose', 'Show full function definitions in output') + .action((paths, options) => { + require('../lib/inspect')(paths, options) + }) + +program + .command('serve') + .description('alias of "npm run serve" in the current project') + .allowUnknownOption() + .action(() => { + require('../lib/util/runNpmScript')('serve', process.argv.slice(3)) + }) + +program + .command('build') + .description('alias of "npm run build" in the current project') + .action((cmd) => { + require('../lib/util/runNpmScript')('build', process.argv.slice(3)) + }) + +program + .command('ui') + .description('start and open the vue-cli ui') + .option('-H, --host ', 'Host used for the UI server (default: localhost)') + .option('-p, --port ', 'Port used for the UI server (by default search for available port)') + .option('-D, --dev', 'Run in dev mode') + .option('--quiet', `Don't output starting messages`) + .option('--headless', `Don't open browser on start and output port`) + .action((options) => { + checkNodeVersion('>=8.6', 'vue ui') + require('../lib/ui')(options) + }) + +program + .command('init